OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [include/] [locale.h] - Blame information for rev 1773

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1005 ivang
/*
2
        locale.h
3
        Values appropriate for the formatting of monetary and other
4
        numberic quantities.
5
*/
6
 
7
#ifndef _LOCALE_H_
8
#ifdef __cplusplus
9
extern "C" {
10
#endif
11
#define _LOCALE_H_
12
 
13
#include "_ansi.h"
14
 
15
#ifndef NULL
16
#define NULL    0
17
#endif
18
 
19
#define LC_ALL      0
20
#define LC_COLLATE  1
21
#define LC_CTYPE    2
22
#define LC_MONETARY 3
23
#define LC_NUMERIC  4
24
#define LC_TIME     5
25
#define LC_MESSAGES 6
26
 
27
struct lconv
28
{
29
  char *decimal_point;
30
  char *thousands_sep;
31
  char *grouping;
32
  char *int_curr_symbol;
33
  char *currency_symbol;
34
  char *mon_decimal_point;
35
  char *mon_thousands_sep;
36
  char *mon_grouping;
37
  char *positive_sign;
38
  char *negative_sign;
39
  char int_frac_digits;
40
  char frac_digits;
41
  char p_cs_precedes;
42
  char p_sep_by_space;
43
  char n_cs_precedes;
44
  char n_sep_by_space;
45
  char p_sign_posn;
46
  char n_sign_posn;
47
};
48
 
49
#ifndef _REENT_ONLY
50
char *_EXFUN(setlocale,(int category, const char *locale));
51
struct lconv *_EXFUN(localeconv,(void));
52
#endif
53
 
54
struct _reent;
55
char *_EXFUN(_setlocale_r,(struct _reent *, int category, const char *locale));
56
struct lconv *_EXFUN(_localeconv_r,(struct _reent *));
57
 
58
#ifdef __cplusplus
59
}
60
#endif
61
#endif /* _LOCALE_H_ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.