242
242
# add code to display the various type sizes
243
243
print " /* Output the sizes of the various types */";
244
244
print " output(screen, \"\\nType sizes:\\n\");";
245
print " output(screen, \" sizeof(char): %lu\\n\",(unsigned long)sizeof(char));";
246
print " output(screen, \" sizeof(int): %lu\\n\",(unsigned long)sizeof(int));";
247
print " output(screen, \" sizeof(long): %lu\\n\",(unsigned long)sizeof(long));";
248
print " output(screen, \" sizeof(uint8): %lu\\n\",(unsigned long)sizeof(uint8));";
249
print " output(screen, \" sizeof(uint16): %lu\\n\",(unsigned long)sizeof(uint16));";
250
print " output(screen, \" sizeof(uint32): %lu\\n\",(unsigned long)sizeof(uint32));";
251
print " output(screen, \" sizeof(short): %lu\\n\",(unsigned long)sizeof(short));";
252
print " output(screen, \" sizeof(void*): %lu\\n\",(unsigned long)sizeof(void*));";
245
print " output(screen, \" sizeof(char): %lu\\n\",(unsigned long)sizeof(char));";
246
print " output(screen, \" sizeof(int): %lu\\n\",(unsigned long)sizeof(int));";
247
print " output(screen, \" sizeof(long): %lu\\n\",(unsigned long)sizeof(long));";
248
print "#if HAVE_LONGLONG"
249
print " output(screen, \" sizeof(long long): %lu\\n\",(unsigned long)sizeof(long long));";
251
print " output(screen, \" sizeof(uint8): %lu\\n\",(unsigned long)sizeof(uint8));";
252
print " output(screen, \" sizeof(uint16): %lu\\n\",(unsigned long)sizeof(uint16));";
253
print " output(screen, \" sizeof(uint32): %lu\\n\",(unsigned long)sizeof(uint32));";
254
print " output(screen, \" sizeof(short): %lu\\n\",(unsigned long)sizeof(short));";
255
print " output(screen, \" sizeof(void*): %lu\\n\",(unsigned long)sizeof(void*));";
256
print " output(screen, \" sizeof(size_t): %lu\\n\",(unsigned long)sizeof(size_t));";
257
print " output(screen, \" sizeof(off_t): %lu\\n\",(unsigned long)sizeof(off_t));";
258
print " output(screen, \" sizeof(ino_t): %lu\\n\",(unsigned long)sizeof(ino_t));";
259
print " output(screen, \" sizeof(dev_t): %lu\\n\",(unsigned long)sizeof(dev_t));";
254
261
##################################################
255
262
# add code to give information about modules