pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: builtin_functions.c,v 1.686 2008/08/28 20:11:47 grubba Exp $ + || $Id: builtin_functions.c,v 1.687 2008/09/26 21:29:02 nilsson Exp $   */      #include "global.h"   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"
pike.git/src/builtin_functions.c:2276:    free_type(t);   }      /*! @decl type __soft_cast(type to, type from)    *!    *! Return the resulting type from a soft cast of @[from] to @[to].    */   static void f___soft_cast(INT32 args)   {    struct pike_type *res; -  if (args < 2) Pike_error("Bad number of arguments to __low_check_call().\n"); +  if (args < 2) Pike_error("Bad number of arguments to __soft_cast().\n");    if (Pike_sp[-args].type != PIKE_T_TYPE) { -  Pike_error("Bad argument 1 to __low_check_call() expected type.\n"); +  Pike_error("Bad argument 1 to __soft_cast() expected type.\n");    }    if (Pike_sp[1-args].type != PIKE_T_TYPE) { -  Pike_error("Bad argument 2 to __low_check_call() expected type.\n"); +  Pike_error("Bad argument 2 to __soft_cast() expected type.\n");    }    if (!(res = soft_cast(Pike_sp[-args].u.type,    Pike_sp[1-args].u.type, 0))) {    pop_n_elems(args);    push_undefined();    } else {    pop_n_elems(args);    push_type_value(res);    }   }
pike.git/src/builtin_functions.c:2849:    foo=my_rand();    salt[1] = choise[foo % (size_t) strlen(choise)];    saltp=salt;    }   #ifdef HAVE_CRYPT    ret = (char *)crypt(pwd, saltp);   #else   #ifdef HAVE__CRYPT    ret = (char *)_crypt(pwd, saltp);   #else -  ret = pwd; + #error No crypt function found and fallback failed.   #endif   #endif    if(args < 2)    {    pop_n_elems(args);    push_text(ret);    }else{    int i;    i=!strcmp(ret,saltp);    pop_n_elems(args);