]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 26 Jan 2001 01:42:51 +0000 (01:42 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 26 Jan 2001 01:42:51 +0000 (01:42 +0000)
* math/tgmath.h: Pretty printing.

ChangeLog
math/test-tgmath.c
math/tgmath.h

index e6a3ce1c10ee2674ee498feb5c5c2939c2db24ed..3a7fa584677f41c6e26bb28e01c51ff5d158d2ba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2001-01-25  Ulrich Drepper  <drepper@redhat.com>
 
+       * math/tgmath.h: Pretty printing.
+
        * math/Makefile (tests): Add test-tgmath.
        (CFLAGS-test-tgmath.c): New variable.
        * math/test-tgmath.c: New file.  Contributed by Jakub Jelinek.
index 00407382443bf3f094ef0842b31716fa1e1a84fa..ad63f717373dd4c7c2995c0aa5239d95427c9776 100644 (file)
@@ -26,7 +26,7 @@
 #include <stdio.h>
 #include <tgmath.h>
 
-#define DEBUG
+//#define DEBUG
 
 static void compile_test (void);
 static void compile_testf (void);
index 1f19b14058d7f9b94472a03abbe97d67ec2e58e8..286ea56df099634941a5bb3fd92a6da38de718fe 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 
 /* 1 if 'type' is a floating type, 0 if 'type' is an integer type.
    Allows for _Bool.  Expands to an integer constant expression.  */
-#define __floating_type(type) (((type) 0.25) && ((type) 0.25 - 1))
+# define __floating_type(type) (((type) 0.25) && ((type) 0.25 - 1))
 
 /* The tgmath real type for T, where E is 0 if T is an integer type and
    1 for a floating type.  */
-#define __tgmath_real_type_sub(T, E) \
-  __typeof__(*(0 ? (__typeof__(0 ? (double *)0 : (void *)(E)))0                      \
-                : (__typeof__(0 ? (T *)0 : (void *)(!(E))))0))
+# define __tgmath_real_type_sub(T, E) \
+  __typeof__(*(0 ? (__typeof__ (0 ? (double *) 0 : (void *) (E))) 0          \
+                : (__typeof__ (0 ? (T *) 0 : (void *) (!(E)))) 0))
 
 /* The tgmath real type of EXPR.  */
-#define __tgmath_real_type(expr) \
+# define __tgmath_real_type(expr) \
   __tgmath_real_type_sub(__typeof__(expr), __floating_type(__typeof__(expr)))