pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:3395:    a = program_indices(p);    break;    }    }    /* FALL THROUGH */       default:    SIMPLE_BAD_ARG_ERROR("indices", 1,    "string|array|mapping|"    "multiset|object|program|function"); -  return; /* make apcc happy */ +     }    pop_n_elems(args);    push_array(a);   }      /* this should probably be moved to pike_types.c or something */   #define FIX_OVERLOADED_TYPE(n, lf, X) fix_overloaded_type(n,lf,X,CONSTANT_STRLEN(X))   /* FIXME: This function messes around with the implementation of pike_type,    * and should probably be in pike_types.h instead.    */
pike.git/src/builtin_functions.c:3701:    a = program_values(p);    break;    }    }    /* FALL THROUGH */       default:    SIMPLE_BAD_ARG_ERROR("values", 1,    "string|array|mapping|multiset|"    "object|program|function"); -  return; /* make apcc happy */ +     }    pop_n_elems(args);    push_array(a);   }      /*! @decl array(type(mixed)) types(string|array|mapping|multiset|object x)    *!    *! Return an array with the types of all valid indices for the value @[x].    *!    *! @param x
pike.git/src/builtin_functions.c:3798:    a = program_types(p);    break;    }    }    /* FALL THROUGH */       default:    SIMPLE_BAD_ARG_ERROR("types", 1,    "string|array|mapping|"    "multiset|object|program|function"); -  return; /* make apcc happy */ +     }    pop_n_elems(args);    push_array(a);   }      /*! @decl program|function object_program(mixed o)    *!    *! Return the program from which @[o] was instantiated. If the    *! object was instantiated from a class using parent references    *! the generating function will be returned.