Home
last modified time | relevance | path

Searched refs:rwops (Results 1 – 2 of 2) sorted by relevance

/external/qemu/distrib/sdl-1.2.15/test/
Dtestfile.c31 static void rwops_error_quit( unsigned line, SDL_RWops *rwops) { in rwops_error_quit() argument
34 if (rwops) { in rwops_error_quit()
35 rwops->close(rwops); /* This calls SDL_FreeRW(rwops); */ in rwops_error_quit()
47 SDL_RWops *rwops = NULL; in main() local
54 rwops = SDL_RWFromFile(NULL,NULL); in main()
55 if (rwops) RWOP_ERR_QUIT(rwops); in main()
56 rwops = SDL_RWFromFile(NULL,"ab+"); in main()
57 if (rwops) RWOP_ERR_QUIT(rwops); in main()
58 rwops = SDL_RWFromFile(NULL,"sldfkjsldkfj"); in main()
59 if (rwops) RWOP_ERR_QUIT(rwops); in main()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/file/
DSDL_rwops.c485 SDL_RWops *rwops = NULL; in SDL_RWFromFile() local
496 rwops = SDL_AllocRW(); in SDL_RWFromFile()
497 if (!rwops) in SDL_RWFromFile()
499 if (win32_file_open(rwops,file,mode) < 0) { in SDL_RWFromFile()
500 SDL_FreeRW(rwops); in SDL_RWFromFile()
503 rwops->seek = win32_file_seek; in SDL_RWFromFile()
504 rwops->read = win32_file_read; in SDL_RWFromFile()
505 rwops->write = win32_file_write; in SDL_RWFromFile()
506 rwops->close = win32_file_close; in SDL_RWFromFile()
522 rwops = SDL_RWFromFP(fp, 1); in SDL_RWFromFile()
[all …]