pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:95:    optflags OPT_TRY_OPTIMIZE;   {    if(a->size != b->size)    bad_arg_error("mkmapping", sp-args, args, 2, "array", sp+1-args,    "mkmapping called on arrays of different sizes (%d != %d)\n",    a->size, b->size);       RETURN mkmapping(a,b);   }    - PIKEFUN ptrdiff_t string_count(string haystack, string needle) + PIKEFUN int string_count(string haystack, string needle)    errname String.count;    optflags OPT_TRY_OPTIMIZE;   {    ptrdiff_t c = 0;    ptrdiff_t i, j;       switch (needle->len)    {    case 0:    switch (haystack->len)
pike.git/src/builtin.cmod:124:    default:    for (i=0; i<haystack->len; i++)    {    j=string_search(haystack,needle,i);    if (j==-1) break;    i=j+needle->len-1;    c++;    }    break;    } -  RETURN c; +  RETURN DO_NOT_WARN((INT_TYPE)c);   }      PIKEFUN int program_implements(program p, program p2)    errname Program.implements;    optflags OPT_TRY_OPTIMIZE;   {    RETURN implements(p,p2);   }      PIKEFUN int program_inherits(program p, program p2)