www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/11/27/12:05:08

Date: Wed, 27 Nov 2002 17:08:53 +0000
From: "Richard Dawe" <rich AT phekda DOT freeserve DOT co DOT uk>
Sender: rich AT phekda DOT freeserve DOT co DOT uk
To: djgpp-workers AT delorie DOT com
X-Mailer: Emacs 21.3.50 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6
Subject: struct lconv: new members to comply with C99 [PATCH]
Message-Id: <E18H5cR-0000aj-00@phekda.freeserve.co.uk>
Reply-To: djgpp-workers AT delorie DOT com

Hello.

'struct lconv' in <locale.h> needs some more members, to comply
with C99. I believe we have no support for locales and the patch
below should be sufficient.

OK to commit?

Thanks, bye, Rich =]

Index: include/locale.h
===================================================================
RCS file: /cvs/djgpp/djgpp/include/locale.h,v
retrieving revision 1.4
diff -p -u -3 -r1.4 locale.h
--- include/locale.h	17 Oct 2002 23:00:24 -0000	1.4
+++ include/locale.h	27 Nov 2002 17:03:15 -0000
@@ -1,3 +1,4 @@
+/* Copyright (C) 2002 DJ Delorie, see COPYING.DJ for details */
 /* Copyright (C) 2001 DJ Delorie, see COPYING.DJ for details */
 /* Copyright (C) 1997 DJ Delorie, see COPYING.DJ for details */
 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
@@ -38,6 +39,12 @@ struct lconv {
   char p_cs_precedes;
   char p_sep_by_space;
   char p_sign_posn;
+  char int_n_cs_precedes;
+  char int_n_sep_by_space;
+  char int_n_sign_posn;
+  char int_p_cs_precedes;
+  char int_p_sep_by_space;
+  char int_p_sign_posn;
 };
 
 struct lconv *	localeconv(void);
Index: src/libc/ansi/locale/lconv.c
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libc/ansi/locale/lconv.c,v
retrieving revision 1.2
diff -p -u -3 -r1.2 lconv.c
--- src/libc/ansi/locale/lconv.c	31 Aug 1997 16:43:30 -0000	1.2
+++ src/libc/ansi/locale/lconv.c	27 Nov 2002 17:03:15 -0000
@@ -24,6 +24,12 @@ static struct lconv __lconv_ = {
   CHAR_MAX,
   CHAR_MAX,
   CHAR_MAX,
+  CHAR_MAX,
+  CHAR_MAX,
+  CHAR_MAX,
+  CHAR_MAX,
+  CHAR_MAX,
+  CHAR_MAX,
   CHAR_MAX
 };
 
Index: src/docs/kb/wc204.txi
===================================================================
RCS file: /cvs/djgpp/djgpp/src/docs/kb/wc204.txi,v
retrieving revision 1.120
diff -p -u -3 -r1.120 wc204.txi
--- src/docs/kb/wc204.txi	17 Oct 2002 15:11:11 -0000	1.120
+++ src/docs/kb/wc204.txi	27 Nov 2002 17:03:20 -0000
@@ -774,3 +774,11 @@ as @code{_fixpath}, but is @sc{posix} co
 
 @findex isblank
 The function @code{isblank} was added.
+
+@cindex C99 compliance, @code{struct lconv}
+@cindex C99 compliance, @file{locale.h}
+@tindex struct lconv
+The @code{int_n_cs_precedes}, @code{int_n_sep_by_space},
+@code{int_n_sign_posn}, @code{int_p_cs_precedes},
+@code{int_p_sep_by_space} and @code{int_p_sign_posn} members were added
+to @code{struct lconv}, to comply with the C99 standard.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019