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

version» Context lines:

pike.git/src/modules/_Stdio/file.c:5905:    apply_low(o, fun, args); \    }      #include "file_functions.h"      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 (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)    {   #define FILE_FUNC(X,Y,Z) \    if(PIKE_CONCAT(Y,_function_number)<0 || \    PIKE_CONCAT(Y,_function_number)> \    file_program->num_identifier_references) \    Pike_fatal(#Y "_function_number is incorrect: %ld\n", \ -  TO_LONG(PIKE_CONCAT(Y,_function_number))); +  PTRDIFF_T_TO_LONG(PIKE_CONCAT(Y,_function_number)));   #include "file_functions.h"    }   }   #endif      #if defined(HAVE_TERMIOS_H)   void file_tcgetattr(INT32 args);   void file_tcsetattr(INT32 args);   void file_tcsendbreak(INT32 args);   void file_tcflush(INT32 args);