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 >
Wrap
Internet Message Format
|
1990-12-28
|
4KB
From: ross@contact.uucp (Ross Ridge)
Newsgroups: alt.sources
Subject: patch #1 to tinfo, a public domain termcap/terminfo implementation
Message-ID: <1990May20.031315.19586@contact.uucp>
Date: 20 May 90 03:13:15 GMT
This is patch #1 to the tinfo library I posted to alt.sources in April '90.
It fixes two important bugs, some compiler warnings, and a couple of typos.
tinfo merges the functions of termcap and terminfo, and can use either of
the two's databases. If you would like a copy of the original postings
(5 parts), please E-MAIL me (ross@contact.uucp), and I'll mail them to you.
Ross Ridge
Note: this is a normal diff, so if you've made your own changes to the source
patch will be less forgiving.
Index: tparm.c
Prereq: 90/03/22
6c6
< * 90/03/22 03:43:34
---
> * 90/05/19 05:47:29
16c16
< static char SCCSid[] = "@(#) tparm.c 1.1";
---
> static char SCCSid[] = "@(#) tparm.c 1.2";
452c452
< conv_char = fmt[strlen(fmt - 1)];
---
> conv_char = fmt[strlen(fmt) - 1];
Index: buildpath.c
Prereq: 90/03/22
6c6
< * 90/03/22 03:43:37
---
> * 90/04/18 07:38:59
26c26
< static char SCCSid[] = "@(#) buildpath.c 1.1";
---
> static char SCCSid[] = "@(#) buildpath.c 1.2";
63c63,64
< realloc(path, size * sizeof(struct term_path));
---
> realloc((anyptr) path,
> size * sizeof(struct term_path));
88c89
< free(p->file);
---
> free((anyptr)p->file);
Index: mkbinorder.c
Prereq: 90/03/22
6c6
< * 90/03/22 03:43:43
---
> * 90/05/19 22:29:36
14c14
< static char SCCSid[] = "@(#) mkbinorder.c 1.1";
---
> static char SCCSid[] = "@(#) mkbinorder.c 1.3";
16c16
< extern *_sboolnames[], **_snumnames[], **_sstrnames[];
---
> extern char **_sboolnames[], **_snumnames[], **_sstrnames[];
67,68c67,68
< match = bsearch((anyptr)&p2p2c, (anyptr)_sboolnames,
< NUM_OF_BOOLS, sizeof(p2p2c), _compar);
---
> match = (char ***) bsearch((anyptr)&p2p2c, (anyptr)_sboolnames,
> NUM_OF_BOOLS, sizeof(p2p2c), _compar);
88,89c88,89
< match = bsearch((anyptr)&p2p2c, (anyptr)_snumnames,
< NUM_OF_NUMS, sizeof(p2p2c), _compar);
---
> match = (char ***) bsearch((anyptr)&p2p2c, (anyptr)_snumnames,
> NUM_OF_NUMS, sizeof(p2p2c), _compar);
105,106c105,106
< match = bsearch((anyptr)&p2p2c, (anyptr)_sstrnames,
< NUM_OF_STRS, sizeof(p2p2c), _compar);
---
> match = (char ***) bsearch((anyptr)&p2p2c, (anyptr)_sstrnames,
> NUM_OF_STRS, sizeof(p2p2c), _compar);
Index: gettbin.c
Prereq: 90/03/23
6c6
< * 90/03/23 03:50:54
---
> * 90/05/19 05:46:26
16c16
< static char SCCSid[] = "@(#) gettbin.c 1.2";
---
> static char SCCSid[] = "@(#) gettbin.c 1.3";
55c55
< buf[MAX_BUF] = '\0';
---
> buf[MAX_BUF-1] = '\0';
73c73
< if (12 + sz_names + sz_bools + sz_nums + sz_offs + sz_strs > MAX_BUF)
---
> if (12 + sz_names + sz_bools + sz_nums + sz_offs + sz_strs >= MAX_BUF)
Index: conv.c
Prereq: 90/03/31
6c6
< * 90/03/31 08:48:56
---
> * 90/04/18 07:43:15
46c46
< static char SCCSid[] = "@(#) conv.c 1.4";
---
> static char SCCSid[] = "@(#) conv.c 1.5";
1127c1127
< while ((c = getopt(argc, argv, "bciBIOGUdkd:t:")) != -1) {
---
> while ((c = getopt(argc, argv, "bciBIOGUdkD:t:")) != -1) {
Index: defs.h
Prereq: 90/03/27
6c6
< * 90/03/27 18:29:27
---
> * 90/04/18 07:45:01
8c8
< * @(#) defs.h 1.2
---
> * @(#) defs.h 1.3
44c44
< #ifdef USE_PROTOYPES
---
> #ifdef USE_PROTOTYPES
64c64
< #ifdef USE_PROTYPES
---
> #ifdef USE_PROTOTYPES
Index: conv.1
Prereq: "90/04/02"
2c2
< .TH CONV 1 "90/04/02" "tinfo"
---
> .TH CONV 1 "90/05/19" "tinfo"
--
Ross Ridge //
"The Great HTMU" [oo]
ross@contact.uucp -()-
ross@watcsc.waterloo.edu //