| 1 |
#ifndef _XH_CORE_H_ |
| 2 |
#define _XH_CORE_H_ |
| 3 |
|
| 4 |
/* |
| 5 |
* Concatenate preprocessor tokens A and B without expanding macro definitions |
| 6 |
* (however, if invoked from a macro, macro arguments are expanded). |
| 7 |
*/ |
| 8 |
#define PPCAT_NX(A, B) A ## B |
| 9 |
|
| 10 |
/* |
| 11 |
* Concatenate preprocessor tokens A and B after macro-expanding them. |
| 12 |
*/ |
| 13 |
#define PPCAT(A, B) PPCAT_NX(A, B) |
| 14 |
|
| 15 |
/* |
| 16 |
* Turn A into a string literal without expanding macro definitions |
| 17 |
* (however, if invoked from a macro, macro arguments are expanded). |
| 18 |
*/ |
| 19 |
#define STRINGIZE_NX(A) #A |
| 20 |
|
| 21 |
/* |
| 22 |
* Turn A into a string literal after macro-expanding it. |
| 23 |
*/ |
| 24 |
#define STRINGIZE(A) STRINGIZE_NX(A) |
| 25 |
|
| 26 |
#ifndef FALSE |
| 27 |
#define FALSE (0) |
| 28 |
#endif |
| 29 |
|
| 30 |
#ifndef TRUE |
| 31 |
#define TRUE (1) |
| 32 |
#endif |
| 33 |
|
| 34 |
#include "xh_log.h" |
| 35 |
#include "xh_string.h" |
| 36 |
#include "xh_sort.h" |
| 37 |
#include "xh_stack.h" |
| 38 |
#include "xh_stash.h" |
| 39 |
#include "xh_param.h" |
| 40 |
#include "xh_buffer_helper.h" |
| 41 |
#include "xh_buffer.h" |
| 42 |
#include "xh_perl_buffer.h" |
| 43 |
#include "xh_encoder.h" |
| 44 |
#include "xh_reader.h" |
| 45 |
#include "xh_writer.h" |
| 46 |
#include "xh.h" |
| 47 |
#include "xh_h2x.h" |
| 48 |
#include "xh_x2h.h" |
| 49 |
#include "xh_xml.h" |
| 50 |
#include "xh_dom.h" |
| 51 |
|
| 52 |
#endif /* _XH_CORE_H_ */ |