pike.git / src / pike_types.cmod

version» Context lines:

pike.git/src/pike_types.cmod:9954:       EXIT_REMAP_STATE(remap);       free_type(tmp);    free_type(tmp2);       return !tmp2;   }      /** -  * Check whether a is a valid variant overload of b. +  * Check whether a (after) is a valid variant overload of b (before).    *    * Returns 0 if a shadows all cases of b (ie b will never be used).    *    * Returns 1 otherwise.    */   int check_variant_overload(struct pike_type *a, struct pike_type *b)   {    /* NOTE: This test is non-intuitive. The intuitive test would be -  * a - b == Ø, but that does not work. +  * b - a == Ø, but that does not work.    *    * Consider    *    * a: function(:mixed)    * b: function(__unknown__ ...:mixed)    *    * ie    *    * a: "The set of functions that accept 0 arguments."    * b: "The set of functions that accept any number of arguments."