pike.git / src / cpp.cmod

version» Context lines:

pike.git/src/cpp.cmod:1727:    * Other | Other | 8bit standard string.    *    * Note that the tests below are more lenient than the table above.    * This shouldn't matter, since the other cases would be erroneus    * anyway.    */       /* Add an extra reference to data, since we may return it as is. */    add_ref(data);    +  if (!data->len) return data; +     if ((!((unsigned char *)data->str)[0]) ||    (((unsigned char *)data->str)[0] == 0xfe) ||    (((unsigned char *)data->str)[0] == 0xff) ||    (!((unsigned char *)data->str)[1])) {    /* Unicode */    if ((!((unsigned char *)data->str)[0]) &&    (!((unsigned char *)data->str)[1])) {    /* 32bit Unicode (UCS4) */    struct pike_string *new_str;    ptrdiff_t len;