mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
spyc: use libpsyc for parsing & rendering
This commit is contained in:
parent
a21b0024ef
commit
ffabd7af08
12 changed files with 343 additions and 242 deletions
|
@ -23,16 +23,17 @@
|
|||
* the first byte.
|
||||
*/
|
||||
|
||||
#ifndef SPYC
|
||||
# define SPYC
|
||||
#define SPYC
|
||||
|
||||
# include <psyc.h>
|
||||
#include <psyc.h>
|
||||
|
||||
#ifndef USE_PSYC
|
||||
|
||||
#if __EFUN_DEFINED__(psyc_parse)
|
||||
# define LIBPSYC
|
||||
# include <sys/libpsyc.h>
|
||||
#endif
|
||||
|
||||
// EOF
|
||||
|
||||
#if 0 // first we get the syntax running, then we'll think of new features:
|
||||
|
||||
#define PSYCPARSE_STATE_HEADER 0
|
||||
#define PSYCPARSE_STATE_CONTENT 1
|
||||
#define PSYCPARSE_STATE_BLOCKED 2
|
||||
|
@ -45,4 +46,4 @@
|
|||
return; \
|
||||
}
|
||||
|
||||
#endif // 0
|
||||
#endif // USE_PSYC
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue