home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xcoral16.zip / RESULT_T.H < prev    next >
C/C++ Source or Header  |  1993-01-15  |  3KB  |  102 lines

  1. /*
  2. ** Copyright 1989, 1992 by Lionel Fournigault
  3. **
  4. ** Permission to use, copy, and distribute for non-commercial purposes,
  5. ** is hereby granted without fee, providing that the above copyright
  6. ** notice appear in all copies and that both the copyright notice and this
  7. ** permission notice appear in supporting documentation.
  8. ** The software may be modified for your own purposes, but modified versions
  9. ** may not be distributed.
  10. ** This software is provided "as is" without any expressed or implied warranty.
  11. **
  12. **
  13. */
  14.  
  15. #ifndef RESULTTYPES_H
  16. #define RESULTTYPES_H
  17.  
  18.  
  19. /*------------------------------------------------------------------------------
  20. //                     Le pointeur null
  21. //------------------------------------------------------------------------------
  22. */
  23. #define Null 0
  24.  
  25.  
  26. /*------------------------------------------------------------------------------
  27. //                     Le type des differents resultats 
  28. //------------------------------------------------------------------------------
  29. */
  30. typedef int LineNumber;
  31.  
  32.  
  33. typedef char* StringTable[];
  34.  
  35.  
  36. struct Position {
  37.   char*      file_name;
  38.   LineNumber line_number;
  39. };
  40.  
  41. typedef struct Position Position;
  42.  
  43.  
  44. /*------------------------------------------------------------------------------
  45. //                     Le type des differents resultats 
  46. //------------------------------------------------------------------------------
  47. */
  48.  
  49. #define FILE_PREFIX        ""
  50.  
  51. #define FILE_PLENGTH       0
  52.  
  53.  
  54. #define PROC_PREFIX        "[   ]  "
  55.  
  56. #define PROC_PLENGTH       7
  57.  
  58.  
  59. #define PARENT_PREFIX      "[ ]  "
  60.  
  61. #define PARENT_PLENGTH     5
  62.  
  63.  
  64. #define METHOD_PREFIX      "[    ]  "
  65.  
  66. #define METHOD_PLENGTH     8
  67.  
  68.  
  69. #define CLASS_PREFIX       "[ ]  "
  70.  
  71. #define CLASS_PLENGTH      5
  72.  
  73.  
  74. /*------------------------------------------------------------------------------
  75. //   Les differentes macros applicable aux resultats retournes par le browser 
  76. //------------------------------------------------------------------------------
  77. */
  78. #define GET_FILE_INFO(pt)       (pt - FILE_PLENGTH)
  79. #define REMOVE_FILE_INFO(pt) (pt+FILE_PLENGTH)
  80.  
  81. #define GET_PROCEDURE_INFO(pt)  (pt - PROC_PLENGTH)
  82. #define REMOVE_PROCEDURE_INFO(pt) (pt+PROC_PLENGTH)
  83.  
  84. #define GET_PARENT_INFO(pt)     (pt - PARENT_PLENGTH)
  85. #define REMOVE_PARENT_INFO(pt) (pt+PARENT_PLENGTH)
  86.  
  87. #define GET_SON_INFO(pt)        (pt - CLASS_PLENGTH)
  88. #define REMOVE_SON_INFO(pt) (pt+SON_PLENGTH)
  89.  
  90. #define GET_METHOD_INFO(pt)     (pt - METHOD_PLENGTH)
  91. #define REMOVE_METHOD_INFO(pt) (pt+METHOD_PLENGTH)
  92.  
  93. #define GET_CLASS_INFO(pt)      (pt - CLASS_PLENGTH)
  94. #define REMOVE_CLASS_INFO(pt) (pt+CLASS_PLENGTH)
  95.  
  96. #define GET_METHOD_CLASS(pt)    (get_method_class(pt))
  97.  
  98. extern char* get_method_class();
  99.  
  100.  
  101. #endif  /*  RESULTTYPES_H  */
  102.