]> granicus.if.org Git - graphviz/log
graphviz
3 years agop_signature: squash -Wmissing-field-initializer warning
Matthew Fernandez [Sat, 25 Sep 2021 20:13:17 +0000 (13:13 -0700)]
p_signature: squash -Wmissing-field-initializer warning

3 years agoMerge branch 'smattr/C64DD787-8A55-438E-9B8D-01EFBEB8718E' into 'main'
Matthew Fernandez [Mon, 27 Sep 2021 15:46:32 +0000 (15:46 +0000)]
Merge branch 'smattr/C64DD787-8A55-438E-9B8D-01EFBEB8718E' into 'main'

lefty clean up

See merge request graphviz/graphviz!2187

3 years agolefty: abbreviate some boolean returns in 'orderop'
Matthew Fernandez [Sat, 25 Sep 2021 02:30:37 +0000 (19:30 -0700)]
lefty: abbreviate some boolean returns in 'orderop'

3 years agolefty: remove unused 'Eshowcalls'
Matthew Fernandez [Sat, 25 Sep 2021 02:27:37 +0000 (19:27 -0700)]
lefty: remove unused 'Eshowcalls'

3 years agolefty: remove unused 'Eoktorun'
Matthew Fernandez [Sat, 25 Sep 2021 02:26:11 +0000 (19:26 -0700)]
lefty: remove unused 'Eoktorun'

3 years agolefty: remove unnecessary casts of char* members
Matthew Fernandez [Sat, 25 Sep 2021 02:14:20 +0000 (19:14 -0700)]
lefty: remove unnecessary casts of char* members

3 years agolefty: consistently treat 'CBUFINCR' as a 'long'
Matthew Fernandez [Sat, 25 Sep 2021 02:09:58 +0000 (19:09 -0700)]
lefty: consistently treat 'CBUFINCR' as a 'long'

3 years agolefty: consistently treat 'MARKINCR' as a 'long'
Matthew Fernandez [Sat, 25 Sep 2021 02:04:49 +0000 (19:04 -0700)]
lefty: consistently treat 'MARKINCR' as a 'long'

3 years agolefty: consistently treat 'OTINCR' as a 'long'
Matthew Fernandez [Sat, 25 Sep 2021 02:02:56 +0000 (19:02 -0700)]
lefty: consistently treat 'OTINCR' as a 'long'

3 years agolefty: remove C++ guards
Matthew Fernandez [Sat, 25 Sep 2021 01:58:05 +0000 (18:58 -0700)]
lefty: remove C++ guards

This program is entirely C, so does not need these explicit linkage specs.

3 years agolefty: replace header guards with more modern #pragma once
Matthew Fernandez [Sat, 25 Sep 2021 01:52:00 +0000 (18:52 -0700)]
lefty: replace header guards with more modern #pragma once

This omits the `_COMMON_H` guards as these are used in multiple files and may
have some other interaction.

3 years agolefty: mark 'GFXbuttoncb' static
Matthew Fernandez [Sat, 25 Sep 2021 00:51:39 +0000 (17:51 -0700)]
lefty: mark 'GFXbuttoncb' static

This function is not used outside of its containing file.

3 years agolefty: mark 'GFXtextcb' static
Matthew Fernandez [Sat, 25 Sep 2021 00:50:27 +0000 (17:50 -0700)]
lefty: mark 'GFXtextcb' static

This function is not used outside of its containing file.

3 years agolefty: remove 'Gerrno'
Matthew Fernandez [Sat, 25 Sep 2021 00:38:03 +0000 (17:38 -0700)]
lefty: remove 'Gerrno'

Nothing ever reads this variable.

3 years agoMerge branch 'smattr/6AF46EA6-D097-41D0-A29B-E5F270074178' into 'main'
Matthew Fernandez [Mon, 27 Sep 2021 00:48:37 +0000 (00:48 +0000)]
Merge branch 'smattr/6AF46EA6-D097-41D0-A29B-E5F270074178' into 'main'

CMake: fix: build gv2gml instead of symlinking gml2gv

Closes #2131

See merge request graphviz/graphviz!2192

3 years agoCMake: fix: build gv2gml instead of symlinking gml2gv
Matthew Fernandez [Sun, 26 Sep 2021 06:40:24 +0000 (23:40 -0700)]
CMake: fix: build gv2gml instead of symlinking gml2gv

Fixes #2131.

3 years agoadd a test case provoking gv2gml/gml2gv confusion
Matthew Fernandez [Sun, 26 Sep 2021 05:43:53 +0000 (22:43 -0700)]
add a test case provoking gv2gml/gml2gv confusion

Related to #2131.

3 years agoMerge branch 'fix-bom-in-collection-file-in-mingw-build-jobs' into 'main'
Magnus Jacobsson [Sun, 26 Sep 2021 09:52:39 +0000 (09:52 +0000)]
Merge branch 'fix-bom-in-collection-file-in-mingw-build-jobs' into 'main'

CI: avoid BOM in COLLECTION file in MinGW build jobs

Closes #2130

See merge request graphviz/graphviz!2188

3 years agoCI: avoid BOM in COLLECTION file in MinGW build jobs
Magnus Jacobsson [Sat, 25 Sep 2021 10:40:57 +0000 (12:40 +0200)]
CI: avoid BOM in COLLECTION file in MinGW build jobs

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

3 years agoMerge branch 'define-GVDLL-in-CMake-builds' into 'main'
Magnus Jacobsson [Sun, 26 Sep 2021 07:36:38 +0000 (07:36 +0000)]
Merge branch 'define-GVDLL-in-CMake-builds' into 'main'

Define GVDLL also in CMake builds for Windows

See merge request graphviz/graphviz!2182

3 years agoCMake: set GVDLL for WIN32
Magnus Jacobsson [Thu, 12 Aug 2021 20:08:19 +0000 (22:08 +0200)]
CMake: set GVDLL for WIN32

The GVDLL symbol has for a long time been used by the autotools build
system to control whether to apply the Microsoft storage-class
attributes, __declspec(dllexport) and __declspec(dllimport), that are
needed when building dynamic-link libraries (DLLs) on Windows, also
when using MinGW. The autotools build system does not define GVDLL
when static linking is requested.

Since the introduction of the CMake build system, this functionality
has gradually become more and more broken for both dynamic-link
libraries with MinGW and for static libraries in general under
Windows.

Upcoming commit series will try to restore this functionality. Rather
than having a plethora of different symbols controlling the
storage-class attributes in different ways for different build
systems, they will settle on something like this across all build
systems:

This means that in order to continue to support dynamic-link libraries
with CMake, the GVDLL symbol must be set.

The CMake build system does not currently support building static
libraries, so the GVDLL symbol can be unconditionally set for WIN32
until such support is introduced.

This is also a very small step towards
https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agocommon: don't use dllexport when GVDLL and _BLD_gvc are set
Magnus Jacobsson [Sat, 25 Sep 2021 11:42:05 +0000 (13:42 +0200)]
common: don't use dllexport when GVDLL and _BLD_gvc are set

This is a temporary measure until an upcoming commit series cleans up
the control of the Windows storage-class attributes.

Without this change, an upcoming commit that defines GVDLL would cause
many warnings like this:

globals.obj : warning LNK4197: export 'Version' specified multiple times; using first specification [C:\Users\magja\graphviz\build\lib\gvc\gvc.vcxproj]

The reason for this is that the symbols are already defined in the
gvc.def file. For more, see
https://support.microsoft.com/en-us/topic/you-receive-an-lnk4197-error-in-the-64-bit-version-of-the-visual-c-compiler-f002b07e-4ba6-46d4-eed4-0c82412b4ac6.

3 years agolib/gvpr: CMake: define EXPORT_GVPR
Magnus Jacobsson [Thu, 23 Sep 2021 21:51:41 +0000 (23:51 +0200)]
lib/gvpr: CMake: define EXPORT_GVPR

Without this change, an upcoming commit that defines GVDLL would cause
a warning like this:

C:\Users\magja\graphviz\lib\gvpr\gvpr.c(931,1): warning C4273: 'gvpr': inconsistent dll linkage [C:\Users\magja\graphviz\build\lib\gvpr\gvpr.vcxproj]

3 years agogvc: avoid macro redefinition warning when GVDLL is defined
Magnus Jacobsson [Thu, 23 Sep 2021 21:44:09 +0000 (23:44 +0200)]
gvc: avoid macro redefinition warning when GVDLL is defined

Without this change, an upcoming commit that defines GVDLL would cause
warnings like this:

C:\Users\magja\graphviz\lib\gvc/gvplugin_loadimage.h(29,1): warning C4005: 'GVPLUGIN_LOADIMAGE_API': macro redefinition [C:\Users\magja\graphviz\build\plugin\gdiplus\gvplugin_gdiplus.vcxproj]

3 years agopack: CMake: set also _BLD_gvc
Magnus Jacobsson [Sun, 22 Aug 2021 11:14:44 +0000 (13:14 +0200)]
pack: CMake: set also _BLD_gvc

This is a temporary measure until an upcoming commit series cleans up
the control of the Windows storage-class attributes.

Without this change, an upcoming commit that defines GVDLL also for
CMake builds, would cause many errors like this with minGW:

pack/CMakeFiles/pack_obj.dir/ccomps.c.obj:ccomps.c:(.text+0x1c95): undefined reference to `__imp_Verbose'

3 years agogvc: remove multiple declarations of two functions from gvcproc.h
Magnus Jacobsson [Mon, 26 Jul 2021 12:19:05 +0000 (14:19 +0200)]
gvc: remove multiple declarations of two functions from gvcproc.h

These are already declared in gvc.h with Windows storage-class
attributes.

Without this change, an upcoming commit that defines GVDLL also for
CMake builds, would cause the following errors with native Windows:

C:\Users\magja\graphviz\lib\gvc/gvc.h(67,13): error C2375: 'gvLayoutJobs': redefinition; different linkage [C:\Users\magja\graphviz\build\lib\gvc\gvc.vcxproj]
C:\Users\magja\graphviz\lib\gvc/gvcproc.h(117): message : see declaration of 'gvLayoutJobs' [C:\Users\magja\graphviz\build\lib\gvc\gvc.vcxproj]
C:\Users\magja\graphviz\lib\gvc/gvc.h(91,13): error C2375: 'gvFreeLayout': redefinition; different linkage [C:\Users\magja\graphviz\build\lib\gvc\gvc.vcxproj]
C:\Users\magja\graphviz\lib\gvc/gvcproc.h(116): message : see declaration of 'gvFreeLayout' [C:\Users\magja\graphviz\build\lib\gvc\gvc.vcxproj]

3 years agocommon: remove multiple declaration of attach_attrs from utils.h
Magnus Jacobsson [Mon, 26 Jul 2021 12:45:15 +0000 (14:45 +0200)]
common: remove multiple declaration of attach_attrs from utils.h

This function is already declared in the public gvc.h.

Without this change, an upcoming commit that defines GVDLL also for
CMake builds, would cause the following error with native Windows:

C:\Users\magja\graphviz\lib\gvc/gvc.h(75,14): error C2375: 'attach_attrs': redefinition; different linkage [C:\Users\magja\graphviz\build\lib\common\common_obj.vcxproj]
C:\Users\magja\graphviz\lib\common\utils.h(39): message : see declaration of 'attach_attrs' [C:\Users\magja\graphviz\build\lib\common\common_obj.vcxproj]

3 years agoplugin/core: include gvc/gvc.h in gvrender_core_dot.c
Magnus Jacobsson [Tue, 21 Sep 2021 09:18:26 +0000 (11:18 +0200)]
plugin/core: include gvc/gvc.h in gvrender_core_dot.c

E.g. attach_attrs used in gvrender_core_dot.c is declared in
lib/gvc/gvc.h.

Removes this warning (from using CMake with MinGW):

C:/Users/magja/graphviz/plugin/core/gvrender_core_dot.c:469:6: warning: implicit declaration of function 'attach_attrs' [-Wimplicit-function-declaration]

3 years agopack: include gvc/gvc.h in ptest.c
Magnus Jacobsson [Tue, 21 Sep 2021 09:18:26 +0000 (11:18 +0200)]
pack: include gvc/gvc.h in ptest.c

E.g. attach_attrs used in ptest.c is declared in lib/gvc/gvc.h.

This change is not strictly necessary since gvc/gvc.h is indirectly
included through common/render.h anyway, but a direct inclusion is
clearer and will avoid confusion when an upcoming commit removes a
duplicated declaration of attach_attrs from utils.h.

3 years agocommon: include gvc/gvc.h in output.c
Magnus Jacobsson [Tue, 21 Sep 2021 09:18:26 +0000 (11:18 +0200)]
common: include gvc/gvc.h in output.c

E.g. attach_attrs used in output.c is declared in lib/gvc/gvc.h.

This change is not strictly necessary since gvc/gvc.h is indirectly
included through common/render.h anyway, but a direct inclusion is
clearer and will avoid confusion when an upcoming commit removes a
duplicated declaration of attach_attrs from utils.h.

3 years agoMerge branch 'smattr/F874E210-6DEB-4514-B871-F4072917198C' into 'main'
Matthew Fernandez [Sat, 25 Sep 2021 22:59:00 +0000 (22:59 +0000)]
Merge branch 'smattr/F874E210-6DEB-4514-B871-F4072917198C' into 'main'

remove legacy expr NMake makefile and Makefile.orig

See merge request graphviz/graphviz!2180

3 years agoremove legacy expr NMake makefile and Makefile.orig
Matthew Fernandez [Sun, 19 Sep 2021 22:42:14 +0000 (15:42 -0700)]
remove legacy expr NMake makefile and Makefile.orig

Maintaining three build systems is already more work than is manageable.
Maintaining four does not seem desirable.

3 years agoMerge branch 'smattr/5598559D-FB4F-41C0-A52A-E3FBC862B5CD' into 'main'
Matthew Fernandez [Sat, 25 Sep 2021 21:43:16 +0000 (21:43 +0000)]
Merge branch 'smattr/5598559D-FB4F-41C0-A52A-E3FBC862B5CD' into 'main'

lefty: a few things missed in recent clean up

See merge request graphviz/graphviz!2179

3 years agolefty SFcompareEntries: remove MSVC 'strcascmp' fall back
Matthew Fernandez [Sun, 19 Sep 2021 21:25:06 +0000 (14:25 -0700)]
lefty SFcompareEntries: remove MSVC 'strcascmp' fall back

Commit 1c2c986ebb2d16e491c68656217f5352b3d809c8 replaced `SFCompareEntries`
implementation with `strcasecmp` or `_stricmp` depending on whether we were
compiling with a non-MSVC compiler or with MSVC, respectively. However, this
code is part of the X11 GUI support and hence never built with MSVC. This commit
removes this unnecessary fall back which was dead code.

3 years agolefty Dir.c: remove unnecessary include of ctype.h
Matthew Fernandez [Sun, 19 Sep 2021 21:23:44 +0000 (14:23 -0700)]
lefty Dir.c: remove unnecessary include of ctype.h

Commit 1c2c986ebb2d16e491c68656217f5352b3d809c8 removed the only use of
`islower` and `toupper` in this file, which was why this header was included.

3 years agolefty SFfindFile: remove MSVC 'strncasecmp' fall back
Matthew Fernandez [Sun, 19 Sep 2021 18:26:07 +0000 (11:26 -0700)]
lefty SFfindFile: remove MSVC 'strncasecmp' fall back

Commit 69f8a328e1d41b1cd799c715a8398ab0f096a8f4 replaced `SFstrncmp` with
`strncasecmp` or `_strnicmp` depending on whether we were compiling with a
non-MSVC compiler or with MSVC, respectively. However, this code is part of the
X11 GUI support and hence never built with MSVC. This commit removes this
unnecessary fall back which was dead code.

3 years agoMerge branch 'smattr/4BB774CF-C72E-4136-B8F5-908D835C1A87' into 'main'
Matthew Fernandez [Sat, 25 Sep 2021 20:42:00 +0000 (20:42 +0000)]
Merge branch 'smattr/4BB774CF-C72E-4136-B8F5-908D835C1A87' into 'main'

abbreviate .clang-format to just pure LLVM style

See merge request graphviz/graphviz!2178

3 years agoabbreviate .clang-format to just pure LLVM style
Matthew Fernandez [Sun, 19 Sep 2021 21:39:54 +0000 (14:39 -0700)]
abbreviate .clang-format to just pure LLVM style

The clang-format style used in Graphviz is already pure LLVM style, but was
generated with clang-format-12. This means older versions of clang-format fail
because they do not understand some of the style options that were emitted by
clang-format-12. Reverting to using only `BasedOnStyle` makes it more obvious
that pure LLVM style is in use and permits older versions of clang-format to be
used. None of the newer options introduced by clang-format-12 are critical for
Graphviz formatting.

3 years agoMerge branch 'smattr/DCA87935-2488-470F-AE3F-983AC3FD6428' into 'main'
Matthew Fernandez [Sat, 25 Sep 2021 19:26:36 +0000 (19:26 +0000)]
Merge branch 'smattr/DCA87935-2488-470F-AE3F-983AC3FD6428' into 'main'

more -Wmissing-field-initializer squashing

See merge request graphviz/graphviz!2177

3 years agop_assembly: squash a -Wmissing-field-initializer warning
Matthew Fernandez [Sun, 19 Sep 2021 18:10:31 +0000 (11:10 -0700)]
p_assembly: squash a -Wmissing-field-initializer warning

3 years agop_noverhang: squash a -Wmissing-field-initializer warning
Matthew Fernandez [Sun, 19 Sep 2021 18:09:37 +0000 (11:09 -0700)]
p_noverhang: squash a -Wmissing-field-initializer warning

3 years agop_threepoverhang: squash a -Wmissing-field-initializer warning
Matthew Fernandez [Sun, 19 Sep 2021 18:09:00 +0000 (11:09 -0700)]
p_threepoverhang: squash a -Wmissing-field-initializer warning

3 years agop_fivepoverhang: squash a -Wmissing-field-initializer warning
Matthew Fernandez [Sun, 19 Sep 2021 18:08:16 +0000 (11:08 -0700)]
p_fivepoverhang: squash a -Wmissing-field-initializer warning

3 years agop_restrictionsite: squash a -Wmissing-field-initializer warning
Matthew Fernandez [Sun, 19 Sep 2021 18:07:42 +0000 (11:07 -0700)]
p_restrictionsite: squash a -Wmissing-field-initializer warning

3 years agop_primersite: squash a -Wmissing-field-initializer warning
Matthew Fernandez [Sun, 19 Sep 2021 18:07:03 +0000 (11:07 -0700)]
p_primersite: squash a -Wmissing-field-initializer warning

3 years agop_proteinstab: squash a -Wmissing-field-initializer warning
Matthew Fernandez [Sun, 19 Sep 2021 18:06:23 +0000 (11:06 -0700)]
p_proteinstab: squash a -Wmissing-field-initializer warning

3 years agop_proteasesite: squash a -Wmissing-field-initializer warning
Matthew Fernandez [Sun, 19 Sep 2021 18:05:15 +0000 (11:05 -0700)]
p_proteasesite: squash a -Wmissing-field-initializer warning

3 years agop_rnastab: squash a -Wmissing-field-initializer warning
Matthew Fernandez [Sun, 19 Sep 2021 18:03:44 +0000 (11:03 -0700)]
p_rnastab: squash a -Wmissing-field-initializer warning

3 years agop_ribosite: squash a -Wmissing-field-initializer warning
Matthew Fernandez [Sun, 19 Sep 2021 18:03:12 +0000 (11:03 -0700)]
p_ribosite: squash a -Wmissing-field-initializer warning

3 years agoMerge branch 'smattr/96b0799b-6f75-44f5-906f-3df53c73ddee' into 'main'
Matthew Fernandez [Sat, 25 Sep 2021 18:22:33 +0000 (18:22 +0000)]
Merge branch 'smattr/96b0799b-6f75-44f5-906f-3df53c73ddee' into 'main'

more warning squashing and clean up

See merge request graphviz/graphviz!2181

3 years agotclpathplan.c: rephrase open coded fmax/fmin
Matthew Fernandez [Sun, 19 Sep 2021 23:26:39 +0000 (16:26 -0700)]
tclpathplan.c: rephrase open coded fmax/fmin

3 years agotclpathplan.c: remove open coded NULL, excess bracketing and casts
Matthew Fernandez [Sun, 19 Sep 2021 23:04:10 +0000 (16:04 -0700)]
tclpathplan.c: remove open coded NULL, excess bracketing and casts

3 years agotclpathplan.c: remove 'strncmp' micro-optimizations
Matthew Fernandez [Sun, 19 Sep 2021 23:06:52 +0000 (16:06 -0700)]
tclpathplan.c: remove 'strncmp' micro-optimizations

There is no need for this on modern machines.

3 years agotclpathplan.c: remove commented out code
Matthew Fernandez [Sun, 19 Sep 2021 22:54:05 +0000 (15:54 -0700)]
tclpathplan.c: remove commented out code

3 years agotriangle_callback: mark as static
Matthew Fernandez [Sun, 19 Sep 2021 22:52:41 +0000 (15:52 -0700)]
triangle_callback: mark as static

This function is not called outside of its containing file.

3 years agotclpathplan between: rephrase to avoid -Wfloat-equal warnings
Matthew Fernandez [Sun, 19 Sep 2021 22:46:54 +0000 (15:46 -0700)]
tclpathplan between: rephrase to avoid -Wfloat-equal warnings

Similar to commit a420a1a449b23f4be4fb891e1025f20b21c81369. This is intended to
have the same semantics.

3 years agotclpathplan gt: rephrase into something more obvious
Matthew Fernandez [Sun, 19 Sep 2021 22:35:37 +0000 (15:35 -0700)]
tclpathplan gt: rephrase into something more obvious

Similar to commit 1cf8e0225a6a215c93437a9972497f1cae0ffc8c. This is intended to
preserve the same semantics. It not only avoids two -Wfloat-equal warnings, but
makes this code so close to the leading comment that the comment can simply be
removed now.

3 years agotclpathplan gt: rephrase to avoid having to cast pointers to this function
Matthew Fernandez [Sun, 19 Sep 2021 22:25:39 +0000 (15:25 -0700)]
tclpathplan gt: rephrase to avoid having to cast pointers to this function

Similar to commit fe231a8f6beae5dd8ac8cd8b9338cc815881a714.

3 years agofind_ints.c: remove some commented out code
Matthew Fernandez [Sun, 19 Sep 2021 22:22:49 +0000 (15:22 -0700)]
find_ints.c: remove some commented out code

3 years agomake_map_internal: flip order of 'bbm1' if-then-else ladder
Matthew Fernandez [Sun, 19 Sep 2021 22:17:48 +0000 (15:17 -0700)]
make_map_internal: flip order of 'bbm1' if-then-else ladder

Squashes a -Wfloat-equal warning.

3 years agomake_map_internal: flip order of 'bbm0' if-then-else ladder
Matthew Fernandez [Sun, 19 Sep 2021 22:09:31 +0000 (15:09 -0700)]
make_map_internal: flip order of 'bbm0' if-then-else ladder

Squashes a -Wfloat-equal warning.

3 years agomake_map_internal: flip the order of 'bounding_box_margin' if-then-else ladder
Matthew Fernandez [Sun, 19 Sep 2021 22:07:42 +0000 (15:07 -0700)]
make_map_internal: flip the order of 'bounding_box_margin' if-then-else ladder

Squashes a -Wfloat-equal warning.

3 years agosolve2: flip the order of an if-then-else ladder to squash -Wfloat-equal warning
Matthew Fernandez [Sun, 19 Sep 2021 21:47:28 +0000 (14:47 -0700)]
solve2: flip the order of an if-then-else ladder to squash -Wfloat-equal warning

3 years agoMerge branch 'smattr/D035A7A7-F419-4B11-9BA8-3C003CC0B4AC' into 'main'
Matthew Fernandez [Sat, 25 Sep 2021 17:16:42 +0000 (17:16 +0000)]
Merge branch 'smattr/D035A7A7-F419-4B11-9BA8-3C003CC0B4AC' into 'main'

smyrna: more dead code removal

See merge request graphviz/graphviz!2176

3 years agosmyrna: remove commented out prototypes
Matthew Fernandez [Sun, 19 Sep 2021 17:27:09 +0000 (10:27 -0700)]
smyrna: remove commented out prototypes

3 years agosmyrna: remove prototype of unimplemented 'drawRotatingTools'
Matthew Fernandez [Sun, 19 Sep 2021 17:26:53 +0000 (10:26 -0700)]
smyrna: remove prototype of unimplemented 'drawRotatingTools'

3 years agosmyrna: remove unused 'drawEllipse'
Matthew Fernandez [Sun, 19 Sep 2021 17:22:41 +0000 (10:22 -0700)]
smyrna: remove unused 'drawEllipse'

3 years agosmyrna: remove unused 'rasters' global
Matthew Fernandez [Sun, 19 Sep 2021 17:20:59 +0000 (10:20 -0700)]
smyrna: remove unused 'rasters' global

3 years agosmyrna: remove unused 'point_within_ellips_with_coords'
Matthew Fernandez [Sun, 19 Sep 2021 17:19:37 +0000 (10:19 -0700)]
smyrna: remove unused 'point_within_ellips_with_coords'

3 years agosmyrna: remove unused 'point_within_sphere_with_coords'
Matthew Fernandez [Sun, 19 Sep 2021 17:18:51 +0000 (10:18 -0700)]
smyrna: remove unused 'point_within_sphere_with_coords'

3 years agosmyrna: remove macOS Leopard hack
Matthew Fernandez [Sun, 19 Sep 2021 17:17:01 +0000 (10:17 -0700)]
smyrna: remove macOS Leopard hack

Leopard was macOS 10.5, released in 2007. Apparently this hack is no longer
required as Smyrna is built on macOS in CI without this.

3 years agosmyrna: remove unused 'texture' global
Matthew Fernandez [Sun, 19 Sep 2021 17:14:30 +0000 (10:14 -0700)]
smyrna: remove unused 'texture' global

3 years agosmyrna: remove some prototypes of unimplemented functions
Matthew Fernandez [Sun, 19 Sep 2021 17:11:50 +0000 (10:11 -0700)]
smyrna: remove some prototypes of unimplemented functions

3 years agosmyrna: remove SmyrnaVerbose
Matthew Fernandez [Sun, 19 Sep 2021 17:11:00 +0000 (10:11 -0700)]
smyrna: remove SmyrnaVerbose

Nothing uses this variable.

3 years agosmyrna: remove unused SmrynaVerbose declaration
Matthew Fernandez [Sun, 19 Sep 2021 17:09:57 +0000 (10:09 -0700)]
smyrna: remove unused SmrynaVerbose declaration

This variable name is typoed, but nothing uses it anyway.

3 years agoMerge branch 'smattr/AC34DC16-D8EF-4259-8FE4-5A5080DE6602' into 'main'
Matthew Fernandez [Thu, 23 Sep 2021 01:21:04 +0000 (01:21 +0000)]
Merge branch 'smattr/AC34DC16-D8EF-4259-8FE4-5A5080DE6602' into 'main'

Move back to 2.49 development series

See merge request graphviz/graphviz!2183

3 years agoMove back to 2.49 development series
Matthew Fernandez [Thu, 23 Sep 2021 00:06:21 +0000 (17:06 -0700)]
Move back to 2.49 development series

3 years agoMerge branch 'smattr/B37B1A9A-4D07-4914-AB34-4EF0B33EE330' into 'main' 2.49.1
Matthew Fernandez [Thu, 23 Sep 2021 00:04:13 +0000 (00:04 +0000)]
Merge branch 'smattr/B37B1A9A-4D07-4914-AB34-4EF0B33EE330' into 'main'

Stable Release 2.49.1

See merge request graphviz/graphviz!2167

3 years agoStable Release 2.49.1
Matthew Fernandez [Fri, 17 Sep 2021 00:17:28 +0000 (17:17 -0700)]
Stable Release 2.49.1

3 years agoMerge branch 'smattr/fa555883-42dd-4da0-9444-24d3ba18dad0' into 'main'
Matthew Fernandez [Tue, 21 Sep 2021 01:01:42 +0000 (01:01 +0000)]
Merge branch 'smattr/fa555883-42dd-4da0-9444-24d3ba18dad0' into 'main'

fix inability to include and use gvc.h from a parent CMake project

Closes #2109 and #1477

See merge request graphviz/graphviz!2164

3 years agofix inability to include and use gvc.h from a parent CMake project
Matthew Fernandez [Wed, 15 Sep 2021 00:46:30 +0000 (17:46 -0700)]
fix inability to include and use gvc.h from a parent CMake project

When attempting to declare a dependency on gvc when using Graphviz as a CMake
subproject, the include path necessary to compile gvc headers would not be
propagated to dependent targets. The result would be a compilation error when
the transitive includes of gvc.h could not be found.

To validate this change, create an empty directory and add the following
CMakeLists.txt:

  project(foo)
  add_subdirectory(graphviz)
  add_executable(bar main.c)
  target_link_libraries(bar gvc)

Add the following main.c:

  #include <gvc/gvc.h>
  int main(void) { return 0; }

Clone Graphviz into the subdirectory 'graphviz'. Then the standard CMake steps:

  mkdir build
  cd build
  cmake ..
  make

Note that Graphviz dependencies and then 'bar' are correctly built.

I am not a CMake expert; this was written based on my best guess of what
Graphviz should be doing according to the CMake docs. Assuming this is correct,
other Graphviz targets probably need similar fixes.

Fixes #1477, #2109.

3 years agoremove libast from gvc’s include path in CMake
Matthew Fernandez [Wed, 15 Sep 2021 00:40:32 +0000 (17:40 -0700)]
remove libast from gvc’s include path in CMake

This library does not seem to need libast in its include path to compile. This
is consistent with lib/gvc/Makefile.am.

3 years agoMerge branch 'smattr/650c059b-2ccb-4c4b-9a03-6ded54e32325' into 'main'
Matthew Fernandez [Mon, 20 Sep 2021 01:25:08 +0000 (01:25 +0000)]
Merge branch 'smattr/650c059b-2ccb-4c4b-9a03-6ded54e32325' into 'main'

more warning squashing

See merge request graphviz/graphviz!2168

3 years agofixLabelOrder: use a C99 bool for 'haveBackedge' local instead of an int
Matthew Fernandez [Fri, 17 Sep 2021 01:14:32 +0000 (18:14 -0700)]
fixLabelOrder: use a C99 bool for 'haveBackedge' local instead of an int

3 years agouse a C99 bool to pass around 'reverse' instead of an int
Matthew Fernandez [Fri, 17 Sep 2021 01:12:26 +0000 (18:12 -0700)]
use a C99 bool to pass around 'reverse' instead of an int

3 years agouse a C99 bool to pass around 'hasfixed' instead of a boolean
Matthew Fernandez [Fri, 17 Sep 2021 01:09:16 +0000 (18:09 -0700)]
use a C99 bool to pass around 'hasfixed' instead of a boolean

3 years agoreorder: convert local booleans to C99 bools
Matthew Fernandez [Fri, 17 Sep 2021 00:59:26 +0000 (17:59 -0700)]
reorder: convert local booleans to C99 bools

3 years agoReMincross: change from boolean to C99 bool
Matthew Fernandez [Fri, 17 Sep 2021 00:57:30 +0000 (17:57 -0700)]
ReMincross: change from boolean to C99 bool

3 years agolib/sparse: remove some unnecessary casts
Matthew Fernandez [Fri, 17 Sep 2021 00:55:49 +0000 (17:55 -0700)]
lib/sparse: remove some unnecessary casts

3 years agolib/sparse: replace header guards with more modern #pragma once
Matthew Fernandez [Fri, 17 Sep 2021 00:52:22 +0000 (17:52 -0700)]
lib/sparse: replace header guards with more modern #pragma once

3 years agoIntStack: remove unnecessary bracketing
Matthew Fernandez [Fri, 17 Sep 2021 00:47:53 +0000 (17:47 -0700)]
IntStack: remove unnecessary bracketing

3 years agoIntStack: track size and capacity as 'size_t' values
Matthew Fernandez [Fri, 17 Sep 2021 00:46:31 +0000 (17:46 -0700)]
IntStack: track size and capacity as 'size_t' values

Squashes two -Wsign-compare warnings and generally makes this code more
portable.

3 years agoIntStack_print: remove incorrect comment
Matthew Fernandez [Fri, 17 Sep 2021 00:33:52 +0000 (17:33 -0700)]
IntStack_print: remove incorrect comment

This seems to have been incorrectly copied from IntStack_pop.

3 years agoIntStack: remove commented out code
Matthew Fernandez [Fri, 17 Sep 2021 00:32:59 +0000 (17:32 -0700)]
IntStack: remove commented out code

3 years agoMerge branch 'smattr/df178dd0-42ca-429b-aa4b-c7927d2956ee' into 'main'
Matthew Fernandez [Mon, 20 Sep 2021 00:21:03 +0000 (00:21 +0000)]
Merge branch 'smattr/df178dd0-42ca-429b-aa4b-c7927d2956ee' into 'main'

cmd/ warning squashing

See merge request graphviz/graphviz!2169

3 years agogxl2gv gxl_to_gv: match XML_Parse, squashing a -Wconversion warning
Matthew Fernandez [Fri, 17 Sep 2021 04:32:37 +0000 (21:32 -0700)]
gxl2gv gxl_to_gv: match XML_Parse, squashing a -Wconversion warning

3 years agogxl2gv characterDataHandler: squash -Wsign-conversion warnings
Matthew Fernandez [Fri, 17 Sep 2021 04:22:08 +0000 (21:22 -0700)]
gxl2gv characterDataHandler: squash -Wsign-conversion warnings

3 years agogxl2gv endElementHandler: remove shadowing of 'name'
Matthew Fernandez [Fri, 17 Sep 2021 04:19:08 +0000 (21:19 -0700)]
gxl2gv endElementHandler: remove shadowing of 'name'

3 years agogxl2gv endElementHandler: use 'size_t' to track buffer size
Matthew Fernandez [Fri, 17 Sep 2021 04:17:18 +0000 (21:17 -0700)]
gxl2gv endElementHandler: use 'size_t' to track buffer size

Squashes -Wconversion warnings.

3 years agogxl2gv setGlobalEdgeAttr: remove unused 'ud' parameter
Matthew Fernandez [Fri, 17 Sep 2021 04:07:04 +0000 (21:07 -0700)]
gxl2gv setGlobalEdgeAttr: remove unused 'ud' parameter