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

version» Context lines:

pike.git/src/modules/_Stdio/file.c:268:    }       return 0;   }      #ifdef PIKE_DEBUG   static void debug_check_internals (struct my_file *f)   {    size_t ev;    -  if ) +  if (f->box.ref_obj->prog && file_program && +  !get_storage(f->box.ref_obj,file_program) )    Pike_fatal ("ref_obj is not a file object.\n");       for (ev = 0; ev < NELEM (f->event_cbs); ev++)    if (TYPEOF(f->event_cbs[ev]) == PIKE_T_INT &&    f->box.backend && f->box.events & (1 << ev))    Pike_fatal ("Got event flag but no callback for event %"PRINTSIZET"d.\n", ev);   }   #else   #define debug_check_internals(f) do {} while (0)   #endif