(file) Return to strings.c CVS log (file) (dir) Up to [OMI] / omi / base / Attic

Diff for /omi/base/Attic/strings.c between version 1.1 and 1.2

version 1.1, 2012/05/30 22:47:49 version 1.2, 2012/06/15 20:51:14
Line 153 
Line 153 
     return src - start;     return src - start;
 } }
  
   #if !defined(CONFIG_FAVORSIZE)
   
 // The following defines string literals for the numbers 0 through 63. The // The following defines string literals for the numbers 0 through 63. The
 // first character is the length of the string. The subsequent characters // first character is the length of the string. The subsequent characters
 // are the string literal iteslf. // are the string literal iteslf.
Line 224 
Line 226 
     "\00263",     "\00263",
 }; };
  
   #endif /* !defined(CONFIG_FAVORSIZE) */
   
 const char* Uint32ToStr(char buf[11], MI_Uint32 x, size_t* size) const char* Uint32ToStr(char buf[11], MI_Uint32 x, size_t* size)
 { {
     char* p;     char* p;
  
   #if !defined(CONFIG_FAVORSIZE)
   
     if (x < 64)     if (x < 64)
     {     {
         *size = _numberStrings[x][0];         *size = _numberStrings[x][0];
         return &_numberStrings[x][1];         return &_numberStrings[x][1];
     }     }
  
   #endif /* !defined(CONFIG_FAVORSIZE)*/
   
     p = &buf[10];     p = &buf[10];
     *p = '\0';     *p = '\0';
  
Line 251 
Line 259 
 { {
     char* p;     char* p;
  
   #if !defined(CONFIG_FAVORSIZE)
   
     if (x < 64)     if (x < 64)
     {     {
         *size = _numberStrings[x][0];         *size = _numberStrings[x][0];
         return &_numberStrings[x][1];         return &_numberStrings[x][1];
     }     }
  
   #endif /* !defined(CONFIG_FAVORSIZE)*/
   
     p = &buf[20];     p = &buf[20];
     *p = '\0';     *p = '\0';
  


Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

ViewCVS 0.9.2