Commit Graph

220 Commits

Author SHA1 Message Date
Thomas Jensen
532bd941b3 Eliminated use of PATH_MAX in order to ease porting
Restructured infile/outfile code to eliminate need for access() function
and improve readability
Added file type check before reading config file. boxes used to generate
a weird error message if the config file is a directory
1999-09-10 19:21:05 +00:00
Thomas Jensen
c4f5a6a04c Renamed current snapshot archive file to boxes-SNAP-latest.tar.gz
Added "milestones": Draw horizontal ruler at particular times (v1 out etc.)
1999-09-10 17:33:32 +00:00
Thomas Jensen
a5119027eb Added concat_strings() function prototype from Joe Zbiciak's patches 1999-08-31 15:38:42 +00:00
Thomas Jensen
fc2a00f0dc Applied Joe Zbiciak's patches to remove all snprintf()s and variants
Replaced snprintf() calls with calls to concat_strings() in the process
1999-08-31 15:37:01 +00:00
Thomas Jensen
b84e9ed503 Applied Joe Zbiciak's patches to remove all snprintf()s and variants
Added concat_strings() function and changed yyerror() in the process
1999-08-31 15:35:13 +00:00
Thomas Jensen
2535f9f8f5 Bugfix: Changed empty #elif to #else (thanks Tommy Williams)
Port to i386/FreeBSD by Tommy Williams
1999-08-25 13:38:37 +00:00
Thomas Jensen
2789ab4a5e Added comment to guide user to GLOBALCONF definition line 1999-08-22 11:43:55 +00:00
Thomas Jensen
5756a3c9fb Added some more REVERSE statements where only REPLACE statements were so far
Replaced some hardcoded padding values with padding statements
Added padding to some more box designs
Changed headline design regexp rules to not bother indentation when
indentmode is "text"
1999-08-22 11:37:27 +00:00
Thomas Jensen
d3a64d0677 Removed const from 2nd parameter of justify_line() function 1999-08-22 11:36:45 +00:00
Thomas Jensen
70ba492f26 Bugfix: no-input-check must take place before indentation computation 1999-08-22 11:34:46 +00:00
Thomas Jensen
d48b49df33 Renamed file from boxes.1 to boxes.1.in
Version number and name of global config file are now put in automatically
Updates for version 1.0
1999-08-21 23:41:25 +00:00
Thomas Jensen
ee53c330b8 Added GLOBALCONF and BVERSION macros whose values are put into boxes.h and
boxes.1
Added locsnap target for generation of archives without posting to the Web
page
Added README file
Added rules to generate boxes.h and boxes.1 from boxes.1.in and boxes.h.in
1999-08-21 23:39:01 +00:00
Thomas Jensen
21ad76c0af Renamed file from boxes.h to boxes.h.in
VERSION and GLOBALCONF values are now put in by top level Makefile
1999-08-21 23:37:23 +00:00
Thomas Jensen
fcba4e3d7b boxes.h is now generated from boxes.h.in by top level Makefile
Added -Wall -W to CFLAGS and removed .c.o rule
1999-08-21 23:35:44 +00:00
Thomas Jensen
97c7109f5d Added usage of system-wide config file (GLOBALCONF from boxes.h)
Moved config file selection code into it own function (get_config_file())
1999-08-21 23:33:03 +00:00
Thomas Jensen
72d3fb1b54 Removed case insensitivity option (-i) from flex call. Now done in lexer.l. 1999-08-21 16:10:41 +00:00
Thomas Jensen
ca9ff78bff Removed newline check from empty_line() function 1999-08-21 16:09:33 +00:00
Thomas Jensen
a275847b4f Bugfix: justify_line() still didn't work right. It should now. (This time I
discovered that indentmode=="text" was confusing it. Arghh!)
1999-08-21 16:04:24 +00:00
Thomas Jensen
2d293cb89d Bugfix: When matching vertical side shape lines, ignore empty shape lines 1999-08-21 16:03:31 +00:00
Thomas Jensen
0f2a1703ce Updated usage information
Updated quickinfo (-l -d) with killblank default value
Made indentation computation into a function of its own (get_indent())
Bugfix: REVERSION code may change indentation -> recompute if necessary
1999-08-21 15:55:42 +00:00
Thomas Jensen
52120808f5 Removed check for empty sample block, which is also done in lexer.l 1999-08-21 15:53:58 +00:00
Thomas Jensen
f180fca44c Moved contents of YY_USER_INIT definition into a separate function which
is now called by YY_USER_INIT (better readability)
1999-08-20 19:51:12 +00:00
Thomas Jensen
29143b73e9 Added info for -k and the quickinfo mode 1999-08-18 19:14:08 +00:00
Thomas Jensen
42a8a38772 Added HTML conversions for '&' and eacute
Removing path from file name
Changed introductory text
1999-08-18 18:41:41 +00:00
Thomas Jensen
0e8079c81c Declared yyerrcnt to be static
Added YY_USER_INIT macro to set the input buffer size to the config file
size (plus a bit). This is supposed to be a workaround for the REJECT
problem.
1999-08-18 18:23:41 +00:00
Thomas Jensen
f6c4f01f4e Added Linux defines. Now compiles nicely on (my) Linux. 1999-08-18 18:23:06 +00:00
Thomas Jensen
a6d4809f08 Added LEX_SDELIM macro (valid string delimiter characters)
Added prototype for chg_strdelims()
1999-08-18 15:42:46 +00:00
Thomas Jensen
f5b5d4572a Added %options never-interactive and caseless
Added code for DELIMITER statements
Rewrote string rules to deal with delimiter statements
1999-08-18 15:40:10 +00:00
Thomas Jensen
52816696e6 Added new tokens YCHGDEL and YDELWORD
Added code for DELIMITER statements
1999-08-18 15:38:44 +00:00
Thomas Jensen
3a59866e97 Bugfix: justify_line() still didn't work right. It should now. (Man, I got
a strong sense of dja vu! Weird ...)
1999-08-18 15:37:09 +00:00
Thomas Jensen
4a6025908d Added shapes W and E to diamonds sample block (sample was too small)
Added DELIMITER statements to dramatically reduce number of backslashes
1999-08-18 15:34:38 +00:00
Thomas Jensen
721c4c4e55 Bugfix: justify_line() still didn't work right. It should now. 1999-08-16 18:30:32 +00:00
Thomas Jensen
2fa54261ea Added output of total number of designs for -l 1999-08-16 18:29:39 +00:00
Thomas Jensen
2a629b4075 Changed SAMPLE block syntax to get rid of all the quoting sh*t in SAMPLE
blocks. Samples now look authentic even in the config file. Very simple now.
Added new token YENDSAMPLE in the process.
1999-08-16 16:29:25 +00:00
Thomas Jensen
291158afc2 Implemented new SAMPLE block syntax
Replaced states SAMPLE1 and SAMPLE2 with new state SAMPLE - this is now
much simpler code
1999-08-16 16:28:03 +00:00
Thomas Jensen
eefbebe467 Removed revision history from file (does not really interest the users)
Polished scroll design
Upgraded to new SAMPLE block syntax. It looks good.
1999-08-16 16:24:32 +00:00
Thomas Jensen
83cafeab4f Incremented beta version number to 5
Added maxshapeheight member to design_t struct
1999-08-14 19:31:23 +00:00
Thomas Jensen
e86c17d62d Added GNU GPL disclaimer 1999-08-14 19:30:01 +00:00
Thomas Jensen
8c15ac84ed Added anz_shapespec variable to count non-deepempty user-specified shapes
(must at least be 1)
Moved yylex declaration to lexer.h, where it belongs
Bugfix: bison and yacc seem to differ in the way action code is treated
which is associated with an error token. Since bison calls the action
routine whenever a token is skipped while recovering, added skipping
variable to ensure that only one "skipping to next design" message is
printed. That was not necessary before. %-/
Removed existence check from corner_check() routine (obsolete).
Added code to generate required shapes which were not specified by the user
Clean-up in shape_def rule (use freeshape() and some more)
1999-08-14 19:19:25 +00:00
Thomas Jensen
de25edcfc0 Added findshape(), genshape(), freeshape(), and isdeepempty() functions
Added on_side() back in with a few changes
Changed empty_side() to use isdeepempty() -> much simpler code
1999-08-14 19:11:53 +00:00
Thomas Jensen
4deed5e8f5 Added genshape(), freeshape(), and findshape() prototypes
Added on_side() prototype back again
Added isdeepempty() prototype
Changed first parameter of empty_side() prototype
1999-08-14 19:08:34 +00:00
Thomas Jensen
64ed11f10c Added GNU GPL disclaimer
Added yylex() declaration to please compiler
1999-08-14 19:06:26 +00:00
Thomas Jensen
00b91620e3 After taking a snapshot, put it in the author's archives, too. 1999-08-14 19:01:31 +00:00
Thomas Jensen
fd7dfa4e9d Removed shape definitions consisting only of spaces from all designs. This
has become possible because missing shape definitions are now automatically
added by boxes.
1999-08-14 19:00:00 +00:00
Thomas Jensen
b0ba6c4baf Given regexp stuff its own Makefile in regexp.
Major Makefile overhaul, maily implementation of new directory structure
and consolidation of file macros
Use more GNU make features
1999-08-13 23:55:03 +00:00
Thomas Jensen
13154120e5 Bugfix: cut&paste error in in strisyes() and strisno(). Thanks Warren Seltzer 1999-08-13 23:54:24 +00:00
Thomas Jensen
39f83e7227 Initial revision 1999-08-13 23:45:34 +00:00
Thomas Jensen
ce8c0a295e Initial revision 1999-08-13 20:56:09 +00:00
Thomas Jensen
d8e0a00674 Removed functions iscorner(), on_side(), shapecmp(), both_on_side(), and
shape_distance() - nobody was using them anyway.
1999-07-23 16:38:02 +00:00
Thomas Jensen
995355b81e Added GNU GPL disclaimer
Removed prototypes of iscorner(), on_side(), shapecmp(), both_on_side(),
and shape_distance() - nobody was using those anyway.
1999-07-23 16:36:33 +00:00