The NetBSD Project

CVS log for src/usr.bin/m4/main.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / m4

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.42 / (download) - annotate - [select for diffs], Wed Apr 25 18:23:58 2012 UTC (12 months, 4 weeks ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, tls-maxphys-nbase, tls-maxphys-base, tls-maxphys, agc-symver-base, agc-symver, HEAD
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

Fix wrong loop index leading to infinite loop
ifdef(`FOO',
# FOO
)
XXX: Pullup to 6.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Sep 6 18:16:01 2011 UTC (20 months, 2 weeks ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base
Branch point for: yamt-pagecache, netbsd-6
Changes since 1.40: +18 -3 lines
Diff to previous 1.40 (colored)

Move usage and onintr to make them static. Add __dead as needed.

Revision 1.40 / (download) - annotate - [select for diffs], Sun Aug 14 12:59:25 2011 UTC (21 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

kill gcc-4.5 warning

Revision 1.39 / (download) - annotate - [select for diffs], Fri Nov 6 15:13:27 2009 UTC (3 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.38: +4 -2 lines
Diff to previous 1.38 (colored)

Fix __progname mess.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Oct 26 21:11:28 2009 UTC (3 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.37: +205 -226 lines
Diff to previous 1.37 (colored)

resolve conflicts.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jul 21 14:19:24 2008 UTC (4 years, 10 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.36: +4 -4 lines
Diff to previous 1.36 (colored)

Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.

Revision 1.36 / (download) - annotate - [select for diffs], Tue Jun 7 09:25:00 2005 UTC (7 years, 11 months ago) by he
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: wrstuden-revivesa
Changes since 1.35: +4 -2 lines
Diff to previous 1.35 (colored)

Initialize a local variable to appease -Wuninitialized.
Marked with XXXGCC for sun2 (found while compiling for it).

Reviewed by lukem.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Jun 20 22:20:16 2004 UTC (8 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.34: +6 -2 lines
Diff to previous 1.34 (colored)

Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944

Revision 1.34 / (download) - annotate - [select for diffs], Thu Aug 7 11:14:32 2003 UTC (9 years, 9 months ago) by agc
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.33: +3 -7 lines
Diff to previous 1.33 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.

Revision 1.33 / (download) - annotate - [select for diffs], Thu May 2 14:24:06 2002 UTC (11 years ago) by wiz
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, fvdl_fs64_base
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

Really fix -P.
Fixes regression failure, and thus my PR #16225.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Mar 5 15:37:35 2002 UTC (11 years, 2 months ago) by tv
Branch: MAIN
Changes since 1.31: +5 -4 lines
Diff to previous 1.31 (colored)

Put `klen' and `newk' back in local block so that their scope is limited.
(Reduces 1.31 to a one-line diff from 1.30.)

Revision 1.31 / (download) - annotate - [select for diffs], Mon Mar 4 13:16:03 2002 UTC (11 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.30: +7 -7 lines
Diff to previous 1.30 (colored)

fix -P (which was broken in rev 1.29)

Revision 1.30 / (download) - annotate - [select for diffs], Thu Jan 31 19:36:47 2002 UTC (11 years, 3 months ago) by tv
Branch: MAIN
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored)

Protect __RCSID and __COPYRIGHT from being invoked if not defined.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jan 21 21:49:58 2002 UTC (11 years, 4 months ago) by tv
Branch: MAIN
Changes since 1.28: +8 -6 lines
Diff to previous 1.28 (colored)

Make compilable from src/tools/m4 on non-NetBSD hosts.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Nov 14 14:57:04 2001 UTC (11 years, 6 months ago) by tv
Branch: MAIN
Changes since 1.27: +4 -4 lines
Diff to previous 1.27 (colored)

Get first getopt string right; provide better usage message.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Nov 14 06:16:09 2001 UTC (11 years, 6 months ago) by tv
Branch: MAIN
Changes since 1.26: +296 -155 lines
Diff to previous 1.26 (colored)

Pull in various changes from OpenBSD, most from Marc Espie, including:
* Provide some GNUisms as extensions.
* Provide dynamically growable string space.
* Make define(defn(foo)) work correctly for builtins.
(The current version is supposed to be capable of satisfying autoconf.)

All still relevant NetBSD changes have been preserved in this version, and
formatting and style fixes have been applied in various places.

Thanks to Masao Uebayashi <uebayasi@soum.co.jp> for pointing this out.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Mar 5 20:26:18 2001 UTC (12 years, 2 months ago) by wiz
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

Sprinkle some const, and rename a shadow-variable.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Mar 5 20:19:54 2001 UTC (12 years, 2 months ago) by wiz
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

Fix appearance of bogus 0xff at EOF reported by me in bin/12287.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Oct 18 17:23:18 2000 UTC (12 years, 7 months ago) by jdolecek
Branch: MAIN
Changes since 1.23: +5 -5 lines
Diff to previous 1.23 (colored)

couple more whitespace fixes, by Nathan Ahlstrom

Revision 1.23 / (download) - annotate - [select for diffs], Mon Aug 16 02:49:20 1999 UTC (13 years, 9 months ago) by enami
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl, comdex-fall-1999-base, comdex-fall-1999
Branch point for: netbsd-1-5
Changes since 1.22: +9 -8 lines
Diff to previous 1.22 (colored)

Always unlink the temporary file created by mkstemp(3).

Revision 1.22 / (download) - annotate - [select for diffs], Wed Jun 23 19:09:35 1999 UTC (13 years, 11 months ago) by tv
Branch: MAIN
Changes since 1.21: +21 -6 lines
Diff to previous 1.21 (colored)

Implement the very useful `-P' option from GNU's m4 (causes all builtin
macros to be prefixed with the string `m4_').

Revision 1.21 / (download) - annotate - [select for diffs], Tue Apr 20 08:05:52 1999 UTC (14 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.20: +8 -3 lines
Diff to previous 1.20 (colored)

use mkstemp.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Dec 19 19:54:26 1998 UTC (14 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

char -> unsigned char

Revision 1.19 / (download) - annotate - [select for diffs], Tue Sep 1 03:16:49 1998 UTC (14 years, 8 months ago) by enami
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

add -Dunix to CPPFLAGS to suppress cpp warning.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Aug 30 23:50:28 1998 UTC (14 years, 8 months ago) by perry
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

try another way of fixing #if defined(unix) issues

Revision 1.17 / (download) - annotate - [select for diffs], Sun Aug 30 23:22:30 1998 UTC (14 years, 8 months ago) by enami
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

Nuke unix symbol warning differently (I've used wrong compiler to check
in previous commit).

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jun 1 13:54:49 1998 UTC (14 years, 11 months ago) by kleink
Branch: MAIN
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored)

Need <stdlib.h> for mktemp() prototype.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Dec 29 19:52:56 1997 UTC (15 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

fix an inconsistency between signed- and unsigned-char machines:
make sure that pushed-back 0xff character isn't accidentally
interpreted as an EOF because of sign extension when chars were being
assigned to pbents.  (signed-char machines lost.)  To do this, make
putback() and pbstr() operate only on unsigned chars, and add a
putbackeof() function to do the obvious thing when necessary.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Dec 2 22:34:02 1997 UTC (15 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.13: +7 -7 lines
Diff to previous 1.13 (colored)

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.13 / (download) - annotate - [select for diffs], Sun Oct 19 04:40:00 1997 UTC (15 years, 7 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-BETA
Branch point for: netbsd-1-3
Changes since 1.12: +78 -77 lines
Diff to previous 1.12 (colored)

WARNSify, fix .Nm usage, getopt returns -1 not EOF, deprecate register

Revision 1.12 / (download) - annotate - [select for diffs], Sat Feb 8 23:54:49 1997 UTC (16 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.11: +19 -9 lines
Diff to previous 1.11 (colored)

handle quoted strings in quoted strings properly, when using multicharacter
quotes.  E.g. if left quote was "``" and right quote was "''", then
"``foo ``bar'' baz''" would yield "foo `bar' baz" when it should yield
"foo ``bar'' baz".

Revision 1.11 / (download) - annotate - [select for diffs], Sat Jan 13 23:25:26 1996 UTC (17 years, 4 months ago) by pk
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.10: +62 -14 lines
Diff to previous 1.10 (colored)

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

Revision 1.10 / (download) - annotate - [select for diffs], Fri Sep 29 00:27:51 1995 UTC (17 years, 8 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

change #ifdef unix's to also accept __NetBSD__.  After 1.1 (per a
decision made a long time ago), 'unix' will no longer be defined, and
is not currently defined on some architectures.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Sep 28 05:37:36 1995 UTC (17 years, 8 months ago) by tls
Branch: MAIN
Changes since 1.8: +6 -0 lines
Diff to previous 1.8 (colored)

Sync with 4.4BSD-Lite2

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jun 19 03:58:38 1994 UTC (18 years, 11 months ago) by glass
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.7: +360 -838 lines
Diff to previous 1.7 (colored)

upgrade to 4.4-lite m4.  no local changes of note

Revision 1.7 / (download) - annotate - [select for diffs], Wed Nov 3 05:16:21 1993 UTC (19 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.6: +9 -4 lines
Diff to previous 1.6 (colored)

'official' patch from Ozan S. Yigit <oz@ursa.sis.yorku.ca>:
bug:if there are multiple files on the command line, file index is not
reset properly, ie. it falls off the side. sigh. also, somewhere along
the line, i again lost the proper m4wrap/autodiversion semantics
[sorry, eric. :-|] but fixed with this patch.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Nov 2 17:42:17 1993 UTC (19 years, 6 months ago) by jtc
Branch: MAIN
Changes since 1.5: +1 -0 lines
Diff to previous 1.5 (colored)

Don't dump core when processing more than one file.
Bugfix has been forwarded to Ozan, and should be in his next release.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Oct 30 00:28:47 1993 UTC (19 years, 6 months ago) by glass
Branch: MAIN
Changes since 1.4: +1 -15 lines
Diff to previous 1.4 (colored)

latest m4 from ozan.  now does the right thing w/respect to sendmail

Revision 1.4 / (download) - annotate - [select for diffs], Mon Aug 2 17:54:43 1993 UTC (19 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +4 -0 lines
Diff to previous 1.3 (colored)

Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jun 18 22:19:21 1993 UTC (19 years, 11 months ago) by glass
Branch: MAIN
CVS Tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.2: +10 -0 lines
Diff to previous 1.2 (colored)

fixed compilation, and mktemp usage problem

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jun 18 21:50:32 1993 UTC (19 years, 11 months ago) by glass
Branch: MAIN
Changes since 1.1: +749 -337 lines
Diff to previous 1.1 (colored)

baseline of new version of m4 supplied by Ozan Yigit, original author
of the broken m4 we had.  This is his stuff virgin + our Makefile.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (20 years, 2 months ago) by cgd
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.




CVSweb <webmaster@jp.NetBSD.org>