Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: basesrc/lib/libterm



Module Name:    basesrc
Committed By:   christos
Date:           Fri Nov  2 18:24:20 UTC 2001

Modified Files:
        basesrc/lib/libterm: termcap.3 termcap.c termcap.h termcap_private.h

Log Message:
PR/10266: Jason R. Thorpe: curses programs totally broken.
Re-write t_agetstr() so that it does not use realloc so userland
programs don't break. We now use an internal buffer to keep track
of the memory we allocate. This changes the api of t_agetstr() to
take 2 fewer arguments, but there are not many programs that use it.
Please note that this does not change binary compatibility with the
previous t_agetstr() since the usage was:

        char *area, *p;

        *area = NULL;
        t_agetstr(ti, "ic", &area, &p);
        ...
        free(area);

Since we don't touch the arguments and free(NULL) is a no-op, nothing
breaks.

Since we don't break binary compatibility there is no reason to bump
the library's major number, but since we change t_agetstr() I'll bump
the minor number for good measure.


To generate a diff of this commit:
cvs rdiff -r1.21 -r1.22 basesrc/lib/libterm/termcap.3
cvs rdiff -r1.39 -r1.40 basesrc/lib/libterm/termcap.c
cvs rdiff -r1.12 -r1.13 basesrc/lib/libterm/termcap.h
cvs rdiff -r1.3 -r1.4 basesrc/lib/libterm/termcap_private.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index