]> sourceware.org Git - systemtap.git/commit
runtime: Remove dupes between map-gen and pmap-gen
authorJosh Stone <jistone@redhat.com>
Thu, 6 Dec 2012 19:21:47 +0000 (11:21 -0800)
committerJosh Stone <jistone@redhat.com>
Thu, 6 Dec 2012 19:35:28 +0000 (11:35 -0800)
commit3cb9c91e91f735dac781363840d379a9b0584b72
tree3acddce6dd244eb0738e0e63ea33c750d748c1f6
parentfcf16f157d6d1aed03145be428d6acdc994082b7
runtime: Remove dupes between map-gen and pmap-gen

Most of pmap-gen was a rehash of map-gen, just named pmap instead.  Only
a few of the pmap functions were actually unique to that situation, so
the rest have been terminated with extreme prejudice.

This also addresses a FIXME note I added in commit 57eedf945 about the
way map-gen and pmap-gen are included.  Made it in before the seventh
anniversary of that FIXME -- whew!

* translate.cxx (c_unparser::emit_map_type_instantiations): Set
  MAP_DO_PMAP to trigger the pmap-gen from within map-gen.
* runtime/map-gen.c (KEY_EQ_P): New, consolidate testing of all keys.
  (MAP_DO_PMAP): Use to include pmap-gen while the #defines are hot.
* runtime/pmap-gen.c: I love the smell of napalm in the morning...
runtime/map-gen.c
runtime/pmap-gen.c
translate.cxx
This page took 0.024379 seconds and 5 git commands to generate.