OSDN Git Service

libdecnumber: Clean up includes
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 9 Feb 2016 11:02:46 +0000 (11:02 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 16 Feb 2016 14:29:27 +0000 (14:29 +0000)
Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.

This commit was created with scripts/clean-includes.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
libdecnumber/decContext.c
libdecnumber/decNumber.c
libdecnumber/dpd/decimal128.c
libdecnumber/dpd/decimal32.c
libdecnumber/dpd/decimal64.c

index 68e6f60..7d97a65 100644 (file)
@@ -35,8 +35,7 @@
 /* context structures.                                               */
 /* ------------------------------------------------------------------ */
 
-#include <string.h>          /* for strcmp */
-#include <stdio.h>           /* for printf if DECCHECK */
+#include "qemu/osdep.h"
 #include "libdecnumber/dconfig.h"
 #include "libdecnumber/decContext.h"
 #include "libdecnumber/decNumberLocal.h"
index ca1412f..c9e7807 100644 (file)
 /*     **  -- raise to the power                                     */
 /* ------------------------------------------------------------------ */
 
-#include <stdlib.h>               /* for malloc, free, etc. */
-#include <stdio.h>                /* for printf [if needed] */
-#include <string.h>               /* for strcpy */
-#include <ctype.h>                /* for lower */
+#include "qemu/osdep.h"
 #include "libdecnumber/dconfig.h"
 #include "libdecnumber/decNumber.h"
 #include "libdecnumber/decNumberLocal.h"
index 7551b7c..ca4764e 100644 (file)
@@ -39,8 +39,7 @@
 /*                                                                   */
 /* Error handling is the same as decNumber (qv.).                    */
 /* ------------------------------------------------------------------ */
-#include <string.h>          /* [for memset/memcpy] */
-#include <stdio.h>           /* [for printf] */
+#include "qemu/osdep.h"
 
 #include "libdecnumber/dconfig.h"
 #define         DECNUMDIGITS 34      /* make decNumbers with space for 34 */
index 095ab75..53f2978 100644 (file)
@@ -39,8 +39,7 @@
 /*                                                                   */
 /* Error handling is the same as decNumber (qv.).                    */
 /* ------------------------------------------------------------------ */
-#include <string.h>          /* [for memset/memcpy] */
-#include <stdio.h>           /* [for printf] */
+#include "qemu/osdep.h"
 
 #include "libdecnumber/dconfig.h"
 #define         DECNUMDIGITS  7      /* make decNumbers with space for 7 */
index 8256084..4816176 100644 (file)
@@ -39,8 +39,7 @@
 /*                                                                   */
 /* Error handling is the same as decNumber (qv.).                    */
 /* ------------------------------------------------------------------ */
-#include <string.h>          /* [for memset/memcpy] */
-#include <stdio.h>           /* [for printf] */
+#include "qemu/osdep.h"
 
 #include "libdecnumber/dconfig.h"
 #define         DECNUMDIGITS 16      /* make decNumbers with space for 16 */