Branch: Tag:

2022-07-14

2022-07-14 12:16:02 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Added state mapping to struct remap_state.

3847:    unsigned char map[0x40];    unsigned INT32 allocated;    struct mapping *markers[2]; +  struct mapping *state;   };      #ifdef PIKE_NULL_IS_SPECIAL
3854:    memset(&REMAP, 0, sizeof(struct remap_state)); \    REMAP.markers[0] = NULL; \    REMAP.markers[1] = NULL; \ +  REMAP.state = NULL; \    } while(0)   #else   #define INIT_REMAP_STATE(REMAP) do { \
3870:    free_mapping(remap->markers[1]);    remap->markers[1] = NULL;    } +  if (remap && remap->state) { +  free_mapping(remap->state); +  remap->state = NULL;    } -  + }   #define EXIT_REMAP_STATE(REMAP) exit_remap_state(&REMAP)      #ifdef PIKE_DEBUG
3897:    fprintf(stderr, "markers[1]:\n");    simple_describe_mapping(remap->markers[1]);    } +  if (remap->state) { +  fprintf(stderr, "state:\n"); +  simple_describe_mapping(remap->state);    } -  + }   #else   #define simple_describe_remap_state(X) do { (X); } while(0)   #endif