Search
lxdream.org :: lxdream/test/include/locale.h
lxdream 0.9.1
released Jun 29
Download Now
filename test/include/locale.h
changeset 185:6755a04c447f
author nkeynes
date Sat Aug 05 00:18:21 2006 +0000 (16 years ago)
permissions -rw-r--r--
last change Add error lines to tests with incomplete polys
Split clip tests to separate data file
Add tests for cmd bit 23 ("use list size field")
file annotate diff log raw
nkeynes@185
     1
/*
nkeynes@185
     2
	locale.h
nkeynes@185
     3
	Values appropriate for the formatting of monetary and other
nkeynes@185
     4
	numberic quantities.
nkeynes@185
     5
*/
nkeynes@185
     6
nkeynes@185
     7
#ifndef _LOCALE_H_
nkeynes@185
     8
#ifdef __cplusplus
nkeynes@185
     9
extern "C" {
nkeynes@185
    10
#endif
nkeynes@185
    11
#define _LOCALE_H_
nkeynes@185
    12
nkeynes@185
    13
#include "_ansi.h"
nkeynes@185
    14
nkeynes@185
    15
#ifndef NULL
nkeynes@185
    16
#define NULL    0L
nkeynes@185
    17
#endif
nkeynes@185
    18
nkeynes@185
    19
#define LC_ALL	    0
nkeynes@185
    20
#define LC_COLLATE  1
nkeynes@185
    21
#define LC_CTYPE    2
nkeynes@185
    22
#define LC_MONETARY 3
nkeynes@185
    23
#define LC_NUMERIC  4
nkeynes@185
    24
#define LC_TIME     5
nkeynes@185
    25
nkeynes@185
    26
struct lconv
nkeynes@185
    27
{
nkeynes@185
    28
  char *decimal_point;
nkeynes@185
    29
  char *thousands_sep;
nkeynes@185
    30
  char *grouping;
nkeynes@185
    31
  char *int_curr_symbol;
nkeynes@185
    32
  char *currency_symbol;
nkeynes@185
    33
  char *mon_decimal_point;
nkeynes@185
    34
  char *mon_thousands_sep;
nkeynes@185
    35
  char *mon_grouping;
nkeynes@185
    36
  char *positive_sign;
nkeynes@185
    37
  char *negative_sign;
nkeynes@185
    38
  char int_frac_digits;
nkeynes@185
    39
  char frac_digits;
nkeynes@185
    40
  char p_cs_precedes;
nkeynes@185
    41
  char p_sep_by_space;
nkeynes@185
    42
  char n_cs_precedes;
nkeynes@185
    43
  char n_sep_by_space;
nkeynes@185
    44
  char p_sign_posn;
nkeynes@185
    45
  char n_sign_posn;
nkeynes@185
    46
};
nkeynes@185
    47
nkeynes@185
    48
#ifndef _REENT_ONLY
nkeynes@185
    49
char *_EXFUN(setlocale,(int category, const char *locale));
nkeynes@185
    50
struct lconv *_EXFUN(localeconv,(void));
nkeynes@185
    51
#endif
nkeynes@185
    52
nkeynes@185
    53
struct _reent;
nkeynes@185
    54
char *_EXFUN(_setlocale_r,(struct _reent *, int category, const char *locale));
nkeynes@185
    55
struct lconv *_EXFUN(_localeconv_r,(struct _reent *));
nkeynes@185
    56
nkeynes@185
    57
#ifdef __cplusplus
nkeynes@185
    58
}
nkeynes@185
    59
#endif
nkeynes@185
    60
#endif /* _LOCALE_H_ */
.