blob: 14569af2fead1c32f703e180bc56077606ea7605 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/* -*- c -*-
*
* ----------------------------------------------------------------------
* Misc utilities.
* ----------------------------------------------------------------------
*
* Copyright (c) 2002-2003 by PuhPuh
*
* This code is copyrighted property of the author. It can still
* be used for any non-commercial purpose following conditions:
*
* 1) This copyright notice is not removed.
* 2) Source code follows any distribution of the software
* if possible.
* 3) Copyright notice above is found in the documentation
* of the distributed software.
*
* Any express or implied warranties are disclaimed. Author is
* not liable for any direct or indirect damages caused by the use
* of this software.
*
* ----------------------------------------------------------------------
*
* This code has been integrated into XBMC Media Center.
* As such it can me copied, redistributed and modified under
* the same conditions as the XBMC itself.
*
*/
#ifndef CCUTIL_H_INCLUDED
#define CCUTIL_H_INCLUDED 1
void cc_fatal(const char *m);
void *cc_xmalloc(size_t n);
void *cc_xcalloc(size_t n, size_t s);
void *cc_xrealloc(void *o, size_t n);
void *cc_xstrdup(const char *s);
void *cc_xmemdup(const void *s, size_t len);
void cc_xfree(void *p);
struct CcStringListRec {
char *s;
struct CcStringListRec *next;
};
typedef struct CcStringListRec *CcStringList;
#endif /* CCUTIL_H_INCLUDED */
/* eof (ccutil.h) */
|