| [2] | 1 | /******************************************************************** |
|---|
| 2 | * DMW_SymTbl.h |
|---|
| 3 | * - symbol structure header |
|---|
| 4 | * |
|---|
| 5 | * Copyright (c)2004 Digital STREAM Tech, Inc. |
|---|
| 6 | * All Rights Reserved |
|---|
| 7 | * |
|---|
| 8 | * $Id: DMW_SymTbl.h,v 1.1 2011/07/08 03:13:15 megakiss Exp $ |
|---|
| 9 | * |
|---|
| 10 | * |
|---|
| 11 | *********************************************************************/ |
|---|
| 12 | |
|---|
| 13 | #ifndef __DMW_SYMBOL_TABLE__ |
|---|
| 14 | #define __DMW_SYMBOL_TABLE__ |
|---|
| 15 | |
|---|
| 16 | #ifdef __cplusplus |
|---|
| 17 | extern "C" |
|---|
| 18 | { |
|---|
| 19 | #endif |
|---|
| 20 | |
|---|
| 21 | /* symbol types */ |
|---|
| 22 | #define SYM_UNDF 0x0 /* undefined */ |
|---|
| 23 | #define SYM_LOCAL 0x0 /* local */ |
|---|
| 24 | #define SYM_GLOBAL 0x1 /* global (external) (ORed) */ |
|---|
| 25 | #define SYM_ABS 0x2 /* absolute */ |
|---|
| 26 | #define SYM_TEXT 0x4 /* text */ |
|---|
| 27 | #define SYM_DATA 0x6 /* data */ |
|---|
| 28 | #define SYM_BSS 0x8 /* bss */ |
|---|
| 29 | #define SYM_COMM 0x12 /* common symbol */ |
|---|
| 30 | |
|---|
| 31 | /* symbol masks */ |
|---|
| 32 | #define SYM_MASK_TYPE 0x1f /* mask for all the type bits */ |
|---|
| 33 | |
|---|
| 34 | typedef struct /* SYMBOL - entry in symbol table */ |
|---|
| 35 | { |
|---|
| 36 | char *name; /* symbol name */ |
|---|
| 37 | char *value; /* symbol pointer */ |
|---|
| 38 | unsigned char type; /* symbol type */ |
|---|
| 39 | |
|---|
| 40 | } DMW_SYMBOL_T; |
|---|
| 41 | |
|---|
| 42 | ////////////////////////////////////////// |
|---|
| 43 | // global variable |
|---|
| 44 | #ifdef _MAKEFILE_INCLUDE_TSHELL_ |
|---|
| 45 | extern DMW_SYMBOL_T DMW_SymbolTbl[]; |
|---|
| 46 | extern unsigned int DMW_SymbolTblSize; |
|---|
| 47 | #endif |
|---|
| 48 | |
|---|
| 49 | #ifdef __cplusplus |
|---|
| 50 | } |
|---|
| 51 | #endif |
|---|
| 52 | |
|---|
| 53 | #endif /*__DMW_SYMBOL_TABLE__*/ |
|---|
| 54 | |
|---|
| 55 | /************************************************************* |
|---|
| 56 | *Change Logs: |
|---|
| 57 | * $Log: DMW_SymTbl.h,v $ |
|---|
| 58 | * Revision 1.1 2011/07/08 03:13:15 megakiss |
|---|
| 59 | * *** empty log message *** |
|---|
| 60 | * |
|---|
| 61 | * Revision 1.2 2009/02/14 04:36:46 hwatk |
|---|
| 62 | * MW ¼öÁ¤»çÇ× Àû¿ë. |
|---|
| 63 | * |
|---|
| 64 | * Revision 1.1.4.1 2009/02/12 05:53:44 hwatk |
|---|
| 65 | * Indent Tool Àû¿ë. |
|---|
| 66 | * |
|---|
| 67 | * Revision 1.1 2007/12/24 05:04:42 megakiss |
|---|
| 68 | * *** empty log message *** |
|---|
| 69 | * |
|---|
| 70 | * Revision 1.1 2007/02/23 14:01:09 hwatk |
|---|
| 71 | * V0_10 |
|---|
| 72 | * |
|---|
| 73 | * Revision 1.1 2005/12/07 06:58:01 leon |
|---|
| 74 | * # BGT Initial version from std dstmw |
|---|
| 75 | * |
|---|
| 76 | * Revision 1.3 2004/12/30 11:26:36 jfet |
|---|
| 77 | * Add includes. |
|---|
| 78 | * |
|---|
| 79 | * Revision 1.1 2004/08/14 08:49:46 leon |
|---|
| 80 | * -newly created! |
|---|
| 81 | * |
|---|
| 82 | * |
|---|
| 83 | *************************************************************/ |
|---|