📄 readme
字号:
Code in this directory is taken from the sfsexp library, a GPL'ed project hosted on SF (www.sf.net/projects/sexp/).Below is the README from the original distribution (sexp 0.3.2).=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=Matt's Smaller S-Expression Libraryhttp://sexpr.sourceforge.net/Matt Sottile (matt@lanl.gov)Advanced Computing Laboratory,Los Alamos National Laboratory=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=1. BUILDINGFirst, you need to run autoconf. % ./configureTo build, do this: % makeWhat comes out is a library called "libsexpr.a". That's it. It maybe possible that whatever platform you're on may link libraries in aweird way, so you might have to tweak the makefile.Successfully tested under: RedHat Linux (Intel and Alpha), MacOS X 10.1.x and 10.2Should work on: Anything with a standard C compilerIf you look at the makefiles, you'll see a couple of additional buildtargets -- debug and mallocdebug. Debug turns on anything hiding in#ifdef _DEBUG_ blocks, and mallocdebug does the same for #ifdef _DEBUG_MALLOCS_ blocks. Both turn on the -g option so GDB canbe used to debug things, and malloc debugging enables Erik Hendriks'wonderful malloc debugging library. Very useful to use when developingcodes that use this library when there is a suspected memory issue somewhererelated to this code.If you want the docs, make sure you have doxygen installed and that theDOXYGEN variable in the Makefile.in in this directory points at the rightplace. Rerun autoconf to regenerate the makefiles, and then type: % make docIf all is well, you should get documentation. If not, try running it by hand.If that still fails, just use the docs from the web. The documentation herechanges so infrequently that users generating it themselves is not a hugeconcern on my end.2. USINGIn any code that wants to use this, just include "sexpr.h". That containsthe one data structure, enumeration, and five functions for manipulatingand parsing strings and s-expressions. To compile, just do something likethis: % cc -I/path/to/sexpr/include -L/path/to/sexpr/library \ -o foo foo.o -lsexpr3. MORE INFOFor additions, bug fixes, complaints, etc., email : matt@lanl.govFor legal mumbo-jumbo, look "NOTICES" in this directory. Supposedly memory leaks have been patched. Let me know if any new ones popup. (Note: programmer is responsible for calling destroy_sexp when they'redone with one - not my fault if they don't.)4. SMALLER?It's shorter than a few similar libraries I found on the net that wereIMHO, excessively complex and difficult to understant. An s-expressionis composed of atoms, or other s-expressions - period. How people canturn that into a complicated mess is BEYOND me...5. CREDITSThe library is by Matt Sottile. Steve James of Linux Labs hascontributed bug fixes and features while developing for the relatedSupermon project. Sung-Eun Choi and Paul Ruth have been the most activeusers and have contributed many bug reports as the library has grown.Erik Hendriks contributed the malloc debugging tools now used whenbuilding with the -D_DEBUG_MALLOCS_ option.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -