Mercurial > sdl-ios-xcode
comparison src/loadso/mint/SDL_sysloadso.c @ 1668:4da1ee79c9af SDL-1.3
more tweaking indent options
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 29 May 2006 04:04:35 +0000 |
parents | 782fd950bd46 |
children |
comparison
equal
deleted
inserted
replaced
1667:1fddae038bc8 | 1668:4da1ee79c9af |
---|---|
31 #include <ldg.h> | 31 #include <ldg.h> |
32 | 32 |
33 #include "SDL_loadso.h" | 33 #include "SDL_loadso.h" |
34 | 34 |
35 void * | 35 void * |
36 SDL_LoadObject (const char *sofile) | 36 SDL_LoadObject(const char *sofile) |
37 { | 37 { |
38 const char *loaderror = "Unknown error"; | 38 const char *loaderror = "Unknown error"; |
39 void *handle = (void *) ldg_open ((char *) sofile, ldg_global); | 39 void *handle = (void *) ldg_open((char *) sofile, ldg_global); |
40 if (handle == NULL) { | 40 if (handle == NULL) { |
41 SDL_SetError ("Failed loading %s: %s", sofile, loaderror); | 41 SDL_SetError("Failed loading %s: %s", sofile, loaderror); |
42 } | 42 } |
43 return (handle); | 43 return (handle); |
44 } | 44 } |
45 | 45 |
46 void * | 46 void * |
47 SDL_LoadFunction (void *handle, const char *name) | 47 SDL_LoadFunction(void *handle, const char *name) |
48 { | 48 { |
49 const char *loaderror = "Unknown error"; | 49 const char *loaderror = "Unknown error"; |
50 void *symbol = (void *) ldg_find ((char *) name, (LDG *) handle); | 50 void *symbol = (void *) ldg_find((char *) name, (LDG *) handle); |
51 if (symbol == NULL) { | 51 if (symbol == NULL) { |
52 SDL_SetError ("Failed loading %s: %s", name, loaderror); | 52 SDL_SetError("Failed loading %s: %s", name, loaderror); |
53 } | 53 } |
54 return (symbol); | 54 return (symbol); |
55 } | 55 } |
56 | 56 |
57 void | 57 void |
58 SDL_UnloadObject (void *handle) | 58 SDL_UnloadObject(void *handle) |
59 { | 59 { |
60 if (handle != NULL) { | 60 if (handle != NULL) { |
61 ldg_close ((LDG *) handle, ldg_global); | 61 ldg_close((LDG *) handle, ldg_global); |
62 } | 62 } |
63 } | 63 } |
64 | 64 |
65 #endif /* SDL_LOADSO_LDG */ | 65 #endif /* SDL_LOADSO_LDG */ |
66 /* vi: set ts=4 sw=4 expandtab: */ | 66 /* vi: set ts=4 sw=4 expandtab: */ |