Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

global.h

Go to the documentation of this file.
00001 /*
00002                              This file is part of the OPIE Project
00003 
00004                =.            Copyright (c)  2002 Andy Qua <andy.qua@blueyonder.co.uk>
00005              .=l.                                Dan Williams <drw@handhelds.org>
00006            .>+-=
00007  _;:,     .>    :=|.         This file is free software; you can
00008 .> <`_,   >  .   <=          redistribute it and/or modify it under
00009 :`=1 )Y*s>-.--   :           the terms of the GNU General Public
00010 .="- .-=="i,     .._         License as published by the Free Software
00011  - .   .-<_>     .<>         Foundation; either version 2 of the License,
00012      ._= =}       :          or (at your option) any later version.
00013     .%`+i>       _;_.
00014     .i_,=:_.      -<s.       This file is distributed in the hope that
00015      +  .  -:.       =       it will be useful, but WITHOUT ANY WARRANTY;
00016     : ..    .:,     . . .    without even the implied warranty of
00017     =_        +     =;=|`    MERCHANTABILITY or FITNESS FOR A
00018   _.=:.       :    :=>`:     PARTICULAR PURPOSE. See the GNU General
00019 ..}^=.=       =       ;      Public License for more details.
00020 ++=   -.     .`     .:
00021  :     =  ...= . :.=-        You should have received a copy of the GNU
00022  -.   .:....=;==+<;          General Public License along with this file;
00023   -_. . .   )=.  =           see the file COPYING. If not, write to the
00024     --        :-=`           Free Software Foundation, Inc.,
00025                              59 Temple Place - Suite 330,
00026                              Boston, MA 02111-1307, USA.
00027 
00028 */
00029 
00030 #ifndef __GLOBAL_H
00031 #define __GLOBAL_H
00032 
00033 //extern QString VERSION_TEXT;
00034 
00035 // Uncomment the below line to run on a Linux box rather than a Zaurus
00036 // box this allows you to change where root is, and where to load config files from
00037 // #define X86
00038 
00039 // Sets up location of ipkg.conf and root directory
00040 #ifdef QWS
00041 
00042 #ifndef X86
00043 
00044 // Running QT/Embedded on an arm processor
00045 #define IPKG_CONF "/etc/ipkg.conf"
00046 #define ROOT "/"
00047 #define IPKG_DIR "/usr/lib/ipkg/"
00048 
00049 #else
00050 
00051 // Running QT/Embedded on a X86 linux box
00052 #define IPKG_CONF "/home/andy/projects/aqpkg/data/ipkg.conf"
00053 #define ROOT "/home/andy/projects/aqpkg/data/root"
00054 #define IPKG_DIR "/home/andy/projects/aqpkg/data/"
00055 
00056 #endif
00057 
00058 #else
00059 
00060 // Running QT on a X86 linux box
00061 #define IPKG_CONF "/home/andy/projects/aqpkg/data/ipkg.conf"
00062 #define ROOT "/home/andy/projects/aqpkg/data/root"
00063 #define IPKG_DIR "/home/andy/projects/aqpkg/data/"
00064 
00065 #endif
00066 
00067 
00068 // Uncomment the below line to turn on memory checking
00069 //#define _DEBUG 1
00070 
00071 #ifndef __MEMFILE_C
00072 #ifdef _DEBUG
00073 void * operator new(unsigned int size,const char *file, int line);
00074 void operator delete(void *p);
00075 #endif
00076 
00077 #ifdef _DEBUG
00078 #define DEBUG_NEW new(__FILE__, __LINE__)
00079 //#define DEBUG_NEW new
00080 #else
00081 #define DEBUG_NEW new
00082 #endif
00083 
00084 #define new DEBUG_NEW
00085 #endif
00086 
00087 
00088 void AddTrack(long addr,  long asize,  const char *fname, long lnum);
00089 void RemoveTrack(long addr);
00090 void DumpUnfreed();
00091 
00092 #endif

Generated on Sat Nov 5 16:16:36 2005 for OPIE by  doxygen 1.4.2