[CRT] spawn: define a unicode environment when needed
[reactos.git] / sdk / lib / 3rdparty / libmpg123 / icy.c
1 /*
2 icy: Puny code to pretend for a serious ICY data structure.
3
4 copyright 2007-2015 by the mpg123 project
5 -= free software under the terms of the LGPL 2.1 =-
6 see COPYING and AUTHORS files in distribution or http://mpg123.org
7 initially written by Thomas Orgis
8 */
9
10 #include "intsym.h"
11 #include "icy.h"
12
13 void init_icy(struct icy_meta *icy)
14 {
15 icy->data = NULL;
16 }
17
18 void clear_icy(struct icy_meta *icy)
19 {
20 if(icy->data != NULL) free(icy->data);
21 init_icy(icy);
22 }
23
24 void reset_icy(struct icy_meta *icy)
25 {
26 clear_icy(icy);
27 init_icy(icy);
28 }
29 /*void set_icy(struct icy_meta *icy, char* new_data)
30 {
31 if(icy->data) free(icy->data);
32 icy->data = new_data;
33 icy->changed = 1;
34 }*/