< prev index next >

src/java.base/share/native/libjimage/jimage.hpp

Print this page
rev 49551 : 8201226: missing JNIEXPORT / JNICALL at some places in function declarations/implementations

*** 70,80 **** * ... * } * ... */ ! extern "C" JNIEXPORT JImageFile* JNICALL JIMAGE_Open(const char *name, jint* error); typedef JImageFile* (*JImageOpen_t)(const char *name, jint* error); /* --- 70,80 ---- * ... * } * ... */ ! extern "C" JNIEXPORT JImageFile* JIMAGE_Open(const char *name, jint* error); typedef JImageFile* (*JImageOpen_t)(const char *name, jint* error); /*
*** 85,95 **** * * Ex. * (*JImageClose)(image); */ ! extern "C" JNIEXPORT void JNICALL JIMAGE_Close(JImageFile* jimage); typedef void (*JImageClose_t)(JImageFile* jimage); --- 85,95 ---- * * Ex. * (*JImageClose)(image); */ ! extern "C" JNIEXPORT void JIMAGE_Close(JImageFile* jimage); typedef void (*JImageClose_t)(JImageFile* jimage);
*** 104,114 **** * const char* package = (*JImagePackageToModule)(image, "java/lang"); * tty->print_cr(package); * -> java.base */ ! extern "C" JNIEXPORT const char * JNICALL JIMAGE_PackageToModule(JImageFile* jimage, const char* package_name); typedef const char* (*JImagePackageToModule_t)(JImageFile* jimage, const char* package_name); --- 104,114 ---- * const char* package = (*JImagePackageToModule)(image, "java/lang"); * tty->print_cr(package); * -> java.base */ ! extern "C" JNIEXPORT const char * JIMAGE_PackageToModule(JImageFile* jimage, const char* package_name); typedef const char* (*JImagePackageToModule_t)(JImageFile* jimage, const char* package_name);
*** 124,134 **** * Ex. * jlong size; * JImageLocationRef location = (*JImageFindResource)(image, * "java.base", "9.0", "java/lang/String.class", &size); */ ! extern "C" JNIEXPORT JImageLocationRef JIMAGE_FindResource(JImageFile* jimage, const char* module_name, const char* version, const char* name, jlong* size); typedef JImageLocationRef(*JImageFindResource_t)(JImageFile* jimage, const char* module_name, const char* version, const char* name, --- 124,134 ---- * Ex. * jlong size; * JImageLocationRef location = (*JImageFindResource)(image, * "java.base", "9.0", "java/lang/String.class", &size); */ ! extern "C" JNIEXPORT JImageLocationRef JNICALL JIMAGE_FindResource(JImageFile* jimage, const char* module_name, const char* version, const char* name, jlong* size); typedef JImageLocationRef(*JImageFindResource_t)(JImageFile* jimage, const char* module_name, const char* version, const char* name,
*** 148,158 **** * JImageLocationRef location = (*JImageFindResource)(image, * "java.base", "9.0", "java/lang/String.class", &size); * char* buffer = new char[size]; * (*JImageGetResource)(image, location, buffer, size); */ ! extern "C" JNIEXPORT jlong JNICALL JIMAGE_GetResource(JImageFile* jimage, JImageLocationRef location, char* buffer, jlong size); typedef jlong(*JImageGetResource_t)(JImageFile* jimage, JImageLocationRef location, char* buffer, jlong size); --- 148,158 ---- * JImageLocationRef location = (*JImageFindResource)(image, * "java.base", "9.0", "java/lang/String.class", &size); * char* buffer = new char[size]; * (*JImageGetResource)(image, location, buffer, size); */ ! extern "C" JNIEXPORT jlong JIMAGE_GetResource(JImageFile* jimage, JImageLocationRef location, char* buffer, jlong size); typedef jlong(*JImageGetResource_t)(JImageFile* jimage, JImageLocationRef location, char* buffer, jlong size);
*** 183,193 **** typedef bool (*JImageResourceVisitor_t)(JImageFile* jimage, const char* module_name, const char* version, const char* package, const char* name, const char* extension, void* arg); ! extern "C" JNIEXPORT void JNICALL JIMAGE_ResourceIterator(JImageFile* jimage, JImageResourceVisitor_t visitor, void *arg); typedef void (*JImageResourceIterator_t)(JImageFile* jimage, JImageResourceVisitor_t visitor, void* arg); --- 183,193 ---- typedef bool (*JImageResourceVisitor_t)(JImageFile* jimage, const char* module_name, const char* version, const char* package, const char* name, const char* extension, void* arg); ! extern "C" JNIEXPORT void JIMAGE_ResourceIterator(JImageFile* jimage, JImageResourceVisitor_t visitor, void *arg); typedef void (*JImageResourceIterator_t)(JImageFile* jimage, JImageResourceVisitor_t visitor, void* arg);
*** 200,210 **** * Ex. * JImageLocationRef location = ... * char path[JIMAGE_MAX_PATH]; * (*JImageResourcePath)(image, location, path, JIMAGE_MAX_PATH); */ ! extern "C" JNIEXPORT bool JNICALL JIMAGE_ResourcePath(JImageFile* image, JImageLocationRef locationRef, char* path, size_t max); typedef bool (*JImage_ResourcePath_t)(JImageFile* jimage, JImageLocationRef location, char* buffer, jlong size); --- 200,210 ---- * Ex. * JImageLocationRef location = ... * char path[JIMAGE_MAX_PATH]; * (*JImageResourcePath)(image, location, path, JIMAGE_MAX_PATH); */ ! extern "C" JNIEXPORT bool JIMAGE_ResourcePath(JImageFile* image, JImageLocationRef locationRef, char* path, size_t max); typedef bool (*JImage_ResourcePath_t)(JImageFile* jimage, JImageLocationRef location, char* buffer, jlong size);
< prev index next >