summaryrefslogtreecommitdiff
path: root/usr.bin/m4/look.c
AgeCommit message (Collapse)Author
2006-01-20use stdint.h where appropriate. okay millert@Marc Espie
2005-08-06zap rcsid. It's not ramdisk, but they still take space.Marc Espie
2003-11-17Modify xalloc so that it also takes err(3)-like arguments.Marc Espie
Write an xrealloc wrapper that works the same way, and use it as well. People who feel like it may want to add more explicit error messages to all the places m4 can fail allocating memory... okay tedu@
2003-06-30Fold trace status into the single hash table that's left.Marc Espie
Inline some macros/functions for speed. So, this achieves the goal of one single lookup for macro/trace status, which does speed up m4 in partial tracing situations somewhat. This does also speed up m4 in large pushdef situations, since it no longer has to lookup large chains of macros. okay millert@
2003-06-30add a flag for each macro name that records built-in status.Marc Espie
Fold built-in lookup into normal lookup. okay millert@
2003-06-30replace old hash structure with open hashing.Marc Espie
make the stack structure of macro definitions explicit. okay millert@
2003-06-30clean up internal lookup interface:Marc Espie
define an interface with explicit define/pushdef/popdef... and use it. That way, most details of the hashtable are no longer visible. okay millert@
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-04-26use ansi function declarations. ok millert@Marc Espie
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-09-17Remove STATIC memory optimization. It's buggy (see regression test trip)Marc Espie
1999-11-25From espie@openbsd.org:Todd C. Miller
o Add a missing 'unsigned' to 'h' in remhash() o Say 'unsigned int' not just 'unsigned'
1999-11-20Optimization: cache the hashed value to avoid negative comparisons.Marc Espie
With 2^32 possible hash values, this means that collisions no longer incur supplementary string compares, which was most of the reason for STREQ in the first place...
1999-11-17Turn warnings on,Marc Espie
Add missing prototypes, Make local functions static, Sort extern.h by file, Constify all char * that can be, Copy temp file name so that eval does not modify its arguments.
1999-09-14Style: kill register and indent properly.Marc Espie
Let indx match netbsd flavor, to simplify diffs. Show how many quotes were not closed. Increase stack slightly, now that we're no longer bound by argspace.
1999-09-06Misc minor changes:Marc Espie
- use err.h and kill oops, - use __progname and kill basename, - let indx use strstr - proper EOS decl
1996-06-26rcsidTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt