Example #1
0
jobject NativeSetRecord::toJava(JNIEnv* jniEnv, SetRecord c) {
    djinni::LocalRef<jobject> j_set(jniEnv, ::djinni::HSet<::djinni::HString>::toJava(jniEnv, c.set));
    const auto & data = djinni::JniClass<::djinni_generated::NativeSetRecord>::get();
    jobject r = jniEnv->NewObject(data.clazz.get(), data.jconstructor, j_set.get());
    djinni::jniExceptionCheck(jniEnv);
    return r;
}
Example #2
0
File: key_ctrl_r.c Project: Julow/J
void			key_ctrl_r(t_j *j)
{
	t_sub			res;

	if (j_search(j, j->prompt.history, &res))
	{
		ft_dstrset(&(j->prompt.line), 0, -1, res);
		j->prompt.cursor = j->prompt.line.length;
	}
	j_set(j, J_REFRESH);
}