OpenBSD CVS

CVS log for src/usr.bin/m4/extern.h


[BACK] Up to [local] / src / usr.bin / m4

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.55 / (download) - annotate - [select for diffs], Thu Jun 15 13:48:42 2017 UTC (6 years, 11 months ago) by bcallah
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, HEAD
Changes since 1.54: +5 -1 lines
Diff to previous 1.54 (colored)

Add -E flag (make warnings fatal), following the behavior of GNU m4 1.4.9+
Help and direction millert@ espie@ anton@ deraadt@

ok espie@

Revision 1.54 / (download) - annotate - [select for diffs], Mon May 12 19:11:19 2014 UTC (10 years ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)

adjust to ohash being in libutil now, and to the interface changes.
fix potential integer overflows in memory allocation (mostly for pedagogical
purposes, these are unlikely to overflow in practice)
move the rest of lst.lib stuff into its own directory.

Revision 1.53 / (download) - annotate - [select for diffs], Mon Apr 28 12:34:11 2014 UTC (10 years ago) by espie
Branch: MAIN
Changes since 1.52: +5 -3 lines
Diff to previous 1.52 (colored)

check for integer overflows in custom allocs, okay jca@

Revision 1.52 / (download) - annotate - [select for diffs], Thu Apr 12 17:00:11 2012 UTC (12 years, 1 month ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored)

new m4 -g stuff:
- expr(`4**3')
- include(`hey I am not there') keeps going.

work with Baptiste Daroussin, who had the idea but didn't nail all details
right.

okay otto@, miod@

Revision 1.51 / (download) - annotate - [select for diffs], Tue Sep 27 07:24:02 2011 UTC (12 years, 7 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.50: +1 -2 lines
Diff to previous 1.50 (colored)

zap dead stuff
from Michael W. Bombardieri

Revision 1.50 / (download) - annotate - [select for diffs], Tue Sep 7 19:58:09 2010 UTC (13 years, 8 months ago) by marco
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.49: +14 -15 lines
Diff to previous 1.49 (colored)

Remove stray spaces.  No code change.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Oct 14 17:19:47 2009 UTC (14 years, 7 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.48: +2 -1 lines
Diff to previous 1.48 (colored)

Support the -P option from gnu m4, which prefixes builtins with the
string m4_. Feedback from jmc@, Tobias Ulmer, Matthew Dempsky - thanks!
ok espie@

Revision 1.48 / (download) - annotate - [select for diffs], Thu Aug 21 20:59:14 2008 UTC (15 years, 9 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.47: +7 -7 lines
Diff to previous 1.47 (colored)

use unsigned char for buffers, allow differentiating between EOF and y".

okay otto@

Revision 1.47 / (download) - annotate - [select for diffs], Sat Aug 16 12:23:50 2008 UTC (15 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.46: +6 -6 lines
Diff to previous 1.46 (colored)

not yet, committed too much

Revision 1.46 / (download) - annotate - [select for diffs], Sat Aug 16 12:21:46 2008 UTC (15 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.45: +7 -7 lines
Diff to previous 1.45 (colored)

argument parsing should only skip spaces outside of parenthesis.
Inside matching parenthesis, keep spaces as is (use chrsave instead of
pbstr, since there's no way it can be a further macro expansion).
Fixes a long-standing issue with autoconf (   --option -> --option),
matches other m4 than gnum4

okay millert@, fries@

Revision 1.45 / (download) - annotate - [select for diffs], Mon Mar 20 20:27:45 2006 UTC (18 years, 2 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.44: +3 -2 lines
Diff to previous 1.44 (colored)

add limited support for format builtin in gnu-m4 mode, because I'm fed
up of patching it away in various autoconf derivatives.

okay miod@

Revision 1.44 / (download) - annotate - [select for diffs], Mon Mar 20 10:55:19 2006 UTC (18 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.43: +2 -1 lines
Diff to previous 1.43 (colored)

report function m4errx, that shows app-specific data (filename/linenumber)
before the error message. Use it to simplify code.

okay miod@

Revision 1.43 / (download) - annotate - [select for diffs], Fri Jan 20 23:10:19 2006 UTC (18 years, 4 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

use stdint.h where appropriate. okay millert@

Revision 1.42 / (download) - annotate - [select for diffs], Tue Sep 6 15:33:21 2005 UTC (18 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.41: +4 -4 lines
Diff to previous 1.41 (colored)

finally make our m4 SusV3-compliant.

- changecom and changequote have a simple definition (that matches gnu-m4,
coincidentally, so we no longer need two distinct modes for these)

- off-by-one bug in -s, this finally works.

- reorder main parser loop, so that we can use alphabetic constructs in
quotes/comments.

- rename putback to pushback, this matches comments, and makes more sense.

- more uniform (and updated) description of changequote/changecom.

- new, systematic regression tests of comments/quotes.

- framework to test -s: one perl script to reconstitute `full' files with
all line numbers, so that we can verify the output without needing a
complete match.

okay otto@, fries@

Revision 1.41 / (download) - annotate - [select for diffs], Sun May 29 18:44:36 2005 UTC (18 years, 11 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.40: +3 -1 lines
Diff to previous 1.40 (colored)

fix a few minor compatibility issues.
- let eval() handle a base and number of digits, like it's advertized to.
- in gnu-mode, undivert can take file names as arguments.
- in gnu-mode, map can handle reversed charsets.

Suggestions and okay otto@, mostly prompted by looking at the regress
tests in newer gnu-m4.

Revision 1.40 / (download) - annotate - [select for diffs], Wed Mar 2 10:12:15 2005 UTC (19 years, 2 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.39: +5 -2 lines
Diff to previous 1.39 (colored)

let m4wrap handle multiple wraps, both in normal and gnu-mode.
based on Noah Misch's bug report.
okay otto, jmc.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Nov 17 17:12:10 2003 UTC (20 years, 6 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.38: +3 -2 lines
Diff to previous 1.38 (colored)

Modify xalloc so that it also takes err(3)-like arguments.
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@

Revision 1.38 / (download) - annotate - [select for diffs], Mon Jun 30 22:13:32 2003 UTC (20 years, 10 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.37: +15 -8 lines
Diff to previous 1.37 (colored)

Fold trace status into the single hash table that's left.
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@

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jun 30 22:11:38 2003 UTC (20 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.36: +3 -2 lines
Diff to previous 1.36 (colored)

add a flag for each macro name that records built-in status.
Fold built-in lookup into normal lookup.
okay millert@

Revision 1.36 / (download) - annotate - [select for diffs], Mon Jun 30 22:10:21 2003 UTC (20 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.35: +2 -1 lines
Diff to previous 1.35 (colored)

replace old hash structure with open hashing.
make the stack structure of macro definitions explicit.
okay millert@

Revision 1.35 / (download) - annotate - [select for diffs], Mon Jun 30 21:47:21 2003 UTC (20 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

Make the trace status of a macro an actual argument that gets pushed
in the frame for the macro expansion.

(This will allow one single lookup to grab the macro definition and
the trace status)

okay millert@

Revision 1.34 / (download) - annotate - [select for diffs], Mon Jun 30 21:42:50 2003 UTC (20 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.33: +12 -4 lines
Diff to previous 1.33 (colored)

clean up internal lookup interface:
define an interface with explicit define/pushdef/popdef... and use it.
That way, most details of the hashtable are no longer visible.

okay millert@

Revision 1.33 / (download) - annotate - [select for diffs], Wed Jun 18 21:08:07 2003 UTC (20 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.32: +1 -2 lines
Diff to previous 1.32 (colored)

- store builtin name as definition for builtin macros.
this removes the need for code->name conversion, in exchange for
systematically testing the definition type, since we can no longer
rely on the defn being NULL.

- commonnalize the builtin-detection code, so that we can use it for pushdef
as well with define, so that pushdef handles builtins correctly as well.

okay fries@, millert@.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Jun 12 14:36:43 2003 UTC (20 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.31: +2 -1 lines
Diff to previous 1.31 (colored)

switch from linked list to hash table for traced macros.
speeds up recent autoconf somewhat, since it traces a large set
of individual macro.

(more rework of m4 internal interfaces to unify lookup tables in order)

okay fries@

Revision 1.31 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:10 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.30: +2 -6 lines
Diff to previous 1.30 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.30 / (download) - annotate - [select for diffs], Sun Apr 28 14:37:12 2002 UTC (22 years ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.29: +4 -1 lines
Diff to previous 1.29 (colored)

Implement -s.
Triggered by recent FreeBSD changes.

- emits #line directives at every file change (like FreeBSD)
- maintains a synch_lineno variable to verify when the output gets out
of synch with the input, so that it can emit #line to re-synch as well
(unlike FreeBSD)

To do: either handle \end-of-line, or recognize when a macro expansion
is in progress, so that line synch don't perturb cpp on multi-line
expansions.

With this, we should have a fully POSIX-compliant m4.

ok miod@

Revision 1.29 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:48 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.28: +49 -49 lines
Diff to previous 1.28 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Oct 10 18:12:00 2001 UTC (22 years, 7 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.27: +4 -4 lines
Diff to previous 1.27 (colored)

Prototypes shouldn't mention argument name.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Sep 27 11:40:33 2001 UTC (22 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

traceon/traceoff built-ins.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Sep 19 13:14:18 2001 UTC (22 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.25: +22 -1 lines
Diff to previous 1.25 (colored)

inline some very common putback/chrsave. Worth roughly 10%

Revision 1.25 / (download) - annotate - [select for diffs], Tue Sep 18 14:55:52 2001 UTC (22 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.24: +10 -1 lines
Diff to previous 1.24 (colored)

Tracing facilities. Same style as gnu-m4, because it's mostly used for
autoconf right now.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Sep 18 14:43:22 2001 UTC (22 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.23: +4 -1 lines
Diff to previous 1.23 (colored)

instrumentation for tracing mode: macro expansion

Revision 1.23 / (download) - annotate - [select for diffs], Tue Sep 18 14:05:14 2001 UTC (22 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored)

let defn(builtin) work enough so that
define(`newmacro', defn(builtin))
will work, as it should.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Sep 18 13:52:58 2001 UTC (22 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.21: +1 -2 lines
Diff to previous 1.21 (colored)

One single point for all macros/builtin expansion.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jul 27 17:44:33 2000 UTC (23 years, 9 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.20: +4 -2 lines
Diff to previous 1.20 (colored)

Handle unlimited diverts for m4 -g.

Problem with autoconf noticed by d@

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jul 24 23:08:25 2000 UTC (23 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.19: +3 -1 lines
Diff to previous 1.19 (colored)

Implement esyscmd

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jul 2 01:17:00 2000 UTC (23 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

Make the m4 machine stack dynamically sized.

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@

Revision 1.18 / (download) - annotate - [select for diffs], Sat Mar 18 01:06:55 2000 UTC (24 years, 2 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored)

Last needed m4 changes to bootstrap autoconf without gnu-m4.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Mar 11 15:54:44 2000 UTC (24 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.16: +12 -2 lines
Diff to previous 1.16 (colored)

Add a few builtins for greater compatibility with gnu-m4, and extended
functionality.
* regular expressions,
* line-number reporting
* `meta'-macros, builtin and indir.

Reviewed by pjanzen@, tested by fries@ and a few others.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Jan 15 14:26:00 2000 UTC (24 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.15: +5 -5 lines
Diff to previous 1.15 (colored)

There is no need to waste short for holding EOF in the pushback buffer.
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.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jan 12 17:49:53 2000 UTC (24 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.14: +8 -3 lines
Diff to previous 1.14 (colored)

Use a proper abstract interface for file accesses, so that we can record
the file name and line number.

This yields more meaningful error messages, and the possibility for yet
more.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jan 11 14:06:11 2000 UTC (24 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.13: +4 -1 lines
Diff to previous 1.13 (colored)

Don't recognize built-ins in contexts where they don't make sense.
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.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Nov 30 22:19:50 1999 UTC (24 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.12: +5 -5 lines
Diff to previous 1.12 (colored)

Clean up comment/quote recognition a little bit:
- 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...

Revision 1.12 / (download) - annotate - [select for diffs], Sat Nov 20 17:48:59 1999 UTC (24 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Optimization: cache the hashed value to avoid negative comparisons.
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...

Revision 1.11 / (download) - annotate - [select for diffs], Wed Nov 17 15:34:13 1999 UTC (24 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.10: +33 -37 lines
Diff to previous 1.10 (colored)

Turn warnings on,
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.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Sep 14 08:35:16 1999 UTC (24 years, 8 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.9: +0 -0 lines
Diff to previous 1.9 (colored)

Style: kill register and indent properly.
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.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Sep 14 08:21:36 1999 UTC (24 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.8: +5 -1 lines
Diff to previous 1.8 (colored)

Implement -I option and M4PATH environment variable

Revision 1.8 / (download) - annotate - [select for diffs], Mon Sep 6 13:29:32 1999 UTC (24 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Remove STRSPACE limitations.
A bit wasteful, but not too intrusive.

Also remove pushback buffer limitations, as this would be mostly useless
otherwise.

Incidentally, pushback buffer overflow detection in pbstr was wrong.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Sep 6 13:20:40 1999 UTC (24 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored)

Get rid of mktemp in the handling of diversion.

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.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Sep 6 13:15:33 1999 UTC (24 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

synch

Revision 1.5 / (download) - annotate - [select for diffs], Mon Sep 6 13:10:48 1999 UTC (24 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.4: +1 -4 lines
Diff to previous 1.4 (colored)

Misc minor changes:
- use err.h and kill oops,
- use __progname and kill basename,
- let indx use strstr
- proper EOS decl

Revision 1.4 / (download) - annotate - [select for diffs], Wed Dec 10 20:24:12 1997 UTC (26 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.3: +6 -6 lines
Diff to previous 1.3 (colored)

cgd: add a typedef which describes elements in the push-back buffer.  Make
that typedef 'short'.  'char' (which was previously used) because char
may be unsigned and ((char)EOF) != EOF if that is the case.  That was
causing the (char)EOF (0xff) pushed back in main to be interepreted as
a character, and, in some cases, to be written to the output.  'short'
was used rather than 'signed char' because if the latter is used,
0xff characters in the input would confuse m4.  (No point in introducing
(more?) 8-bit lossage.)

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 26 05:36:12 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.2: +1 -0 lines
Diff to previous 1.2 (colored)

rcsid

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jan 15 01:12:16 1996 UTC (28 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +5 -5 lines
Diff to previous 1.1 (colored)

from netbsd:
Handle multichar comment and quote delimiters (up to 5 characters, per the
manual page). Takes care of PR#485.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:45:35 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:45:35 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.