src/file/SDL_rwops.c
branchgsoc2008_nds
changeset 2698 e1da92da346c
parent 2676 082cc3ffd7d8
--- a/src/file/SDL_rwops.c	Thu Aug 21 12:38:21 2008 +0000
+++ b/src/file/SDL_rwops.c	Wed Aug 27 04:23:38 2008 +0000
@@ -136,6 +136,7 @@
 
     return 0;                   /* ok */
 }
+
 static long SDLCALL
 win32_file_seek(SDL_RWops * context, long offset, int whence)
 {
@@ -177,6 +178,7 @@
     SDL_Error(SDL_EFSEEK);
     return -1;                  /* error */
 }
+
 static size_t SDLCALL
 win32_file_read(SDL_RWops * context, void *ptr, size_t size, size_t maxnum)
 {
@@ -230,6 +232,7 @@
     }
     return (total_read / size);
 }
+
 static size_t SDLCALL
 win32_file_write(SDL_RWops * context, const void *ptr, size_t size,
                  size_t num)
@@ -269,6 +272,7 @@
     nwritten = byte_written / size;
     return nwritten;
 }
+
 static int SDLCALL
 win32_file_close(SDL_RWops * context)
 {
@@ -302,6 +306,7 @@
         return (-1);
     }
 }
+
 static size_t SDLCALL
 stdio_read(SDL_RWops * context, void *ptr, size_t size, size_t maxnum)
 {
@@ -313,6 +318,7 @@
     }
     return (nread);
 }
+
 static size_t SDLCALL
 stdio_write(SDL_RWops * context, const void *ptr, size_t size, size_t num)
 {
@@ -324,6 +330,7 @@
     }
     return (nwrote);
 }
+
 static int SDLCALL
 stdio_close(SDL_RWops * context)
 {
@@ -372,6 +379,7 @@
     context->hidden.mem.here = newpos;
     return (context->hidden.mem.here - context->hidden.mem.base);
 }
+
 static size_t SDLCALL
 mem_read(SDL_RWops * context, void *ptr, size_t size, size_t maxnum)
 {
@@ -394,6 +402,7 @@
 
     return (total_bytes / size);
 }
+
 static size_t SDLCALL
 mem_write(SDL_RWops * context, const void *ptr, size_t size, size_t num)
 {
@@ -404,12 +413,14 @@
     context->hidden.mem.here += num * size;
     return (num);
 }
+
 static size_t SDLCALL
 mem_writeconst(SDL_RWops * context, const void *ptr, size_t size, size_t num)
 {
     SDL_SetError("Can't write to read-only memory");
     return (-1);
 }
+
 static int SDLCALL
 mem_close(SDL_RWops * context)
 {
@@ -467,9 +478,9 @@
 {
     SDL_RWops *rwops = NULL;
 #if 0
-ifdef __NDS__
-    /* set it up so we can use stdio file function */
-    fatInitDefault();
+    ifdef __NDS__
+        /* set it up so we can use stdio file function */
+      fatInitDefault();
     printf("called fatInitDefault()");
 #endif /* __NDS__ */
     rwops = SDL_AllocRW();