Lhogho  0.0.028
 All Data Structures Files Functions Variables Typedefs Macros Pages
TestMaker.h
Go to the documentation of this file.
1 //===================================================
2 // Project:TestSystem Author: Peter Armianov
3 //===================================================
4 //
5 // TESTMAKER.H
6 //
7 // This file contains basic types and definitions
8 // for the Lhogho test system
9 //
10 // Revision history:
11 // 2007-05-14 - file created
12 // 2007-07-01 - additional working modes
13 // 2007-07-12 - additional comments in Doxygen style
14 // 2007-09-08 - Implementing strict mode option
15 // 2013-06-27 - Adding INTEST flag /P. Boytchev/
16 //===================================================
17 
18 #if defined(_MSC_VER)
19 # pragma once
20 #endif
21 
22 #ifndef __TEST_MAKER_H_07D957DB_2718_48C7_9981_03F095B9F7F9_INCLUDED
23 #define __TEST_MAKER_H_07D957DB_2718_48C7_9981_03F095B9F7F9_INCLUDED
24 
25 //===================================================
27 //===================================================
29 #ifdef UNICODE
30 # define TEXT(a) L##a
31 #else
32 # define TEXT(a) a
33 #endif
34 
35 #define SAFE_FREE(X) \
36  { \
37  if (X){ free(X); X = NULL; } \
38  }
39 
41 
42 //===================================================
44 //===================================================
46 #define BYTE unsigned char
47 #define UINT8 unsigned char
48 #define INT8 signed char
49 #define UINT16 unsigned short
50 #define INT16 signed short
51 #define UINT32 unsigned int
52 #define INT32 signed int
53 #define UINT64 unsigned long long
54 #define INT364 signed long long
55 
56 #if defined(_MSC_VER)
57 # include <limits.h>
58 # undef UINT32
59 # define UINT32 unsigned long
60 # undef INT32
61 # define INT32 signed long
62 # undef UINT64
63 # define UINT64 unsigned __int64
64 # undef INT64
65 # define INT64 signed __int64
66 #endif
67 
68 
69 #ifndef NULL
70 # define NULL (void *)0
71 #endif
72 
73 #ifndef BOOL
74 #define BOOL UINT32
75 #endif
76 
77 #ifndef TRUE
78 #define TRUE ((BOOL)1)
79 #endif
80 
81 #ifndef FALSE
82 #define FALSE ((BOOL)0)
83 #endif
84 
85 #ifdef UNICODE
86 # define TCHAR wchar_t
87 #else
88 # define TCHAR char
89 #endif
90 
92 
93 //===================================================
96 //===================================================
98 #define ARG_DIR "dir"
99 #define ARG_STRICT_MODE "strict"
100 #define ARG_PARAM "param"
101 #define ARG_OUT "out"
102 #define ARG_EXEC_MODE "exec"
103 #define ARG_BUILD_MODE "build"
104 #define ARG_COMPLIER "compiler"
105 #define ARG_VERBOSE "verbose"
106 #define ARG_INTEST "intest"
107 #define ARG_HELP "help"
108 
109 #define MODE_TEST 0x01
110 #define MODE_BUILD 0x02
111 #define MODE_EXECUTE 0x04
112 
114 //----------------------------------------------------
116 //----------------------------------------------------
118 typedef
120 {
124  FILE * output_file;
133 
134 //----------------------------------------------------
136 //----------------------------------------------------
140 
141 //----------------------------------------------------
143 //----------------------------------------------------
145 extern RESULT process_directory();
147 #endif /* __TEST_MAKER_H_07D957DB_2718_48C7_9981_03F095B9F7F9_INCLUDED */
148 

[ HOME | INDEX | ATOMS | VARS | REFERENCE ]
Lhogho Developer's Documentation
Wed Jul 10 2013