| #include <langinfo.h> |
| #define T(t) (t*)0; |
| #define C(n) switch(n){case n:;} |
| static void f() |
| { |
| T(locale_t) |
| T(nl_item) |
| C(CODESET) |
| C(D_T_FMT) |
| C(D_FMT) |
| C(T_FMT) |
| C(T_FMT_AMPM) |
| C(AM_STR) |
| C(PM_STR) |
| C(DAY_1) |
| C(DAY_2) |
| C(DAY_3) |
| C(DAY_4) |
| C(DAY_5) |
| C(DAY_6) |
| C(DAY_7) |
| C(ABDAY_1) |
| C(ABDAY_2) |
| C(ABDAY_3) |
| C(ABDAY_4) |
| C(ABDAY_5) |
| C(ABDAY_6) |
| C(ABDAY_7) |
| C(MON_1) |
| C(MON_2) |
| C(MON_3) |
| C(MON_4) |
| C(MON_5) |
| C(MON_6) |
| C(MON_7) |
| C(MON_8) |
| C(MON_9) |
| C(MON_10) |
| C(MON_11) |
| C(MON_12) |
| C(ABMON_1) |
| C(ABMON_2) |
| C(ABMON_3) |
| C(ABMON_4) |
| C(ABMON_5) |
| C(ABMON_6) |
| C(ABMON_7) |
| C(ABMON_8) |
| C(ABMON_9) |
| C(ABMON_10) |
| C(ABMON_11) |
| C(ABMON_12) |
| C(ERA) |
| C(ERA_D_FMT) |
| C(ERA_D_T_FMT) |
| C(ERA_T_FMT) |
| C(ALT_DIGITS) |
| C(RADIXCHAR) |
| C(THOUSEP) |
| C(YESEXPR) |
| C(NOEXPR) |
| C(CRNCYSTR) |
| {char*(*p)(nl_item) = nl_langinfo;} |
| {char*(*p)(nl_item,locale_t) = nl_langinfo_l;} |
| } |