Commit Graph

93 Commits

Author SHA1 Message Date
wiz 5d1e8b2745 Fix some typos. 2006-02-25 02:28:55 +00:00
christos a35a74cd06 Fix pasto: don't call the wrong function from the wrapper. Reported by perry. 2005-08-08 01:28:08 +00:00
christos 0a918ea74c Traditional flex uses int instead of yy_size_t for some api functions.
Unfortunately this mangles differently in c++, so we get undefined symbols.
So we define the old function prototype to keep things happy.
2005-07-28 04:14:30 +00:00
christos f725dde259 PR/30511: Nicolas Joly: lex(1) generated files lint warnings 2005-06-12 20:04:22 +00:00
dsl 06dd932c49 Add (unsigned char) cast to ctype functions - Char is unsigned char. 2004-10-30 20:37:35 +00:00
christos 5a95d1e200 PR/25065: Arne H Juul: Typo in debugging output. 2004-04-05 21:17:27 +00:00
christos 8e65a43404 Include iosfwd instead of iostream, since it is smaller; from Marc Espie. 2004-02-01 21:24:02 +00:00
lukem 08680ea4eb yy_flex_realloc(): apply __attribute__((__unused__)) instead of
wrapping with  #ifndef YY_USES_REJECT  .  Fixes [toolchain/11845].

Use __attribute__((__unused__)) instead of __attribute__((unused)).
2003-12-02 06:22:14 +00:00
christos 2f971ecfcb More g++-3 fixes:
- std:c{in,out,err}
	- include <iostream>
	- use std::endl instead of \n
2003-11-18 21:37:39 +00:00
christos 07c6ad20d0 Try to fix cplusplus by adding std:: in some places. 2003-11-18 17:02:27 +00:00
christos bfac827045 include <malloc.h> only if we don't have <stdlib.h> 2003-10-28 20:43:51 +00:00
lukem 171d653219 Overhaul how `build.sh tools' are used:
*	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
lukem 130ab7336b Rework how MAKEVERBOSE operates:
*	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00
lukem a694177df5 support MAKEVERBOSE and use ${HOST_SH} 2003-10-19 04:25:00 +00:00
itojun a0cef40c27 need this line to remove doublequote 2003-07-16 14:57:29 +00:00
itojun c9df1b829c the line is needed (to remove closing doublequote) 2003-07-14 18:11:06 +00:00
itojun 479f575456 use bounded string op 2003-07-14 11:36:48 +00:00
wiz f61187c074 Remove superfluous ] in last. 2003-07-09 14:47:33 +00:00
jschauma dff18e6662 Add missing closing ']' for character class examples. 2003-07-08 22:15:04 +00:00
lukem 826a14607a Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op),
there's no need to special-case .include-ing it.
2003-05-18 07:57:31 +00:00
grant 82c28ff066 fix some Unix -> UNIX, Posix -> POSIX and some typos.
From Igor Sobrado in PR pkg/19666.
2003-01-18 18:54:10 +00:00
wiz 9c88b91fab Another two "new sentence, new line". 2002-10-13 00:18:58 +00:00
grant be8ae688ae New sentence, new line. 2002-09-30 11:08:56 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
tv 9fbd88883c Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
  sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
2002-01-31 22:43:33 +00:00
tv c77212906a Remove extraneous linkage to -ll. 2002-01-30 21:07:35 +00:00
tv a328e34106 Make almost all tools compile and run properly on non-NetBSD hosts. (In
particular, most tools now run correctly on Solaris 7.)
2002-01-29 10:20:28 +00:00
wiz aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
tv 2dd7b553d7 Find files via .PATH where appropriate. 2001-11-12 19:32:08 +00:00
tv 595b32cfea Bring up-to-date with flex.skl. 2001-10-04 17:12:27 +00:00
tv 9a0eaa53ba flex -> ${LEX} 2001-09-22 05:39:22 +00:00
tv dba5d44670 Add hooks to allow toolchain bits to be reachover-built at the top level. 2001-08-14 10:18:26 +00:00
christos 8b6c00c71e remove duplicate decls/nested externs. 2001-01-06 02:09:48 +00:00
christos 3646bd21df don't roll your own declaration of isatty; use <unistd.h>; needs to be checked
for c++
2001-01-06 02:09:31 +00:00
is 135600f947 More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
assar 28db96a6b5 add an unused attribute to yyunput to avoid warnings (errors) when
it's not being used
2000-06-17 11:56:21 +00:00
cgd d220ca5ba3 fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well.  No functional changes.
2000-06-14 06:48:47 +00:00
simonb 07146e66cb Redo previous again, so that the check for YY_USES_REJECT is after "%%"
but still included for c++ lexers.

Fixes libc:nslexer.c build failure reported by Matthias Scheler.
2000-03-17 23:21:45 +00:00
simonb 35803308dc Redo rev 1.10 so that the changed lines are back in their original
position in the file.  This allows c++ lexers to build.

Fixes PR 8258 from Nick Hudson (uses a slightly different fix than
the one Nick supplies) and problems with c++ lexers described on
tech-pkg by Berndt Josef Wulf.
2000-03-15 22:52:14 +00:00
soren 89c5a767f8 Fix doubled 'the's. 2000-03-13 22:55:05 +00:00
mycroft 0787759128 Add ARGSUSED for main(). 1999-03-06 00:19:07 +00:00
christos a492eb7eff Lint fixes:
- extend __GNUC__  if (0) hack for lint, make it use an unused
	  variable, and move it in reachable code.
	- fread and fwrite size_t casts.
	- use yy_size_t where appropriate.
1999-01-18 22:18:17 +00:00
lukem 72381e166d shut up `unused label' warning with %options yylineno, using a disgusting hack:
#ifdef __GNUC__
		if (0)
			goto find_label;
	#endif
:-)
1999-01-15 05:22:34 +00:00
lukem f860489a38 remove "unused function yy_flex_realloc()" warning if using %options yylineno 1999-01-14 06:58:40 +00:00
itohy 476393a9c0 Eliminate a memory leak. 1998-10-10 20:48:04 +00:00
tv 482063559a .y.c <sys.mk> rule fixes. Don't create a y.tab.h file unless asked for,
and use smarter creation of the header file.
1998-04-09 00:32:31 +00:00
christos b4cc7532f2 WARNSify 1998-02-22 12:08:33 +00:00
perry 3fe138c146 RCS Id Police. 1998-01-09 08:03:16 +00:00
perry c44d4effcd RCSID Police. 1998-01-05 05:15:43 +00:00
mrg 9f84449ae5 add missing .Nm sections. 1997-11-11 14:39:59 +00:00