File: result_types.h

package info (click to toggle)
xcoral 3.14-2
  • links: PTS
  • area: main
  • in suites: hamm, potato, slink
  • size: 10,216 kB
  • ctags: 9,428
  • sloc: ansic: 41,766; lisp: 10,900; yacc: 1,803; lex: 1,258; makefile: 1,035; sh: 13
file content (148 lines) | stat: -rw-r--r-- 4,108 bytes parent folder | download | duplicates (2)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
/* ########################################################################

			     result_types.h

   File: result_types.h
   Path: /home/fournigault/c/X11/xcoral-2.31/result_types.h
   Description: 
   Created: Fri Jan 27 11:27:37 MET 1995
   Author: Dominique Leveque
   Modified: Fri Jan 27 11:27:40 MET 1995
   Last maintained by: Dominique Leveque

   RCS $Revision$ $State$
   

   ########################################################################

   Note: 

   ########################################################################

   Copyright (c) : Dominique Leveque

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

   ######################################################################## */


#ifndef RESULTTYPES_H
#define RESULTTYPES_H


/*------------------------------------------------------------------------------
//                     Le pointeur null
//------------------------------------------------------------------------------
*/
#define Null 0


/*------------------------------------------------------------------------------
//                     Le type des differents resultats 
//------------------------------------------------------------------------------
*/
typedef int LineNumber;


typedef char* StringTable[];


struct Position {
  char*      file_name;
  LineNumber line_number;
};

typedef struct Position Position;


/*------------------------------------------------------------------------------
//                     Le type des differents resultats 
//------------------------------------------------------------------------------
*/

#define FILE_PREFIX        ""

#define FILE_PLENGTH       0


#define PROC_PREFIX        "[   ]  "

#define PROC_PLENGTH       7


#define METHOD_PREFIX      "[    ]  "

#define METHOD_PLENGTH     8


#define CLASS_PREFIX       "[  ]  "

#define CLASS_PLENGTH      6

#define ATTRIBUTE_PREFIX       "[  ]  "

#define ATTRIBUTE_PLENGTH      6


#define GLOBAL_PREFIX       "[ ]  "

#define GLOBAL_PLENGTH      5

/*------------------------------------------------------------------------------
//   Les differentes macros applicable aux resultats retournes par le browser 
//------------------------------------------------------------------------------
*/
#define GET_FILE_INFO(pt)       (pt - FILE_PLENGTH)
#define REMOVE_FILE_INFO(pt) (pt+FILE_PLENGTH)

#define GET_PROCEDURE_INFO(pt)  (pt - PROC_PLENGTH)
#define REMOVE_PROCEDURE_INFO(pt) (pt+PROC_PLENGTH)

#define GET_METHOD_INFO(pt)     (pt - METHOD_PLENGTH)
#define REMOVE_METHOD_INFO(pt) (pt+METHOD_PLENGTH)

#define GET_ATTRIBUTE_INFO(pt)     (pt - ATTRIBUTE_PLENGTH)
#define REMOVE_ATTRIBUTE_INFO(pt) (pt+ATTRIBUTE_PLENGTH)

#define GET_GLOBAL_INFO(pt)  (pt - GLOBAL_PLENGTH)
#define REMOVE_GLOBAL_INFO(pt) (pt+GLOBAL_PLENGTH)

#define GET_CLASS_INFO(pt)      (pt - CLASS_PLENGTH)
#define REMOVE_CLASS_INFO(pt) (pt+CLASS_PLENGTH)

#define GET_METHOD_CLASS(pt)    (get_method_class(pt))

extern char* get_method_class();

#define GET_ATTRIBUTE_CLASS(pt)    (get_attribute_class(pt))
extern char* get_attribute_class();

#define HIDED(pt) ((pt)[-2] == 'H')
#define HIDE(pt) ((pt)[-2] = 'H')
#define SHOW(pt) ((pt)[-2] = ' ')

#define UserHide		1
#define HidePrivate		2
#define HideProtected		4
#define HideInherited		8
#define HideStaticFunctions	16
#define HideStaticGlobals	32
#define HideChildrenOf		64
#define HidenChildren		128
#define HideInternalTypes	256

extern unsigned	Hide_Bits;

#endif  /*  RESULTTYPES_H  */