home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / sd386v50.zip / sd386src.zip / DFILE.H < prev    next >
Text File  |  1996-08-28  |  5KB  |  84 lines

  1. /*****************************************************************************/
  2. /* File:                                             IBM INTERNAL USE ONLY   */
  3. /*   Dfile.h                                                                 */
  4. /*                                                                           */
  5. /* Description:                                                              */
  6. /*   Data display structures and constants.                                  */
  7. /*                                                                           */
  8. /* History:                                                                  */
  9. /*                                                                           */
  10. /*   02/08/91 Creation of 32-bit SD86, from 16-bit version.                  */
  11. /*                                                                           */
  12. /*...Release 1.00                                                            */
  13. /*...                                                                        */
  14. /*... 02/08/91  100   made changes for 32-bit compilation.                   */
  15. /*...                                                                        */
  16. /*...Release 1.00 (After pre-release 1.08)                                   */
  17. /*...                                                                        */
  18. /*... 02/12/92  521   Joe       Port to C-Set/2.                             */
  19. /*...                           ( some macros moved to here )                */
  20. /*... 02/13/92  528   Srinivas  Increase the size of expression which can be */
  21. /*...                           entered in data window.                      */
  22. /*...                                                                        */
  23. /*...Release 1.01 (04/03/92)                                                 */
  24. /*...                                                                        */
  25. /*... 08/03/92  701   Joe       Cua Interface.                               */
  26. /*...                                                                        */
  27. /*...Release 1.02 (10/22/92)                                                 */
  28. /*...                                                                        */
  29. /*... 03/03/93  813   Joe       Revised types handling for HL03.             */
  30. /*...                                                                        */
  31. /*****************************************************************************/
  32.  
  33. /*****************************************************************************/
  34. /* The data displayed by the debugger is logically represented as a file.    */
  35. /* The window that displays the data can be moved over this file in a simi-  */
  36. /* lar way to the code window moving over the file of source or asm code.    */
  37. /*****************************************************************************/
  38.  
  39. #define EXPRSIZE     255                /*                                528*/
  40. #define DATALINESPAN 135     /* buffer size of data display lin(w/3 attrs)813*/
  41.                              /* this value used to be 83.                 813*/
  42. typedef void* SCOPE;                     /* variable scrope (null if global) */
  43.  
  44.  
  45. #define DFP_BASE_CLASS     0x01
  46. #define DFP_DERIVED_CLASS  0x02
  47.  
  48. typedef struct _dfpflags
  49. {
  50.  int   ClassType  :2;                   /* Base Class/Derived Class          */
  51.  int   reserved   :30;
  52. }DFP_FLAGS;
  53.  
  54. typedef struct DfileStruct {
  55.   struct DfileStruct *next;
  56.   DFP_FLAGS DfpFlags;
  57.   UINT   lrn;       /* logical record number within the data file (0..N)     */
  58.   UINT   lines;     /* number of lines needed to display this data object.   */
  59.   UINT   mid;       /* module ID defining context for data                   */
  60.   UINT   lno;       /* source line defining context for data                 */
  61.   int    sfi;       /* source file index.                                    */
  62.   UINT   datatype;  /* data type ID of variable                              */
  63.   UINT   showtype;  /* data type ID for display                              */
  64.   UINT   sfx;       /* stack frame index (1..N)                              */
  65.   SCOPE  scope;     /* scope of variable (null if global)                    */
  66.  
  67.                     /* function for displaying expression                    */
  68.   UINT   (* shower)( struct DfileStruct * , UINT , UINT , UINT );
  69.  
  70.                     /* function for changing storage of type showtype        */
  71.   UINT    (* zapper)( struct DfileStruct * , UINT , UINT );             /*521*/
  72.   UCHAR  expr[ EXPRSIZE ];  /* ASCII text for expression */
  73.   UINT   baseaddr;          /* base address location of this data.        101*/
  74. } DFILE;
  75.  
  76. typedef UINT (* SHOWER) (struct DfileStruct *, UINT, UINT, UINT);
  77. typedef UINT (* ZAPPER) (struct DfileStruct *, UINT, UINT);
  78.  
  79. #define SHORTX   11                     /* # of chars for short expressions  */
  80. #define STGCOL   13                     /* screen col for storage data (1..N)*/
  81. #define ASCIICOL 65                     /* screen col for ASCII data (1..N)  */
  82. #define SXCHAR   0xF7                   /* short expression continuation char*/
  83.  
  84.