[esnacc-dev] [PATCH 0/5] Refactor the c/c++ header locations

Aaron Conole aconole at bytheb.org
Mon Feb 27 20:36:40 UTC 2017


There was some additional cleanup along the way (which is why the
statistics don't add up to 0), but after this change the esnacc headers
should all reference a path relative to the default compiler prefix when
installed (meaning if installed with /usr as the prefix, no new compile flags
need to be added).

This series does NOT make a change to the pkg-config modules.  A 1-release lag
will be added (so this will be done for 1.10) to give users time to adjust any
code bases that need to be adjusted.  This is an API breaking change (so
previous users would possibly encounter problems when compiling).  It is
submitted as RFC to collect any feedback.  If no explicit changes are requested
it will be applied to the tree pending any Ack/Tested tags added (per the
Developer Certificate of Origin).

This series was suggested by Uri Blumenthal <uri at mit.edu> at
https://github.com/esnacc/esnacc-ng/issues/40

RFC->Patch:
- Some testing on my Fedora25 system.

Aaron Conole (5):
  snacc: Change c and c++ api
  gen-code: Use the detailed inc directory for generated code
  c-lib: Rename all of the include directories
  cxx-lib: Rename all of the include directories
  doc/developer-guide-sample-app: Update compile line

 Makefile.am                           |   2 +-
 c-lib/.gitignore                      |   2 +
 c-lib/automake.mk                     |  14 ++-
 c-lib/inc/asn-any.h                   |   2 +-
 c-lib/inc/asn-config.h                |  10 +-
 c-lib/inc/asn-der.h                   |   4 +-
 c-lib/inc/asn-incl.h                  |  59 +++++------
 c-lib/inc/asn-oid.h                   |   2 +-
 c-lib/inc/asn-relative-oid.h          |   2 +-
 c-lib/inc/gen-buf.h                   |   3 +-
 c-lib/inc/mem.h                       |   4 +-
 c-lib/inc/tbl-dbg.h                   |   2 +-
 c-lib/inc/tbl-gen.h                   |   2 +-
 c-lib/inc/tbl-incl.h                  |  14 +--
 compiler/back-ends/c++-gen/gen-code.c |   4 +-
 compiler/back-ends/c-gen/gen-code.c   |  30 +-----
 cxx-lib/.gitignore                    |   2 +
 cxx-lib/automake.mk                   |  14 ++-
 cxx-lib/inc/asn-incl.h                |  16 +--
 cxx-lib/inc/asn-iomanip.h             |   2 +-
 cxx-lib/inc/asn-listset.h             |   2 +-
 cxx-lib/inc/snaccexcept.h             |   2 +-
 debian/libesnacc-dev.install          |   2 -
 doc/developer-guide-sample-app.md     |   2 +-
 policy.h                              |  27 -----
 redhat/esnacc.spec.in                 |   2 -
 snacc.h                               | 168 ------------------------------
 snacc.h.in                            | 189 ++++++++++++++++++++++++++++++++++
 28 files changed, 283 insertions(+), 301 deletions(-)
 delete mode 100644 policy.h
 delete mode 100644 snacc.h
 create mode 100644 snacc.h.in

-- 
2.7.4


More information about the dev mailing list