4 * Copyright (C) 2004-2007 Sami Pietila
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
33 #include "parser_mac.h"
35 /* CE = Common expression */
37 extern struct parser_state parser_state
;
39 int ceerror(); /* dummy definition TODO: this is a douple */
40 int ceparse(); /* dummy definition. */
42 int ce_parse(char *expression
, int result
[MP_SIZE
]);
43 int ce_udf_parse(char *expression
);
45 void reset_ce_tokeniser();
47 /* UTILITY NEEDED BECAUSE GNU SOURCE NOT ALWAYS AVAILABLE. */
50 ce_strndup(char *str
, int len
)
59 memset(dup
, 0, len
+1);
60 strncpy(dup
, str
, len
);