Diffstat (limited to 'noncore/settings/aqpkg/global.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/global.h | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/noncore/settings/aqpkg/global.h b/noncore/settings/aqpkg/global.h new file mode 100644 index 0000000..be3ede4 --- a/dev/null +++ b/noncore/settings/aqpkg/global.h | |||
@@ -0,0 +1,78 @@ | |||
1 | /*************************************************************************** | ||
2 | global.h - description | ||
3 | ------------------- | ||
4 | begin : Mon Aug 26 2002 | ||
5 | copyright : (C) 2002 by Andy Qua | ||
6 | email : andy.qua@blueyonder.co.uk | ||
7 | ***************************************************************************/ | ||
8 | |||
9 | /*************************************************************************** | ||
10 | * * | ||
11 | * This program is free software; you can redistribute it and/or modify * | ||
12 | * it under the terms of the GNU General Public License as published by * | ||
13 | * the Free Software Foundation; either version 2 of the License, or * | ||
14 | * (at your option) any later version. * | ||
15 | * * | ||
16 | ***************************************************************************/ | ||
17 | |||
18 | #ifndef __GLOBAL_H | ||
19 | #define __GLOBAL_H | ||
20 | |||
21 | // Uncomment the below line to run on a Linux box rather than a Zaurus | ||
22 | // box this allows you to change where root is, and where to load config files from | ||
23 | //#define X86 | ||
24 | |||
25 | // Sets up location of ipkg.conf and root directory | ||
26 | #ifdef QWS | ||
27 | |||
28 | #ifndef X86 | ||
29 | |||
30 | // Running QT/Embedded on an arm processor | ||
31 | #define IPKG_CONF "/etc/ipkg.conf" | ||
32 | #define ROOT "/" | ||
33 | #define IPKG_DIR "/usr/lib/ipkg/" | ||
34 | |||
35 | #else | ||
36 | |||
37 | // Running QT/Embedded on a X86 linux box | ||
38 | #define IPKG_DIR "/home/andy/projects/aqpkg/aqpkg/data" | ||
39 | #define IPKG_CONF "/home/andy/projects/aqpkg/aqpkg/data/ipkg.conf" | ||
40 | #define ROOT "/home/andy/projects/aqpkg/aqpkg/data/root" | ||
41 | |||
42 | #endif | ||
43 | |||
44 | #else | ||
45 | |||
46 | // Running QT on a X86 linux box | ||
47 | #define IPKG_CONF "/home/andy/projects/aqpkg/aqpkg/data/ipkg.conf" | ||
48 | #define ROOT "/home/andy/projects/aqpkg/aqpkg/data/root" | ||
49 | #define IPKG_DIR "/home/andy/projects/aqpkg/aqpkg/data" | ||
50 | |||
51 | #endif | ||
52 | |||
53 | |||
54 | // Uncomment the below line to turn on memory checking | ||
55 | //#define _DEBUG 1 | ||
56 | |||
57 | #ifndef __MEMFILE_C | ||
58 | #ifdef _DEBUG | ||
59 | void * operator new(unsigned int size,const char *file, int line); | ||
60 | void operator delete(void *p); | ||
61 | #endif | ||
62 | |||
63 | #ifdef _DEBUG | ||
64 | #define DEBUG_NEW new(__FILE__, __LINE__) | ||
65 | //#define DEBUG_NEW new | ||
66 | #else | ||
67 | #define DEBUG_NEW new | ||
68 | #endif | ||
69 | |||
70 | #define new DEBUG_NEW | ||
71 | #endif | ||
72 | |||
73 | |||
74 | void AddTrack(long addr, long asize, const char *fname, long lnum); | ||
75 | void RemoveTrack(long addr); | ||
76 | void DumpUnfreed(); | ||
77 | |||
78 | #endif | ||