Mercurial > projects > ldc
comparison dmd/root/port.h @ 1195:e961851fb8be
Merged DMD 1.042.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Fri, 03 Apr 2009 17:59:34 +0200 |
parents | 1853dcd9b944 |
children | 8026319762be |
comparison
equal
deleted
inserted
replaced
1194:1853dcd9b944 | 1195:e961851fb8be |
---|---|
1 | 1 |
2 // Copyright (c) 1999-2002 by Digital Mars | 2 // Copyright (c) 1999-2009 by Digital Mars |
3 // All Rights Reserved | 3 // All Rights Reserved |
4 // written by Walter Bright | 4 // written by Walter Bright |
5 // www.digitalmars.com | 5 // http://www.digitalmars.com |
6 | 6 |
7 #ifndef PORT_H | 7 #ifndef PORT_H |
8 #define PORT_H | 8 #define PORT_H |
9 | 9 |
10 // Portable wrapper around compiler/system specific things. | 10 // Portable wrapper around compiler/system specific things. |
40 #undef isfinite | 40 #undef isfinite |
41 #undef isinfinity | 41 #undef isinfinity |
42 #undef signbit | 42 #undef signbit |
43 #endif | 43 #endif |
44 static int isNan(double); | 44 static int isNan(double); |
45 static int isNan(long double); | |
46 | |
47 static int isSignallingNan(double); | |
48 static int isSignallingNan(long double); | |
49 | |
45 static int isFinite(double); | 50 static int isFinite(double); |
46 static int isInfinity(double); | 51 static int isInfinity(double); |
47 static int Signbit(double); | 52 static int Signbit(double); |
48 | 53 |
49 static double floor(double); | 54 static double floor(double); |
56 | 61 |
57 // Convert ulonglong to double | 62 // Convert ulonglong to double |
58 static double ull_to_double(ulonglong ull); | 63 static double ull_to_double(ulonglong ull); |
59 | 64 |
60 // Get locale-dependent list separator | 65 // Get locale-dependent list separator |
61 static char *list_separator(); | 66 static const char *list_separator(); |
62 static wchar_t *wlist_separator(); | 67 static const wchar_t *wlist_separator(); |
68 | |
69 static char *strupr(char *); | |
63 }; | 70 }; |
64 | 71 |
65 #endif | 72 #endif |