Mercurial > hg > xmms-sid
comparison src/xs_stil.c @ 424:faf12767a6f1
Preparing for internationalization.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 31 Dec 2006 21:43:04 +0000 |
parents | d2e6682d3ef8 |
children | a991d1fe7e94 |
comparison
equal
deleted
inserted
replaced
423:c0fdf3b3f3e6 | 424:faf12767a6f1 |
---|---|
40 pNode->subTunes = | 40 pNode->subTunes = |
41 (t_xs_stil_subnode **) g_realloc(pNode->subTunes, | 41 (t_xs_stil_subnode **) g_realloc(pNode->subTunes, |
42 (nsubTunes + 1) * sizeof(t_xs_stil_subnode **)); | 42 (nsubTunes + 1) * sizeof(t_xs_stil_subnode **)); |
43 | 43 |
44 if (!pNode->subTunes) { | 44 if (!pNode->subTunes) { |
45 xs_error("SubTune pointer structure realloc failed.\n"); | 45 xs_error(_("SubTune pointer structure realloc failed.\n")); |
46 return FALSE; | 46 return FALSE; |
47 } | 47 } |
48 | 48 |
49 /* Clear the newly allocated memory */ | 49 /* Clear the newly allocated memory */ |
50 xs_memset(&(pNode->subTunes[pNode->nsubTunes]), 0, | 50 xs_memset(&(pNode->subTunes[pNode->nsubTunes]), 0, |
58 if (!pNode->subTunes[nsubTunes]) { | 58 if (!pNode->subTunes[nsubTunes]) { |
59 pNode->subTunes[nsubTunes] = (t_xs_stil_subnode *) | 59 pNode->subTunes[nsubTunes] = (t_xs_stil_subnode *) |
60 g_malloc0(sizeof(t_xs_stil_subnode)); | 60 g_malloc0(sizeof(t_xs_stil_subnode)); |
61 | 61 |
62 if (!pNode->subTunes[nsubTunes]) { | 62 if (!pNode->subTunes[nsubTunes]) { |
63 xs_error("SubTune structure malloc failed!\n"); | 63 xs_error(_("SubTune structure malloc failed!\n")); |
64 return FALSE; | 64 return FALSE; |
65 } | 65 } |
66 } | 66 } |
67 | 67 |
68 return TRUE; | 68 return TRUE; |
163 gint subEntry; | 163 gint subEntry; |
164 assert(db); | 164 assert(db); |
165 | 165 |
166 /* Try to open the file */ | 166 /* Try to open the file */ |
167 if ((inFile = fopen(dbFilename, "ra")) == NULL) { | 167 if ((inFile = fopen(dbFilename, "ra")) == NULL) { |
168 xs_error("Could not open STILDB '%s'\n", dbFilename); | 168 xs_error(_("Could not open STILDB '%s'\n"), |
169 dbFilename); | |
169 return -1; | 170 return -1; |
170 } | 171 } |
171 | 172 |
172 /* Read and parse the data */ | 173 /* Read and parse the data */ |
173 lineNum = 0; | 174 lineNum = 0; |