LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
validate.h
Go to the documentation of this file.
1 /*
2  * LEGO® MINDSTORMS EV3
3  *
4  * Copyright (C) 2010-2013 The LEGO Group
5  *
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 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19  */
20 
21 
22 #ifndef VALIDATE_H_
23 #define VALIDATE_H_
24 
25 RESULT cValidateInit(void);
26 
27 RESULT cValidateExit(void);
28 
29 RESULT cValidateDisassemble(IP pI,IMINDEX *pIndex,LABEL *pLabel);
30 
31 RESULT cValidateProgram(PRGID PrgId,IP pI,LABEL *pLabel,DATA8 Disassemble);
32 
33 
34 typedef struct
35 {
36  //*****************************************************************************
37  // Validate Global variables
38  //*****************************************************************************
39 
40  int Row;
42 }
44 
45 #ifndef LEGO_SIMULATION
47 #else
48 extern VALIDATE_GLOBALS * gValidateInstance;
49 #define ValidateInstance (*gValidateInstance)
50 
51 void setValidateInstance(VALIDATE_GLOBALS * _Instance);
52 VALIDATE_GLOBALS * getValidateInstance();
53 #endif
54 
55 
56  #endif /* VALIDATE_H_ */
ULONG IMINDEX
ImageData index type.
Definition: lmstypes.h:78
RESULT cValidateExit(void)
Definition: validate.c:222
IMGDATA * IP
Instruction pointer type.
Definition: lmstypes.h:74
IMINDEX ValidateErrorIndex
Definition: validate.h:41
VALIDATE_GLOBALS ValidateInstance
Definition: validate.c:35
RESULT cValidateDisassemble(IP pI, IMINDEX *pIndex, LABEL *pLabel)
Definition: validate.c:251
RESULT cValidateInit(void)
Definition: validate.c:164
UWORD PRGID
Program id type.
Definition: lmstypes.h:71
SBYTE DATA8
VM Type for 1 byte signed value.
Definition: lmstypes.h:61
RESULT cValidateProgram(PRGID PrgId, IP pI, LABEL *pLabel, DATA8 Disassemble)
Definition: validate.c:1649