-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmidaslist.h
62 lines (50 loc) · 1.58 KB
/
midaslist.h
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
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef MIDASLIST
#define MIDASLIST
#include "midasoperand.h"
struct ListItem {
struct ListItem *Next;
struct ListItem *Prev;
char *Entry;
void *Pointer;
};
typedef struct ListItem ListItem ;
struct List {
struct ListItem *First;
struct ListItem *Last;
Widget W;
struct ListItem *Selected;
char *Name;
};
typedef struct List List;
static List NullList={0,0,0,0,0};
typedef XtPointer (*MidasCopyListRtn)();
#ifdef _NO_WAY
List *MidasCreateEmptyList(char *name);
Boolean MidasConvertStringList(MidasOperand *In, MidasOperand *Out);
void MidasEmptyList(List *L);
void MidasDestroyList(List *L);
ListItem *MidasFindItemInList(List *L, char *Entry);
int MidasFindItemPosInList(List *L, ListItem *Item);
ListItem *MidasFindItemInListPos(List *L,int Pos);
ListItem *MidasAddItemToListPos(List *L,char *Entry,int position);
ListItem *MidasAddItemToList(List *L, char *Entry);
void *MidasCopyList(List *Old, List *New, MidasCopyListRtn CopyRtn);
void MidasRealizeList(List *L, Widget W);
void MidasUnrealizeList(List *L);
void MidasSelectItemPosInList(List *L, int Pos, Boolean Notify);
#else
List *MidasCreateEmptyList();
Boolean MidasConvertStringList();
void MidasEmptyList();
void MidasDestroyList();
ListItem *MidasFindItemInList();
int MidasFindItemPosInList();
ListItem *MidasFindItemInListPos();
ListItem *MidasAddItemToListPos();
ListItem *MidasAddItemToList();
void *MidasCopyList();
void MidasRealizeList();
void MidasUnrealizeList();
void MidasSelectItemPosInList();
#endif
#endif