README.md

Mon, 20 Apr 2020 10:14:32 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Mon, 20 Apr 2020 10:14:32 -0500
changeset 119
87e3bb5086e8
parent 107
README@da2a985da6ee
permissions
-rw-r--r--

Convert README to markdown

53
f8f9366b359c trunk: changeset 57
tuomov
parents: 36
diff changeset
1
119
87e3bb5086e8 Convert README to markdown
Tuomo Valkonen <tuomov@iki.fi>
parents: 107
diff changeset
2 # libtu
53
f8f9366b359c trunk: changeset 57
tuomov
parents: 36
diff changeset
3
119
87e3bb5086e8 Convert README to markdown
Tuomo Valkonen <tuomov@iki.fi>
parents: 107
diff changeset
4 Written 1999–2007 by Tuomo Valkonen <tuomov@iki.fi>
0
86b7f6f9c5c0 Tailorization of trunk
tailor@f281.ttorni.ton.tut.fi
parents:
diff changeset
5
119
87e3bb5086e8 Convert README to markdown
Tuomo Valkonen <tuomov@iki.fi>
parents: 107
diff changeset
6 Libtu is a small utility library for programs written in C, used by my old C codes.
65
58e382ae97cd trunk: changeset 1368
tuomov
parents: 60
diff changeset
7
58e382ae97cd trunk: changeset 1368
tuomov
parents: 60
diff changeset
8 Most of this library may be distributed and modified under either under
119
87e3bb5086e8 Convert README to markdown
Tuomo Valkonen <tuomov@iki.fi>
parents: 107
diff changeset
9 the Clarified Artistic License or the GNU LGPL, version 2.1 or later,
65
58e382ae97cd trunk: changeset 1368
tuomov
parents: 60
diff changeset
10 both reproduced in the file LICENSE. The red-black tree code is under
119
87e3bb5086e8 Convert README to markdown
Tuomo Valkonen <tuomov@iki.fi>
parents: 107
diff changeset
11 the GNU LGPL; see `README.rb` for details.
0
86b7f6f9c5c0 Tailorization of trunk
tailor@f281.ttorni.ton.tut.fi
parents:
diff changeset
12
3
b1fbfab67908 trunk: changeset 6
tuomov
parents: 0
diff changeset
13 To build the library, first edit system.mk to customize it for your
119
87e3bb5086e8 Convert README to markdown
Tuomo Valkonen <tuomov@iki.fi>
parents: 107
diff changeset
14 system if necessary. Then `make depend && make`.
87e3bb5086e8 Convert README to markdown
Tuomo Valkonen <tuomov@iki.fi>
parents: 107
diff changeset
15 To install it run `make install` (perhaps as root depending on
0
86b7f6f9c5c0 Tailorization of trunk
tailor@f281.ttorni.ton.tut.fi
parents:
diff changeset
16 where you are installing it).
86b7f6f9c5c0 Tailorization of trunk
tailor@f281.ttorni.ton.tut.fi
parents:
diff changeset
17
86b7f6f9c5c0 Tailorization of trunk
tailor@f281.ttorni.ton.tut.fi
parents:
diff changeset
18 If you want to use it in your programs, you may try to figure out how
119
87e3bb5086e8 Convert README to markdown
Tuomo Valkonen <tuomov@iki.fi>
parents: 107
diff changeset
19 by reading the header files (`include/*.h`) and test programs (`tester*.c`).
0
86b7f6f9c5c0 Tailorization of trunk
tailor@f281.ttorni.ton.tut.fi
parents:
diff changeset
20 Or you could try urging me to write some sort of a manual.
25
9d41e3611050 trunk: changeset 28
tuomov
parents: 3
diff changeset
21
119
87e3bb5086e8 Convert README to markdown
Tuomo Valkonen <tuomov@iki.fi>
parents: 107
diff changeset
22 ## Requisites
25
9d41e3611050 trunk: changeset 28
tuomov
parents: 3
diff changeset
23
9d41e3611050 trunk: changeset 28
tuomov
parents: 3
diff changeset
24 Libtu needs the functions asprintf and vasprintf. These do not
35
5a71d53d0228 trunk: changeset 38
tuomov
parents: 25
diff changeset
25 exist on most platforms. One implementation by Mark Martinec
119
87e3bb5086e8 Convert README to markdown
Tuomo Valkonen <tuomov@iki.fi>
parents: 107
diff changeset
26 is included in `snprintf_2.2/` and is used by default. To use the
35
5a71d53d0228 trunk: changeset 38
tuomov
parents: 25
diff changeset
27 system's versions of these functions, if available, modify
5a71d53d0228 trunk: changeset 38
tuomov
parents: 25
diff changeset
28 system.mk.
25
9d41e3611050 trunk: changeset 28
tuomov
parents: 3
diff changeset
29
107
da2a985da6ee Clean-up and pending updates
Tuomo Valkonen <tuomov@iki.fi>
parents: 65
diff changeset
30 The implementation of red-black trees is based on that by
119
87e3bb5086e8 Convert README to markdown
Tuomo Valkonen <tuomov@iki.fi>
parents: 107
diff changeset
31 James S. Plank; see `README.rb` for details.

mercurial