Home | History | Annotate | Download | only in libform
History log of /src/lib/libform/internals.c
RevisionDateAuthorComments
 1.43  01-Aug-2023  mrg pass the struct size to malloc(), not the pointer size.
found by GCC 12.
 1.42  25-Oct-2021  blymn Fix for PR lib/47398

Move cursor to end of the currently active field and sync the cursor
location so the cursor get positioned correctly when the form window
is refreshed.
 1.41  19-Oct-2021  blymn Fix for PR lib/47397

Fix a misinterpretation of the role of field fore and back. Now field
pad is rendered in the back attribute always instead of only being used
for the non-current field.
 1.40  13-Apr-2021  christos - fix memory leak
- xxx questionable allocation
- remove casts
- use sizeof(*var)
- bcopy -> memcpy/memmove
 1.39  08-Nov-2018  msaitoh "s/ are are / are /" in comment. No functional change.
 1.38  09-Mar-2016  christos branches: 1.38.14; 1.38.16;
PR/50919: David Binderman: Re-do all the debug stuff in a more sustainable way.
 1.37  26-Nov-2013  christos goodbye CIRCLEQ, welcome TAILQ
 1.36  19-Jan-2013  mbalmer Fix typo.
 1.35  23-May-2011  joerg branches: 1.35.4; 1.35.10;
Save space, kill some ()
 1.34  13-May-2010  tnozaki cast isblank(3)'s argument to unsigned char.
 1.33  03-Feb-2010  roy Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@
 1.32  09-Apr-2006  christos make debug build work.
 1.31  19-Mar-2006  christos Coverity CID 107[123]: Leave the assertions in the code, not only when DEBUG
is set.
 1.30  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.29  09-Mar-2003  lukem use __RCSID()
 1.28  07-Aug-2002  blymn Prevent field scrolling when REQ_RIGHT_CHAR hits the RHS of the field.
 1.27  02-Aug-2002  blymn Allow REQ_RIGHT_CHAR to get to the end of the line.
 1.26  29-Jul-2002  blymn * Fix bad function reference.
 1.25  29-Jul-2002  blymn * Fix cursor motion bugs referred to in pr 17480
* Handle cursor motion for justifications other than left justified.
 1.24  08-Jul-2002  blymn * Set character attributes when adding pad to field, null fields will
now be displayed correctly (fixes part 1 of pr 17480)
* Prevent field manipulations on null fields, the fields have nothing in
them so they should not be manipulated.
 1.23  20-May-2002  blymn * Major rework to allow the TAB character in fields.
 1.22  05-Aug-2001  blymn * Wrap field size checking into a function, makes if's more readable
* Fixed bad post character calculation on a dynamic single line field
that has field contents greater than the field length and had scrolled.
 1.21  28-Jun-2001  blymn Fix limits on dynamic fields.
 1.20  23-Jun-2001  blymn * Fixed REQ_DEL_CHAR for multi-line fields.
* Fixed REQ_DEL_LINE for multi-line fields.
 1.19  04-Jun-2001  blymn * Make req_del_prev work in multiline field.
 1.18  25-May-2001  blymn * Fix forward word and backward word driver commands.
 1.17  23-May-2001  blymn * Fix some of the cursor motion commands to handle multiline fields
* Fix line wrapping code for multiline fields
 1.16  16-May-2001  blymn Fixed wrapping of multiline fields.
 1.15  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.14  06-Apr-2001  blymn * Fix horizontal scrolling
* Fix cursor positioning at the end of a static field
* Fix the end field request handler.
 1.13  25-Mar-2001  blymn * Fix wrapping behaviour - O_WRAP turns on/off wrapping on word
boundaries.
* Only justify static fields and only scroll dynamic fields.
* Handle O_PUBLIC and O_VISIBLE flags when drawing field.
* Changes to support new curses window handling.
 1.12  15-Feb-2001  blymn Avoid trying to wrap a single row field.
 1.11  10-Feb-2001  blymn Check NULL0K _before_ PASSOK and clean up the PASSOK logic.
 1.10  06-Feb-2001  blymn * Moved field overflow check into _formi_add_char to allow overwriting a
full field.
* Fixed buf0_status being reset so O_BLANK now works correctly.
 1.9  03-Feb-2001  blymn Fixed the counting of rows in the field.
Fixed O_NULLOK handling in field validation
 1.8  30-Jan-2001  blymn Added field and character checking.
 1.7  23-Jan-2001  blymn Fix off by one bug in field scrolling decision when inserting chars.
 1.6  22-Jan-2001  blymn Don't manipulate a field with a null string pointer.
Cleaned up debug code to handle null string pointer case too.
 1.5  18-Jan-2001  blymn Fixed segv if a field that never had buffer 0 set has characters added
to it.
 1.4  18-Jan-2001  blymn * Stop next/prev field commands wrapping
* Made debug file open a function call that can be called multiple
times.
* Fixed the enum type.
 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.35.10.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.35.10.1  25-Feb-2013  tls resync with head
 1.35.4.2  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.35.4.1  23-Jan-2013  yamt sync with head
 1.38.16.1  10-Jun-2019  christos Sync with HEAD
 1.38.14.1  26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts

RSS XML Feed