2 |
7u83 |
1 |
/* ANSI PROMOTION RULES */
|
|
|
2 |
|
|
|
3 |
#ifndef __STARTUP_PROMOTION_INCLUDED
|
|
|
4 |
#define __STARTUP_PROMOTION_INCLUDED
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
#pragma token VARIETY __prom_ushort # ~int_promot
|
|
|
8 |
#pragma token PROC ( VARIETY ) VARIETY __prom # ~promote
|
|
|
9 |
#pragma promote char:int
|
|
|
10 |
#pragma promote unsigned char:int
|
|
|
11 |
#pragma promote signed char:int
|
|
|
12 |
#pragma promote short:int
|
|
|
13 |
#pragma promote int:int
|
|
|
14 |
#pragma promote unsigned int:unsigned int
|
|
|
15 |
#pragma promote long:long
|
|
|
16 |
#pragma promote unsigned long:unsigned long
|
|
|
17 |
|
|
|
18 |
#pragma TenDRA begin
|
|
|
19 |
#pragma TenDRA no external declaration allow
|
|
|
20 |
#pragma TenDRA longlong type allow
|
|
|
21 |
#pragma promote long long:long long
|
|
|
22 |
#pragma promote unsigned long long:unsigned long long
|
|
|
23 |
#pragma TenDRA end
|
|
|
24 |
#pragma TenDRA begin
|
|
|
25 |
|
|
|
26 |
#ifdef __ushort_to_int
|
|
|
27 |
#pragma promote unsigned short:int
|
|
|
28 |
#else
|
|
|
29 |
#pragma promote unsigned short:__prom_ushort
|
|
|
30 |
#endif
|
|
|
31 |
#pragma promote __prom_ushort:__prom_ushort
|
|
|
32 |
#pragma compute promote __prom
|
|
|
33 |
|
|
|
34 |
#pragma no_def __prom_ushort __prom
|
|
|
35 |
#undef __prom_ushort
|
|
|
36 |
#undef __prom
|
|
|
37 |
#undef __ushort_to_int
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
#endif
|