src/solaris/native/sun/awt/awt_LoadLibrary.c
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File jdk Sdiff src/solaris/native/sun/awt

src/solaris/native/sun/awt/awt_LoadLibrary.c

Print this page




 210     typedef void JNICALL
 211         XsessionWMcommand_New_type(JNIEnv *env, jobjectArray jargv);
 212 
 213     static XsessionWMcommand_New_type *XsessionWMcommand = NULL;
 214 
 215     if (XsessionWMcommand == NULL && awtHandle == NULL) {
 216         return;
 217     }
 218 
 219     XsessionWMcommand = (XsessionWMcommand_New_type *)
 220         dlsym(awtHandle, "Java_sun_awt_motif_XsessionWMcommand_New");
 221 
 222     if (XsessionWMcommand == NULL)
 223         return;
 224 
 225     (*XsessionWMcommand)(env, jargv);
 226 }
 227 
 228 
 229 #define REFLECT_VOID_FUNCTION(name, arglist, paramlist)                 \
 230 typedef name##_type arglist;                                            \
 231 void name arglist                                                       \
 232 {                                                                       \
 233     static name##_type *name##_ptr = NULL;                              \
 234     if (name##_ptr == NULL && awtHandle == NULL) {                      \
 235         return;                                                         \
 236     }                                                                   \
 237     name##_ptr = (name##_type *)                                        \
 238         dlsym(awtHandle, #name);                                        \
 239     if (name##_ptr == NULL) {                                           \
 240         return;                                                         \
 241     }                                                                   \
 242     (*name##_ptr)paramlist;                                             \
 243 }
 244 
 245 #define REFLECT_FUNCTION(return_type, name, arglist, paramlist)         \
 246 typedef return_type name##_type arglist;                                \
 247 return_type name arglist                                                \
 248 {                                                                       \
 249     static name##_type *name##_ptr = NULL;                              \
 250     if (name##_ptr == NULL && awtHandle == NULL) {                      \




 210     typedef void JNICALL
 211         XsessionWMcommand_New_type(JNIEnv *env, jobjectArray jargv);
 212 
 213     static XsessionWMcommand_New_type *XsessionWMcommand = NULL;
 214 
 215     if (XsessionWMcommand == NULL && awtHandle == NULL) {
 216         return;
 217     }
 218 
 219     XsessionWMcommand = (XsessionWMcommand_New_type *)
 220         dlsym(awtHandle, "Java_sun_awt_motif_XsessionWMcommand_New");
 221 
 222     if (XsessionWMcommand == NULL)
 223         return;
 224 
 225     (*XsessionWMcommand)(env, jargv);
 226 }
 227 
 228 
 229 #define REFLECT_VOID_FUNCTION(name, arglist, paramlist)                 \
 230 typedef void name##_type arglist;                                       \
 231 void name arglist                                                       \
 232 {                                                                       \
 233     static name##_type *name##_ptr = NULL;                              \
 234     if (name##_ptr == NULL && awtHandle == NULL) {                      \
 235         return;                                                         \
 236     }                                                                   \
 237     name##_ptr = (name##_type *)                                        \
 238         dlsym(awtHandle, #name);                                        \
 239     if (name##_ptr == NULL) {                                           \
 240         return;                                                         \
 241     }                                                                   \
 242     (*name##_ptr)paramlist;                                             \
 243 }
 244 
 245 #define REFLECT_FUNCTION(return_type, name, arglist, paramlist)         \
 246 typedef return_type name##_type arglist;                                \
 247 return_type name arglist                                                \
 248 {                                                                       \
 249     static name##_type *name##_ptr = NULL;                              \
 250     if (name##_ptr == NULL && awtHandle == NULL) {                      \


src/solaris/native/sun/awt/awt_LoadLibrary.c
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File