This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 1.3.x
in repository https://gitbox.apache.org/repos/asf/tomcat-native.git
The following commit(s) were added to refs/heads/1.3.x by this push:
new 5c7eb0a83 Remove unused macros
5c7eb0a83 is described below
commit 5c7eb0a83e0cbd35e996dc615e842e3b699a3911
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Aug 27 14:36:14 2026 +0100
Remove unused macros
---
native/include/tcn.h | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/native/include/tcn.h b/native/include/tcn.h
index 4eb2c9730..feb1e7dde 100644
--- a/native/include/tcn.h
+++ b/native/include/tcn.h
@@ -104,17 +104,10 @@
/* On stack buffer size */
#define TCN_BUFFER_SZ 8192
#define TCN_STDARGS JNIEnv *e, jobject o
-#define TCN_IMPARGS JNIEnv *e, jobject o, void *sock
-#define TCN_IMPCALL(X) e, o, X->opaque
#define TCN_IMPLEMENT_CALL(RT, CL, FN) \
JNIEXPORT RT JNICALL Java_org_apache_tomcat_jni_##CL##_##FN
-#define TCN_IMPLEMENT_METHOD(RT, FN) \
- static RT method_##FN
-
-#define TCN_GETNET_METHOD(FN) method_##FN
-
#define TCN_SOCKET_UNKNOWN 0
#define TCN_SOCKET_APR 1
#define TCN_SOCKET_SSL 2
@@ -178,7 +171,6 @@ apr_status_t tcn_load_ainfo_class(JNIEnv *, jclass);
unsigned long tcn_get_thread_id(void);
#define J2S(V) c##V
-#define J2L(V) p##V
#define J2T(T) (apr_time_t)((T))
@@ -191,17 +183,8 @@ unsigned long tcn_get_thread_id(void);
#define TCN_FREE_CSTRING(V) \
if (c##V) (*e)->ReleaseStringUTFChars(e, V, c##V)
-#define TCN_ALLOC_JSTRING(V) \
- char *c##V = tcn_get_string(e, (V))
-
#define AJP_TO_JSTRING(V) (*e)->NewStringUTF((e), (V))
-#define TCN_FREE_JSTRING(V) \
- TCN_BEGIN_MACRO \
- if (c##V) \
- free(c##V); \
- TCN_END_MACRO
-
#define TCN_CHECK_ALLOCATED(x) \
if (x == NULL) { \
tcn_ThrowMemoryException(e, __FILE__, __LINE__, \
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]