Annotation of truecrypt/linux/common/platform.c, revision 1.1.1.1

1.1       root        1: #include <stdlib.h>
                      2: #include <stdio.h>
                      3: 
                      4: char *GetType (int size)
                      5: {
                      6:        if (size == sizeof (char)) return "char";
                      7:        if (size == sizeof (short)) return "short";
                      8:        if (size == sizeof (int)) return "int";
                      9:        if (size == sizeof (long)) return "long";
                     10:        if (size == sizeof (long long)) return "long long";
                     11: 
                     12:        fprintf (stderr, "Error: No type available for %d bytes\n", size);
                     13:        exit (1);
                     14: }
                     15: 
                     16: int main(int argc, char **argv)
                     17: {
                     18:        printf ("TYPES := -D__int8=\"%s\" -D__int16=\"%s\" -D__int32=\"%s\" -D__int64=\"%s\"\n",
                     19:                GetType (1), GetType (2), GetType (4), GetType (8));
                     20: 
                     21:        exit (0);
                     22: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.