Line -... |
Line 1... |
- |
|
1 |
/*
|
- |
|
2 |
* Copyright (c) 2002-2006 The TenDRA Project <http://www.tendra.org/>.
|
- |
|
3 |
* All rights reserved.
|
- |
|
4 |
*
|
- |
|
5 |
* Redistribution and use in source and binary forms, with or without
|
- |
|
6 |
* modification, are permitted provided that the following conditions are met:
|
- |
|
7 |
*
|
- |
|
8 |
* 1. Redistributions of source code must retain the above copyright notice,
|
- |
|
9 |
* this list of conditions and the following disclaimer.
|
- |
|
10 |
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
- |
|
11 |
* this list of conditions and the following disclaimer in the documentation
|
- |
|
12 |
* and/or other materials provided with the distribution.
|
- |
|
13 |
* 3. Neither the name of The TenDRA Project nor the names of its contributors
|
- |
|
14 |
* may be used to endorse or promote products derived from this software
|
- |
|
15 |
* without specific, prior written permission.
|
- |
|
16 |
*
|
- |
|
17 |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
|
- |
|
18 |
* IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
- |
|
19 |
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
- |
|
20 |
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
|
- |
|
21 |
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
- |
|
22 |
* EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
- |
|
23 |
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
- |
|
24 |
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
- |
|
25 |
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
- |
|
26 |
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
- |
|
27 |
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
- |
|
28 |
*
|
- |
|
29 |
* $Id$
|
- |
|
30 |
*/
|
1 |
/*
|
31 |
/*
|
2 |
Crown Copyright (c) 1997
|
32 |
Crown Copyright (c) 1997
|
3 |
|
33 |
|
4 |
This TenDRA(r) Computer Program is subject to Copyright
|
34 |
This TenDRA(r) Computer Program is subject to Copyright
|
5 |
owned by the United Kingdom Secretary of State for Defence
|
35 |
owned by the United Kingdom Secretary of State for Defence
|
Line 38... |
Line 68... |
38 |
These macros give some alternative constructs for creating location
|
68 |
These macros give some alternative constructs for creating location
|
39 |
structures. This file is automatically generated from algebra
|
69 |
structures. This file is automatically generated from algebra
|
40 |
c_class (version 1.1) by calculus (version 1.2).
|
70 |
c_class (version 1.1) by calculus (version 1.2).
|
41 |
*/
|
71 |
*/
|
42 |
|
72 |
|
43 |
#define CREATE_loc( A, B, C, D, E, F, P )\
|
73 |
#define CREATE_loc(A, B, C, D, E, F, P)\
|
44 |
{\
|
74 |
{\
|
45 |
LOCATION *loc_ = &( P ) ;\
|
75 |
LOCATION *loc_ = &(P);\
|
46 |
loc_->line = 1 ;\
|
76 |
loc_->line = 1;\
|
47 |
loc_->column = 0 ;\
|
77 |
loc_->column = 0;\
|
48 |
loc_->posn = MAKE_ptr ( SIZE_posn ) ;\
|
78 |
loc_->posn = MAKE_ptr(SIZE_posn);\
|
49 |
MAKE_posn ( ( A ), ( B ), ( C ), ( D ), 0, ( E ), ( F ), loc_->posn ) ;\
|
79 |
MAKE_posn((A), (B), (C), (D), 0, (E), (F), loc_->posn);\
|
50 |
}
|
80 |
}
|
51 |
|
81 |
|
52 |
#define NULL_loc { 0, 0, NULL_ptr ( POSITION ) }
|
82 |
#define NULL_loc { 0, 0, NULL_ptr (POSITION) }
|
53 |
|
83 |
|
54 |
|
84 |
|
55 |
#endif
|
85 |
#endif
|