Roman Mashak wrote:
I often come across in open-source software (device drivers or networkThese may be different "types" of typedefs than you had in mind,
applications) declarations of standard types with new names, ...
but when it isn't fully clear which integer type is best, I like
new type-names so that the assumptions are very clear and
can be easily changed.
For example, my combination generator has
/* index to items: */(Usually anything would work, but "short" would be
typedef unsigned short Dindex;
/* index to or number of combinations of items: */
typedef long Combnum;
inadequate in some applications, and "long" use
excessive memory for arrays in other applications.)
Perhaps I should start a new thread to "announce" it,
but readers are welcome to use (or better yet,
offer comments on) that combination generator:
http://freepages.genealogy.rootsweb....ech/gencombo.c
or
http://tinyurl.com/2452h/gencombo.c
James Dow Allen