Skip to content

Commit 361c6be

Browse files
author
Alan W. Irwin
committed
Propagate new cmap0 and cmap1 symbolic constants to most of our bindings
These new symbolic constants (implemented in this release cycle in include/plplot.h) are #define PL_DEFAULT_NCOL0 16 #define PL_DEFAULT_NCOL1 128 #define MIN_PLINT_RGB 0 #define MAX_PLINT_RGB 255 #define MIN_PLFLT_CMAP1 0. #define MAX_PLFLT_CMAP1 1. #define MIN_PLFLT_ALPHA 0. #define MAX_PLFLT_ALPHA 1. This commit propates these new symbolic constants from our core C library and also (automatically since C++ includes plplot.h) our C++ binding to our swig-generated bindings (Java, Python, Octave, and Lua) and our Fortran and Tcl bindings. These changes to improve internal consistency are essential to the forthcoming release of PLplot-5.15.0 and were implemented by building the "check_all" target, and when any of those subtargets which are dependencies of that target errored out due to a detected internal inconsistency, I took the appropriate action (usually copying a generated file back to the source tree) to resolve that issue. Tested by: Alan W. Irwin <[email protected]> on Linux (Debian Testing) by configuring PLplot with the -DADD_SPECIAL_CONSISTENCY_CHECKING=ON option, putting the golang program plplot-doc-check (see comments in doc/docbook/src/CMakeLists.txt for how to build that programme) on the PATH and building the check_all and check_api_xml_consistency targets. There were no build errors for those targets which shows PLplot currently passes *all* our internal consistency checks (this result is essential to the forthcoming release of PLplot-5.15.0) including the ones that demand consistency (established by this commit) for symbolic constants defined in plplot.h for our core C library (and therefore our C++ binding which also includes plplot.h) and the six swig-generated, Fortran, and Tcl bindings.
1 parent 4baf2b4 commit 361c6be

3 files changed

Lines changed: 212 additions & 178 deletions

File tree

bindings/fortran/included_plplot_parameters.f90

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@
118118
real(kind=private_double), parameter :: PL_NOTSET = -42.0_private_double
119119
real(kind=private_double), parameter :: PL_PI = 3.1415926535897932384_private_double
120120
real(kind=private_double), parameter :: PL_TWOPI = 2.0_private_double*PL_PI
121+
integer, parameter :: PL_DEFAULT_NCOL0 = 16
122+
integer, parameter :: PL_DEFAULT_NCOL1 = 128
123+
integer, parameter :: MIN_PLINT_RGB = 0
124+
integer, parameter :: MAX_PLINT_RGB = 255
125+
integer, parameter :: MIN_PLFLT_CMAP1 = 0.
126+
integer, parameter :: MAX_PLFLT_CMAP1 = 1.
127+
integer, parameter :: MIN_PLFLT_ALPHA = 0.
128+
integer, parameter :: MAX_PLFLT_ALPHA = 1.
121129
integer, parameter :: PLESC_DOUBLEBUFFERING_ENABLE = 1
122130
integer, parameter :: PLESC_DOUBLEBUFFERING_DISABLE = 2
123131
integer, parameter :: PLESC_DOUBLEBUFFERING_QUERY = 3

0 commit comments

Comments
 (0)