pike.git / src / pike_types.cmod

version» Context lines:

pike.git/src/pike_types.cmod:3808:    free_mapping(remap->markers[0]);    remap->markers[0] = NULL;    }    if (remap && remap->markers[1]) {    free_mapping(remap->markers[1]);    remap->markers[1] = NULL;    }   }   #define EXIT_REMAP_STATE(REMAP) exit_remap_state(&REMAP)    + #ifdef PIKE_DEBUG + static void simple_describe_remap_state(struct remap_state *remap) + { +  int i; +  if (!remap) { +  fprintf(stderr, "remap: NULL\n"); +  return; +  } +  fprintf(stderr, "remap:\n"); +  for(i = 0; i < 0x40; i++) { +  if (remap->map[i]) { +  fprintf(stderr, "$%c%d ==> $%d\n", +  (i & 0x20)?((i & 0x10)?'d':'c'):((i & 0x10)?'b':'a'), +  i & 0xf, remap->map[i] & 0xf); +  } +  } +  if (remap->markers[0]) { +  fprintf(stderr, "markers[0]:\n"); +  simple_describe_mapping(remap->markers[0]); +  } +  if (remap->markers[1]) { +  fprintf(stderr, "markers[1]:\n"); +  simple_describe_mapping(remap->markers[1]); +  } + } + #endif +    static int alloc_remap_marker(struct remap_state *remap, int marker,    enum pt_remap_flags flags)   {    int ret;       marker = marker & 0x0f;       if (!remap || (flags & PT_FLAG_REMAP_INHIBIT)) return '0' | marker;       if (flags & PT_FLAG_REMAP_SWAP_MARKERS) marker |= 0x10;