Advertisement
Guest User

Untitled

a guest
Jun 19th, 2014
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. JNIEXPORT void JNICALL
  2. JNI_FN(MuPDFCore_dropPageCache)(JNIEnv *env, jobject thiz, int page)
  3. {
  4.     int i;
  5.  
  6.     page_cache *pc;
  7.     globals *glo = get_globals(env, thiz);
  8.  
  9.  
  10.     for (i = 0; i < NUM_CACHE; i++)
  11.     {
  12.         if (glo->pages[i].page != NULL && glo->pages[i].number == page)
  13.         {
  14.             /* The page is already cached */
  15.             glo->current = i;
  16.             pc = &glo->pages[glo->current];
  17.             drop_page_cache(glo, pc);
  18.             return;
  19.         }
  20.  
  21.  
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement