WDX: Integral data types

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
tbeu
Power Member
Power Member
Posts: 1354
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

WDX: Integral data types

Post by *tbeu »

The content plugin API currently allows only 32-bit and 64-bit signed integers for integral data types of content fields.

Code: Select all

#define ft_numeric_32 1
#define ft_numeric_64 2
Would it be possible to also add 8-bit and 16-bit integers and all their unsigned equivalents? This would complete the API.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Currently this isn't planned, so the compatibility with older TC versions isn't broken. There wouldn't be any big benefit, since all the smaller numbers can be represented by the larger ones (except for 64-bit unsigned).
Author of Total Commander
https://www.ghisler.com
User avatar
tbeu
Power Member
Power Member
Posts: 1354
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

Plugin compatibilty should not be a problem if you increase the interface version and the WDX developer checks it in ContentSetDefaultParams. Thus, newer plugin versions should work with old versions of TC.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Why don't you want to use 32-bit integers instead?


(3-bit was a misprint)
Last edited by MVV on 2012-01-26, 09:09 UTC, edited 1 time in total.
User avatar
tbeu
Power Member
Power Member
Posts: 1354
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

MVV wrote:Why don't you want to use 3-bit integers instead?
Because I do not use them very often. Do you?
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I don't return such small numbers in my plugins so it's not a problem for me. But I would return 8- or 16-bit integers with ft_numeric_32 type if I needed it. All your plugin needs is to pass number to TC, so it doesn't matter it is 8-bit or 32-bit.
Post Reply