Changeset 8666


Ignore:
Timestamp:
2004-11-25T10:20:30+13:00 (19 years ago)
Author:
jrm21
Message:

renamed multibyte variable since that is the name of a macro on solaris.

Location:
trunk/gsdl/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/lib/gsdlunicode.cpp

    r3667 r8666  
    415415
    416416mapinconvertclass::mapinconvertclass () {
    417   multibyte = 0;
     417  m_multibyte = 0;
    418418  mapbuflen = 0;
    419419}
     
    484484
    485485mapoutconvertclass::mapoutconvertclass () {
    486   multibyte = 0;
     486  m_multibyte = 0;
    487487  mapbuflen=0;
    488488  mapbufhere=0;
     
    537537    } else {
    538538      outc = converter.convert (*texthere);
    539       if (multibyte) {
     539      if (m_multibyte) {
    540540        mapbuf[0] = (unsigned char)(outc >> 8);
    541541        mapbuf[1] = (unsigned char)(outc & 0xff);
  • trunk/gsdl/lib/gsdlunicode.h

    r3667 r8666  
    158158  };
    159159
    160   void set_multibyte (int new_multibyte) {multibyte = new_multibyte;};
     160  void set_multibyte (int new_multibyte) {m_multibyte = new_multibyte;};
    161161
    162162  void reset ();
     
    167167  unsigned char mapbuf[MAXMAPCHARLEN];
    168168  size_t mapbuflen;
    169   int multibyte;
     169  int m_multibyte;
    170170
    171171  // note: multiple instances of mapinconvert class are expensive
     
    180180    if (mapbuflen == 0) return 0;
    181181    if (mapbuf[0] < 0x80) return 1;
    182     if (!multibyte) return 1;
     182    if (!m_multibyte) return 1;
    183183    return 2;
    184184  }
     
    203203  };
    204204
    205   void set_multibyte (int new_multibyte) {multibyte = new_multibyte;};
     205  void set_multibyte (int new_multibyte) {m_multibyte = new_multibyte;};
    206206
    207207  void reset ();
     
    213213  size_t mapbuflen;
    214214  size_t mapbufhere;
    215   int multibyte;
     215  int m_multibyte;
    216216
    217217  mapconvert converter;
Note: See TracChangeset for help on using the changeset viewer.