pike.git / src / modules / Parser / pike.c

version» Context lines:

pike.git/src/modules/Parser/pike.c:104:    case 0:    left = tokenize0(&res, STR0(data), data->len);    left_s = make_shared_binary_string0(STR0(data)+left, data->len-left);    break;    case 1:    left = tokenize1(&res, STR1(data), data->len);    left_s = make_shared_binary_string1(STR1(data)+left, data->len-left);    break;    case 2:    left = tokenize2(&res,STR2(data), data->len); -  left_s = make_shared_binary_string1(STR2(data)+left, data->len-left); +  left_s = make_shared_binary_string2(STR2(data)+left, data->len-left);    break;   #ifdef PIKE_DEBUG    default:    Pike_error("Unknown shift size %d.\n", data->size_shift);   #endif    }       UNSET_ONERROR(tmp);    pop_n_elems(args);    push_array(res);    push_string( left_s );    f_aggregate( 2 );   }         void init_parser_pike()   { -  ADD_FUNCTION("tokenize", f_tokenize, -  tFunc(tStr,tArr(tOr(tArr(tStr),tStr))), 0); +  ADD_FUNCTION2("tokenize", f_tokenize, +  tFunc(tStr,tArr(tOr(tArr(tStr),tStr))), 0, 0);   }      void exit_parser_pike()   {   }