]> granicus.if.org Git - graphviz/log
graphviz
2 years agocluster_map: replace boolean array 'assigned' with a bit array
Matthew Fernandez [Wed, 12 Jan 2022 03:28:26 +0000 (19:28 -0800)]
cluster_map: replace boolean array 'assigned' with a bit array

This is more memory efficient.

2 years agodijkstra_bounded: replace boolean array 'node_in_neighborhood' with a bit array
Matthew Fernandez [Wed, 12 Jan 2022 03:21:47 +0000 (19:21 -0800)]
dijkstra_bounded: replace boolean array 'node_in_neighborhood' with a bit array

This is more memory efficient. This also undoes the retention and reuse of this
array making its live range more obvious to the compiler.

2 years agoMerge branch 'add-mingw-static-autotools-build-jobs' into 'main'
Magnus Jacobsson [Wed, 12 Jan 2022 08:47:58 +0000 (08:47 +0000)]
Merge branch 'add-mingw-static-autotools-build-jobs' into 'main'

Unfify the last storage class attribute declarations and add MinGW static autotools builds

Closes #2173

See merge request graphviz/graphviz!2397

2 years agoci: add MinGW32 static autotools build jobs
Magnus Jacobsson [Tue, 11 Jan 2022 17:16:56 +0000 (18:16 +0100)]
ci: add MinGW32 static autotools build jobs

2 years agoci: add MinGW64 static autotools build jobs
Magnus Jacobsson [Sun, 2 Jan 2022 16:57:40 +0000 (17:57 +0100)]
ci: add MinGW64 static autotools build jobs

2 years agoci/build.sh: autotools: add support building using autogen in static builds
Magnus Jacobsson [Mon, 3 Jan 2022 09:55:59 +0000 (10:55 +0100)]
ci/build.sh: autotools: add support building using autogen in static builds

2 years agoci: add support for configure options in out-of-source-configure.sh
Magnus Jacobsson [Sun, 2 Jan 2022 16:55:30 +0000 (17:55 +0100)]
ci: add support for configure options in out-of-source-configure.sh

2 years agogvpack: use GVDLL instead of _WIN32 to enable dllimport storage-class attribute in...
Magnus Jacobsson [Mon, 3 Jan 2022 08:32:48 +0000 (09:32 +0100)]
gvpack: use GVDLL instead of _WIN32 to enable dllimport storage-class attribute in gvpack.c

Fixes these errors when building statically with MinGW:

C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: gvpack_static-gvpack.o: in function `main':
C:\Users\magja\graphviz\cmd\tools/gvpack.c:857: undefined reference to `__imp_gvplugin_neato_layout_LTX_library'
collect2.exe: error: ld returned 1 exit status
C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: gvpack-gvpack.o: in function `main':
C:\Users\magja\graphviz\cmd\tools/gvpack.c:857: undefined reference to `__imp_gvplugin_neato_layout_LTX_library'

Fixes https://gitlab.com/graphviz/graphviz/-/issues/2173.

2 years agogdtclft: use only GVDLL to enable dllexport storage-class attribute for Gdtclft_SafeInit
Magnus Jacobsson [Sun, 2 Jan 2022 18:35:05 +0000 (19:35 +0100)]
gdtclft: use only GVDLL to enable dllexport storage-class attribute for Gdtclft_SafeInit

Instead of using __CYGWIN__ and __WIN32__, rely on that GVDLL is
correctly set for all platforms.

Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.

2 years agogdtclft: use only GVDLL to enable dllexport storage-class attribute for Gdtclft_Init
Magnus Jacobsson [Sun, 2 Jan 2022 18:35:05 +0000 (19:35 +0100)]
gdtclft: use only GVDLL to enable dllexport storage-class attribute for Gdtclft_Init

Instead of using __CYGWIN__ and __WIN32__, rely on that GVDLL is
correctly set for all platforms.

Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.

2 years agoMerge branch 'smattr/c144f079-34fb-4177-84dd-821809ad0a39' into 'main'
Matthew Fernandez [Wed, 12 Jan 2022 02:16:38 +0000 (02:16 +0000)]
Merge branch 'smattr/c144f079-34fb-4177-84dd-821809ad0a39' into 'main'

more boolean → bool modernization

See merge request graphviz/graphviz!2396

2 years agogvprintnum: use C99 bools for locals 'showzeros', 'negative'
Matthew Fernandez [Tue, 11 Jan 2022 04:59:36 +0000 (20:59 -0800)]
gvprintnum: use C99 bools for locals 'showzeros', 'negative'

2 years agogvdevice_finalize: use a C99 bool for local 'finalized_p'
Matthew Fernandez [Tue, 11 Jan 2022 04:58:06 +0000 (20:58 -0800)]
gvdevice_finalize: use a C99 bool for local 'finalized_p'

2 years agosetbounds: use C99 bools for locals 'onleft', 'onright'
Matthew Fernandez [Tue, 11 Jan 2022 04:56:57 +0000 (20:56 -0800)]
setbounds: use C99 bools for locals 'onleft', 'onright'

2 years agoaddLabelBB: use a C99 bool for parameter 'flipxy'
Matthew Fernandez [Tue, 11 Jan 2022 04:55:19 +0000 (20:55 -0800)]
addLabelBB: use a C99 bool for parameter 'flipxy'

2 years agosafefile: use a C99 bool for local 'onetime'
Matthew Fernandez [Tue, 11 Jan 2022 04:51:13 +0000 (20:51 -0800)]
safefile: use a C99 bool for local 'onetime'

2 years agoshape_clip: use a C99 bool for local 'left_inside'
Matthew Fernandez [Tue, 11 Jan 2022 04:50:18 +0000 (20:50 -0800)]
shape_clip: use a C99 bool for local 'left_inside'

2 years agopoint_gencode: use a C99 bool for local 'filled'
Matthew Fernandez [Tue, 11 Jan 2022 04:48:46 +0000 (20:48 -0800)]
point_gencode: use a C99 bool for local 'filled'

2 years agopoly_gencode: use a C99 bool for local 'pfilled'
Matthew Fernandez [Tue, 11 Jan 2022 04:47:04 +0000 (20:47 -0800)]
poly_gencode: use a C99 bool for local 'pfilled'

2 years agocompassPort: use a C99 bool for local 'defined'
Matthew Fernandez [Tue, 11 Jan 2022 04:46:10 +0000 (20:46 -0800)]
compassPort: use a C99 bool for local 'defined'

2 years agocompassPort: use a C99 bool for local 'clip'
Matthew Fernandez [Tue, 11 Jan 2022 04:44:11 +0000 (20:44 -0800)]
compassPort: use a C99 bool for local 'clip'

2 years agocompassPort: use a C99 bool for local 'dyna'
Matthew Fernandez [Tue, 11 Jan 2022 04:40:37 +0000 (20:40 -0800)]
compassPort: use a C99 bool for local 'dyna'

2 years agocompassPort: use a C99 bool for local 'constrain'
Matthew Fernandez [Tue, 11 Jan 2022 04:37:01 +0000 (20:37 -0800)]
compassPort: use a C99 bool for local 'constrain'

2 years agoobj_state_s: set 1-bit bitfield with with C99 bool literals
Matthew Fernandez [Tue, 11 Jan 2022 04:31:53 +0000 (20:31 -0800)]
obj_state_s: set 1-bit bitfield with with C99 bool literals

2 years agonodeIntersect: take a C99 bool for 'explicit_tooltip'
Matthew Fernandez [Tue, 11 Jan 2022 04:28:34 +0000 (20:28 -0800)]
nodeIntersect: take a C99 bool for 'explicit_tooltip'

2 years agonodeIntersect: take a C99 bool for 'explicit_iurl'
Matthew Fernandez [Tue, 11 Jan 2022 04:23:37 +0000 (20:23 -0800)]
nodeIntersect: take a C99 bool for 'explicit_iurl'

2 years agohandle_keypress: return a C99 bool instead of boolean
Matthew Fernandez [Tue, 11 Jan 2022 04:17:50 +0000 (20:17 -0800)]
handle_keypress: return a C99 bool instead of boolean

2 years agoMerge branch 'install-cygwin-from-cygwin.com' into 'main'
Magnus Jacobsson [Tue, 11 Jan 2022 18:51:39 +0000 (18:51 +0000)]
Merge branch 'install-cygwin-from-cygwin.com' into 'main'

CI: install Cygwin from cygwin.com instead of with choco

See merge request graphviz/graphviz!2395

2 years agoci: install cygwin from cygwin.com instead of with choco
Magnus Jacobsson [Sun, 9 Jan 2022 22:40:41 +0000 (23:40 +0100)]
ci: install cygwin from cygwin.com instead of with choco

2 years agoMerge branch 'smattr/9e86e6dc-0b65-411e-af31-5cb7d722ec63' into 'main'
Matthew Fernandez [Tue, 11 Jan 2022 16:48:49 +0000 (16:48 +0000)]
Merge branch 'smattr/9e86e6dc-0b65-411e-af31-5cb7d722ec63' into 'main'

move lib/mingle/nearest_neighbor_graph.c into C++

See merge request graphviz/graphviz!2384

2 years agonearest_neighbor_graph_ann: take array parameters as vector instead of C arrays
Matthew Fernandez [Sat, 8 Jan 2022 19:04:08 +0000 (11:04 -0800)]
nearest_neighbor_graph_ann: take array parameters as vector instead of C arrays

Now that all calls to this function are in C++, there is no need to degrade to C
data types when calling into it.

Gitlab: #2154

2 years agonearest_neighbor_graph_ann: remove forcing of C linkage
Matthew Fernandez [Sat, 8 Jan 2022 18:59:48 +0000 (10:59 -0800)]
nearest_neighbor_graph_ann: remove forcing of C linkage

The only calls into this function are from C++ code now, so there is no need to
require C calling conventions.

Gitlab: #2154

2 years agonearest_neighbor_graph: remove manual memory management
Matthew Fernandez [Sat, 8 Jan 2022 18:57:35 +0000 (10:57 -0800)]
nearest_neighbor_graph: remove manual memory management

Gitlab: #2154

2 years agonearest_neighbor_graph_ann: remove a level of indirection on array parameters
Matthew Fernandez [Sat, 8 Jan 2022 18:54:46 +0000 (10:54 -0800)]
nearest_neighbor_graph_ann: remove a level of indirection on array parameters

None of these parameters are updated during `nearest_neighbor_graph_ann`, so
taking them by pointer is irrelevant.

2 years agomove lib/mingle/nearest_neighbor_graph.c to C++
Matthew Fernandez [Sat, 8 Jan 2022 18:46:01 +0000 (10:46 -0800)]
move lib/mingle/nearest_neighbor_graph.c to C++

This is straight renaming; no C++ adaptations made yet.

Gitlab: #2154

2 years agonearest_neighbor_graph: cast the result of calls to 'malloc'
Matthew Fernandez [Sat, 8 Jan 2022 18:47:32 +0000 (10:47 -0800)]
nearest_neighbor_graph: cast the result of calls to 'malloc'

This pre-emptively suppresses some `-fpermissive` warnings when transitioning
this code to C++ in an upcoming commit.

Gitlab: #2154

2 years agoMerge branch 'unify-storage-class-declarations-in-gvc++' into 'main'
Magnus Jacobsson [Tue, 11 Jan 2022 07:15:49 +0000 (07:15 +0000)]
Merge branch 'unify-storage-class-declarations-in-gvc++' into 'main'

Unify storage class declarations in gvc++

See merge request graphviz/graphviz!2394

2 years agogvc++: [nfc] align storage-class declarations to Graphviz standard in GVRenderData.h
Magnus Jacobsson [Mon, 10 Jan 2022 15:36:14 +0000 (16:36 +0100)]
gvc++: [nfc] align storage-class declarations to Graphviz standard in GVRenderData.h

2 years agogvc++: use GVDLL instead of _WIN32 to control storage-class attributes in GVRenderData.h
Magnus Jacobsson [Mon, 10 Jan 2022 15:35:57 +0000 (16:35 +0100)]
gvc++: use GVDLL instead of _WIN32 to control storage-class attributes in GVRenderData.h

Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.

2 years agogvc++: [nfc] align storage-class declarations to Graphviz standard in GVLayout.h
Magnus Jacobsson [Mon, 10 Jan 2022 15:35:37 +0000 (16:35 +0100)]
gvc++: [nfc] align storage-class declarations to Graphviz standard in GVLayout.h

2 years agogvc++: use GVDLL instead of _WIN32 to control storage-class attributes in GVLayout.h
Magnus Jacobsson [Mon, 10 Jan 2022 15:35:24 +0000 (16:35 +0100)]
gvc++: use GVDLL instead of _WIN32 to control storage-class attributes in GVLayout.h

Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.

2 years agogvc++: [nfc] align storage-class declarations to Graphviz standard in GVContext.h
Magnus Jacobsson [Mon, 10 Jan 2022 15:34:56 +0000 (16:34 +0100)]
gvc++: [nfc] align storage-class declarations to Graphviz standard in GVContext.h

2 years agogvc++: use GVDLL instead of _WIN32 to control storage-class attributes in GVContext.h
Magnus Jacobsson [Mon, 10 Jan 2022 15:33:35 +0000 (16:33 +0100)]
gvc++: use GVDLL instead of _WIN32 to control storage-class attributes in GVContext.h

Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.

2 years agoMerge branch 'smattr/F5A2D01F-EFF0-42DC-81F5-2985BE24E104' into 'main'
Matthew Fernandez [Tue, 11 Jan 2022 06:01:42 +0000 (06:01 +0000)]
Merge branch 'smattr/F5A2D01F-EFF0-42DC-81F5-2985BE24E104' into 'main'

Revert Perl CFLAG mangling in tclpkg

Closes #2177

See merge request graphviz/graphviz!2388

2 years agoRevert "sed cleanup of CFLAGS from perl which break on opencsw - should be harmless...
Matthew Fernandez [Sun, 9 Jan 2022 16:32:02 +0000 (08:32 -0800)]
Revert "sed cleanup of CFLAGS from perl which break on opencsw - should be harmless elsewhere"

This reverts commit a750d28463a9248fe5a42d3dae5768d38853d837. It is unclear to
me exactly what flag the original code was attempting to suppress, but this
regex is too broad. The specific case causing problems right now is that it
incorrectly mangled `-mno-xop -mbmi` into `-mno-mbmi`. Given the original code
appears to have been working around a 2011 OpenCSW packaging mistake, lets
assume this was fixed sometime in the last decade and see if anyone downstream
complains when we remove the work around.

Gitlab: fixes #2177

2 years agoRevert "clang doesn't support -fstack-clash-protection"
Matthew Fernandez [Sun, 9 Jan 2022 16:27:59 +0000 (08:27 -0800)]
Revert "clang doesn't support -fstack-clash-protection"

This reverts commit e50fd757a297e9917f801cd2781559535f03ce13. Clang added
`-ftack-clash-protection` in 2020.¹

Gitlab: #2177

¹ https://reviews.llvm.org/D68720

2 years agoMerge branch 'unify-storage-class-declarations-in-plugins' into 'main'
Magnus Jacobsson [Mon, 10 Jan 2022 22:49:04 +0000 (22:49 +0000)]
Merge branch 'unify-storage-class-declarations-in-plugins' into 'main'

Unify storage class declarations in plugins

See merge request graphviz/graphviz!2393

2 years agoplugin/pango: use GVDLL instead of _WIN32 to enable dllexport storage-class attribute...
Magnus Jacobsson [Mon, 10 Jan 2022 15:41:11 +0000 (16:41 +0100)]
plugin/pango: use GVDLL instead of _WIN32 to enable dllexport storage-class attribute in gvplugin_pango.c

2 years agoplugin/pango: [nfc] remove whitespace in preprocessor directives in gvplugin_pango.c
Magnus Jacobsson [Mon, 10 Jan 2022 15:40:31 +0000 (16:40 +0100)]
plugin/pango: [nfc] remove whitespace in preprocessor directives in gvplugin_pango.c

2 years agoplugin/neato_layout: [nfc] remove whitespace in preprocessor directives in gvplugin_n...
Magnus Jacobsson [Sun, 2 Jan 2022 18:30:11 +0000 (19:30 +0100)]
plugin/neato_layout: [nfc] remove whitespace in preprocessor directives in gvplugin_neato_layout.cpp

2 years agoplugin/gdiplus: use GVDLL instead of _WIN32 to enable dllexport storage-class attribu...
Magnus Jacobsson [Sun, 2 Jan 2022 18:29:21 +0000 (19:29 +0100)]
plugin/gdiplus: use GVDLL instead of _WIN32 to enable dllexport storage-class attribute in gvplugin_gdiplus.c

Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.

2 years agoplugin/gdiplus: define GVDLL to ensure correct storage-class attributes
Magnus Jacobsson [Sun, 2 Jan 2022 21:11:48 +0000 (22:11 +0100)]
plugin/gdiplus: define GVDLL to ensure correct storage-class attributes

An upcoming commit will change the storage-class attributes to be
controlled by the GVDLL symbol in gvplugin_gdiplus.c.

Without this change, errors like this would occur:

EXEC : error : failed to resolve gvplugin_gdiplus_LTX_library in C:\Users\magja\graphviz\Debug\Graphviz\bin\gvplugin_gdiplus.dll

Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.

2 years agoplugin/gdiplus: [nfc] remove whitespace in preprocessor directives in gvplugin_gdiplu...
Magnus Jacobsson [Sun, 2 Jan 2022 18:28:35 +0000 (19:28 +0100)]
plugin/gdiplus: [nfc] remove whitespace in preprocessor directives in gvplugin_gdiplus.cpp

2 years agoplugin/gd: [nfc] align storage-class declarations to Graphviz standard in gvrender_gd.c
Magnus Jacobsson [Mon, 10 Jan 2022 15:39:28 +0000 (16:39 +0100)]
plugin/gd: [nfc] align storage-class declarations to Graphviz standard in gvrender_gd.c

2 years agoplugin/gd: use GVDLL instead of _WIN32 to control storage-class attributes in gvrende...
Magnus Jacobsson [Mon, 10 Jan 2022 15:38:45 +0000 (16:38 +0100)]
plugin/gd: use GVDLL instead of _WIN32 to control storage-class attributes in gvrender_gd.c

2 years agoplugin/gd: [nfc] remove whitespace in preprocessor directives in gvrender_gd.c
Magnus Jacobsson [Sun, 2 Jan 2022 18:27:32 +0000 (19:27 +0100)]
plugin/gd: [nfc] remove whitespace in preprocessor directives in gvrender_gd.c

2 years agoplugin/gd: use GVDLL instead of _WIN32 to enable dllexport storage-class attribute...
Magnus Jacobsson [Sun, 2 Jan 2022 18:24:52 +0000 (19:24 +0100)]
plugin/gd: use GVDLL instead of _WIN32 to enable dllexport storage-class attribute in gvplugin_gd.c

Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.

2 years agoplugin/gd: define GVDLL to ensure correct storage-class attributes
Magnus Jacobsson [Sun, 2 Jan 2022 21:11:48 +0000 (22:11 +0100)]
plugin/gd: define GVDLL to ensure correct storage-class attributes

An upcoming commit will change the storage-class attributes to be
controlled by the GVDLL symbol in gvplugin_gd.c.

Without this change, errors like this would occur:

EXEC : error : failed to resolve gvplugin_gd_LTX_library in C:\Users\magja\graphviz\Debug\Graphviz\bin\gvplugin_gd.dll

Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.

2 years agoplugin/gd: [nfc] remove whitespace in preprocessor directives in gvplugin_gd.c
Magnus Jacobsson [Sun, 2 Jan 2022 18:23:28 +0000 (19:23 +0100)]
plugin/gd: [nfc] remove whitespace in preprocessor directives in gvplugin_gd.c

2 years agoplugin/dot_layout: use GVDLL instead of _WIN32 to enable dllexport storage-class...
Magnus Jacobsson [Sun, 2 Jan 2022 18:21:54 +0000 (19:21 +0100)]
plugin/dot_layout: use GVDLL instead of _WIN32 to enable dllexport storage-class attribute in gvplugin_dot_layout.c

Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.

2 years agoplugin/dot_layout: define GVDLL to ensure correct storage-class attributes
Magnus Jacobsson [Sun, 2 Jan 2022 21:11:48 +0000 (22:11 +0100)]
plugin/dot_layout: define GVDLL to ensure correct storage-class attributes

An upcoming commit will change the storage-class attributes to be
controlled by the GVDLL symbol in gvplugin_dot_layout.c.

Without this change, errors like this would occur:

EXEC : error : failed to resolve gvplugin_dot_layout_LTX_library in C:\Users\magja\graphviz\Debug\Graphviz\bin\gvplugin_dot_layout.dll

Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.

2 years agoplugin/dot_layout: [nfc] remove whitespace in preprocessor directives in gvplugin_dot...
Magnus Jacobsson [Sun, 2 Jan 2022 18:21:09 +0000 (19:21 +0100)]
plugin/dot_layout: [nfc] remove whitespace in preprocessor directives in gvplugin_dot_layout.c

2 years agoplugin/core: use GVDLL instead of _WIN32 to enable dllexport storage-class attribute...
Magnus Jacobsson [Sun, 2 Jan 2022 18:13:30 +0000 (19:13 +0100)]
plugin/core: use GVDLL instead of _WIN32 to enable dllexport storage-class attribute in gvplugin_core.c

Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.

2 years agoplugin/core: [nfc] remove whitespace in preprocessor directives in gvplugin_core.c
Magnus Jacobsson [Sun, 2 Jan 2022 18:13:30 +0000 (19:13 +0100)]
plugin/core: [nfc] remove whitespace in preprocessor directives in gvplugin_core.c

2 years agoMerge branch 'install-python-with-nuget' into 'main'
Magnus Jacobsson [Mon, 10 Jan 2022 17:10:56 +0000 (17:10 +0000)]
Merge branch 'install-python-with-nuget' into 'main'

CI: install Python with nuget instead of with choco

See merge request graphviz/graphviz!2392

2 years agoMerge branch 'smattr/DFDACC2F-624B-4360-BC9C-9B2A116EB11C' into 'main'
Matthew Fernandez [Mon, 10 Jan 2022 16:48:16 +0000 (16:48 +0000)]
Merge branch 'smattr/DFDACC2F-624B-4360-BC9C-9B2A116EB11C' into 'main'

more boolean → modernization

See merge request graphviz/graphviz!2391

2 years agoci: install python with nuget in windows-cygwin-build-using-autogen job
Magnus Jacobsson [Sun, 9 Jan 2022 22:34:55 +0000 (23:34 +0100)]
ci: install python with nuget in windows-cygwin-build-using-autogen job

2 years agoci: remove now obsolete choco cache from windows-msbuild-Win32-debug-build job
Magnus Jacobsson [Sun, 9 Jan 2022 22:32:45 +0000 (23:32 +0100)]
ci: remove now obsolete choco cache from windows-msbuild-Win32-debug-build job

2 years agoci: remove now obsolete choco cache from windows-msbuild-Win32-release-build job
Magnus Jacobsson [Sun, 9 Jan 2022 22:31:55 +0000 (23:31 +0100)]
ci: remove now obsolete choco cache from windows-msbuild-Win32-release-build job

2 years agoci: remove now obsolete choco cache from windows-cmake-x64-debug-build job
Magnus Jacobsson [Sun, 9 Jan 2022 22:31:40 +0000 (23:31 +0100)]
ci: remove now obsolete choco cache from windows-cmake-x64-debug-build job

2 years agoci: remove now obsolete choco cache from windows-cmake-x64-release-build job
Magnus Jacobsson [Sun, 9 Jan 2022 22:31:26 +0000 (23:31 +0100)]
ci: remove now obsolete choco cache from windows-cmake-x64-release-build job

2 years agoci: remove now obsolete choco cache from windows-cmake-Win32-debug-build job
Magnus Jacobsson [Sun, 9 Jan 2022 22:31:06 +0000 (23:31 +0100)]
ci: remove now obsolete choco cache from windows-cmake-Win32-debug-build job

2 years agoci: remove now obsolete choco cache from windows-cmake-Win32-release-build job
Magnus Jacobsson [Sun, 9 Jan 2022 22:30:54 +0000 (23:30 +0100)]
ci: remove now obsolete choco cache from windows-cmake-Win32-release-build job

2 years agoci: install python with nuget in windows_build_definition job template
Magnus Jacobsson [Sun, 9 Jan 2022 17:02:12 +0000 (18:02 +0100)]
ci: install python with nuget in windows_build_definition job template

2 years agoci: remove now obsolete choco cache from windows-mingw64-cmake-build job
Magnus Jacobsson [Sun, 9 Jan 2022 22:34:02 +0000 (23:34 +0100)]
ci: remove now obsolete choco cache from windows-mingw64-cmake-build job

Commit 3f4d8dfc07899d113ddc49e2610b669113ea2810 removed the use of the
choco cache, but missed to remove the cache itself from this job.

2 years agoci: remove now obsolete choco cache from windows-mingw32-cmake-build job
Magnus Jacobsson [Sun, 9 Jan 2022 22:33:04 +0000 (23:33 +0100)]
ci: remove now obsolete choco cache from windows-mingw32-cmake-build job

Commit 3f4d8dfc07899d113ddc49e2610b669113ea2810 removed the use of the
choco cache, but missed to remove the cache itself from this job.

2 years agoci: remove now obsolete choco cache from windows-mingw64-build-step2-make job
Magnus Jacobsson [Sun, 9 Jan 2022 22:30:10 +0000 (23:30 +0100)]
ci: remove now obsolete choco cache from windows-mingw64-build-step2-make job

Commit 3f4d8dfc07899d113ddc49e2610b669113ea2810 removed the use of the
choco cache, but missed to remove the cache itself from this job.

2 years agoci: remove now obsolete choco cache from windows-mingw64-build-step1-configure job
Magnus Jacobsson [Sun, 9 Jan 2022 22:30:01 +0000 (23:30 +0100)]
ci: remove now obsolete choco cache from windows-mingw64-build-step1-configure job

Commit 3f4d8dfc07899d113ddc49e2610b669113ea2810 removed the use of the
choco cache, but missed to remove the cache itself from this job.

2 years agoci: remove now obsolete choco cache from windows-mingw32-build-step2-make job
Magnus Jacobsson [Sun, 9 Jan 2022 22:29:45 +0000 (23:29 +0100)]
ci: remove now obsolete choco cache from windows-mingw32-build-step2-make job

Commit 3f4d8dfc07899d113ddc49e2610b669113ea2810 removed the use of the
choco cache, but missed to remove the cache itself from this job.

2 years agoci: remove now obsolete choco cache from windows-mingw32-build-step1-configure job
Magnus Jacobsson [Sun, 9 Jan 2022 22:29:25 +0000 (23:29 +0100)]
ci: remove now obsolete choco cache from windows-mingw32-build-step1-configure job

Commit 3f4d8dfc07899d113ddc49e2610b669113ea2810 removed the use of the
choco cache, but missed to remove the cache itself from this job.

2 years agois_internal_to_cluster; return a C99 bool instead of an ambiguous int
Matthew Fernandez [Mon, 10 Jan 2022 00:49:59 +0000 (16:49 -0800)]
is_internal_to_cluster; return a C99 bool instead of an ambiguous int

2 years agois_nonconstraint: return a C99 bool instead of an ambiguous int
Matthew Fernandez [Mon, 10 Jan 2022 00:49:14 +0000 (16:49 -0800)]
is_nonconstraint: return a C99 bool instead of an ambiguous int

2 years agois_empty: return a C99 bool instead of an ambigous int
Matthew Fernandez [Mon, 10 Jan 2022 00:48:35 +0000 (16:48 -0800)]
is_empty: return a C99 bool instead of an ambigous int

2 years agois_cluster: return a C99 bool instead of an ambiguous int
Matthew Fernandez [Mon, 10 Jan 2022 00:47:26 +0000 (16:47 -0800)]
is_cluster: return a C99 bool instead of an ambiguous int

2 years agois_a_cluster: return a C99 bool instead of ambiguous int
Matthew Fernandez [Mon, 10 Jan 2022 00:46:00 +0000 (16:46 -0800)]
is_a_cluster: return a C99 bool instead of ambiguous int

This function was already morally returning a boolean value.

2 years agomapbool: take a 'const char*' parameter instead of 'char*'
Matthew Fernandez [Mon, 10 Jan 2022 00:44:32 +0000 (16:44 -0800)]
mapbool: take a 'const char*' parameter instead of 'char*'

This parameter is not modified internally.

2 years agomapbool: return a C99 bool instead of a boolean
Matthew Fernandez [Mon, 10 Jan 2022 00:43:32 +0000 (16:43 -0800)]
mapbool: return a C99 bool instead of a boolean

2 years agomapBool: take a 'const char*' parameter instead of 'char*'
Matthew Fernandez [Mon, 10 Jan 2022 00:34:27 +0000 (16:34 -0800)]
mapBool: take a 'const char*' parameter instead of 'char*'

This parameter is not modified within the function.

2 years agomapBool: use C99 bools for boolean parameters
Matthew Fernandez [Mon, 10 Jan 2022 00:32:23 +0000 (16:32 -0800)]
mapBool: use C99 bools for boolean parameters

Note that this required a somewhat awkward work around in `getAdjustMode` that
was abusing being able to fit something other than a boolean into the type used
for booleans.

2 years agolate_bool: use C99 bools for boolean parameters
Matthew Fernandez [Mon, 10 Jan 2022 00:16:21 +0000 (16:16 -0800)]
late_bool: use C99 bools for boolean parameters

2 years agoortho segment: remove unused 'flipped' member
Matthew Fernandez [Mon, 10 Jan 2022 00:08:35 +0000 (16:08 -0800)]
ortho segment: remove unused 'flipped' member

2 years agonode_distinct_coloring: take 'weightedQ' parameter as a C99 bool
Matthew Fernandez [Sun, 9 Jan 2022 16:56:53 +0000 (08:56 -0800)]
node_distinct_coloring: take 'weightedQ' parameter as a C99 bool

2 years agogvmap plot_dot_map: use a C99 bool for local 'plot_polyQ'
Matthew Fernandez [Sun, 9 Jan 2022 16:50:52 +0000 (08:50 -0800)]
gvmap plot_dot_map: use a C99 bool for local 'plot_polyQ'

2 years agogvprintpointflist: replace a boolean literal with C99 bool 'true'
Matthew Fernandez [Sun, 9 Jan 2022 16:50:20 +0000 (08:50 -0800)]
gvprintpointflist: replace a boolean literal with C99 bool 'true'

2 years agoMerge branch 'unify-storage-class-declarations-in-xdot' into 'main'
Magnus Jacobsson [Mon, 10 Jan 2022 15:05:06 +0000 (15:05 +0000)]
Merge branch 'unify-storage-class-declarations-in-xdot' into 'main'

Unify storage class declarations in xdot

See merge request graphviz/graphviz!2390

2 years agoxdot: [nfc] align storage-class declarations to Graphviz standard in xdot.h
Magnus Jacobsson [Sun, 2 Jan 2022 18:05:22 +0000 (19:05 +0100)]
xdot: [nfc] align storage-class declarations to Graphviz standard in xdot.h

2 years agoxdot: [nfc] remove useless default extern declaration of functions in xdot.h
Magnus Jacobsson [Sun, 2 Jan 2022 18:04:22 +0000 (19:04 +0100)]
xdot: [nfc] remove useless default extern declaration of functions in xdot.h

2 years agoxdot: use GVDLL instead of _WIN32 to control storage-class attributes in xdot.h
Magnus Jacobsson [Sun, 2 Jan 2022 18:01:59 +0000 (19:01 +0100)]
xdot: use GVDLL instead of _WIN32 to control storage-class attributes in xdot.h

Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.

2 years agoxdot: [nfc] remove whitespace in preprocessor directives in xdot.h
Magnus Jacobsson [Sun, 2 Jan 2022 17:36:33 +0000 (18:36 +0100)]
xdot: [nfc] remove whitespace in preprocessor directives in xdot.h

2 years agoxdot: MSBuild: define GVDLL to ensure correct storage-class attributes
Magnus Jacobsson [Mon, 3 Jan 2022 06:20:54 +0000 (07:20 +0100)]
xdot: MSBuild: define GVDLL to ensure correct storage-class attributes

An upcoming commit will change the storage-class attributes in
xdot.h to be controlled by the GVDLL symbol.

Without this change, errors like this would occur in lib/gvc:

LINK : fatal error LNK1104: cannot open file 'C:\Users\magja\graphviz\Debug\Graphviz\bin\xdot.lib'
Done building project "gvc.vcxproj" -- FAILED.

Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.