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

version» Context lines:

pike.git/src/modules/_Stdio/file.c:1899:       if( (a->type_field & ~BIT_STRING) &&    (array_fix_type_field(a) & ~BIT_STRING) )    SIMPLE_BAD_ARG_ERROR("write", 1, "string|array(string)");       i = a->size;    while(i--)    if (a->item[i].u.string->size_shift)    Pike_error("Bad argument 1 to file->write().\n"    "Element %ld is a wide string.\n", -  DO_NOT_WARN((long)i)); +  (long)i);      #ifdef HAVE_WRITEV    if (args > 1) {   #endif /* HAVE_WRITEV */    ref_push_array(a);    push_empty_string();    o_multiply();    Pike_sp--;    dmalloc_touch_svalue(Pike_sp);    Pike_sp[-args] = *Pike_sp;
pike.git/src/modules/_Stdio/file.c:5909:      static void file___init_ref(struct object *UNUSED(o))   {    SET_SVAL(REF, PIKE_T_OBJECT, 0, object, file_make_object_from_fd(-1, 0, 0));   }      /* Avoid loss of precision warnings. */   #ifdef __ECL   static inline long TO_LONG(ptrdiff_t x)   { -  return DO_NOT_WARN((long)x); +  return (long)x;   }   #else /* !__ECL */   #define TO_LONG(x) ((long)(x))   #endif /* __ECL */      #ifdef PIKE_DEBUG   void check_static_file_data(struct callback *UNUSED(a), void *UNUSED(b),    void *UNUSED(c))   {    if(file_program)