plpgsql.h defines a number of enums, but most of the code passes them
around as ints. The attached patch updates structs and function
prototypes to take enum types instead. This clarifies the struct
definitions in plpgsql.h in particular.
I didn't deal with the PLPGSQL_RC_* symbols, since they are only used in
pl_exec.c (could be moved there?), and it would bloat this patch.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services