?? readme
字號:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=SFSEXP: Small Fast S-Expression Libraryhttp://sexpr.sourceforge.net/Matt Sottile (matt@lanl.gov)Advanced Computing Laboratory,Los Alamos National Laboratory=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=1. BUILDING(Attention Windows Users: If you are using cygwin, this section appliesas cygwin looks pretty much like unix for compilation. Visual Studiousers see the note at the end and look inside the win32 directory.)First, you need to run autoconf. % ./configureTo build, do this: % makeWhat comes out is a library called "libsexp.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.2 MacOS X 10.3.x, Suse Linux 9.1 (Intel and AMD)Should 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 "sexp.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/sexp/include -L/path/to/sexp/library \ -o foo foo.o -lsexp3. MORE INFOFor additions, bug fixes, complaints, etc., email : matt@lanl.govFor legal mumbo-jumbo, look at "LICENSE" in this directory. 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 has contributedbug fixes and features while developing for the related Supermon project.Sung-Eun Choi and Paul Ruth have contributed many bug reports as the libraryhas grown. Erik Hendriks contributed the malloc debugging tools now usedwhen building with the -D_DEBUG_MALLOCS_ option. Brad Green contributedcode (in win32/) and testing for the Windows Visual Studio build target.6. WINDOWS USERSPlease look in the win32/ subdirectory. Included in there is one sourcefile, some
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -