pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:1174: Inside #if defined(HAVE__CRYPT)
  #ifdef HAVE__CRYPT    ret = (char *)_crypt(sp[-args].u.string->str, saltp);   #else    ret = sp[-args].u.string->str;   #endif   #endif    if (!ret) {    switch(errno) {   #ifdef ELIBACC    case ELIBACC: -  Pike_error("Failed to load a required shared library. " +  error("Failed to load a required shared library. "    "Unsupported salt.\n");    break;   #endif    case ENOMEM: -  Pike_error("Out of memory.\n"); +  error("Out of memory.\n");    break;    case EINVAL:    default: -  Pike_error("Unsupported salt (%d).\n", errno); +  error("Unsupported salt (%d).\n", errno);    break;    }    }    if(args < 2)    {    pop_n_elems(args);    push_string(make_shared_string(ret));    }else{    int i;    i=!strcmp(ret,sp[1-args].u.string->str);