From: <and...@us...> - 2008-07-31 21:21:01
|
Revision: 8601 http://plplot.svn.sourceforge.net/plplot/?rev=8601&view=rev Author: andrewross Date: 2008-07-31 21:21:09 +0000 (Thu, 31 Jul 2008) Log Message: ----------- Add support for plsfont, plgfont, plsfci and plgfci to f95 bindings. Modified Paths: -------------- trunk/bindings/f95/CMakeLists.txt trunk/bindings/f95/plstubs.h trunk/bindings/f95/scstubs.c trunk/bindings/f95/sfstubsf95.f90 Modified: trunk/bindings/f95/CMakeLists.txt =================================================================== --- trunk/bindings/f95/CMakeLists.txt 2008-07-31 21:06:23 UTC (rev 8600) +++ trunk/bindings/f95/CMakeLists.txt 2008-07-31 21:21:09 UTC (rev 8601) @@ -44,6 +44,8 @@ FILE(APPEND "${INC_FILE}" "integer, parameter :: plflt = kind(1.0)\n") endif(PL_DOUBLE) +FILE(APPEND "${INC_FILE}" + "integer, parameter :: plunicode = kind(z'80000000')\n") # Mark the include file as being generated set_source_files_properties(plflt.inc PROPERTIES GENERATED ON) Modified: trunk/bindings/f95/plstubs.h =================================================================== --- trunk/bindings/f95/plstubs.h 2008-07-31 21:06:23 UTC (rev 8600) +++ trunk/bindings/f95/plstubs.h 2008-07-31 21:21:09 UTC (rev 8601) @@ -197,7 +197,9 @@ #define PLGDIPLT FNAME(PLGDIPLT,plgdiplt) #define PLGETCURSOR FNAME(PLGETCURSOR,plgetcursor) #define PLGFAM FNAME(PLGFAM,plgfam) +#define PLGFCI FNAME(PLGFAM,plgfci) #define PLGFNAM7 FNAME(PLGFNAM7,plgfnam7) +#define PLGFONT FNAME(PLGFONT,plgfont) #define PLGLEVEL FNAME(PLGLEVEL,plglevel) #define PLGPAGE FNAME(PLGPAGE,plgpage) #define PLGRA FNAME(PLGRA,plgra) @@ -282,7 +284,9 @@ #define PLSESC FNAME(PLSESC,plsesc) #define PLSETOPT7 FNAME(PLSETOPT7,plsetopt7) #define PLSFAM FNAME(PLSFAM,plsfam) +#define PLSFCI FNAME(PLSFAM,plsfci) #define PLSFNAM7 FNAME(PLSFNAM7,plsfnam7) +#define PLSFONT FNAME(PLSFONT,plsfont) #define PLSHADE07 FNAME(PLSHADE07,plshade07) #define PLSHADE17 FNAME(PLSHADE17,plshade17) #define PLSHADE27 FNAME(PLSHADE27,plshade27) Modified: trunk/bindings/f95/scstubs.c =================================================================== --- trunk/bindings/f95/scstubs.c 2008-07-31 21:06:23 UTC (rev 8600) +++ trunk/bindings/f95/scstubs.c 2008-07-31 21:21:09 UTC (rev 8601) @@ -300,13 +300,31 @@ c_plgfam(fam, num, bmax); } +/* Note: Fortran does not have unsigned integers so we need to use a long + * (should be 64 bit on most platforms?) which corresponds to a fortran integer*8 + * in order to contain the number. This all a bit ugly and could break on + * different hardware */ void +PLGFCI(long long *pfci) +{ + PLUNICODE fci; + c_plgfci(&fci); + *pfci = (long long) fci; +} + +void PLGFNAM7(char *fnam, int length) { c_plgfnam(fnam); } void +PLGFONT(PLINT *family, PLINT *style, PLINT *weight) +{ + c_plgfont(family, style, weight); +} + +void PLGLEVEL(PLINT *level) { c_plglevel(level); @@ -812,13 +830,31 @@ c_plsfam(*fam, *num, *bmax); } +/* Note: Fortran does not have unsigned integers so we need to use a long + * (should be 64 bit on most platforms?) which corresponds to a fortran integer*8 + * in order to contain the number. This all a bit ugly and could break on + * different hardware */ void +PLSFCI(long long *fci) +{ + PLUNICODE f; + f = (PLUNICODE) (*fci & 0xffffffff); + c_plsfci(f); +} + +void PLSFNAM7(const char *fnam) { c_plsfnam(fnam); } void +PLSFONT(PLINT *family, PLINT *style, PLINT *weight) +{ + c_plsfont(*family, *style, *weight); +} + +void PLSMAJ(PLFLT *def, PLFLT *scale) { c_plsmaj(*def, *scale); Modified: trunk/bindings/f95/sfstubsf95.f90 =================================================================== --- trunk/bindings/f95/sfstubsf95.f90 2008-07-31 21:06:23 UTC (rev 8600) +++ trunk/bindings/f95/sfstubsf95.f90 2008-07-31 21:21:09 UTC (rev 8601) @@ -368,6 +368,19 @@ end interface interface + subroutine plgfci( fci ) + use plplot_flt + integer(kind=plunicode) :: fci + end subroutine plgfci + end interface + + interface + subroutine plgfont( family, style, weight ) + integer :: family, style, weight + end subroutine plgfont + end interface + + interface subroutine plglevel( level ) integer :: level end subroutine plglevel @@ -722,6 +735,19 @@ end interface interface + subroutine plsfci( fci ) + use plplot_flt + integer(kind=plunicode) :: fci + end subroutine plsfci + end interface + + interface + subroutine plsfont( family, style, weight ) + integer :: family, style, weight + end subroutine plsfont + end interface + + interface subroutine plsmaj( def, scale ) use plplot_flt real(kind=plflt) :: def, scale This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sm...@us...> - 2009-03-24 08:20:17
|
Revision: 9770 http://plplot.svn.sourceforge.net/plplot/?rev=9770&view=rev Author: smekal Date: 2009-03-24 08:20:09 +0000 (Tue, 24 Mar 2009) Log Message: ----------- The import library for libplplotf95d.dll is now created for the gfortran compiler. Added the definition file with to be exported symbols for MinGW. Modified Paths: -------------- trunk/bindings/f95/CMakeLists.txt Added Paths: ----------- trunk/bindings/f95/plplotf95_mingw.def Modified: trunk/bindings/f95/CMakeLists.txt =================================================================== --- trunk/bindings/f95/CMakeLists.txt 2009-03-22 06:06:51 UTC (rev 9769) +++ trunk/bindings/f95/CMakeLists.txt 2009-03-24 08:20:09 UTC (rev 9770) @@ -74,6 +74,11 @@ scstubs.c ) + if(BUILD_SHARED_LIBS) + SET_SOURCE_FILES_PROPERTIES(${plplotf95c${LIB_TAG}_LIB_SRCS} + PROPERTIES COMPILE_FLAGS "-DUSINGDLL" ) + endif(BUILD_SHARED_LIBS) + add_library(plplotf95c${LIB_TAG} ${plplotf95c${LIB_TAG}_LIB_SRCS}) target_link_libraries(plplotf95c${LIB_TAG} plplot${LIB_TAG}) @@ -111,21 +116,26 @@ sfstubs.h ) - if(WIN32 AND BUILD_SHARED_LIBS) + if(WIN32 AND BUILD_SHARED_LIBS AND NOT MINGW) SET(plplotf95${LIB_TAG}_LIB_SRCS ${plplotf95${LIB_TAG}_LIB_SRCS} plplotf95.def) - endif(WIN32 AND BUILD_SHARED_LIBS) + endif(WIN32 AND BUILD_SHARED_LIBS AND NOT MINGW) - if(BUILD_SHARED_LIBS) - SET_SOURCE_FILES_PROPERTIES(${plplotf95c${LIB_TAG}_LIB_SRCS} - PROPERTIES COMPILE_FLAGS "-DUSINGDLL" ) - endif(BUILD_SHARED_LIBS) - # Explicitly include dependencies for sfstubsf95.f90 include(AddFileDependencies) add_file_dependencies(sfstubsf95.f90 ${CMAKE_CURRENT_BINARY_DIR}/plflt.inc) add_library(plplotf95${LIB_TAG} ${plplotf95${LIB_TAG}_LIB_SRCS}) + if(MINGW AND BUILD_SHARED_LIBS) + add_custom_command( + TARGET plplotf95${LIB_TAG} + POST_BUILD + COMMAND dlltool libplplotf95${LIB_TAG}.dll -d ${CMAKE_CURRENT_SOURCE_DIR}/plplotf95_mingw.def -l libplplotf95${LIB_TAG}.dll.a + WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/dll + COMMENT "Creating library file: libplplotf95${LIB_TAG}.dll.a" + ) + endif(MINGW AND BUILD_SHARED_LIBS) + target_link_libraries(plplotf95${LIB_TAG} plplotf95c${LIB_TAG}) if(USE_RPATH) Added: trunk/bindings/f95/plplotf95_mingw.def =================================================================== --- trunk/bindings/f95/plplotf95_mingw.def (rev 0) +++ trunk/bindings/f95/plplotf95_mingw.def 2009-03-24 08:20:09 UTC (rev 9770) @@ -0,0 +1,78 @@ +; +EXPORTS + plparseopts_ + __plplotp_MOD_plaxes + __plplotp_MOD_plbox3 + __plplotp_MOD_plbox + __plplotp_MOD_plcontour_0 + __plplotp_MOD_plcontour_1 + __plplotp_MOD_plcontour_2 + __plplotp_MOD_plcontour_tr + __plplotp_MOD_plcontour_0_all + __plplotp_MOD_plcontour_1_all + __plplotp_MOD_plcontour_2_all + __plplotp_MOD_plcontour_tr_all + __plplotp_MOD_plgdev + __plplotp_MOD_plgfnam + __plplotp_MOD_plgver + __plplotp_MOD_plimagefr_0 + __plplotp_MOD_plimagefr_1 + __plplotp_MOD_plimagefr_2 + __plplotp_MOD_plimagefr_tr + __plplotp_MOD_pllab + __plplotp_MOD_plmap + __plplotp_MOD_plmeridians + __plplotp_MOD_plmtex3 + __plplotp_MOD_plmtex + __plplotp_MOD_plptex3 + __plplotp_MOD_plptex + __plplotp_MOD_plsdev + __plplotp_MOD_plsetopt + __plplotp_MOD_plsfnam + __plplotp_MOD_plshade_single_0 + __plplotp_MOD_plshade_single_1 + __plplotp_MOD_plshade_single_2 + __plplotp_MOD_plshade_single_tr + __plplotp_MOD_plshades_multiple_0 + __plplotp_MOD_plshades_multiple_1 + __plplotp_MOD_plshades_multiple_2 + __plplotp_MOD_plshades_multiple_tr + __plplotp_MOD_plstart + __plplotp_MOD_pltimefmt + __plplotp_MOD_plvectors_0 + __plplotp_MOD_plvectors_1 + __plplotp_MOD_plvectors_2 + __plplotp_MOD_plvectors_tr + __plplot_MOD_plbin + __plplot_MOD_plcpstrm + __plplot_MOD_plerrx + __plplot_MOD_plerry + __plplot_MOD_plfill + __plplot_MOD_plfill3 + __plplot_MOD_plgriddata + __plplot_MOD_plhist + __plplot_MOD_plimage + __plplot_MOD_plline + __plplot_MOD_plline3 + __plplot_MOD_plmesh + __plplot_MOD_plmeshc + __plplot_MOD_plot3d + __plplot_MOD_plot3dc + __plplot_MOD_plrandd + __plplot_MOD_plspause + __plplot_MOD_plsurf3d + __plplot_MOD_plpoin + __plplot_MOD_plpoin3 + __plplot_MOD_plpoly3 + __plplot_MOD_plscmap0 + __plplot_MOD_plscmap0a + __plplot_MOD_plscmap1 + __plplot_MOD_plscmap1a + __plplot_MOD_plscmap1l + __plplot_MOD_plscmap1la + __plplot_MOD_plscmap1la2 + __plplot_MOD_plscmap1l2 + __plplot_MOD_plstripc + __plplot_MOD_plsvect + __plplot_MOD_plsym + __plplot_MOD_plxormod Property changes on: trunk/bindings/f95/plplotf95_mingw.def ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <arj...@us...> - 2009-04-29 04:46:05
|
Revision: 9864 http://plplot.svn.sourceforge.net/plplot/?rev=9864&view=rev Author: arjenmarkus Date: 2009-04-29 04:46:02 +0000 (Wed, 29 Apr 2009) Log Message: ----------- Restored settings for .def file, for the bare Windows case. Also restored/repaired CVF-specific settings, as the calling convention needs to be set right. Modified Paths: -------------- trunk/bindings/f95/CMakeLists.txt trunk/bindings/f95/plstubs.h Modified: trunk/bindings/f95/CMakeLists.txt =================================================================== --- trunk/bindings/f95/CMakeLists.txt 2009-04-29 04:44:51 UTC (rev 9863) +++ trunk/bindings/f95/CMakeLists.txt 2009-04-29 04:46:02 UTC (rev 9864) @@ -59,11 +59,8 @@ # correct case and calling convention for the Fortran compiler IF(TARGET_FORTRAN MATCHES "IVF") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /DIVF") - # - # (AM) This flag make the C compiler create __cdecl style routines. - # This is not the default for Compaq Visual Fortran. - #ELSEIF(TARGET_FORTRAN MATCHES "CVF") - # SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /DCVF") + ELSEIF(TARGET_FORTRAN MATCHES "CVF") + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /DCVF") ENDIF(TARGET_FORTRAN MATCHES "IVF") endif(WIN32) @@ -116,6 +113,10 @@ sfstubs.h ) + if(WIN32 AND BUILD_SHARED_LIBS AND NOT MINGW AND NOT CYGWIN) + SET(plplotf95${LIB_TAG}_LIB_SRCS ${plplotf95${LIB_TAG}_LIB_SRCS} plplotf95.def) + endif(WIN32 AND BUILD_SHARED_LIBS AND NOT MINGW AND NOT CYGWIN) + # Explicitly include dependencies for sfstubsf95.f90 include(AddFileDependencies) add_file_dependencies(sfstubsf95.f90 ${CMAKE_CURRENT_BINARY_DIR}/plflt.inc) Modified: trunk/bindings/f95/plstubs.h =================================================================== --- trunk/bindings/f95/plstubs.h 2009-04-29 04:44:51 UTC (rev 9863) +++ trunk/bindings/f95/plstubs.h 2009-04-29 04:46:02 UTC (rev 9864) @@ -128,7 +128,7 @@ #define FNAME_(x,y) y #elif STUB_LINKAGE == STUB_U -#define FNAME(x,y) x +#define FNAME(x,y) PLDLLIMPEXP_F95C __stdcall x #define FNAME_(x,y) x #elif STUB_LINKAGE == STUB_FORTRAN This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ai...@us...> - 2009-05-05 01:17:35
|
Revision: 9905 http://plplot.svn.sourceforge.net/plplot/?rev=9905&view=rev Author: airwin Date: 2009-05-05 01:17:17 +0000 (Tue, 05 May 2009) Log Message: ----------- Remove incorrect svn:executable property. Property Changed: ---------------- trunk/bindings/f95/plflt.c trunk/bindings/f95/plplotf95.def trunk/bindings/f95/plstubs.h trunk/bindings/f95/readme_f95.txt trunk/bindings/f95/sc3d.c trunk/bindings/f95/sccont.c trunk/bindings/f95/scstubs.c trunk/bindings/f95/sfstubs.h Property changes on: trunk/bindings/f95/plflt.c ___________________________________________________________________ Deleted: svn:executable - * Property changes on: trunk/bindings/f95/plplotf95.def ___________________________________________________________________ Deleted: svn:executable - * Property changes on: trunk/bindings/f95/plstubs.h ___________________________________________________________________ Deleted: svn:executable - * Property changes on: trunk/bindings/f95/readme_f95.txt ___________________________________________________________________ Deleted: svn:executable - * Property changes on: trunk/bindings/f95/sc3d.c ___________________________________________________________________ Deleted: svn:executable - * Property changes on: trunk/bindings/f95/sccont.c ___________________________________________________________________ Deleted: svn:executable - * Property changes on: trunk/bindings/f95/scstubs.c ___________________________________________________________________ Deleted: svn:executable - * Property changes on: trunk/bindings/f95/sfstubs.h ___________________________________________________________________ Deleted: svn:executable - * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <arj...@us...> - 2009-12-02 12:33:56
|
Revision: 10669 http://plplot.svn.sourceforge.net/plplot/?rev=10669&view=rev Author: arjenmarkus Date: 2009-12-02 12:33:47 +0000 (Wed, 02 Dec 2009) Log Message: ----------- Adding plgradient to the link definition files for both bare Windows and MinGW (Fortran 95 bindings). Modified Paths: -------------- trunk/bindings/f95/plplotf95.def trunk/bindings/f95/plplotf95_mingw.def Modified: trunk/bindings/f95/plplotf95.def =================================================================== --- trunk/bindings/f95/plplotf95.def 2009-12-02 08:38:49 UTC (rev 10668) +++ trunk/bindings/f95/plplotf95.def 2009-12-02 12:33:47 UTC (rev 10669) @@ -18,6 +18,7 @@ _PLPLOTP_mp_PLCONTOUR_1_ALL@16 _PLPLOTP_mp_PLCONTOUR_2_ALL@16 _PLPLOTP_mp_PLCONTOUR_TR_ALL@12 + _PLPLOTP_mp_PLGRADIENT@16 _PLPLOTP_mp_PLVECTORS_0@12 _PLPLOTP_mp_PLVECTORS_1@20 _PLPLOTP_mp_PLVECTORS_2@20 Modified: trunk/bindings/f95/plplotf95_mingw.def =================================================================== --- trunk/bindings/f95/plplotf95_mingw.def 2009-12-02 08:38:49 UTC (rev 10668) +++ trunk/bindings/f95/plplotf95_mingw.def 2009-12-02 12:33:47 UTC (rev 10669) @@ -14,6 +14,7 @@ __plplotp_MOD_plcontour_tr_all __plplotp_MOD_plgdev __plplotp_MOD_plgfnam + __plplotp_MOD_plgradient __plplotp_MOD_plgver __plplotp_MOD_plimagefr_0 __plplotp_MOD_plimagefr_1 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ai...@us...> - 2011-01-27 19:03:45
|
Revision: 11513 http://plplot.svn.sourceforge.net/plplot/?rev=11513&view=rev Author: airwin Date: 2011-01-27 19:03:39 +0000 (Thu, 27 Jan 2011) Log Message: ----------- Initial check-in of sed script to transform the #defines in bindings/swig-support/plplotcapi.i into Fortran 95 parameter statements. Create a custom (Unix) target called check_f95_parameters which uses the sed script to create a check version of plplot_parameters.h and compare it with the source tree version to make sure the source tree version is consistent with bindings/swig-support/plplotcapi.i. If the two are ever inconsistent (due to a change in bindings/swig-support/plplotcapi.i or f95/global_defines.sed) check_f95_parameters will show an error until plplot_parameters.h_check is copied from the build tree to plplot_parameters.h to reestablish consistency again. Modified Paths: -------------- trunk/bindings/f95/CMakeLists.txt Added Paths: ----------- trunk/bindings/f95/global_defines.sed Modified: trunk/bindings/f95/CMakeLists.txt =================================================================== --- trunk/bindings/f95/CMakeLists.txt 2011-01-27 18:54:17 UTC (rev 11512) +++ trunk/bindings/f95/CMakeLists.txt 2011-01-27 19:03:39 UTC (rev 11513) @@ -109,6 +109,22 @@ # include those files in the SRCS list or do anything special with # their dependencies. + # Add (Unix) custom target to check that plplot_oct_def is up to date. + add_custom_target( + check_f95_parameters + COMMAND ${CMAKE_COMMAND} -E remove -f + ${CMAKE_CURRENT_BINARY_DIR}/plplot_parameters.h_compare + COMMAND + sed -f ${CMAKE_CURRENT_SOURCE_DIR}/global_defines.sed < + ${CMAKE_SOURCE_DIR}/bindings/swig-support/plplotcapi.i > + ${CMAKE_CURRENT_BINARY_DIR}/plplot_parameters.h_compare + COMMAND + ${CMAKE_COMMAND} -E echo Check that f95 version of plplot_parameters is up to date. + COMMAND + cmp ${CMAKE_CURRENT_SOURCE_DIR}/plplot_parameters.h + ${CMAKE_CURRENT_BINARY_DIR}/plplot_parameters.h_compare + ) + if(STATIC_OPTS) set(plplotf95opts${LIB_TAG}_LIB_SRCS configurable.f90 Added: trunk/bindings/f95/global_defines.sed =================================================================== --- trunk/bindings/f95/global_defines.sed (rev 0) +++ trunk/bindings/f95/global_defines.sed 2011-01-27 19:03:39 UTC (rev 11513) @@ -0,0 +1,32 @@ +# sed script specifically designed to parse the #define statements in +# bindings/swig-support/plplotcapi.i into a file that can be used for +# global variable definitions for f95. + +# Drop every line that is not a #define +/^#define/! d + +# Drop specific #defines from the file that are not available +# because of specific #if statements. +/^#define ZEROW/ d +/^#define ONEW/ d +/OBJECT_DATA/ d +/^#define pltr_img/ d + +# Translate trailing comment identifier into fortran 95 trailing comment. +/^#define/ s?//?!? +# Transform octal constants to Fortran (BOZ) form. +/^#define/ s? 0\([0-9][0-9]*\)? o'\1'? +# Transform hexadecimal constants to Fortran (BOZ) form. +/^#define/ s? 0[xX]\([0-9a-fA-F][0-9a-fA-F]*\)? z'\1'? +# Handle special case of z'80000000' which generates integer overflow +# for gfortran (and probably other Fortran 95 compilers). +/^#define/ s? z'80000000'? ishft(1,31)? + +# Parse what is left while preserving trailing comments. Watch out +# for parentheses around value as well. +# Treat PL_NOTSET as a floating value and append special parameter lines for +# PL_PI and PL_TWOPI in this case as well. + +/^#define/ s?^#define *\(PL_NOTSET\)[ (]*\([^ ]*\)[ )]*\(.*\)$? real(kind=plflt), parameter :: \1 = \2.0_plflt\3\n real(kind=plflt), parameter :: PL_PI = 3.1415926535897932384_plflt\n real(kind=plflt), parameter :: PL_TWOPI = 2.0_plflt*PL_PI? + +/^#define/ s?^#define *\([^ ]*\)[ (]*\([^ ]*\)[ )]*\(.*\)$? integer, parameter :: \1 = \2 \3? Property changes on: trunk/bindings/f95/global_defines.sed ___________________________________________________________________ Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <arj...@us...> - 2011-12-08 05:50:02
|
Revision: 12099 http://plplot.svn.sourceforge.net/plplot/?rev=12099&view=rev Author: arjenmarkus Date: 2011-12-08 05:49:54 +0000 (Thu, 08 Dec 2011) Log Message: ----------- Reformatted the code, introduced more Fortran 95 intrinsics (notably trim()) to simplify the code. Modified Paths: -------------- trunk/bindings/f95/configurable.f90 trunk/bindings/f95/sfstubsf95.f90 trunk/bindings/f95/strutil.f90 Modified: trunk/bindings/f95/configurable.f90 =================================================================== --- trunk/bindings/f95/configurable.f90 2011-12-08 05:48:19 UTC (rev 12098) +++ trunk/bindings/f95/configurable.f90 2011-12-08 05:49:54 UTC (rev 12099) @@ -22,7 +22,7 @@ use plplot implicit none integer :: mode - integer :: maxargs, iargs, numargs, index, maxindex, iargc, islen + integer :: maxargs, iargs, numargs, index, maxindex, iargc parameter(maxindex = maxlen/4) parameter (maxargs=20) character (len=maxlen) :: arg @@ -41,7 +41,7 @@ endif do 10 iargs = 0, numargs call getarg(iargs, arg) - call plstrf2c(arg(:islen(arg)), string1, maxlen) + call plstrf2c(trim(arg), string1, maxlen) s1 = transfer( string1, s1 ) do 5 index = 1, maxindex iargsarr(index, iargs+1) = s1(index) Modified: trunk/bindings/f95/sfstubsf95.f90 =================================================================== --- trunk/bindings/f95/sfstubsf95.f90 2011-12-08 05:48:19 UTC (rev 12098) +++ trunk/bindings/f95/sfstubsf95.f90 2011-12-08 05:49:54 UTC (rev 12099) @@ -50,1000 +50,1002 @@ ! !*********************************************************************** - ! - ! Parameters for identifying the kind of PLplot's real - ! numbers (a configuration parameter) - ! Use whatever name suits you better. - ! - module plplot_flt - include 'plflt.inc' - end module +! +! Parameters for identifying the kind of PLplot's real +! numbers (a configuration parameter) +! Use whatever name suits you better. +! +module plplot_flt + include 'plflt.inc' +end module - ! - ! Parameters and variables for strings / arrays for - ! string conversion - ! - module plplot_str - integer :: maxleni, maxlen - parameter (maxlen = 320) - parameter (maxleni = 80) - character (len = maxlen) :: string1, string2, string3 - character (len = maxlen) :: string4, string5, string6 - character (len = maxlen) :: string7, string8, string9 - integer, dimension(maxleni) :: s1, s2, s3, s4, s5, s6, s7, s8, s9 - end module +! +! Parameters and variables for strings / arrays for +! string conversion +! +module plplot_str + integer :: maxleni, maxlen + parameter (maxlen = 320) + parameter (maxleni = 80) + character (len = maxlen) :: string1, string2, string3 + character (len = maxlen) :: string4, string5, string6 + character (len = maxlen) :: string7, string8, string9 + integer, dimension(maxleni) :: s1, s2, s3, s4, s5, s6, s7, s8, s9 +end module - module plplotp - use plplot_flt - use plplot_str - implicit none +module plplotp + use plplot_flt + use plplot_str + use plplot_strutils + implicit none - interface plcont - module procedure plcontour_0 - module procedure plcontour_1 - module procedure plcontour_2 - module procedure plcontour_tr - module procedure plcontour_0_all - module procedure plcontour_1_all - module procedure plcontour_2_all - module procedure plcontour_tr_all - end interface - private :: plcontour_0, plcontour_1, plcontour_2, plcontour_tr - private :: plcontour_0_all, plcontour_1_all, plcontour_2_all, plcontour_tr_all + interface plcont + module procedure plcontour_0 + module procedure plcontour_1 + module procedure plcontour_2 + module procedure plcontour_tr + module procedure plcontour_0_all + module procedure plcontour_1_all + module procedure plcontour_2_all + module procedure plcontour_tr_all + end interface + private :: plcontour_0, plcontour_1, plcontour_2, plcontour_tr + private :: plcontour_0_all, plcontour_1_all, plcontour_2_all, plcontour_tr_all - interface plvect - module procedure plvectors_0 - module procedure plvectors_1 - module procedure plvectors_2 - module procedure plvectors_tr - end interface - private :: plvectors_0, plvectors_1, plvectors_2, plvectors_tr + interface plvect + module procedure plvectors_0 + module procedure plvectors_1 + module procedure plvectors_2 + module procedure plvectors_tr + end interface + private :: plvectors_0, plvectors_1, plvectors_2, plvectors_tr - interface plshade - module procedure plshade_single_0 - module procedure plshade_single_1 - module procedure plshade_single_2 - module procedure plshade_single_tr - end interface - private :: plshade_single_0, plshade_single_1, plshade_single_2, plshade_single_tr + interface plshade + module procedure plshade_single_0 + module procedure plshade_single_1 + module procedure plshade_single_2 + module procedure plshade_single_tr + end interface + private :: plshade_single_0, plshade_single_1, plshade_single_2, plshade_single_tr - interface plshades - module procedure plshades_multiple_0 - module procedure plshades_multiple_1 - module procedure plshades_multiple_2 - module procedure plshades_multiple_tr - end interface - private :: plshades_multiple_0, plshades_multiple_1, & - plshades_multiple_2, plshades_multiple_tr + interface plshades + module procedure plshades_multiple_0 + module procedure plshades_multiple_1 + module procedure plshades_multiple_2 + module procedure plshades_multiple_tr + end interface + private :: plshades_multiple_0, plshades_multiple_1, & + plshades_multiple_2, plshades_multiple_tr - interface plimagefr - module procedure plimagefr_0 - module procedure plimagefr_1 - module procedure plimagefr_2 - module procedure plimagefr_tr - end interface - private :: plimagefr_0, plimagefr_1, plimagefr_2, plimagefr_tr + interface plimagefr + module procedure plimagefr_0 + module procedure plimagefr_1 + module procedure plimagefr_2 + module procedure plimagefr_tr + end interface + private :: plimagefr_0, plimagefr_1, plimagefr_2, plimagefr_tr - contains - include 'sfstubs.f90' - end module plplotp +contains + include 'sfstubs.f90' +end module plplotp - module plplot_types - use plplot_flt - type :: PLGraphicsIn - integer type ! of event (CURRENTLY UNUSED) - integer state ! key or button mask - integer keysym ! key selected - integer button ! mouse button selected - integer subwindow ! subwindow (alias subpage, alias subplot) number - character(len=16) string ! translated string - integer pX, pY ! absolute device coordinates of pointer - real(kind=plflt) dX, dY ! relative device coordinates of pointer - real(kind=plflt) wX, wY ! world coordinates of pointer - end type PLGraphicsIn - end module plplot_types +module plplot_types + use plplot_flt + type :: PLGraphicsIn + integer type ! of event (CURRENTLY UNUSED) + integer state ! key or button mask + integer keysym ! key selected + integer button ! mouse button selected + integer subwindow ! subwindow (alias subpage, alias subplot) number + character(len=16) string ! translated string + integer pX, pY ! absolute device coordinates of pointer + real(kind=plflt) dX, dY ! relative device coordinates of pointer + real(kind=plflt) wX, wY ! world coordinates of pointer + end type PLGraphicsIn +end module plplot_types - module plplot - use plplotp - use plplot_flt - use plplot_types - ! - ! To be added: renaming list - ! +module plplot + use plplotp + use plplot_flt + use plplot_types + use plplot_strutils + ! + ! To be added: renaming list + ! - implicit none - include 'plplot_parameters.h' + implicit none + include 'plplot_parameters.h' - ! - ! To be added: alternative interfaces - ! - interface - subroutine pladv( sub ) + ! + ! To be added: alternative interfaces + ! + interface + subroutine pladv( sub ) integer :: sub - end subroutine pladv - end interface + end subroutine pladv + end interface - interface plbin - module procedure plbin - end interface + interface plbin + module procedure plbin + end interface - interface - subroutine plbop - end subroutine plbop - end interface + interface + subroutine plbop + end subroutine plbop + end interface - interface - subroutine plcalc_world( rx, ry, wx, wy, window ) + interface + subroutine plcalc_world( rx, ry, wx, wy, window ) use plplot_flt real(kind=plflt) :: rx, ry, wx, wy integer :: window - end subroutine plcalc_world - end interface + end subroutine plcalc_world + end interface - interface - subroutine plclear - end subroutine plclear - end interface + interface + subroutine plclear + end subroutine plclear + end interface - interface - subroutine plcol0( icol ) + interface + subroutine plcol0( icol ) integer :: icol - end subroutine plcol0 - end interface + end subroutine plcol0 + end interface - interface - subroutine plcol1( col ) + interface + subroutine plcol1( col ) use plplot_flt real(kind=plflt) :: col - end subroutine plcol1 - end interface + end subroutine plcol1 + end interface - interface plcpstrm + interface plcpstrm module procedure plcpstrm - end interface + end interface - interface - subroutine plend - end subroutine plend - end interface + interface + subroutine plend + end subroutine plend + end interface - interface - subroutine plend1 - end subroutine plend1 - end interface + interface + subroutine plend1 + end subroutine plend1 + end interface - interface - subroutine plenv( xmin, xmax, ymin, ymax, just, axis ) + interface + subroutine plenv( xmin, xmax, ymin, ymax, just, axis ) use plplot_flt real(kind=plflt) :: xmin, xmax, ymin, ymax integer :: just, axis - end subroutine plenv - end interface + end subroutine plenv + end interface - interface - subroutine pleop - end subroutine pleop - end interface + interface + subroutine pleop + end subroutine pleop + end interface - interface plerrx - module procedure plerrx - end interface + interface plerrx + module procedure plerrx + end interface - interface plerry - module procedure plerry - end interface + interface plerry + module procedure plerry + end interface - interface plfamadv - subroutine plfamadv - end subroutine plfamadv - end interface + interface plfamadv + subroutine plfamadv + end subroutine plfamadv + end interface - interface plfill - module procedure plfill - end interface + interface plfill + module procedure plfill + end interface - interface plfill3 - module procedure plfill3 - end interface + interface plfill3 + module procedure plfill3 + end interface - interface - subroutine plflush - end subroutine plflush - end interface + interface + subroutine plflush + end subroutine plflush + end interface - interface - subroutine plfont( font ) + interface + subroutine plfont( font ) integer :: font - end subroutine plfont - end interface + end subroutine plfont + end interface - interface - subroutine plfontld( charset ) + interface + subroutine plfontld( charset ) integer :: charset - end subroutine plfontld - end interface + end subroutine plfontld + end interface - interface - subroutine plgchr( chrdef, chrht ) + interface + subroutine plgchr( chrdef, chrht ) use plplot_flt real(kind=plflt) :: chrdef, chrht - end subroutine plgchr - end interface + end subroutine plgchr + end interface - interface - subroutine plgcol0( icol, r, g, b ) + interface + subroutine plgcol0( icol, r, g, b ) integer :: icol, r, g, b - end subroutine plgcol0 - end interface + end subroutine plgcol0 + end interface - interface - subroutine plgcol0a( icol, r, g, b, a ) + interface + subroutine plgcol0a( icol, r, g, b, a ) use plplot_flt integer :: icol, r, g, b real(kind=plflt) :: a - end subroutine plgcol0a - end interface + end subroutine plgcol0a + end interface - interface - subroutine plgcolbg( r, g, b ) + interface + subroutine plgcolbg( r, g, b ) integer :: r, g, b - end subroutine plgcolbg - end interface + end subroutine plgcolbg + end interface - interface - subroutine plgcolbga( r, g, b, a ) + interface + subroutine plgcolbga( r, g, b, a ) use plplot_flt integer :: r, g, b real(kind=plflt) :: a - end subroutine plgcolbga - end interface + end subroutine plgcolbga + end interface - interface - subroutine plgcompression( compression ) + interface + subroutine plgcompression( compression ) integer :: compression - end subroutine plgcompression - end interface + end subroutine plgcompression + end interface - interface - subroutine plgdidev( mar, aspect, jx, jy ) + interface + subroutine plgdidev( mar, aspect, jx, jy ) use plplot_flt real(kind=plflt) :: mar, aspect, jx, jy - end subroutine plgdidev - end interface + end subroutine plgdidev + end interface - interface - subroutine plgdiori( rot ) + interface + subroutine plgdiori( rot ) use plplot_flt real(kind=plflt) :: rot - end subroutine plgdiori - end interface + end subroutine plgdiori + end interface - interface - subroutine plgdiplt( xmin, xmax, ymin, ymax ) + interface + subroutine plgdiplt( xmin, xmax, ymin, ymax ) use plplot_flt real(kind=plflt) :: xmin, xmax, ymin, ymax - end subroutine plgdiplt - end interface + end subroutine plgdiplt + end interface - interface - subroutine plgetcursor( gin ) - use plplot_flt - use plplot_types - type(PLGraphicsIn) :: gin - end subroutine plgetcursor - end interface + interface + subroutine plgetcursor( gin ) + use plplot_flt + use plplot_types + type(PLGraphicsIn) :: gin + end subroutine plgetcursor + end interface - interface - subroutine plgfam( fam, num, bmax ) + interface + subroutine plgfam( fam, num, bmax ) integer :: fam, num, bmax - end subroutine plgfam - end interface + end subroutine plgfam + end interface - interface - subroutine plgfci( fci ) + interface + subroutine plgfci( fci ) use plplot_flt integer(kind=plunicode) :: fci - end subroutine plgfci - end interface + end subroutine plgfci + end interface - interface - subroutine plgfont( family, style, weight ) + interface + subroutine plgfont( family, style, weight ) integer :: family, style, weight - end subroutine plgfont - end interface + end subroutine plgfont + end interface - interface - subroutine plglevel( level ) + interface + subroutine plglevel( level ) integer :: level - end subroutine plglevel - end interface + end subroutine plglevel + end interface - interface - subroutine plgpage( xpmm, ypmm, xwid, ywid, xoff, yoff ) + interface + subroutine plgpage( xpmm, ypmm, xwid, ywid, xoff, yoff ) use plplot_flt real(kind=plflt) :: xpmm, ypmm integer :: xwid, ywid, xoff, yoff - end subroutine plgpage - end interface + end subroutine plgpage + end interface - interface - subroutine plgra - end subroutine plgra - end interface + interface + subroutine plgra + end subroutine plgra + end interface - interface plgradient - module procedure plgradient - end interface + interface plgradient + module procedure plgradient + end interface - interface plgriddata - module procedure plgriddata - end interface + interface plgriddata + module procedure plgriddata + end interface - interface - subroutine plgspa( xmin, xmax, ymin, ymax ) + interface + subroutine plgspa( xmin, xmax, ymin, ymax ) use plplot_flt real(kind=plflt) :: xmin, xmax, ymin, ymax - end subroutine plgspa - end interface + end subroutine plgspa + end interface - interface - subroutine plgstrm( strm ) + interface + subroutine plgstrm( strm ) integer :: strm - end subroutine plgstrm - end interface + end subroutine plgstrm + end interface - interface - subroutine plgvpd( xmin, xmax, ymin, ymax ) + interface + subroutine plgvpd( xmin, xmax, ymin, ymax ) use plplot_flt real(kind=plflt) :: xmin, xmax, ymin, ymax - end subroutine plgvpd - end interface + end subroutine plgvpd + end interface - interface - subroutine plgvpw( xmin, xmax, ymin, ymax ) + interface + subroutine plgvpw( xmin, xmax, ymin, ymax ) use plplot_flt real(kind=plflt) :: xmin, xmax, ymin, ymax - end subroutine plgvpw - end interface + end subroutine plgvpw + end interface - interface - subroutine plgxax( digmax, digits ) + interface + subroutine plgxax( digmax, digits ) integer :: digmax, digits - end subroutine plgxax - end interface + end subroutine plgxax + end interface - interface - subroutine plgyax( digmax, digits ) + interface + subroutine plgyax( digmax, digits ) integer :: digmax, digits - end subroutine plgyax - end interface + end subroutine plgyax + end interface - interface - subroutine plgzax( digmax, digits ) + interface + subroutine plgzax( digmax, digits ) integer :: digmax, digits - end subroutine plgzax - end interface + end subroutine plgzax + end interface - interface plhist - module procedure plhist - end interface + interface plhist + module procedure plhist + end interface - interface - subroutine plhls( h, l, s ) + interface + subroutine plhls( h, l, s ) use plplot_flt real(kind=plflt) :: h, l, s - end subroutine plhls - end interface + end subroutine plhls + end interface - interface - subroutine plhlsrgb( h, l, s, r, g, b ) + interface + subroutine plhlsrgb( h, l, s, r, g, b ) use plplot_flt real(kind=plflt) :: h, l, s, r, g, b - end subroutine plhlsrgb - end interface + end subroutine plhlsrgb + end interface - interface - subroutine plinit - end subroutine plinit - end interface + interface + subroutine plinit + end subroutine plinit + end interface - interface - subroutine pljoin( x1, y1, x2, y2 ) + interface + subroutine pljoin( x1, y1, x2, y2 ) use plplot_flt real(kind=plflt) :: x1, y1, x2, y2 - end subroutine pljoin - end interface + end subroutine pljoin + end interface - interface - subroutine pllightsource( x, y, z ) + interface + subroutine pllightsource( x, y, z ) use plplot_flt real(kind=plflt) :: x, y, z - end subroutine pllightsource - end interface + end subroutine pllightsource + end interface - interface pllegend - module procedure pllegend_1 - module procedure pllegend_2 - end interface + interface pllegend + module procedure pllegend_1 + module procedure pllegend_2 + end interface - interface plline - module procedure plline - end interface + interface plline + module procedure plline + end interface - interface plline3 - module procedure plline3 - end interface + interface plline3 + module procedure plline3 + end interface - interface pllsty - subroutine pllsty( lin ) + interface pllsty + subroutine pllsty( lin ) integer :: lin - end subroutine pllsty - end interface + end subroutine pllsty + end interface - interface plmap - module procedure plmap1, plmap2 - end interface plmap + interface plmap + module procedure plmap1, plmap2 + end interface plmap - interface plmeridians - module procedure plmeridians1, plmeridians2 - end interface plmeridians + interface plmeridians + module procedure plmeridians1, plmeridians2 + end interface plmeridians - interface plmesh - module procedure plmesh - end interface + interface plmesh + module procedure plmesh + end interface - interface plmeshc - module procedure plmeshc - end interface + interface plmeshc + module procedure plmeshc + end interface - interface - subroutine plmkstrm( strm ) + interface + subroutine plmkstrm( strm ) integer :: strm - end subroutine plmkstrm - end interface + end subroutine plmkstrm + end interface - interface - subroutine plpat( nlin, inc, del ) + interface + subroutine plpat( nlin, inc, del ) integer :: nlin, inc, del - end subroutine plpat - end interface + end subroutine plpat + end interface - interface plot3d - module procedure plot3d - end interface + interface plot3d + module procedure plot3d + end interface - interface plot3dc - module procedure plot3dc - end interface + interface plot3dc + module procedure plot3dc + end interface - interface plpoin - module procedure plpoin - end interface + interface plpoin + module procedure plpoin + end interface - interface plpoin3 - module procedure plpoin3 - end interface + interface plpoin3 + module procedure plpoin3 + end interface - interface plpoly3 - module procedure plpoly3 - end interface + interface plpoly3 + module procedure plpoly3 + end interface - interface - subroutine plprec( setp, prec ) + interface + subroutine plprec( setp, prec ) integer :: setp, prec - end subroutine plprec - end interface + end subroutine plprec + end interface - interface - subroutine plpsty( patt ) + interface + subroutine plpsty( patt ) integer :: patt - end subroutine plpsty - end interface + end subroutine plpsty + end interface - interface - subroutine plreplot - end subroutine plreplot - end interface + interface + subroutine plreplot + end subroutine plreplot + end interface - ! - ! Note: plrgb and plrgb1 can be merged - ! - interface - subroutine plrgb( r, g, b ) + ! + ! Note: plrgb and plrgb1 can be merged + ! + interface + subroutine plrgb( r, g, b ) use plplot_flt real(kind=plflt) :: r, g, b - end subroutine plrgb - end interface + end subroutine plrgb + end interface - interface - subroutine plrgb1( r, g, b ) + interface + subroutine plrgb1( r, g, b ) integer :: r, g, b - end subroutine plrgb1 - end interface + end subroutine plrgb1 + end interface - interface - subroutine plrgbhls( r, g, b, h, l, s ) + interface + subroutine plrgbhls( r, g, b, h, l, s ) use plplot_flt real(kind=plflt) :: r, g, b, h, l, s - end subroutine plrgbhls - end interface + end subroutine plrgbhls + end interface - interface - subroutine plschr( chrdef, chrht ) + interface + subroutine plschr( chrdef, chrht ) use plplot_flt real(kind=plflt) :: chrdef, chrht - end subroutine plschr - end interface + end subroutine plschr + end interface - interface plscmap0 - module procedure plscmap0 - end interface + interface plscmap0 + module procedure plscmap0 + end interface - interface plscmap0a - module procedure plscmap0a - end interface + interface plscmap0a + module procedure plscmap0a + end interface - interface - subroutine plscmap0n( n ) + interface + subroutine plscmap0n( n ) integer :: n - end subroutine plscmap0n - end interface + end subroutine plscmap0n + end interface - interface plscmap1 - module procedure plscmap1 - end interface + interface plscmap1 + module procedure plscmap1 + end interface - interface plscmap1a - module procedure plscmap1a - end interface + interface plscmap1a + module procedure plscmap1a + end interface - interface plscmap1l - module procedure plscmap1l - module procedure plscmap1l2 - end interface + interface plscmap1l + module procedure plscmap1l + module procedure plscmap1l2 + end interface - interface plscmap1la - module procedure plscmap1la - module procedure plscmap1la2 - end interface + interface plscmap1la + module procedure plscmap1la + module procedure plscmap1la2 + end interface - interface - subroutine plscmap1n( n ) + interface + subroutine plscmap1n( n ) integer :: n - end subroutine plscmap1n - end interface + end subroutine plscmap1n + end interface - interface - subroutine plscol0( icol, r, g, b ) + interface + subroutine plscol0( icol, r, g, b ) integer :: icol, r, g, b - end subroutine plscol0 - end interface + end subroutine plscol0 + end interface - interface - subroutine plscol0a( icol, r, g, b, a ) + interface + subroutine plscol0a( icol, r, g, b, a ) use plplot_flt integer :: icol, r, g, b real(kind=plflt) :: a - end subroutine plscol0a - end interface + end subroutine plscol0a + end interface - interface - subroutine plscolbg( r, g, b ) + interface + subroutine plscolbg( r, g, b ) integer :: r, g, b - end subroutine plscolbg - end interface + end subroutine plscolbg + end interface - interface - subroutine plscolbga( r, g, b, a ) + interface + subroutine plscolbga( r, g, b, a ) use plplot_flt integer :: r, g, b real(kind=plflt) :: a - end subroutine plscolbga - end interface + end subroutine plscolbga + end interface - interface - subroutine plscolor( color ) + interface + subroutine plscolor( color ) integer :: color - end subroutine plscolor - end interface + end subroutine plscolor + end interface - interface - subroutine plscompression( compression ) + interface + subroutine plscompression( compression ) integer :: compression - end subroutine plscompression - end interface + end subroutine plscompression + end interface - interface - subroutine plsdidev( mar, aspect, jx, jy ) + interface + subroutine plsdidev( mar, aspect, jx, jy ) use plplot_flt real(kind=plflt) :: mar, aspect, jx, jy - end subroutine plsdidev - end interface + end subroutine plsdidev + end interface - interface - subroutine plsdimap( dimxmi, dimxmax, diymin, dimymax, dimxpmm, diypmm ) + interface + subroutine plsdimap( dimxmi, dimxmax, diymin, dimymax, dimxpmm, diypmm ) use plplot_flt real(kind=plflt) :: dimxmi, dimxmax, diymin, dimymax, dimxpmm, diypmm - end subroutine plsdimap - end interface + end subroutine plsdimap + end interface - interface - subroutine plsdiori( rot ) + interface + subroutine plsdiori( rot ) use plplot_flt real(kind=plflt) :: rot - end subroutine plsdiori - end interface + end subroutine plsdiori + end interface - interface - subroutine plsdiplt( xmin, xmax, ymin, ymax ) + interface + subroutine plsdiplt( xmin, xmax, ymin, ymax ) use plplot_flt real(kind=plflt) :: xmin, xmax, ymin, ymax - end subroutine plsdiplt - end interface + end subroutine plsdiplt + end interface - interface - subroutine plsdiplz( xmin, xmax, ymin, ymax ) + interface + subroutine plsdiplz( xmin, xmax, ymin, ymax ) use plplot_flt real(kind=plflt) :: xmin, xmax, ymin, ymax - end subroutine plsdiplz - end interface + end subroutine plsdiplz + end interface - interface - subroutine plseed( s ) + interface + subroutine plseed( s ) integer :: s - end subroutine plseed - end interface + end subroutine plseed + end interface - ! TODO: character-version - interface - subroutine plsesc( esc ) + ! TODO: character-version + interface + subroutine plsesc( esc ) integer :: esc - end subroutine plsesc - end interface + end subroutine plsesc + end interface - ! - ! TODO: F95-specific form for these routines - ! - interface plsetmapformc - subroutine plsetmapformc( mapform ) + ! + ! TODO: F95-specific form for these routines + ! + interface plsetmapformc + subroutine plsetmapformc( mapform ) use plplot_flt interface - subroutine mapform( n, x, y ) - use plplot_flt - integer :: n - real(kind=plflt), dimension(*) :: x, y - end subroutine mapform + subroutine mapform( n, x, y ) + use plplot_flt + integer :: n + real(kind=plflt), dimension(*) :: x, y + end subroutine mapform end interface - end subroutine plsetmapformc - end interface + end subroutine plsetmapformc + end interface - interface - subroutine plsfam( fam, num, bmax ) + interface + subroutine plsfam( fam, num, bmax ) integer :: fam, num, bmax - end subroutine plsfam - end interface + end subroutine plsfam + end interface - interface - subroutine plsfci( fci ) + interface + subroutine plsfci( fci ) use plplot_flt integer(kind=plunicode) :: fci - end subroutine plsfci - end interface + end subroutine plsfci + end interface - interface - subroutine plsfont( family, style, weight ) + interface + subroutine plsfont( family, style, weight ) integer :: family, style, weight - end subroutine plsfont - end interface + end subroutine plsfont + end interface - interface plslabelfunc - subroutine plslabelfunc_on( labelfunc ) - interface - subroutine labelfunc(axis, value, label, length) - use plplot_flt - implicit none - integer :: axis, length - real(kind=plflt) :: value - character*(length) label - end subroutine labelfunc - end interface - end subroutine plslabelfunc_on + interface plslabelfunc + subroutine plslabelfunc_on( labelfunc ) + interface + subroutine labelfunc(axis, value, label, length) + use plplot_flt + implicit none + integer :: axis, length + real(kind=plflt) :: value + character*(length) label + end subroutine labelfunc + end interface + end subroutine plslabelfunc_on - subroutine plslabelfunc_off( dummy ) - implicit none - integer :: dummy - end subroutine plslabelfunc_off + subroutine plslabelfunc_off( dummy ) + implicit none + integer :: dummy + end subroutine plslabelfunc_off - subroutine plslabelfunc_none - end subroutine plslabelfunc_none + subroutine plslabelfunc_none + end subroutine plslabelfunc_none - end interface + end interface - interface - subroutine plsmaj( def, scale ) + interface + subroutine plsmaj( def, scale ) use plplot_flt real(kind=plflt) :: def, scale - end subroutine plsmaj - end interface + end subroutine plsmaj + end interface - ! plsmem: void * argument tricky - TODO - ! plsmema: void * argument tricky - TODO + ! plsmem: void * argument tricky - TODO + ! plsmema: void * argument tricky - TODO - interface - subroutine plsmin( def, scale ) + interface + subroutine plsmin( def, scale ) use plplot_flt real(kind=plflt) :: def, scale - end subroutine plsmin - end interface + end subroutine plsmin + end interface - interface - subroutine plsori( rot ) + interface + subroutine plsori( rot ) integer :: rot - end subroutine plsori - end interface + end subroutine plsori + end interface - interface - subroutine plspage( xpmm, ypmm, xwid, ywid, xoff, yoff ) + interface + subroutine plspage( xpmm, ypmm, xwid, ywid, xoff, yoff ) use plplot_flt real(kind=plflt) :: xpmm, ypmm integer :: xwid, ywid, xoff, yoff - end subroutine plspage - end interface + end subroutine plspage + end interface - interface plspause - module procedure plspause - end interface + interface plspause + module procedure plspause + end interface - interface - subroutine plsstrm( strm ) + interface + subroutine plsstrm( strm ) integer :: strm - end subroutine plsstrm - end interface + end subroutine plsstrm + end interface - interface - subroutine plssub( nx, ny ) + interface + subroutine plssub( nx, ny ) integer :: nx, ny - end subroutine plssub - end interface + end subroutine plssub + end interface - interface - subroutine plssym( def, scale ) + interface + subroutine plssym( def, scale ) use plplot_flt real(kind=plflt) :: def, scale - end subroutine plssym - end interface + end subroutine plssym + end interface - interface - subroutine plstar( nx, ny ) + interface + subroutine plstar( nx, ny ) integer :: nx, ny - end subroutine plstar - end interface + end subroutine plstar + end interface - interface plstransform - subroutine plstransform1( transformfunc ) - interface - subroutine transformfunc(x, y, xt, yt) - use plplot_flt - implicit none - real(kind=plflt) :: x, y, xt, yt - end subroutine transformfunc - end interface - end subroutine plstransform1 + interface plstransform + subroutine plstransform1( transformfunc ) + interface + subroutine transformfunc(x, y, xt, yt) + use plplot_flt + implicit none + real(kind=plflt) :: x, y, xt, yt + end subroutine transformfunc + end interface + end subroutine plstransform1 - subroutine plstransform2( dummy ) - implicit none - integer :: dummy - end subroutine plstransform2 + subroutine plstransform2( dummy ) + implicit none + integer :: dummy + end subroutine plstransform2 - subroutine plstransform3 - end subroutine plstransform3 + subroutine plstransform3 + end subroutine plstransform3 - end interface + end interface - interface - subroutine plstripa( id, pen, x, y ) + interface + subroutine plstripa( id, pen, x, y ) use plplot_flt integer :: id, pen real(kind=plflt) :: x, y - end subroutine plstripa - end interface + end subroutine plstripa + end interface - interface - subroutine plstripd( id ) + interface + subroutine plstripd( id ) integer :: id - end subroutine plstripd - end interface + end subroutine plstripd + end interface - interface - subroutine plstyl( n, mark, space ) + interface + subroutine plstyl( n, mark, space ) integer :: n, mark, space - end subroutine plstyl - end interface + end subroutine plstyl + end interface - interface plsurf3d - module procedure plsurf3d - end interface + interface plsurf3d + module procedure plsurf3d + end interface - interface plstripc - module procedure plstripc - end interface + interface plstripc + module procedure plstripc + end interface - interface plsvect - module procedure plsvect - end interface + interface plsvect + module procedure plsvect + end interface - interface - subroutine plsvpa( xmin, xmax, ymin, ymax ) + interface + subroutine plsvpa( xmin, xmax, ymin, ymax ) use plplot_flt real(kind=plflt) :: xmin, xmax, ymin, ymax - end subroutine plsvpa - end interface + end subroutine plsvpa + end interface - interface - subroutine plsxax( digmax, digits ) + interface + subroutine plsxax( digmax, digits ) integer :: digmax, digits - end subroutine plsxax - end interface + end subroutine plsxax + end interface - interface - subroutine plsyax( digmax, digits ) + interface + subroutine plsyax( digmax, digits ) integer :: digmax, digits - end subroutine plsyax - end interface + end subroutine plsyax + end interface - interface plsym - module procedure plsym - end interface + interface plsym + module procedure plsym + end interface - interface - subroutine plszax( digmax, digits ) + interface + subroutine plszax( digmax, digits ) integer :: digmax, digits - end subroutine plszax - end interface + end subroutine plszax + end interface - interface - subroutine pltext - end subroutine pltext - end interface + interface + subroutine pltext + end subroutine pltext + end interface - interface - subroutine plvasp( aspect ) + interface + subroutine plvasp( aspect ) use plplot_flt real(kind=plflt) :: aspect - end subroutine plvasp - end interface + end subroutine plvasp + end interface - interface - subroutine plvpas( xmin, xmax, ymin, ymax, aspect ) + interface + subroutine plvpas( xmin, xmax, ymin, ymax, aspect ) use plplot_flt real(kind=plflt) :: xmin, xmax, ymin, ymax, aspect - end subroutine plvpas - end interface + end subroutine plvpas + end interface - interface - subroutine plvpor( xmin, xmax, ymin, ymax ) + interface + subroutine plvpor( xmin, xmax, ymin, ymax ) use plplot_flt real(kind=plflt) :: xmin, xmax, ymin, ymax - end subroutine plvpor - end interface + end subroutine plvpor + end interface - interface - subroutine plvsta - end subroutine plvsta - end interface + interface + subroutine plvsta + end subroutine plvsta + end interface - interface - subroutine plw3d( basex, basey, height, xmin, xmax, ymin, ymax, zmin, zmax, alt, az ) + interface + subroutine plw3d( basex, basey, height, xmin, xmax, ymin, ymax, zmin, zmax, alt, az ) use plplot_flt real(kind=plflt) :: basex, basey, height, xmin, xmax, ymin, ymax, zmin, zmax, alt, az - end subroutine plw3d - end interface + end subroutine plw3d + end interface - interface - subroutine plwid( width ) + interface + subroutine plwid( width ) integer :: width - end subroutine plwid - end interface + end subroutine plwid + end interface - interface - subroutine plwind( xmin, xmax, ymin, ymax ) + interface + subroutine plwind( xmin, xmax, ymin, ymax ) use plplot_flt real(kind=plflt) :: xmin, xmax, ymin, ymax - end subroutine plwind - end interface + end subroutine plwind + end interface - interface plxormod - module procedure plxormod - end interface + interface plxormod + module procedure plxormod + end interface - private :: convert_to_int - private :: convert_to_log + private :: convert_to_int + private :: convert_to_log ! ------------------------------------------------------------------- - contains +contains ! ------------------------------------------------------------------- - integer function convert_to_int( logvalue ) - logical :: logvalue - if ( logvalue ) then - convert_to_int = 1 - else - convert_to_int = 0 - endif - end function convert_to_int + integer function convert_to_int( logvalue ) + logical :: logvalue + if ( logvalue ) then + convert_to_int = 1 + else + convert_to_int = 0 + endif + end function convert_to_int - logical function convert_to_log( intvalue ) - integer :: intvalue - convert_to_log = intvalue.ne.0 - end function convert_to_log + logical function convert_to_log( intvalue ) + integer :: intvalue + convert_to_log = intvalue.ne.0 + end function convert_to_log - subroutine plbin( x, y, center ) - real(kind=plflt), dimension(:) :: x, y - integer :: center + subroutine plbin( x, y, center ) + real(kind=plflt), dimension(:) :: x, y + integer :: center - call plbinf77( size(x), x, y, center ) - end subroutine plbin + call plbinf77( size(x), x, y, center ) + end subroutine plbin - subroutine plcpstrm( iplsr, flags ) - integer :: iplsr - logical :: flags + subroutine plcpstrm( iplsr, flags ) + integer :: iplsr + logical :: flags - integer :: iflags + integer :: iflags - iflags = convert_to_int( flags ) - call plcpstrmf77( iplsr, iflags ) - end subroutine plcpstrm + iflags = convert_to_int( flags ) + call plcpstrmf77( iplsr, iflags ) + end subroutine plcpstrm - subroutine plerrx( xmin, xmax, y ) - real(kind=plflt), dimension(:) :: xmin, xmax, y + subroutine plerrx( xmin, xmax, y ) + real(kind=plflt), dimension(:) :: xmin, xmax, y - call plerrxf77( size(xmin), xmin, xmax, y ) - end subroutine plerrx + call plerrxf77( size(xmin), xmin, xmax, y ) + end subroutine plerrx - subroutine plerry( x, ymin, ymax ) - real(kind=plflt), dimension(:) :: x, ymin, ymax + subroutine plerry( x, ymin, ymax ) + real(kind=plflt), dimension(:) :: x, ymin, ymax - call plerryf77( size(x), x, ymin, ymax ) - end subroutine plerry + call plerryf77( size(x), x, ymin, ymax ) + end subroutine plerry - subroutine plfill( x, y ) - real(kind=plflt), dimension(:) :: x, y + subroutine plfill( x, y ) + real(kind=plflt), dimension(:) :: x, y - call plfillf77( size(x), x, y ) - end subroutine plfill + call plfillf77( size(x), x, y ) + end subroutine plfill - subroutine plfill3( x, y, z ) - real(kind=plflt), dimension(:) :: x, y, z + subroutine plfill3( x, y, z ) + real(kind=plflt), dimension(:) :: x, y, z - call plfill3f77( size(x), x, y, z ) - end subroutine plfill3 + call plfill3f77( size(x), x, y, z ) + end subroutine plfill3 - subroutine plgradient( x, y, angle ) - real(kind=plflt), dimension(:) :: x, y - real(kind=plflt) :: angle + subroutine plgradient( x, y, angle ) + real(kind=plflt), dimension(:) :: x, y + real(kind=plflt) :: angle - call plgradientf77( size(x), x, y, angle ) - end subroutine plgradient + call plgradientf77( size(x), x, y, angle ) + end subroutine plgradient - subroutine plgriddata( x, y, z, xg, yg, zg, type, data ) - real(kind=plflt), dimension(:) :: x, y, z, xg, yg - real(kind=plflt), dimension(:,:) :: zg - real(kind=plflt) :: data - integer :: type + subroutine plgriddata( x, y, z, xg, yg, zg, type, data ) + real(kind=plflt), dimension(:) :: x, y, z, xg, yg + real(kind=plflt), dimension(:,:) :: zg + real(kind=plflt) :: data + integer :: type - call plgriddataf77( x, y, z, size(x), xg, size(xg), yg, size(yg), zg, & - type, data ) + call plgriddataf77( x, y, z, size(x), xg, size(xg), yg, size(yg), zg, & + type, data ) - return - end subroutine plgriddata + return + end subroutine plgriddata - subroutine plhist( data, datmin, datmax, nbin, oldwin ) - real(kind=plflt), dimension(:) :: data - real(kind=plflt) :: datmin, datmax - integer :: nbin, oldwin + subroutine plhist( data, datmin, datmax, nbin, oldwin ) + real(kind=plflt), dimension(:) :: data + real(kind=plflt) :: datmin, datmax + integer :: nbin, oldwin - call plhistf77( size(data), data, datmin, datmax, nbin, oldwin ) - end subroutine plhist + call plhistf77( size(data), data, datmin, datmax, nbin, oldwin ) + end subroutine plhist ! subroutine plimagefr( idata, xmin, xmax, ymin, ymax, zmin, zmax, & ! dxmin, dxmax, dymin, dymax, valuemin, valuemax ) @@ -1060,419 +1062,418 @@ ! dxmin, dxmax, dymin, dymax, valuemin, valuemax ) ! end subroutine plimagefr - subroutine plimage( idata, xmin, xmax, ymin, ymax, zmin, zmax, & - dxmin, dxmax, dymin, dymax ) - real(kind=plflt), dimension(:,:) :: idata - real(kind=plflt) :: xmin, xmax, ymin, ymax, zmin, zmax - real(kind=plflt) :: dxmin, dxmax, dymin, dymax + subroutine plimage( idata, xmin, xmax, ymin, ymax, zmin, zmax, & + dxmin, dxmax, dymin, dymax ) + real(kind=plflt), dimension(:,:) :: idata + real(kind=plflt) :: xmin, xmax, ymin, ymax, zmin, zmax + real(kind=plflt) :: dxmin, dxmax, dymin, dymax - integer :: nx, ny + integer :: nx, ny - nx = size(idata,1) - ny = size(idata,2) - call plimagef77( idata, nx, ny, xmin, xmax, ymin, ymax, zmin, zmax, & - dxmin, dxmax, dymin, dymax ) - end subroutine plimage + nx = size(idata,1) + ny = size(idata,2) + call plimagef77( idata, nx, ny, xmin, xmax, ymin, ymax, zmin, zmax, & + dxmin, dxmax, dymin, dymax ) + end subroutine plimage - subroutine pllegend_1( legend_width, legend_height, & - & opt, position, x, y, & - & plot_width, bg_color, bb_color, bb_style, & - & nrow, ncolumn, nlegend, opt_array, & - & text_offset, text_scale, text_spacing, & - & text_justification, text_colors, text, & - & box_colors, box_patterns, box_scales, & - & box_line_widths, & - & line_colors, line_styles, line_widths, & - & symbol_colors, symbol_scales, & - & symbol_numbers, symbols ) + subroutine pllegend_1( legend_width, legend_height, & + opt, position, x, y, & + plot_width, bg_color, bb_color, bb_style, & + nrow, ncolumn, nlegend, opt_array, & + text_offset, text_scale, text_spacing, & + text_justification, text_colors, text, & + box_colors, box_patterns, box_scales, & + box_line_widths, & + line_colors, line_styles, line_widths, & + symbol_colors, symbol_scales, & + symbol_numbers, symbols ) - real(kind=plflt) :: legend_width, legend_height, plot_width, x, y - real(kind=plflt) :: text_offset, text_scale, text_spacing, text_justification - integer :: position, opt, bg_color, bb_color, bb_style - integer :: nrow, ncolumn, nlegend + real(kind=plflt) :: legend_width, legend_height, plot_width, x, y + real(kind=plflt) :: text_offset, text_scale, text_spacing, text_justification + integer :: position, opt, bg_color, bb_color, bb_style + integer :: nrow, ncolumn, nlegend - character(len=*), dimension(:) :: text, symbols + character(len=*), dimension(:) :: text, symbols - integer, dimension(:) :: opt_array, text_colors, box_colors - integer, dimension(:) :: box_patterns, box_line_widths - integer, dimension(:) :: line_colors, line_styles, line_widths - integer, dimension(:) :: symbol_colors, symbol_numbers - real(kind=plflt), dimension(:) :: box_scales, symbol_scales + integer, dimension(:) :: opt_array, text_colors, box_colors + integer, dimension(:) :: box_patterns, box_line_widths + integer, dimension(:) :: line_colors, line_styles, line_widths + integer, dimension(:) :: symbol_colors, symbol_numbers + real(kind=plflt), dimension(:) :: box_scales, symbol_scales - ! - ! Convert the text arrays and store the results in a convenient - ! albeit global location. This way we avoid all manner of complications. - ! (Though introducing a potentially nasty one: non-threadsafety) - ! - call pllegend07_cnv_text( 1, nlegend, text ) - call pllegend07_cnv_text( 2, nlegend, symbols ) + ! + ! Convert the text arrays and store the results in a convenient + ! albeit global location. This way we avoid all manner of complications. + ! (Though introducing a potentially nasty one: non-threadsafety) + ! + call pllegend07_cnv_text( 1, nlegend, text ) + call pllegend07_cnv_text( 2, nlegend, symbols ) - call pllegend07( legend_width, legend_height, opt, position, x, y, & - plot_width, bg_color, bb_color, bb_style, & - nrow, ncolumn, nlegend, opt_array, & - text_offset, text_scale, text_spacing, & - text_justification, text_colors, & - box_colors, box_patterns, box_scales, & - box_line_widths, & - line_colors, line_styles, line_widths, & - symbol_colors, symbol_scales, & - symbol_numbers ) + call pllegend07( legend_width, legend_height, opt, position, x, y, & + plot_width, bg_color, bb_color, bb_style, & + nrow, ncolumn, nlegend, opt_array, & + text_offset, text_scale, text_spacing, & + text_justification, text_colors, & + box_colors, box_patterns, box_scales, & + box_line_widths, & + line_colors, line_styles, line_widths, & + symbol_colors, symbol_scales, & + symbol_numbers ) - end subroutine pllegend_1 + end subroutine pllegend_1 - subroutine pllegend_2( legend_width, legend_height, & - & opt, position, x, y, & - & plot_width, bg_color, bb_color, bb_style, & - & nrow, ncolumn, opt_array, & - & text_offset, text_scale, text_spacing, & - & text_justification, text_colors, text, & - & box_colors, box_patterns, box_scales, & - & box_line_widths, & - & line_colors, line_styles, line_widths, & - & symbol_colors, symbol_scales, & - & symbol_numbers, symbols ) + subroutine pllegend_2( legend_width, legend_height, & + opt, position, x, y, & + plot_width, bg_color, bb_color, bb_style, & + nrow, ncolumn, opt_array, & + text_offset, text_scale, text_spacing, & + text_justification, text_colors, text, & + box_colors, box_patterns, box_scales, & + box_line_widths, & + line_colors, line_styles, line_widths, & + symbol_colors, symbol_scales, & + symbol_numbers, symbols ) - real(kind=plflt) :: legend_width, legend_height, plot_width, x, y - real(kind=plflt) :: text_offset, text_scale, text_spacing, text_justification - integer :: position, opt, bg_color, bb_color, bb_style - integer :: nrow, ncolumn + real(kind=plflt) :: legend_width, legend_height, plot_width, x, y + real(kind=plflt) :: text_offset, text_scale, text_spacing, text_justification + integer :: position, opt, bg_color, bb_color, bb_style + integer :: nrow, ncolumn - character(len=*), dimension(:) :: text, symbols + character(len=*), dimension(:) :: text, symbols - integer, dimension(:) :: opt_array, text_colors, box_colors - integer, dimension(:) :: box_patterns, box_line_widths - integer, dimension(:) :: line_colors, line_styles, line_widths - integer, dimension(:) :: symbol_colors, symbol_numbers - real(kind=plflt), dimension(:) :: box_scales, symbol_scales + integer, dimension(:) :: opt_array, text_colors, box_colors + integer, dimension(:) :: box_patterns, box_line_widths + integer, dimension(:) :: line_colors, line_styles, line_widths + integer, dimension(:) :: symbol_colors, symbol_numbers + real(kind=plflt), dimension(:) :: box_scales, symbol_scales - integer :: nlegend + integer :: nlegend - ! - ! Determine number of legend entries - ! - nlegend = min( size(opt_array), size(text) ) + ! + ! Determine number of legend entries + ! + nlegend = min( size(opt_array), size(text) ) - call pllegend_1( legend_width, legend_height, & - opt, position, x, y, & - plot_width, bg_color, bb_color, bb_style, & - nrow, ncolumn, nlegend, opt_array, & - text_offset, text_scale, text_spacing, & - text_justification, text_colors, text, & - box_colors, box_patterns, box_scales, & - box_line_widths, & - line_colors, line_styles, line_widths, & - symbol_colors, symbol_scales, & - symbol_numbers, symbols ) + call pllegend_1( legend_width, legend_height, & + opt, position, x, y, & + plot_width, bg_color, bb_color, bb_style, & + nrow, ncolumn, nlegend, opt_array, & + text_offset, text_scale, text_spacing, & + text_justification, text_colors, text, & + box_colors, box_patterns, box_scales, & + box_line_widths, & + line_colors, line_styles, line_widths, & + symbol_color... [truncated message content] |
From: <and...@us...> - 2013-11-05 14:27:19
|
Revision: 12657 http://sourceforge.net/p/plplot/code/12657 Author: andrewross Date: 2013-11-05 14:27:16 +0000 (Tue, 05 Nov 2013) Log Message: ----------- Add plpath to f95 bindings. Modified Paths: -------------- trunk/bindings/f95/plstubs.h trunk/bindings/f95/scstubs.c trunk/bindings/f95/sfstubsf95.f90 Modified: trunk/bindings/f95/plstubs.h =================================================================== --- trunk/bindings/f95/plstubs.h 2013-11-05 14:23:03 UTC (rev 12656) +++ trunk/bindings/f95/plstubs.h 2013-11-05 14:27:16 UTC (rev 12657) @@ -272,6 +272,7 @@ #define PLPARSEOPTS7 FNAME( PLPARSEOPTS7, plparseopts7 ) #define PLPAT FNAME( PLPAT, plpat ) +#define PLPATH FNAME( PLPATH, plpath ) #define PLPOIN FNAME( PLPOINF77, plpoinf77 ) #define PLPOIN3 FNAME( PLPOIN3F77, plpoin3f77 ) #define PLPOLY3 FNAME( PLPOLY3F77, plpoly3f77 ) Modified: trunk/bindings/f95/scstubs.c =================================================================== --- trunk/bindings/f95/scstubs.c 2013-11-05 14:23:03 UTC (rev 12656) +++ trunk/bindings/f95/scstubs.c 2013-11-05 14:27:16 UTC (rev 12657) @@ -1019,6 +1019,12 @@ } void +PLPATH( PLINT *n, PLFLT *x1, PLFLT *y1, PLFLT *x2, PLFLT *y2 ) +{ + c_plpath( *n, *x1, *y1, *x2, *y2 ); +} + +void PLPOIN( PLINT *n, PLFLT *x, PLFLT *y, PLINT *code ) { c_plpoin( *n, x, y, *code ); Modified: trunk/bindings/f95/sfstubsf95.f90 =================================================================== --- trunk/bindings/f95/sfstubsf95.f90 2013-11-05 14:23:03 UTC (rev 12656) +++ trunk/bindings/f95/sfstubsf95.f90 2013-11-05 14:27:16 UTC (rev 12657) @@ -524,6 +524,14 @@ end subroutine plpat end interface + interface + subroutine plpath( n, x1, y1, x2, y2 ) + use plplot_flt + integer :: n + real(kind=plflt) :: x1, y1, x2, y2 + end subroutine plpath + end interface + interface plot3d module procedure plot3d end interface This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <arj...@us...> - 2013-11-22 13:21:12
|
Revision: 12737 http://sourceforge.net/p/plplot/code/12737 Author: arjenmarkus Date: 2013-11-22 13:21:08 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Parameters (named constants) are not entities in the object files. They do not exist at link time, so they can not be contained in the export definition. Added missing routines (related to plcolorbar) to the definition file. Modified Paths: -------------- trunk/bindings/f95/plplotf95.def trunk/bindings/f95/plplotf95_ifort.def trunk/bindings/f95/plplotf95_mingw.def Modified: trunk/bindings/f95/plplotf95.def =================================================================== --- trunk/bindings/f95/plplotf95.def 2013-11-22 13:19:51 UTC (rev 12736) +++ trunk/bindings/f95/plplotf95.def 2013-11-22 13:21:08 UTC (rev 12737) @@ -10,6 +10,8 @@ _PLPLOTP_mp_PLAXES@40 _PLPLOTP_mp_PLBOX@32 _PLPLOTP_mp_PLBOX3@72 + _PLPLOTP_mp_PLCOLORBAR_1@96 + _PLPLOTP_mp_PLCOLORBAR_2@88 _PLPLOTP_mp_PLCONTOUR_0@24 _PLPLOTP_mp_PLCONTOUR_1@32 _PLPLOTP_mp_PLCONTOUR_2@32 Modified: trunk/bindings/f95/plplotf95_ifort.def =================================================================== --- trunk/bindings/f95/plplotf95_ifort.def 2013-11-22 13:19:51 UTC (rev 12736) +++ trunk/bindings/f95/plplotf95_ifort.def 2013-11-22 13:21:08 UTC (rev 12737) @@ -1,51 +1,5 @@ LIBRARY plplotf95d.dll EXPORTS - PLPLOT_mp_DRAW_LINEX - PLPLOT_mp_DRAW_LINEY - PLPLOT_mp_DRAW_LINEXY - PLPLOT_mp_MAG_COLOR - PLPLOT_mp_BASE_CONT - PLPLOT_mp_TOP_CONT - PLPLOT_mp_SURF_CONT - PLPLOT_mp_DRAW_SIDES - PLPLOT_mp_FACETED - PLPLOT_mp_MESH - PLPLOT_mp_PL_OPT_ENABLED - PLPLOT_mp_PL_OPT_ARG - PLPLOT_mp_PL_OPT_NODELETE - PLPLOT_mp_PL_OPT_INVISIBLE - PLPLOT_mp_PL_OPT_DISABLED - PLPLOT_mp_PL_OPT_FUNC - PLPLOT_mp_PL_OPT_BOOL - PLPLOT_mp_PL_OPT_INT - PLPLOT_mp_PL_OPT_FLOAT - PLPLOT_mp_PL_OPT_STRING - PLPLOT_mp_PL_PARSE_PARTIAL - PLPLOT_mp_PL_PARSE_FULL - PLPLOT_mp_PL_PARSE_QUIET - PLPLOT_mp_PL_PARSE_NODELETE - PLPLOT_mp_PL_PARSE_SHOWALL - PLPLOT_mp_PL_PARSE_OVERRIDE - PLPLOT_mp_PL_PARSE_NOPROGRAM - PLPLOT_mp_PL_PARSE_NODASH - PLPLOT_mp_PL_PARSE_SKIP - PLPLOT_mp_PL_FCI_IMPOSSIBLE - PLPLOT_mp_PL_FCI_HEXDIGIT_MASK - PLPLOT_mp_PL_FCI_HEXPOWER_MASK - PLPLOT_mp_PL_FCI_HEXPOWER_IMPOSSIBLE - PLPLOT_mp_PL_FCI_FAMILY - PLPLOT_mp_PL_FCI_STYLE - PLPLOT_mp_PL_FCI_WEIGHT - PLPLOT_mp_PL_FCI_SANS - PLPLOT_mp_PL_FCI_SERIF - PLPLOT_mp_PL_FCI_MONO - PLPLOT_mp_PL_FCI_SCRIPT - PLPLOT_mp_PL_FCI_SYMBOL - PLPLOT_mp_PL_FCI_UPRIGHT - PLPLOT_mp_PL_FCI_ITALIC - PLPLOT_mp_PL_FCI_OBLIQUE - PLPLOT_mp_PL_FCI_MEDIUM - PLPLOT_mp_PL_FCI_BOLD PLPARSEOPTS PLPLOTP_mp_PLSETOPT PLPLOTP_mp_PLSDEV @@ -56,6 +10,8 @@ PLPLOTP_mp_PLAXES PLPLOTP_mp_PLBOX PLPLOTP_mp_PLBOX3 + PLPLOT_mp_PLCOLORBAR_1 + PLPLOT_mp_PLCOLORBAR_2 PLPLOTP_mp_PLCONTOUR_0 PLPLOTP_mp_PLCONTOUR_1 PLPLOTP_mp_PLCONTOUR_2 Modified: trunk/bindings/f95/plplotf95_mingw.def =================================================================== --- trunk/bindings/f95/plplotf95_mingw.def 2013-11-22 13:19:51 UTC (rev 12736) +++ trunk/bindings/f95/plplotf95_mingw.def 2013-11-22 13:21:08 UTC (rev 12737) @@ -4,6 +4,8 @@ __plplotp_MOD_plaxes __plplotp_MOD_plbox3 __plplotp_MOD_plbox + __plplotp_MOD_plcolorbar_1 + __plplotp_MOD_plcolorbar_2 __plplotp_MOD_plcontour_0 __plplotp_MOD_plcontour_1 __plplotp_MOD_plcontour_2 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <arj...@us...> - 2013-12-06 07:20:50
|
Revision: 12820 http://sourceforge.net/p/plplot/code/12820 Author: arjenmarkus Date: 2013-12-06 07:20:46 +0000 (Fri, 06 Dec 2013) Log Message: ----------- Support the "rectangular" argument to plshades Modified Paths: -------------- trunk/bindings/f95/sccont.c trunk/bindings/f95/sfstubs.f90 Modified: trunk/bindings/f95/sccont.c =================================================================== --- trunk/bindings/f95/sccont.c 2013-12-06 00:23:27 UTC (rev 12819) +++ trunk/bindings/f95/sccont.c 2013-12-06 07:20:46 UTC (rev 12820) @@ -73,12 +73,12 @@ void PLSHADES07( PLFLT *z, PLINT *nx, PLINT *ny, const char *defined, PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, PLFLT *clevel, PLINT *nlevel, PLFLT *fill_width, - PLINT *cont_color, PLFLT *cont_width, PLINT *lx ); + PLINT *cont_color, PLFLT *cont_width, PLINT *lx, PLINT *rect ); void PLSHADES17( PLFLT *z, PLINT *nx, PLINT *ny, const char *defined, PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, PLFLT *clevel, PLINT *nlevel, PLFLT *fill_width, PLINT *cont_color, PLFLT *cont_width, - PLFLT *xg1, PLFLT *yg1, PLINT *lx ); + PLFLT *xg1, PLFLT *yg1, PLINT *lx, PLINT *rect ); void PLSHADES27( PLFLT *z, PLINT *nx, PLINT *ny, const char *defined, PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, PLFLT *clevel, PLINT *nlevel, PLFLT *fill_width, @@ -519,9 +519,8 @@ PLSHADES07( PLFLT *z, PLINT *nx, PLINT *ny, const char * PL_UNUSED( defined ), PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, PLFLT *clevel, PLINT *nlevel, PLFLT *fill_width, - PLINT *cont_color, PLFLT *cont_width, PLINT *lx ) + PLINT *cont_color, PLFLT *cont_width, PLINT *lx, PLINT *rect ) { - PLINT rect = 1; PLFLT ** a; int i, j; @@ -539,7 +538,7 @@ *xmin, *xmax, *ymin, *ymax, clevel, *nlevel, *fill_width, *cont_color, *cont_width, - c_plfill, rect, NULL, NULL ); + c_plfill, *rect, NULL, NULL ); // Clean up memory allocated for a plFree2dGrid( a, *nx, *ny ); @@ -550,9 +549,8 @@ PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, PLFLT *clevel, PLINT *nlevel, PLFLT *fill_width, PLINT *cont_color, PLFLT *cont_width, - PLFLT *xg1, PLFLT *yg1, PLINT *lx ) + PLFLT *xg1, PLFLT *yg1, PLINT *lx, PLINT *rect ) { - PLINT rect = 1; PLFLT ** a; int i, j; PLcGrid cgrid; @@ -576,12 +574,15 @@ *xmin, *xmax, *ymin, *ymax, clevel, *nlevel, *fill_width, *cont_color, *cont_width, - c_plfill, rect, pltr1, ( PLPointer ) & cgrid ); + c_plfill, *rect, pltr1, ( PLPointer ) & cgrid ); // Clean up memory allocated for a plFree2dGrid( a, *nx, *ny ); } + +// Note that in this case the rectangular argument should always be 0, +// it makes no sense to propagate it as an optional argument void PLSHADES27( PLFLT *z, PLINT *nx, PLINT *ny, const char * PL_UNUSED( defined ), PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, Modified: trunk/bindings/f95/sfstubs.f90 =================================================================== --- trunk/bindings/f95/sfstubs.f90 2013-12-06 00:23:27 UTC (rev 12819) +++ trunk/bindings/f95/sfstubs.f90 2013-12-06 07:20:46 UTC (rev 12820) @@ -502,22 +502,30 @@ subroutine plshades_multiple_0(z, defined, & xmin, xmax, ymin, ymax, & clevel, fill_width, & - cont_color, cont_width ) + cont_color, cont_width, rectangular) implicit none character defined*(*) integer cont_color + logical, optional :: rectangular real(kind=plflt) fill_width, cont_width real(kind=plflt) clevel(:) real(kind=plflt) z(:,:), xmin, xmax, ymin, ymax + integer rect + ! call plstrf2c(dnam, string1) + rect = 1 + if ( present(rectangular) ) then + rect = merge( 1, 0, rectangular ) + endif + s1 = transfer( string1, s1 ) call plshades07(z, size(z,1), size(z,2), s1, & xmin, xmax, ymin, ymax, & clevel, size(clevel), fill_width, & - cont_color, cont_width, size(z,1)) + cont_color, cont_width, size(z,1), rect) end subroutine @@ -526,23 +534,31 @@ subroutine plshades_multiple_1(z, defined, & xmin, xmax, ymin, ymax, & clevel, fill_width, & - cont_color, cont_width, xg1, yg1) + cont_color, cont_width, xg1, yg1, rectangular) implicit none character defined*(*) integer cont_color + logical, optional :: rectangular real(kind=plflt) fill_width, cont_width real(kind=plflt) clevel(:) real(kind=plflt) z(:,:), xmin, xmax, ymin, ymax, & xg1(:), yg1(:) + integer rect + ! call plstrf2c(dnam, string1) + rect = 1 + if ( present(rectangular) ) then + rect = merge( 1, 0, rectangular ) + endif + s1 = transfer( string1, s1 ) call plshades17(z, size(z,1), size(z,2), s1, & xmin, xmax, ymin, ymax, & clevel, size(clevel), fill_width, & - cont_color, cont_width, xg1, yg1, size(z,1)) + cont_color, cont_width, xg1, yg1, size(z,1), rect) end subroutine This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <arj...@us...> - 2013-12-09 19:33:56
|
Revision: 12836 http://sourceforge.net/p/plplot/code/12836 Author: arjenmarkus Date: 2013-12-09 19:33:53 +0000 (Mon, 09 Dec 2013) Log Message: ----------- Add the "rectangular" argument to all variants of plshades. It may not be useful in some cases, but it does not hurt and restores the symmetry. Note: plshades_multiple_tr now uses a default "rectangular" option of 0 - previously it was 1, but I think that was a mistake, as in most cases the transformation of the coordinates will not result in rectangles. Modified Paths: -------------- trunk/bindings/f95/plplotf95.def trunk/bindings/f95/plplotf95_ifort.def trunk/bindings/f95/plplotf95_mingw.def trunk/bindings/f95/sccont.c trunk/bindings/f95/sfstubs.f90 trunk/bindings/f95/sfstubsf95.f90 Modified: trunk/bindings/f95/plplotf95.def =================================================================== --- trunk/bindings/f95/plplotf95.def 2013-12-09 19:18:22 UTC (rev 12835) +++ trunk/bindings/f95/plplotf95.def 2013-12-09 19:33:53 UTC (rev 12836) @@ -33,7 +33,9 @@ _PLPLOTP_mp_PLSHADES_MULTIPLE_1@52 _PLPLOTP_mp_PLSHADES_MULTIPLE_1R@56 _PLPLOTP_mp_PLSHADES_MULTIPLE_2@52 + _PLPLOTP_mp_PLSHADES_MULTIPLE_2R@56 _PLPLOTP_mp_PLSHADES_MULTIPLE_TR@48 + _PLPLOTP_mp_PLSHADES_MULTIPLE_TRR@52 _PLPLOTP_mp_PLSPAL0@8 _PLPLOTP_mp_PLSPAL1@12 _PLPLOTP_mp_PLLAB@24 Modified: trunk/bindings/f95/plplotf95_ifort.def =================================================================== --- trunk/bindings/f95/plplotf95_ifort.def 2013-12-09 19:18:22 UTC (rev 12835) +++ trunk/bindings/f95/plplotf95_ifort.def 2013-12-09 19:33:53 UTC (rev 12836) @@ -33,7 +33,9 @@ PLPLOTP_mp_PLSHADES_MULTIPLE_1 PLPLOTP_mp_PLSHADES_MULTIPLE_1R PLPLOTP_mp_PLSHADES_MULTIPLE_2 + PLPLOTP_mp_PLSHADES_MULTIPLE_2R PLPLOTP_mp_PLSHADES_MULTIPLE_TR + PLPLOTP_mp_PLSHADES_MULTIPLE_TRR PLPLOTP_mp_PLSPAL0 PLPLOTP_mp_PLSPAL1 PLPLOTP_mp_PLLAB Modified: trunk/bindings/f95/plplotf95_mingw.def =================================================================== --- trunk/bindings/f95/plplotf95_mingw.def 2013-12-09 19:18:22 UTC (rev 12835) +++ trunk/bindings/f95/plplotf95_mingw.def 2013-12-09 19:33:53 UTC (rev 12836) @@ -40,7 +40,9 @@ __plplotp_MOD_plshades_multiple_1 __plplotp_MOD_plshades_multiple_1r __plplotp_MOD_plshades_multiple_2 + __plplotp_MOD_plshades_multiple_2r __plplotp_MOD_plshades_multiple_tr + __plplotp_MOD_plshades_multiple_trr __plplotp_MOD_plspal0 __plplotp_MOD_plspal1 __plplotp_MOD_plstart Modified: trunk/bindings/f95/sccont.c =================================================================== --- trunk/bindings/f95/sccont.c 2013-12-09 19:18:22 UTC (rev 12835) +++ trunk/bindings/f95/sccont.c 2013-12-09 19:33:53 UTC (rev 12836) @@ -83,11 +83,11 @@ PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, PLFLT *clevel, PLINT *nlevel, PLFLT *fill_width, PLINT *cont_color, PLFLT *cont_width, - PLFLT *xg2, PLFLT *yg2, PLINT *lx ); + PLFLT *xg2, PLFLT *yg2, PLINT *lx, PLINT *rect ); void PLSHADES7( PLFLT *z, PLINT *nx, PLINT *ny, const char *defined, PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, PLFLT *clevel, PLINT *nlevel, PLFLT *fill_width, - PLINT *cont_color, PLFLT *cont_width, PLFLT *ftr, PLINT *lx ); + PLINT *cont_color, PLFLT *cont_width, PLFLT *ftr, PLINT *lx, PLINT *rect ); void PLGRIDDATA( PLFLT *x, PLFLT *y, PLFLT *z, PLINT *npts, PLFLT *xg, PLINT *nx, PLFLT *yg, PLINT *ny, PLFLT *zg, PLINT *type, PLFLT *data ); @@ -580,17 +580,13 @@ plFree2dGrid( a, *nx, *ny ); } - -// Note that in this case the rectangular argument should always be 0, -// it makes no sense to propagate it as an optional argument void PLSHADES27( PLFLT *z, PLINT *nx, PLINT *ny, const char * PL_UNUSED( defined ), PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, PLFLT *clevel, PLINT *nlevel, PLFLT *fill_width, PLINT *cont_color, PLFLT *cont_width, - PLFLT *xg2, PLFLT *yg2, PLINT *lx ) + PLFLT *xg2, PLFLT *yg2, PLINT *lx, PLINT *rect ) { - PLINT rect = 0; PLFLT **a; int i, j; PLcGrid2 cgrid2; @@ -615,7 +611,7 @@ *xmin, *xmax, *ymin, *ymax, clevel, *nlevel, *fill_width, *cont_color, *cont_width, - c_plfill, rect, pltr2, (void *) &cgrid2 ); + c_plfill, *rect, pltr2, (void *) &cgrid2 ); // Clean up allocated memory plFree2dGrid( a, *nx, *ny ); @@ -627,9 +623,8 @@ PLSHADES7( PLFLT *z, PLINT *nx, PLINT *ny, const char * PL_UNUSED( defined ), PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, PLFLT *clevel, PLINT *nlevel, PLFLT *fill_width, - PLINT *cont_color, PLFLT *cont_width, PLFLT *ftr, PLINT *lx ) + PLINT *cont_color, PLFLT *cont_width, PLFLT *ftr, PLINT *lx, PLINT *rect ) { - PLINT rect = 1; PLFLT ** a; int i, j; @@ -647,7 +642,7 @@ *xmin, *xmax, *ymin, *ymax, clevel, *nlevel, *fill_width, *cont_color, *cont_width, - c_plfill, rect, pltr, (void *) ftr ); + c_plfill, *rect, pltr, (void *) ftr ); // Clean up memory allocated for a plFree2dGrid( a, *nx, *ny ); Modified: trunk/bindings/f95/sfstubs.f90 =================================================================== --- trunk/bindings/f95/sfstubs.f90 2013-12-09 19:18:22 UTC (rev 12835) +++ trunk/bindings/f95/sfstubs.f90 2013-12-09 19:33:53 UTC (rev 12836) @@ -603,12 +603,46 @@ real(kind=plflt) z(:,:), xmin, xmax, ymin, ymax, & xg2(:,:), yg2(:,:) + integer rect + ! call plstrf2c(dnam, string1) + rect = 0 + s1 = transfer( string1, s1 ) call plshades27(z, size(z,1), size(z,2), s1, & xmin, xmax, ymin, ymax, & clevel, size(clevel), fill_width, & + cont_color, cont_width, xg2, yg2, size(z,1), rect) + + end subroutine + +!*********************************************************************** + + subroutine plshades_multiple_2r(z, defined, & + xmin, xmax, ymin, ymax, & + clevel, fill_width, & + cont_color, cont_width, rectangular, xg2, yg2) + + implicit none + character defined*(*) + integer cont_color + logical rectangular + real(kind=plflt)fill_width, cont_width + real(kind=plflt) clevel(:) + real(kind=plflt) z(:,:), xmin, xmax, ymin, ymax, & + xg2(:,:), yg2(:,:) + + integer rect + + rect = merge( 1, 0, rectangular ) + +! call plstrf2c(dnam, string1) + + s1 = transfer( string1, s1 ) + call plshades27(z, size(z,1), size(z,2), s1, & + xmin, xmax, ymin, ymax, & + clevel, size(clevel), fill_width, & cont_color, cont_width, xg2, yg2, size(z,1)) end subroutine @@ -628,18 +662,52 @@ real(kind=plflt) z(:,:), xmin, xmax, ymin, ymax real(kind=plflt) tr(6) + integer rect + ! call plstrf2c(dnam, string1) + rect = 0 + s1 = transfer( string1, s1 ) call plshades7(z, size(z,1), size(z,2), s1, & xmin, xmax, ymin, ymax, & clevel, size(clevel), fill_width, & - cont_color, cont_width, tr, size(z,1)) + cont_color, cont_width, tr, size(z,1), rect) end subroutine !*********************************************************************** + subroutine plshades_multiple_trr(z, defined, & + xmin, xmax, ymin, ymax, & + clevel, fill_width, & + cont_color, cont_width, rectangular, tr) + + implicit none + character defined*(*) + integer cont_color + logical rectangular + real(kind=plflt) fill_width, cont_width + real(kind=plflt) clevel(:) + real(kind=plflt) z(:,:), xmin, xmax, ymin, ymax + real(kind=plflt) tr(6) + + integer rect + +! call plstrf2c(dnam, string1) + + rect = merge(1, 0, rectangular) + + s1 = transfer( string1, s1 ) + call plshades7(z, size(z,1), size(z,2), s1, & + xmin, xmax, ymin, ymax, & + clevel, size(clevel), fill_width, & + cont_color, cont_width, tr, size(z,1), rect) + + end subroutine + +!*********************************************************************** + subroutine plimagefr_0(z,xmin,xmax,ymin,ymax,zmin,zmax, & valuemin,valuemax) Modified: trunk/bindings/f95/sfstubsf95.f90 =================================================================== --- trunk/bindings/f95/sfstubsf95.f90 2013-12-09 19:18:22 UTC (rev 12835) +++ trunk/bindings/f95/sfstubsf95.f90 2013-12-09 19:33:53 UTC (rev 12836) @@ -112,10 +112,13 @@ module procedure plshades_multiple_1 module procedure plshades_multiple_1r module procedure plshades_multiple_2 + module procedure plshades_multiple_2r module procedure plshades_multiple_tr + module procedure plshades_multiple_trr end interface - private :: plshades_multiple_0, plshades_multiple_1, & - plshades_multiple_2, plshades_multiple_tr + private :: plshades_multiple_0, plshades_multiple_1, plshades_multiple_1r, & + plshades_multiple_2, plshades_multiple_2r, & + plshades_multiple_tr, plshades_multiple_trr interface plimagefr module procedure plimagefr_0 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ai...@us...> - 2009-09-13 17:22:21
|
Revision: 10406 http://plplot.svn.sourceforge.net/plplot/?rev=10406&view=rev Author: airwin Date: 2009-09-13 17:22:14 +0000 (Sun, 13 Sep 2009) Log Message: ----------- Clean up some dependency overkill that was not needed. Configure plflt.inc rather than writing it. Writing that file caused the f95 bindings to get rebuilt in error any time _any_ CMakeLists.txt file was edited. Configuring that file, solves that issue. Modified Paths: -------------- trunk/bindings/f95/CMakeLists.txt Added Paths: ----------- trunk/bindings/f95/plflt.inc.in Modified: trunk/bindings/f95/CMakeLists.txt =================================================================== --- trunk/bindings/f95/CMakeLists.txt 2009-09-13 17:08:28 UTC (rev 10405) +++ trunk/bindings/f95/CMakeLists.txt 2009-09-13 17:22:14 UTC (rev 10406) @@ -30,28 +30,19 @@ ${CMAKE_CURRENT_BINARY_DIR} ) - # Generate the include file that specifies the kind of floating - # point (single vs double) PLplot supports - # - FILE(TO_NATIVE_PATH "${CMAKE_CURRENT_BINARY_DIR}/plflt.inc" INC_FILE) - FILE(WRITE "${INC_FILE}" - "! Include file to control the kind of floating point number\n" - "! used by PLplot (single vs double)\n" - "! This file is automatically generated by CMake\n") + # Configure the Fortran include file that specifies the kind of + # floating-point (single vs double) PLplot supports. if(PL_DOUBLE) - FILE(APPEND "${INC_FILE}" - "integer, parameter :: plflt = kind(1.0d0)\n") + set(ONE_IN_DEFAULT_PRECISION "1.0d0") else(PL_DOUBLE) - FILE(APPEND "${INC_FILE}" - "integer, parameter :: plflt = kind(1.0)\n") + set(ONE_IN_DEFAULT_PRECISION "1.0") endif(PL_DOUBLE) - # Only 4 bytes required in Fortran to represent an unsigned 32-bit - # PLUNICODE. - FILE(APPEND "${INC_FILE}" - "integer, parameter :: plunicode = 4\n") - # Mark the include file as being generated - set_source_files_properties(plflt.inc PROPERTIES GENERATED ON) + configure_file( + ${CMAKE_CURRENT_SOURCE_DIR}/plflt.inc.in + ${CMAKE_CURRENT_BINARY_DIR}/plflt.inc + @ONLY + ) ## Build C part of F95 bindings if(WIN32) @@ -65,7 +56,6 @@ endif(WIN32) set(plplotf95c${LIB_TAG}_LIB_SRCS - plstubs.h sc3d.c sccont.c scstubs.c @@ -105,7 +95,18 @@ RUNTIME DESTINATION ${BIN_DIR} ) - ## Build fortran part of F95 bindings + # Build fortran part of F95 bindings. + # Notes: + + # configurable.f90 is actually not currently configurable. + + # The CMake Fortran dependency scanner finds the Fortran include + # file, sfstub.h, and the configured Fortran include file, + # ${CMAKE_CURRENT_BINARY_DIR}/plflt.inc, and also deals properly with + # the dependencies on those files. Therefore, there is no need to + # include those files in the SRCS list or do anything special with + # their dependencies. + if(STATIC_OPTS) set(plplotf95opts${LIB_TAG}_LIB_SRCS configurable.f90 @@ -113,14 +114,12 @@ set(plplotf95${LIB_TAG}_LIB_SRCS strutil.f90 sfstubsf95.f90 - sfstubs.h ) else(STATIC_OPTS) set(plplotf95${LIB_TAG}_LIB_SRCS strutil.f90 configurable.f90 sfstubsf95.f90 - sfstubs.h ) endif(STATIC_OPTS) @@ -128,10 +127,6 @@ SET(plplotf95${LIB_TAG}_LIB_SRCS ${plplotf95${LIB_TAG}_LIB_SRCS} plplotf95.def) endif(WIN32 AND BUILD_SHARED_LIBS AND NOT MINGW AND NOT CYGWIN) - # Explicitly include dependencies for sfstubsf95.f90 - include(AddFileDependencies) - add_file_dependencies(sfstubsf95.f90 ${CMAKE_CURRENT_BINARY_DIR}/plflt.inc) - add_library(plplotf95${LIB_TAG} ${plplotf95${LIB_TAG}_LIB_SRCS}) if(STATIC_OPTS) Added: trunk/bindings/f95/plflt.inc.in =================================================================== --- trunk/bindings/f95/plflt.inc.in (rev 0) +++ trunk/bindings/f95/plflt.inc.in 2009-09-13 17:22:14 UTC (rev 10406) @@ -0,0 +1,5 @@ +! Include file to control the kind of floating point number +! used by PLplot (single vs double) +! This file is automatically configured by CMake +integer, parameter :: plflt = kind(@ONE_IN_DEFAULT_PRECISION@) +integer, parameter :: plunicode = 4 Property changes on: trunk/bindings/f95/plflt.inc.in ___________________________________________________________________ Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <arj...@us...> - 2010-02-17 07:49:27
|
Revision: 10803 http://plplot.svn.sourceforge.net/plplot/?rev=10803&view=rev Author: arjenmarkus Date: 2010-02-17 07:49:20 +0000 (Wed, 17 Feb 2010) Log Message: ----------- Correct the decorated name for the routine plgradient, as it appears in the linker def file. This caused an undefined symbol error. Modified Paths: -------------- trunk/bindings/f95/plplotf95.def trunk/bindings/f95/plplotf95_mingw.def Modified: trunk/bindings/f95/plplotf95.def =================================================================== --- trunk/bindings/f95/plplotf95.def 2010-02-11 02:22:29 UTC (rev 10802) +++ trunk/bindings/f95/plplotf95.def 2010-02-17 07:49:20 UTC (rev 10803) @@ -18,7 +18,7 @@ _PLPLOTP_mp_PLCONTOUR_1_ALL@16 _PLPLOTP_mp_PLCONTOUR_2_ALL@16 _PLPLOTP_mp_PLCONTOUR_TR_ALL@12 - _PLPLOTP_mp_PLGRADIENT@16 + _PLPLOT_mp_PLGRADIENT@12 _PLPLOTP_mp_PLVECTORS_0@12 _PLPLOTP_mp_PLVECTORS_1@20 _PLPLOTP_mp_PLVECTORS_2@20 Modified: trunk/bindings/f95/plplotf95_mingw.def =================================================================== --- trunk/bindings/f95/plplotf95_mingw.def 2010-02-11 02:22:29 UTC (rev 10802) +++ trunk/bindings/f95/plplotf95_mingw.def 2010-02-17 07:49:20 UTC (rev 10803) @@ -14,7 +14,7 @@ __plplotp_MOD_plcontour_tr_all __plplotp_MOD_plgdev __plplotp_MOD_plgfnam - __plplotp_MOD_plgradient + __plplot_MOD_plgradient __plplotp_MOD_plgver __plplotp_MOD_plimagefr_0 __plplotp_MOD_plimagefr_1 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ai...@us...> - 2011-01-27 06:54:35
|
Revision: 11510 http://plplot.svn.sourceforge.net/plplot/?rev=11510&view=rev Author: airwin Date: 2011-01-27 06:54:28 +0000 (Thu, 27 Jan 2011) Log Message: ----------- Move parameters from sfstubsf95.f90 to new file, plplot_parameters.h. Modified Paths: -------------- trunk/bindings/f95/sfstubsf95.f90 Added Paths: ----------- trunk/bindings/f95/plplot_parameters.h Added: trunk/bindings/f95/plplot_parameters.h =================================================================== --- trunk/bindings/f95/plplot_parameters.h (rev 0) +++ trunk/bindings/f95/plplot_parameters.h 2011-01-27 06:54:28 UTC (rev 11510) @@ -0,0 +1,40 @@ + ! + ! Parameters connecting a mnemonic name to the + ! constants used by various routines + ! + integer, parameter :: PL_PARSE_FULL = 1 + + integer, parameter :: PL_GRID_CSA = 1 + integer, parameter :: PL_GRID_DTLI = 2 + integer, parameter :: PL_GRID_NNI = 3 + integer, parameter :: PL_GRID_NNIDW = 4 + integer, parameter :: PL_GRID_NNLI = 5 + integer, parameter :: PL_GRID_NNAIDW = 6 + + integer, parameter :: PL_JUST_NONE = -1 + integer, parameter :: PL_JUST_OPTIMAL = 0 + integer, parameter :: PL_JUST_SAME = 1 + integer, parameter :: PL_JUST_ISOMETRIC = 2 + + integer, parameter :: PL_AXIS_NOTHING = -2 + integer, parameter :: PL_AXIS_BOX_ONLY = -1 + integer, parameter :: PL_AXIS_NORMAL = 0 + integer, parameter :: PL_AXIS_ATZERO = 1 + integer, parameter :: PL_AXIS_MAJORGRID = 2 + integer, parameter :: PL_AXIS_MINORGRID = 3 + integer, parameter :: PL_AXIS_LOGX = 10 + integer, parameter :: PL_AXIS_LOGY = 20 + integer, parameter :: PL_AXIS_LOGXY = 30 + + integer, parameter :: PL_FONT_STANDARD = 0 + integer, parameter :: PL_FONT_EXTENDED = 1 + + real(kind=plflt), parameter :: PL_NOTSET = -42.0_plflt + + ! + ! TODO: + ! Parameters for fill patterns and symbols + ! + + real(kind=plflt), parameter :: PL_PI = 3.1415926535897932384_plflt + Property changes on: trunk/bindings/f95/plplot_parameters.h ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Modified: trunk/bindings/f95/sfstubsf95.f90 =================================================================== --- trunk/bindings/f95/sfstubsf95.f90 2011-01-27 03:42:04 UTC (rev 11509) +++ trunk/bindings/f95/sfstubsf95.f90 2011-01-27 06:54:28 UTC (rev 11510) @@ -137,48 +137,9 @@ ! implicit none + include 'plplot_parameters.h' ! - ! Parameters connecting a mnemonic name to the - ! constants used by various routines - ! - integer, parameter :: PL_PARSE_FULL = 1 - - integer, parameter :: PL_GRID_CSA = 1 - integer, parameter :: PL_GRID_DTLI = 2 - integer, parameter :: PL_GRID_NNI = 3 - integer, parameter :: PL_GRID_NNIDW = 4 - integer, parameter :: PL_GRID_NNLI = 5 - integer, parameter :: PL_GRID_NNAIDW = 6 - - integer, parameter :: PL_JUST_NONE = -1 - integer, parameter :: PL_JUST_OPTIMAL = 0 - integer, parameter :: PL_JUST_SAME = 1 - integer, parameter :: PL_JUST_ISOMETRIC = 2 - - integer, parameter :: PL_AXIS_NOTHING = -2 - integer, parameter :: PL_AXIS_BOX_ONLY = -1 - integer, parameter :: PL_AXIS_NORMAL = 0 - integer, parameter :: PL_AXIS_ATZERO = 1 - integer, parameter :: PL_AXIS_MAJORGRID = 2 - integer, parameter :: PL_AXIS_MINORGRID = 3 - integer, parameter :: PL_AXIS_LOGX = 10 - integer, parameter :: PL_AXIS_LOGY = 20 - integer, parameter :: PL_AXIS_LOGXY = 30 - - integer, parameter :: PL_FONT_STANDARD = 0 - integer, parameter :: PL_FONT_EXTENDED = 1 - - real(kind=plflt), parameter :: PL_NOTSET = -42.0_plflt - - ! - ! TODO: - ! Parameters for fill patterns and symbols - ! - - real(kind=plflt), parameter :: PL_PI = 3.1415926535897932384_plflt - - ! ! To be added: alternative interfaces ! interface This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ai...@us...> - 2011-02-12 18:24:15
|
Revision: 11560 http://plplot.svn.sourceforge.net/plplot/?rev=11560&view=rev Author: airwin Date: 2011-02-12 18:24:09 +0000 (Sat, 12 Feb 2011) Log Message: ----------- Insert leading comment block to explain how to check consistency of plplot_parameters.h or else generate it. Modified Paths: -------------- trunk/bindings/f95/global_defines.sed trunk/bindings/f95/plplot_parameters.h Modified: trunk/bindings/f95/global_defines.sed =================================================================== --- trunk/bindings/f95/global_defines.sed 2011-02-12 18:23:14 UTC (rev 11559) +++ trunk/bindings/f95/global_defines.sed 2011-02-12 18:24:09 UTC (rev 11560) @@ -2,6 +2,17 @@ # bindings/swig-support/plplotcapi.i into a file that can be used for # global variable definitions for f95. +# Insert text at the start: +1 i\ +! Do not edit this generated file. Instead, check its consistency\ +! with the #defines in bindings/swig-support/plplotcapi.i using the\ +! (Unix) target "check_f95_parameters". If that target reports an\ +! inconsistency (via a cmp message) between the generated\ +! plplot_parameters.h_compare file in the build tree and\ +! plplot_parameters.h in the source tree, then copy\ +! plplot_parameters.h_compare on top of plplot_parameters.h and\ +! check in that result.\ + # Drop every line that is not a #define /^#define/! d Modified: trunk/bindings/f95/plplot_parameters.h =================================================================== --- trunk/bindings/f95/plplot_parameters.h 2011-02-12 18:23:14 UTC (rev 11559) +++ trunk/bindings/f95/plplot_parameters.h 2011-02-12 18:24:09 UTC (rev 11560) @@ -1,3 +1,12 @@ +! Do not edit this generated file. Instead, check its consistency +! with the #defines in bindings/swig-support/plplotcapi.i using the +! (Unix) target "check_f95_parameters". If that target reports an +! inconsistency (via a cmp message) between the generated +! plplot_parameters.h_compare file in the build tree and +! plplot_parameters.h in the source tree, then copy +! plplot_parameters.h_compare on top of plplot_parameters.h and +! check in that result. + integer, parameter :: PLESC_SET_RGB = 1 ! obsolete integer, parameter :: PLESC_ALLOC_NCOL = 2 ! obsolete integer, parameter :: PLESC_SET_LPB = 3 ! obsolete This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <and...@us...> - 2011-10-19 19:46:21
|
Revision: 11980 http://plplot.svn.sourceforge.net/plplot/?rev=11980&view=rev Author: andrewross Date: 2011-10-19 19:46:14 +0000 (Wed, 19 Oct 2011) Log Message: ----------- Style code following recent f95 bindings updates. Modified Paths: -------------- trunk/bindings/f95/sc3d.c trunk/bindings/f95/sccont.c trunk/bindings/f95/scstubs.c Modified: trunk/bindings/f95/sc3d.c =================================================================== --- trunk/bindings/f95/sc3d.c 2011-10-19 19:25:26 UTC (rev 11979) +++ trunk/bindings/f95/sc3d.c 2011-10-19 19:46:14 UTC (rev 11980) @@ -26,21 +26,21 @@ // Function prototypes void PLOT3DC__( PLFLT *x, PLFLT *y, PLFLT *z, - PLINT *nx, PLINT *ny, PLINT *opt, - PLFLT *clevel, PLINT *nlevel, PLINT *lx ); + PLINT *nx, PLINT *ny, PLINT *opt, + PLFLT *clevel, PLINT *nlevel, PLINT *lx ); void PLOT3DC( PLFLT *x, PLFLT *y, PLFLT *z, - PLINT *nx, PLINT *ny, PLINT *opt, - PLFLT *clevel, PLINT *nlevel, PLINT *lx ); + PLINT *nx, PLINT *ny, PLINT *opt, + PLFLT *clevel, PLINT *nlevel, PLINT *lx ); void PLSURF3D( PLFLT *x, PLFLT *y, PLFLT *z, - PLINT *nx, PLINT *ny, PLINT *opt, - PLFLT *clevel, PLINT *nlevel, PLINT *lx ); + PLINT *nx, PLINT *ny, PLINT *opt, + PLFLT *clevel, PLINT *nlevel, PLINT *lx ); void PLMESH( PLFLT *x, PLFLT *y, PLFLT *z, - PLINT *nx, PLINT *ny, PLINT *opt, PLINT *lx ); + PLINT *nx, PLINT *ny, PLINT *opt, PLINT *lx ); void PLMESHC( PLFLT *x, PLFLT *y, PLFLT *z, - PLINT *nx, PLINT *ny, PLINT *opt, - PLFLT *clevel, PLINT *nlevel, PLINT *lx ); + PLINT *nx, PLINT *ny, PLINT *opt, + PLFLT *clevel, PLINT *nlevel, PLINT *lx ); void PLOT3D( PLFLT *x, PLFLT *y, PLFLT *z, - PLINT *nx, PLINT *ny, PLINT *opt, PLBOOL *side, PLINT *lx ); + PLINT *nx, PLINT *ny, PLINT *opt, PLBOOL *side, PLINT *lx ); void PLOT3DC__( PLFLT *x, PLFLT *y, PLFLT *z, Modified: trunk/bindings/f95/sccont.c =================================================================== --- trunk/bindings/f95/sccont.c 2011-10-19 19:25:26 UTC (rev 11979) +++ trunk/bindings/f95/sccont.c 2011-10-19 19:46:14 UTC (rev 11980) @@ -27,86 +27,86 @@ // Function prototypes void pltr0f( PLFLT x, PLFLT y, PLFLT *tx, PLFLT *ty, void *pltr_data ); void PLCON07( PLFLT *z, PLINT *nx, PLINT *ny, PLINT *kx, PLINT *lx, - PLINT *ky, PLINT *ly, PLFLT *clevel, PLINT *nlevel ); + PLINT *ky, PLINT *ly, PLFLT *clevel, PLINT *nlevel ); void PLCON17( PLFLT *z, PLINT *nx, PLINT *ny, PLINT *kx, PLINT *lx, - PLINT *ky, PLINT *ly, PLFLT *clevel, PLINT *nlevel, - PLFLT *xg, PLFLT *yg ); + PLINT *ky, PLINT *ly, PLFLT *clevel, PLINT *nlevel, + PLFLT *xg, PLFLT *yg ); void PLCON27( PLFLT *z, PLINT *nx, PLINT *ny, PLINT *kx, PLINT *lx, - PLINT *ky, PLINT *ly, PLFLT *clevel, PLINT *nlevel, - PLFLT *xg, PLFLT *yg ); + PLINT *ky, PLINT *ly, PLFLT *clevel, PLINT *nlevel, + PLFLT *xg, PLFLT *yg ); void PLVEC07( PLFLT *u, PLFLT *v, PLINT *nx, PLINT *ny, PLFLT *scale ); void PLVEC17( PLFLT *u, PLFLT *v, PLINT *nx, PLINT *ny, PLFLT *scale, - PLFLT *xg, PLFLT *yg ); + PLFLT *xg, PLFLT *yg ); void PLVEC27( PLFLT *u, PLFLT *v, PLINT *nx, PLINT *ny, PLFLT *scale, - PLFLT *xg, PLFLT *yg ); + PLFLT *xg, PLFLT *yg ); static void pltr( PLFLT x, PLFLT y, PLFLT *tx, PLFLT *ty, void *pltr_data ); void PLCONT7( PLFLT *z, PLINT *nx, PLINT *ny, PLINT *kx, PLINT *lx, - PLINT *ky, PLINT *ly, PLFLT *clevel, PLINT *nlevel, PLFLT *ftr ); + PLINT *ky, PLINT *ly, PLFLT *clevel, PLINT *nlevel, PLFLT *ftr ); void PLVECT7( PLFLT *u, PLFLT *v, PLINT *nx, PLINT *ny, PLFLT *scale, - PLFLT *ftr ); + PLFLT *ftr ); void PLSHADE07( PLFLT *z, PLINT *nx, PLINT *ny, const char *defined, - PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, - PLFLT *shade_min, PLFLT *shade_max, - PLINT *sh_cmap, PLFLT *sh_color, PLINT *sh_width, - PLINT *min_color, PLINT *min_width, - PLINT *max_color, PLINT *max_width, PLINT *lx ); + PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, + PLFLT *shade_min, PLFLT *shade_max, + PLINT *sh_cmap, PLFLT *sh_color, PLINT *sh_width, + PLINT *min_color, PLINT *min_width, + PLINT *max_color, PLINT *max_width, PLINT *lx ); void PLSHADE17( PLFLT *z, PLINT *nx, PLINT *ny, const char *defined, - PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, - PLFLT *shade_min, PLFLT *shade_max, - PLINT *sh_cmap, PLFLT *sh_color, PLINT *sh_width, - PLINT *min_color, PLINT *min_width, - PLINT *max_color, PLINT *max_width, - PLFLT *xg1, PLFLT *yg1, PLINT *lx ); + PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, + PLFLT *shade_min, PLFLT *shade_max, + PLINT *sh_cmap, PLFLT *sh_color, PLINT *sh_width, + PLINT *min_color, PLINT *min_width, + PLINT *max_color, PLINT *max_width, + PLFLT *xg1, PLFLT *yg1, PLINT *lx ); void PLSHADE27( PLFLT *z, PLINT *nx, PLINT *ny, const char *defined, - PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, - PLFLT *shade_min, PLFLT *shade_max, - PLINT *sh_cmap, PLFLT *sh_color, PLINT *sh_width, - PLINT *min_color, PLINT *min_width, - PLINT *max_color, PLINT *max_width, - PLFLT *xg2, PLFLT *yg2, PLINT *lx ); + PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, + PLFLT *shade_min, PLFLT *shade_max, + PLINT *sh_cmap, PLFLT *sh_color, PLINT *sh_width, + PLINT *min_color, PLINT *min_width, + PLINT *max_color, PLINT *max_width, + PLFLT *xg2, PLFLT *yg2, PLINT *lx ); void PLSHADE7( PLFLT *z, PLINT *nx, PLINT *ny, const char *defined, - PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, - PLFLT *shade_min, PLFLT *shade_max, - PLINT *sh_cmap, PLFLT *sh_color, PLINT *sh_width, - PLINT *min_color, PLINT *min_width, - PLINT *max_color, PLINT *max_width, PLFLT *ftr, PLINT *lx ); + PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, + PLFLT *shade_min, PLFLT *shade_max, + PLINT *sh_cmap, PLFLT *sh_color, PLINT *sh_width, + PLINT *min_color, PLINT *min_width, + PLINT *max_color, PLINT *max_width, PLFLT *ftr, PLINT *lx ); void PLSHADES07( PLFLT *z, PLINT *nx, PLINT *ny, const char *defined, - PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, - PLFLT *clevel, PLINT *nlevel, PLINT *fill_width, - PLINT *cont_color, PLINT *cont_width, PLINT *lx ); + PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, + PLFLT *clevel, PLINT *nlevel, PLINT *fill_width, + PLINT *cont_color, PLINT *cont_width, PLINT *lx ); void PLSHADES17( PLFLT *z, PLINT *nx, PLINT *ny, const char *defined, - PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, - PLFLT *clevel, PLINT *nlevel, PLINT *fill_width, - PLINT *cont_color, PLINT *cont_width, - PLFLT *xg1, PLFLT *yg1, PLINT *lx ); + PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, + PLFLT *clevel, PLINT *nlevel, PLINT *fill_width, + PLINT *cont_color, PLINT *cont_width, + PLFLT *xg1, PLFLT *yg1, PLINT *lx ); void PLSHADES27( PLFLT *z, PLINT *nx, PLINT *ny, const char *defined, - PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, - PLFLT *clevel, PLINT *nlevel, PLINT *fill_width, - PLINT *cont_color, PLINT *cont_width, - PLFLT *xg2, PLFLT *yg2, PLINT *lx ); + PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, + PLFLT *clevel, PLINT *nlevel, PLINT *fill_width, + PLINT *cont_color, PLINT *cont_width, + PLFLT *xg2, PLFLT *yg2, PLINT *lx ); void PLSHADES7( PLFLT *z, PLINT *nx, PLINT *ny, const char *defined, - PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, - PLFLT *clevel, PLINT *nlevel, PLINT *fill_width, - PLINT *cont_color, PLINT *cont_width, PLFLT *ftr, PLINT *lx ); + PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, + PLFLT *clevel, PLINT *nlevel, PLINT *fill_width, + PLINT *cont_color, PLINT *cont_width, PLFLT *ftr, PLINT *lx ); void PLGRIDDATA( PLFLT *x, PLFLT *y, PLFLT *z, PLINT *npts, PLFLT *xg, - PLINT *nx, PLFLT *yg, PLINT *ny, PLFLT *zg, PLINT *type, - PLFLT *data ); + PLINT *nx, PLFLT *yg, PLINT *ny, PLFLT *zg, PLINT *type, + PLFLT *data ); void PLIMAGEFR07( PLFLT *idata, PLINT *nx, PLINT *ny, - PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, - PLFLT *zmin, PLFLT *zmax, PLFLT *valuemin, PLFLT *valuemax, - PLINT *lx ); + PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, + PLFLT *zmin, PLFLT *zmax, PLFLT *valuemin, PLFLT *valuemax, + PLINT *lx ); void PLIMAGEFR17( PLFLT *idata, PLINT *nx, PLINT *ny, - PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, - PLFLT *zmin, PLFLT *zmax, PLFLT *valuemin, PLFLT *valuemax, - PLFLT *xg, PLFLT *yg, PLINT *lx ); + PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, + PLFLT *zmin, PLFLT *zmax, PLFLT *valuemin, PLFLT *valuemax, + PLFLT *xg, PLFLT *yg, PLINT *lx ); void PLIMAGEFR27( PLFLT *idata, PLINT *nx, PLINT *ny, - PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, - PLFLT *zmin, PLFLT *zmax, PLFLT *valuemin, PLFLT *valuemax, - PLFLT *xg, PLFLT *yg, PLINT *lx ); + PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, + PLFLT *zmin, PLFLT *zmax, PLFLT *valuemin, PLFLT *valuemax, + PLFLT *xg, PLFLT *yg, PLINT *lx ); void PLIMAGEFR7( PLFLT *idata, PLINT *nx, PLINT *ny, - PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, - PLFLT *zmin, PLFLT *zmax, PLFLT *valuemin, PLFLT *valuemax, - PLFLT *ftr, PLINT *lx ); + PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, + PLFLT *zmin, PLFLT *zmax, PLFLT *valuemin, PLFLT *valuemax, + PLFLT *ftr, PLINT *lx ); Modified: trunk/bindings/f95/scstubs.c =================================================================== --- trunk/bindings/f95/scstubs.c 2011-10-19 19:25:26 UTC (rev 11979) +++ trunk/bindings/f95/scstubs.c 2011-10-19 19:46:14 UTC (rev 11980) @@ -57,7 +57,7 @@ void PLABORT7( const char *text ); void PLADV( PLINT *sub ); void PLARC( PLFLT *x, PLFLT *y, PLFLT *a, PLFLT *b, PLFLT *angle1, PLFLT *angle2, PLFLT *rotate, PLBOOL *fill ); -void PLAXES7( PLFLT *x0, PLFLT *y0, const char *xopt, PLFLT *xtick, +void PLAXES7( PLFLT *x0, PLFLT *y0, const char *xopt, PLFLT *xtick, PLINT *nxsub, const char *yopt, PLFLT *ytick, PLINT *nysub ); void PLBIN( PLINT *nbin, PLFLT *x, PLFLT *y, PLINT *center ); void PLBTIME( PLINT *year, PLINT *month, PLINT *day, PLINT *hour, PLINT *min, PLFLT *sec, PLFLT *ctime ); @@ -118,7 +118,7 @@ void PLHIST( PLINT *n, PLFLT *data, PLFLT *datmin, PLFLT *datmax, PLINT *nbin, PLINT *oldwin ); void PLHLS( PLFLT *hue, PLFLT *light, PLFLT *sat ); void PLHLSRGB( PLFLT *h, PLFLT *l, PLFLT *s, PLFLT *r, PLFLT *g, PLFLT *b ); -void PLIMAGEFR( PLFLT *idata, PLINT *nx, PLINT *ny, +void PLIMAGEFR( PLFLT *idata, PLINT *nx, PLINT *ny, PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, PLFLT *zmin, PLFLT *zmax, PLFLT *Dxmin, PLFLT *Dxmax, PLFLT *Dymin, PLFLT *Dymax, PLFLT *valuemin, PLFLT *valuemax ); @@ -130,19 +130,19 @@ void PLLAB7( const char *xlab, const char *ylab, const char *title ); void PLLEGEND_CNV_TEXT( PLINT *id, PLINT *number, char *string, PLINT length ); void PLLEGEND( PLFLT *p_legend_width, PLFLT *p_legend_height, - PLINT *opt, PLINT *position, PLFLT *x, PLFLT *y, PLFLT *plot_width, - PLINT *bg_color, PLINT *bb_color, PLINT *bb_style, - PLINT *nrow, PLINT *ncolumn, - PLINT *nlegend, const PLINT *opt_array, - PLFLT *text_offset, PLFLT *text_scale, PLFLT *text_spacing, - PLFLT *text_justification, - const PLINT *text_colors, - const PLINT *box_colors, const PLINT *box_patterns, - const PLFLT *box_scales, const PLINT *box_line_widths, - const PLINT *line_colors, const PLINT *line_styles, - const PLINT *line_widths, - const PLINT *symbol_colors, const PLFLT *symbol_scales, - const PLINT *symbol_numbers ); + PLINT *opt, PLINT *position, PLFLT *x, PLFLT *y, PLFLT *plot_width, + PLINT *bg_color, PLINT *bb_color, PLINT *bb_style, + PLINT *nrow, PLINT *ncolumn, + PLINT *nlegend, const PLINT *opt_array, + PLFLT *text_offset, PLFLT *text_scale, PLFLT *text_spacing, + PLFLT *text_justification, + const PLINT *text_colors, + const PLINT *box_colors, const PLINT *box_patterns, + const PLFLT *box_scales, const PLINT *box_line_widths, + const PLINT *line_colors, const PLINT *line_styles, + const PLINT *line_widths, + const PLINT *symbol_colors, const PLFLT *symbol_scales, + const PLINT *symbol_numbers ); void PLLIGHTSOURCE( PLFLT *x, PLFLT *y, PLFLT *z ); void PLLINE( PLINT *n, PLFLT *x, PLFLT *y ); void PLLINE3( PLINT *n, PLFLT *x, PLFLT *y, PLFLT *z ); @@ -162,10 +162,10 @@ void PLPREC( PLINT *setp, PLINT *prec ); void PLPSTY( PLINT *patt ); void PLPTEX7( PLFLT *x, PLFLT *y, PLFLT *dx, PLFLT *dy, PLFLT *just, const char *text ); -void PLPTEX37(PLFLT *x, PLFLT *y, PLFLT *z, - PLFLT *dx, PLFLT *dy, PLFLT *dz, - PLFLT *sx, PLFLT *sy, PLFLT *sz, - PLFLT *just, const char *text ); +void PLPTEX37( PLFLT *x, PLFLT *y, PLFLT *z, + PLFLT *dx, PLFLT *dy, PLFLT *dz, + PLFLT *sx, PLFLT *sy, PLFLT *sz, + PLFLT *just, const char *text ); PLFLT PLRANDD( void ); void PLREPLOT( void ); void PLRGB( PLFLT *red, PLFLT *green, PLFLT *blue ); @@ -178,13 +178,13 @@ void PLSCMAP1( PLINT *r, PLINT *g, PLINT *b, PLINT *ncol1 ); void PLSCMAP1A( PLINT *r, PLINT *g, PLINT *b, PLFLT *a, PLINT *ncol1 ); void PLSCMAP1L( PLBOOL *itype, PLINT *npts, PLFLT *intensity, -PLFLT *coord1, PLFLT *coord2, PLFLT *coord3, PLBOOL *rev ); + PLFLT *coord1, PLFLT *coord2, PLFLT *coord3, PLBOOL *rev ); void PLSCMAP1L2( PLBOOL *itype, PLINT *npts, PLFLT *intensity, -PLFLT *coord1, PLFLT *coord2, PLFLT *coord3 ); + PLFLT *coord1, PLFLT *coord2, PLFLT *coord3 ); void PLSCMAP1LA( PLBOOL *itype, PLINT *npts, PLFLT *intensity, -PLFLT *coord1, PLFLT *coord2, PLFLT *coord3, PLFLT *a, PLBOOL *rev ); + PLFLT *coord1, PLFLT *coord2, PLFLT *coord3, PLFLT *a, PLBOOL *rev ); void PLSCMAP1LA2( PLBOOL *itype, PLINT *npts, PLFLT *intensity, -PLFLT *coord1, PLFLT *coord2, PLFLT *coord3, PLFLT *a ); + PLFLT *coord1, PLFLT *coord2, PLFLT *coord3, PLFLT *a ); void PLSCMAP1N( PLINT *n ); void PLSCOL0( PLINT *icol0, PLINT *r, PLINT *g, PLINT *b ); void PLSCOL0A( PLINT *icol0, PLINT *r, PLINT *g, PLINT *b, PLFLT *a ); @@ -195,7 +195,7 @@ void PLSDEV7( const char *dev ); void PLSDIDEV( PLFLT *mar, PLFLT *aspect, PLFLT *jx, PLFLT *jy ); void PLSDIMAP( PLINT *dimxmin, PLINT *dimxmax, PLINT *dimymin, PLINT *dimymax, -PLFLT *dimxpmm, PLFLT *dimypmm ); + PLFLT *dimxpmm, PLFLT *dimypmm ); void PLSDIORI( PLFLT *rot ); void PLSDIPLT( PLFLT *xmin, PLFLT *ymin, PLFLT *xmax, PLFLT *ymax ); void PLSDIPLZ( PLFLT *xmin, PLFLT *ymin, PLFLT *xmax, PLFLT *ymax ); @@ -218,7 +218,7 @@ void PLSMIN( PLFLT *def, PLFLT *scale ); void PLSORI( PLINT *ori ); void PLSPAGE( PLFLT *xpmm, PLFLT *ypmm, -PLINT *xwid, PLINT *ywid, PLINT *xoff, PLINT *yoff ); + PLINT *xwid, PLINT *ywid, PLINT *xoff, PLINT *yoff ); void PLSPAL07( const char *filename ); void PLSPAL17( const char *filename, PLBOOL *interpolate ); void PLSPAUSE( PLBOOL *pause ); @@ -234,14 +234,14 @@ void PLSTRING37( PLINT *n, PLFLT *x, PLFLT *y, PLFLT *z, const char *string ); void PLSTRIPA( PLINT *id, PLINT *pen, PLFLT *x, PLFLT *y ); void PLSTRIPC( PLINT *id, const char *xspec, const char *yspec, - PLFLT *xmin, PLFLT *xmax, PLFLT *xjump, PLFLT *ymin, PLFLT *ymax, - PLFLT *xlpos, PLFLT *ylpos, - PLBOOL *y_ascl, PLBOOL *acc, - PLINT *colbox, PLINT *collab, - PLINT *colline, PLINT *styline, - const char *legline0, const char *legline1, - const char *legline2, const char *legline3, - const char *labx, const char *laby, const char *labtop ); + PLFLT *xmin, PLFLT *xmax, PLFLT *xjump, PLFLT *ymin, PLFLT *ymax, + PLFLT *xlpos, PLFLT *ylpos, + PLBOOL *y_ascl, PLBOOL *acc, + PLINT *colbox, PLINT *collab, + PLINT *colline, PLINT *styline, + const char *legline0, const char *legline1, + const char *legline2, const char *legline3, + const char *labx, const char *laby, const char *labtop ); void PLSTRIPD( PLINT *id ); void PLSTYL( PLINT *n, PLINT *mark, PLINT *space ); void PLSVECT( PLFLT *arrowx, PLFLT *arrowy, PLINT *npts, PLBOOL *fill ); @@ -257,9 +257,9 @@ void PLVPOR( PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax ); void PLVSTA( void ); void PLW3D( PLFLT *basex, PLFLT *basey, PLFLT *height, - PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, - PLFLT *zmin, PLFLT *zmax, - PLFLT *alt, PLFLT *az ); + PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax, + PLFLT *zmin, PLFLT *zmax, + PLFLT *alt, PLFLT *az ); void PLWID( PLINT *width ); void PLWIND( PLFLT *xmin, PLFLT *xmax, PLFLT *ymin, PLFLT *ymax ); void PLXORMOD( PLBOOL *mode, PLBOOL *status ); @@ -783,7 +783,7 @@ // Ensure the strings are null terminated p_string = (char **) malloc( sizeof ( char * ) * (size_t) ( *number ) ); - data = (char *) malloc( sizeof ( char * ) * (size_t) (( *number ) * ( length + 1 ) ) ); + data = (char *) malloc( sizeof ( char * ) * (size_t) ( ( *number ) * ( length + 1 ) ) ); for ( j = 0; j < ( *number ); j++ ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <and...@us...> - 2011-12-08 23:14:43
|
Revision: 12107 http://plplot.svn.sourceforge.net/plplot/?rev=12107&view=rev Author: andrewross Date: 2011-12-08 23:14:36 +0000 (Thu, 08 Dec 2011) Log Message: ----------- Remove unused argument for string conversion routine. Modified Paths: -------------- trunk/bindings/f95/configurable.f90 trunk/bindings/f95/sfstubs.f90 trunk/bindings/f95/sfstubsf95.f90 trunk/bindings/f95/strutil.f90 Modified: trunk/bindings/f95/configurable.f90 =================================================================== --- trunk/bindings/f95/configurable.f90 2011-12-08 22:57:11 UTC (rev 12106) +++ trunk/bindings/f95/configurable.f90 2011-12-08 23:14:36 UTC (rev 12107) @@ -41,7 +41,7 @@ endif do 10 iargs = 0, numargs call getarg(iargs, arg) - call plstrf2c(trim(arg), string1, maxlen) + call plstrf2c(trim(arg), string1) s1 = transfer( string1, s1 ) do 5 index = 1, maxindex iargsarr(index, iargs+1) = s1(index) Modified: trunk/bindings/f95/sfstubs.f90 =================================================================== --- trunk/bindings/f95/sfstubs.f90 2011-12-08 22:57:11 UTC (rev 12106) +++ trunk/bindings/f95/sfstubs.f90 2011-12-08 23:14:36 UTC (rev 12107) @@ -41,8 +41,8 @@ implicit none character*(*) opt, optarg - call plstrf2c(opt, string1, maxlen) - call plstrf2c(optarg, string2, maxlen) + call plstrf2c(opt, string1) + call plstrf2c(optarg, string2) s1 = transfer( string1, s1 ) s2 = transfer( string2, s2 ) call plsetopt7(s1, s2) @@ -56,7 +56,7 @@ implicit none character*(*) text - call plstrf2c(text, string1, maxlen) + call plstrf2c(text, string1) s1 = transfer( string1, s1 ) call plabort7(s1) @@ -69,7 +69,7 @@ implicit none character*(*) dnam - call plstrf2c(dnam, string1, maxlen) + call plstrf2c(dnam, string1) s1 = transfer( string1, s1 ) call plsdev7(s1) @@ -94,7 +94,7 @@ implicit none character*(*) fnam - call plstrf2c(fnam, string1, maxlen) + call plstrf2c(fnam, string1) s1 = transfer( string1, s1 ) call plsfnam7(s1) @@ -134,8 +134,8 @@ integer nxsub, nysub character*(*) xopt,yopt - call plstrf2c(xopt, string1, maxlen) - call plstrf2c(yopt, string2, maxlen) + call plstrf2c(xopt, string1) + call plstrf2c(yopt, string2) s1 = transfer( string1, s1 ) s2 = transfer( string2, s2 ) @@ -152,8 +152,8 @@ integer nxsub, nysub character*(*) xopt,yopt - call plstrf2c(xopt, string1, maxlen) - call plstrf2c(yopt, string2, maxlen) + call plstrf2c(xopt, string1) + call plstrf2c(yopt, string2) s1 = transfer( string1, s1 ) s2 = transfer( string2, s2 ) @@ -171,12 +171,12 @@ character*(*) xopt,xlabel,yopt,ylabel,zopt,zlabel integer nxsub, nysub, nzsub - call plstrf2c(xopt, string1, maxlen) - call plstrf2c(xlabel, string2, maxlen) - call plstrf2c(yopt, string3, maxlen) - call plstrf2c(ylabel, string4, maxlen) - call plstrf2c(zopt, string5, maxlen) - call plstrf2c(zlabel, string6, maxlen) + call plstrf2c(xopt, string1) + call plstrf2c(xlabel, string2) + call plstrf2c(yopt, string3) + call plstrf2c(ylabel, string4) + call plstrf2c(zopt, string5) + call plstrf2c(zlabel, string6) s1 = transfer( string1, s1 ) s2 = transfer( string2, s2 ) @@ -316,7 +316,7 @@ n = size(x) - call plstrf2c(string, string1, maxlen) + call plstrf2c(string, string1) s1 = transfer( string1, s1 ) call plstring7(n,x,y,s1) @@ -334,7 +334,7 @@ n = size(x) - call plstrf2c(string, string1, maxlen) + call plstrf2c(string, string1) s1 = transfer( string1, s1 ) call plstring37(n,x,y,z,s1) @@ -401,7 +401,7 @@ real(kind=plflt) shade_min, shade_max, sh_color real(kind=plflt) z(:,:), xmin, xmax, ymin, ymax -! call plstrf2c(dnam, string1, maxlen) +! call plstrf2c(dnam, string1) s1 = transfer( string1, s1 ) call plshade07(z, size(z,1), size(z,2), s1, & @@ -428,7 +428,7 @@ real(kind=plflt) shade_min, shade_max, sh_color real(kind=plflt) z(:,:), xmin, xmax, ymin, ymax, xg(:), yg(:) -! call plstrf2c(dnam, string1, maxlen) +! call plstrf2c(dnam, string1) s1 = transfer( string1, s1 ) call plshade17(z, size(z,1), size(z,2), s1, & @@ -456,7 +456,7 @@ real(kind=plflt) shade_min, shade_max, sh_color real(kind=plflt) z(:,:), xmin, xmax, ymin, ymax, xg(:,:), yg(:,:) -! call plstrf2c(dnam, string1, maxlen) +! call plstrf2c(dnam, string1) s1 = transfer( string1, s1 ) call plshade27(z, size(z,1), size(z,2), s1, & @@ -506,7 +506,7 @@ real(kind=plflt) clevel(:) real(kind=plflt) z(:,:), xmin, xmax, ymin, ymax -! call plstrf2c(dnam, string1, maxlen) +! call plstrf2c(dnam, string1) s1 = transfer( string1, s1 ) call plshades07(z, size(z,1), size(z,2), s1, & @@ -530,7 +530,7 @@ real(kind=plflt) z(:,:), xmin, xmax, ymin, ymax, & xg1(:), yg1(:) -! call plstrf2c(dnam, string1, maxlen) +! call plstrf2c(dnam, string1) s1 = transfer( string1, s1 ) call plshades17(z, size(z,1), size(z,2), s1, & @@ -554,7 +554,7 @@ real(kind=plflt) z(:,:), xmin, xmax, ymin, ymax, & xg2(:,:), yg2(:,:) -! call plstrf2c(dnam, string1, maxlen) +! call plstrf2c(dnam, string1) s1 = transfer( string1, s1 ) call plshades27(z, size(z,1), size(z,2), s1, & @@ -578,7 +578,7 @@ real(kind=plflt) z(:,:), xmin, xmax, ymin, ymax real(kind=plflt) tr(6) -! call plstrf2c(dnam, string1, maxlen) +! call plstrf2c(dnam, string1) s1 = transfer( string1, s1 ) call plshades7(z, size(z,1), size(z,2), s1, & @@ -652,9 +652,9 @@ implicit none character*(*) xlab,ylab,title - call plstrf2c(xlab, string1, maxlen) - call plstrf2c(ylab, string2, maxlen) - call plstrf2c(title, string3, maxlen) + call plstrf2c(xlab, string1) + call plstrf2c(ylab, string2) + call plstrf2c(title, string3) s1 = transfer( string1, s1 ) s2 = transfer( string2, s2 ) @@ -670,7 +670,7 @@ implicit none character*(*) filename - call plstrf2c(filename, string1, maxlen) + call plstrf2c(filename, string1) s1 = transfer( string1, s1 ) call plspal07(s1) @@ -685,7 +685,7 @@ character*(*) filename integer interpolate - call plstrf2c(filename, string1, maxlen) + call plstrf2c(filename, string1) s1 = transfer( string1, s1 ) call plspal17(s1,interpolate) @@ -700,8 +700,8 @@ real(kind=plflt) disp, pos, xjust character*(*) side, text - call plstrf2c(side, string1, maxlen) - call plstrf2c(text, string2, maxlen) + call plstrf2c(side, string1) + call plstrf2c(text, string2) s1 = transfer( string1, s1 ) s2 = transfer( string2, s2 ) @@ -717,8 +717,8 @@ real(kind=plflt) disp, pos, xjust character*(*) side, text - call plstrf2c(side, string1, maxlen) - call plstrf2c(text, string2, maxlen) + call plstrf2c(side, string1) + call plstrf2c(text, string2) s1 = transfer( string1, s1 ) s2 = transfer( string2, s2 ) @@ -734,7 +734,7 @@ real(kind=plflt) x, y, dx, dy, xjust character*(*) text - call plstrf2c(text, string1, maxlen) + call plstrf2c(text, string1) s1 = transfer( string1, s1 ) call plptex7(x,y,dx,dy,xjust,s1) @@ -749,7 +749,7 @@ real(kind=plflt) x, y, z, dx, dy, dz, sx, sy, sz, xjust character*(*) text - call plstrf2c(text, string1, maxlen) + call plstrf2c(text, string1) s1 = transfer( string1, s1 ) call plptex37(x,y,z,dx,dy,dz,sx,sy,sz,xjust,s1) @@ -764,7 +764,7 @@ character*(*) devname integer nx, ny - call plstrf2c(devname, string1, maxlen) + call plstrf2c(devname, string1) s1 = transfer( string1, s1 ) call plstart7(s1, nx, ny) @@ -778,7 +778,7 @@ implicit none character*(*) fmt - call plstrf2c(fmt, string1, maxlen) + call plstrf2c(fmt, string1) s1 = transfer( string1, s1 ) call pltimefmt7(s1) Modified: trunk/bindings/f95/sfstubsf95.f90 =================================================================== --- trunk/bindings/f95/sfstubsf95.f90 2011-12-08 22:57:11 UTC (rev 12106) +++ trunk/bindings/f95/sfstubsf95.f90 2011-12-08 23:14:36 UTC (rev 12107) @@ -64,7 +64,7 @@ ! string conversion ! module plplot_str - integer :: maxleni, maxlen + integer :: maxleni parameter (maxlen = 320) parameter (maxleni = 80) character (len = maxlen) :: string1, string2, string3 @@ -1188,7 +1188,7 @@ character*(*) mapname external mapform - call plstrf2c(mapname, string1, maxlen) + call plstrf2c(mapname, string1) call plsetmapformc(mapform) s1 = transfer( string1, s1 ) @@ -1203,7 +1203,7 @@ real(kind=plflt) minx, maxx, miny, maxy character*(*) mapname - call plstrf2c(mapname, string1, maxlen) + call plstrf2c(mapname, string1) call plclearmapformc() s1 = transfer( string1, s1 ) @@ -1423,15 +1423,15 @@ integer iy_ascl, iacc - call plstrf2c(xspec, string1, maxlen) - call plstrf2c(yspec, string2, maxlen) - call plstrf2c(legline(1), string3, maxlen) - call plstrf2c(legline(2), string4, maxlen) - call plstrf2c(legline(3), string5, maxlen) - call plstrf2c(legline(4), string6, maxlen) - call plstrf2c(labx, string7, maxlen) - call plstrf2c(laby, string8, maxlen) - call plstrf2c(labtop, string9, maxlen) + call plstrf2c(xspec, string1) + call plstrf2c(yspec, string2) + call plstrf2c(legline(1), string3) + call plstrf2c(legline(2), string4) + call plstrf2c(legline(3), string5) + call plstrf2c(legline(4), string6) + call plstrf2c(labx, string7) + call plstrf2c(laby, string8) + call plstrf2c(labtop, string9) iy_ascl = convert_to_int( y_ascl ) iacc = convert_to_int( acc ) Modified: trunk/bindings/f95/strutil.f90 =================================================================== --- trunk/bindings/f95/strutil.f90 2011-12-08 22:57:11 UTC (rev 12106) +++ trunk/bindings/f95/strutil.f90 2011-12-08 23:14:36 UTC (rev 12107) @@ -30,9 +30,8 @@ ! Converts Fortran string to C format !-------------------------------------------------------------------------- -subroutine plstrf2c(string1, string2, maxlen) +subroutine plstrf2c(string1, string2) - integer :: maxlen character(len=*) :: string1, string2 integer :: limit This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ai...@us...> - 2013-10-30 17:29:34
|
Revision: 12640 http://sourceforge.net/p/plplot/code/12640 Author: airwin Date: 2013-10-30 17:29:31 +0000 (Wed, 30 Oct 2013) Log Message: ----------- Change from Fortran 95 "data" form of specifying constants in the BOZ (z'....') form, e.g., integer :: PL_FCI_SANS data PL_FCI_SANS / z'0' / to treating such constants just like integers, e.g., integer, parameter :: PL_FCI_SANS = z'0' The latter form is allowed by the Fortran 2003 standard, and also from Arjen's research implemented by most/all Fortran compilers. Modified Paths: -------------- trunk/bindings/f95/global_defines.sed trunk/bindings/f95/plplot_parameters.h Modified: trunk/bindings/f95/global_defines.sed =================================================================== --- trunk/bindings/f95/global_defines.sed 2013-10-29 00:18:45 UTC (rev 12639) +++ trunk/bindings/f95/global_defines.sed 2013-10-30 17:29:31 UTC (rev 12640) @@ -40,5 +40,6 @@ /^#define/ s?^#define *\(PL_NOTSET\)[ (]*\([^ ]*\)[ )]*\(.*\)$? real(kind=plflt), parameter :: \1 = \2.0_plflt\3\n real(kind=plflt), parameter :: PL_PI = 3.1415926535897932384_plflt\n real(kind=plflt), parameter :: PL_TWOPI = 2.0_plflt*PL_PI? -/^#define/ s?^#define *\([^ ]*\)[ (]*\([oz][^ ]*\)[ )]*\(.*\)$? integer :: \1 \3\n data \1 / \2 /? +# Comment the following line so that we do not use a special form for BOZ constants. +#/^#define/ s?^#define *\([^ ]*\)[ (]*\([oz][^ ]*\)[ )]*\(.*\)$? integer :: \1 \3\n data \1 / \2 /? /^#define/ s?^#define *\([^ ]*\)[ (]*\([^ ]*\)[ )]*\(.*\)$? integer, parameter :: \1 = \2 \3? Modified: trunk/bindings/f95/plplot_parameters.h =================================================================== --- trunk/bindings/f95/plplot_parameters.h 2013-10-29 00:18:45 UTC (rev 12639) +++ trunk/bindings/f95/plplot_parameters.h 2013-10-30 17:29:31 UTC (rev 12640) @@ -29,26 +29,16 @@ integer, parameter :: PLESC_HAS_TEXT = 20 ! driver draws text integer, parameter :: PLESC_IMAGE = 21 ! handle image integer, parameter :: PLESC_IMAGEOPS = 22 ! plimage related operations - integer :: DRAW_LINEX ! draw lines parallel to the X axis - data DRAW_LINEX / z'01' / - integer :: DRAW_LINEY ! draw lines parallel to the Y axis - data DRAW_LINEY / z'02' / - integer :: DRAW_LINEXY ! draw lines parallel to both the X and Y axes - data DRAW_LINEXY / z'03' / - integer :: MAG_COLOR ! draw the mesh with a color dependent of the magnitude - data MAG_COLOR / z'04' / - integer :: BASE_CONT ! draw contour plot at bottom xy plane - data BASE_CONT / z'08' / - integer :: TOP_CONT ! draw contour plot at top xy plane - data TOP_CONT / z'10' / - integer :: SURF_CONT ! draw contour plot at surface - data SURF_CONT / z'20' / - integer :: DRAW_SIDES ! draw sides - data DRAW_SIDES / z'40' / - integer :: FACETED ! draw outline for each square that makes up the surface - data FACETED / z'80' / - integer :: MESH ! draw mesh - data MESH / z'100' / + integer, parameter :: DRAW_LINEX = z'01' ! draw lines parallel to the X axis + integer, parameter :: DRAW_LINEY = z'02' ! draw lines parallel to the Y axis + integer, parameter :: DRAW_LINEXY = z'03' ! draw lines parallel to both the X and Y axes + integer, parameter :: MAG_COLOR = z'04' ! draw the mesh with a color dependent of the magnitude + integer, parameter :: BASE_CONT = z'08' ! draw contour plot at bottom xy plane + integer, parameter :: TOP_CONT = z'10' ! draw contour plot at top xy plane + integer, parameter :: SURF_CONT = z'20' ! draw contour plot at surface + integer, parameter :: DRAW_SIDES = z'40' ! draw sides + integer, parameter :: FACETED = z'80' ! draw outline for each square that makes up the surface + integer, parameter :: MESH = z'100' ! draw mesh integer, parameter :: PL_BIN_DEFAULT = 0 integer, parameter :: PL_BIN_CENTRED = 1 integer, parameter :: PL_BIN_NOEXPAND = 2 @@ -74,118 +64,65 @@ integer, parameter :: PL_LEGEND_BACKGROUND = 32 integer, parameter :: PL_LEGEND_BOUNDING_BOX = 64 integer, parameter :: PL_LEGEND_ROW_MAJOR = 128 - integer :: PL_COLORBAR_LABEL_LEFT - data PL_COLORBAR_LABEL_LEFT / z'1' / - integer :: PL_COLORBAR_LABEL_RIGHT - data PL_COLORBAR_LABEL_RIGHT / z'2' / - integer :: PL_COLORBAR_LABEL_TOP - data PL_COLORBAR_LABEL_TOP / z'4' / - integer :: PL_COLORBAR_LABEL_BOTTOM - data PL_COLORBAR_LABEL_BOTTOM / z'8' / - integer :: PL_COLORBAR_IMAGE - data PL_COLORBAR_IMAGE / z'10' / - integer :: PL_COLORBAR_SHADE - data PL_COLORBAR_SHADE / z'20' / - integer :: PL_COLORBAR_GRADIENT - data PL_COLORBAR_GRADIENT / z'40' / - integer :: PL_COLORBAR_CAP_NONE - data PL_COLORBAR_CAP_NONE / z'80' / - integer :: PL_COLORBAR_CAP_LOW - data PL_COLORBAR_CAP_LOW / z'100' / - integer :: PL_COLORBAR_CAP_HIGH - data PL_COLORBAR_CAP_HIGH / z'200' / - integer :: PL_COLORBAR_SHADE_LABEL - data PL_COLORBAR_SHADE_LABEL / z'400' / - integer :: PL_COLORBAR_ORIENT_RIGHT - data PL_COLORBAR_ORIENT_RIGHT / z'800' / - integer :: PL_COLORBAR_ORIENT_TOP - data PL_COLORBAR_ORIENT_TOP / z'1000' / - integer :: PL_COLORBAR_ORIENT_LEFT - data PL_COLORBAR_ORIENT_LEFT / z'2000' / - integer :: PL_COLORBAR_ORIENT_BOTTOM - data PL_COLORBAR_ORIENT_BOTTOM / z'4000' / - integer :: PL_COLORBAR_BACKGROUND - data PL_COLORBAR_BACKGROUND / z'8000' / - integer :: PL_COLORBAR_BOUNDING_BOX - data PL_COLORBAR_BOUNDING_BOX / z'10000' / + integer, parameter :: PL_COLORBAR_LABEL_LEFT = z'1' + integer, parameter :: PL_COLORBAR_LABEL_RIGHT = z'2' + integer, parameter :: PL_COLORBAR_LABEL_TOP = z'4' + integer, parameter :: PL_COLORBAR_LABEL_BOTTOM = z'8' + integer, parameter :: PL_COLORBAR_IMAGE = z'10' + integer, parameter :: PL_COLORBAR_SHADE = z'20' + integer, parameter :: PL_COLORBAR_GRADIENT = z'40' + integer, parameter :: PL_COLORBAR_CAP_NONE = z'80' + integer, parameter :: PL_COLORBAR_CAP_LOW = z'100' + integer, parameter :: PL_COLORBAR_CAP_HIGH = z'200' + integer, parameter :: PL_COLORBAR_SHADE_LABEL = z'400' + integer, parameter :: PL_COLORBAR_ORIENT_RIGHT = z'800' + integer, parameter :: PL_COLORBAR_ORIENT_TOP = z'1000' + integer, parameter :: PL_COLORBAR_ORIENT_LEFT = z'2000' + integer, parameter :: PL_COLORBAR_ORIENT_BOTTOM = z'4000' + integer, parameter :: PL_COLORBAR_BACKGROUND = z'8000' + integer, parameter :: PL_COLORBAR_BOUNDING_BOX = z'10000' integer, parameter :: PLSWIN_DEVICE = 1 ! device coordinates integer, parameter :: PLSWIN_WORLD = 2 ! world coordinates integer, parameter :: PL_X_AXIS = 1 ! The x-axis integer, parameter :: PL_Y_AXIS = 2 ! The y-axis integer, parameter :: PL_Z_AXIS = 3 ! The z-axis - integer :: PL_OPT_ENABLED ! Obsolete - data PL_OPT_ENABLED / z'0001' / - integer :: PL_OPT_ARG ! Option has an argment - data PL_OPT_ARG / z'0002' / - integer :: PL_OPT_NODELETE ! Don't delete after processing - data PL_OPT_NODELETE / z'0004' / - integer :: PL_OPT_INVISIBLE ! Make invisible - data PL_OPT_INVISIBLE / z'0008' / - integer :: PL_OPT_DISABLED ! Processing is disabled - data PL_OPT_DISABLED / z'0010' / - integer :: PL_OPT_FUNC ! Call handler function - data PL_OPT_FUNC / z'0100' / - integer :: PL_OPT_BOOL ! Set *var = 1 - data PL_OPT_BOOL / z'0200' / - integer :: PL_OPT_INT ! Set *var = atoi(optarg) - data PL_OPT_INT / z'0400' / - integer :: PL_OPT_FLOAT ! Set *var = atof(optarg) - data PL_OPT_FLOAT / z'0800' / - integer :: PL_OPT_STRING ! Set var = optarg - data PL_OPT_STRING / z'1000' / - integer :: PL_PARSE_PARTIAL ! For backward compatibility - data PL_PARSE_PARTIAL / z'0000' / - integer :: PL_PARSE_FULL ! Process fully & exit if error - data PL_PARSE_FULL / z'0001' / - integer :: PL_PARSE_QUIET ! Don't issue messages - data PL_PARSE_QUIET / z'0002' / - integer :: PL_PARSE_NODELETE ! Don't delete options after - data PL_PARSE_NODELETE / z'0004' / - integer :: PL_PARSE_SHOWALL ! Show invisible options - data PL_PARSE_SHOWALL / z'0008' / - integer :: PL_PARSE_OVERRIDE ! Obsolete - data PL_PARSE_OVERRIDE / z'0010' / - integer :: PL_PARSE_NOPROGRAM ! Program name NOT in *argv[0].. - data PL_PARSE_NOPROGRAM / z'0020' / - integer :: PL_PARSE_NODASH ! Set if leading dash NOT required - data PL_PARSE_NODASH / z'0040' / - integer :: PL_PARSE_SKIP ! Skip over unrecognized args - data PL_PARSE_SKIP / z'0080' / + integer, parameter :: PL_OPT_ENABLED = z'0001' ! Obsolete + integer, parameter :: PL_OPT_ARG = z'0002' ! Option has an argment + integer, parameter :: PL_OPT_NODELETE = z'0004' ! Don't delete after processing + integer, parameter :: PL_OPT_INVISIBLE = z'0008' ! Make invisible + integer, parameter :: PL_OPT_DISABLED = z'0010' ! Processing is disabled + integer, parameter :: PL_OPT_FUNC = z'0100' ! Call handler function + integer, parameter :: PL_OPT_BOOL = z'0200' ! Set *var = 1 + integer, parameter :: PL_OPT_INT = z'0400' ! Set *var = atoi(optarg) + integer, parameter :: PL_OPT_FLOAT = z'0800' ! Set *var = atof(optarg) + integer, parameter :: PL_OPT_STRING = z'1000' ! Set var = optarg + integer, parameter :: PL_PARSE_PARTIAL = z'0000' ! For backward compatibility + integer, parameter :: PL_PARSE_FULL = z'0001' ! Process fully & exit if error + integer, parameter :: PL_PARSE_QUIET = z'0002' ! Don't issue messages + integer, parameter :: PL_PARSE_NODELETE = z'0004' ! Don't delete options after + integer, parameter :: PL_PARSE_SHOWALL = z'0008' ! Show invisible options + integer, parameter :: PL_PARSE_OVERRIDE = z'0010' ! Obsolete + integer, parameter :: PL_PARSE_NOPROGRAM = z'0020' ! Program name NOT in *argv[0].. + integer, parameter :: PL_PARSE_NODASH = z'0040' ! Set if leading dash NOT required + integer, parameter :: PL_PARSE_SKIP = z'0080' ! Skip over unrecognized args integer, parameter :: PL_FCI_MARK = ishft(1,31) - integer :: PL_FCI_IMPOSSIBLE - data PL_FCI_IMPOSSIBLE / z'00000000' / - integer :: PL_FCI_HEXDIGIT_MASK - data PL_FCI_HEXDIGIT_MASK / z'f' / - integer :: PL_FCI_HEXPOWER_MASK - data PL_FCI_HEXPOWER_MASK / z'7' / - integer :: PL_FCI_HEXPOWER_IMPOSSIBLE - data PL_FCI_HEXPOWER_IMPOSSIBLE / z'f' / - integer :: PL_FCI_FAMILY - data PL_FCI_FAMILY / z'0' / - integer :: PL_FCI_STYLE - data PL_FCI_STYLE / z'1' / - integer :: PL_FCI_WEIGHT - data PL_FCI_WEIGHT / z'2' / - integer :: PL_FCI_SANS - data PL_FCI_SANS / z'0' / - integer :: PL_FCI_SERIF - data PL_FCI_SERIF / z'1' / - integer :: PL_FCI_MONO - data PL_FCI_MONO / z'2' / - integer :: PL_FCI_SCRIPT - data PL_FCI_SCRIPT / z'3' / - integer :: PL_FCI_SYMBOL - data PL_FCI_SYMBOL / z'4' / - integer :: PL_FCI_UPRIGHT - data PL_FCI_UPRIGHT / z'0' / - integer :: PL_FCI_ITALIC - data PL_FCI_ITALIC / z'1' / - integer :: PL_FCI_OBLIQUE - data PL_FCI_OBLIQUE / z'2' / - integer :: PL_FCI_MEDIUM - data PL_FCI_MEDIUM / z'0' / - integer :: PL_FCI_BOLD - data PL_FCI_BOLD / z'1' / + integer, parameter :: PL_FCI_IMPOSSIBLE = z'00000000' + integer, parameter :: PL_FCI_HEXDIGIT_MASK = z'f' + integer, parameter :: PL_FCI_HEXPOWER_MASK = z'7' + integer, parameter :: PL_FCI_HEXPOWER_IMPOSSIBLE = z'f' + integer, parameter :: PL_FCI_FAMILY = z'0' + integer, parameter :: PL_FCI_STYLE = z'1' + integer, parameter :: PL_FCI_WEIGHT = z'2' + integer, parameter :: PL_FCI_SANS = z'0' + integer, parameter :: PL_FCI_SERIF = z'1' + integer, parameter :: PL_FCI_MONO = z'2' + integer, parameter :: PL_FCI_SCRIPT = z'3' + integer, parameter :: PL_FCI_SYMBOL = z'4' + integer, parameter :: PL_FCI_UPRIGHT = z'0' + integer, parameter :: PL_FCI_ITALIC = z'1' + integer, parameter :: PL_FCI_OBLIQUE = z'2' + integer, parameter :: PL_FCI_MEDIUM = z'0' + integer, parameter :: PL_FCI_BOLD = z'1' integer, parameter :: PL_MAXKEY = 16 integer, parameter :: PL_MAXWINDOWS = 64 ! Max number of windows/page tracked real(kind=plflt), parameter :: PL_NOTSET = -42.0_plflt This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ai...@us...> - 2013-10-30 20:12:20
|
Revision: 12641 http://sourceforge.net/p/plplot/code/12641 Author: airwin Date: 2013-10-30 20:12:17 +0000 (Wed, 30 Oct 2013) Log Message: ----------- Replace all BOZ constants by their decimal equivalents to reestablish the standards compliance lost by the last commit (since Fortran 95, 2003, and 2008 standards all do not allow BOZ constants to initialize integers for some strange reason). Modified Paths: -------------- trunk/bindings/f95/global_defines.sed trunk/bindings/f95/plplot_parameters.h Modified: trunk/bindings/f95/global_defines.sed =================================================================== --- trunk/bindings/f95/global_defines.sed 2013-10-30 17:29:31 UTC (rev 12640) +++ trunk/bindings/f95/global_defines.sed 2013-10-30 20:12:17 UTC (rev 12641) @@ -40,6 +40,25 @@ /^#define/ s?^#define *\(PL_NOTSET\)[ (]*\([^ ]*\)[ )]*\(.*\)$? real(kind=plflt), parameter :: \1 = \2.0_plflt\3\n real(kind=plflt), parameter :: PL_PI = 3.1415926535897932384_plflt\n real(kind=plflt), parameter :: PL_TWOPI = 2.0_plflt*PL_PI? +# Replace all hexadecimal BOZ constants by their decimal equivalents to maintain +# standards compliance rather than relying on an extension from the +# Fortran standards which allows BOZ constants in this context. +# (This extension is likely implemented by each different Fortran +# compiler, but you can never be sure.) + +/^#define/ s?z'0*\([0-9]\)'?\1? +/^#define/ s?z'0*f'?15? +/^#define/ s?z'0*\([0-9]\)0'?\1*16? +/^#define/ s?z'0*\([0-9]\)00'?\1*16*16? +/^#define/ s?z'0*\([0-9]\)000'?\1*16*16*16? +/^#define/ s?z'0*\([0-9]\)0000'?\1*16*16*16*16? +# This last one is one more than we currently need. +/^#define/ s?z'0*\([0-9]\)00000'?\1*16*16*16*16*16? + +# Note we could do the same transformation for octal BOZ constants, but we +# don't have any at present. + + # Comment the following line so that we do not use a special form for BOZ constants. #/^#define/ s?^#define *\([^ ]*\)[ (]*\([oz][^ ]*\)[ )]*\(.*\)$? integer :: \1 \3\n data \1 / \2 /? /^#define/ s?^#define *\([^ ]*\)[ (]*\([^ ]*\)[ )]*\(.*\)$? integer, parameter :: \1 = \2 \3? Modified: trunk/bindings/f95/plplot_parameters.h =================================================================== --- trunk/bindings/f95/plplot_parameters.h 2013-10-30 17:29:31 UTC (rev 12640) +++ trunk/bindings/f95/plplot_parameters.h 2013-10-30 20:12:17 UTC (rev 12641) @@ -29,16 +29,16 @@ integer, parameter :: PLESC_HAS_TEXT = 20 ! driver draws text integer, parameter :: PLESC_IMAGE = 21 ! handle image integer, parameter :: PLESC_IMAGEOPS = 22 ! plimage related operations - integer, parameter :: DRAW_LINEX = z'01' ! draw lines parallel to the X axis - integer, parameter :: DRAW_LINEY = z'02' ! draw lines parallel to the Y axis - integer, parameter :: DRAW_LINEXY = z'03' ! draw lines parallel to both the X and Y axes - integer, parameter :: MAG_COLOR = z'04' ! draw the mesh with a color dependent of the magnitude - integer, parameter :: BASE_CONT = z'08' ! draw contour plot at bottom xy plane - integer, parameter :: TOP_CONT = z'10' ! draw contour plot at top xy plane - integer, parameter :: SURF_CONT = z'20' ! draw contour plot at surface - integer, parameter :: DRAW_SIDES = z'40' ! draw sides - integer, parameter :: FACETED = z'80' ! draw outline for each square that makes up the surface - integer, parameter :: MESH = z'100' ! draw mesh + integer, parameter :: DRAW_LINEX = 1 ! draw lines parallel to the X axis + integer, parameter :: DRAW_LINEY = 2 ! draw lines parallel to the Y axis + integer, parameter :: DRAW_LINEXY = 3 ! draw lines parallel to both the X and Y axes + integer, parameter :: MAG_COLOR = 4 ! draw the mesh with a color dependent of the magnitude + integer, parameter :: BASE_CONT = 8 ! draw contour plot at bottom xy plane + integer, parameter :: TOP_CONT = 1*16 ! draw contour plot at top xy plane + integer, parameter :: SURF_CONT = 2*16 ! draw contour plot at surface + integer, parameter :: DRAW_SIDES = 4*16 ! draw sides + integer, parameter :: FACETED = 8*16 ! draw outline for each square that makes up the surface + integer, parameter :: MESH = 1*16*16 ! draw mesh integer, parameter :: PL_BIN_DEFAULT = 0 integer, parameter :: PL_BIN_CENTRED = 1 integer, parameter :: PL_BIN_NOEXPAND = 2 @@ -64,65 +64,65 @@ integer, parameter :: PL_LEGEND_BACKGROUND = 32 integer, parameter :: PL_LEGEND_BOUNDING_BOX = 64 integer, parameter :: PL_LEGEND_ROW_MAJOR = 128 - integer, parameter :: PL_COLORBAR_LABEL_LEFT = z'1' - integer, parameter :: PL_COLORBAR_LABEL_RIGHT = z'2' - integer, parameter :: PL_COLORBAR_LABEL_TOP = z'4' - integer, parameter :: PL_COLORBAR_LABEL_BOTTOM = z'8' - integer, parameter :: PL_COLORBAR_IMAGE = z'10' - integer, parameter :: PL_COLORBAR_SHADE = z'20' - integer, parameter :: PL_COLORBAR_GRADIENT = z'40' - integer, parameter :: PL_COLORBAR_CAP_NONE = z'80' - integer, parameter :: PL_COLORBAR_CAP_LOW = z'100' - integer, parameter :: PL_COLORBAR_CAP_HIGH = z'200' - integer, parameter :: PL_COLORBAR_SHADE_LABEL = z'400' - integer, parameter :: PL_COLORBAR_ORIENT_RIGHT = z'800' - integer, parameter :: PL_COLORBAR_ORIENT_TOP = z'1000' - integer, parameter :: PL_COLORBAR_ORIENT_LEFT = z'2000' - integer, parameter :: PL_COLORBAR_ORIENT_BOTTOM = z'4000' - integer, parameter :: PL_COLORBAR_BACKGROUND = z'8000' - integer, parameter :: PL_COLORBAR_BOUNDING_BOX = z'10000' + integer, parameter :: PL_COLORBAR_LABEL_LEFT = 1 + integer, parameter :: PL_COLORBAR_LABEL_RIGHT = 2 + integer, parameter :: PL_COLORBAR_LABEL_TOP = 4 + integer, parameter :: PL_COLORBAR_LABEL_BOTTOM = 8 + integer, parameter :: PL_COLORBAR_IMAGE = 1*16 + integer, parameter :: PL_COLORBAR_SHADE = 2*16 + integer, parameter :: PL_COLORBAR_GRADIENT = 4*16 + integer, parameter :: PL_COLORBAR_CAP_NONE = 8*16 + integer, parameter :: PL_COLORBAR_CAP_LOW = 1*16*16 + integer, parameter :: PL_COLORBAR_CAP_HIGH = 2*16*16 + integer, parameter :: PL_COLORBAR_SHADE_LABEL = 4*16*16 + integer, parameter :: PL_COLORBAR_ORIENT_RIGHT = 8*16*16 + integer, parameter :: PL_COLORBAR_ORIENT_TOP = 1*16*16*16 + integer, parameter :: PL_COLORBAR_ORIENT_LEFT = 2*16*16*16 + integer, parameter :: PL_COLORBAR_ORIENT_BOTTOM = 4*16*16*16 + integer, parameter :: PL_COLORBAR_BACKGROUND = 8*16*16*16 + integer, parameter :: PL_COLORBAR_BOUNDING_BOX = 1*16*16*16*16 integer, parameter :: PLSWIN_DEVICE = 1 ! device coordinates integer, parameter :: PLSWIN_WORLD = 2 ! world coordinates integer, parameter :: PL_X_AXIS = 1 ! The x-axis integer, parameter :: PL_Y_AXIS = 2 ! The y-axis integer, parameter :: PL_Z_AXIS = 3 ! The z-axis - integer, parameter :: PL_OPT_ENABLED = z'0001' ! Obsolete - integer, parameter :: PL_OPT_ARG = z'0002' ! Option has an argment - integer, parameter :: PL_OPT_NODELETE = z'0004' ! Don't delete after processing - integer, parameter :: PL_OPT_INVISIBLE = z'0008' ! Make invisible - integer, parameter :: PL_OPT_DISABLED = z'0010' ! Processing is disabled - integer, parameter :: PL_OPT_FUNC = z'0100' ! Call handler function - integer, parameter :: PL_OPT_BOOL = z'0200' ! Set *var = 1 - integer, parameter :: PL_OPT_INT = z'0400' ! Set *var = atoi(optarg) - integer, parameter :: PL_OPT_FLOAT = z'0800' ! Set *var = atof(optarg) - integer, parameter :: PL_OPT_STRING = z'1000' ! Set var = optarg - integer, parameter :: PL_PARSE_PARTIAL = z'0000' ! For backward compatibility - integer, parameter :: PL_PARSE_FULL = z'0001' ! Process fully & exit if error - integer, parameter :: PL_PARSE_QUIET = z'0002' ! Don't issue messages - integer, parameter :: PL_PARSE_NODELETE = z'0004' ! Don't delete options after - integer, parameter :: PL_PARSE_SHOWALL = z'0008' ! Show invisible options - integer, parameter :: PL_PARSE_OVERRIDE = z'0010' ! Obsolete - integer, parameter :: PL_PARSE_NOPROGRAM = z'0020' ! Program name NOT in *argv[0].. - integer, parameter :: PL_PARSE_NODASH = z'0040' ! Set if leading dash NOT required - integer, parameter :: PL_PARSE_SKIP = z'0080' ! Skip over unrecognized args + integer, parameter :: PL_OPT_ENABLED = 1 ! Obsolete + integer, parameter :: PL_OPT_ARG = 2 ! Option has an argment + integer, parameter :: PL_OPT_NODELETE = 4 ! Don't delete after processing + integer, parameter :: PL_OPT_INVISIBLE = 8 ! Make invisible + integer, parameter :: PL_OPT_DISABLED = 1*16 ! Processing is disabled + integer, parameter :: PL_OPT_FUNC = 1*16*16 ! Call handler function + integer, parameter :: PL_OPT_BOOL = 2*16*16 ! Set *var = 1 + integer, parameter :: PL_OPT_INT = 4*16*16 ! Set *var = atoi(optarg) + integer, parameter :: PL_OPT_FLOAT = 8*16*16 ! Set *var = atof(optarg) + integer, parameter :: PL_OPT_STRING = 1*16*16*16 ! Set var = optarg + integer, parameter :: PL_PARSE_PARTIAL = 0 ! For backward compatibility + integer, parameter :: PL_PARSE_FULL = 1 ! Process fully & exit if error + integer, parameter :: PL_PARSE_QUIET = 2 ! Don't issue messages + integer, parameter :: PL_PARSE_NODELETE = 4 ! Don't delete options after + integer, parameter :: PL_PARSE_SHOWALL = 8 ! Show invisible options + integer, parameter :: PL_PARSE_OVERRIDE = 1*16 ! Obsolete + integer, parameter :: PL_PARSE_NOPROGRAM = 2*16 ! Program name NOT in *argv[0].. + integer, parameter :: PL_PARSE_NODASH = 4*16 ! Set if leading dash NOT required + integer, parameter :: PL_PARSE_SKIP = 8*16 ! Skip over unrecognized args integer, parameter :: PL_FCI_MARK = ishft(1,31) - integer, parameter :: PL_FCI_IMPOSSIBLE = z'00000000' - integer, parameter :: PL_FCI_HEXDIGIT_MASK = z'f' - integer, parameter :: PL_FCI_HEXPOWER_MASK = z'7' - integer, parameter :: PL_FCI_HEXPOWER_IMPOSSIBLE = z'f' - integer, parameter :: PL_FCI_FAMILY = z'0' - integer, parameter :: PL_FCI_STYLE = z'1' - integer, parameter :: PL_FCI_WEIGHT = z'2' - integer, parameter :: PL_FCI_SANS = z'0' - integer, parameter :: PL_FCI_SERIF = z'1' - integer, parameter :: PL_FCI_MONO = z'2' - integer, parameter :: PL_FCI_SCRIPT = z'3' - integer, parameter :: PL_FCI_SYMBOL = z'4' - integer, parameter :: PL_FCI_UPRIGHT = z'0' - integer, parameter :: PL_FCI_ITALIC = z'1' - integer, parameter :: PL_FCI_OBLIQUE = z'2' - integer, parameter :: PL_FCI_MEDIUM = z'0' - integer, parameter :: PL_FCI_BOLD = z'1' + integer, parameter :: PL_FCI_IMPOSSIBLE = 0 + integer, parameter :: PL_FCI_HEXDIGIT_MASK = 15 + integer, parameter :: PL_FCI_HEXPOWER_MASK = 7 + integer, parameter :: PL_FCI_HEXPOWER_IMPOSSIBLE = 15 + integer, parameter :: PL_FCI_FAMILY = 0 + integer, parameter :: PL_FCI_STYLE = 1 + integer, parameter :: PL_FCI_WEIGHT = 2 + integer, parameter :: PL_FCI_SANS = 0 + integer, parameter :: PL_FCI_SERIF = 1 + integer, parameter :: PL_FCI_MONO = 2 + integer, parameter :: PL_FCI_SCRIPT = 3 + integer, parameter :: PL_FCI_SYMBOL = 4 + integer, parameter :: PL_FCI_UPRIGHT = 0 + integer, parameter :: PL_FCI_ITALIC = 1 + integer, parameter :: PL_FCI_OBLIQUE = 2 + integer, parameter :: PL_FCI_MEDIUM = 0 + integer, parameter :: PL_FCI_BOLD = 1 integer, parameter :: PL_MAXKEY = 16 integer, parameter :: PL_MAXWINDOWS = 64 ! Max number of windows/page tracked real(kind=plflt), parameter :: PL_NOTSET = -42.0_plflt This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ai...@us...> - 2013-11-13 19:27:20
|
Revision: 12691 http://sourceforge.net/p/plplot/code/12691 Author: airwin Date: 2013-11-13 19:27:17 +0000 (Wed, 13 Nov 2013) Log Message: ----------- For historical reasons ZEROW2B, ZEROW2D, ONEW2B, and ONEW2D were dropped from the fortran parameters, but since those are correctly #defined in plplot.h and not dropped by any other language (except tcl which is about to be similarly fixed) include those parameters. Modified Paths: -------------- trunk/bindings/f95/global_defines.sed trunk/bindings/f95/plplot_parameters.h Modified: trunk/bindings/f95/global_defines.sed =================================================================== --- trunk/bindings/f95/global_defines.sed 2013-11-13 12:15:17 UTC (rev 12690) +++ trunk/bindings/f95/global_defines.sed 2013-11-13 19:27:17 UTC (rev 12691) @@ -18,8 +18,6 @@ # Drop specific #defines from the file that are not available # because of specific #if statements. -/^#define ZEROW/ d -/^#define ONEW/ d /OBJECT_DATA/ d /^#define pltr_img/ d Modified: trunk/bindings/f95/plplot_parameters.h =================================================================== --- trunk/bindings/f95/plplot_parameters.h 2013-11-13 12:15:17 UTC (rev 12690) +++ trunk/bindings/f95/plplot_parameters.h 2013-11-13 19:27:17 UTC (rev 12691) @@ -50,6 +50,10 @@ integer, parameter :: PLTEXT_BACKCHAR = 3 ! back-char in the text stream integer, parameter :: PLTEXT_OVERLINE = 4 ! toggle overline in the text stream integer, parameter :: PLTEXT_UNDERLINE = 5 ! toggle underline in the text stream + integer, parameter :: ZEROW2B = 1 + integer, parameter :: ZEROW2D = 2 + integer, parameter :: ONEW2B = 3 + integer, parameter :: ONEW2D = 4 integer, parameter :: PLSWIN_DEVICE = 1 ! device coordinates integer, parameter :: PLSWIN_WORLD = 2 ! world coordinates integer, parameter :: PL_X_AXIS = 1 ! The x-axis This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <arj...@us...> - 2013-12-07 06:54:23
|
Revision: 12824 http://sourceforge.net/p/plplot/code/12824 Author: arjenmarkus Date: 2013-12-07 06:54:18 +0000 (Sat, 07 Dec 2013) Log Message: ----------- Replace the optional "rectangular" argument to plshades by an overloaded function so that it can be placed in the same position as in the corresponding C function. Modified Paths: -------------- trunk/bindings/f95/plplotf95.def trunk/bindings/f95/plplotf95_ifort.def trunk/bindings/f95/plplotf95_mingw.def trunk/bindings/f95/sfstubs.f90 trunk/bindings/f95/sfstubsf95.f90 Modified: trunk/bindings/f95/plplotf95.def =================================================================== --- trunk/bindings/f95/plplotf95.def 2013-12-07 02:15:07 UTC (rev 12823) +++ trunk/bindings/f95/plplotf95.def 2013-12-07 06:54:18 UTC (rev 12824) @@ -31,6 +31,7 @@ _PLPLOTP_mp_PLSHADE_SINGLE_TR@68 _PLPLOTP_mp_PLSHADES_MULTIPLE_0@44 _PLPLOTP_mp_PLSHADES_MULTIPLE_1@52 + _PLPLOTP_mp_PLSHADES_MULTIPLE_1R@56 _PLPLOTP_mp_PLSHADES_MULTIPLE_2@52 _PLPLOTP_mp_PLSHADES_MULTIPLE_TR@48 _PLPLOTP_mp_PLSPAL0@8 Modified: trunk/bindings/f95/plplotf95_ifort.def =================================================================== --- trunk/bindings/f95/plplotf95_ifort.def 2013-12-07 02:15:07 UTC (rev 12823) +++ trunk/bindings/f95/plplotf95_ifort.def 2013-12-07 06:54:18 UTC (rev 12824) @@ -31,6 +31,7 @@ PLPLOTP_mp_PLSHADE_SINGLE_TR PLPLOTP_mp_PLSHADES_MULTIPLE_0 PLPLOTP_mp_PLSHADES_MULTIPLE_1 + PLPLOTP_mp_PLSHADES_MULTIPLE_1R PLPLOTP_mp_PLSHADES_MULTIPLE_2 PLPLOTP_mp_PLSHADES_MULTIPLE_TR PLPLOTP_mp_PLSPAL0 Modified: trunk/bindings/f95/plplotf95_mingw.def =================================================================== --- trunk/bindings/f95/plplotf95_mingw.def 2013-12-07 02:15:07 UTC (rev 12823) +++ trunk/bindings/f95/plplotf95_mingw.def 2013-12-07 06:54:18 UTC (rev 12824) @@ -38,6 +38,7 @@ __plplotp_MOD_plshade_single_tr __plplotp_MOD_plshades_multiple_0 __plplotp_MOD_plshades_multiple_1 + __plplotp_MOD_plshades_multiple_1r __plplotp_MOD_plshades_multiple_2 __plplotp_MOD_plshades_multiple_tr __plplotp_MOD_plspal0 Modified: trunk/bindings/f95/sfstubs.f90 =================================================================== --- trunk/bindings/f95/sfstubs.f90 2013-12-07 02:15:07 UTC (rev 12823) +++ trunk/bindings/f95/sfstubs.f90 2013-12-07 06:54:18 UTC (rev 12824) @@ -534,12 +534,11 @@ subroutine plshades_multiple_1(z, defined, & xmin, xmax, ymin, ymax, & clevel, fill_width, & - cont_color, cont_width, xg1, yg1, rectangular) + cont_color, cont_width, xg1, yg1) implicit none character defined*(*) integer cont_color - logical, optional :: rectangular real(kind=plflt) fill_width, cont_width real(kind=plflt) clevel(:) real(kind=plflt) z(:,:), xmin, xmax, ymin, ymax, & @@ -550,9 +549,6 @@ ! call plstrf2c(dnam, string1) rect = 1 - if ( present(rectangular) ) then - rect = merge( 1, 0, rectangular ) - endif s1 = transfer( string1, s1 ) call plshades17(z, size(z,1), size(z,2), s1, & @@ -564,6 +560,36 @@ !*********************************************************************** + subroutine plshades_multiple_1r(z, defined, & + xmin, xmax, ymin, ymax, & + clevel, fill_width, & + cont_color, cont_width, rectangular, xg1, yg1) + + implicit none + character defined*(*) + integer cont_color + logical rectangular + real(kind=plflt) fill_width, cont_width + real(kind=plflt) clevel(:) + real(kind=plflt) z(:,:), xmin, xmax, ymin, ymax, & + xg1(:), yg1(:) + + integer rect + +! call plstrf2c(dnam, string1) + + rect = merge( 1, 0, rectangular ) + + s1 = transfer( string1, s1 ) + call plshades17(z, size(z,1), size(z,2), s1, & + xmin, xmax, ymin, ymax, & + clevel, size(clevel), fill_width, & + cont_color, cont_width, xg1, yg1, size(z,1), rect) + + end subroutine + +!*********************************************************************** + subroutine plshades_multiple_2(z, defined, & xmin, xmax, ymin, ymax, & clevel, fill_width, & Modified: trunk/bindings/f95/sfstubsf95.f90 =================================================================== --- trunk/bindings/f95/sfstubsf95.f90 2013-12-07 02:15:07 UTC (rev 12823) +++ trunk/bindings/f95/sfstubsf95.f90 2013-12-07 06:54:18 UTC (rev 12824) @@ -110,6 +110,7 @@ interface plshades module procedure plshades_multiple_0 module procedure plshades_multiple_1 + module procedure plshades_multiple_1r module procedure plshades_multiple_2 module procedure plshades_multiple_tr end interface @@ -898,7 +899,7 @@ interface plsvect module procedure plsvect1 - + subroutine plsvect2 end subroutine plsvect2 @@ -1089,7 +1090,7 @@ cont_color, cont_width, & n_labels, label_opts, n_axes, ticks, sub_ticks, & n_values, values) - end subroutine plcolorbar_2 + end subroutine plcolorbar_2 subroutine plcpstrm( iplsr, flags ) integer :: iplsr This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |