2007-12-30 17:41:49 +01:00
|
|
|
/***************************************************************************
|
|
|
|
|
2016-01-03 17:44:24 +01:00
|
|
|
main.c
|
2007-12-30 17:41:49 +01:00
|
|
|
|
2016-01-03 17:44:24 +01:00
|
|
|
(c) 2000-2013 Benoît Minisini <gambas@users.sourceforge.net>
|
2007-12-30 17:41:49 +01:00
|
|
|
|
2016-01-03 17:44:24 +01:00
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
any later version.
|
2007-12-30 17:41:49 +01:00
|
|
|
|
2016-01-03 17:44:24 +01:00
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
2007-12-30 17:41:49 +01:00
|
|
|
|
2016-01-03 17:44:24 +01:00
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
|
|
MA 02110-1301, USA.
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#define __MAIN_C
|
|
|
|
|
|
|
|
#include "gb_common.h"
|
|
|
|
#include "gambas.h"
|
|
|
|
|
|
|
|
#include "eval.h"
|
|
|
|
#include "eval_analyze.h"
|
|
|
|
#include "main.h"
|
|
|
|
|
|
|
|
#include "CExpression.h"
|
|
|
|
#include "CSystem.h"
|
|
|
|
#include "CHighlight.h"
|
|
|
|
|
|
|
|
GB_INTERFACE GB EXPORT;
|
|
|
|
|
2016-01-03 17:44:24 +01:00
|
|
|
GB_CLASS CLASS_Expression;
|
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
void *GB_EVAL_2[] EXPORT = {
|
|
|
|
|
2016-01-03 17:44:24 +01:00
|
|
|
(void *)EVAL_INTERFACE_VERSION,
|
|
|
|
(void *)EVAL_analyze,
|
|
|
|
(void *)EVAL_new,
|
|
|
|
(void *)EVAL_compile,
|
|
|
|
(void *)EVAL_expression,
|
|
|
|
(void *)EVAL_free,
|
2009-08-24 16:19:32 +02:00
|
|
|
(void *)EVAL_get_assignment_symbol,
|
2007-12-30 17:41:49 +01:00
|
|
|
|
2016-01-03 17:44:24 +01:00
|
|
|
NULL
|
|
|
|
};
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
|
|
|
|
GB_DESC *GB_CLASSES[] EXPORT =
|
|
|
|
{
|
2016-01-03 17:44:24 +01:00
|
|
|
CExpressionDesc,
|
|
|
|
CSystemDesc,
|
|
|
|
CHighlightDesc,
|
|
|
|
NULL
|
2007-12-30 17:41:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
int EXPORT GB_INIT(void)
|
|
|
|
{
|
2016-01-03 17:44:24 +01:00
|
|
|
CLASS_Expression = GB.FindClass("Expression");
|
|
|
|
|
|
|
|
EVAL_init();
|
2007-12-30 17:41:49 +01:00
|
|
|
|
2016-01-03 17:44:24 +01:00
|
|
|
return 0;
|
2007-12-30 17:41:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void EXPORT GB_EXIT()
|
|
|
|
{
|
2016-01-03 17:44:24 +01:00
|
|
|
EVAL_exit();
|
2007-12-30 17:41:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|