summaryrefslogtreecommitdiffstats
path: root/usr.bin/m4/eval.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Handle unlimited diverts for m4 -g.espie2000-07-271-5/+12
| | | | Problem with autoconf noticed by d@
* Implement esyscmdespie2000-07-241-2/+6
|
* Last needed m4 changes to bootstrap autoconf without gnu-m4.espie2000-03-181-2/+58
|
* Add a few builtins for greater compatibility with gnu-m4, and extendedespie2000-03-111-2/+26
| | | | | | | | | functionality. * regular expressions, * line-number reporting * `meta'-macros, builtin and indir. Reviewed by pjanzen@, tested by fries@ and a few others.
* Use a proper abstract interface for file accesses, so that we can recordespie2000-01-121-11/+20
| | | | | | | the file name and line number. This yields more meaningful error messages, and the possibility for yet more.
* Close PR-1021. make unix or vms `special' macros that expand toespie2000-01-051-2/+7
| | | | | | | themselves, with the proper quotes added. Matches gnu-m4, not Solaris nor FreeBSD... better for robustness, as it makes for more transparent expansions.
* Recursive definitions are not the real problem.espie1999-12-211-7/+10
| | | | | | | | | | | | | Trying to expand them is. So flag obvious recursive definitions for later, and give an error only if we expand them. (Some gnu-m4 files, including autoconf, do define some macros with themselves as the replacement text, for use in test-if-set patterns) Since type is no longer MACRTYPE, those macros end up in builtins... but this is not a problem, since expanding them is an error.
* Clean up comment/quote recognition a little bit:espie1999-11-301-6/+6
| | | | | | | - use strlcpy to make clear that the strings are line terminated, - remove the number of magic constants, - use assert() for preconditions, - use puts instead of looping over array of chars...
* Turn warnings on,espie1999-11-171-38/+54
| | | | | | | | 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.
* Ensure translit works with accented characters.espie1999-11-171-20/+28
|
* Close PR 961, approved by millert@espie1999-11-161-4/+3
|
* Style: kill register and indent properly.espie1999-09-141-47/+47
| | | | | | 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.
* mktemp -> mkstempespie1999-09-141-4/+11
|
* Implement -I option and M4PATH environment variableespie1999-09-141-3/+3
|
* Use EOS pervasively.espie1999-09-061-8/+8
|
* Get rid of mktemp in the handling of diversion.espie1999-09-061-6/+10
| | | | | Simply put, mkstemp/unlink/rewind has the proper semantics under Unix, and so we don't have to keep track about temp file names and remove them.
* Misc minor changes:espie1999-09-061-11/+12
| | | | | | | - use err.h and kill oops, - use __progname and kill basename, - let indx use strstr - proper EOS decl
* -Wallmillert1998-04-251-4/+3
|
* Simplify some push-back code (e.g. for left and right quotes) so thatderaadt1997-12-201-20/+8
| | | | | it uses pbstr() instead of doing the characters individually (in reverse order) with putback(); cgd
* wish i had testedderaadt1997-08-311-5/+7
|
* from jlemon@freebsd; divnum is no longer silently restricted to thederaadt1997-08-311-17/+13
| | | | | range 0..9, changequote(,) is now a synonym for changequote, buffer size for translit() enlarged to handle a full string
* Sync with NetBSD.millert1996-11-251-5/+16
| | | | Implement `$@' macro, as promised by the manual page (NetBSD PR#2914).
* Slightly safer temp file open.millert1996-09-151-3/+7
|
* undo mktemp cleanup until i get it rightderaadt1996-07-011-10/+3
|
* rcsidderaadt1996-06-261-1/+2
|
* mktemp open + fdopenderaadt1996-06-251-1/+8
|
* from netbsd:deraadt1996-01-151-18/+31
| | | | | Handle multichar comment and quote delimiters (up to 5 characters, per the manual page). Takes care of PR#485.
* initial import of NetBSD treederaadt1995-10-181-0/+796