head	1.12;
access;
symbols
	RELENG_2_1_6_1_RELEASE:1.8.4.3
	RELENG_2_1_6_RELEASE:1.8.4.3
	RELENG_2_1_5_RELEASE:1.8.4.3
	RELENG_2_1_0_RELEASE:1.8
	RELENG_2_1_0:1.8.0.4
	RELENG_2_1_0_BP:1.8
	RELENG_2_0_5_RELEASE:1.8
	RELENG_2_0_5:1.8.0.2
	RELENG_2_0_5_BP:1.8
	RELENG_2_0_5_ALPHA:1.8
	RELEASE_2_0:1.1
	BETA_2_0:1.1;
locks; strict;
comment	@# @;


1.12
date	96.06.19.21.19.12;	author jkh;	state dead;
branches;
next	1.11;

1.11
date	96.06.02.17.08.30;	author phk;	state Exp;
branches;
next	1.10;

1.10
date	96.05.30.22.54.10;	author phk;	state Exp;
branches;
next	1.9;

1.9
date	95.08.06.12.23.37;	author bde;	state Exp;
branches;
next	1.8;

1.8
date	95.05.12.17.16.03;	author paul;	state Exp;
branches
	1.8.4.1;
next	1.7;

1.7
date	95.04.15.17.15.11;	author ats;	state Exp;
branches;
next	1.6;

1.6
date	95.03.26.07.44.16;	author paul;	state Exp;
branches;
next	1.5;

1.5
date	95.03.01.08.18.42;	author paul;	state Exp;
branches;
next	1.4;

1.4
date	95.02.01.04.04.38;	author paul;	state Exp;
branches;
next	1.3;

1.3
date	95.01.24.22.09.46;	author ache;	state Exp;
branches;
next	1.2;

1.2
date	95.01.10.04.00.28;	author paul;	state Exp;
branches;
next	1.1;

1.1
date	94.11.13.06.45.38;	author paul;	state Exp;
branches;
next	;

1.8.4.1
date	96.06.03.05.11.41;	author jkh;	state Exp;
branches;
next	1.8.4.2;

1.8.4.2
date	96.06.05.02.52.32;	author jkh;	state Exp;
branches;
next	1.8.4.3;

1.8.4.3
date	96.06.20.14.15.03;	author jkh;	state dead;
branches;
next	;


desc
@@


1.12
log
@Remove libforms, it was never used.
@
text
@LIB = forms
SHLIB_MAJOR= 3
SHLIB_MINOR= 0

SRCS = debug.c bindings.c parser.y lex.l forms.c objects.c ncurses.c

CFLAGS += -I. -I${.CURDIR} -DHASH_STATS #-g -DDEBUG -Wall -ansi -pedantic -Dlint
LDFLAGS += -ll

CLEANFILES+= lex.c parser.c y.tab.h

beforeinstall:
	@@(cd ${.CURDIR}; cmp -s forms.h ${DESTDIR}/usr/include/forms.h || \
	   ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 forms.h \
	   ${DESTDIR}/usr/include/forms.h;)

.include <bsd.lib.mk>
@


1.11
log
@backup yacc changes
@
text
@@


1.10
log
@yacc rule change.
@
text
@d10 1
a10 1
CLEANFILES+= lex.c parser.c parser.tab.h
@


1.9
log
@Change `install' to `${INSTALL}' so that default install flags can be
specified in the top level Makefiles.

Previously I missed dozens of Makefiles that skip the install after
using `cmp -s' to decide that the install isn't necessary.
@
text
@d10 1
a10 1
CLEANFILES+= lex.c parser.c y.tab.h
@


1.8
log
@New libforms.
Bumped major number.

Ncurses backend still needs improving.
Other back-ends need to be written.
@
text
@d14 1
a14 1
	   install -c -o ${BINOWN} -g ${BINGRP} -m 444 forms.h \
@


1.8.4.1
log
@Phase 2 of merge - also fix things broken in phase 1.
Watch out for falling rock until phase 3 is over!

libc completely merged except for phkmalloc & rfork (don't know if David
wants that).

Some include files in sys/ had to be updated in order to bring in libc.
@
text
@d14 1
a14 1
	   ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 forms.h \
@


1.8.4.2
log
@This 3rd mega-commit should hopefully bring us back to where we were.
I can get it to `make world' succesfully, anyway!
@
text
@d14 1
a14 1
	   install -c -o ${BINOWN} -g ${BINGRP} -m 444 forms.h \
@


1.8.4.3
log
@Merge from HEAD
@
text
@@


1.7
log
@Removed the y.tab.h file from the sources. It is automatically generated
from yacc.
Put the lex.c parser.c and y.tab.h into a CLEANFILES target in the
makefile, they are all generated and need to be removed on a clean.
@
text
@d2 2
d5 1
a5 1
SRCS = forms.c parser.y lex.l menu.c fields.c
d7 1
a7 1
CFLAGS += -I. -I${.CURDIR} -Wall -g -DHASH_STATS
@


1.6
log
@Use a hash table to hold all the bindings info rather than a linked list.

Forms now have their own local bindings table so that anything
declared within a form is local to that form. This means you can
have fields of the same name in different forms.

Added inlined attribute setting for strings e.g. "This is \bold bold"

Added entry and exit functions for fields.
@
text
@d8 2
@


1.5
log
@Completely rewrite libforms so everything is done at runtime rather
than at compile time.

Should have same functionality as old libforms but with new mechanism.

Lots of new features that use the new mechanism are still to be added.
@
text
@d5 1
a5 1
CFLAGS += -I. -I${.CURDIR} -Wall -g
@


1.4
log
@Implemented height field for text fields so they can now be more than
one line long.

Fixed a bug in the input field with cursor positioning at the end of
the field.

Make the print_status function available to apps so they can print
status messages.

Updated the example for the new fib parser.
@
text
@d3 1
a3 1
SRCS = forms.c
d6 1
@


1.3
log
@CFLAGS: = --> +=
@
text
@d5 1
a5 1
CFLAGS += -I. -I${.CURDIR} -Wall
@


1.2
log
@New forms library. This provides some basic functions for writing
input forms. It has the following simple fields:

Text fields: Just titles, labels etc.

Input fields: An editable text field that may or may not have an
initial default value.

Labelled input field: This is an input field that has an initial
informative entry in it but it vanishes when you start editing the
field.

Toggle fields: These are fields with a pre-defined list of options
which you cycle through using the space bar.

Action fields: These are button type fields that call functions when
they are selected.

A simple demo is included in examples.
@
text
@d5 1
a5 1
CFLAGS = -I. -I${.CURDIR} -Wall
@


1.1
log
@The start of a forms editor library. Currently implements text and
input fields. It reads a template file passed to init_forms(char *)
and creates a curses based form editor. See the examples directory
for a basic demo.
@
text
@d3 1
a3 2
SRCS = forms.c yacc.c lex.c
CLEANFILES += y.tab.h lex.c yacc.c
d5 1
a5 1
CFLAGS = -I. -I${.CURDIR}
d9 2
a10 2
		install -c -o ${BINOWN} -g ${BINGRP} -m 444 forms.h \
		${DESTDIR}/usr/include/forms.h;)
@
