mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -06:00
added PGF.getStartCat()
This commit is contained in:
@@ -120,6 +120,15 @@ Java_org_grammaticalframework_pgf_PGF_getAbstractName(JNIEnv* env, jobject self)
|
|||||||
return gu2j_string(env, pgf_abstract_name(get_ref(env, self)));
|
return gu2j_string(env, pgf_abstract_name(get_ref(env, self)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
JNIEXPORT jstring JNICALL
|
||||||
|
Java_org_grammaticalframework_pgf_PGF_getStartCat(JNIEnv* env, jobject self)
|
||||||
|
{
|
||||||
|
GuPool* tmp_pool = gu_local_pool();
|
||||||
|
jstring jname = gu2j_string(env, pgf_start_cat(get_ref(env, self), tmp_pool));
|
||||||
|
gu_pool_free(tmp_pool);
|
||||||
|
return jname;
|
||||||
|
}
|
||||||
|
|
||||||
JNIEXPORT void JNICALL
|
JNIEXPORT void JNICALL
|
||||||
Java_org_grammaticalframework_pgf_PGF_free(JNIEnv* env, jclass cls, jlong pool)
|
Java_org_grammaticalframework_pgf_PGF_free(JNIEnv* env, jclass cls, jlong pool)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user