Commit Graph

126 Commits

Author SHA1 Message Date
christos
2ca947f5e7 Coverity CID 107[123]: Leave the assertions in the code, not only when DEBUG
is set.
2006-03-19 20:08:09 +00:00
christos
51566e9c85 Coverity CID 1553: Fix memory leak. While here, fix malloc calls:
- don't cast
- use sizeof(var) instead of sizeof(type)
2006-03-19 20:02:27 +00:00
wiz
9ea0254b5a We want size_t arguments, so just cast to size_t, instead of casting
to unsigned long and getting a warning on i386.
2006-02-07 20:07:42 +00:00
peter
3d73a5fb3f Add missing prototype for set_max_field() and bump date.
From xs at kittenz dot org in PR/18668.
2005-10-15 12:43:20 +00:00
wiz
b86a72cb8b Improve RETURN VALUES section. 2004-11-24 12:47:20 +00:00
wiz
20a78941e4 Mark up TRUE and FALSE. 2004-11-24 12:42:51 +00:00
wiz
f039f78c3f \-1, not -1. 2004-11-24 12:40:54 +00:00
wiz
f91573afd7 Mark up NULL. 2004-11-24 12:26:23 +00:00
wiz
7b09170529 Use Aq instead of \*[Lt]\*[Gt]. 2004-11-24 12:12:19 +00:00
wiz
a7804596c1 Bump date for previous; mark up defined values with Dv;
use Aq instead of \*[Lt]\*[Gt].
2004-11-24 12:09:13 +00:00
blymn
19f07fb20a * 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.
2004-11-24 11:57:09 +00:00
itojun
da88342476 NI_WITHSCOPEID was not picked up by IETF standardization process 2004-11-16 06:04:12 +00:00
dsl
1793b7dd69 Use (unsigned char) cast to sanitise arguments to ctype functions. 2004-10-28 21:14:52 +00:00
dsl
d349cd6749 Fix a load of international alphabet problems with isxxx() and toupper()
Change isspace(*char_ptr) to isspace(*char_ptr & 0xff) so that the correct
piece of memory is looked at for the bit mask.
gcc optimises out the '& 0xff' (on i386 at least).
Fixes problems found by gcc when the splurious (int) cast is removed
from the #defines in ctype.h
2004-10-27 19:59:24 +00:00
simonb
9bc855a931 s/the the/the/ (only in sources that aren't regularly imported from
elsewhere).
2004-04-23 02:58:27 +00:00
wiz
6cbd2718d7 Use mdoc macros instead of roff to mark up table;
mark up some more stuff.
2004-04-21 11:45:42 +00:00
kim
293fb86ada Formatting tweaks to make things line up yet not have columns
run into each other.  Fix one typo while here.
2004-04-21 02:46:34 +00:00
jdc
ad95b1541c Increment major number (to 4) because of the libcurses major number change
and because of the change to match_enum().
2004-03-22 19:00:09 +00:00
jdc
582694413f Correct the fourth parameter to match_enum() to "exact" instead of "no blanks".
From Brett Lymn.
Part of the fix for PR bin/24604.
2004-03-22 18:59:48 +00:00
blymn
316f67d63e Add defines MIN_FORM_COMMAND and MAX_FORM_COMMAND for ncurses
compatibility.  This closes PR 20029.
2004-01-23 13:01:17 +00:00
salo
99410184e7 netbsd.org->NetBSD.org 2003-07-26 19:24:24 +00:00
lukem
c6af0a620d clear errno before strtol() if we're going to test it for ERANGE afterwards 2003-04-17 03:25:56 +00:00
wiz
472351e13d Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
perry
8e25ed3ff9 currrent->current, accomodate->accommodate from Igor Sobrado PR misc/19814
also recognise->recognize (sorry, I know, flames anticipated.)
2003-03-31 18:44:09 +00:00
perry
c286c47561 curent->current from Igor Sobrado in PR misc/19814
plus some other spelling errors and (sorry) some UK->USing for
consistency.
2003-03-31 18:41:51 +00:00
wiz
83de4abed2 Use "its" instead of "it's" where appropriate.
From Soren Jacobsen in PR 20730.
2003-03-15 23:48:27 +00:00
lukem
a2ed7b2d73 use __RCSID() 2003-03-09 00:57:17 +00:00
wiz
03c12ea0f3 New sentence, new line. From Robert Elz. 2002-10-01 19:15:15 +00:00
blymn
841a6ed66f Allow either the field_check or char_check pointers to be NULL, as
suggested in PR 18028.
2002-08-22 11:34:00 +00:00
blymn
67d86161c7 Added MLINK entries to link all function names to their respective
man page.
2002-08-11 11:57:44 +00:00
blymn
c4f23a93e4 Added extension to interface, set_field_printf which allows a printf
style setting of field buffers.
2002-08-09 14:15:12 +00:00
blymn
d0dbcd8f3c Fix null dereference in set_field_type. 2002-08-07 13:57:03 +00:00
blymn
d87fd85949 Prevent field scrolling when REQ_RIGHT_CHAR hits the RHS of the field. 2002-08-07 11:05:10 +00:00
wiz
6bce40bcab The argument of .Fn should look like this:
.Fn function_name "int first" "char *second"
not like this:
.Fn function_name "int first, char *second".
2002-08-06 12:44:34 +00:00
wiz
af9ce6b208 Fix mdoc. Closes lib/17855. 2002-08-06 12:35:39 +00:00
blymn
ad3d412058 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.
2002-08-05 12:43:44 +00:00
blymn
8d09f0f70d Redraw field when the flags for the field change iff the field is
attached to a form and the form is posted.
2002-08-03 14:34:22 +00:00
blymn
93ae143731 Do not free the first element of the fields array. This fixes pr 17754. 2002-08-02 14:10:25 +00:00
blymn
4e295cd045 Allow REQ_RIGHT_CHAR to get to the end of the line. 2002-08-02 11:49:18 +00:00
blymn
a5ab810726 Refresh window after a driver command. 2002-08-02 11:48:02 +00:00
blymn
fa8f5d02f8 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.
2002-07-31 01:28:32 +00:00
blymn
90d6019c5e * Fix bad function reference. 2002-07-29 05:23:30 +00:00
blymn
d0d41d9fd4 * Fix cursor motion bugs referred to in pr 17480
* Handle cursor motion for justifications other than left justified.
2002-07-29 05:17:37 +00:00
blymn
ecd0dffb79 * 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.
2002-07-08 10:43:37 +00:00
blymn
8845943881 Prevent set_field_buffer from redrawing field that is attached to a form
when the form is not posted.
2002-07-04 10:51:02 +00:00
blymn
5ce770b15c Fixed typo in type declaration. 2002-06-19 14:12:57 +00:00
blymn
759e545dce * Major rework to allow the TAB character in fields. 2002-05-20 15:00:11 +00:00
wiz
f8d8496236 Two fixes by Patrick Welche, and two by me. 2002-02-20 17:45:42 +00:00
wiz
0b7fe888c8 Normalize Dd. 2002-02-20 11:30:57 +00:00
wiz
8a5f4f7cae Normalize Dd, use Nx. 2002-02-20 11:30:35 +00:00