summaryrefslogtreecommitdiff
path: root/usr.bin/m4
AgeCommit message (Collapse)Author
2001-09-19inline some very common putback/chrsave. Worth roughly 10%Marc Espie
2001-09-18forgot to add -t handling.Marc Espie
2001-09-18better end-condition, fix tracing of dnl.Marc Espie
2001-09-18Tracing facilities. Same style as gnu-m4, because it's mostly used forMarc Espie
autoconf right now.
2001-09-18instrumentation for tracing mode: macro expansionMarc Espie
2001-09-18better gnu m4 emulation for dumpdefMarc Espie
2001-09-18let dumpdef go thru dump_one_def for each def.Marc Espie
2001-09-18let defn(builtin) work enough so thatMarc Espie
define(`newmacro', defn(builtin)) will work, as it should.
2001-09-18One single point for all macros/builtin expansion.Marc Espie
2001-09-188 bit clean look-ahead.Marc Espie
2001-09-18Fix regexp substitution.Marc Espie
- `vi rule' needs a pointer, because we must distinguish matches as the string position changes. - ^ should match only at beginning of line. - ^ should match at all beginnings of line.
2001-09-18slightly buggy macrosMarc Espie
2001-09-17Remove STATIC memory optimization. It's buggy (see regression test trip)Marc Espie
2001-09-16special-case MACRO (without parens) recognition, so that $# is set to 0Marc Espie
as it should.
2001-09-16Fix \\ in recognition in patsubst: must advance beyond it as well.Marc Espie
2001-07-28Wall cleanupPeter Valchev
2001-07-18Kill signal race. Reviewed by jjbg@Marc Espie
2001-07-18CDIAGFLAGSMarc Espie
2001-06-15Kill MAXSTR, it's no longer used at all.Marc Espie
Define MAXTOK directly.
2001-06-13Fix PR 1868. MAXSTR has no place there.Marc Espie
MAXSTR is still a hard limit, but only for token length, where 512 characters seems reasonable. Ok millert@
2001-03-05inspect MUST take an int to handle EOF issues correctly on unsigned charMarc Espie
machines. Problem reported by naddy.
2001-03-02Mark -o option with XXX (we may want to implement it someday, but currently itAaron Campbell
exists only for compatibility reasons); espie@ ok. This issue was brought to my attention by mpech@prosoft.org.lv
2001-02-05please alpha gccTheo de Raadt
2001-01-02m88k doesn't like optimization on m4.Steve Murphree
2000-11-10- Section shuffling: comply to the section ordering outlined in mdoc(7).Aaron Campbell
- Some .Nm trimming. - .Sh AUTHOR -> .Sh AUTHORS - Other miscellaneous fixes here and there.
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-07-27Handle unlimited diverts for m4 -g.Marc Espie
Problem with autoconf noticed by d@
2000-07-24Implement esyscmdMarc Espie
2000-07-06Insert more missing .El directives. Our troff really should identify these andAaron Campbell
spit out a warning.
2000-07-04Back out unwanted testing changeMarc Espie
2000-07-02Make the m4 machine stack dynamically sized.Marc Espie
Fix strspace automatic extension. The assumption that simply updating the current pointer works is false, there are cases where previous entries on the stack would absorp vast amounts of string space, and overload the non-updated entries. To fix it, we use a shadow copy of the stack, which only records which entries are pointers within strspace, so that a resize can adjust all those pointers at once. Reviewed by millert@
2000-07-02Long tokens won't be defined macros, but they can still be output.Marc Espie
2000-06-28Fix stupid bug in argument handling. Problem found by fries@Marc Espie
Jason, that's a candidate for stable...
2000-04-17Move some misplaced periods outside of the parentheses.Aaron Campbell
2000-04-12Trailing whitespace begone!Aaron Campbell
2000-04-10Thinko in dobuiltin. Reported by turan@Marc Espie
2000-03-23More pedantic man page formatting insanity, lalalaAaron Campbell
2000-03-23Fix some formatting problems I missed before.Aaron Campbell
2000-03-18Last needed m4 changes to bootstrap autoconf without gnu-m4.Marc Espie
2000-03-11Add a few builtins for greater compatibility with gnu-m4, and extendedMarc Espie
functionality. * regular expressions, * line-number reporting * `meta'-macros, builtin and indir. Reviewed by pjanzen@, tested by fries@ and a few others.
2000-03-10Various cleanups and standardization.Aaron Campbell
2000-02-02Comment slightly more.Marc Espie
2000-02-02Optimize common case.Marc Espie
outputstr could be called for one character-long string. Looking at profiling output, it WAS called for one-character long strings most of the time, like 95% of calls... Rework logic slightly to know about that case and output the character directly. Worth about 10%. Reviewed by Paul Janzen.
2000-01-15There is no need to waste short for holding EOF in the pushback buffer.Marc Espie
Now that the input_file structure is sufficiently fleshed out, just stop EOF at the putback level, and make sure files at EOF STAY at EOF.
2000-01-13Record 50 levels of open parenthesis, open quotes, to give a post-mortem.Marc Espie
- no need to record more, as this is just for diagnosis purpose. This doesn't affect m4's main engine. - don't free file names as a compromise: the only other options would be to ref count them (not worth the complexity) or dup them systematically (ick).
2000-01-12Use a proper abstract interface for file accesses, so that we can recordMarc Espie
the file name and line number. This yields more meaningful error messages, and the possibility for yet more.
2000-01-11Use the same optimization as look_ahead for inspect (don't push back charMarc Espie
we're going to refetch and re-test right away).
2000-01-11Don't recognize built-ins in contexts where they don't make sense.Marc Espie
Namely, it doesn't help to try and expand include if it's not followed by parenthesis and a filename. This should make applications like sendmail m4 scripts more sturdy for unquoted machine names that happen to collide with built-ins. The only drawback is that our m4 may now do intelligent things with scripts that don't work on other systems.
2000-01-11Show problematic evaluated expression in error messages.Marc Espie
2000-01-05Close PR-1021. make unix or vms `special' macros that expand toMarc Espie
themselves, with the proper quotes added. Matches gnu-m4, not Solaris nor FreeBSD... better for robustness, as it makes for more transparent expansions.