On Saturday, January 25, 2003, at 06:50 PM, Ari B Kahn wrote:
Has anyone had any luck compiling btparse for OS X?For some reason you need to escape the quotes in src/lex_auxiliary.c
http://starship.python.net/~gward/btOOL/
It's the engine for Text::BibTeX.
During make I get :
src/lex_auxiliary.c:161:254: warning: character constant too long
src/lex_auxiliary.c: In function `zzcr_attr':
src/lex_auxiliary.c:161: parse error before '\x20262620'
src/lex_auxiliary.c:161: warning: left-hand operand of comma expression has
no effect
src/lex_auxiliary.c:161: parse error before ')' token
make: *** [src/lex_auxiliary.o] Error 1
I reported this to the author and it will be fixed in the next release.
--- lex_auxiliary.c.orig Sun Jan 26 15:52:41 2003
+++ lex_auxiliary.c Sun Jan 26 15:52:58 2003
@@ -159,7 +159,7 @@
int len = strlen (txt);
assert ((txt[0] == '{' && txt[len-1] == '}')
- || (txt[0] == '"' && txt[len-1] == '"'));
+ || (txt[0] == '\"' && txt[len-1] == '\"'));
txt[len-1] = (char) 0; /* remove closing quote from string */
txt++; /* so we'll skip the opening quote */
}
