]> git.proxmox.com Git - mirror_qemu.git/commitdiff
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 68e6f60e96fa9f84a8b698d64e35547807e9448e..7d97a65ac565fa8ea7dfef1f70e49788c33ce8ca 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 ca1412f30b5521982eb2f1589958fd8844d747c0..c9e7807f87e7ddcd5067eec5a4289a2a806c9d7d 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 7551b7caafb90b074b83dbc89b961354d7f21467..ca4764e5471b90ec806aaa7ab18d69bb693c8d44 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 095ab756540e868d23296715668f201687bf3781..53f29789d753210da52590e10a9e0468c42a9840 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 8256084e90069822810b7847c3c79c34df3a42a3..4816176410f963ff026903dbf8ec66665f33cf24 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 */