home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1351 < prev    next >
Internet Message Format  |  1990-12-28  |  4KB

  1. From: ross@contact.uucp (Ross Ridge)
  2. Newsgroups: alt.sources
  3. Subject: patch #1 to tinfo, a public domain termcap/terminfo implementation
  4. Message-ID: <1990May20.031315.19586@contact.uucp>
  5. Date: 20 May 90 03:13:15 GMT
  6.  
  7. This is patch #1 to the tinfo library I posted to alt.sources in April '90.
  8. It fixes two important bugs, some compiler warnings, and a couple of typos.
  9.  
  10. tinfo merges the functions of termcap and terminfo, and can use either of
  11. the two's databases.  If you would like a copy of the original postings
  12. (5 parts), please E-MAIL me (ross@contact.uucp), and I'll mail them to you.
  13.  
  14.                                 Ross Ridge
  15.  
  16. Note: this is a normal diff, so if you've made your own changes to the source
  17.       patch will be less forgiving.
  18.  
  19. Index: tparm.c
  20. Prereq: 90/03/22
  21. 6c6
  22. <  * 90/03/22 03:43:34
  23. ---
  24. >  * 90/05/19 05:47:29
  25. 16c16
  26. < static char SCCSid[] = "@(#) tparm.c 1.1";
  27. ---
  28. > static char SCCSid[] = "@(#) tparm.c 1.2";
  29. 452c452
  30. <                 conv_char = fmt[strlen(fmt - 1)];
  31. ---
  32. >                 conv_char = fmt[strlen(fmt) - 1];
  33. Index: buildpath.c
  34. Prereq: 90/03/22
  35. 6c6
  36. <  * 90/03/22 03:43:37
  37. ---
  38. >  * 90/04/18 07:38:59
  39. 26c26
  40. < static char SCCSid[] = "@(#) buildpath.c 1.1";
  41. ---
  42. > static char SCCSid[] = "@(#) buildpath.c 1.2";
  43. 63c63,64
  44. <                 realloc(path, size * sizeof(struct term_path));
  45. ---
  46. >                 realloc((anyptr) path,
  47. >                     size * sizeof(struct term_path));
  48. 88c89
  49. <         free(p->file);
  50. ---
  51. >         free((anyptr)p->file);
  52. Index: mkbinorder.c
  53. Prereq: 90/03/22
  54. 6c6
  55. <  * 90/03/22 03:43:43
  56. ---
  57. >  * 90/05/19 22:29:36
  58. 14c14
  59. < static char SCCSid[] = "@(#) mkbinorder.c 1.1";
  60. ---
  61. > static char SCCSid[] = "@(#) mkbinorder.c 1.3";
  62. 16c16
  63. < extern *_sboolnames[], **_snumnames[], **_sstrnames[];
  64. ---
  65. > extern char **_sboolnames[], **_snumnames[], **_sstrnames[];
  66. 67,68c67,68
  67. <         match = bsearch((anyptr)&p2p2c, (anyptr)_sboolnames,
  68. <                 NUM_OF_BOOLS, sizeof(p2p2c), _compar);
  69. ---
  70. >         match = (char ***) bsearch((anyptr)&p2p2c, (anyptr)_sboolnames,
  71. >                           NUM_OF_BOOLS, sizeof(p2p2c), _compar);
  72. 88,89c88,89
  73. <         match = bsearch((anyptr)&p2p2c, (anyptr)_snumnames,
  74. <                 NUM_OF_NUMS, sizeof(p2p2c), _compar);
  75. ---
  76. >         match = (char ***) bsearch((anyptr)&p2p2c, (anyptr)_snumnames,
  77. >                        NUM_OF_NUMS, sizeof(p2p2c), _compar);
  78. 105,106c105,106
  79. <         match = bsearch((anyptr)&p2p2c, (anyptr)_sstrnames,
  80. <                 NUM_OF_STRS, sizeof(p2p2c), _compar);
  81. ---
  82. >         match = (char ***) bsearch((anyptr)&p2p2c, (anyptr)_sstrnames,
  83. >                                NUM_OF_STRS, sizeof(p2p2c), _compar);
  84. Index: gettbin.c
  85. Prereq: 90/03/23
  86. 6c6
  87. <  * 90/03/23 03:50:54
  88. ---
  89. >  * 90/05/19 05:46:26
  90. 16c16
  91. < static char SCCSid[] = "@(#) gettbin.c 1.2";
  92. ---
  93. > static char SCCSid[] = "@(#) gettbin.c 1.3";
  94. 55c55
  95. <     buf[MAX_BUF] = '\0';
  96. ---
  97. >     buf[MAX_BUF-1] = '\0';
  98. 73c73
  99. <     if (12 + sz_names + sz_bools + sz_nums + sz_offs + sz_strs > MAX_BUF)
  100. ---
  101. >     if (12 + sz_names + sz_bools + sz_nums + sz_offs + sz_strs >= MAX_BUF)
  102. Index: conv.c
  103. Prereq: 90/03/31
  104. 6c6
  105. <  * 90/03/31 08:48:56
  106. ---
  107. >  * 90/04/18 07:43:15
  108. 46c46
  109. < static char SCCSid[] = "@(#) conv.c 1.4";
  110. ---
  111. > static char SCCSid[] = "@(#) conv.c 1.5";
  112. 1127c1127
  113. <     while ((c = getopt(argc, argv, "bciBIOGUdkd:t:")) != -1) {
  114. ---
  115. >     while ((c = getopt(argc, argv, "bciBIOGUdkD:t:")) != -1) {
  116. Index: defs.h
  117. Prereq: 90/03/27
  118. 6c6
  119. <  * 90/03/27 18:29:27
  120. ---
  121. >  * 90/04/18 07:45:01
  122. 8c8
  123. <  * @(#) defs.h 1.2
  124. ---
  125. >  * @(#) defs.h 1.3
  126. 44c44
  127. < #ifdef USE_PROTOYPES
  128. ---
  129. > #ifdef USE_PROTOTYPES
  130. 64c64
  131. < #ifdef USE_PROTYPES
  132. ---
  133. > #ifdef USE_PROTOTYPES
  134. Index: conv.1
  135. Prereq: "90/04/02"
  136. 2c2
  137. < .TH CONV 1 "90/04/02" "tinfo"
  138. ---
  139. > .TH CONV 1 "90/05/19" "tinfo"
  140. -- 
  141. Ross Ridge                                 //
  142. "The Great HTMU"                            [oo]
  143. ross@contact.uucp                            -()-
  144. ross@watcsc.waterloo.edu                         //
  145.