home *** CD-ROM | disk | FTP | other *** search
- diff -c old/CHANGES new/CHANGES
- *** old/CHANGES Sat Nov 28 23:18:24 1992
- --- new/CHANGES Tue Dec 01 21:03:42 1992
- ***************
- *** 1,16 ****
- Version 3
-
- Patchlevel 5
-
- - Fix: The -v option did not output declarations for function pointers.
- - Fix: String literals continued over more than one line messed up the
- line number count.
- ! - Fix: The program generated incorrect prototypes for functions that take
- ! a variable argument list using <varargs.h>.
- ! - Fix: When converting functions from the standard input, cproto generated
- ! no output if no functions needed to be converted.
- - Fix: Now does not output a warning if an untagged struct is found in a
- typedef declaration.
- - Added the -b option which rewrites function definition heads to
- include both old style and new style declarations separated by a
- conditional compilation directive. For example, the program can
- --- 1,27 ----
- Version 3
-
- + Patchlevel 6
- +
- + - Fix: A function in lex.l exploited the ANSI C feature of concatenating
- + string literals. This prevented the module from being compiled with
- + pre-ANSI C compilers.
- +
- Patchlevel 5
-
- - Fix: The -v option did not output declarations for function pointers.
- +
- - Fix: String literals continued over more than one line messed up the
- line number count.
- !
- ! - Fix: The program generated incorrect prototypes for functions that
- ! take a variable argument list using <varargs.h>.
- !
- ! - Fix: When converting functions from the standard input, cproto
- ! generated no output if no functions needed to be converted.
- !
- - Fix: Now does not output a warning if an untagged struct is found in a
- typedef declaration.
- +
- - Added the -b option which rewrites function definition heads to
- include both old style and new style declarations separated by a
- conditional compilation directive. For example, the program can
- ***************
- *** 30,43 ****
- {
- }
-
- ! Added the -B option to set the preprocessor directive that appears
- ! at the beginning of such definitions.
- ! - Added the keyword "interrupt" to the set of type qualifiers when compiled
- ! on a UNIX system.
- - The MS-DOS version now recognizes the type modifiers introduced by
- Microsoft C/C++ 7.00.
- - Now recognizes ANSI C trigraphs (yuck!).
- - Now use "#if __STDC__" instead of "#if defined(__STDC__)".
- - GNU bison orders the y.tab.c sections differently than yacc, which
- resulted in references to variables before they were declared. The
- grammar specification was modified to also be compatible with bison.
- --- 41,59 ----
- {
- }
-
- ! Added the -B option to set the preprocessor directive that appears at
- ! the beginning of such definitions.
- !
- ! - Added the keyword "interrupt" to the set of type qualifiers when
- ! compiled on a UNIX system.
- !
- - The MS-DOS version now recognizes the type modifiers introduced by
- Microsoft C/C++ 7.00.
- +
- - Now recognizes ANSI C trigraphs (yuck!).
- +
- - Now use "#if __STDC__" instead of "#if defined(__STDC__)".
- +
- - GNU bison orders the y.tab.c sections differently than yacc, which
- resulted in references to variables before they were declared. The
- grammar specification was modified to also be compatible with bison.
- diff -c old/lex.l new/lex.l
- *** old/lex.l Sat Nov 28 23:54:16 1992
- --- new/lex.l Tue Dec 01 21:04:42 1992
- ***************
- *** 1,5 ****
- %{
- ! /* $Id: lex.l 3.8 1992/11/29 04:54:14 cthuang Exp $
- *
- * Lexical analyzer for C function prototype generator
- */
- --- 1,5 ----
- %{
- ! /* $Id: lex.l 3.9 1992/12/02 02:04:35 cthuang Exp $
- *
- * Lexical analyzer for C function prototype generator
- */
- ***************
- *** 294,299 ****
- --- 294,300 ----
- static void
- get_cpp_directive ()
- {
- + static char cont_trigraph[] = { '?', '?', '/', '\0' };
- char c, lastc[4];
-
- lastc[0] = lastc[1] = lastc[2] = lastc[3] = '\0';
- ***************
- *** 304,310 ****
- switch (c) {
- case '\n':
- cur_file->line_num++;
- ! if (lastc[2] != '\\' && strcmp(lastc, "??""/") != 0) {
- BEGIN INITIAL;
- return;
- }
- --- 305,311 ----
- switch (c) {
- case '\n':
- cur_file->line_num++;
- ! if (lastc[2] != '\\' && strcmp(lastc, cont_trigraph) != 0) {
- BEGIN INITIAL;
- return;
- }
- diff -c old/patchlev.h new/patchlev.h
- *** old/patchlev.h Fri Jun 26 08:27:12 1992
- --- new/patchlev.h Tue Dec 01 09:52:28 1992
- ***************
- *** 1 ****
- ! #define PATCHLEVEL 5
- --- 1 ----
- ! #define PATCHLEVEL 6
-