File tree Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/utils/hash/dynahash.c,v 1.20 1999/03/06 21:17:56 tgl Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/utils/hash/dynahash.c,v 1.21 1999/03/07 23:03:32 tgl Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
49
49
#include "utils/mcxt.h"
50
50
#endif /* !FRONTEND */
51
51
#include "utils/palloc.h"
52
+ #include "utils/memutils.h"
52
53
53
54
/*
54
55
* Fast arithmetic, relying on powers of 2,
Original file line number Diff line number Diff line change 6
6
*
7
7
* Copyright (c) 1994, Regents of the University of California
8
8
*
9
- * $Id: memnodes.h,v 1.10 1999/02/13 23:21:38 momjian Exp $
9
+ * $Id: memnodes.h,v 1.11 1999/03/07 23:03:31 tgl Exp $
10
10
*
11
11
* XXX the typedefs in this file are different from the other ???nodes.h;
12
12
* they are pointers to structures instead of the structures themselves.
@@ -60,7 +60,9 @@ typedef struct MemoryContextData
60
60
{
61
61
NodeTag type ;
62
62
MemoryContextMethods method ;
63
- } * MemoryContext ;
63
+ } MemoryContextData ;
64
+
65
+ /* utils/mcxt.h contains typedef struct MemoryContextData *MemoryContext */
64
66
65
67
/* think about doing this right some time but we'll have explicit fields
66
68
for now -ay 10/94 */
@@ -71,9 +73,11 @@ typedef struct GlobalMemoryData
71
73
AllocSetData setData ;
72
74
char * name ;
73
75
OrderedElemData elemData ;
74
- } * GlobalMemory ;
76
+ } GlobalMemoryData ;
77
+
78
+ /* utils/mcxt.h contains typedef struct GlobalMemoryData *GlobalMemory */
75
79
76
- typedef MemoryContext * PortalMemoryContext ;
80
+ typedef struct MemoryContextData * PortalMemoryContext ;
77
81
78
82
typedef struct PortalVariableMemoryData
79
83
{
Original file line number Diff line number Diff line change 6
6
*
7
7
* Copyright (c) 1994, Regents of the University of California
8
8
*
9
- * $Id: mcxt.h,v 1.12 1999/02/13 23:22:24 momjian Exp $
9
+ * $Id: mcxt.h,v 1.13 1999/03/07 23:03:31 tgl Exp $
10
10
*
11
11
*-------------------------------------------------------------------------
12
12
*/
13
13
#ifndef MCXT_H
14
14
#define MCXT_H
15
15
16
- #include <nodes/memnodes.h>
16
+ /* These types are declared in nodes/memnodes.h, but most users of memory
17
+ * allocation should just treat them as abstract types, so we do not provide
18
+ * the struct contents here.
19
+ */
20
+
21
+ typedef struct MemoryContextData * MemoryContext ;
22
+ typedef struct GlobalMemoryData * GlobalMemory ;
23
+
17
24
18
25
extern MemoryContext CurrentMemoryContext ;
19
26
extern MemoryContext TopMemoryContext ;
You can’t perform that action at this time.
0 commit comments