Commit Graph

  • 529c3f1f65 Added [lcr] "shorthand" to -a option Thomas Jensen 1999-06-30 12:37:25 +0000
  • 27c41667ef Removed DEF_DESIGN macro, because it now defaults to first design Removed some porting code, hoping for autoconf future Added PARSER_DEBUG and LEXER_DEBUG macros Thomas Jensen 1999-06-30 12:19:12 +0000
  • bce140bf46 Removed entire select_design stuff, because the parser now return much smaller data structures. The first design pointed to by designs is always the one we need (except for ops on *all* designs). The first design in config file is now default design (no DEF_DESIGN anymore). Thomas Jensen 1999-06-30 12:16:38 +0000
  • d8f249e53f Now parsing only those designs which will be needed later on Checks formerly done in boxes.c now done here (no valid designs etc.) Thomas Jensen 1999-06-30 12:13:47 +0000
  • 49f83560b0 Moved "C" design to first position in file, so it remains the default Changed netdata design to use padding option and reversion Thomas Jensen 1999-06-28 18:42:19 +0000
  • 3640421283 Replaced DEBUG macro with LEXER_DEBUG, which is now activated in boxes.h New tokens to, with, global, once Added LEX_MAX_WARN macro to limit number of lex errors printed per design Replaced exit()s with return YUNREC where errors are not fatal Thomas Jensen 1999-06-28 18:37:38 +0000
  • 93793ba1a2 Unified appearance of error messages, which are now all based on yyerror() Eliminated duplicate code by introducing intermediate rules New tokens YTO, YWITH, and YRXPFLAG to reduce strcasecmp() usage New token YUNREC for integration of lexer into error handling Some code restructuring and rule renaming for better consistency Added out-of-memory-checks to many strdup()s and such Thomas Jensen 1999-06-28 18:32:51 +0000
  • ef582a464c Added macro SNAPFILE for boxes-SNAP-date +%Y%m%d Added target rcstest Now builds optimized code by default Added debug target for non-optimized code w/ debugging info Thomas Jensen 1999-06-28 12:21:34 +0000
  • 5717471559 Moved parser init and cleanup from main() to parser.y Some further cleanup in main() Thomas Jensen 1999-06-28 12:19:29 +0000
  • 9020675926 Added tokens YBOX and YEND (thus, BOX and END are no longer YKEYWORDs) Added #define FILE_LEXER_L around #include boxes.h to please compiler Thomas Jensen 1999-06-28 12:17:46 +0000
  • 884e18072d Added error handling. Now skips to next design on error. Replaced DEBUG macro with PARSER_DEBUG, which is now activated in boxes.h Added rule first_rule, which performs init and cleanup formerly done in main() Introduced symbols YBOX and YEND Thomas Jensen 1999-06-28 12:15:47 +0000
  • 8ca615b7b0 Added design c-cmt2 Added padding entries to a few designs A few cosmetic corrections in sample blocks etc. Thomas Jensen 1999-06-27 17:59:50 +0000
  • b3fb4bade2 Commented out regerror() protoype which is now exported by tools.h Thomas Jensen 1999-06-25 18:53:51 +0000
  • b51b8e108a Added empty_side() prototype Thomas Jensen 1999-06-25 18:52:59 +0000
  • 0038f52681 Added empty_side() function from boxes.c Removed #include regexp.h Thomas Jensen 1999-06-25 18:52:28 +0000
  • 6e23417d1f Removed empty_side() prototype (now in shape.h) Added indentmode and justify members to command line options struct Thomas Jensen 1999-06-25 18:51:04 +0000
  • e9f3b88ef9 Bugfix: Mixed up SW and NE in padding calculation (tricky, that one) Added indent mode command line option for grammar overrides Moved empty_side() to shape.c after small change in signature Added text-in-block justification (j) to alignment option (-a) Thomas Jensen 1999-06-25 18:46:39 +0000
  • 93763e64ec Added initialization of mmok to please compiler Changed parameters of empty_side() calls to comply with new signature Thomas Jensen 1999-06-25 18:45:33 +0000
  • 1996a361ed Added output_box() function Thomas Jensen 1999-06-25 18:45:12 +0000
  • 0c9f7cb04f Added justify_line() function for alignment of lines inside the text block Cleaned up hfill calculation in output_box() Changed parameters of empty_side() calls to comply with new signature Thomas Jensen 1999-06-25 18:42:50 +0000
  • 26e3a95bbe Added remove.o and generate.o Introduced implicit rule .c.o, simplifying commands for most sources Thomas Jensen 1999-06-23 19:35:17 +0000
  • d983743471 Added output_box() from boxes.c Thomas Jensen 1999-06-23 19:23:55 +0000
  • f8774543a9 Now exporting anz_designs, input, and empty_side() Added #include regexp.h back Thomas Jensen 1999-06-23 19:21:15 +0000
  • e88470677d Removed snprintf() and vsnprintf() prototypes (why were they in anyway?) along with stdarg.h include Exported input global data and empty_side() function Declared non-exported functions static Moved horiz_precalc(), vert_precalc(), horiz_assemble(), vert_assemble(), horiz_generate(), vert_generate(), generate_box() and output_box() to a new file generate.c Moved best_match(), hmm(), detect_horiz(), detect_design(), remove_box() and output_input() to a new file remove.c Thomas Jensen 1999-06-23 19:17:27 +0000
  • 79555dbf29 Initial revision Thomas Jensen 1999-06-23 19:14:53 +0000
  • 16ecdbb777 Initial revision Thomas Jensen 1999-06-23 18:52:54 +0000
  • 0202a4edab Moved some data structures and macros related to shapes to shape.h Added #ifdef DEBUG around __TJ() macro for convenience Thomas Jensen 1999-06-23 12:33:49 +0000
  • 5ffccab2b7 Improvements on design detection (could still be better though) Moved iscorner(), on_side(), isempty(), shapecmp(), both_on_side(), shape_distance(), empty_side(), highest(), and widest() as well as some data structures and macros related to shapes to new file shape.c Thomas Jensen 1999-06-23 12:31:26 +0000
  • b73a59a3e0 Added tools.o and shape.o Change in snapshot target directory (download) Added GENSRC, HSSRC, ORIGSRC, ALLSRC, and ALLOBJ macros for more order Thomas Jensen 1999-06-23 12:27:50 +0000
  • b5630aa4dc Initial revision Thomas Jensen 1999-06-23 12:26:59 +0000
  • 77e0ce8550 Initial revision Thomas Jensen 1999-06-23 11:19:30 +0000
  • 20b4ff599b Removed #pragma ident string and added version comment instead Thomas Jensen 1999-06-22 12:12:05 +0000
  • 46844f8983 DEBUGging is now activated in boxes.h Moved MAX_TABSTOP, LINE_MAX macros to boxes.h Moved BMAX, strrstr, btrim(), yyerror(), expand_tabs_into(), regerror(), empty_line() to a new file tools.c, added #include tools.h Some cleanup in main() Declared style_sort() helper function static Renamed strrstr() to my_strnrstr() (now defined in tools.c) Default design is now defined by DEF_DESIGN macro Moved struct opt_t to boxes.h Bugfix: segfaulted if shape was bigger than input when detecting design Bugfix: Padding was not removed when box was removed Bugfix: Forgot null byte when removing west box side Changed select_design(), because default design value now set in process_commandline() Thomas Jensen 1999-06-22 12:03:33 +0000
  • 3f8cdd1803 Added DEF_DESIGN (default design name) Added opt_t and opt global variable from boxes.c Moved BFREE macro and yyerror() and empty_line() prototypes to tools.h Added LINE_MAX and MAX_TABSTOP macros from boxes.c Added #define DEBUG and REGEXP_DEBUG. This will centrally activate debugging. Thomas Jensen 1999-06-22 12:01:24 +0000
  • 43e877f2f9 Added #undef DEBUG, because DEBUGging is now activated in boxes.h Added #include tools.h Thomas Jensen 1999-06-22 12:00:05 +0000
  • e0b1b6f9bb Added code for padding handling (-p) Added BMAX macro (returns maximum of two values) Thomas Jensen 1999-06-20 14:20:29 +0000
  • a95cc59dff Added padding member to design struct Thomas Jensen 1999-06-20 14:19:31 +0000
  • 7d265b2273 Adden YPADDING and YNUMBER tokens plus code for padding blocks Thomas Jensen 1999-06-20 14:18:51 +0000
  • d1079fdf7f Added "padding" keyword and recogintion of numbers (YNUMBER) Thomas Jensen 1999-06-20 14:17:58 +0000
  • 56de91b3c8 Removed #pragma ident "string" Changed VERSION to 1.0 beta Added line_t and empty_line() prototype Thomas Jensen 1999-06-17 19:08:50 +0000
  • c4cfb92c8a Moved line_t to boxes.h empty_line() now also considers \r and \n whitespace Added empty_side() function Added handling of empty box sides in output_box() Thomas Jensen 1999-06-17 19:07:06 +0000
  • 5cd3e9f898 Bugfix: Sample block analysis didn't handle empty blocks Thomas Jensen 1999-06-17 19:05:46 +0000
  • 80fb0649a8 Added detection of empty sample blocks (we don't want that) Added detection of duplicate sample blocks Thomas Jensen 1999-06-17 19:04:45 +0000
  • 215f312b73 Added designs c-cmt, pound-cmt, java-cmt, html-cmt, right, vim-cmt They have become possible because boxes now checks for empty sides. Thomas Jensen 1999-06-17 19:03:09 +0000
  • c19d1b0977 Added "reverse" entry for testing, more "reverse" entries needed still Added "peek" design for C funtion headers Simplified some replacement entries Thomas Jensen 1999-06-16 10:52:59 +0000
  • f3bdc853b3 Removed a stray debug message Move apply_substitutions() regexp handling function up in file Use apply_substitutions() in read_input() routine also Moved "extern int yyparse()" prototype to start of file Thomas Jensen 1999-06-15 12:07:39 +0000
  • cda91cdbef Added Reverse pattern Thomas Jensen 1999-06-14 12:13:41 +0000
  • 42d3d8f4f6 Added YREVERSE token Added code for regexp reversion Thomas Jensen 1999-06-14 12:13:01 +0000
  • 6756a85171 Added struct members for regexp reversion code Renamed current_reprule to current_rule, now used for both directions Thomas Jensen 1999-06-14 12:11:54 +0000
  • c033fef722 Bugfix: best_match() box side detection used numw instead of nume Added apply_substitutions() routine for central regexp handling Added regexp reversion code for box removal Unified use of current_re[pv]rule Added a few comments and debugging code Thomas Jensen 1999-06-14 12:08:49 +0000
  • 9ebc20ebc0 Some error message clean-up Regular expression substituions on input text only if *drawing* a box, not if the box is to be removed (requires other substitutions, TODO). Added code for box design auto-detection when removing a box. Thomas Jensen 1999-06-13 15:28:31 +0000
  • 02b697659e Don't adjust indentation after removing a box unless something was removed on the west side East Padding made dynamic, i.e. dependant on the east side size Thomas Jensen 1999-06-04 18:13:26 +0000
  • 498bd9c12a Added snap target for automatic snapshot publication Thomas Jensen 1999-06-04 12:15:37 +0000
  • c0b7322493 a few fixes related to box removal (as expected) Thomas Jensen 1999-06-03 19:24:14 +0000
  • 4a01a9254b *** empty log message *** Thomas Jensen 1999-06-03 18:54:33 +0000
  • 5971b0994b lots of fixes Added remove box functionality, which remains to be tested Thomas Jensen 1999-06-03 18:54:05 +0000
  • a53d558f8f Added rcsid using #pragma ident Thomas Jensen 1999-04-12 18:16:52 +0000
  • 3722111e95 Added missing '$' to rcs id string, changed from #ident to char Thomas Jensen 1999-04-12 18:13:20 +0000
  • 60535ea3b3 Added some more designs Uncommented an unused entry, since boxes no longer generates warnings upon encountering syntactically correct entries which it doesn't know. Thomas Jensen 1999-04-09 18:11:08 +0000
  • 34d7cf0022 Removed code related to OFFSET blocks (obsolete) Thomas Jensen 1999-04-09 13:32:55 +0000
  • 2164de8d0d Added checks for duplicate design names Added checks for valid design names (no extended ASCII or ctrl chars) Removed all code related to OFFSET blocks (obsolete) Thomas Jensen 1999-04-09 13:31:54 +0000
  • f9c8de9291 Removed all code related to OFFSET blocks (obsolete) Thomas Jensen 1999-04-09 13:31:13 +0000
  • 5c957f0350 Removed all occurrences of OFFSET specs (obsolete). Added some new designs Added some test/debugging designs Thomas Jensen 1999-04-09 13:28:13 +0000
  • c015097473 Don't export regexec() and regsub() anymore - used by myregsub exclusively. Thomas Jensen 1999-04-05 19:41:42 +0000
  • c4d3a2e821 Hopefully fixed a potential buffer overrun problem in regsub() Thomas Jensen 1999-04-05 19:39:27 +0000
  • 9a0829d1e5 Added #ident directive Thomas Jensen 1999-04-04 16:18:23 +0000
  • b203415277 Initial revision Thomas Jensen 1999-04-04 16:14:09 +0000
  • 006a3bc702 Added rules for new regular expression handling files Added file header Straightened out clean commands Thomas Jensen 1999-04-04 16:12:40 +0000
  • 4c0375a015 Added indent keyword Added Replace token Some fiddling which will hopefully fix a line counting bug Thomas Jensen 1999-04-04 16:11:39 +0000
  • 1492da7251 Added some flags to design structure Move default settings here from boxes.c Thomas Jensen 1999-04-04 16:10:51 +0000
  • bbf133112c Added code for specification of indentation handling of input Added regular expression substitutions Some minor fixes Thomas Jensen 1999-04-04 16:09:01 +0000
  • f239524594 Enforced use of PROJECT macro Added "indent" directive to grammar Added "replace" directive to grammar Thomas Jensen 1999-04-04 16:07:53 +0000
  • 413528bdf0 Added build target for optimized compilation Now linking with flex library instead of lex library Thomas Jensen 1999-04-03 12:01:01 +0000
  • 3271315a45 ... still programming ... Added infile/outfile parameter code (pasted from tal, more or less) Added code to remove trailing spaces from output lines Thomas Jensen 1999-04-02 18:42:44 +0000
  • 32e1584b43 ... still programming ... Some bug fixes Added size option (-s) Added Alignment Option (-a) It seems actually usable for drawing boxes :-) Thomas Jensen 1999-04-01 17:26:18 +0000
  • 9285b8418d ... still programming ... Added minwidth and minheight to design structure Thomas Jensen 1999-03-31 17:34:43 +0000
  • 3ac253d3b8 ... still programming ... (some bug fixes and restructuring) Thomas Jensen 1999-03-31 17:34:21 +0000
  • 8590d861ed Added some more designs Incorporated changes in the still evolving format Thomas Jensen 1999-03-30 15:36:03 +0000
  • 504284f942 Added minimum width/height for a design. Fixed screwed tiny boxes. Did not handle zero input. Thomas Jensen 1999-03-30 13:30:19 +0000
  • 103bcbffda Added computation of minimum width/height of each design. Thomas Jensen 1999-03-30 13:29:50 +0000
  • 5d6bde380a Added rcs keywords and standard file header. Thomas Jensen 1999-03-30 09:42:51 +0000
  • dc10567bac It drew a correct box for the first time! Thomas Jensen 1999-03-30 09:37:51 +0000
  • 9b572008d8 ... still programming ... It drew a correct box for the first time! Thomas Jensen 1999-03-30 09:36:58 +0000
  • c267c43c63 ... still programming ... (removed setlocale() call and locale.h include) Thomas Jensen 1999-03-30 09:36:23 +0000
  • 403c6ee4d6 Added detection of empty shapes ("") which are now cleared (+warning) Changed rcs string to #ident directive Thomas Jensen 1999-03-24 17:29:12 +0000
  • aba8957f51 Added -D__EXTENSIONS__ Compile everything but the parser with -Wall -W Thomas Jensen 1999-03-22 10:57:14 +0000
  • d3f766d62e Added boxes.o to clean target Switched language to ANSI C / POSIX_SOURCE Added -Wall -W to boxes core compilation Thomas Jensen 1999-03-19 17:58:14 +0000
  • 1dd6fcd588 ... still programming ... Thomas Jensen 1999-03-19 17:57:20 +0000
  • 33c6e9cdc1 ... still programming ... Thomas Jensen 1999-03-19 17:51:19 +0000
  • cc3348c999 ... still programming ... Thomas Jensen 1999-03-19 17:44:47 +0000
  • 8d7db8a263 Initial revision Thomas Jensen 1999-03-18 15:08:57 +0000