view modules/wctype @ 9273:7bb1d0d90657

Rename wctype_.h to wctype.in.h.
author Bruno Haible <bruno@clisp.org>
date Tue, 02 Oct 2007 00:42:53 +0200
parents 404dc8725caf
children 9f9682a4b630
line wrap: on
line source

Description:
A <wctype.h> that conforms better to C99.

Files:
lib/wctype.in.h
m4/wctype.m4
m4/wint_t.m4

Depends-on:
include_next

configure.ac:
gl_WCTYPE_H

Makefile.am:
BUILT_SOURCES += $(WCTYPE_H)

# We need the following in order to create <wctype.h> when the system
# doesn't have one that works with the given compiler.
wctype.h: wctype.in.h
	rm -f $@-t $@
	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
	  sed -e 's/@''HAVE_WCTYPE_H''@/$(HAVE_WCTYPE_H)/g' \
	      -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \
	      -e 's|@''NEXT_WCTYPE_H''@|$(NEXT_WCTYPE_H)|g' \
	      -e 's/@''HAVE_ISWCNTRL''@/$(HAVE_ISWCNTRL)/g' \
	      -e 's/@''HAVE_WINT_T''@/$(HAVE_WINT_T)/g' \
	      < $(srcdir)/wctype.in.h; \
	} > $@-t
	mv $@-t $@
MOSTLYCLEANFILES += wctype.h wctype.h-t

Include:
#include <wctype.h>

License:
LGPLv2+

Maintainer:
all