expr.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* MegaZeux
  2. *
  3. * Copyright (C) 2002 Gilead Kutnick <exophase@adelphia.net>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  18. */
  19. #ifndef __EXPR_H
  20. #define __EXPR_H
  21. #include "compat.h"
  22. __M_BEGIN_DECLS
  23. #include "world_struct.h"
  24. int parse_expression(struct world *mzx_world, char **expression, int *error,
  25. int id);
  26. #ifdef CONFIG_DEBYTECODE
  27. int parse_string_expression(struct world *mzx_world, char **_expression,
  28. int id, char *output, size_t output_left);
  29. #endif
  30. __M_END_DECLS
  31. #endif // __EXPR_H