pike.git / src / modules / _Stdio / efuns.c

version» Context lines:

pike.git/src/modules/_Stdio/efuns.c:492:    struct pike_string *str;    int res;       VALID_FILE_IO("file_truncate","write");       if(args < 2)    SIMPLE_TOO_FEW_ARGS_ERROR("file_truncate", 2);    if(TYPEOF(sp[-args]) != T_STRING)    SIMPLE_BAD_ARG_ERROR("file_truncate", 1, "string");    - #if defined (INT64) && defined (AUTO_BIGNUM) + #if defined (INT64)   #if defined (HAVE_FTRUNCATE64) || SIZEOF_OFF_T > SIZEOF_INT_TYPE    if(is_bignum_object_in_svalue(&Pike_sp[1-args])) {    if (!int64_from_bignum(&len, Pike_sp[1-args].u.object))    Pike_error ("Bad argument 2 to file_truncate(). Length too large.\n");    }    else   #endif   #endif    if(TYPEOF(sp[1-args]) != T_INT)    SIMPLE_BAD_ARG_ERROR("file_truncate", 2, "int");