From 842907c6f8e6022f443175072e65bc516eb0973b Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 12 Jul 1996 02:01:17 +0000 Subject: * inet/getnetent_r.c: Define NEED_H_ERRNO. * inet/getnetbynm_r.c: Likewise. * inet/getnetent.c: Likewise. * inet/getnetbyad_r.c: Likewise. * inet/getnetbyad.c: Likewise. * inet/getnetbynm.c: Likewise. * sysdeps/generic/pselect.c: Include . * misc/sys/select.h: Include instead of for `struct timespec'. --- intl/explodename.c | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'intl/explodename.c') diff --git a/intl/explodename.c b/intl/explodename.c index 2fd8be014d..7a0d015f3e 100644 --- a/intl/explodename.c +++ b/intl/explodename.c @@ -1,7 +1,9 @@ /* Copyright (C) 1995, 1996 Free Software Foundation, Inc. -This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1995. +This file is part of the GNU C Library. Its master source is NOT part of +the C library, however. The master source lives in /gd/gnu/lib. + The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the @@ -14,14 +16,29 @@ Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. */ +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#ifdef HAVE_CONFIG_H +# include +#endif #include #include #include "loadinfo.h" +/* On some strange systems still no definition of NULL is found. Sigh! */ +#ifndef NULL +# if defined __STDC__ && __STDC__ +# define NULL ((void *) 0) +# else +# define NULL 0 +# endif +#endif + +/* @@ end of prolog @@ */ + int _nl_explode_name (name, language, modifier, territory, codeset, normalized_codeset, special, sponsor, revision) @@ -38,7 +55,7 @@ _nl_explode_name (name, language, modifier, territory, codeset, enum { undecided, xpg, cen } syntax; char *cp; int mask; - + *modifier = NULL; *territory = NULL; *codeset = NULL; -- cgit v1.2.3