New option --mingw32 to config.sh.
[mpsl.git] / mpsl.h
blob8c52f97ba9f898fa594d5242d983f08a8bbfb60f
1 /*
3 Copyright (C) 2003/2007 Angel Ortega <angel@triptico.com>
5 mpsl.h - Minimum Profit Scripting Language
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either version 2
10 of the License, or (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 http://www.triptico.com
25 extern int mpsl_trace;
26 extern int mpsl_abort;
28 int mpsl_is_true(mpdm_t v);
29 mpdm_t mpsl_boolean(int b);
31 mpdm_t mpsl_set_symbol(mpdm_t s, mpdm_t v);
32 mpdm_t mpsl_get_symbol(mpdm_t s);
34 mpdm_t mpsl_error(mpdm_t err);
36 mpdm_t mpsl_exec_p(mpdm_t c, mpdm_t args);
37 mpdm_t mpsl_mkins(wchar_t * opcode, int args, mpdm_t a1, mpdm_t a2, mpdm_t a3);
39 mpdm_t mpsl_compile(mpdm_t code);
40 mpdm_t mpsl_compile_file(mpdm_t filename);
41 mpdm_t mpsl_eval(mpdm_t code, mpdm_t args);
43 void mpsl_argv(int argc, char * argv[]);
45 int mpsl_startup(void);
46 void mpsl_shutdown(void);