tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jni/native/include tcn.h
Date Wed, 08 Jun 2005 07:16:33 GMT
mturk       2005/06/08 00:16:33

  Modified:    jni/native/include tcn.h
  Log:
  Fix pointer to int conversion warnings.
  
  Revision  Changes    Path
  1.13      +9 -4      jakarta-tomcat-connectors/jni/native/include/tcn.h
  
  Index: tcn.h
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/include/tcn.h,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- tcn.h	6 Jun 2005 06:54:19 -0000	1.12
  +++ tcn.h	8 Jun 2005 07:16:33 -0000	1.13
  @@ -45,12 +45,17 @@
   #define TCN_ERROR_CLASS TCN_CLASS_PATH "Error"
   
   #define UNREFERENCED(P) (P)
  -#define P2J(P)          ((jlong)(P))
  -#define J2P(P, T)       ((T)((jlong)(P)))
  +#ifdef WIN32
  +#define LLT(X) (X)
  +#else
  +#define LLT(X) ((long)(X))
  +#endif
  +#define P2J(P)          ((jlong)LLT(P))
  +#define J2P(P, T)       ((T)LLT((jlong)P))
   /* On stack buffer size */
   #define TCN_BUFFER_SZ   8192
   #define TCN_STDARGS     JNIEnv *e, jobject o
  -#define UNREFERENCED_STDARGS    { e; o; }
  +#define UNREFERENCED_STDARGS    e; o
   
   #define TCN_IMPLEMENT_CALL(RT, CL, FN)  \
       JNIEXPORT RT JNICALL Java_org_apache_tomcat_jni_##CL##_##FN
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message