The NetBSD Project

CVS log for src/usr.bin/config/scan.l

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.34 / (download) - annotate - [select for diffs], Fri Sep 10 21:52:17 2021 UTC (20 months, 3 weeks ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

usr.bin: remove unnecessary lint comment CONSTCOND

Since 2021-01-31, lint no longer warns about 'do ... while (0)'.

No functional change.

Revision 1.26.6.1 / (download) - annotate - [select for diffs], Fri May 7 17:40:31 2021 UTC (2 years, 1 month ago) by martin
Branch: netbsd-8
Changes since 1.26: +3 -2 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Pull up following revision(s) (requested by mrg in ticket #1678):

	bin/pax/options.c: revision 1.119
	usr.bin/config/scan.l: revision 1.32
	usr.bin/make/main.c: revision 1.274
	bin/pax/extern.h: revision 1.60
	usr.bin/config/defs.h: revision 1.106
	usr.bin/make/make.h: revision 1.105
	sbin/newfs_udf/udf_create.c: revision 1.27 (patch)
	sbin/newfs_udf/newfs_udf.h: revision 1.7 (patch)
	usr.bin/config/main.c: revision 1.100
	usr.sbin/installboot/Makefile:	revisions 1.53,1.54 (patch)
	usr.sbin/installboot/installboot.h: revision 1.41 (patch)
	usr.sbin/installboot/machines.c: revisisons 1.41,1.42 (patch)

Avoid depending on common symbols.

Revision 1.26.16.3 / (download) - annotate - [select for diffs], Fri Apr 30 14:07:02 2021 UTC (2 years, 1 month ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE
Changes since 1.26.16.2: +3 -2 lines
Diff to previous 1.26.16.2 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored)

Pull up following revision(s) (requested by mrg in ticket #1263):

	bin/pax/options.c: revision 1.119
	usr.bin/config/scan.l: revision 1.32
	usr.bin/make/main.c: revision 1.274
	bin/pax/extern.h: revision 1.60
	usr.bin/config/defs.h: revision 1.106
	usr.bin/make/make.h: revision 1.105
	sbin/newfs_udf/udf_create.c: revision 1.27 (patch)
	sbin/newfs_udf/newfs_udf.h: revision 1.7 (patch)
	usr.bin/config/main.c: revision 1.100

Avoid depending on common symbols.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Jul 26 22:25:47 2020 UTC (2 years, 10 months ago) by uwe
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

Don't print the location of the include directive twice.

cfgdbg() already prints the current file and line number, so don't
print the same information ourselves in the message too.

Revision 1.26.14.1 / (download) - annotate - [select for diffs], Wed Apr 8 14:09:15 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.26: +108 -86 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Merge changes from current as of 20200406

Revision 1.32 / (download) - annotate - [select for diffs], Fri Apr 3 19:53:41 2020 UTC (3 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406
Changes since 1.31: +3 -2 lines
Diff to previous 1.31 (colored)

Avoid depending on common symbols.

Revision 1.26.16.2 / (download) - annotate - [select for diffs], Mon Mar 9 18:28:14 2020 UTC (3 years, 2 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-1-RELEASE
Changes since 1.26.16.1: +29 -22 lines
Diff to previous 1.26.16.1 (colored) to branchpoint 1.26 (colored)

Addionally pull up for ticket ticket #776, requested by christos:

	src/usr.bin/config/scan.l	1.31

Add an enabled bit to keep track of the parent state (if we are ignoring
or parsing). Idea from uwe.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Mar 9 17:27:03 2020 UTC (3 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.30: +29 -22 lines
Diff to previous 1.30 (colored)

Add an enabled bit to keep track of the parent state (if we are ignoring
or parsing). Idea from uwe.

Revision 1.26.16.1 / (download) - annotate - [select for diffs], Mon Mar 9 15:22:21 2020 UTC (3 years, 2 months ago) by martin
Branch: netbsd-9
Changes since 1.26: +99 -85 lines
Diff to previous 1.26 (colored)

Pull up the following, requested by christos in ticket #776:

	usr.bin/config/TODO                             up to 1.32
	usr.bin/config/defs.h                           up to 1.105
	usr.bin/config/files.c                          up to 1.37
	usr.bin/config/gram.y                           up to 1.55
	usr.bin/config/main.c                           up to 1.99
	usr.bin/config/scan.l                           up to 1.30
	usr.bin/config/sem.c                            up to 1.84
	usr.bin/config/util.c                           up to 1.21

config(1): fix issue with incorrect handling of elifdef statements.

Revision 1.30 / (download) - annotate - [select for diffs], Sun Mar 8 17:38:37 2020 UTC (3 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.29: +33 -3 lines
Diff to previous 1.29 (colored)

Add debugging, no functional change.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Mar 8 00:04:11 2020 UTC (3 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.28: +9 -8 lines
Diff to previous 1.28 (colored)

Recognize {if{,n}def,elfif{,n}def,else,endif} only at the beginning of the
line or after whitespace.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Mar 7 22:35:16 2020 UTC (3 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.27: +56 -72 lines
Diff to previous 1.27 (colored)

PR/55057: Paul Goyette: Don't use % 6 arithmetic that hurts the brain for
the ifdef state machine, use bits and shifts instead. Also don't forget to
restore the state once an include file ends.

Revision 1.27 / (download) - annotate - [select for diffs], Sat Mar 7 19:26:13 2020 UTC (3 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.26: +7 -8 lines
Diff to previous 1.26 (colored)

Keep track where more objects are declared so that we can print where things
have been redefined.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Aug 7 10:37:24 2016 UTC (6 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, netbsd-9, netbsd-8
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored)

Accept "-no" as a "no" that does not cause errors if the object deleted
does not exist.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Sep 4 10:16:35 2015 UTC (7 years, 9 months ago) by uebayasi
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount
Changes since 1.24: +5 -0 lines
Diff to previous 1.24 (colored)

Sort files in ${ALLFILES} in the order of parsing of `files.*'.

config(1) reads the first `files.${MACHINE}' when it encounters `machine'.
Then it includes common `files.${MACHINE_SUBARCH}', `files.${MACHINE_ARCH}',
and MI `sys/conf/files' at last.  This change makes the first "file" in
`files.${MACHINE}' appear first in ${ALLFILES}.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Sep 1 13:42:48 2015 UTC (7 years, 9 months ago) by uebayasi
Branch: MAIN
Changes since 1.23: +3 -2 lines
Diff to previous 1.23 (colored)

Introduce a new syntax, "buildprefix", to specify prefix of files under kernel
build subdirectory.  This is not used now that everything is built at the
top of kernel build directory.  It will become mandatory for source/object
files put out of kernel source tree to specify corresponding build subdirectory.
Only ``no dots''  relative path is accepted as "buildprefix".

Revision 1.23 / (download) - annotate - [select for diffs], Tue Jun 16 21:12:19 2015 UTC (7 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.22: +5 -5 lines
Diff to previous 1.22 (colored)

remove stray newlines from errors/warnings

Revision 1.17.10.1 / (download) - annotate - [select for diffs], Fri Mar 6 21:00:23 2015 UTC (8 years, 3 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.17: +19 -17 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Pull up following revision(s) (requested by mrg in ticket #572):
	usr.bin/config/Makefile: up to 1.10
	usr.bin/config/TODO: up to 1.14
	usr.bin/config/config.1: up to 1.17
	usr.bin/config/config.5: up to 1.25
	usr.bin/config/defs.h: up to 1.64
	usr.bin/config/files.c: up to 1.18
	usr.bin/config/gram.y: up to 1.46
	usr.bin/config/hash.c: up to 1.11
	usr.bin/config/lint.c: up to 1.15
	usr.bin/config/main.c: up to 1.74
	usr.bin/config/mkdevsw.c: up to 1.12
	usr.bin/config/mkheaders.c: up to 1.26
	usr.bin/config/mkioconf.c: up to 1.28
	usr.bin/config/mkmakefile.c: up to 1.37
	usr.bin/config/mkswap.c: up to 1.8
	usr.bin/config/pack.c: up to 1.9
	usr.bin/config/scan.l: up to 1.22
	usr.bin/config/sem.c: up to 1.71
	usr.bin/config/sem.h: up to 1.19
	usr.bin/config/util.c: up to 1.19
sync config(1) with HEAD.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Nov 7 17:50:14 2014 UTC (8 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.21: +12 -15 lines
Diff to previous 1.21 (colored)

- simplify string parsing
- emalloc + sprintf = easprintf

Revision 1.21 / (download) - annotate - [select for diffs], Fri Oct 31 07:38:36 2014 UTC (8 years, 7 months ago) by uebayasi
Branch: MAIN
Changes since 1.20: +3 -2 lines
Diff to previous 1.20 (colored)

config(1), config(5): Introduce "select"

o Introduce a new selection directive "select" to select an attribute (as a
  module) and its dependencies.
o Support "no select" too.
o Stop abusing "options" to select an attribute.
o Bump config(1) version.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Oct 29 19:10:18 2014 UTC (8 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

cast to signed, since that's all we have.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Oct 29 17:14:50 2014 UTC (8 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.18: +6 -3 lines
Diff to previous 1.18 (colored)

- add RCSID's
- fix -Wconversion (except scanner)

Revision 1.18 / (download) - annotate - [select for diffs], Sat Oct 11 15:20:36 2014 UTC (8 years, 7 months ago) by uebayasi
Branch: MAIN
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored)

On second thought, resolving "device" dependency in enddefs() is correct.
The problem was to select things.  So put back the code to record dependency
as attributes.

While here, sprinkle more debug messages.

Revision 1.16.6.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:09:30 2012 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

sync with head

Revision 1.17 / (download) - annotate - [select for diffs], Tue Mar 20 20:34:57 2012 UTC (11 years, 2 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-base, agc-symver-base, agc-symver
Branch point for: netbsd-7
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Use C89 function definitions

Revision 1.16 / (download) - annotate - [select for diffs], Fri Apr 30 20:47:18 2010 UTC (13 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache
Changes since 1.15: +4 -1 lines
Diff to previous 1.15 (colored)

For the simple cases, augment device-major with information on how
a driver expects /dev/node -> minor mappings to go and include that
information in devsw_conv.
(no, I didn't plow through all the MD majors files)

Revision 1.15 / (download) - annotate - [select for diffs], Mon Mar 8 10:19:14 2010 UTC (13 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

Add a highly experimental pseudo-root feature to be used in conjuction
with the also-experimental ioconf keyword.  pseudo-root allows to
specify a root at any point in the device tree without having
attachments from the actual root.

For example, instead of having a config file like this:
mainbus0 at root
bus_a? at mainbus0
bus_b? at bus_a*
device7 at bus_b?

You can have one like this:
pseudo-root bus_b*
device7 at bus_b?

This will produce the relevant ioconf.c glue for device number 7
only instead of the whole 9 yards from root.  Perhaps needless to
say, this can be used to generate snippets of config glue for
modules and, let's not deny that my main motivation for doing this,
rump components.

This is part 2/3 of my modifications to config (the last part is
autogenerating source file lists and component Makefiles).

No strong objection from cube (after a little pressuring ;), but
like he said, the implementation will most likely need some more
tweaking and may not work correctly under all pseudo-root uses yet.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Feb 3 21:00:49 2010 UTC (13 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

Introduce experimental support for ioconf-only configuration files.
This is done by giving the "ioconf" keyword in the config file.
As a result, config produces only ioconf.c and locators.h.  Currently,
only "monolithic" configurations with the device path starting from
root are supported.  Eventually, the goal is to support a local
root in the input file from any point along the device tree using
files.* in our kernel tree.  This will make autogenerating the
config glue for device modules possible instead of having to write
it by hand like is currently required (yes, it sounds simple to
implement, but ...).

reviewed by cube.
(the next part will demand major discussions with you, so prepare ;)

Revision 1.13 / (download) - annotate - [select for diffs], Wed Oct 28 02:42:20 2009 UTC (13 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored)

don't '#define yywrap() 1', use '%option noyywrap'. This is because the
#define is doomed to failure if --prefix is used.

Revision 1.11.4.1 / (download) - annotate - [select for diffs], Wed May 13 19:19:47 2009 UTC (14 years ago) by jym
Branch: jym-xensuspend
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.12 / (download) - annotate - [select for diffs], Sat Apr 11 12:41:10 2009 UTC (14 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

Fix WARNS=4 issues (-Wcast-qual -Wsign-compare -Wshadow)

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Fri Oct 31 21:14:05 2008 UTC (14 years, 7 months ago) by snj
Branch: netbsd-4
Changes since 1.5: +4 -2 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Pull up following revision(s) (requested by dholland in ticket #1212):
        usr.bin/config/scan.l: revision 1.11
Avoid memory leak in error case. From Gao Ya'nan in PR bin/39721.'

Revision 1.11 / (download) - annotate - [select for diffs], Thu Oct 9 07:18:15 2008 UTC (14 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, 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-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, 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
Branch point for: jym-xensuspend
Changes since 1.10: +4 -2 lines
Diff to previous 1.10 (colored)

Avoid memory leak in error case. From Gao Ya'nan in PR bin/39721.

Revision 1.9.8.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:32:10 2008 UTC (14 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.9.6.1 / (download) - annotate - [select for diffs], Tue Jun 17 09:15:21 2008 UTC (14 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

sync with head.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jun 10 12:35:32 2008 UTC (14 years, 11 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

Seperate pseudo-devs which don't use device_t et al. (the classical
ones, mostly network pseudo interfaces) and those which use autoconf
to attach instances dynamically, or to attach child devices.
Use a new keyword "defpseudodev" for the latter.
Issue a warning if interface attributes are used with "old" pseudodevs,
but let it work as before for now. This will be removed soon.
approved by cube

Revision 1.7.4.1 / (download) - annotate - [select for diffs], Wed Jan 9 02:00:36 2008 UTC (15 years, 5 months ago) by matt
Branch: matt-armv6
Changes since 1.7: +180 -18 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

sync with HEAD

Revision 1.9 / (download) - annotate - [select for diffs], Fri Nov 9 23:41:08 2007 UTC (15 years, 7 months ago) by cube
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf
Branch point for: yamt-pf42, wrstuden-revivesa
Changes since 1.8: +157 -3 lines
Diff to previous 1.8 (colored)

Add support for "ifdef <attribute>" blocks.  It goes like this:

ifdef <attr> / ifndef <attr>
elifdef <attr>
elifndef <attr>
else
endif

No indentation is possible for now, it will come later.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Nov 9 05:06:08 2007 UTC (15 years, 7 months ago) by cube
Branch: MAIN
Changes since 1.7: +24 -16 lines
Diff to previous 1.7 (colored)

- Make include/cinclude/package eat up to the next new-line character.
- Fix casts in getincludepath() and re-work it to ignore the unused end of
  the line.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jan 13 23:47:36 2007 UTC (16 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, hpcarm-cleanup
Branch point for: matt-armv6
Changes since 1.6: +6 -6 lines
Diff to previous 1.6 (colored)

- rename {x,}error -> cfg{x,}error and {x,}warn -> cfg{x,}warn so that we
  can use err(3) and warn(3) to display errors instead of using inconsistent
  fprintf's.
- remove emalloc/estrdup etc. We have them in libutil.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jan 9 13:03:47 2007 UTC (16 years, 5 months ago) by cube
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

Add new syntaxic sugar to provide a value in lint (i.e., config -L)
configurations for defparams.  It will be used _only_ by config -L.

This will greatly help automating tests with lint configurations,
hopefully.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Aug 26 18:17:13 2006 UTC (16 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: 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
Branch point for: netbsd-4
Changes since 1.4: +4 -2 lines
Diff to previous 1.4 (colored)

Now that this is part of tools, we don't need the extra build glue.

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:17:06 2006 UTC (16 years, 11 months ago) by chap
Branch: chap-midi
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Sync with head.

Revision 1.4 / (download) - annotate - [select for diffs], Thu May 25 22:28:38 2006 UTC (17 years ago) by cube
Branch: MAIN
CVS Tags: chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

Introduce two new statements:

    obsolete defflag <option> [, <option> [, ...]]
    obsolete defparam <option> [, <option> [, ...]]

The two statements actually do the same thing (there could be only one),
but it makes things less cryptic that way.  The optional ": deps" part of
a 'defflag' or 'defparam' still has to be dropped when it gets obsoleted.

When the user has 'options OBSOLETE_OPTION' in his configuration file, it
is ignored (that is, opt_*.h files are generated as if it wasn't there),
and the user gets a warning about it.

Bump version to 20060525.

When someone first uses that syntax in the tree, a "version 20060525"
statement should be added before its occurrence, preferably at the top
of sys/conf/files.

Suggested by Matt Thomas a few months ago.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Oct 12 01:17:43 2005 UTC (17 years, 7 months ago) by cube
Branch: MAIN
Branch point for: chap-midi
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

Introduce versioning to config(1).  This will allow us to provide a way to
error out in a bit more friendly way when the user is trying to use
config(1) on a too old or too recent source tree.

To achieve that, introduce the "version NUMBER" statement which can be use
about anywhere in the config files.  Also, use two defines, CONFIG_VERSION
(which is the actual version of binary), and CONFIG_MINVERSION, which is
the minimum version the binary supports.

Allowing a range of versions serves several purposes:  first it allows me
to introduce the versioning without requiring it to be used right away in
the kernel tree, which means it will be possible to introduce new features
of config(1) rather progressively in the future.  E.g., using 'no pci' in
a config file could only require the new version in that config file, so
that the rest remains compatible.

In the end, an actual bump of the main config system (i.e., in conf/files)
will only be required when e.g., ioconf.c semantics change.

(Mostly-)silently accepted on tech-kern.  Error messages turned into
correct and meaningful English thanks to Tracy and Perry.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Sep 10 15:38:46 2005 UTC (17 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.1: +67 -5 lines
Diff to previous 1.1 (colored)

Move package/cinclude/include handling from the parser to the scanner,
where it belongs. This has the side effect of fixing PR toolchain/30903.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jun 5 18:19:53 2005 UTC (18 years ago) by thorpej
Branch: MAIN

config and genassym are not sysadmin tools, they are development tools.
As such, they don't belong in /usr/sbin, but rather /usr/bin.  Move them
there.

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>