]> granicus.if.org Git - graphviz/log
graphviz
2 years agopoly_init: narrow scope of P, Q and R
Magnus Jacobsson [Sat, 16 Apr 2022 13:37:01 +0000 (15:37 +0200)]
poly_init: narrow scope of P, Q and R

2 years agopoly_init: remove useless assignment of P
Magnus Jacobsson [Sat, 26 Mar 2022 18:54:54 +0000 (19:54 +0100)]
poly_init: remove useless assignment of P

P is not read after this before assigning it a new value.

2 years agoMerge branch 'remove-unused-shape_t-struct' into 'main'
Magnus Jacobsson [Sun, 17 Apr 2022 08:31:14 +0000 (08:31 +0000)]
Merge branch 'remove-unused-shape_t-struct' into 'main'

Breaking change: remove unused shape_t struct from public header types.h

See merge request graphviz/graphviz!2599

2 years agoremove unused shape_t struct
Magnus Jacobsson [Sat, 16 Apr 2022 13:14:15 +0000 (15:14 +0200)]
remove unused shape_t struct

2 years agoMerge branch 'conditionalize-man-page-installation' into 'main'
Matthew Fernandez [Sun, 17 Apr 2022 00:30:51 +0000 (00:30 +0000)]
Merge branch 'conditionalize-man-page-installation' into 'main'

Conditionalize man page installation on binary/script

See merge request graphviz/graphviz!2602

2 years agoConditionalize man page installation on binary/script
David Seifert [Sat, 16 Apr 2022 18:12:09 +0000 (20:12 +0200)]
Conditionalize man page installation on binary/script

* Previously man pages were installed even though the respective binary/script wasn't.

2 years agoMerge branch 'bugfix/many-clusters' into 'main'
Matthew Fernandez [Sat, 16 Apr 2022 20:30:58 +0000 (20:30 +0000)]
Merge branch 'bugfix/many-clusters' into 'main'

Increase the size of mark to handle more clusters

See merge request graphviz/graphviz!2595

2 years agocommon: increase the size of mark to handle more clusters
Thomas Gibson-Robinson [Fri, 15 Apr 2022 07:13:15 +0000 (08:13 +0100)]
common: increase the size of mark to handle more clusters

2 years agotests: add a regression test for a crash with >= 128 clusters
Thomas Gibson-Robinson [Fri, 15 Apr 2022 07:10:51 +0000 (08:10 +0100)]
tests: add a regression test for a crash with >= 128 clusters

2 years agoMerge branch 'man-handling' into 'main'
Matthew Fernandez [Sat, 16 Apr 2022 17:14:50 +0000 (17:14 +0000)]
Merge branch 'man-handling' into 'main'

Respect autoconf defaults

See merge request graphviz/graphviz!2598

2 years agoUpdate spec file for --docdir changes
David Seifert [Sat, 16 Apr 2022 16:00:18 +0000 (18:00 +0200)]
Update spec file for --docdir changes

* We nest `pdf` and `html` in separate directories in $(docdir), to
  mimic the old documentation packaging structure.

2 years agoDefine `$(pkgconfigdir)` using `PKG_INSTALLDIR` in configure.ac
David Seifert [Sat, 16 Apr 2022 16:00:18 +0000 (18:00 +0200)]
Define `$(pkgconfigdir)` using `PKG_INSTALLDIR` in configure.ac

* This allows overriding the default using `--with-pkgconfigdir`
  passed to the configure script. FreeBSD for instance doesn't use
  the standard `$libdir/pkgconfig` directory. This macro has been
  present in pkg.m4 for over 9 years:
  https://gitlab.freedesktop.org/pkg-config/pkg-config/-/commit/5fc77a96b7a1114e296f968037342f060d4bc34b

2 years ago`$(txtdir)` -> `$(docdir)`
David Seifert [Sat, 16 Apr 2022 16:00:18 +0000 (18:00 +0200)]
`$(txtdir)` -> `$(docdir)`

* All documentation directories should be a function of `$(docdir)`, and
  not `$(datadir)`, which is to be used for files that the program
  actually needs at runtime.
* Also amend the debian install rules, since documentation is now
  natively installed into `$(docdir)` == `usr/share/doc/graphviz`.

2 years ago`$(pkgdatadir)/doc/html` -> `$(htmldir)`
David Seifert [Sat, 16 Apr 2022 16:00:18 +0000 (18:00 +0200)]
`$(pkgdatadir)/doc/html` -> `$(htmldir)`

* The schemas are documentation, and should be nested in
  `$(docdir)` and not `$(datadir)`.

2 years agoLet Autoconf set `$(htmldir)`
David Seifert [Sat, 16 Apr 2022 16:00:18 +0000 (18:00 +0200)]
Let Autoconf set `$(htmldir)`

* The previous variable would not respect `--docdir` passed to configure.
  Autoconf sets `$(htmldir)` to `$(docdir)` by default and AC_SUBST()s
  this value.

2 years agoLet Autoconf set `$(pdfdir)`
David Seifert [Sat, 16 Apr 2022 16:00:18 +0000 (18:00 +0200)]
Let Autoconf set `$(pdfdir)`

* The previous variable would not respect `--docdir` passed to configure.
  Autoconf sets `$(pdfdir)` to `$(docdir)` by default and AC_SUBST()s
  this value.

2 years agominor whitespace fix
David Seifert [Sat, 16 Apr 2022 16:00:18 +0000 (18:00 +0200)]
minor whitespace fix

2 years agoMerge branch 'smattr/DF7C7988-7949-4124-8FE4-D6ADE0795B76' into 'main'
Matthew Fernandez [Sat, 16 Apr 2022 16:24:06 +0000 (16:24 +0000)]
Merge branch 'smattr/DF7C7988-7949-4124-8FE4-D6ADE0795B76' into 'main'

CMake: fix version check for 'add_link_options'

See merge request graphviz/graphviz!2581

2 years agoCMake: fix version check for 'add_link_options'
Matthew Fernandez [Sun, 10 Apr 2022 18:04:55 +0000 (11:04 -0700)]
CMake: fix version check for 'add_link_options'

This command was added in CMake 3.13.0.¹ Note that the earlier check for this
was already using the correct CMake version.

¹ https://cmake.org/cmake/help/v3.13/command/add_link_options.html

2 years agoMerge branch 'smattr/F4FD20FF-112C-4973-B303-12D257F09982' into 'main'
Matthew Fernandez [Sat, 16 Apr 2022 05:46:36 +0000 (05:46 +0000)]
Merge branch 'smattr/F4FD20FF-112C-4973-B303-12D257F09982' into 'main'

tred: [nfc] replace inline stack implementation with generic API

See merge request graphviz/graphviz!2593

2 years agotred: [nfc] replace inline stack implementation with generic API
Matthew Fernandez [Fri, 4 Feb 2022 07:28:43 +0000 (18:28 +1100)]
tred: [nfc] replace inline stack implementation with generic API

Similar to previous changes to `gc` in 4e2875fd7376338259dcb3ccc8f029d58bdf22dd,
this replaces some duplicated functionality with the generic Graphviz stack
implementation.

Gitlab: #1793

2 years agoMerge branch 'smattr/DD14D6DC-DBFE-46F9-926A-86A480D7A618' into 'main'
Matthew Fernandez [Sat, 16 Apr 2022 03:12:01 +0000 (03:12 +0000)]
Merge branch 'smattr/DD14D6DC-DBFE-46F9-926A-86A480D7A618' into 'main'

common: remove some dead code in const.h

See merge request graphviz/graphviz!2596

2 years agocommon: update legacy 'ET_' comment
Matthew Fernandez [Wed, 13 Apr 2022 14:57:25 +0000 (07:57 -0700)]
common: update legacy 'ET_' comment

These constants were renamed in 8d1c625b8400e57ab6ce84ad8f9b9c990ff16bc4.

2 years agocommon: remove unused 'SERVER_*' constants
Matthew Fernandez [Wed, 13 Apr 2022 14:55:37 +0000 (07:55 -0700)]
common: remove unused 'SERVER_*' constants

These have never been used.

2 years agoMerge branch 'info' into 'main'
Mark Hansen [Fri, 15 Apr 2022 00:31:00 +0000 (00:31 +0000)]
Merge branch 'info' into 'main'

Remove dead MJPG, MPJG

See merge request graphviz/graphviz!2569

2 years agoRemove dead MJPG, MPJG
Mark Hansen [Thu, 7 Apr 2022 10:49:47 +0000 (20:49 +1000)]
Remove dead MJPG, MPJG

I think the second one was just a misspelling.

2 years agoMerge branch 'AC_SUBST-variables-Makefile.am' into 'main'
Matthew Fernandez [Thu, 14 Apr 2022 15:27:49 +0000 (15:27 +0000)]
Merge branch 'AC_SUBST-variables-Makefile.am' into 'main'

Modernize Automake

See merge request graphviz/graphviz!2582

2 years agoUse target specific build flags
David Seifert [Thu, 14 Apr 2022 08:23:49 +0000 (10:23 +0200)]
Use target specific build flags

2 years agoTransform `$(datadir)/$(PACKAGE)` -> `$(pkgdatadir)`
David Seifert [Thu, 14 Apr 2022 08:23:49 +0000 (10:23 +0200)]
Transform `$(datadir)/$(PACKAGE)` -> `$(pkgdatadir)`

* `$(pkgdatadir)` is the idiomatic nested package directory:
  https://www.gnu.org/software/automake/manual/html_node/Uniform.html

2 years agoPrefer `dist_` prefix over `EXTRA_DIST`
David Seifert [Thu, 14 Apr 2022 08:23:49 +0000 (10:23 +0200)]
Prefer `dist_` prefix over `EXTRA_DIST`

* `dist_` expresses the clear intent for files to be distributed along in the tarball:
  https://www.gnu.org/software/automake/manual/html_node/Program-and-Library-Variables.html

2 years agoUse Autoconf recommended path quoting
David Seifert [Thu, 14 Apr 2022 08:23:49 +0000 (10:23 +0200)]
Use Autoconf recommended path quoting

* `-DDATADIR='"$(datadir)"'` is less error-prone than `-DDATADIR=\""$(datadir)"\"`
  since the shell will handle the correct escaping of the double quotes:
  https://www.gnu.org/software/autoconf/manual/autoconf-2.71/html_node/Defining-Directories.html

2 years agoMerge branch 'smattr/87741EE1-8FDA-497B-866B-6784E9618B9D' into 'main'
Matthew Fernandez [Thu, 14 Apr 2022 05:46:00 +0000 (05:46 +0000)]
Merge branch 'smattr/87741EE1-8FDA-497B-866B-6784E9618B9D' into 'main'

GD plugin: some minor clean up

See merge request graphviz/graphviz!2590

2 years agoGD plugin: [nfc] remove unnecessary parens
Matthew Fernandez [Sun, 27 Feb 2022 23:46:08 +0000 (15:46 -0800)]
GD plugin: [nfc] remove unnecessary parens

2 years agoGD plugin: [nfc] remove unnecessary casts
Matthew Fernandez [Sun, 27 Feb 2022 23:40:21 +0000 (15:40 -0800)]
GD plugin: [nfc] remove unnecessary casts

2 years agoGD plugin: [nfc] remove unused 'black'
Matthew Fernandez [Sun, 27 Feb 2022 23:32:14 +0000 (15:32 -0800)]
GD plugin: [nfc] remove unused 'black'

2 years agoGD plugin: [nfc] remove unused 'white'
Matthew Fernandez [Sun, 27 Feb 2022 23:31:39 +0000 (15:31 -0800)]
GD plugin: [nfc] remove unused 'white'

2 years agoMerge prefix of !2582
Matthew Fernandez [Thu, 14 Apr 2022 04:23:06 +0000 (21:23 -0700)]
Merge prefix of !2582

2 years agoFix inconsistent whitespace
David Seifert [Tue, 12 Apr 2022 21:40:13 +0000 (23:40 +0200)]
Fix inconsistent whitespace

2 years agoTransform `@...@` -> `$(...)`
David Seifert [Tue, 12 Apr 2022 21:40:13 +0000 (23:40 +0200)]
Transform `@...@` -> `$(...)`

* This allows for overriding select variables
  when running make, e.g.

    make PS2PDF=/foo/bar/some_other_ps2pdf

2 years agoMerge branch 'smattr/197561D2-9FF5-46BD-8DEB-5504F5910180' into 'main'
Matthew Fernandez [Thu, 14 Apr 2022 04:22:01 +0000 (04:22 +0000)]
Merge branch 'smattr/197561D2-9FF5-46BD-8DEB-5504F5910180' into 'main'

ccomps: replace inline stack implementation with generic API

See merge request graphviz/graphviz!2591

2 years agoccomps: replace inline stack implementation with generic API
Matthew Fernandez [Fri, 4 Feb 2022 05:31:39 +0000 (16:31 +1100)]
ccomps: replace inline stack implementation with generic API

Similar to previous changes to `gc` in 4e2875fd7376338259dcb3ccc8f029d58bdf22dd,
this replaces some duplicated functionality with the generic Graphviz stack
implementation.

Gitlab: #1793

2 years agoMerge branch 'smattr/B993A955-2443-455F-844B-792400F80FD9' into 'main'
Matthew Fernandez [Thu, 14 Apr 2022 02:18:22 +0000 (02:18 +0000)]
Merge branch 'smattr/B993A955-2443-455F-844B-792400F80FD9' into 'main'

remove 'sprint' helpers

See merge request graphviz/graphviz!2592

2 years agoremove 'sprint' helpers
Matthew Fernandez [Wed, 13 Apr 2022 03:48:18 +0000 (20:48 -0700)]
remove 'sprint' helpers

Since these were added a year ago in 08786bbb19bbe0fdf28adcbb305b02f54a237edf,
they have only been used once in 6437e1535c7da1cb97fd215131c4bd92c60021fe in
code that was subsequently deleted in c2d3526427a7259aa656ab72c83b43232ebfd806.
At this point, it seems safe to call “time” on these and judge them as not
useful in practice.

To further reinforce this, it is worth observing that they were not usable in
the CMake build system. 5b620771b7e5f07529ff7a41177ae27048c91865, despite
correcting an absence of sprint.h, failed to also correct the absence of
sprint.c. Any attempt to use these functions resulted in link failures in the
CMake build.

This commit effectively reverts 5b620771b7e5f07529ff7a41177ae27048c91865 and
08786bbb19bbe0fdf28adcbb305b02f54a237edf.

2 years agoMerge branch 'glitz' into 'main'
Matthew Fernandez [Thu, 14 Apr 2022 00:59:32 +0000 (00:59 +0000)]
Merge branch 'glitz' into 'main'

Remove glitz plugin

See merge request graphviz/graphviz!2589

2 years agoRemove glitz plugin
Matt Turner [Tue, 12 Apr 2022 17:32:13 +0000 (10:32 -0700)]
Remove glitz plugin

glitz is dead since at least 2009.

2 years agoMerge branch 'copy-and-paste-mistake' into 'main'
Matthew Fernandez [Wed, 13 Apr 2022 05:32:43 +0000 (05:32 +0000)]
Merge branch 'copy-and-paste-mistake' into 'main'

Fix copy-and-paste mistake

See merge request graphviz/graphviz!2588

2 years agoFix copy-and-paste mistake
Matt Turner [Tue, 12 Apr 2022 17:27:37 +0000 (10:27 -0700)]
Fix copy-and-paste mistake

2 years agoMerge branch 'smattr/3B4AE2A2-67C9-4832-9B0A-351A5D414B55' into 'main'
Matthew Fernandez [Wed, 13 Apr 2022 04:10:56 +0000 (04:10 +0000)]
Merge branch 'smattr/3B4AE2A2-67C9-4832-9B0A-351A5D414B55' into 'main'

more #2204 progress

See merge request graphviz/graphviz!2587

2 years agoglcomp: remove unnecessary unistd.h #include and typedef
Matthew Fernandez [Sun, 10 Apr 2022 20:19:32 +0000 (13:19 -0700)]
glcomp: remove unnecessary unistd.h #include and typedef

Gitlab; #2204

2 years agocgraph: remove unnecessary unistd.h #include
Matthew Fernandez [Sun, 10 Apr 2022 20:16:37 +0000 (13:16 -0700)]
cgraph: remove unnecessary unistd.h #include

Gitlab: #2204

2 years agolabel: remove unnecessary unistd.h #include
Matthew Fernandez [Sun, 10 Apr 2022 20:16:01 +0000 (13:16 -0700)]
label: remove unnecessary unistd.h #include

Gitlab: #2204

2 years agodot: remove unnecessary unistd.h #include
Matthew Fernandez [Sun, 10 Apr 2022 20:12:38 +0000 (13:12 -0700)]
dot: remove unnecessary unistd.h #include

Gitlab; #2204

2 years agoxgtk plugin demo: remove unnecessary unistd.h #includes
Matthew Fernandez [Sun, 10 Apr 2022 20:10:44 +0000 (13:10 -0700)]
xgtk plugin demo: remove unnecessary unistd.h #includes

This is the equivalent of 8213f08fbf584c1dfb7b7e2e84553e2a5a559a59 and
85fe454ccc64450e582e93af34baafa14aa235da but on this sample code.

Gitlab: #2204

2 years agoremove unnecessary unistd.h #include in 'intptr_t' check
Matthew Fernandez [Sun, 10 Apr 2022 20:07:17 +0000 (13:07 -0700)]
remove unnecessary unistd.h #include in 'intptr_t' check

`intptr_t` is unrelated to unistd.h.

Gitlab: #2204

2 years agoMerge branch 'smattr/4D678FC4-D27C-487D-B6B8-9F1B8105562C' into 'main'
Matthew Fernandez [Wed, 13 Apr 2022 02:50:13 +0000 (02:50 +0000)]
Merge branch 'smattr/4D678FC4-D27C-487D-B6B8-9F1B8105562C' into 'main'

edgepaint: remove support for custom distance functions to 'furtherest_point'

See merge request graphviz/graphviz!2580

2 years agoedgepaint: remove support for custom distance functions to 'furtherest_point'
Matthew Fernandez [Sat, 9 Apr 2022 18:48:11 +0000 (11:48 -0700)]
edgepaint: remove support for custom distance functions to 'furtherest_point'

This is only ever called with a custom function that is identical to the
default.

2 years agoMerge branch 'smattr/C4E535E1-1DFD-4706-AD7E-C8B8F0FD3409' into 'main'
Matthew Fernandez [Wed, 13 Apr 2022 01:22:39 +0000 (01:22 +0000)]
Merge branch 'smattr/C4E535E1-1DFD-4706-AD7E-C8B8F0FD3409' into 'main'

common: remove dead code in geomprocs

See merge request graphviz/graphviz!2585

2 years agocommon: remove unused 'box_overlap'
Matthew Fernandez [Mon, 11 Apr 2022 05:00:42 +0000 (22:00 -0700)]
common: remove unused 'box_overlap'

AFAICT this has never been used.

2 years agocommon: remove unused 'box_contains'
Matthew Fernandez [Mon, 11 Apr 2022 04:56:02 +0000 (21:56 -0700)]
common: remove unused 'box_contains'

AFAICT this function has never been used. Note that this also makes the
`CONTAINS` macro unused. But it is retained because it is in a public header.

2 years agocommon: remove unused 'boxf_contains'
Matthew Fernandez [Mon, 11 Apr 2022 04:51:48 +0000 (21:51 -0700)]
common: remove unused 'boxf_contains'

The last use of this was removed in 1bdfda539761de274318d04603bf0efc5694fbaa.

2 years agocommon: remove unused 'flip_rec_box'
Matthew Fernandez [Mon, 11 Apr 2022 04:46:33 +0000 (21:46 -0700)]
common: remove unused 'flip_rec_box'

The last use of this was removed in 572d585bc69479347cb19f6f9a47f87f7e958a46.

2 years agoMerge branch 'smattr/5328A2DD-3995-4424-8F11-468B9F03FF7B' into 'main'
Matthew Fernandez [Tue, 12 Apr 2022 19:16:35 +0000 (19:16 +0000)]
Merge branch 'smattr/5328A2DD-3995-4424-8F11-468B9F03FF7B' into 'main'

Visio plugin: squash some MSVC warnings from initializing floats with doubles

See merge request graphviz/graphviz!2579

2 years agoVisio plugin: squash some MSVC warnings from initializing floats with doubles
Matthew Fernandez [Sat, 9 Apr 2022 19:41:18 +0000 (12:41 -0700)]
Visio plugin: squash some MSVC warnings from initializing floats with doubles

2 years agoMerge branch 'smattr/1EE08AEF-A2C1-41DE-8544-0D25B7B4D297' into 'main'
Matthew Fernandez [Tue, 12 Apr 2022 05:25:35 +0000 (05:25 +0000)]
Merge branch 'smattr/1EE08AEF-A2C1-41DE-8544-0D25B7B4D297' into 'main'

CMake: enable installation of example graphs

See merge request graphviz/graphviz!2566

2 years agoCMake: enable installation of example graphs
Matthew Fernandez [Thu, 7 Apr 2022 01:18:43 +0000 (18:18 -0700)]
CMake: enable installation of example graphs

Gitlab: #1836

2 years agoCMake: fix: use a relative 'DATA_INSTALL_DIR' on non-Linux
Matthew Fernandez [Thu, 7 Apr 2022 01:38:10 +0000 (18:38 -0700)]
CMake: fix: use a relative 'DATA_INSTALL_DIR' on non-Linux

Some installers like NSIS on Windows do not allow absolute paths in installation
destinations. This is already followed in e.g. `BINARY_INSTALL_DIR`, but
`DATA_INSTALL_DIR` was using an absolute path. This issue was not detected
because this is currently only used in Smyrna which is not enabled on Windows in
CI. But an upcoming commit enables general example installation, which exposes
this issue.

Gitlab: #1836

2 years agoMerge branch 'smattr/562D2825-1150-47A3-B1E5-73CA09F6F380' into 'main'
Matthew Fernandez [Tue, 12 Apr 2022 01:49:17 +0000 (01:49 +0000)]
Merge branch 'smattr/562D2825-1150-47A3-B1E5-73CA09F6F380' into 'main'

gc: [nfc] simplify stack implementation

See merge request graphviz/graphviz!2421

2 years agogc: replace inline stack implementation with generic one
Matthew Fernandez [Tue, 5 Apr 2022 14:45:40 +0000 (07:45 -0700)]
gc: replace inline stack implementation with generic one

This code was using two abstractions, a block `blk_t` and stack `stk_t`, to
amortize the cost of allocations. We can remove the block abstraction and
rewrite the stack implementation to use the simpler generic stack while still
retaining these amortization benefits. Note that this refactoring also makes
initialization of the stack data structure unnecessary as a zeroed `gv_stack_t`
is also a valid empty stack.

The new code also deallocates the stack prior to exit, aiding tools like
Valgrind and Address Sanitizer.

This pattern of using both a hand-rolled block and hand-rolled stack appears in
numerous places in the Graphviz code base, of which this is just one instance.

Gitlab: #1793

2 years agocgraph: implement a generic stack abstraction
Matthew Fernandez [Thu, 3 Feb 2022 04:37:13 +0000 (15:37 +1100)]
cgraph: implement a generic stack abstraction

Similar to prior abstractions like `bitarray_t`, this is implemented header-only
so as to be usable throughout the Graphviz tree, even by code that is not
linking against cgraph.

Given this implementation is header-only, it is natural to wonder why the type
needs a `gv_` prefix. The answer is that one of the macOS system headers flouts
the rule of `__` prefixing symbols that are part of the implementation and
defines a typedef of `__darwin_sigaltstack` under the name `stack_t`. Hence this
name is not usable by us.

Gitlab: #1793, #2222

2 years agotests: unify 'bitarray' and 'sprint' test orchestrators
Matthew Fernandez [Tue, 5 Apr 2022 00:13:37 +0000 (17:13 -0700)]
tests: unify 'bitarray' and 'sprint' test orchestrators

2 years agocgraph: squash a macOS warning in 'sprint' tester
Matthew Fernandez [Tue, 5 Apr 2022 04:22:04 +0000 (21:22 -0700)]
cgraph: squash a macOS warning in 'sprint' tester

macOS provides an `INT8_C` macro that generates an `int`, not an `int8_t`, which
ends up resulting in this code generating `printf` format warnings. An upcoming
commit which enables `-Werror` on this code causes test failures without this.

2 years agotests: rename and generalize 'sprint' test file
Matthew Fernandez [Tue, 5 Apr 2022 00:09:22 +0000 (17:09 -0700)]
tests: rename and generalize 'sprint' test file

2 years agoMerge branch 'smattr/24A46FC0-701E-41A5-B90D-09A92A2F3811' into 'main'
Matthew Fernandez [Mon, 11 Apr 2022 16:08:38 +0000 (16:08 +0000)]
Merge branch 'smattr/24A46FC0-701E-41A5-B90D-09A92A2F3811' into 'main'

CI: standardize naming of platform-specific scripts

See merge request graphviz/graphviz!2578

2 years agoCI: consolidate Python requirements installation on macOS
Matthew Fernandez [Sat, 9 Apr 2022 04:08:46 +0000 (21:08 -0700)]
CI: consolidate Python requirements installation on macOS

2 years agoCI: rename Windows script to put 'windows' as a prefix instead of a suffix
Matthew Fernandez [Sat, 9 Apr 2022 04:01:14 +0000 (21:01 -0700)]
CI: rename Windows script to put 'windows' as a prefix instead of a suffix

This aligns with the pattern used for the other platform-specific CI scripts,
making the ci/ directory a little more intuitive.

2 years agoCI: rename macOS scripts to put 'macos' as a prefix instead of suffix
Matthew Fernandez [Sat, 9 Apr 2022 03:59:52 +0000 (20:59 -0700)]
CI: rename macOS scripts to put 'macos' as a prefix instead of suffix

This aligns these with the pattern used for the MinGW and Cygwin builds, making
the ci/ directory a little more intuitive.

2 years agoMerge branch 'smattr/5F630118-D62C-4D9D-B333-07E2F37D558F' into 'main'
Matthew Fernandez [Mon, 11 Apr 2022 06:42:53 +0000 (06:42 +0000)]
Merge branch 'smattr/5F630118-D62C-4D9D-B333-07E2F37D558F' into 'main'

mm2gv: remove dead code

See merge request graphviz/graphviz!2574

2 years agomm2gv: strip all formats except CSR from 'SparseMatrix_import_matrix_market'
Matthew Fernandez [Fri, 8 Apr 2022 15:26:09 +0000 (08:26 -0700)]
mm2gv: strip all formats except CSR from 'SparseMatrix_import_matrix_market'

Only `FORMAT_CSR` was being used when calling into this code.

2 years agomm2gv: make 'mm_get_type' static
Matthew Fernandez [Fri, 8 Apr 2022 15:19:12 +0000 (08:19 -0700)]
mm2gv: make 'mm_get_type' static

This function is unused outside of its containing file.

2 years agomm2gv: remove unused 'mm_write_banner'
Matthew Fernandez [Fri, 8 Apr 2022 15:17:02 +0000 (08:17 -0700)]
mm2gv: remove unused 'mm_write_banner'

2 years agomm2gv: remove unused 'SparseMatrix_export_matrix_market'
Matthew Fernandez [Fri, 8 Apr 2022 15:14:39 +0000 (08:14 -0700)]
mm2gv: remove unused 'SparseMatrix_export_matrix_market'

2 years agomm2gv: remove unused 'mm_read_mtx_array_size'
Matthew Fernandez [Fri, 8 Apr 2022 15:08:28 +0000 (08:08 -0700)]
mm2gv: remove unused 'mm_read_mtx_array_size'

2 years agomm2gv: remove unused 'mm_write_mtx_crd_size'
Matthew Fernandez [Fri, 8 Apr 2022 15:07:45 +0000 (08:07 -0700)]
mm2gv: remove unused 'mm_write_mtx_crd_size'

2 years agomm2gv: remove unused 'mm_write_mtx_array_size'
Matthew Fernandez [Fri, 8 Apr 2022 15:07:10 +0000 (08:07 -0700)]
mm2gv: remove unused 'mm_write_mtx_array_size'

2 years agomm2gv: remove unused 'mm_is_valid'
Matthew Fernandez [Fri, 8 Apr 2022 15:06:30 +0000 (08:06 -0700)]
mm2gv: remove unused 'mm_is_valid'

2 years agomm2gv: remove unnused 'mm_write_mtx_crd'
Matthew Fernandez [Fri, 8 Apr 2022 15:04:54 +0000 (08:04 -0700)]
mm2gv: remove unnused 'mm_write_mtx_crd'

2 years agomm2gv: remove unused 'mm_read_mtx_crd_data'
Matthew Fernandez [Fri, 8 Apr 2022 15:03:42 +0000 (08:03 -0700)]
mm2gv: remove unused 'mm_read_mtx_crd_data'

2 years agomm2gv: remove unused 'mm_read_mtx_crd_entry'
Matthew Fernandez [Fri, 8 Apr 2022 15:03:01 +0000 (08:03 -0700)]
mm2gv: remove unused 'mm_read_mtx_crd_entry'

2 years agomm2gv: remove unused 'mm_read_unsymmetric_sparse'
Matthew Fernandez [Fri, 8 Apr 2022 15:02:21 +0000 (08:02 -0700)]
mm2gv: remove unused 'mm_read_unsymmetric_sparse'

2 years agoMerge branch 'smattr/2228889B-1687-4AC1-9529-E3EE1B9D8237' into 'main'
Matthew Fernandez [Mon, 11 Apr 2022 02:19:58 +0000 (02:19 +0000)]
Merge branch 'smattr/2228889B-1687-4AC1-9529-E3EE1B9D8237' into 'main'

CMake: enable Visio plugin

See merge request graphviz/graphviz!2571

2 years agoVisio plugin: remove unused #include
Matthew Fernandez [Thu, 7 Apr 2022 01:06:53 +0000 (18:06 -0700)]
Visio plugin: remove unused #include

2 years agoCMake: enable Visio plugin
Matthew Fernandez [Thu, 7 Apr 2022 01:05:51 +0000 (18:05 -0700)]
CMake: enable Visio plugin

Gitlab: #1836

2 years agoVisio plugin: fix: remove typoed #pragma dependencies
Matthew Fernandez [Thu, 7 Apr 2022 15:44:29 +0000 (08:44 -0700)]
Visio plugin: fix: remove typoed #pragma dependencies

It seems to have been an accidental omission that these were not removed in
2d95aab626184f35f779bbd02a000a992826047a when migrating to describing link
dependencies in the build system files. However, these dependencies are typoed
too (should be `cgraph.lib` not `graph.lib`), so it is unclear how they could
have ever worked. This seems to have gone undiscovered because the Visio plugin
is not integrated into the MS Build files nor built on any Windows platform in
CI. This changes in an upcoming commit, exposing:

  LINK : fatal error LNK1104: cannot open file 'graph.lib'

Gitlab: #1836

2 years agoVisio plugin: fix use of dllimport
Matthew Fernandez [Thu, 7 Apr 2022 01:32:13 +0000 (18:32 -0700)]
Visio plugin: fix use of dllimport

When enabling this plugin in the CMake build, the compiler complains:

  …\plugin\visio\gvplugin_visio.c(30,69): error C2491:
    'gvplugin_visio_LTX_library': definition of dllimport data not allowed

Gitlab: #1836

2 years agoMerge branch 'smattr/FF232F75-E08F-45C3-8684-004C8B0B6422' into 'main'
Matthew Fernandez [Mon, 11 Apr 2022 00:58:09 +0000 (00:58 +0000)]
Merge branch 'smattr/FF232F75-E08F-45C3-8684-004C8B0B6422' into 'main'

CMake: enable Lasi plugin

See merge request graphviz/graphviz!2562

2 years agoCMake: add Lasi plugin
Matthew Fernandez [Sun, 3 Apr 2022 22:28:59 +0000 (15:28 -0700)]
CMake: add Lasi plugin

Gitlab: #1836

2 years agoLASi plugin lasi_textspan: remove unused 'str'
Matthew Fernandez [Tue, 5 Apr 2022 02:01:12 +0000 (19:01 -0700)]
LASi plugin lasi_textspan: remove unused 'str'

2 years agoLASi plugin: support newer Pango weights introduced ≥1.24
Matthew Fernandez [Tue, 5 Apr 2022 01:59:19 +0000 (18:59 -0700)]
LASi plugin: support newer Pango weights introduced ≥1.24

Squashes a number of compiler warnings that fail the upcoming CMake build of
this plugin. The version checks and mapping logic was derived from the Pango
docs¹ and the LASi.h header.

¹ https://docs.gtk.org/Pango/enum.Weight.html

2 years agoLASi plugin: work around LASi exporting Freetype’s config.h
Matthew Fernandez [Tue, 5 Apr 2022 01:48:58 +0000 (18:48 -0700)]
LASi plugin: work around LASi exporting Freetype’s config.h

2 years agoLasi plugin: use '#ifdef' instead of '#if' for config checks
Matthew Fernandez [Mon, 4 Apr 2022 14:40:29 +0000 (07:40 -0700)]
Lasi plugin: use '#ifdef' instead of '#if' for config checks

If sys/mman.h is absent, `HAVE_SYS_MMAN_H` ends up not defined at all. A result
of this would be pre-processor warnings, failing the CMake build.

Gitlab: #1836