Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JNIEXPORT void JNICALL
- JNI_FN(MuPDFCore_dropPageCache)(JNIEnv *env, jobject thiz, int page)
- {
- int i;
- page_cache *pc;
- globals *glo = get_globals(env, thiz);
- for (i = 0; i < NUM_CACHE; i++)
- {
- if (glo->pages[i].page != NULL && glo->pages[i].number == page)
- {
- /* The page is already cached */
- glo->current = i;
- pc = &glo->pages[glo->current];
- drop_page_cache(glo, pc);
- return;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement