Changeset 1796


Ignore:
Timestamp:
Jan 28, 2005, 8:19:00 PM (20 years ago)
Author:
bird
Message:

Added the C99 lconv stuff.

Location:
trunk/src/emx
Files:
3 edited

Legend:

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

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r1795 r1796  
    6464        char    p_sign_posn;            /** positioning of non-negative monetary sign */
    6565        char    n_sign_posn;            /** positioning of negative monetary sign */
    66 #if 0 /* bird: we don't have this information (it's C99 stuff btw). */
    6766        char    int_p_cs_precedes;
    6867        char    int_n_cs_precedes;
     
    7170        char    int_p_sign_posn;
    7271        char    int_n_sign_posn;
    73 #endif
    7472};
    7573
  • TabularUnified trunk/src/emx/src/lib/locale/locale_lconv.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r1795 r1796  
    5656        CHAR_MAX,                       //int_n_sep_by_space;
    5757        CHAR_MAX,                       //int_p_sign_posn;
    58         CHAR_MAX,                        //int_n_sign_posn;
    59         -1
     58        CHAR_MAX                        //int_n_sign_posn;
    6059    },
    6160
  • TabularUnified trunk/src/emx/src/lib/locale/setlocale.c

    • Property cvs2svn:cvs-rev changed from 1.14 to 1.15
    r1795 r1796  
    970970        pLconv->s.p_sign_posn       = pULconv->p_sign_posn;
    971971        pLconv->s.n_sign_posn       = pULconv->n_sign_posn;
     972        /* we fake the international variants here. */
     973        pLconv->s.int_p_cs_precedes = pULconv->p_cs_precedes;
     974        pLconv->s.int_n_cs_precedes = pULconv->n_cs_precedes;
     975        pLconv->s.int_p_sep_by_space= pULconv->p_sep_by_space;
     976        pLconv->s.int_n_sep_by_space= pULconv->n_sep_by_space;
     977        pLconv->s.int_p_sign_posn   = pULconv->p_sign_posn;
     978        pLconv->s.int_n_sign_posn   = pULconv->n_sign_posn;
     979
    972980#undef CONVERT_UCS
    973981
     
    9971005        pLconv->s.p_sign_posn       = -1;
    9981006        pLconv->s.n_sign_posn       = -1;
     1007        pLconv->s.int_p_cs_precedes = -1;
     1008        pLconv->s.int_n_cs_precedes = -1;
     1009        pLconv->s.int_p_sep_by_space= -1;
     1010        pLconv->s.int_n_sep_by_space= -1;
     1011        pLconv->s.int_p_sign_posn   = -1;
     1012        pLconv->s.int_n_sign_posn   = -1;
    9991013
    10001014        return 0;
     
    15591573        __libc_gLocaleLconv.s.p_sign_posn        = pTemp->Lconv.s.p_sign_posn;
    15601574        __libc_gLocaleLconv.s.n_sign_posn        = pTemp->Lconv.s.n_sign_posn;
     1575        __libc_gLocaleLconv.s.int_p_cs_precedes  = pTemp->Lconv.s.int_p_cs_precedes;
     1576        __libc_gLocaleLconv.s.int_n_cs_precedes  = pTemp->Lconv.s.int_n_cs_precedes;
     1577        __libc_gLocaleLconv.s.int_p_sep_by_space = pTemp->Lconv.s.int_p_sep_by_space;
     1578        __libc_gLocaleLconv.s.int_n_sep_by_space = pTemp->Lconv.s.int_n_sep_by_space;
     1579        __libc_gLocaleLconv.s.int_p_sign_posn    = pTemp->Lconv.s.int_p_sign_posn;
     1580        __libc_gLocaleLconv.s.int_n_sign_posn    = pTemp->Lconv.s.int_n_sign_posn;
    15611581        __libc_gLocaleLconv.pszCrncyStr          = pTemp->Lconv.pszCrncyStr;
    15621582        pTemp->afProcessed[LC_MONETARY + 1] = 0;
Note: See TracChangeset for help on using the changeset viewer.