[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
renamed ulonglong_t to unsigned_long_long_int in od.c
From: |
Paul Eggert |
Subject: |
renamed ulonglong_t to unsigned_long_long_int in od.c |
Date: |
Fri, 25 Nov 2005 23:31:32 -0800 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
POSIX reserves names ending in _t, and anyway I suspect that a system
header somewhere might declare ulonglong_t, so I installed this:
2005-11-25 Paul Eggert <address@hidden>
* src/od.c (unsigned_long_long_int): Renamed from ulonglong_t,
to avoid collision with POSIX name space. All uses changed.
Index: od.c
===================================================================
RCS file: /fetish/cu/src/od.c,v
retrieving revision 1.167
retrieving revision 1.168
diff -p -u -r1.167 -r1.168
--- od.c 23 Sep 2005 20:13:49 -0000 1.167
+++ od.c 26 Nov 2005 07:29:48 -0000 1.168
@@ -60,11 +60,11 @@ typedef double LONG_DOUBLE;
#endif
#if HAVE_UNSIGNED_LONG_LONG
-typedef unsigned long long int ulonglong_t;
+typedef unsigned long long int unsigned_long_long_int;
#else
/* This is just a place-holder to avoid a few `#if' directives.
In this case, the type isn't actually used. */
-typedef unsigned long int ulonglong_t;
+typedef unsigned long int unsigned_long_long_int;
#endif
enum size_spec
@@ -144,7 +144,7 @@ static unsigned int const bytes_to_unsig
static unsigned int const bytes_to_hex_digits[] =
{0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32};
-#define MAX_INTEGRAL_TYPE_SIZE sizeof (ulonglong_t)
+#define MAX_INTEGRAL_TYPE_SIZE sizeof (unsigned_long_long_int)
/* It'll be a while before we see integral types wider than 16 bytes,
but if/when it happens, this check will catch it. Without this check,
@@ -165,7 +165,7 @@ static const int width_bytes[] =
sizeof (short int),
sizeof (int),
sizeof (long int),
- sizeof (ulonglong_t),
+ sizeof (unsigned_long_long_int),
sizeof (float),
sizeof (double),
sizeof (LONG_DOUBLE)
@@ -454,7 +454,7 @@ print_long (size_t n_bytes, void const *
static void
print_long_long (size_t n_bytes, void const *block, char const *fmt_string)
{
- ulonglong_t const *p = block;
+ unsigned_long_long_int const *p = block;
size_t i;
for (i = n_bytes / sizeof *p; i != 0; i--)
printf (fmt_string, *p++);
@@ -1584,7 +1584,7 @@ main (int argc, char **argv)
#if HAVE_UNSIGNED_LONG_LONG
/* If `long int' and `long long int' have the same size, it's fine
to overwrite the entry for `long' with this one. */
- integral_type_size[sizeof (ulonglong_t)] = LONG_LONG;
+ integral_type_size[sizeof (unsigned_long_long_int)] = LONG_LONG;
#endif
for (i = 0; i <= MAX_FP_TYPE_SIZE; i++)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- renamed ulonglong_t to unsigned_long_long_int in od.c,
Paul Eggert <=