Ignore:
Timestamp:
Aug 1, 2003, 8:42:12 AM (22 years ago)
Author:
zap
Message:

See ChangeLog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/locale.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r493 r494  
    1 /* locale.h (emx+gcc) */
     1/*
     2    Locale support implementation through OS/2 Unicode API.
     3    Copyright (c) 2003 InnoTek Systemberatung GmbH
     4
     5    For conditions of distribution and use, see the file COPYING.
     6
     7    POSIX locale implementation.
     8*/
    29
    310#ifndef _LOCALE_H
     
    815#endif
    916
    10 #if !defined (NULL)
    11 #if defined (__cplusplus)
    12 #define NULL 0
    13 #else
    14 #define NULL ((void *)0)
    15 #endif
    16 #endif
     17/* lconv and categories */
     18#include <sys/locale.h>
    1719
    18 #define LC_ALL          0
    19 #define LC_COLLATE      1
    20 #define LC_CTYPE        2
    21 #define LC_MONETARY     3
    22 #define LC_NUMERIC      4
    23 #define LC_TIME         5
    24 
    25 #define LC_C             "C"
    26 #define LC_C_FRANCE      "FRAN"
    27 #define LC_C_GERMANY     "GERM"
    28 #define LC_C_ITALY       "ITAL"
    29 #define LC_C_SPAIN       "SPAI"
    30 #define LC_C_UK          "UK"
    31 #define LC_C_USA         "USA"
    32 
    33 struct lconv
    34 {
    35   char *decimal_point;
    36   char *thousands_sep;
    37   char *grouping;
    38   char *int_curr_symbol;
    39   char *currency_symbol;
    40   char *mon_decimal_point;
    41   char *mon_thousands_sep;
    42   char *mon_grouping;
    43   char *positive_sign;
    44   char *negative_sign;
    45   char int_frac_digits;
    46   char frac_digits;
    47   char p_cs_precedes;
    48   char p_sep_by_space;
    49   char n_cs_precedes;
    50   char n_sep_by_space;
    51   char p_sign_posn;
    52   char n_sign_posn;
    53 };
    54 
    55 
    56 char *setlocale (int, __const__ char *);
    57 
    58 struct lconv *_localeconv (int);
    59 struct lconv *localeconv (void);
    60 
    61 #if defined (__CHAR_UNSIGNED__)
    62 #define localeconv() _localeconv (255)
    63 #else
    64 #define localeconv() _localeconv (127)
    65 #endif
     20/* Set current locale, if __locale is not NULL. Returns previous locale. */
     21extern char *setlocale (int category, __const__ char *locale);
     22/* Get information about current locale. */
     23extern struct lconv *localeconv (void);
    6624
    6725#if defined (__cplusplus)
Note: See TracChangeset for help on using the changeset viewer.