summaryrefslogtreecommitdiffstats
path: root/private/unimodem/new/mic/tsym.cpp
blob: ab6712aa5fd4bcdde1c621b5c9e7eeb8f5fad61e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//						
//		Copyright (c) 1996 Microsoft Corporation
//
//
//		TSYM.CPP		-- Component tests  for classes:
//									CInfSymbolTable
//									CInfSymbol
//						
//		Copyright (c) 1996 Microsoft Corporation
//
//
//		History:
//			05/21/96	JosephJ		Created
//
#include "common.h"
#include "test.h"


#define SIMPLE 0
#define COMPLEX 1
#define ACTUAL 2

//#define TEST_TYPE (SIMPLE)
#define TEST_TYPE (COMPLEX)
//#define TEST_TYPE (ACTUAL)

extern const TCHAR *rgpszSimpleResp[];
extern const TCHAR *rgpszComplexResp[];
extern const TCHAR *rgpszActualResp[];


#if (TEST_TYPE==SIMPLE)
#	define TEST_RESP_ARRAY rgpszSimpleResp
#elif (TEST_TYPE==COMPLEX)
#	define TEST_RESP_ARRAY rgpszComplexResp
#elif (TEST_TYPE==ACTUAL)
#	define TEST_RESP_ARRAY rgpszActualResp
#endif

static const TCHAR **rgpchStrings = TEST_RESP_ARRAY;

int main_tsym(int argc, char * argv[])
{
	const TCHAR **pch = NULL;

	for (pch = rgpchStrings; *pch; pch++)
	{
		const CInfSymbol *pSym = gSymtab.Lookup(*pch, TRUE);
		if (pSym) {pSym->Dump(); pSym->Release(); pSym=0;}
	}

	printf("+++\n");

	for (pch = rgpchStrings; *pch; pch++)
	{
		const CInfSymbol *pSym = gSymtab.Lookup(*pch, TRUE);
		if (pSym) {pSym->Dump(); pSym->Release(); pSym=0;}
	}

	printf("+++\n");

	gSymtab.Dump();

	return 0;
}