home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume28 / cproto / part01 / CHANGES next >
Text File  |  1992-03-15  |  4KB  |  133 lines

  1. Version 3
  2.  
  3. Patchlevel 0
  4.  
  5. - Added options to convert function definitions between the old style
  6.   and ANSI C style.
  7. - Options can be specified from the environment variable CPROTO.
  8. - The MS-DOS version recognizes more Microsoft C and Borland C++ type
  9.   modifiers (such as _cdecl, _far, _near).
  10. - Fix: Formal parameters specified with typedef names were not promoted.
  11.   For example, for the definition
  12.  
  13.       typedef unsigned short ushort;
  14.  
  15.     void test (x)
  16.     ushort x;
  17.     {
  18.     }
  19.  
  20.   cproto generated the incorrect prototype
  21.  
  22.       void test(ushort x);
  23.  
  24.   while the correct one is
  25.  
  26.       void test(int x);
  27.  
  28. - Fix: Incorrect prototypes were generated for functions that returned
  29.   function pointers.  For example, cproto generated an incorrect
  30.   prototype for the function definition
  31.  
  32.     void (*signal(int x, void (*func)(int y)))(int z)
  33.     {
  34.     }
  35.  
  36. - Fix: Changed calls to memory allocation functions to abort the program
  37.   if they fail.
  38.  
  39. Version 2
  40.  
  41. Patchlevel 3
  42.  
  43. - Made cproto compatible with GNU flex.
  44. - After compiling with the preprocessor symbol TURBO_CPP defined, on
  45.   MS-DOS systems, cproto will pipe its input through the Turbo C
  46.   preprocessor.
  47. - Fix: Typedef names may now be omitted from typedef declarations.
  48.   For example, every C compiler I tried accepts
  49.  
  50.     typedef int;
  51.  
  52.   and some even give warnings when encountering this statement.
  53.  
  54. Patchlevel 2
  55.  
  56. - Cproto is now able to generate prototypes for functions defined in lex
  57.   and yacc source files named on the command line.  Lex and yacc source
  58.   files are recognized by the .l or .y extension.
  59. - Fix: The memory allocated to the typedef symbol table was not being
  60.   freed after scanning each source file.
  61. - Fix: Failure to reset a variable during error recovery caused
  62.   segmentation faults.
  63.  
  64. Patchlevel 1
  65.  
  66. - Fix: Cproto incorrectly generated the parameter "int ..." in
  67.   prototypes of functions taking variable parameters.
  68. - Fix: Function definitions can now be followed by an optional
  69.   semicolon.  I found this feature in every C compiler I tried.
  70.  
  71. Patchlevel 0
  72.  
  73. - Added formal parameter promotion.
  74. - Added prototype style that surrounds prototypes with a guard macro.
  75. - Handles C++ style comment //.
  76. - Nifty new way to set prototype output format.
  77. - Got rid of the shell wrapper used to pipe the input through the C
  78.   preprocessor (cpp).
  79. - For the port to MS-DOS, I modified cproto to run without cpp, but
  80.   since I didn't want to reimplement cpp, the program processes only the
  81.   #include and #define directives and ignores all others.  Macro names
  82.   defined by the #define directive are treated like typedef names if
  83.   they appear in declaration specifiers.
  84.  
  85. Version 1
  86.  
  87. Patchlevel 3
  88.  
  89. - Fix: identical typedef names and struct tags should be allowed.
  90.   For example:
  91.  
  92.     typedef struct egg_salad egg_salad;
  93.  
  94.     struct egg_salad {
  95.         int mayo;
  96.     };
  97.  
  98.     void dine(egg_salad l)
  99.     {
  100.     }
  101.  
  102. Patchlevel 2
  103.  
  104. - Fix: A typedef statement should allow a list of typedefs to be declared.
  105.   Example:
  106.  
  107.     typedef int a, *b;
  108.  
  109. - Fix: When run with the -v option on this input, cproto did not output
  110.   a declaration for variable "b":
  111.  
  112.     char *a="one"; char *b="two";
  113.  
  114. - The options were renamed.  Added new options that change the output
  115.   format of the prototypes.
  116.  
  117. Patchlevel 1
  118.  
  119. - Fix: Incorrect prototypes were produced for functions that take
  120.   function pointer parameters or return a function pointer.  For example,
  121.   cproto produced an erroneous prototype for this function definition:
  122.  
  123.     void
  124.     (*signal (sig, func))()
  125.     int sig;
  126.     void (*func)();
  127.     {
  128.         /* stuff */
  129.     }
  130.  
  131. - The lexical analyser now uses LEX.  It should still be compatible with
  132.   FLEX.
  133.