Commit dd6fcd35 authored by Robert Haas's avatar Robert Haas

Change typedef for rb_appendator to avoid conflict with C++ reserved words.

Fixes a complaint from src/tools/pginclude/cpluspluscheck reported by
Peter Eisentraut.
parent 4a69624f
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* Copyright (c) 1996-2009, PostgreSQL Global Development Group * Copyright (c) 1996-2009, PostgreSQL Global Development Group
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/include/utils/rbtree.h,v 1.2 2010/02/26 02:01:29 momjian Exp $ * $PostgreSQL: pgsql/src/include/utils/rbtree.h,v 1.3 2010/05/11 18:14:01 rhaas Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -18,7 +18,7 @@ typedef struct RBTree RBTree; ...@@ -18,7 +18,7 @@ typedef struct RBTree RBTree;
typedef struct RBTreeIterator RBTreeIterator; typedef struct RBTreeIterator RBTreeIterator;
typedef int (*rb_comparator) (const void *a, const void *b, void *arg); typedef int (*rb_comparator) (const void *a, const void *b, void *arg);
typedef void *(*rb_appendator) (void *current, void *new, void *arg); typedef void *(*rb_appendator) (void *currentdata, void *newval, void *arg);
typedef void (*rb_freefunc) (void *a); typedef void (*rb_freefunc) (void *a);
extern RBTree *rb_create(rb_comparator comparator, extern RBTree *rb_create(rb_comparator comparator,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment