pike.git / src / module_support.c

version» Context lines:

pike.git/src/module_support.c:527:    case ARGS_LONG:    break;    case ARGS_NUL_IN_STRING:    bad_arg_error(    fname, sp-args, args,    ret+1,    "string(1..255)",    sp+ret-args,    "Bad argument %d to %s(). NUL in string.\n",    ret+1, fname); -  /* NOT REACHED */ +  UNREACHABLE();       case ARGS_SUBTYPED_OBJECT:    bad_arg_error(fname, sp-args, args, ret+1, "object",    sp+ret-args,    "Subtyped objects are not supported.\n"); -  /* NOT_REACHED */ +  UNREACHABLE();       case ARGS_SHORT:    default: {    char *expected_type;       /* NB: For ARGS_SHORT we know there's no period in format that    * might offset the format specs. */    switch(info == ARGS_SHORT ? format[ret*2+1] : info) {    case 'd': case 'i': case 'l': expected_type = "int"; break;    case 'D': case 'I': expected_type = "int|float"; break;
pike.git/src/module_support.c:596:    if (!req_args_end) req_args_end = strchr (format, 0);    bad_arg_error(    fname, sp-args, args,    ret+1,    expected_type,    0,    "Too few arguments to %s(). Expected %"PRINTPTRDIFFT"d arguments, got %d.\n"    "The type of the next argument is expected to be %s.\n",    fname, (req_args_end - format) / 2, args, expected_type);    } -  /* NOT REACHED */ +  UNREACHABLE();    }    }   }      /* NOTA BENE:    * The code below assumes that dynamic modules are not    * unloaded from memory...    */      static struct mapping *exported_symbols;