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

version» Context lines:

pike.git/src/modules/_Stdio/file.c:3056: Inside #if defined(SEEK64)
  {   #ifdef SEEK64    INT64 to = 0;   #else    off_t to = 0;   #endif       if( args < 1)    SIMPLE_TOO_FEW_ARGS_ERROR("Stdio.File->seek", 1);    - #if defined (SEEK64) && defined (AUTO_BIGNUM) + #if defined (SEEK64)    if(is_bignum_object_in_svalue(&Pike_sp[-args])) {    if (!int64_from_bignum(&to, Pike_sp[-args].u.object))    Pike_error ("Bad argument 1 to Stdio.File->seek(). Offset too large.\n");    }    else   #endif    if(TYPEOF(Pike_sp[-args]) != PIKE_T_INT)    SIMPLE_BAD_ARG_ERROR("Stdio.File->seek", 1, "int");    else    to=Pike_sp[-args].u.integer;
pike.git/src/modules/_Stdio/file.c:3157: Inside #if defined(INT64)
  #if defined(INT64)    INT64 len = 0;   #else    off_t len = 0;   #endif    int res;       if(args<1)    SIMPLE_TOO_FEW_ARGS_ERROR("Stdio.File->truncate", 1);    - #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[-args])) {    if (!int64_from_bignum(&len, Pike_sp[-args].u.object))    Pike_error ("Bad argument 1 to Stdio.File->truncate(). Length too large.\n");    }    else   #endif   #endif    if(TYPEOF(Pike_sp[-args]) != PIKE_T_INT)    SIMPLE_BAD_ARG_ERROR("Stdio.File->truncate", 1, "int");