Print this page
remove support for non-ANSI compilation
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/common/sys/dl.h
+++ new/usr/src/uts/common/sys/dl.h
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License, Version 1.0 only
6 6 * (the "License"). You may not use this file except in compliance
7 7 * with the License.
8 8 *
9 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 * or http://www.opensolaris.org/os/licensing.
11 11 * See the License for the specific language governing permissions
12 12 * and limitations under the License.
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
13 13 *
14 14 * When distributing Covered Code, include this CDDL HEADER in each
15 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 16 * If applicable, add the following below this CDDL HEADER, with the
17 17 * fields enclosed by brackets "[]" replaced with your own identifying
18 18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 19 *
20 20 * CDDL HEADER END
21 21 */
22 22 /*
23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
24 + *
23 25 * Copyright 1997 Sun Microsystems, Inc. All rights reserved.
24 26 * Use is subject to license terms.
25 27 */
26 28
27 29 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
28 30 /* All Rights Reserved */
29 31
30 32 #ifndef _SYS_DL_H
31 33 #define _SYS_DL_H
32 34
33 -#pragma ident "%Z%%M% %I% %E% SMI"
34 -
35 35 #include <sys/isa_defs.h>
36 36
37 37 #ifdef __cplusplus
38 38 extern "C" {
39 39 #endif
40 40
41 41 typedef struct dl {
42 42 #ifdef _LONG_LONG_LTOH
43 43 uint_t dl_lop;
44 44 int dl_hop;
45 45 #else
46 46 int dl_hop;
47 47 uint_t dl_lop;
48 48 #endif
49 49 } dl_t;
50 50
51 -#ifdef __STDC__
52 51 extern dl_t ladd(dl_t, dl_t);
53 52 extern dl_t lsub(dl_t, dl_t);
54 53 extern dl_t lmul(dl_t, dl_t);
55 54 extern dl_t ldivide(dl_t, dl_t);
56 55 extern dl_t lshiftl(dl_t, int);
57 56 extern dl_t llog10(dl_t);
58 57 extern dl_t lexp10(dl_t);
59 -#else
60 -extern dl_t ladd();
61 -extern dl_t lsub();
62 -extern dl_t lmul();
63 -extern dl_t ldivide();
64 -extern dl_t lshiftl();
65 -extern dl_t llog10();
66 -extern dl_t lexp10();
67 -#endif /* __STDC__ */
68 58
69 59 extern dl_t lzero;
70 60 extern dl_t lone;
71 61 extern dl_t lten;
72 62
73 63 #ifdef __cplusplus
74 64 }
75 65 #endif
76 66
77 67 #endif /* _SYS_DL_H */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX