]> granicus.if.org Git - postgresql/blob - src/include/bootstrap/bootstrap.h
OK, folks, here is the pgindent output.
[postgresql] / src / include / bootstrap / bootstrap.h
1 /*-------------------------------------------------------------------------
2  *
3  * bootstrap.h--
4  *        include file for the bootstrapping code
5  *
6  *
7  * Copyright (c) 1994, Regents of the University of California
8  *
9  * $Id: bootstrap.h,v 1.13 1998/09/01 04:34:36 momjian Exp $
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef BOOTSTRAP_H
14 #define BOOTSTRAP_H
15
16 #include <access/funcindex.h>
17 #include <access/itup.h>
18 #include <utils/rel.h>
19
20 #define MAXATTR 40                              /* max. number of attributes in a relation */
21
22 typedef struct hashnode
23 {
24         int                     strnum;                 /* Index into string table */
25         struct hashnode *next;
26 } hashnode;
27
28 #define EMITPROMPT printf("> ")
29
30 extern Relation reldesc;
31 extern Form_pg_attribute attrtypes[MAXATTR];
32 extern int      numattr;
33 extern int      DebugMode;
34
35 extern int      BootstrapMain(int ac, char *av[]);
36 extern void index_register(char *heap,
37                            char *ind,
38                            int natts,
39                            AttrNumber *attnos,
40                            uint16 nparams,
41                            Datum *params,
42                            FuncIndexInfo *finfo,
43                            PredInfo *predInfo);
44
45 extern void err_out(void);
46 extern void InsertOneTuple(Oid objectid);
47 extern void closerel(char *name);
48 extern void boot_openrel(char *name);
49 extern char *LexIDStr(int ident_num);
50
51 extern void DefineAttr(char *name, char *type, int attnum);
52 extern void InsertOneValue(Oid objectid, char *value, int i);
53 extern void InsertOneNull(int i);
54 extern char *MapArrayTypeName(char *s);
55 extern char *CleanUpStr(char *s);
56 extern int      EnterString(char *str);
57 extern void build_indices(void);
58
59 #endif   /* BOOTSTRAP_H */