pike.git / src / cpp.cmod

version» Context lines:

pike.git/src/cpp.cmod:1049:    push_int(res);   }      static struct mapping *initial_predefs_mapping(void)   {    struct pike_predef_s *def;    struct mapping *map = allocate_mapping (0);   #ifdef PIKE_DEBUG    if (!use_initial_predefs) Pike_fatal ("Initial predefs has been taken over.\n");   #endif -  for (def = first_predef; def; def = def->next) -  mapping_string_insert_string(map, -  make_shared_string(def->name), -  make_shared_string(def->value)); +  for (def = first_predef; def; def = def->next) { +  struct pike_string *name = make_shared_string(def->name); +  struct pike_string *value = make_shared_string(def->value); +  mapping_string_insert_string(map, name, value); +  free_string(value); +  free_string(name); +  }    return map;   }      static p_wchar2 readchar( PCHARP data, ptrdiff_t *pos, struct cpp *this )   {    ptrdiff_t l;    p_wchar2 C;    INC_PCHARP(data,*pos);    switch(parse_esc_seq_pcharp (data, &C, &l))    {