annotate src/xs_support.h @ 398:933b9ea5923e

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 31 May 2006 13:00:05 +0000
parents b09d74eb71e6
children aec9f4beb401
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
392
b09d74eb71e6 Working on getting STIL and SLDB using completely dynamically allocated
Matti Hamalainen <ccr@tnsp.org>
parents: 269
diff changeset
1 #ifndef _XS_SUPPORT_H
b09d74eb71e6 Working on getting STIL and SLDB using completely dynamically allocated
Matti Hamalainen <ccr@tnsp.org>
parents: 269
diff changeset
2 #define _XS_SUPPORT_H
4
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 #ifdef __cplusplus
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5 extern "C" {
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6 #endif
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7
49
3518ca5c8b0f Support for compile-time big/little-endian optimizations in audio output
Matti Hamalainen <ccr@tnsp.org>
parents: 38
diff changeset
8 #include "xmms-sid.h"
226
858c09f59011 Moved some functions from xs_length.c here.
Matti Hamalainen <ccr@tnsp.org>
parents: 218
diff changeset
9 #include <stdio.h>
4
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10
218
57231fe14369 Minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 214
diff changeset
11 #ifdef HAVE_STRING_H
57231fe14369 Minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 214
diff changeset
12 #include <string.h>
57231fe14369 Minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 214
diff changeset
13 #else
57231fe14369 Minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 214
diff changeset
14 #ifdef HAVE_STRINGS_H
57231fe14369 Minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 214
diff changeset
15 #include <strings.h>
57231fe14369 Minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 214
diff changeset
16 #endif
57231fe14369 Minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 214
diff changeset
17 #endif
57231fe14369 Minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 214
diff changeset
18
57231fe14369 Minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 214
diff changeset
19 #ifdef HAVE_MEMORY_H
57231fe14369 Minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 214
diff changeset
20 #include <memory.h>
57231fe14369 Minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 214
diff changeset
21 #endif
57231fe14369 Minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 214
diff changeset
22
398
933b9ea5923e Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 392
diff changeset
23 #ifndef HAVE_FSEEKO
933b9ea5923e Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 392
diff changeset
24 #define fseeko fseek
933b9ea5923e Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 392
diff changeset
25 #define ftello ftell
933b9ea5923e Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 392
diff changeset
26 #endif
218
57231fe14369 Minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 214
diff changeset
27
4
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
28 /*
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29 * Functions
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
30 */
226
858c09f59011 Moved some functions from xs_length.c here.
Matti Hamalainen <ccr@tnsp.org>
parents: 218
diff changeset
31 guint16 xs_rd_be16(FILE *);
858c09f59011 Moved some functions from xs_length.c here.
Matti Hamalainen <ccr@tnsp.org>
parents: 218
diff changeset
32 guint32 xs_rd_be32(FILE *);
858c09f59011 Moved some functions from xs_length.c here.
Matti Hamalainen <ccr@tnsp.org>
parents: 218
diff changeset
33 size_t xs_rd_str(FILE *, gchar *, size_t);
398
933b9ea5923e Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 392
diff changeset
34
218
57231fe14369 Minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 214
diff changeset
35 gchar *xs_strncpy(gchar *, gchar *, size_t);
206
8b896d461fdb Trivial fixes and added strncpy replacement.
Matti Hamalainen <ccr@tnsp.org>
parents: 109
diff changeset
36 gint xs_pstrcpy(gchar **, const gchar *);
8b896d461fdb Trivial fixes and added strncpy replacement.
Matti Hamalainen <ccr@tnsp.org>
parents: 109
diff changeset
37 gint xs_pstrcat(gchar **, const gchar *);
239
7833df935239 Added xs_pnstrcat() to ease forming of limited size strings.
Matti Hamalainen <ccr@tnsp.org>
parents: 226
diff changeset
38 void xs_pnstrcat(gchar *, size_t, gchar *);
56
6a3ce7260ae1 Changed some standard functions to glib ones
Matti Hamalainen <ccr@tnsp.org>
parents: 49
diff changeset
39 gchar *xs_strrchr(gchar *, gchar);
109
578b71b62eeb Fileinfo now basically working, STIL COMMENT-fields are not yet parsed or shown.
Matti Hamalainen <ccr@tnsp.org>
parents: 87
diff changeset
40 inline void xs_findnext(gchar *, guint *);
578b71b62eeb Fileinfo now basically working, STIL COMMENT-fields are not yet parsed or shown.
Matti Hamalainen <ccr@tnsp.org>
parents: 87
diff changeset
41 inline void xs_findeol(gchar *, guint *);
578b71b62eeb Fileinfo now basically working, STIL COMMENT-fields are not yet parsed or shown.
Matti Hamalainen <ccr@tnsp.org>
parents: 87
diff changeset
42 inline void xs_findnum(gchar *, guint *);
4
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
43
214
575686094eb1 Portability fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 206
diff changeset
44 #ifdef HAVE_MEMSET
575686094eb1 Portability fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 206
diff changeset
45 #define xs_memset memset
575686094eb1 Portability fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 206
diff changeset
46 #else
575686094eb1 Portability fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 206
diff changeset
47 void *xs_memset(void *, int, size_t);
575686094eb1 Portability fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 206
diff changeset
48 #endif
575686094eb1 Portability fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 206
diff changeset
49
4
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
50 #ifdef __cplusplus
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
51 }
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
52 #endif
392
b09d74eb71e6 Working on getting STIL and SLDB using completely dynamically allocated
Matti Hamalainen <ccr@tnsp.org>
parents: 269
diff changeset
53 #endif /* _XS_SUPPORT_H */