|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 30-Aug-2021 | - |
| libltdl/ | H | 30-Aug-2021 | - | 65,069 | 52,257 |
| Makefile.in | H A D | 30-Aug-2021 | 948 | 50 | 34 |
| README.tpl | H A D | 30-Aug-2021 | 2.1 KiB | 81 | 54 |
| ccan-json.c | H A D | 30-Aug-2021 | 29.4 KiB | 1,422 | 1,048 |
| getopt.c | H A D | 30-Aug-2021 | 29.6 KiB | 1,058 | 639 |
| getopt.h | H A D | 30-Aug-2021 | 5.8 KiB | 174 | 58 |
| getopt1.c | H A D | 30-Aug-2021 | 4.4 KiB | 189 | 123 |
| glibc-gai_strerror.c | H A D | 30-Aug-2021 | 3.6 KiB | 122 | 77 |
| glibc-glob.c | H A D | 30-Aug-2021 | 38 KiB | 1,540 | 1,203 |
| glibc-hstrerror.c | H A D | 30-Aug-2021 | 3.1 KiB | 82 | 26 |
| glibc-mkstemp.c | H A D | 30-Aug-2021 | 3.1 KiB | 107 | 58 |
| hanson-tpl.c | H A D | 30-Aug-2021 | 92.3 KiB | 2,473 | 2,110 |
| openbsd-bcrypt.c | H A D | 30-Aug-2021 | 7.7 KiB | 290 | 190 |
| openbsd-blowfish.c | H A D | 30-Aug-2021 | 18.9 KiB | 523 | 438 |
| pr-syslog.c | H A D | 30-Aug-2021 | 10.7 KiB | 412 | 268 |
| pr_fnmatch.c | H A D | 03-May-2022 | 13.4 KiB | 455 | 315 |
| pr_fnmatch_loop.c | H A D | 30-Aug-2021 | 30.4 KiB | 1,267 | 960 |
| pwgrent.c | H A D | 30-Aug-2021 | 5.1 KiB | 251 | 153 |
| sstrncpy.c | H A D | 30-Aug-2021 | 2 KiB | 80 | 38 |
| strsep.c | H A D | 30-Aug-2021 | 1.6 KiB | 67 | 32 |
| vsnprintf.c | H A D | 30-Aug-2021 | 9.6 KiB | 461 | 355 |
README.tpl
1tpl: fast, easy serialization in C
2==============================================================================
3
4Documentation for tpl is available in the doc/ directory or at:
5
6 http://tpl.sourceforge.net
7
8You can build tpl as a library, like so:
9
10 ./configure
11 make
12 make install
13
14This installs libtpl.so and libtpl.a into a standard system library directory.
15You can customize the install directory using configure's "--prefix" option:
16
17 ./configure --prefix=/some/directory
18
19For other options accepted by configure, run "./configure --help".
20
21NON-LIBRARY OPTION
22------------------
23Alternatively, if you don't want to muck around with libraries, you can simply
24copy these two files into your own C project and build them with your program:
25
26 src/tpl.h
27 src/tpl.c
28
29WINDOWS
30-------
31You can build tpl as a DLL under Visual Studio 2008. Or you can use MinGW or
32Cygwin.
33
34SELF-TEST SUITE
35---------------
36The automated self-test can be run by doing:
37
38 cd tests
39 make
40
41LICENSE
42-------
43The BSD license applies to this software. The text is in the LICENSE file.
44
45CREDITS
46-------
47Many people have contributed to tpl, both bits of code and ideas. Rather than
48listing them all here, at risk of omitting anyone- I just wish to say thank
49you. Some particular features are noted with contributors' names in the
50ChangeLog.
51
52Feel free to send me questions, comments or bug reports.
53
54Troy D. Hanson, February 5, 2010
55thanson@users.sourceforge.net
56
57PROFTPD EDITS
58--------------
59
60Given 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
65The following edits were made to the copy of tpl.c, to fix compiler warnings:
66All occurrences of:
67
68 #if __STDC_VERSION__ < 199901
69
70in tpl.c are changed to:
71
72 #if defined(__STDC_VERSION__) && __STDC_VERSION__ < 199901
73
74since gcc does not always define the __STDC_VERSION macro.
75
76And the calc_field_addr() function in tpl.c was declared static, since the
77compiler was warning about no previous declarations of this function, and
78it is only ever called from within tpl.c.
79
80TJ Saunders, January 2011
81