equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
91 */ |
91 */ |
92 JNIEXPORT void JNICALL |
92 JNIEXPORT void JNICALL |
93 JNU_ThrowIOExceptionWithLastError(JNIEnv *env, const char *defaultDetail); |
93 JNU_ThrowIOExceptionWithLastError(JNIEnv *env, const char *defaultDetail); |
94 |
94 |
95 /* Convert between Java strings and i18n C strings */ |
95 /* Convert between Java strings and i18n C strings */ |
96 JNIEXPORT jstring |
|
97 NewStringPlatform(JNIEnv *env, const char *str); |
|
98 |
|
99 JNIEXPORT const char * |
96 JNIEXPORT const char * |
100 GetStringPlatformChars(JNIEnv *env, jstring jstr, jboolean *isCopy); |
97 GetStringPlatformChars(JNIEnv *env, jstring jstr, jboolean *isCopy); |
101 |
98 |
102 JNIEXPORT jstring JNICALL |
99 JNIEXPORT jstring JNICALL |
103 JNU_NewStringPlatform(JNIEnv *env, const char *str); |
100 JNU_NewStringPlatform(JNIEnv *env, const char *str); |