Home | History | Annotate | Download | only in libform
History log of /src/lib/libform/field.c
RevisionDateAuthorComments
 1.32  13-Apr-2021  christos - fix memory leak
- xxx questionable allocation
- remove casts
- use sizeof(*var)
- bcopy -> memcpy/memmove
 1.31  09-Mar-2016  christos PR/50919: David Binderman: Re-do all the debug stuff in a more sustainable way.
 1.30  11-Dec-2015  joerg Counting from 0 to n-1 can go wrong badly, if n is unsigned and zero and
the counter variable is not of a type larger than n. Fixes PR 50490.
 1.29  07-Sep-2015  joerg Constify set_field_buffer.
 1.28  18-Oct-2014  snj src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
 1.27  21-Nov-2013  christos branches: 1.27.4;
Simplify previous.
 1.26  21-Nov-2013  blymn Correct the allocation for the reformat buffer, thanks to mlelstv for
the fix.
 1.25  03-Feb-2010  roy branches: 1.25.6; 1.25.12;
Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@
 1.24  07-Feb-2006  wiz We want size_t arguments, so just cast to size_t, instead of casting
to unsigned long and getting a warning on i386.
 1.23  24-Nov-2004  blymn * Rewrote internal handling of multiline field line data to fix a bug
where a newly opened line would immediately get wrapped out of existence.
The old method of handling lines in a multiline field did not cope with
this elegantly.

* Added new field flag O_REFORMAT which, when set, returns the field
buffer with newlines inserted where the line wrapped. Previously, there
was no way of preserving the on screen format of a multiline field.

* Added new file gdbinit which contains a macro to verify and print
the multiline field line data structure.

* Bumped libform major number due to changes in the _form_field structure.
 1.22  09-Mar-2003  lukem use __RCSID()
 1.21  09-Aug-2002  blymn Added extension to interface, set_field_printf which allows a printf
style setting of field buffers.
 1.20  05-Aug-2002  blymn set_field_opts and field_opts_on were both using the wrong pointer
resulting in libform crashing if O_STATIC was set on the default field.
 1.19  03-Aug-2002  blymn Redraw field when the flags for the field change iff the field is
attached to a form and the form is posted.
 1.18  31-Jul-2002  blymn Reposition form cursor after field redrawn when setting a field value,
since the field set may not be the current one. This fixes PR 17533.
 1.17  29-Jul-2002  blymn * Fix cursor motion bugs referred to in pr 17480
* Handle cursor motion for justifications other than left justified.
 1.16  04-Jul-2002  blymn Prevent set_field_buffer from redrawing field that is attached to a form
when the form is not posted.
 1.15  20-May-2002  blymn * Major rework to allow the TAB character in fields.
 1.14  08-Jul-2001  blymn Add missing function and make some error returns into proper eti.h
errors.
 1.13  28-Jun-2001  blymn Fix limits on dynamic fields.
 1.12  13-Jun-2001  wiz withough -> without
 1.11  04-Jun-2001  blymn * Only line wrap buffer 0 in set_field_buffer since this is the
only one displayed.
 1.10  11-May-2001  blymn * Rototilled internals to make multiline fields work correctly. Some
bugs remain such as vertical scrolling is not working and the field
is not correctly redrawn after being cleared. There are bound to be
others.
 1.9  06-Apr-2001  blymn * Fixed horizontal scrolling.
 1.8  25-Mar-2001  blymn * truncate field contents to field length if field is or becomes static
* Allow field options to be changed when field posted unless field
is the current one.
* Allow field justification to be changed when field posted unless it
is the current one.
* dynamic_field_info now returns field size in rows and columns if
the field is static - previously this was an error.
 1.7  16-Feb-2001  blymn replace strncpy with strlcpy.... 'nuff said.
 1.6  15-Feb-2001  blymn Truncate the buffer string to the field buffer size if the field is static.
 1.5  03-Feb-2001  blymn Buffer now wrapped and redrawn when buffer is set.
 1.4  30-Jan-2001  blymn When buffers are created they are given an empty string instead of just
being set to NULL. Stops us returning a NULL pointer for buffers that
are never set.
 1.3  16-Jan-2001  blymn Multiple fixes:

* A debug version of libform will be build if DEBUG_FORMS is defined
* Can no longer edit fields that do not have O_EDIT set
* Changed background attribute to A_NORMAL like ncurses
* Fixed truncation of field contents when content length == field length
* Current field is set to first visible & active field on form post
 1.2  04-Jan-2001  blymn * Changed type of userptr to be void * (now matches ncurses)
* Bumped lib major version due to above.
* Changed debug output to go to a file instead of stderr, the file gets
opened when the form is posted iff one is not already open.
 1.1  17-Dec-2000  blymn Added early release version of libform - please be gentle.
 1.25.12.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.25.6.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.27.4.1  05-Nov-2015  riz Pull up following revision(s) (requested by joerg in ticket #980):
lib/libform/form.h: revision 1.23
lib/libform/field.c: revision 1.29
Constify set_field_buffer.

RSS XML Feed