setup library (make & API)
The make process was restructured to create a library. For this libtool is used to provide both static and dynamic linking. Also header inclusion guards were introduced, to prevent clients of the library to include some single file without including others. The types were exported with forward declarations for better abstraction. When compiling the library, the macro LIB_SEFHT_COMPILATION is defined and symbol declarations are exported fully. For compiling the tests this macro is also defined, as the tests not only tests the API, but also the internal state, because a lot of errors couldn't be detected otherwise.
Showing
- configure.ac 4 additions, 0 deletionsconfigure.ac
- sefht.geany 28 additions, 27 deletionssefht.geany
- src/Makefile.am 7 additions, 14 deletionssrc/Makefile.am
- src/lib/Makefile.am 32 additions, 0 deletionssrc/lib/Makefile.am
- src/lib/sefht/cms.c 0 additions, 0 deletionssrc/lib/sefht/cms.c
- src/lib/sefht/cms.h 22 additions, 7 deletionssrc/lib/sefht/cms.h
- src/lib/sefht/data.c 0 additions, 0 deletionssrc/lib/sefht/data.c
- src/lib/sefht/data.h 22 additions, 7 deletionssrc/lib/sefht/data.h
- src/lib/sefht/error.h 7 additions, 3 deletionssrc/lib/sefht/error.h
- src/lib/sefht/fragment.c 0 additions, 0 deletionssrc/lib/sefht/fragment.c
- src/lib/sefht/fragment.h 26 additions, 17 deletionssrc/lib/sefht/fragment.h
- src/lib/sefht/log.h 7 additions, 3 deletionssrc/lib/sefht/log.h
- src/lib/sefht/macro.h 7 additions, 3 deletionssrc/lib/sefht/macro.h
- src/lib/sefht/node_fragment.c 0 additions, 0 deletionssrc/lib/sefht/node_fragment.c
- src/lib/sefht/node_fragment.h 117 additions, 0 deletionssrc/lib/sefht/node_fragment.h
- src/lib/sefht/sefht.h 18 additions, 3 deletionssrc/lib/sefht/sefht.h
- src/lib/sefht/text.c 0 additions, 0 deletionssrc/lib/sefht/text.c
- src/lib/sefht/text.h 14 additions, 3 deletionssrc/lib/sefht/text.h
- src/lib/sefht/validator.c 0 additions, 0 deletionssrc/lib/sefht/validator.c
- src/lib/sefht/validator.h 30 additions, 11 deletionssrc/lib/sefht/validator.h
Loading