libdecnumber: Prepare libdecnumber for QEMU include structure
authorTom Musta <tommusta@gmail.com>
Mon, 21 Apr 2014 20:54:47 +0000 (15:54 -0500)
committerAlexander Graf <agraf@suse.de>
Mon, 16 Jun 2014 11:24:28 +0000 (13:24 +0200)
Consistent with other libraries in QEMU, the libdecnumber header files were
placed in include/libdecnumber, separate from the C code.  This is different
from the original libdecnumber source, where they were co-located.

Change the libdecnumber source code so that it reflects this split.  Specifically,
modify directives of the form:

    #include "xxx.h"

to look like:

    #include "libdecnumber/xxx.h"

Signed-off-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
include/libdecnumber/decNumber.h
include/libdecnumber/decNumberLocal.h
include/libdecnumber/dpd/decimal128.h
include/libdecnumber/dpd/decimal32.h
include/libdecnumber/dpd/decimal64.h
libdecnumber/decContext.c
libdecnumber/decNumber.c
libdecnumber/dpd/decimal128.c
libdecnumber/dpd/decimal32.c
libdecnumber/dpd/decimal64.c

index aa99a5b55c2dcf3b6ebc58c57b3da927b230643b..fb324bd35a116d743d8caf5f450e76972e711599 100644 (file)
@@ -39,7 +39,7 @@
   #define DECAUTHOR   "Mike Cowlishaw"               /* Who to blame */
 
   #if !defined(DECCONTEXT)
-    #include "decContext.h"
+    #include "libdecnumber/decContext.h"
   #endif
 
   /* Bit settings for decNumber.bits                                 */
index f2a919bb11264ab2b0b246dcb9e22a4cde897f70..f5f508f2944014f1d15a3186d3bfa9791aa91d0b 100644 (file)
@@ -44,7 +44,7 @@
 
   #include <stdlib.h>        /* for abs                              */
   #include <string.h>        /* for memset, strcpy                   */
-  #include "dconfig.h"       /* for WORDS_BIGENDIAN                  */
+  #include "libdecnumber/dconfig.h"
 
   /* Conditional code flag -- set this to match hardware platform     */
   /* 1=little-endian, 0=big-endian                                   */
index 251b964bad5dc5bf1a3e3de8e209f67621867fa8..7d9ee24f85c36833b9900a079c0e59ae62633505 100644 (file)
@@ -60,7 +60,7 @@
     #define DECNUMDIGITS DECIMAL128_Pmax /* size if not already defined*/
   #endif
   #ifndef DECNUMBER
-    #include "decNumber.h"             /* context and number library */
+    #include "libdecnumber/decNumber.h"
   #endif
 
   /* Decimal 128-bit type, accessible by bytes                       */
index 5f06cd48eb8789a1607961f116660d3f5dd83a2a..de313e00249e035dfc1aae54cb464b266bb8c192 100644 (file)
@@ -60,7 +60,7 @@
     #define DECNUMDIGITS DECIMAL32_Pmax /* size if not already defined*/
   #endif
   #ifndef DECNUMBER
-    #include "decNumber.h"             /* context and number library */
+    #include "libdecnumber/decNumber.h"
   #endif
 
   /* Decimal 32-bit type, accessible by bytes */
index c391e254e4db04b85ca1a331f51c92251a4482ce..2f6c0494022e69dfbc5945ca453395d1ea60738a 100644 (file)
@@ -62,7 +62,7 @@
     #define DECNUMDIGITS DECIMAL64_Pmax /* size if not already defined*/
   #endif
   #ifndef DECNUMBER
-    #include "decNumber.h"             /* context and number library */
+    #include "libdecnumber/decNumber.h"
   #endif
 
   /* Decimal 64-bit type, accessible by bytes                        */
index 8d577f48ad41d76f404e107d08020e7f90c96d2d..684710626d034d300cc416fc68132588382ed364 100644 (file)
@@ -37,9 +37,9 @@
 
 #include <string.h>          /* for strcmp */
 #include <stdio.h>           /* for printf if DECCHECK */
-#include "dconfig.h"         /* for GCC definitions */
-#include "decContext.h"              /* context and base types */
-#include "decNumberLocal.h"   /* decNumber local types, etc. */
+#include "libdecnumber/dconfig.h"
+#include "libdecnumber/decContext.h"
+#include "libdecnumber/decNumberLocal.h"
 
 #if DECCHECK
 /* compile-time endian tester [assumes sizeof(Int)>1] */
index f9a624a1afa9498702f22213203c95fde906a8ee..1bfc08173e06de741ef056a922998c0c9684d071 100644 (file)
 #include <stdio.h>                /* for printf [if needed] */
 #include <string.h>               /* for strcpy */
 #include <ctype.h>                /* for lower */
-#include "dconfig.h"              /* for GCC definitions */
-#include "decNumber.h"            /* base number library */
-#include "decNumberLocal.h"       /* decNumber local types, etc. */
+#include "libdecnumber/dconfig.h"
+#include "libdecnumber/decNumber.h"
+#include "libdecnumber/decNumberLocal.h"
 
 /* Constants */
 /* Public lookup table used by the D2U macro */
index 54191aab5c02d60aaba4d68dd74862cfcf540081..8f8e9835f511c8e1a194523a75c38bf6233fbffd 100644 (file)
 #include <string.h>          /* [for memset/memcpy] */
 #include <stdio.h>           /* [for printf] */
 
-#include "dconfig.h"         /* GCC definitions */
+#include "libdecnumber/dconfig.h"
 #define         DECNUMDIGITS 34      /* make decNumbers with space for 34 */
-#include "decNumber.h"       /* base number library */
-#include "decNumberLocal.h"   /* decNumber local types, etc. */
-#include "decimal128.h"              /* our primary include */
+#include "libdecnumber/decNumber.h"
+#include "libdecnumber/decNumberLocal.h"
+#include "libdecnumber/dpd/decimal128.h"
 
 /* Utility routines and tables [in decimal64.c] */
 extern const uInt   COMBEXP[32], COMBMSD[32];
index d8e3f5978111d15e87a8e146a38fa8556db273fc..f8d30e630465cb6a651c75109ed027e55afba0f6 100644 (file)
 #include <string.h>          /* [for memset/memcpy] */
 #include <stdio.h>           /* [for printf] */
 
-#include "dconfig.h"         /* GCC definitions */
+#include "libdecnumber/dconfig.h"
 #define         DECNUMDIGITS  7      /* make decNumbers with space for 7 */
-#include "decNumber.h"       /* base number library */
-#include "decNumberLocal.h"   /* decNumber local types, etc. */
-#include "decimal32.h"       /* our primary include */
+#include "libdecnumber/decNumber.h"
+#include "libdecnumber/decNumberLocal.h"
+#include "libdecnumber/dpd/decimal32.h"
 
 /* Utility tables and routines [in decimal64.c] */
 extern const uInt   COMBEXP[32], COMBMSD[32];
index 474eb7cf8a0634bbb16b52acfda239e5d732b9d9..3bd27760ae7afe58b7cdb0522b5dc06598967189 100644 (file)
 #include <string.h>          /* [for memset/memcpy] */
 #include <stdio.h>           /* [for printf] */
 
-#include "dconfig.h"         /* GCC definitions */
+#include "libdecnumber/dconfig.h"
 #define         DECNUMDIGITS 16      /* make decNumbers with space for 16 */
-#include "decNumber.h"       /* base number library */
-#include "decNumberLocal.h"   /* decNumber local types, etc. */
-#include "decimal64.h"       /* our primary include */
+#include "libdecnumber/decNumber.h"
+#include "libdecnumber/decNumberLocal.h"
+#include "libdecnumber/dpd/decimal64.h"
 
 /* Utility routines and tables [in decimal64.c]; externs for C++ */
 extern const uInt COMBEXP[32], COMBMSD[32];
@@ -70,7 +70,7 @@ extern void decNumberShow(const decNumber *);   /* .. */
 #define DEC_BIN2CHAR 1
 #define DEC_DPD2BIN  1
 #define DEC_BIN2DPD  1            /* used for all sizes */
-#include "decDPD.h"               /* lookup tables */
+#include "libdecnumber/decDPD.h"
 
 /* ------------------------------------------------------------------ */
 /* decimal64FromNumber -- convert decNumber to decimal64             */
@@ -559,7 +559,7 @@ void decimal64Show(const decimal64 *d64) {
 #else
   #define DEC_DPD2BCD 1
 #endif
-#include "decDPD.h"          /* lookup tables */
+#include "libdecnumber/decDPD.h"
 
 /* The maximum number of decNumberUnits needed for a working copy of */
 /* the units array is the ceiling of digits/DECDPUN, where digits is */