harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r672480 [2/2] - in /harmony/enhanced/classlib/trunk/modules: nio_char/src/main/native/niochar/shared/ nio_char/src/main/native/niochar/shared/additional/ portlib/src/main/native/include/shared/
Date Sat, 28 Jun 2008 08:57:24 GMT
Modified: harmony/enhanced/classlib/trunk/modules/nio_char/src/main/native/niochar/shared/additional/x_MS950_HKSCS.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio_char/src/main/native/niochar/shared/additional/x_MS950_HKSCS.c?rev=672480&r1=672479&r2=672480&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio_char/src/main/native/niochar/shared/additional/x_MS950_HKSCS.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio_char/src/main/native/niochar/shared/additional/x_MS950_HKSCS.c
Sat Jun 28 01:57:22 2008
@@ -16,7 +16,7 @@
  */
 
 #include "x_MS950_HKSCS.h"
-#define jlong2addr(a, x) ((a *)((int)(x)))
+#include "hycomp.h"
 
         static const int decodeIndex[] = {
          0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,

Modified: harmony/enhanced/classlib/trunk/modules/nio_char/src/main/native/niochar/shared/additional/x_MacCyrillic.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio_char/src/main/native/niochar/shared/additional/x_MacCyrillic.c?rev=672480&r1=672479&r2=672480&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio_char/src/main/native/niochar/shared/additional/x_MacCyrillic.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio_char/src/main/native/niochar/shared/additional/x_MacCyrillic.c
Sat Jun 28 01:57:22 2008
@@ -17,7 +17,7 @@
 
 #include "x_MacCyrillic.h"
 
-#define jlong2addr(a, x) ((a *)((int)(x)))
+#include "hycomp.h"
 
 JNIEXPORT void JNICALL Java_org_apache_harmony_niochar_charset_additional_x_1MacCyrillic_00024Encoder_nEncode
   (JNIEnv *env, jobject obj, jlong outAddr, jint absolutePos, jcharArray array, jint arrayOffset,
jintArray result){

Modified: harmony/enhanced/classlib/trunk/modules/nio_char/src/main/native/niochar/shared/additional/x_MacGreek.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio_char/src/main/native/niochar/shared/additional/x_MacGreek.c?rev=672480&r1=672479&r2=672480&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio_char/src/main/native/niochar/shared/additional/x_MacGreek.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio_char/src/main/native/niochar/shared/additional/x_MacGreek.c
Sat Jun 28 01:57:22 2008
@@ -17,7 +17,7 @@
 
 #include "x_MacGreek.h"
 
-#define jlong2addr(a, x) ((a *)((int)(x)))
+#include "hycomp.h"
 
 JNIEXPORT void JNICALL Java_org_apache_harmony_niochar_charset_additional_x_1MacGreek_00024Encoder_nEncode
   (JNIEnv *env, jobject obj, jlong outAddr, jint absolutePos, jcharArray array, jint arrayOffset,
jintArray result){

Modified: harmony/enhanced/classlib/trunk/modules/nio_char/src/main/native/niochar/shared/additional/x_MacTurkish.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio_char/src/main/native/niochar/shared/additional/x_MacTurkish.c?rev=672480&r1=672479&r2=672480&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio_char/src/main/native/niochar/shared/additional/x_MacTurkish.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio_char/src/main/native/niochar/shared/additional/x_MacTurkish.c
Sat Jun 28 01:57:22 2008
@@ -17,7 +17,7 @@
 
 #include "x_MacTurkish.h"
 
-#define jlong2addr(a, x) ((a *)((int)(x)))
+#include "hycomp.h"
 
 JNIEXPORT void JNICALL Java_org_apache_harmony_niochar_charset_additional_x_1MacTurkish_00024Encoder_nEncode
   (JNIEnv *env, jobject obj, jlong outAddr, jint absolutePos, jcharArray array, jint arrayOffset,
jintArray result){

Modified: harmony/enhanced/classlib/trunk/modules/nio_char/src/main/native/niochar/shared/additional/x_windows_949.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio_char/src/main/native/niochar/shared/additional/x_windows_949.c?rev=672480&r1=672479&r2=672480&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio_char/src/main/native/niochar/shared/additional/x_windows_949.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio_char/src/main/native/niochar/shared/additional/x_windows_949.c
Sat Jun 28 01:57:22 2008
@@ -16,7 +16,7 @@
  */
 
 #include "x_windows_949.h"
-#define jlong2addr(a, x) ((a *)((int)(x)))
+#include "hycomp.h"
 
         static const int decodeIndex[] = {
          0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hycomp.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hycomp.h?rev=672480&r1=672479&r2=672480&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hycomp.h
(original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hycomp.h
Sat Jun 28 01:57:22 2008
@@ -513,4 +513,10 @@
 #define HY_SORT(base, nmemb, size, compare) qsort((base), (nmemb), (size), (compare))
 #endif
 
+/**
+ * Helper macros for storing/restoring pointers to jlong.
+ */
+#define jlong2addr(a, x) ((a *)((IDATA)(x)))
+#define addr2jlong(x) ((jlong)((IDATA)(x)))
+
 #endif /* hycomp_h */



Mime
View raw message