home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / misc / volume28 / cproto / patch01 < prev    next >
Encoding:
Text File  |  1992-03-21  |  3.1 KB  |  103 lines

  1. Newsgroups: comp.sources.misc
  2. From: cthuang@zerosan.UUCP (Chin Huang)
  3. Subject:  v28i118:  cproto - generate C function prototypes v3, Patch01
  4. Message-ID: <1992Mar22.042842.8579@sparky.imd.sterling.com>
  5. X-Md4-Signature: 2cf2108cd9ee114a6ab148e2c2563d8b
  6. Date: Sun, 22 Mar 1992 04:28:42 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: cthuang@zerosan.UUCP (Chin Huang)
  10. Posting-number: Volume 28, Issue 118
  11. Archive-name: cproto/patch01
  12. Environment: UNIX, MS-DOS, getopt, lex, yacc
  13. Patch-To: cproto: Volume 28, Issue 100-101
  14.  
  15. This patch fixes the segmentation faults on UNIX systems when cproto is
  16. used to convert function definitions.
  17.  
  18. #! /bin/sh
  19. # This is a shell archive.  Remove anything before this line, then unpack
  20. # it by saving it into a file and typing "sh file".  To overwrite existing
  21. # files, type "sh file -c".  You can also feed this as standard input via
  22. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  23. # will see the following message at the end:
  24. #        "End of shell archive."
  25. # Contents:  patch1
  26. # Wrapped by cthuang@zerosan.UUCP on Mon Mar 16 10:23:01 1992
  27. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  28. if test -f patch1 -a "${1}" != "-c" ; then 
  29.   echo shar: Will not over-write existing file \"patch1\"
  30. else
  31. echo shar: Extracting \"patch1\" \(1522 characters\)
  32. sed "s/^X//" >patch1 <<'END_OF_patch1'
  33. Xdiff -c old/CHANGES new/CHANGES
  34. X*** old/CHANGES    Sat Mar 14 12:14:46 1992
  35. X--- new/CHANGES    Mon Mar 16 10:15:44 1992
  36. X***************
  37. X*** 1,5 ****
  38. X--- 1,9 ----
  39. X  Version 3
  40. X  
  41. X+ Patchlevel 1
  42. X+ 
  43. X+ - Fix: The program was calling ftell() on an invalid FILE pointer.
  44. X+ 
  45. X  Patchlevel 0
  46. X  
  47. X  - Added options to convert function definitions between the old style
  48. Xdiff -c old/lex.l new/lex.l
  49. X*** old/lex.l    Mon Mar 16 10:17:30 1992
  50. X--- new/lex.l    Mon Mar 16 10:09:18 1992
  51. X***************
  52. X*** 235,247 ****
  53. X          break;
  54. X      case '/':
  55. X          if (lastc == '*') {
  56. X!         if (cur_file->convert && func_params && cur_declarator) {
  57. X!             cur_declarator->begin_comment = begin_comment;
  58. X!             begin_comment = ftell(cur_file->tmp_file);
  59. X!             cur_declarator->end_comment = begin_comment;
  60. X!             cur_declarator = NULL;
  61. X!         } else {
  62. X!             end_comment = ftell(cur_file->tmp_file);
  63. X          }
  64. X          return;
  65. X          }
  66. X--- 235,249 ----
  67. X          break;
  68. X      case '/':
  69. X          if (lastc == '*') {
  70. X!         if (cur_file->convert) {
  71. X!             if (func_params && cur_declarator) {
  72. X!             cur_declarator->begin_comment = begin_comment;
  73. X!             begin_comment = ftell(cur_file->tmp_file);
  74. X!             cur_declarator->end_comment = begin_comment;
  75. X!             cur_declarator = NULL;
  76. X!             } else {
  77. X!             end_comment = ftell(cur_file->tmp_file);
  78. X!             }
  79. X          }
  80. X          return;
  81. X          }
  82. Xdiff -c old/patchlev.h new/patchlev.h
  83. X*** old/patchlev.h    Mon Mar 16 10:19:22 1992
  84. X--- new/patchlev.h    Mon Mar 16 10:11:14 1992
  85. X***************
  86. X*** 1,1 ****
  87. X! #define PATCHLEVEL 0
  88. X--- 1,1 ----
  89. X! #define PATCHLEVEL 1
  90. END_OF_patch1
  91. if test 1522 -ne `wc -c <patch1`; then
  92.     echo shar: \"patch1\" unpacked with wrong size!
  93. fi
  94. # end of overwriting check
  95. fi
  96. echo shar: End of shell archive.
  97. exit 0
  98.  
  99. -- 
  100. Chin Huang  cthuang@zerosan.UUCP  chin.huang@canrem.com
  101.  
  102. exit 0 # Just in case...
  103.