ARB
gb_undo.h
Go to the documentation of this file.
1 // =============================================================== //
2 // //
3 // File : gb_undo.h //
4 // Purpose : //
5 // //
6 // Institute of Microbiology (Technical University Munich) //
7 // http://www.arb-home.de/ //
8 // //
9 // =============================================================== //
10 
11 #ifndef GB_UNDO_H
12 #define GB_UNDO_H
13 
14 #ifndef GB_LOCAL_H
15 #include "gb_local.h"
16 #endif
17 
18 struct gb_transaction_save;
19 struct g_b_undo_list;
20 
26 };
27 
28 struct g_b_undo_gbd {
31 };
32 
36  short type;
37  short flag;
38 
39  GBDATA *source; // The original(changed) element or father(of deleted)
40  int gbm_index;
42  union {
45  } d;
46 };
47 
50  long sizeof_this; // the size of all existing undos
51  long nstack; // number of available undos
52 };
53 
54 struct g_b_undo_list {
58  long time_of_day; // the begin of the transaction
59  long sizeof_this; // the size of one undo
60 };
61 
62 struct g_b_undo_mgr {
65  g_b_undo_header *u; // undo
66  g_b_undo_header *r; // redo
67 };
68 
69 #else
70 #error gb_undo.h included twice
71 #endif // GB_UNDO_H
g_b_undo_gbd gs
Definition: gb_undo.h:44
long max_size_of_all_undos
Definition: gb_undo.h:63
g_b_undo_list * stack
Definition: gb_undo.h:49
g_b_undo_header * r
Definition: gb_undo.h:66
short type
Definition: gb_undo.h:36
g_b_undo_entry * next
Definition: gb_undo.h:35
g_b_undo_list * next
Definition: gb_undo.h:57
g_b_undo_list * father
Definition: gb_undo.h:34
union g_b_undo_entry::@5 d
long sizeof_this
Definition: gb_undo.h:41
long sizeof_this
Definition: gb_undo.h:59
long time_of_day
Definition: gb_undo.h:58
g_b_undo_list * valid_u
Definition: gb_undo.h:64
int gbm_index
Definition: gb_undo.h:40
g_b_undo_entry_type
Definition: gb_undo.h:21
gb_transaction_save * ts
Definition: gb_undo.h:43
g_b_undo_entry * entries
Definition: gb_undo.h:56
short flag
Definition: gb_undo.h:37
GBQUARK key
Definition: gb_undo.h:29
long sizeof_this
Definition: gb_undo.h:50
g_b_undo_header * u
Definition: gb_undo.h:65
GBDATA * gbd
Definition: gb_undo.h:30
GBDATA * source
Definition: gb_undo.h:39
Definition: gb_undo.h:33
g_b_undo_header * father
Definition: gb_undo.h:55