Mercurial > audlegacy-plugins
comparison src/sid/xs_support.c @ 2474:f2b3cdb6e7dc
Remove some useless wrapping of functions.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 30 Mar 2008 01:16:00 +0200 |
parents | 59e8f118ad34 |
children | 251336bee085 |
comparison
equal
deleted
inserted
replaced
2473:77af181204e7 | 2474:f2b3cdb6e7dc |
---|---|
20 with this program; if not, write to the Free Software Foundation, Inc., | 20 with this program; if not, write to the Free Software Foundation, Inc., |
21 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 21 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
22 */ | 22 */ |
23 #include "xs_support.h" | 23 #include "xs_support.h" |
24 #include <ctype.h> | 24 #include <ctype.h> |
25 | |
26 | |
27 #ifndef __AUDACIOUS_NEWVFS__ | |
28 /* File handling | |
29 */ | |
30 t_xs_file *xs_fopen(const gchar *path, const gchar *mode) | |
31 { | |
32 return fopen(path, mode); | |
33 } | |
34 | |
35 | |
36 gint xs_fclose(t_xs_file *f) | |
37 { | |
38 return fclose(f); | |
39 } | |
40 | |
41 | |
42 gint xs_fgetc(t_xs_file *f) | |
43 { | |
44 return fgetc(f); | |
45 } | |
46 | |
47 | |
48 size_t xs_fread(void *p, size_t s, size_t n, t_xs_file *f) | |
49 { | |
50 return fread(p, s, n, f); | |
51 } | |
52 | |
53 | |
54 gint xs_feof(t_xs_file *f) | |
55 { | |
56 return feof(f); | |
57 } | |
58 | |
59 | |
60 gint xs_ferror(t_xs_file *f) | |
61 { | |
62 return ferror(f); | |
63 } | |
64 | |
65 | |
66 glong xs_ftell(t_xs_file *f) | |
67 { | |
68 return ftell(f); | |
69 } | |
70 | |
71 | |
72 gint xs_fseek(t_xs_file *f, glong o, gint w) | |
73 { | |
74 return fseek(f, o, w); | |
75 } | |
76 #endif | |
77 | 25 |
78 | 26 |
79 guint16 xs_fread_be16(t_xs_file *f) | 27 guint16 xs_fread_be16(t_xs_file *f) |
80 { | 28 { |
81 return (((guint16) xs_fgetc(f)) << 8) | ((guint16) xs_fgetc(f)); | 29 return (((guint16) xs_fgetc(f)) << 8) | ((guint16) xs_fgetc(f)); |
137 return -4; | 85 return -4; |
138 } | 86 } |
139 } | 87 } |
140 | 88 |
141 | 89 |
142 | |
143 | |
144 | |
145 /* Copy a string | 90 /* Copy a string |
146 */ | 91 */ |
147 gchar *xs_strncpy(gchar *pDest, const gchar *pSource, size_t n) | 92 gchar *xs_strncpy(gchar *pDest, const gchar *pSource, size_t n) |
148 { | 93 { |
149 const gchar *s; | 94 const gchar *s; |