Commit Graph

41 Commits

Author SHA1 Message Date
wiz 49b12ea919 Some fixes from jmc@openbsd. 2004-01-24 17:03:26 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +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
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
lukem a93ea220fc Rework how dependency generation is performed:
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
  This is a change of behaviour.  If a Makefile wants the clean semantics
  it must specifically append to CLEANFILES.
  Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
  that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d  depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
2003-08-01 17:03:41 +00:00
itojun a0e42b4568 strdup is easier 2003-07-14 09:22:17 +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
tshiozak f664dc53f3 zero-clear the file structures, to fixate paddings.
this change solves the illness pointed out by Nino Dehne in tech-userlevel
list.
2003-05-12 06:05:52 +00:00
wiz a63657f6f4 Comment out another euc(4) reference.
Prefer mdoc to man plain roff.
Use \*[Lt] and \*[Gt] instead of < and > for HTML output, but prefer
.Aq if possible.
"a, b, and c" instead of "a, b and c".
2003-05-01 09:45:03 +00:00
gmcgarry 57e1c07c62 Remove references to non-existent pages. Addresses PR#12544. 2003-05-01 08:09:57 +00:00
bjh21 76a26cefcd This is a host tool, so check if __RCSID is defined before using it. 2003-04-21 08:41:28 +00:00
christos 34ffdb33ed enable RCSID.. 2003-04-21 02:03:41 +00:00
tshiozak 6ca2252907 - support for the additional code area of zh_CN.GB18030 locale,
- make sure that __nbrune_t is unsigned 32bit clean and
- fix wrong copyright notice in the last commit.
this patch is contributed by Takehiko NOZAKI <sigsegv at s25 dot xrea dot com>.
2003-04-06 18:33:23 +00:00
tshiozak 5e62671b2f changes for cross build on FreeBSD box.
- rename some macros and types defined in runetype.h.
 - move declarations of some global symbols to rune.h from runetype.h.
 - make sure the target sources use rune.h and mklocale use runetype.h.
I tested them on FreeBSD-4.6.2 box (./build.sh -m i386 tools).
2003-03-11 17:23:07 +00:00
tshiozak 4f31053655 rename _CTYPE_x to _RUNETYPE_x for avoiding compile error on FreeBSD. 2003-03-10 21:18:50 +00:00
tshiozak 75e29ba505 some changes around mklocale:
- clean up cpp directives.
- stop including rune.h from mklocale.
- stop using _BSD_RUNE_T macro.  instead, use int32_t directly in runetype.h.
- move _DEFAULT_INVALID_RUNE to runetype.h.
These were for historical reason on porting rune from FreeBSD,
but it seems that these are no longer reasonable but troublesome
under the current NetBSD build system.
additionally:
- runetype.h -> locale/runetype.h in mklocale, because this might conflict
  to FreeBSD's one.
2003-03-10 20:41:29 +00:00
tshiozak 947243ba1e revoke using PRIu32 macro and add fallback for UINT32_C macro,
because these do not exist on rather older systems.
XXX: I wonder someone will add them to tools/compat.
2003-03-10 09:37:04 +00:00
tshiozak 498e0550aa use UINT32_C and PRIu32 macros instead of 0x...U and %u. 2003-03-03 08:49:15 +00:00
tshiozak 8bc967f427 sync with the last change of runetype.h; %ld -> %u. 2003-03-03 08:30:21 +00:00
uwe 5bc6d9c431 On FreeBSD host define _DONT_USE_CTYPE_INLINE_ before including ctype.h.
We pull in our _RuneLocale, while the inlines are for the host _RuneLocale.
2003-01-27 01:22:10 +00:00
wiz ea577b210e Debugging is usually spelled with three gs. 2002-12-22 13:50:35 +00:00
grant be8ae688ae New sentence, new line. 2002-09-30 11:08:56 +00:00
lukem 5d4973fe97 makefile delint. use NETBSDSRCDIR as appropriate 2002-09-18 14:00:33 +00:00
bjh21 caaf2ee30b Include <arpa/inet.h> for ntohl and htonl on POSIX systems.
Also include its prerequisites for compiling on older NetBSD versions.
2002-04-26 18:04:58 +00:00
tshiozak dc7d18ff88 refine i18n stuffs.
- add libc/citrus directory.
    this directory contains the common stuffs not only for locale
    but also other facilities relating to i18n (e.g. iconv).
  - To keep the binary compatibility for the ctype modules easily,
    the interface between libc and the modules is simplified.
  - For the future integrated extension, module pool is renamed
    from "/usr/lib/runemodule" to "/usr/lib/i18n".
    In the future, this directory will contain the modules for "iconv",
    "collation", etc.
  - some cosmetic changes.
  - Bug fix for runetype.h; __attribute__((__packed__)) is placed at
    the wrong position and it is invalid unintentionally.
    But, the all members of the structures seem well-aligned.  Thus,
    this bug causes no problem, hopefully.

HEADS UP:
  - /usr/lib/rumemodule is obsoleted.  If you use the multibyte locales,
    you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
  - The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
    Perhaps, the bug fix about __packed__ mentioned above breaks the
    compatibility...  Be careful especially on 64bit platforms.
2002-03-17 22:14:05 +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 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 a9f8e2d2fa Sort sections. 2001-12-01 20:45:20 +00:00
tv 7762a7fe1c Clean up. Use -I., not -I${.OBJDIR}. Don't have to clean up y.tab.h. 2001-11-12 20:23:26 +00:00
jmc e332480c9c Convert default invalid to to use the #define now available in rune.h 2001-10-20 06:01:53 +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
wiz e0c891c14a Comment out colldef xref. 2001-04-04 12:07:04 +00:00
wiz 247329bfd3 Remove references to rune(3), mbrune(3), and utf2(4).
Fix some markup, and remove a sentence.
OK'd by soda.
2001-04-04 11:51:43 +00:00
thorpej c910e5b5bb If the new locale's variable data is length 0, don't bother trying
to write it.  fwrite(3) is a noop in that case anyway, and the error
detection logic here was screwing up on the 0 return from fwrite(3)
(that return value is mandated by SUSv2 for size or count of 0).

While here, improve the error messgages given to the user.
2001-01-28 00:50:04 +00:00
thorpej 12c9da42f1 Make this build with WARNS=2. 2001-01-28 00:28:01 +00:00
enami 0c7c2d05c2 Make yacc.h before making lex.o. 2001-01-11 14:20:18 +00:00
itojun c66fb7f316 noted that we should switch to localedef. 2000-12-23 23:24:25 +00:00
itojun 028d8029d8 remove unnecessary -I to cpp 2000-12-22 07:02:49 +00:00
itojun 3723b80490 cleanup #if around __RCS 2000-12-22 06:04:21 +00:00
itojun d31d542a97 populate citrus xpg4dl locale definitions into /usr/share.
if there are any mistakes, please report (i only speak English/Japanese).
currently, only singlebyte locales are usable.

TODO: enable multibyte handler in libc - there still are few design
discussions, but we are almost ready.
2000-12-22 01:31:47 +00:00