Branch: Tag:

2000-08-15

2000-08-15 16:19:12 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a few warnings.

Rev: src/array.c:1.83
Rev: src/backend.c:1.54
Rev: src/docode.c:1.78
Rev: src/encode.c:1.66
Rev: src/error.c:1.60
Rev: src/error.h:1.48
Rev: src/errors.h:1.12
Rev: src/fsort.c:1.14
Rev: src/hashtable.c:1.7
Rev: src/main.c:1.96
Rev: src/pike_memory.h:1.21
Rev: src/pike_types.c:1.133
Rev: src/pike_types.h:1.43

11:   #ifdef ERR_EXT_DECLARE   #define DECLARE_ERROR(NAME, INHERIT, DECL) \   extern struct program *PIKE_CONCAT(NAME,_error_program); \ - extern int PIKE_CONCAT(NAME,_error_offset); \ + extern ptrdiff_t PIKE_CONCAT(NAME,_error_offset); \   struct PIKE_CONCAT(NAME,_error_struct) { \    DECL \   };
21: Inside #if defined(ERR_SETUP)
     #ifdef ERR_SETUP   #define DECLARE_ERROR(NAME, INHERIT, DECL) do{ \ -  int current_offset=0; \ +  ptrdiff_t current_offset=0; \    struct PIKE_CONCAT(NAME,_error_struct) foo; \    start_new_program(); \    INHERIT \ -  current_offset = PIKE_CONCAT(NAME,_error_offset)=ADD_STORAGE(struct PIKE_CONCAT(NAME,_error_struct));\ +  current_offset = PIKE_CONCAT(NAME,_error_offset) = \ +  ADD_STORAGE(struct PIKE_CONCAT(NAME,_error_struct));\    add_string_constant("error_type",#NAME "_error",0); \    add_integer_constant("is_" #NAME "_error",1,0); \    DECL \