Thread: pgsql: Make better use of existing enums in plpgsql

pgsql: Make better use of existing enums in plpgsql

From
Peter Eisentraut
Date:
Make better use of existing enums in plpgsql

plpgsql.h defines a number of enums, but most of the code passes them
around as ints.  Update structs and function prototypes to take enum
types instead.  This clarifies the struct definitions in plpgsql.h in
particular.

Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e0013deb5983303d945aacd56909ac4ce227fde1

Modified Files
--------------
src/pl/plpgsql/src/pl_comp.c  |   6 +--
src/pl/plpgsql/src/pl_exec.c  |   2 +-
src/pl/plpgsql/src/pl_funcs.c |  12 ++---
src/pl/plpgsql/src/plpgsql.h  | 114 +++++++++++++++++++++---------------------
4 files changed, 67 insertions(+), 67 deletions(-)