284 lines
8.0 KiB
Diff
284 lines
8.0 KiB
Diff
From 257d3848c1471ed8e2c96eb55eac496d5c0aa7ab Mon Sep 17 00:00:00 2001
|
|
Date: Tue, 5 Sep 2017 16:07:55 +0300
|
|
Subject: [PATCH] Added patches from old version
|
|
|
|
---
|
|
src/build_tools/autorevision/Makefile.am | 2 +-
|
|
src/build_tools/autorevision/Makefile.in | 2 +-
|
|
.../nsprpub/pr/include/prcpucfg_linux.h | 216 +++++++++++++++++++++
|
|
src/include/prep.h | 8 +
|
|
4 files changed, 226 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/build_tools/autorevision/Makefile.am b/src/build_tools/autorevision/Makefile.am
|
|
index dfb38a9..91f536d 100644
|
|
--- a/src/build_tools/autorevision/Makefile.am
|
|
+++ b/src/build_tools/autorevision/Makefile.am
|
|
@@ -8,4 +8,4 @@ auto_revision_LDADD = ../../base/tinyxml/libtinyxml.la
|
|
auto_revision_CXXFLAGS=-DTIXML_USE_STL
|
|
|
|
all-local: auto_revision
|
|
- ./auto_revision +int +wx +t $(top_srcdir) $(top_builddir)/src/include/autorevision.h
|
|
+ #./auto_revision +int +wx +t $(top_srcdir) $(top_builddir)/src/include/autorevision.h
|
|
diff --git a/src/build_tools/autorevision/Makefile.in b/src/build_tools/autorevision/Makefile.in
|
|
index b98f723..c7d844f 100644
|
|
--- a/src/build_tools/autorevision/Makefile.in
|
|
+++ b/src/build_tools/autorevision/Makefile.in
|
|
@@ -701,7 +701,7 @@ uninstall-am:
|
|
|
|
|
|
all-local: auto_revision
|
|
- ./auto_revision +int +wx +t $(top_srcdir) $(top_builddir)/src/include/autorevision.h
|
|
+ #./auto_revision +int +wx +t $(top_srcdir) $(top_builddir)/src/include/autorevision.h
|
|
|
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
|
diff --git a/src/include/mozilla_chardet/nsprpub/pr/include/prcpucfg_linux.h b/src/include/mozilla_chardet/nsprpub/pr/include/prcpucfg_linux.h
|
|
index 2fdbf63..a873916 100644
|
|
--- a/src/include/mozilla_chardet/nsprpub/pr/include/prcpucfg_linux.h
|
|
+++ b/src/include/mozilla_chardet/nsprpub/pr/include/prcpucfg_linux.h
|
|
@@ -914,6 +914,222 @@
|
|
#define PR_BYTES_PER_WORD_LOG2 2
|
|
#define PR_BYTES_PER_DWORD_LOG2 3
|
|
|
|
+/* rasp:: HELCE e2k definition */
|
|
+#elif defined(__e2k__)
|
|
+
|
|
+#define IS_LITTLE_ENDIAN 1
|
|
+#undef IS_BIG_ENDIAN
|
|
+
|
|
+#ifdef __ptr64__
|
|
+#define IS_64
|
|
+#elif defined(__ptr32__)
|
|
+#undef IS_64
|
|
+#define IS_32
|
|
+#endif
|
|
+
|
|
+#define PR_BYTES_PER_BYTE 1
|
|
+#define PR_BYTES_PER_SHORT 2
|
|
+#define PR_BYTES_PER_INT 4
|
|
+#define PR_BYTES_PER_INT64 4
|
|
+#define PR_BYTES_PER_LONG 8
|
|
+#define PR_BYTES_PER_FLOAT 4
|
|
+#define PR_BYTES_PER_DOUBLE 8
|
|
+
|
|
+#ifdef __ptr64__
|
|
+#define PR_BYTES_PER_WORD 8
|
|
+#elif defined(__ptr32__)
|
|
+#define PR_BYTES_PER_WORD 4
|
|
+#endif
|
|
+
|
|
+#define PR_BYTES_PER_DWORD 8
|
|
+#define PR_BITS_PER_BYTE 8
|
|
+#define PR_BITS_PER_SHORT 16
|
|
+#define PR_BITS_PER_INT 32
|
|
+#define PR_BITS_PER_INT64 32
|
|
+#define PR_BITS_PER_LONG 64
|
|
+#define PR_BITS_PER_FLOAT 32
|
|
+#define PR_BITS_PER_DOUBLE 64
|
|
+
|
|
+#ifdef __ptr64__
|
|
+#define PR_BITS_PER_WORD 64
|
|
+#elif defined(__ptr32__)
|
|
+#define PR_BITS_PER_WORD 32
|
|
+#endif
|
|
+
|
|
+#define PR_BITS_PER_BYTE_LOG2 3
|
|
+#define PR_BITS_PER_SHORT_LOG2 4
|
|
+#define PR_BITS_PER_INT_LOG2 5
|
|
+#define PR_BITS_PER_INT64_LOG2 5
|
|
+#define PR_BITS_PER_LONG_LOG2 6
|
|
+#define PR_BITS_PER_FLOAT_LOG2 5
|
|
+#define PR_BITS_PER_DOUBLE_LOG2 6
|
|
+
|
|
+#ifdef __ptr64__
|
|
+#define PR_BITS_PER_WORD_LOG2 6
|
|
+#elif defined(__ptr32__)
|
|
+#define PR_BITS_PER_WORD_LOG2 5
|
|
+#endif
|
|
+
|
|
+#define PR_ALIGN_OF_SHORT 2
|
|
+#define PR_ALIGN_OF_INT 4
|
|
+#define PR_ALIGN_OF_LONG 8
|
|
+#define PR_ALIGN_OF_INT64 4
|
|
+#define PR_ALIGN_OF_FLOAT 4
|
|
+#define PR_ALIGN_OF_DOUBLE 8
|
|
+
|
|
+#ifdef __ptr64__
|
|
+#define PR_ALIGN_OF_POINTER 8
|
|
+#define PR_ALIGN_OF_WORD 8
|
|
+#elif defined(__ptr32__)
|
|
+#define PR_ALIGN_OF_POINTER 4
|
|
+#define PR_ALIGN_OF_WORD 4
|
|
+#endif
|
|
+
|
|
+#define PR_BYTES_PER_WORD_LOG2 3
|
|
+#define PR_BYTES_PER_DWORD_LOG2 3
|
|
+#define PR_WORDS_PER_DWORD_LOG2 1
|
|
+
|
|
+#elif defined(__sparc_v8__)
|
|
+
|
|
+#undef IS_LITTLE_ENDIAN
|
|
+#define IS_BIG_ENDIAN 1
|
|
+
|
|
+#define PR_BYTES_PER_BYTE 1
|
|
+#define PR_BYTES_PER_SHORT 2
|
|
+#define PR_BYTES_PER_INT 4
|
|
+#define PR_BYTES_PER_INT64 8
|
|
+#define PR_BYTES_PER_LONG 4
|
|
+#define PR_BYTES_PER_FLOAT 4
|
|
+#define PR_BYTES_PER_DOUBLE 8
|
|
+#define PR_BYTES_PER_WORD 4
|
|
+#define PR_BYTES_PER_DWORD 8
|
|
+
|
|
+#define PR_BITS_PER_BYTE 8
|
|
+#define PR_BITS_PER_SHORT 16
|
|
+#define PR_BITS_PER_INT 32
|
|
+#define PR_BITS_PER_INT64 64
|
|
+#define PR_BITS_PER_LONG 32
|
|
+#define PR_BITS_PER_FLOAT 32
|
|
+#define PR_BITS_PER_DOUBLE 64
|
|
+#define PR_BITS_PER_WORD 32
|
|
+
|
|
+#define PR_BITS_PER_BYTE_LOG2 3
|
|
+#define PR_BITS_PER_SHORT_LOG2 4
|
|
+#define PR_BITS_PER_INT_LOG2 5
|
|
+#define PR_BITS_PER_INT64_LOG2 6
|
|
+#define PR_BITS_PER_LONG_LOG2 5
|
|
+#define PR_BITS_PER_FLOAT_LOG2 5
|
|
+#define PR_BITS_PER_DOUBLE_LOG2 6
|
|
+#define PR_BITS_PER_WORD_LOG2 5
|
|
+
|
|
+#define PR_ALIGN_OF_SHORT 2
|
|
+#define PR_ALIGN_OF_INT 4
|
|
+#define PR_ALIGN_OF_LONG 4
|
|
+#define PR_ALIGN_OF_INT64 8
|
|
+#define PR_ALIGN_OF_FLOAT 4
|
|
+#define PR_ALIGN_OF_DOUBLE 8
|
|
+#define PR_ALIGN_OF_POINTER 4
|
|
+#define PR_ALIGN_OF_WORD 4
|
|
+
|
|
+#define PR_BYTES_PER_WORD_LOG2 2
|
|
+#define PR_BYTES_PER_DWORD_LOG2 3
|
|
+#define PR_WORDS_PER_DWORD_LOG2 1
|
|
+
|
|
+#elif defined(__arch64__)
|
|
+
|
|
+#undef IS_LITTLE_ENDIAN
|
|
+#define IS_BIG_ENDIAN 1
|
|
+#define IS_64
|
|
+
|
|
+#define PR_BYTES_PER_BYTE 1
|
|
+#define PR_BYTES_PER_SHORT 2
|
|
+#define PR_BYTES_PER_INT 4
|
|
+#define PR_BYTES_PER_INT64 8
|
|
+#define PR_BYTES_PER_LONG 8
|
|
+#define PR_BYTES_PER_FLOAT 4
|
|
+#define PR_BYTES_PER_DOUBLE 8
|
|
+#define PR_BYTES_PER_WORD 8
|
|
+#define PR_BYTES_PER_DWORD 8
|
|
+
|
|
+#define PR_BITS_PER_BYTE 8
|
|
+#define PR_BITS_PER_SHORT 16
|
|
+#define PR_BITS_PER_INT 32
|
|
+#define PR_BITS_PER_INT64 64
|
|
+#define PR_BITS_PER_LONG 64
|
|
+#define PR_BITS_PER_FLOAT 32
|
|
+#define PR_BITS_PER_DOUBLE 64
|
|
+#define PR_BITS_PER_WORD 64
|
|
+
|
|
+#define PR_BITS_PER_BYTE_LOG2 3
|
|
+#define PR_BITS_PER_SHORT_LOG2 4
|
|
+#define PR_BITS_PER_INT_LOG2 5
|
|
+#define PR_BITS_PER_INT64_LOG2 6
|
|
+#define PR_BITS_PER_LONG_LOG2 6
|
|
+#define PR_BITS_PER_FLOAT_LOG2 5
|
|
+#define PR_BITS_PER_DOUBLE_LOG2 6
|
|
+#define PR_BITS_PER_WORD_LOG2 6
|
|
+
|
|
+#define PR_ALIGN_OF_SHORT 2
|
|
+#define PR_ALIGN_OF_INT 4
|
|
+#define PR_ALIGN_OF_INT64 8
|
|
+#define PR_ALIGN_OF_LONG 8
|
|
+#define PR_ALIGN_OF_FLOAT 4
|
|
+#define PR_ALIGN_OF_DOUBLE 8
|
|
+#define PR_ALIGN_OF_POINTER 8
|
|
+#define PR_ALIGN_OF_WORD 8
|
|
+
|
|
+#define PR_BYTES_PER_WORD_LOG2 3
|
|
+#define PR_BYTES_PER_DWORD_LOG2 3
|
|
+#define PR_WORDS_PER_DWORD_LOG2 1
|
|
+
|
|
+#elif defined(__sparc_v9__)
|
|
+
|
|
+#undef IS_LITTLE_ENDIAN
|
|
+#define IS_BIG_ENDIAN 1
|
|
+
|
|
+#define PR_BYTES_PER_BYTE 1
|
|
+#define PR_BYTES_PER_SHORT 2
|
|
+#define PR_BYTES_PER_INT 4
|
|
+#define PR_BYTES_PER_INT64 8
|
|
+#define PR_BYTES_PER_LONG 4
|
|
+#define PR_BYTES_PER_FLOAT 4
|
|
+#define PR_BYTES_PER_DOUBLE 8
|
|
+#define PR_BYTES_PER_WORD 4
|
|
+#define PR_BYTES_PER_DWORD 8
|
|
+
|
|
+#define PR_BITS_PER_BYTE 8
|
|
+#define PR_BITS_PER_SHORT 16
|
|
+#define PR_BITS_PER_INT 32
|
|
+#define PR_BITS_PER_INT64 64
|
|
+#define PR_BITS_PER_LONG 32
|
|
+#define PR_BITS_PER_FLOAT 32
|
|
+#define PR_BITS_PER_DOUBLE 64
|
|
+#define PR_BITS_PER_WORD 32
|
|
+
|
|
+#define PR_BITS_PER_BYTE_LOG2 3
|
|
+#define PR_BITS_PER_SHORT_LOG2 4
|
|
+#define PR_BITS_PER_INT_LOG2 5
|
|
+#define PR_BITS_PER_INT64_LOG2 6
|
|
+#define PR_BITS_PER_LONG_LOG2 5
|
|
+#define PR_BITS_PER_FLOAT_LOG2 5
|
|
+#define PR_BITS_PER_DOUBLE_LOG2 6
|
|
+#define PR_BITS_PER_WORD_LOG2 5
|
|
+
|
|
+#define PR_ALIGN_OF_SHORT 2
|
|
+#define PR_ALIGN_OF_INT 4
|
|
+#define PR_ALIGN_OF_LONG 4
|
|
+#define PR_ALIGN_OF_INT64 8
|
|
+#define PR_ALIGN_OF_FLOAT 4
|
|
+#define PR_ALIGN_OF_DOUBLE 8
|
|
+#define PR_ALIGN_OF_POINTER 4
|
|
+#define PR_ALIGN_OF_WORD 4
|
|
+
|
|
+#define PR_BYTES_PER_WORD_LOG2 2
|
|
+#define PR_BYTES_PER_DWORD_LOG2 3
|
|
+#define PR_WORDS_PER_DWORD_LOG2 1
|
|
+
|
|
+/* rasp:: HELCE end of arch block */
|
|
+
|
|
#else
|
|
|
|
#error "Unknown CPU architecture"
|
|
diff --git a/src/include/prep.h b/src/include/prep.h
|
|
index 7e114a0..db28d8c 100644
|
|
--- a/src/include/prep.h
|
|
+++ b/src/include/prep.h
|
|
@@ -217,6 +217,14 @@ namespace platform
|
|
const bool cocoa = false;
|
|
#endif
|
|
|
|
+ #if defined ( linux )
|
|
+ #undef linux
|
|
+ #endif
|
|
+
|
|
+ #if defined ( unix )
|
|
+ #undef unix
|
|
+ #endif
|
|
+
|
|
const bool windows = (id == platform_windows);
|
|
const bool macosx = (id == platform_macosx);
|
|
const bool linux = (id == platform_linux);
|
|
--
|
|
2.16.4
|
|
|