Remove a useless global variable.

[INTERPRETER]
* BUG: Remove a useless global variable.
This commit is contained in:
gambas 2019-10-21 09:44:52 +02:00
parent 4a6031e49f
commit 8d8c8a71f8
4 changed files with 5 additions and 5 deletions

View file

@ -59,7 +59,7 @@
//#define DEBUG_PRELOAD
COMPONENT *COMPONENT_current = NULL;
COMPONENT *COMPONENT_main;
//COMPONENT *COMPONENT_main;
int COMPONENT_count = 0;
char *COMPONENT_path;

View file

@ -53,7 +53,7 @@ typedef
EXTERN char *COMPONENT_path;
EXTERN COMPONENT *COMPONENT_current;
EXTERN int COMPONENT_count;
EXTERN COMPONENT *COMPONENT_main;
//EXTERN COMPONENT *COMPONENT_main;
#endif
void COMPONENT_init(void);

View file

@ -78,11 +78,11 @@ void DEBUG_enter_eval(void);
void DEBUG_leave_eval(void);
#define PROFILE_ENTER_FUNCTION() \
if (EXEC_profile && CP && CP->component == COMPONENT_main) \
if (EXEC_profile && CP && CP->component == NULL) \
DEBUG.Profile.Begin(CP, FP); \
#define PROFILE_LEAVE_FUNCTION() \
if (EXEC_profile && CP && CP->component == COMPONENT_main) \
if (EXEC_profile && CP && CP->component == NULL) \
DEBUG.Profile.End(CP, FP); \
#endif

View file

@ -4016,7 +4016,7 @@ static void _break(ushort code)
//fprintf(stderr, "%s\n", DEBUG_get_current_position());
if (CP && CP->component == COMPONENT_main)
if (CP && CP->component == NULL)
{
if (EXEC_profile_instr)
DEBUG.Profile.Add(CP, FP, PC);