harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r350181 [193/198] - in /incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core: ./ depends/ depends/files/ depends/jars/ depends/libs/ depends/libs/linux.IA32/ depends/libs/win.IA32/ depends/oss/ depends/oss/linux.IA32/ depends/oss/win....
Date Thu, 01 Dec 2005 06:04:00 GMT
Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/port/ut_hyprt.h
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/port/ut_hyprt.h?rev=350181&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/port/ut_hyprt.h (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/port/ut_hyprt.h Wed Nov 30 21:29:27 2005
@@ -0,0 +1,1174 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#if !defined(_UTE_MODULE_HEADER_)
+#define _UTE_MODULE_HEADER_
+
+#include "ute_module.h"
+
+#if !defined(UT_TRACE_OVERHEAD)
+#define UT_TRACE_OVERHEAD 0
+#endif
+
+#if !defined(UT_THREAD)
+#define UT_THREAD(thr) (void *)thr
+#endif /* UT_THREAD */
+
+#if defined(__cplusplus)
+extern "C"
+{
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_PortInitStages_Event1() do { \
+	if ((unsigned char) hyprt_UtActive[0] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((0 << 8) | hyprt_UtActive[0]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_PortInitStages_Event1()	/* tracepoint name: hyprt.0 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_file_open_Entry(P1, P2, P3) do { \
+	if ((unsigned char) hyprt_UtActive[1] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((1 << 8) | hyprt_UtActive[1]), "\377\4\4", P1, P2, P3);} \
+	} while(0)
+#else
+#define Trc_PRT_file_open_Entry(P1, P2, P3)	/* tracepoint name: hyprt.1 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_file_open_Exit(P1) do { \
+	if ((unsigned char) hyprt_UtActive[2] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((2 << 8) | hyprt_UtActive[2]), "\4", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_file_open_Exit(P1)	/* tracepoint name: hyprt.2 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_file_open_Exit1(P1) do { \
+	if ((unsigned char) hyprt_UtActive[3] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((3 << 8) | hyprt_UtActive[3]), "\4", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_file_open_Exit1(P1)	/* tracepoint name: hyprt.3 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_file_open_Exit2(P1, P2) do { \
+	if ((unsigned char) hyprt_UtActive[4] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((4 << 8) | hyprt_UtActive[4]), "\4\4", P1, P2);} \
+	} while(0)
+#else
+#define Trc_PRT_file_open_Exit2(P1, P2)	/* tracepoint name: hyprt.4 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_file_open_Exit3(P1, P2) do { \
+	if ((unsigned char) hyprt_UtActive[5] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((5 << 8) | hyprt_UtActive[5]), "\4\4", P1, P2);} \
+	} while(0)
+#else
+#define Trc_PRT_file_open_Exit3(P1, P2)	/* tracepoint name: hyprt.5 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_file_open_Exit4() do { \
+	if ((unsigned char) hyprt_UtActive[6] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((6 << 8) | hyprt_UtActive[6]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_file_open_Exit4()	/* tracepoint name: hyprt.6 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_createFile_Entry() do { \
+	if ((unsigned char) hyprt_UtActive[7] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((7 << 8) | hyprt_UtActive[7]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_createFile_Entry()	/* tracepoint name: hyprt.7 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_createFile_Exit1() do { \
+	if ((unsigned char) hyprt_UtActive[8] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((8 << 8) | hyprt_UtActive[8]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_createFile_Exit1()	/* tracepoint name: hyprt.8 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_createFile_Exit2(P1) do { \
+	if ((unsigned char) hyprt_UtActive[9] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((9 << 8) | hyprt_UtActive[9]), "\377", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_createFile_Exit2(P1)	/* tracepoint name: hyprt.9 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_createFile_Exit() do { \
+	if ((unsigned char) hyprt_UtActive[10] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((10 << 8) | hyprt_UtActive[10]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_createFile_Exit()	/* tracepoint name: hyprt.10 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_createSharedMemory_Entry() do { \
+	if ((unsigned char) hyprt_UtActive[11] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((11 << 8) | hyprt_UtActive[11]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_createSharedMemory_Entry()	/* tracepoint name: hyprt.11 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_createSharedMemory_ftok(P1, P2) do { \
+	if ((unsigned char) hyprt_UtActive[12] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((12 << 8) | hyprt_UtActive[12]), "\377\4", P1, P2);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_createSharedMemory_ftok(P1, P2)	/* tracepoint name: hyprt.12 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_createSharedMemory_Exit1() do { \
+	if ((unsigned char) hyprt_UtActive[13] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((13 << 8) | hyprt_UtActive[13]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_createSharedMemory_Exit1()	/* tracepoint name: hyprt.13 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_createSharedMemory_Exit2() do { \
+	if ((unsigned char) hyprt_UtActive[14] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((14 << 8) | hyprt_UtActive[14]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_createSharedMemory_Exit2()	/* tracepoint name: hyprt.14 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_createSharedMemory_Exit3() do { \
+	if ((unsigned char) hyprt_UtActive[15] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((15 << 8) | hyprt_UtActive[15]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_createSharedMemory_Exit3()	/* tracepoint name: hyprt.15 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_createSharedMemory_Exit4() do { \
+	if ((unsigned char) hyprt_UtActive[16] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((16 << 8) | hyprt_UtActive[16]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_createSharedMemory_Exit4()	/* tracepoint name: hyprt.16 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_createSharedMemory_shmget(P1, P2, P3) do { \
+	if ((unsigned char) hyprt_UtActive[17] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((17 << 8) | hyprt_UtActive[17]), "\4\4\4", P1, P2, P3);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_createSharedMemory_shmget(P1, P2, P3)	/* tracepoint name: hyprt.17 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_createSharedMemory_shmget_Event1(P1) do { \
+	if ((unsigned char) hyprt_UtActive[18] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((18 << 8) | hyprt_UtActive[18]), "\4", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_createSharedMemory_shmget_Event1(P1)	/* tracepoint name: hyprt.18 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_createSharedMemory_Exit5(P1) do { \
+	if ((unsigned char) hyprt_UtActive[19] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((19 << 8) | hyprt_UtActive[19]), "\4", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_createSharedMemory_Exit5(P1)	/* tracepoint name: hyprt.19 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_createSharedMemory_Exit6(P1, P2) do { \
+	if ((unsigned char) hyprt_UtActive[20] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((20 << 8) | hyprt_UtActive[20]), "\4\4", P1, P2);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_createSharedMemory_Exit6(P1, P2)	/* tracepoint name: hyprt.20 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_createSharedMemory_Event1(P1) do { \
+	if ((unsigned char) hyprt_UtActive[21] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((21 << 8) | hyprt_UtActive[21]), "\4", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_createSharedMemory_Event1(P1)	/* tracepoint name: hyprt.21 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_createSharedMemory_Exit7() do { \
+	if ((unsigned char) hyprt_UtActive[22] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((22 << 8) | hyprt_UtActive[22]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_createSharedMemory_Exit7()	/* tracepoint name: hyprt.22 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_createSharedMemory_Exit8() do { \
+	if ((unsigned char) hyprt_UtActive[23] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((23 << 8) | hyprt_UtActive[23]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_createSharedMemory_Exit8()	/* tracepoint name: hyprt.23 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_createSharedMemory_Exit() do { \
+	if ((unsigned char) hyprt_UtActive[24] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((24 << 8) | hyprt_UtActive[24]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_createSharedMemory_Exit()	/* tracepoint name: hyprt.24 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_attach_Entry(P1) do { \
+	if ((unsigned char) hyprt_UtActive[25] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((25 << 8) | hyprt_UtActive[25]), "\6", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_attach_Entry(P1)	/* tracepoint name: hyprt.25 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_attach_Exit(P1) do { \
+	if ((unsigned char) hyprt_UtActive[26] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((26 << 8) | hyprt_UtActive[26]), "\6", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_attach_Exit(P1)	/* tracepoint name: hyprt.26 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_attach_Exit1() do { \
+	if ((unsigned char) hyprt_UtActive[27] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((27 << 8) | hyprt_UtActive[27]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_attach_Exit1()	/* tracepoint name: hyprt.27 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_attach_Exit2(P1) do { \
+	if ((unsigned char) hyprt_UtActive[28] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((28 << 8) | hyprt_UtActive[28]), "\4", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_attach_Exit2(P1)	/* tracepoint name: hyprt.28 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_attach_Debug1(P1) do { \
+	if ((unsigned char) hyprt_UtActive[29] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((29 << 8) | hyprt_UtActive[29]), "\4", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_attach_Debug1(P1)	/* tracepoint name: hyprt.29 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_close_Entry(P1) do { \
+	if ((unsigned char) hyprt_UtActive[30] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((30 << 8) | hyprt_UtActive[30]), "\6", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_close_Entry(P1)	/* tracepoint name: hyprt.30 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_close_Exit() do { \
+	if ((unsigned char) hyprt_UtActive[31] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((31 << 8) | hyprt_UtActive[31]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_close_Exit()	/* tracepoint name: hyprt.31 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_destroy_Entry(P1) do { \
+	if ((unsigned char) hyprt_UtActive[32] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((32 << 8) | hyprt_UtActive[32]), "\6", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_destroy_Entry(P1)	/* tracepoint name: hyprt.32 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_destroy_Exit() do { \
+	if ((unsigned char) hyprt_UtActive[33] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((33 << 8) | hyprt_UtActive[33]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_destroy_Exit()	/* tracepoint name: hyprt.33 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_destroy_Exit1() do { \
+	if ((unsigned char) hyprt_UtActive[34] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((34 << 8) | hyprt_UtActive[34]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_destroy_Exit1()	/* tracepoint name: hyprt.34 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_destroy_Debug1(P1, P2, P3) do { \
+	if ((unsigned char) hyprt_UtActive[35] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((35 << 8) | hyprt_UtActive[35]), "\377\4\4", P1, P2, P3);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_destroy_Debug1(P1, P2, P3)	/* tracepoint name: hyprt.35 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_detach_Entry(P1) do { \
+	if ((unsigned char) hyprt_UtActive[36] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((36 << 8) | hyprt_UtActive[36]), "\6", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_detach_Entry(P1)	/* tracepoint name: hyprt.36 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_detach_Exit() do { \
+	if ((unsigned char) hyprt_UtActive[37] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((37 << 8) | hyprt_UtActive[37]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_detach_Exit()	/* tracepoint name: hyprt.37 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_detach_Exit1() do { \
+	if ((unsigned char) hyprt_UtActive[38] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((38 << 8) | hyprt_UtActive[38]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_detach_Exit1()	/* tracepoint name: hyprt.38 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_findclose_Entry(P1) do { \
+	if ((unsigned char) hyprt_UtActive[39] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((39 << 8) | hyprt_UtActive[39]), "\6", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_findclose_Entry(P1)	/* tracepoint name: hyprt.39 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_findclose_Exit() do { \
+	if ((unsigned char) hyprt_UtActive[40] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((40 << 8) | hyprt_UtActive[40]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_findclose_Exit()	/* tracepoint name: hyprt.40 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_findfirst_Entry() do { \
+	if ((unsigned char) hyprt_UtActive[41] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((41 << 8) | hyprt_UtActive[41]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_findfirst_Entry()	/* tracepoint name: hyprt.41 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_findfirst_Exit1() do { \
+	if ((unsigned char) hyprt_UtActive[42] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((42 << 8) | hyprt_UtActive[42]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_findfirst_Exit1()	/* tracepoint name: hyprt.42 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_findfirst_Exit2() do { \
+	if ((unsigned char) hyprt_UtActive[43] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((43 << 8) | hyprt_UtActive[43]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_findfirst_Exit2()	/* tracepoint name: hyprt.43 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_findfirst_Exit() do { \
+	if ((unsigned char) hyprt_UtActive[44] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((44 << 8) | hyprt_UtActive[44]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_findfirst_Exit()	/* tracepoint name: hyprt.44 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_findnext_Entry(P1) do { \
+	if ((unsigned char) hyprt_UtActive[45] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((45 << 8) | hyprt_UtActive[45]), "\6", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_findnext_Entry(P1)	/* tracepoint name: hyprt.45 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_findnext_Exit1() do { \
+	if ((unsigned char) hyprt_UtActive[46] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((46 << 8) | hyprt_UtActive[46]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_findnext_Exit1()	/* tracepoint name: hyprt.46 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_findnext_Exit2() do { \
+	if ((unsigned char) hyprt_UtActive[47] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((47 << 8) | hyprt_UtActive[47]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_findnext_Exit2()	/* tracepoint name: hyprt.47 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_findnext_Exit() do { \
+	if ((unsigned char) hyprt_UtActive[48] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((48 << 8) | hyprt_UtActive[48]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_findnext_Exit()	/* tracepoint name: hyprt.48 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_open_Entry(P1, P2, P3) do { \
+	if ((unsigned char) hyprt_UtActive[49] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((49 << 8) | hyprt_UtActive[49]), "\377\4\4", P1, P2, P3);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_open_Entry(P1, P2, P3)	/* tracepoint name: hyprt.49 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_open_Event1(P1) do { \
+	if ((unsigned char) hyprt_UtActive[50] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((50 << 8) | hyprt_UtActive[50]), "\377", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_open_Event1(P1)	/* tracepoint name: hyprt.50 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_open_Event2(P1) do { \
+	if ((unsigned char) hyprt_UtActive[51] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((51 << 8) | hyprt_UtActive[51]), "\377", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_open_Event2(P1)	/* tracepoint name: hyprt.51 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_open_Event3(P1) do { \
+	if ((unsigned char) hyprt_UtActive[52] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((52 << 8) | hyprt_UtActive[52]), "\4", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_open_Event3(P1)	/* tracepoint name: hyprt.52 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_open_Exit1() do { \
+	if ((unsigned char) hyprt_UtActive[53] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((53 << 8) | hyprt_UtActive[53]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_open_Exit1()	/* tracepoint name: hyprt.53 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_open_Exit2() do { \
+	if ((unsigned char) hyprt_UtActive[54] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((54 << 8) | hyprt_UtActive[54]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_open_Exit2()	/* tracepoint name: hyprt.54 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_open_Exit(P1, P2) do { \
+	if ((unsigned char) hyprt_UtActive[55] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((55 << 8) | hyprt_UtActive[55]), "\4\6", P1, P2);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_open_Exit(P1, P2)	/* tracepoint name: hyprt.55 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_stat_Entry(P1) do { \
+	if ((unsigned char) hyprt_UtActive[56] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((56 << 8) | hyprt_UtActive[56]), "\377", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_stat_Entry(P1)	/* tracepoint name: hyprt.56 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_stat_Exit1(P1) do { \
+	if ((unsigned char) hyprt_UtActive[57] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((57 << 8) | hyprt_UtActive[57]), "\377", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_stat_Exit1(P1)	/* tracepoint name: hyprt.57 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_stat_Exit2(P1) do { \
+	if ((unsigned char) hyprt_UtActive[58] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((58 << 8) | hyprt_UtActive[58]), "\377", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_stat_Exit2(P1)	/* tracepoint name: hyprt.58 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_stat_Exit3(P1) do { \
+	if ((unsigned char) hyprt_UtActive[59] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((59 << 8) | hyprt_UtActive[59]), "\4", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_stat_Exit3(P1)	/* tracepoint name: hyprt.59 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_stat_Exit() do { \
+	if ((unsigned char) hyprt_UtActive[60] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((60 << 8) | hyprt_UtActive[60]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_stat_Exit()	/* tracepoint name: hyprt.60 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_open_Entry(P1, P2, P3) do { \
+	if ((unsigned char) hyprt_UtActive[61] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((61 << 8) | hyprt_UtActive[61]), "\377\4\4", P1, P2, P3);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_open_Entry(P1, P2, P3)	/* tracepoint name: hyprt.61 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_open_Debug1(P1) do { \
+	if ((unsigned char) hyprt_UtActive[62] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((62 << 8) | hyprt_UtActive[62]), "\377", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_open_Debug1(P1)	/* tracepoint name: hyprt.62 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_open_Event1(P1) do { \
+	if ((unsigned char) hyprt_UtActive[63] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((63 << 8) | hyprt_UtActive[63]), "\377", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_open_Event1(P1)	/* tracepoint name: hyprt.63 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_open_Event2(P1) do { \
+	if ((unsigned char) hyprt_UtActive[64] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((64 << 8) | hyprt_UtActive[64]), "\377", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_open_Event2(P1)	/* tracepoint name: hyprt.64 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_open_Event3(P1) do { \
+	if ((unsigned char) hyprt_UtActive[65] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((65 << 8) | hyprt_UtActive[65]), "\4", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_open_Event3(P1)	/* tracepoint name: hyprt.65 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_open_Exit1() do { \
+	if ((unsigned char) hyprt_UtActive[66] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((66 << 8) | hyprt_UtActive[66]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_open_Exit1()	/* tracepoint name: hyprt.66 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_open_Exit2() do { \
+	if ((unsigned char) hyprt_UtActive[67] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((67 << 8) | hyprt_UtActive[67]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_open_Exit2()	/* tracepoint name: hyprt.67 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_open_Exit(P1, P2) do { \
+	if ((unsigned char) hyprt_UtActive[68] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((68 << 8) | hyprt_UtActive[68]), "\4\6", P1, P2);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_open_Exit(P1, P2)	/* tracepoint name: hyprt.68 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_close_Entry(P1) do { \
+	if ((unsigned char) hyprt_UtActive[69] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((69 << 8) | hyprt_UtActive[69]), "\6", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_close_Entry(P1)	/* tracepoint name: hyprt.69 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_close_Exit() do { \
+	if ((unsigned char) hyprt_UtActive[70] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((70 << 8) | hyprt_UtActive[70]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_close_Exit()	/* tracepoint name: hyprt.70 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_destroy_Entry(P1) do { \
+	if ((unsigned char) hyprt_UtActive[71] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((71 << 8) | hyprt_UtActive[71]), "\6", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_destroy_Entry(P1)	/* tracepoint name: hyprt.71 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_destroy_Exit() do { \
+	if ((unsigned char) hyprt_UtActive[72] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((72 << 8) | hyprt_UtActive[72]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_destroy_Exit()	/* tracepoint name: hyprt.72 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_destroy_Exit1() do { \
+	if ((unsigned char) hyprt_UtActive[73] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((73 << 8) | hyprt_UtActive[73]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_destroy_Exit1()	/* tracepoint name: hyprt.73 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_destroy_Debug1(P1, P2, P3) do { \
+	if ((unsigned char) hyprt_UtActive[74] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((74 << 8) | hyprt_UtActive[74]), "\377\4\4", P1, P2, P3);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_destroy_Debug1(P1, P2, P3)	/* tracepoint name: hyprt.74 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_getVal_Entry(P1, P2) do { \
+	if ((unsigned char) hyprt_UtActive[75] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((75 << 8) | hyprt_UtActive[75]), "\6\4", P1, P2);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_getVal_Entry(P1, P2)	/* tracepoint name: hyprt.75 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_getVal_Exit1() do { \
+	if ((unsigned char) hyprt_UtActive[76] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((76 << 8) | hyprt_UtActive[76]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_getVal_Exit1()	/* tracepoint name: hyprt.76 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_getVal_Exit2() do { \
+	if ((unsigned char) hyprt_UtActive[77] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((77 << 8) | hyprt_UtActive[77]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_getVal_Exit2()	/* tracepoint name: hyprt.77 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_getVal_Exit3(P1, P2) do { \
+	if ((unsigned char) hyprt_UtActive[78] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((78 << 8) | hyprt_UtActive[78]), "\4\4", P1, P2);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_getVal_Exit3(P1, P2)	/* tracepoint name: hyprt.78 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_getVal_Exit(P1) do { \
+	if ((unsigned char) hyprt_UtActive[79] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((79 << 8) | hyprt_UtActive[79]), "\4", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_getVal_Exit(P1)	/* tracepoint name: hyprt.79 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_post_Entry(P1, P2, P3) do { \
+	if ((unsigned char) hyprt_UtActive[80] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((80 << 8) | hyprt_UtActive[80]), "\6\4\4", P1, P2, P3);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_post_Entry(P1, P2, P3)	/* tracepoint name: hyprt.80 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_post_Exit1() do { \
+	if ((unsigned char) hyprt_UtActive[81] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((81 << 8) | hyprt_UtActive[81]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_post_Exit1()	/* tracepoint name: hyprt.81 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_post_Exit2() do { \
+	if ((unsigned char) hyprt_UtActive[82] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((82 << 8) | hyprt_UtActive[82]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_post_Exit2()	/* tracepoint name: hyprt.82 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_post_Exit3(P1, P2) do { \
+	if ((unsigned char) hyprt_UtActive[83] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((83 << 8) | hyprt_UtActive[83]), "\4\4", P1, P2);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_post_Exit3(P1, P2)	/* tracepoint name: hyprt.83 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_post_Exit(P1) do { \
+	if ((unsigned char) hyprt_UtActive[84] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((84 << 8) | hyprt_UtActive[84]), "\4", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_post_Exit(P1)	/* tracepoint name: hyprt.84 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_setVal_Entry(P1, P2, P3) do { \
+	if ((unsigned char) hyprt_UtActive[85] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((85 << 8) | hyprt_UtActive[85]), "\6\4\4", P1, P2, P3);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_setVal_Entry(P1, P2, P3)	/* tracepoint name: hyprt.85 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_setVal_Exit1() do { \
+	if ((unsigned char) hyprt_UtActive[86] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((86 << 8) | hyprt_UtActive[86]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_setVal_Exit1()	/* tracepoint name: hyprt.86 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_setVal_Exit2() do { \
+	if ((unsigned char) hyprt_UtActive[87] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((87 << 8) | hyprt_UtActive[87]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_setVal_Exit2()	/* tracepoint name: hyprt.87 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_setVal_Exit3(P1, P2) do { \
+	if ((unsigned char) hyprt_UtActive[88] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((88 << 8) | hyprt_UtActive[88]), "\4\4", P1, P2);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_setVal_Exit3(P1, P2)	/* tracepoint name: hyprt.88 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_setVal_Exit(P1) do { \
+	if ((unsigned char) hyprt_UtActive[89] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((89 << 8) | hyprt_UtActive[89]), "\4", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_setVal_Exit(P1)	/* tracepoint name: hyprt.89 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_wait_Entry(P1, P2, P3) do { \
+	if ((unsigned char) hyprt_UtActive[90] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((90 << 8) | hyprt_UtActive[90]), "\6\4\4", P1, P2, P3);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_wait_Entry(P1, P2, P3)	/* tracepoint name: hyprt.90 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_wait_Exit1() do { \
+	if ((unsigned char) hyprt_UtActive[91] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((91 << 8) | hyprt_UtActive[91]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_wait_Exit1()	/* tracepoint name: hyprt.91 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_wait_Exit2() do { \
+	if ((unsigned char) hyprt_UtActive[92] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((92 << 8) | hyprt_UtActive[92]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_wait_Exit2()	/* tracepoint name: hyprt.92 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_wait_Exit3(P1, P2) do { \
+	if ((unsigned char) hyprt_UtActive[93] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((93 << 8) | hyprt_UtActive[93]), "\4\4", P1, P2);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_wait_Exit3(P1, P2)	/* tracepoint name: hyprt.93 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_wait_Exit(P1) do { \
+	if ((unsigned char) hyprt_UtActive[94] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((94 << 8) | hyprt_UtActive[94]), "\4", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_wait_Exit(P1)	/* tracepoint name: hyprt.94 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_ensureDirectory_path(P1) do { \
+	if ((unsigned char) hyprt_UtActive[95] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((95 << 8) | hyprt_UtActive[95]), "\377", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_ensureDirectory_path(P1)	/* tracepoint name: hyprt.95 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_mem_hymem_allocate_memory_Entry(P1) do { \
+	if ((unsigned char) hyprt_UtActive[96] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((96 << 8) | hyprt_UtActive[96]), "\4", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_mem_hymem_allocate_memory_Entry(P1)	/* tracepoint name: hyprt.96 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_mem_hymem_allocate_memory_Exit(P1) do { \
+	if ((unsigned char) hyprt_UtActive[97] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((97 << 8) | hyprt_UtActive[97]), "\6", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_mem_hymem_allocate_memory_Exit(P1)	/* tracepoint name: hyprt.97 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_mem_hymem_free_memory_Entry(P1) do { \
+	if ((unsigned char) hyprt_UtActive[98] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((98 << 8) | hyprt_UtActive[98]), "\6", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_mem_hymem_free_memory_Entry(P1)	/* tracepoint name: hyprt.98 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_mem_hymem_free_memory_Exit() do { \
+	if ((unsigned char) hyprt_UtActive[99] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((99 << 8) | hyprt_UtActive[99]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_mem_hymem_free_memory_Exit()	/* tracepoint name: hyprt.99 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_mem_hymem_allocate_memory_callSite_Entry(P1, P2) do { \
+	if ((unsigned char) hyprt_UtActive[100] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((100 << 8) | hyprt_UtActive[100]), "\4\377", P1, P2);} \
+	} while(0)
+#else
+#define Trc_PRT_mem_hymem_allocate_memory_callSite_Entry(P1, P2)	/* tracepoint name: hyprt.100 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_mem_hymem_allocate_memory_callSite_Exit(P1) do { \
+	if ((unsigned char) hyprt_UtActive[101] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((101 << 8) | hyprt_UtActive[101]), "\6", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_mem_hymem_allocate_memory_callSite_Exit(P1)	/* tracepoint name: hyprt.101 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_mem_hymem_reallocate_memory_Entry(P1, P2) do { \
+	if ((unsigned char) hyprt_UtActive[102] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((102 << 8) | hyprt_UtActive[102]), "\6\4", P1, P2);} \
+	} while(0)
+#else
+#define Trc_PRT_mem_hymem_reallocate_memory_Entry(P1, P2)	/* tracepoint name: hyprt.102 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_mem_hymem_reallocate_memory_Exit(P1) do { \
+	if ((unsigned char) hyprt_UtActive[103] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((103 << 8) | hyprt_UtActive[103]), "\6", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_mem_hymem_reallocate_memory_Exit(P1)	/* tracepoint name: hyprt.103 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_vmem_hyvmem_reserve_memory_Entry(P1, P2) do { \
+	if ((unsigned char) hyprt_UtActive[104] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((104 << 8) | hyprt_UtActive[104]), "\6\4", P1, P2);} \
+	} while(0)
+#else
+#define Trc_PRT_vmem_hyvmem_reserve_memory_Entry(P1, P2)	/* tracepoint name: hyprt.104 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_vmem_hyvmem_reserve_memory_Exit1() do { \
+	if ((unsigned char) hyprt_UtActive[105] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((105 << 8) | hyprt_UtActive[105]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_vmem_hyvmem_reserve_memory_Exit1()	/* tracepoint name: hyprt.105 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_vmem_hyvmem_reserve_memory_Exit2(P1) do { \
+	if ((unsigned char) hyprt_UtActive[106] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((106 << 8) | hyprt_UtActive[106]), "\6", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_vmem_hyvmem_reserve_memory_Exit2(P1)	/* tracepoint name: hyprt.106 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_vmem_hyvmem_reserve_memory_Exit3(P1) do { \
+	if ((unsigned char) hyprt_UtActive[107] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((107 << 8) | hyprt_UtActive[107]), "\4", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_vmem_hyvmem_reserve_memory_Exit3(P1)	/* tracepoint name: hyprt.107 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_vmem_hyvmem_reserve_memory_Exit4() do { \
+	if ((unsigned char) hyprt_UtActive[108] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((108 << 8) | hyprt_UtActive[108]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_vmem_hyvmem_reserve_memory_Exit4()	/* tracepoint name: hyprt.108 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_vmem_hyvmem_reserve_memory_Exit(P1) do { \
+	if ((unsigned char) hyprt_UtActive[109] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((109 << 8) | hyprt_UtActive[109]), "\6", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_vmem_hyvmem_reserve_memory_Exit(P1)	/* tracepoint name: hyprt.109 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_vmem_hyvmem_free_memory_Entry(P1, P2) do { \
+	if ((unsigned char) hyprt_UtActive[110] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((110 << 8) | hyprt_UtActive[110]), "\6\4", P1, P2);} \
+	} while(0)
+#else
+#define Trc_PRT_vmem_hyvmem_free_memory_Entry(P1, P2)	/* tracepoint name: hyprt.110 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_vmem_hyvmem_free_memory_Exit(P1) do { \
+	if ((unsigned char) hyprt_UtActive[111] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((111 << 8) | hyprt_UtActive[111]), "\4", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_vmem_hyvmem_free_memory_Exit(P1)	/* tracepoint name: hyprt.111 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_vmem_hyvmem_commit_memory_Entry(P1, P2) do { \
+	if ((unsigned char) hyprt_UtActive[112] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((112 << 8) | hyprt_UtActive[112]), "\6\4", P1, P2);} \
+	} while(0)
+#else
+#define Trc_PRT_vmem_hyvmem_commit_memory_Entry(P1, P2)	/* tracepoint name: hyprt.112 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_vmem_hyvmem_commit_memory_Exit(P1) do { \
+	if ((unsigned char) hyprt_UtActive[113] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((113 << 8) | hyprt_UtActive[113]), "\6", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_vmem_hyvmem_commit_memory_Exit(P1)	/* tracepoint name: hyprt.113 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_vmem_hyvmem_decommit_memory_Entry(P1, P2) do { \
+	if ((unsigned char) hyprt_UtActive[114] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((114 << 8) | hyprt_UtActive[114]), "\6\4", P1, P2);} \
+	} while(0)
+#else
+#define Trc_PRT_vmem_hyvmem_decommit_memory_Entry(P1, P2)	/* tracepoint name: hyprt.114 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_vmem_hyvmem_decommit_memory_Exit(P1) do { \
+	if ((unsigned char) hyprt_UtActive[115] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((115 << 8) | hyprt_UtActive[115]), "\4", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_vmem_hyvmem_decommit_memory_Exit(P1)	/* tracepoint name: hyprt.115 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shared_ensureDirectory_Entry(P1) do { \
+	if ((unsigned char) hyprt_UtActive[116] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((116 << 8) | hyprt_UtActive[116]), "\377", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shared_ensureDirectory_Entry(P1)	/* tracepoint name: hyprt.116 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shared_changeDirectoryPermission_Event1(P1) do { \
+	if ((unsigned char) hyprt_UtActive[117] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((117 << 8) | hyprt_UtActive[117]), "\4", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shared_changeDirectoryPermission_Event1(P1)	/* tracepoint name: hyprt.117 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shared_ensureDirectory_Event1() do { \
+	if ((unsigned char) hyprt_UtActive[118] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((118 << 8) | hyprt_UtActive[118]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shared_ensureDirectory_Event1()	/* tracepoint name: hyprt.118 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shared_ensureDirectory_Event2(P1) do { \
+	if ((unsigned char) hyprt_UtActive[119] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((119 << 8) | hyprt_UtActive[119]), "\4", P1);} \
+	} while(0)
+#else
+#define Trc_PRT_shared_ensureDirectory_Event2(P1)	/* tracepoint name: hyprt.119 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shmem_hyshmem_open_Exit3() do { \
+	if ((unsigned char) hyprt_UtActive[120] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((120 << 8) | hyprt_UtActive[120]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shmem_hyshmem_open_Exit3()	/* tracepoint name: hyprt.120 */
+#endif
+
+#if UT_TRACE_OVERHEAD>=1
+#define Trc_PRT_shsem_hyshsem_open_Exit3() do { \
+	if ((unsigned char) hyprt_UtActive[121] != 0){ \
+		hyprt_UtModuleInfo.intf->Trace((void *)NULL, &hyprt_UtModuleInfo, ((121 << 8) | hyprt_UtActive[121]), NULL);} \
+	} while(0)
+#else
+#define Trc_PRT_shsem_hyshsem_open_Exit3()	/* tracepoint name: hyprt.121 */
+#endif
+
+#if defined(_UTE_STATIC_)
+  unsigned char hyprt_UtActive[122] = {
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+    0, 0, 0, 0, 0,
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+    0, 0, 0, 0, 0,
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+    0, 0, 0, 0, 0,
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+    0, 0, 0, 0, 0,
+    0, 0
+  };
+  unsigned char hyprt_UtLevels[122] = {
+    1, 4, 4, 1, 1, 1, 1, 1, 1, 1, 4, 1, 4, 1, 1, 1, 1, 4, 4, 1, 1, 4, 1, 1, 4,
+    4, 4, 1, 1, 5,
+    4, 4, 4, 4, 4, 4, 4, 4, 1, 4, 4, 4, 1, 4, 4, 4, 1, 4, 4, 4, 4, 4, 4, 1, 1,
+    1, 4, 1, 1, 1,
+    4, 4, 4, 4, 4, 4, 1, 1, 1, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1, 1, 4, 1, 1, 1, 1,
+    4, 1, 1, 1, 1,
+    4, 1, 1, 1, 1, 4, 10, 10, 10, 10, 8, 8, 4, 4, 4, 2, 2, 2, 2, 4, 4, 4, 4,
+    4, 4, 4, 4, 1, 1, 1,
+    1, 1
+  };
+  UtModuleInfo hyprt_UtModuleInfo =
+    { "hyprt", 5, NULL, NULL, NULL };
+#else				/* !_UTE_STATIC_ */
+  extern UtModuleInfo hyprt_UtModuleInfo;
+  extern unsigned char hyprt_UtActive[122];
+#endif				/* !_UTE_STATIC_ */
+
+#if !defined(UT_MODULE_INFO)
+#define UT_MODULE_INFO hyprt_UtModuleInfo
+#endif				/* UT_MODULE_INFO */
+
+#if defined(__cplusplus)
+}				/* extern "C" */
+#endif
+
+#endif				/* !_UTE_MODULE_HEADER_ */
+
+/*
+ * End of file
+ */

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/port/ut_hyprt.inc
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/port/ut_hyprt.inc?rev=350181&view=auto
==============================================================================
    (empty)

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/sig/hysig.def
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/sig/hysig.def?rev=350181&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/sig/hysig.def (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/sig/hysig.def Wed Nov 30 21:29:27 2005
@@ -0,0 +1,11 @@
+LIBRARY	HYSIG
+
+SECTIONS
+	.data	READ WRITE
+	.text	EXECUTE READ
+
+EXPORTS
+	jsig_handler
+	jsig_primary_signal
+	signal
+

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/sig/hysig.rc
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/sig/hysig.rc?rev=350181&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/sig/hysig.rc (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/sig/hysig.rc Wed Nov 30 21:29:27 2005
@@ -0,0 +1,47 @@
+;
+; Copyright 2003, 2005 The Apache Software Foundation or its licensors, as applicable
+; 
+; Licensed under the Apache License, Version 2.0 (the "License");
+; you may not use this file except in compliance with the License.
+; You may obtain a copy of the License at
+; 
+;     http://www.apache.org/licenses/LICENSE-2.0
+; 
+; Unless required by applicable law or agreed to in writing, software
+; distributed under the License is distributed on an "AS IS" BASIS,
+; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+; See the License for the specific language governing permissions and
+; limitations under the License.
+;
+
+#include <windows.h>
+#include <winver.h>
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION 0,1,0,0
+ PRODUCTVERSION 0,1,0,0
+ FILEFLAGSMASK 0x3fL
+ FILEFLAGS 0x0L
+ FILEOS VOS_NT_WINDOWS32
+ FILETYPE VFT_DLL
+ FILESUBTYPE 0x0L
+BEGIN
+	BLOCK "StringFileInfo"
+	BEGIN
+		BLOCK "040904b0"
+		BEGIN
+			VALUE "CompanyName", "The Apache Software Foundation.\0"
+			VALUE "FileDescription", "Signal handling routines\0"
+			VALUE "FileVersion", "0.1\0"
+			VALUE "InternalName", "jsig\0"
+			VALUE "LegalCopyright", "(c) Copyright 1991, 2005 The Apache Software Foundation or its licensors, as applicable.\0"
+			VALUE "OriginalFilename", "hysig.dll\0"
+			VALUE "ProductName", "Apache Harmony\0"
+			VALUE "ProductVersion", "0.1\0"
+		END
+	END
+	BLOCK "VarFileInfo"
+	BEGIN
+		VALUE "Translation", 0x0409, 1200
+	END
+END

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/sig/hysig_copyright.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/sig/hysig_copyright.c?rev=350181&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/sig/hysig_copyright.c (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/sig/hysig_copyright.c Wed Nov 30 21:29:27 2005
@@ -0,0 +1,19 @@
+/* Copyright 1991, 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/* A copyright string included in each DLL and executable */
+
+const char hyCopyright[] =
+  "(c) Copyright 1991, 2005 The Apache Software Foundation or its licensors, as applicable.";

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/sig/hysigwin.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/sig/hysigwin.c?rev=350181&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/sig/hysigwin.c (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/sig/hysigwin.c Wed Nov 30 21:29:27 2005
@@ -0,0 +1,327 @@
+/* Copyright 2003, 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*****************/
+/* Header files. */
+/*****************/
+
+#if defined(WIN64)
+#if !defined(_WIN32_WINNT)
+#define _WIN32_WINNT 0x0500
+#endif /* _WIN32_WINNT */
+#endif /* WIN64 */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <windows.h>
+
+#undef _CRTIMP
+#define _CRTIMP __declspec(dllexport)	/* this is required so that we can redefine signal */
+#define JSIGDLLSPEC __declspec(dllexport)
+
+/* Tooling workaround - use JNIEXPORT, as parser ignores this on C prototypes */
+#define JNIEXPORT JSIGDLLSPEC
+
+#include "jsig.h"
+
+/*********************/
+/* Local Definitions */
+/*********************/
+
+typedef void (*sigfpe_handler_t) (int, int);
+typedef sig_handler_t (*signalfunc_t) (int, sig_handler_t);
+
+/* saved non-primary signal handlers */
+static sig_handler_t *saved_signal_handler = 0;
+
+/* Array of bits indicating whether or not the a primary signal handler is installed */
+static long primary_sigs;
+#define MAX_SIGNAL (sizeof(primary_sigs)*8 - 1)
+
+#define SET_PRIMARY_HANDLER(sig) primary_sigs = primary_sigs | (1 << sig);
+#define CLEAR_PRIMARY_HANDLER(sig) primary_sigs  = primary_sigs & (~(1 << sig));
+#define PRIMARY_HANDLER_INSTALLED(sig) (primary_sigs & (1 << sig))
+
+/* Macros for locking */
+static CRITICAL_SECTION jsig_lock;
+static CRITICAL_SECTION *jsig_lock_p = 0;
+
+#if defined(WIN64)
+#define SIGNAL_LOCK_INIT { InitializeCriticalSectionAndSpinCount(&jsig_lock,4000); jsig_lock_p = &jsig_lock; }
+#else
+#define SIGNAL_LOCK_INIT { InitializeCriticalSection(&jsig_lock); jsig_lock_p = &jsig_lock; }
+#endif
+
+#define SIGNAL_LOCK { if (jsig_lock_p == 0) SIGNAL_LOCK_INIT \
+                      EnterCriticalSection(jsig_lock_p);     \
+                    }
+
+#define SIGNAL_UNLOCK LeaveCriticalSection(jsig_lock_p);
+
+/**************************/
+/* PRIVATE JSIG FUNCTIONS */
+/**************************/
+
+/*********************************************************************/
+/* Function Name: jsig_init()                                        */
+/*                                                                   */
+/* Description:   Initialises the jsig signal handler list. It       */
+/*                assumes that it is called within SIGNAL_LOCK       */
+/*                                                                   */
+/* Parameters:    None                                               */
+/*                                                                   */
+/* Returns:       None                                               */
+/*********************************************************************/
+static void
+jsig_init ()
+{
+  if (saved_signal_handler == 0)
+    {
+      saved_signal_handler =
+	(sig_handler_t *) malloc ((MAX_SIGNAL + 1) *
+				  (size_t) sizeof (sig_handler_t *));
+      if (saved_signal_handler == 0)
+	{
+	  fprintf (stderr, "libjsig unable to allocate memory\n");
+	  abort ();
+	}
+      memset (saved_signal_handler, 0,
+	      (MAX_SIGNAL + 1) * (size_t) sizeof (sig_handler_t *));
+    }
+
+  primary_sigs = 0;
+}
+
+#if !defined(IBM_JSIG_CRUNTIME_DEFAULT)
+#if defined(IBM_BUILD_TYPE_dev)
+#define IBM_JSIG_CRUNTIME_DEFAULT "MSVCRTD.DLL"
+#else
+#define IBM_JSIG_CRUNTIME_DEFAULT "MSVCRT.DLL"
+#endif /*IBM_BUILD_TYPE_dev */
+#endif
+
+/*********************************************************************/
+/* Function Name: real_signal()                                      */
+/*                                                                   */
+/* Description:   Calls the real signal                              */
+/*                                                                   */
+/* Parameters:    sig - Signal number                                */
+/*                act - sigaction for signal handler to be installed */
+/*                                                                   */
+/* Returns:       return code from OS sigaction function             */
+/*********************************************************************/
+static sig_handler_t
+real_signal (int sig, sig_handler_t act)
+{
+  static signalfunc_t real_signal = 0;
+  if (real_signal == 0)
+    {
+      void *libhandle;
+      char *libname;
+
+      /* If environment variable IBM_JSIG_CRUNTIME is defined then use */
+      /* that for the system library name, otherwise use default       */
+      libname = getenv ("IBM_JSIG_CRUNTIME");
+      if (libname == 0)
+	{
+	  libname = IBM_JSIG_CRUNTIME_DEFAULT;
+	}
+
+      /* Open the system library, if this fails then abort */
+      libhandle = LoadLibrary (libname);
+      if (libhandle == NULL)
+	{
+	  long errcode = GetLastError ();
+	  fprintf (stderr, "libjsig - library %s not found - error %ld\n",
+		   libname, errcode);
+	  abort ();
+	}
+
+      /* Get the system sigaction function from the system library */
+      /* If this fails then abort                                  */
+      real_signal = (signalfunc_t) GetProcAddress (libhandle, "signal");
+      if (real_signal == 0)
+	{
+	  long errcode = GetLastError ();
+	  fprintf (stderr, "libjsig - unable to find sigaction - error %ld\n",
+		   errcode);
+	  abort ();
+	}
+    }
+
+  /* Call the system sigaction function */
+  return (*real_signal) (sig, act);
+}
+
+/*************************/
+/* PUBLIC JSIG FUNCTIONS */
+/*************************/
+
+/*********************************************************************/
+/* Function Name: jsig_handler()                                     */
+/*                                                                   */
+/* Description:   jsig's signal handler, responsible for chaining    */
+/*                the installed signal handlers for the passed       */
+/*                signal.                                            */
+/*                Note that this can be called by the JVM signal     */
+/*                is explicitly chain to the other application       */
+/*                signal handlers                                    */
+/*                                                                   */
+/* Parameters:                                                       */
+/*                                                                   */
+/* Returns:       Value indicating whether default OS action is      */
+/*                      required by application or whether it has    */
+/*                      handled (or ignored) the signal              */
+/*                      However, this is DISGARDED on Windows        */
+/*********************************************************************/
+JNIEXPORT int
+jsig_handler (int sig, void *siginfo, void *uc)
+{
+  /* Note: rc set to zero, but not used by Windows, return type of int is for consistency with Unix */
+  int rc = 0;
+  sig_handler_t act;
+
+  /* jsig not initialized, so do nothing */
+  if (0 == saved_signal_handler)
+    {
+      return rc;
+    }
+
+  act = saved_signal_handler[sig];
+
+  /* Reset the signal handler  */
+  memset (&saved_signal_handler[sig], 0, sizeof (sig_handler_t));
+
+  /* Call the required signal handler */
+  if (act != 0 && act != SIG_IGN && act != SIG_DFL)
+    {
+      if (sig == SIGFPE)
+	{
+	  sigfpe_handler_t fpe_act = (sigfpe_handler_t) act;
+	  union
+	  {
+	    void *p;
+	    int i;
+	  } info;
+	  info.p = siginfo;
+	  fpe_act (sig, info.i);
+	}
+      else
+	{
+	  act (sig);
+	}
+    }
+  return rc;
+}
+
+/*********************************************************************/
+/* Function Name: jsig_primary_signal()                              */
+/*                                                                   */
+/* Description:   Installs the primary signal handler for the        */
+/*                specified signal.                                  */
+/*                                                                   */
+/* Parameters:                                                       */
+/*                                                                   */
+/* Returns:       0 if successful, -1 if an error occurred           */
+/*********************************************************************/
+JNIEXPORT sig_handler_t
+jsig_primary_signal (int sig, sig_handler_t act)
+{
+  sig_handler_t oldact;
+  BOOL primaryPreviouslyInstalled;
+
+  if (sig < 0 || sig > MAX_SIGNAL)
+    {
+      return SIG_ERR;
+    }
+
+  SIGNAL_LOCK
+    /* Initialise jsig if this is the first call */
+    if (saved_signal_handler == 0)
+    jsig_init ();
+
+  primaryPreviouslyInstalled = PRIMARY_HANDLER_INSTALLED (sig);
+
+  /* If the request is to de-install the primary handler then install  */
+  /* any saved handler, otherwise install the specified signal handler */
+  /* and save the previous handler                                     */
+  if (act == SIG_DFL || act == SIG_IGN)
+    {
+      oldact = real_signal (sig, saved_signal_handler[sig]);
+      if (oldact != SIG_ERR)
+	{
+	  memset (&saved_signal_handler[sig], 0, sizeof (sig_handler_t));
+	  CLEAR_PRIMARY_HANDLER (sig);
+	}
+    }
+  else
+    {
+      oldact = real_signal (sig, act);
+      if (oldact != SIG_ERR && !primaryPreviouslyInstalled)
+	{
+	  saved_signal_handler[sig] = oldact;
+	  SET_PRIMARY_HANDLER (sig);
+	}
+    }
+
+  /* If a primary handler was not previously installed then clear */
+  /* the return handler                                           */
+  if (!(primaryPreviouslyInstalled || oldact == SIG_DFL || oldact == SIG_IGN))
+    {
+      oldact = 0;
+    }
+
+  SIGNAL_UNLOCK return oldact;
+}
+
+/*********************************************************************/
+/* Function Name: signal()                                           */
+/*                                                                   */
+/* Description:   Interposed signal system function.                 */
+/*                                                                   */
+/* Parameters:                                                       */
+/*                                                                   */
+/* Returns:                                                          */
+/*********************************************************************/
+JNIEXPORT sig_handler_t
+signal (int sig, sig_handler_t act)
+{
+  sig_handler_t oldact;
+
+  if (sig < 0 || sig > MAX_SIGNAL)
+    {
+      return SIG_ERR;
+    }
+
+  SIGNAL_LOCK
+    /* Initialise jsig if this is the first call */
+    if (saved_signal_handler == 0)
+    jsig_init ();
+
+  /* If primary signal handler installed then just save the passed */
+  /* signal info and return the previously saved signal info       */
+  /* Otherwise just call the real signal function                  */
+  if (PRIMARY_HANDLER_INSTALLED (sig))
+    {
+      oldact = saved_signal_handler[sig];
+      saved_signal_handler[sig] = act;
+    }
+  else
+    {
+      oldact = real_signal (sig, act);
+    }
+
+  SIGNAL_UNLOCK return oldact;
+}

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/sig/makefile
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/sig/makefile?rev=350181&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/sig/makefile (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/sig/makefile Wed Nov 30 21:29:27 2005
@@ -0,0 +1,75 @@
+# Copyright 2003, 2005 The Apache Software Foundation or its licensors, as applicable
+# 
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# 
+#     http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#
+# Makefile for module 'sig'
+#
+
+APPVER=4.0
+TARGETOS=WIN95
+_WIN32_IE=0x0500
+SEHMAP = TRUE
+!include <win32.mak>
+
+DLLFILENAME=hysig.dll# declaration
+
+DLLNAME=..\hysig.dll# declaration
+
+LIBNAME=hysig# declaration
+
+LIBPATH=..\lib\# declaration
+
+.c.obj:
+	$(cc) -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 $(cflags) -D_MT -D_DLL -MD -D_WINSOCKAPI_ -DWIN32 -Ogityb1 -Gs -GF -Zm400 -WX -Zi  /I..\include $(VMDEBUG) $*.c
+
+.cpp.obj:
+	$(cc) -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 $(cflags) -D_MT -D_DLL -MD -D_WINSOCKAPI_ -DWIN32 -Ogityb1 -Gs -GF -Zm400 -WX -Zi  /I..\include $(VMDEBUG) $*.cpp
+
+.asm.obj:
+	ml /c /Cp /W3 /nologo /coff /Zm /Zd /Zi /Gd $(VMASMDEBUG) -DWIN32  $<
+
+.rc.res:
+	rc -I..\include $<
+
+BUILDFILES1 = hysig_copyright.obj hysigwin.obj
+
+VIRTFILES1 = hysig.res
+
+all: \
+	 ..\lib\$(LIBNAME).lib $(DLLNAME)
+
+BUILDLIB: $(LIBPATH)$(LIBNAME).lib
+
+$(LIBPATH)$(LIBNAME).lib:\
+	$(BUILDFILES1) $(VIRTFILES1) 
+	$(implib) /NOLOGO -subsystem:windows -out:$(LIBPATH)$(LIBNAME).lib -def:$(LIBNAME).def -machine:$(CPU) \
+	$(BUILDFILES1) $(VIRTFILES1) 
+
+$(DLLNAME): $(LIBPATH)$(LIBNAME).lib \
+	$(BUILDFILES1) $(VIRTFILES1) 
+	link $(VMLINK) /NOLOGO /debug /opt:icf /opt:ref /INCREMENTAL:NO /NOLOGO -entry:_DllMainCRTStartup@12 -dll /BASE:0x13100000 -machine:$(CPU) \
+	/comment:"Signal handling support DLL. (c) Copyright 1993, 2005 The Apache Software Foundation or its licensors, as applicable." -subsystem:windows -out:$(DLLNAME) -map:$(LIBNAME).map  \
+	$(BUILDFILES1) $(VIRTFILES1)  \
+	kernel32.lib  ws2_32.lib advapi32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib  $(LIBPATH)$(LIBNAME).exp
+
+clean:
+	-del *.map
+	-del *.obj
+	-del *.res
+	-del *.pdb
+	-del ..\lib\$(LIBNAME).lib
+	-del ..\lib\$(LIBNAME).exp
+	-del ..\$(LIBNAME).pdb
+	-del $(DLLNAME)
+	
\ No newline at end of file

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/BidiWrapper.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/BidiWrapper.c?rev=350181&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/BidiWrapper.c (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/BidiWrapper.c Wed Nov 30 21:29:27 2005
@@ -0,0 +1,180 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <unicode/ubidi.h>
+#include "harmony.h"
+#include "BidiWrapper.h"
+
+void check_fail (JNIEnv * env, int err);
+
+JNIEXPORT jlong JNICALL Java_com_ibm_text_BidiWrapper_ubidi_1open
+  (JNIEnv * env, jclass clazz)
+{
+  UBiDi *pBiDi = ubidi_open ();
+  return (jlong) pBiDi;
+}
+
+JNIEXPORT void JNICALL Java_com_ibm_text_BidiWrapper_ubidi_1close
+  (JNIEnv * env, jclass clazz, jlong pBiDi)
+{
+  ubidi_close ((UBiDi *) pBiDi);
+}
+
+JNIEXPORT void JNICALL Java_com_ibm_text_BidiWrapper_ubidi_1setPara
+  (JNIEnv * env, jclass clazz, jlong pBiDi, jcharArray text, jint length,
+   jbyte paraLevel, jbyteArray embeddingLevels)
+{
+  UErrorCode err = 0;
+  jchar *_text = NULL;
+  jbyte *_embeddingLevels = NULL;
+
+  _text = (*env)->GetCharArrayElements (env, text, NULL);
+
+  if (embeddingLevels != NULL)
+    {
+      _embeddingLevels =
+        (*env)->GetByteArrayElements (env, embeddingLevels, NULL);
+    }
+
+  ubidi_setPara ((UBiDi *) pBiDi, _text, length, paraLevel, _embeddingLevels,
+                 &err);
+  check_fail (env, err);
+
+  (*env)->ReleaseCharArrayElements (env, text, _text, 0);
+  if (_embeddingLevels != NULL)
+    {
+      (*env)->ReleaseByteArrayElements (env, embeddingLevels,
+                                        _embeddingLevels, 0);
+    }
+}
+
+JNIEXPORT jlong JNICALL Java_com_ibm_text_BidiWrapper_ubidi_1setLine
+  (JNIEnv * env, jclass clazz, jlong pParaBiDi, jint start, jint limit)
+{
+  UErrorCode err = 0;
+
+  UBiDi *pLineBiDi = ubidi_openSized (limit - start, 0, &err);
+  check_fail (env, err);
+
+  ubidi_setLine ((UBiDi *) pParaBiDi, start, limit, pLineBiDi, &err);
+  check_fail (env, err);
+
+  return (jlong) pLineBiDi;
+}
+
+JNIEXPORT jint JNICALL Java_com_ibm_text_BidiWrapper_ubidi_1getDirection
+  (JNIEnv * env, jclass clazz, jlong pBiDi)
+{
+  return ubidi_getDirection ((const UBiDi *) pBiDi);
+}
+
+JNIEXPORT jint JNICALL Java_com_ibm_text_BidiWrapper_ubidi_1getLength
+  (JNIEnv * env, jclass clazz, jlong pBiDi)
+{
+  return ubidi_getLength ((const UBiDi *) pBiDi);
+}
+
+JNIEXPORT jbyte JNICALL Java_com_ibm_text_BidiWrapper_ubidi_1getParaLevel
+  (JNIEnv * env, jclass clazz, jlong pBiDi)
+{
+  return ubidi_getParaLevel ((const UBiDi *) pBiDi);
+}
+
+JNIEXPORT jbyteArray JNICALL Java_com_ibm_text_BidiWrapper_ubidi_1getLevels
+  (JNIEnv * env, jclass clazz, jlong pBiDi)
+{
+  UErrorCode err = 0;
+  const UBiDiLevel *levels = NULL;
+  jbyteArray result = NULL;
+  int len = 0;
+
+  levels = ubidi_getLevels ((UBiDi *) pBiDi, &err);
+  check_fail (env, err);
+
+  len = ubidi_getLength ((const UBiDi *) pBiDi);
+  result = (*env)->NewByteArray (env, len);
+  (*env)->SetByteArrayRegion (env, result, 0, len, (jbyte *) levels);
+
+  return result;
+}
+
+JNIEXPORT jint JNICALL Java_com_ibm_text_BidiWrapper_ubidi_1countRuns
+  (JNIEnv * env, jclass clazz, jlong pBiDi)
+{
+  UErrorCode err = 0;
+
+  int count = ubidi_countRuns ((UBiDi *) pBiDi, &err);
+  check_fail (env, err);
+
+  return count;
+}
+
+JNIEXPORT jobject JNICALL Java_com_ibm_text_BidiWrapper_ubidi_1getRun
+  (JNIEnv * env, jclass clazz, jlong pBiDi, jint index)
+{
+  int start = 0;
+  int length = 0;
+  UBiDiLevel level = 0;
+  jclass run_clazz = 0;
+  jmethodID initID = 0;
+  jobject run = 0;
+
+  ubidi_getVisualRun ((UBiDi *) pBiDi, index, &start, &length);
+  ubidi_getLogicalRun ((const UBiDi *) pBiDi, start, NULL, &level);
+
+  run_clazz = (*env)->FindClass (env, "com/ibm/text/BidiRun");
+  initID = (*env)->GetMethodID (env, run_clazz, "<init>", "(III)V");
+
+  run =
+    (*env)->NewObject (env, run_clazz, initID, start, start + length, level);
+
+  return run;
+}
+
+void
+check_fail (JNIEnv * env, int err)
+{
+  jclass exception;
+  char message[] = "ICU Internal Error:                     ";
+
+  if (U_FAILURE (err))
+    {
+      sprintf (message, "ICU Internal Error: %d", err);
+      exception = (*env)->FindClass (env, "java/lang/RuntimeException");
+      (*env)->ThrowNew (env, exception, message);
+    }
+}
+
+JNIEXPORT jintArray JNICALL Java_com_ibm_text_BidiWrapper_ubidi_1reorderVisual
+  (JNIEnv * env, jclass clazz, jbyteArray levels, jint length)
+{
+  UBiDiLevel *local_levels = 0;
+  int *local_indexMap = 0;
+  jintArray result = 0;
+  PORT_ACCESS_FROM_ENV (env);
+
+  local_indexMap = (int *) hymem_allocate_memory (sizeof (int) * length);
+  local_levels = (*env)->GetByteArrayElements (env, levels, NULL);
+
+  ubidi_reorderVisual (local_levels, length, local_indexMap);
+
+  result = (*env)->NewIntArray (env, length);
+  (*env)->SetIntArrayRegion (env, result, 0, length, (jint *) local_indexMap);
+
+  hymem_free_memory (local_indexMap);
+  (*env)->ReleaseByteArrayElements (env, levels, local_levels, 0);
+
+  return result;
+}

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/BidiWrapper.h
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/BidiWrapper.h?rev=350181&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/BidiWrapper.h (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/BidiWrapper.h Wed Nov 30 21:29:27 2005
@@ -0,0 +1,131 @@
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/* DO NOT EDIT THIS FILE - it is machine generated */
+#include <jni.h>
+/* Header for class com_ibm_text_BidiWrapper */
+
+#if !defined(_Included_com_ibm_text_BidiWrapper)
+#define _Included_com_ibm_text_BidiWrapper
+#if defined(__cplusplus)
+extern "C"
+{
+#endif
+#undef com_ibm_text_BidiWrapper_UBIDI_DEFAULT_LTR
+#define com_ibm_text_BidiWrapper_UBIDI_DEFAULT_LTR 254L
+#undef com_ibm_text_BidiWrapper_UBIDI_DEFAULT_RTL
+#define com_ibm_text_BidiWrapper_UBIDI_DEFAULT_RTL 255L
+#undef com_ibm_text_BidiWrapper_UBIDI_MAX_EXPLICIT_LEVEL
+#define com_ibm_text_BidiWrapper_UBIDI_MAX_EXPLICIT_LEVEL 61L
+#undef com_ibm_text_BidiWrapper_UBIDI_LEVEL_OVERRIDE
+#define com_ibm_text_BidiWrapper_UBIDI_LEVEL_OVERRIDE 128L
+#undef com_ibm_text_BidiWrapper_UBIDI_KEEP_BASE_COMBINING
+#define com_ibm_text_BidiWrapper_UBIDI_KEEP_BASE_COMBINING 1L
+#undef com_ibm_text_BidiWrapper_UBIDI_DO_MIRRORING
+#define com_ibm_text_BidiWrapper_UBIDI_DO_MIRRORING 2L
+#undef com_ibm_text_BidiWrapper_UBIDI_INSERT_LRM_FOR_NUMERIC
+#define com_ibm_text_BidiWrapper_UBIDI_INSERT_LRM_FOR_NUMERIC 4L
+#undef com_ibm_text_BidiWrapper_UBIDI_REMOVE_BIDI_CONTROLS
+#define com_ibm_text_BidiWrapper_UBIDI_REMOVE_BIDI_CONTROLS 8L
+#undef com_ibm_text_BidiWrapper_UBIDI_OUTPUT_REVERSE
+#define com_ibm_text_BidiWrapper_UBIDI_OUTPUT_REVERSE 16L
+#undef com_ibm_text_BidiWrapper_UBiDiDirection_UBIDI_LTR
+#define com_ibm_text_BidiWrapper_UBiDiDirection_UBIDI_LTR 0L
+#undef com_ibm_text_BidiWrapper_UBiDiDirection_UBIDI_RTL
+#define com_ibm_text_BidiWrapper_UBiDiDirection_UBIDI_RTL 1L
+#undef com_ibm_text_BidiWrapper_UBiDiDirection_UBIDI_MIXED
+#define com_ibm_text_BidiWrapper_UBiDiDirection_UBIDI_MIXED 2L
+/*
+ * Class:     com_ibm_text_BidiWrapper
+ * Method:    ubidi_open
+ * Signature: ()J
+ */
+  JNIEXPORT jlong JNICALL Java_com_ibm_text_BidiWrapper_ubidi_1open
+    (JNIEnv *, jclass);
+/*
+ * Class:     com_ibm_text_BidiWrapper
+ * Method:    ubidi_close
+ * Signature: (J)V
+ */
+  JNIEXPORT void JNICALL Java_com_ibm_text_BidiWrapper_ubidi_1close
+    (JNIEnv *, jclass, jlong);
+/*
+ * Class:     com_ibm_text_BidiWrapper
+ * Method:    ubidi_setPara
+ * Signature: (J[CIB[B)V
+ */
+  JNIEXPORT void JNICALL Java_com_ibm_text_BidiWrapper_ubidi_1setPara
+    (JNIEnv *, jclass, jlong, jcharArray, jint, jbyte, jbyteArray);
+/*
+ * Class:     com_ibm_text_BidiWrapper
+ * Method:    ubidi_setLine
+ * Signature: (JII)J
+ */
+  JNIEXPORT jlong JNICALL Java_com_ibm_text_BidiWrapper_ubidi_1setLine
+    (JNIEnv *, jclass, jlong, jint, jint);
+/*
+ * Class:     com_ibm_text_BidiWrapper
+ * Method:    ubidi_getDirection
+ * Signature: (J)I
+ */
+  JNIEXPORT jint JNICALL Java_com_ibm_text_BidiWrapper_ubidi_1getDirection
+    (JNIEnv *, jclass, jlong);
+/*
+ * Class:     com_ibm_text_BidiWrapper
+ * Method:    ubidi_getLength
+ * Signature: (J)I
+ */
+  JNIEXPORT jint JNICALL Java_com_ibm_text_BidiWrapper_ubidi_1getLength
+    (JNIEnv *, jclass, jlong);
+/*
+ * Class:     com_ibm_text_BidiWrapper
+ * Method:    ubidi_getParaLevel
+ * Signature: (J)B
+ */
+  JNIEXPORT jbyte JNICALL Java_com_ibm_text_BidiWrapper_ubidi_1getParaLevel
+    (JNIEnv *, jclass, jlong);
+/*
+ * Class:     com_ibm_text_BidiWrapper
+ * Method:    ubidi_getLevels
+ * Signature: (J)[B
+ */
+  JNIEXPORT jbyteArray JNICALL Java_com_ibm_text_BidiWrapper_ubidi_1getLevels
+    (JNIEnv *, jclass, jlong);
+/*
+ * Class:     com_ibm_text_BidiWrapper
+ * Method:    ubidi_countRuns
+ * Signature: (J)I
+ */
+  JNIEXPORT jint JNICALL Java_com_ibm_text_BidiWrapper_ubidi_1countRuns
+    (JNIEnv *, jclass, jlong);
+/*
+ * Class:     com_ibm_text_BidiWrapper
+ * Method:    ubidi_getRun
+ * Signature: (JI)Lcom/ibm/text/BidiRun;
+ */
+  JNIEXPORT jobject JNICALL Java_com_ibm_text_BidiWrapper_ubidi_1getRun
+    (JNIEnv *, jclass, jlong, jint);
+/*
+ * Class:     com_ibm_text_BidiWrapper
+ * Method:    ubidi_reorderVisual
+ * Signature: ([BI)[I
+ */
+  JNIEXPORT jintArray JNICALL
+    Java_com_ibm_text_BidiWrapper_ubidi_1reorderVisual (JNIEnv *, jclass,
+                                                        jbyteArray, jint);
+#if defined(__cplusplus)
+}
+#endif
+#endif

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/hytext.def
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/hytext.def?rev=350181&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/hytext.def (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/hytext.def Wed Nov 30 21:29:27 2005
@@ -0,0 +1,18 @@
+LIBRARY	HYTEXT
+
+SECTIONS
+	.data	READ WRITE
+	.text	EXECUTE READ
+
+EXPORTS
+	Java_com_ibm_text_BidiWrapper_ubidi_1close
+	Java_com_ibm_text_BidiWrapper_ubidi_1countRuns
+	Java_com_ibm_text_BidiWrapper_ubidi_1getDirection
+	Java_com_ibm_text_BidiWrapper_ubidi_1getLength
+	Java_com_ibm_text_BidiWrapper_ubidi_1getLevels
+	Java_com_ibm_text_BidiWrapper_ubidi_1getParaLevel
+	Java_com_ibm_text_BidiWrapper_ubidi_1getRun
+	Java_com_ibm_text_BidiWrapper_ubidi_1open
+	Java_com_ibm_text_BidiWrapper_ubidi_1reorderVisual
+	Java_com_ibm_text_BidiWrapper_ubidi_1setLine
+	Java_com_ibm_text_BidiWrapper_ubidi_1setPara
\ No newline at end of file

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/hytext.rc
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/hytext.rc?rev=350181&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/hytext.rc (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/hytext.rc Wed Nov 30 21:29:27 2005
@@ -0,0 +1,47 @@
+;
+; Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable
+; 
+; Licensed under the Apache License, Version 2.0 (the "License");
+; you may not use this file except in compliance with the License.
+; You may obtain a copy of the License at
+; 
+;     http://www.apache.org/licenses/LICENSE-2.0
+; 
+; Unless required by applicable law or agreed to in writing, software
+; distributed under the License is distributed on an "AS IS" BASIS,
+; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+; See the License for the specific language governing permissions and
+; limitations under the License.
+;
+
+#include <windows.h>
+#include <winver.h>
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION 0,1,0,0
+ PRODUCTVERSION 0,1,0,0
+ FILEFLAGSMASK 0x3fL
+ FILEFLAGS 0x0L
+ FILEOS VOS_NT_WINDOWS32
+ FILETYPE VFT_DLL
+ FILESUBTYPE 0x0L
+BEGIN
+	BLOCK "StringFileInfo"
+	BEGIN
+		BLOCK "040904b0"
+		BEGIN
+			VALUE "CompanyName", "The Apache Software Foundation.\0"
+			VALUE "FileDescription", "Text native code\0"
+			VALUE "FileVersion", "0.1\0"
+			VALUE "InternalName", "text\0"
+			VALUE "LegalCopyright", "(c) Copyright 2005 The Apache Software Foundation or its licensors, as applicable.\0"
+			VALUE "OriginalFilename", "hytext.dll\0"
+			VALUE "ProductName", "Apache Harmony\0"
+			VALUE "ProductVersion", "0.1\0"
+		END
+	END
+	BLOCK "VarFileInfo"
+	BEGIN
+		VALUE "Translation", 0x0409, 1200
+	END
+END

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/makefile
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/makefile?rev=350181&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/makefile (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/makefile Wed Nov 30 21:29:27 2005
@@ -0,0 +1,80 @@
+# Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable
+# 
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# 
+#     http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#
+# Makefile for module 'text'
+#
+
+APPVER=4.0
+TARGETOS=WIN95
+SEHMAP = TRUE
+!include <win32.mak>
+
+DLLFILENAME=hytext.dll# declaration
+
+DLLNAME=..\hytext.dll# declaration
+
+LIBNAME=hytext# declaration
+
+LIBPATH=..\lib\# declaration
+
+.c.obj:
+	$(cc) -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 $(cflags) -D_MT -D_DLL -MD -D_WINSOCKAPI_ -DWIN32 -Ogityb1 -Gs -GF -Zm400 -Zi -WX  /I..\include /I..\text /I..\zlib /I..\zip /I..\fdlibm  $(VMDEBUG) $*.c
+
+.cpp.obj:
+	$(cc) -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 $(cflags) -D_MT -D_DLL -MD -D_WINSOCKAPI_ -DWIN32 -Ogityb1 -Gs -GF -Zm400 -Zi -WX /I..\include /I..\text /I..\zlib /I..\zip /I..\fdlibm  $(VMDEBUG) $*.cpp
+
+.asm.obj:
+	ml /c /Cp /W3 /nologo /coff /Zm /Zd /Zi /Gd $(VMASMDEBUG) -DWIN32   $<
+
+.rc.res:
+	rc -I..\include $<
+
+BUILDFILES1 = text_copyright.obj BidiWrapper.obj
+
+VIRTFILES1 = hytext.res
+
+SYSLIBFILES1 = ws2_32.lib Iphlpapi.lib
+
+MDLLIBFILES1 = ..\lib\hysig.lib ..\lib\hycommon.lib ..\lib\hypool.lib
+MDLLIBFILES2 = ..\lib\hyfdlibm.lib ..\lib\hythr.lib ..\lib\vmi.lib icuuc.lib
+
+all: \
+	 ..\lib\$(LIBNAME).lib $(DLLNAME)
+	
+BUILDLIB: $(LIBPATH)$(LIBNAME).lib
+
+$(LIBPATH)$(LIBNAME).lib:\
+	$(BUILDFILES1) $(VIRTFILES1) $(MDLLIBFILES1) $(MDLLIBFILES2) 
+	$(implib) /NOLOGO -subsystem:windows -out:$(LIBPATH)$(LIBNAME).lib -def:$(LIBNAME).def -machine:$(CPU) \
+	$(BUILDFILES1) $(VIRTFILES1) $(MDLLIBFILES1) $(MDLLIBFILES2)
+
+
+$(DLLNAME): $(LIBPATH)$(LIBNAME).lib \
+	$(BUILDFILES1) $(VIRTFILES1) $(MDLLIBFILES1) $(MDLLIBFILES2) 
+	link $(VMLINK) /debug /opt:icf /opt:ref /INCREMENTAL:NO /NOLOGO -entry:_DllMainCRTStartup@12 -dll /BASE:0x13300000 -machine:$(CPU) \
+	/comment:"Text component native code. (c) Copyright 1993, 2005 The Apache Software Foundation or its licensors, as applicable." \
+	-subsystem:windows -out:$(DLLNAME) -map:$(LIBNAME).map  \
+	$(BUILDFILES1) $(VIRTFILES1) $(MDLLIBFILES1) $(MDLLIBFILES2) $(SYSLIBFILES1)  \
+	kernel32.lib  ws2_32.lib advapi32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib icuuc.lib $(LIBPATH)$(LIBNAME).exp
+
+clean:
+	-del *.map
+	-del *.obj
+	-del *.res
+	-del *.pdb
+	-del ..\lib\$(LIBNAME).lib
+	-del ..\lib\$(LIBNAME).exp
+	-del ..\$(LIBNAME).pdb
+	-del $(DLLNAME)

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/text_copyright.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/text_copyright.c?rev=350181&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/text_copyright.c (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/ibm_core/native-src/win.IA32/text/text_copyright.c Wed Nov 30 21:29:27 2005
@@ -0,0 +1,19 @@
+/* Copyright 1991, 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/* A copyright string included in each DLL and executable */
+
+const char hyCopyright[] =
+  "(c) Copyright 1991, 2005 The Apache Software Foundation or its licensors, as applicable.";



Mime
View raw message