| 1 |
tpl: fast, easy serialization in C |
| 2 |
============================================================================== |
| 3 |
|
| 4 |
Documentation for tpl is available in the doc/ directory or at: |
| 5 |
|
| 6 |
http://tpl.sourceforge.net |
| 7 |
|
| 8 |
You can build tpl as a library, like so: |
| 9 |
|
| 10 |
./configure |
| 11 |
make |
| 12 |
make install |
| 13 |
|
| 14 |
This installs libtpl.so and libtpl.a into a standard system library directory. |
| 15 |
You can customize the install directory using configure's "--prefix" option: |
| 16 |
|
| 17 |
./configure --prefix=/some/directory |
| 18 |
|
| 19 |
For other options accepted by configure, run "./configure --help". |
| 20 |
|
| 21 |
NON-LIBRARY OPTION |
| 22 |
------------------ |
| 23 |
Alternatively, if you don't want to muck around with libraries, you can simply |
| 24 |
copy these two files into your own C project and build them with your program: |
| 25 |
|
| 26 |
src/tpl.h |
| 27 |
src/tpl.c |
| 28 |
|
| 29 |
WINDOWS |
| 30 |
------- |
| 31 |
You can build tpl as a DLL under Visual Studio 2008. Or you can use MinGW or |
| 32 |
Cygwin. |
| 33 |
|
| 34 |
SELF-TEST SUITE |
| 35 |
--------------- |
| 36 |
The automated self-test can be run by doing: |
| 37 |
|
| 38 |
cd tests |
| 39 |
make |
| 40 |
|
| 41 |
LICENSE |
| 42 |
------- |
| 43 |
The BSD license applies to this software. The text is in the LICENSE file. |
| 44 |
|
| 45 |
CREDITS |
| 46 |
------- |
| 47 |
Many people have contributed to tpl, both bits of code and ideas. Rather than |
| 48 |
listing them all here, at risk of omitting anyone- I just wish to say thank |
| 49 |
you. Some particular features are noted with contributors' names in the |
| 50 |
ChangeLog. |
| 51 |
|
| 52 |
Feel free to send me questions, comments or bug reports. |
| 53 |
|
| 54 |
Troy D. Hanson, February 5, 2010 |
| 55 |
[email protected] |
| 56 |
|
| 57 |
PROFTPD EDITS |
| 58 |
-------------- |
| 59 |
|
| 60 |
Given a source distribution of libtpl: |
| 61 |
|
| 62 |
# cp libtpl-<version>/src/tpl.h proftpd-<version>/include/ |
| 63 |
# cp libtpl-<version>/src/tpl.c proftpd-<version>/lib/ |
| 64 |
|
| 65 |
The following edits were made to the copy of tpl.c, to fix compiler warnings: |
| 66 |
All occurrences of: |
| 67 |
|
| 68 |
#if __STDC_VERSION__ < 199901 |
| 69 |
|
| 70 |
in tpl.c are changed to: |
| 71 |
|
| 72 |
#if defined(__STDC_VERSION__) && __STDC_VERSION__ < 199901 |
| 73 |
|
| 74 |
since gcc does not always define the __STDC_VERSION macro. |
| 75 |
|
| 76 |
And the calc_field_addr() function in tpl.c was declared static, since the |
| 77 |
compiler was warning about no previous declarations of this function, and |
| 78 |
it is only ever called from within tpl.c. |
| 79 |
|
| 80 |
TJ Saunders, January 2011 |