2 * Scout - The Amiga System Monitor
4 *------------------------------------------------------------------
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 *------------------------------------------------------------------
22 * @author Andreas Gelhausen
23 * @author Richard Körber <rkoerber@gmx.de>
24 * @author Pavel Fedin <sonic_amiga@mail.ru>
30 /*************************************************************/
31 /* User definitions */
32 /*************************************************************/
34 #define FILENAME_LENGTH 512
35 #define VERSION_LENGTH 16
36 #define ADDRESS_LENGTH 16
37 #define PATH_LENGTH 512
38 #define PATH_LENGTH_CHAR "512"
39 #define NODENAME_LENGTH 512
40 #define TEXT_LENGTH 512
41 #define TEXT_LENGTH_CHAR "512"
42 #define NODETYPE_LENGTH 16
43 #define NUMBER_LENGTH 16
44 #define TASK_STATE_LENGTH 16
45 #define TMP_STRING_LENGTH 1024
46 #define TS_FROZEN 0xff
47 #define PATTERN_LENGTH (PATH_LENGTH * 2 + 2)
48 #define NODESUBSYS_LENGTH 32
49 #define NODESUBTYPE_LENGTH 32
51 #define ITERATE_LIST(list, type, node) for (node = (type)((struct List *)(list))->lh_Head; ((struct Node *)node)->ln_Succ; node = (type)((struct Node *)node)->ln_Succ)
52 #define ITERATE_LIST_REVERSE(list, type, node) for (node = (type)((struct List *)(list))->lh_TailPred; ((struct Node *)node)->ln_Pred; node = (type)((struct Node *)node)->ln_Pred)
54 #define MakeID(a,b,c,d) ((ULONG) (a)<<24 | (ULONG) (b)<<16 | (ULONG) (c)<<8 | (ULONG) (d))
56 #define MyTextFrame TextFrame,MUIA_Background,MUII_TextBack
58 #define LabelA(label) TextObject,MUIA_Text_PreParse,(IPTR)"\033r",\
59 MUIA_Text_Contents,(IPTR)label,TextFrame,MUIA_FramePhantomHoriz,\
62 #define LabelB(label) TextObject,MUIA_Text_PreParse,(IPTR)"\033r",\
63 MUIA_Text_Contents,(IPTR)label,TextFrame,MUIA_FramePhantomHoriz,\
64 TRUE,MUIA_Weight,0,MUIA_InnerLeft,0,MUIA_InnerRight,0,End
66 #define LabelC(label) TextObject,MUIA_Text_PreParse,(IPTR)"\033c",\
67 MUIA_Text_Contents,(IPTR)label,TextFrame,MUIA_FramePhantomHoriz,\
71 #define ZERO ((BPTR)0L)
74 #endif /* SCOUT_DEFS_H */