]> granicus.if.org Git - graphviz/log
graphviz
2 years agodot2gxl: fix crashes when given an empty node id
Matthew Fernandez [Fri, 22 Apr 2022 04:53:41 +0000 (21:53 -0700)]
dot2gxl: fix crashes when given an empty node id

An empty node id is now treated as if id was missing altogether.

Gitlab: fixes #2092

2 years agotests: adjust #2092 test case to expect failure
Matthew Fernandez [Fri, 22 Apr 2022 04:51:59 +0000 (21:51 -0700)]
tests: adjust #2092 test case to expect failure

Even when this is fixed to not crash, it should still not exit with success
because the input it is given is invalid. Unfortunately we need to also adjust
the xfail condition to be non-strict because this passes under ASan, due to
exiting with 1 when an invalid memory reference is detected.

Gitlab: #2092

2 years agotests: fix 'gvtest' import adjustment
Matthew Fernandez [Fri, 22 Apr 2022 04:17:57 +0000 (21:17 -0700)]
tests: fix 'gvtest' import adjustment

This appended path was clearly wrong. Yet this test was running (and passing) in
CI. It seems somehow `./rtest` is already in the `$PYTHONPATH` in CI. A bit
mysterious, but this correction lets the test suite run locally correctly too.

2 years agoMerge branch 'smattr/1FB0FD97-370C-4494-96C7-660729E080FD' into 'main'
Matthew Fernandez [Sat, 23 Apr 2022 14:58:49 +0000 (14:58 +0000)]
Merge branch 'smattr/1FB0FD97-370C-4494-96C7-660729E080FD' into 'main'

dotgen: replace inline stack with generic implementation

See merge request graphviz/graphviz!2626

2 years agodotgen: replace inline stack with generic implementation
Matthew Fernandez [Fri, 22 Apr 2022 00:01:24 +0000 (17:01 -0700)]
dotgen: replace inline stack with generic implementation

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/92B5C0E4-9DD0-486F-BCF8-6CD2CF4D606A' into 'main'
Matthew Fernandez [Thu, 21 Apr 2022 01:19:28 +0000 (01:19 +0000)]
Merge branch 'smattr/92B5C0E4-9DD0-486F-BCF8-6CD2CF4D606A' into 'main'

core plugin: remove 'GVPUTS' optimization

See merge request graphviz/graphviz!2616

2 years agocore plugin: remove 'GVPUTS' optimization
Matthew Fernandez [Mon, 18 Apr 2022 04:31:41 +0000 (21:31 -0700)]
core plugin: remove 'GVPUTS' optimization

This macro was implemented to optimize the case of calling `gvputs` with a
string literal. It has since proven error prone to use.¹ The sharp edge is that
it is possible to call the macro with something that is not a string literal:

  const char *hello = "hello world";
  GVPUTS(job, hello);

This will pass through the compiler with no warnings, but on e.g. x86-64 will
result in a `gvputs` of `"hello wo"`. For safety, we remove it.

This effectively reverts commit 1764f50bcbdf944e003fe475aba2c26e2fd370ff. The
`GVPUTS` macro was originally introduced to optimize I/O resulting in a ~1%
runtime improvement on tests/regression_tests/large/long_chain. That example
should probably no longer be considered “expensive.” I/O is typically an
insignificant fraction of the computation done by currently known expensive
inputs that spend most of their time in layout or cycle resolution. If I/O _is_
a factor in an expensive graph, we could consider providing a vectorized
interface in future in the style of `writev`.

¹ E.g. https://gitlab.com/graphviz/graphviz/-/merge_requests/2472#note_861834540

2 years agoMerge branch 'simplify-pdf-generation' into 'main'
Matthew Fernandez [Wed, 20 Apr 2022 01:43:48 +0000 (01:43 +0000)]
Merge branch 'simplify-pdf-generation' into 'main'

Simplify PDF generation

See merge request graphviz/graphviz!2608

2 years agoSimplify PDF generation
David Seifert [Sun, 17 Apr 2022 10:53:37 +0000 (12:53 +0200)]
Simplify PDF generation

* Make the suffix rule visible unconditionally, make only the PDF
  target (`pdf_DATA`) visible if `groff` is available and the user
  hasn't explicitly disabled PDF generation.

2 years ago`AC_CHECK_PROG(EGREP,...)` -> `AC_PROG_EGREP`
David Seifert [Sun, 17 Apr 2022 10:53:37 +0000 (12:53 +0200)]
`AC_CHECK_PROG(EGREP,...)` -> `AC_PROG_EGREP`

2 years ago`AC_CHECK_PROGS(SED,...)` -> `AC_PROG_SED`
David Seifert [Sun, 17 Apr 2022 10:53:37 +0000 (12:53 +0200)]
`AC_CHECK_PROGS(SED,...)` -> `AC_PROG_SED`

* `AC_PROG_SED` is more portable and the Autoconf builtin.

2 years ago`AC_PROG_LIBTOOL` -> `LT_INIT`
David Seifert [Sun, 17 Apr 2022 10:53:37 +0000 (12:53 +0200)]
`AC_PROG_LIBTOOL` -> `LT_INIT`

* `AC_PROG_LIBTOOL` is the deprecated name from libtool 1.x days.

2 years agoMerge branch 'smattr/504AC3D8-C9CA-4DBE-ADB1-61A6EC6E31E5' into 'main'
Matthew Fernandez [Tue, 19 Apr 2022 15:50:10 +0000 (15:50 +0000)]
Merge branch 'smattr/504AC3D8-C9CA-4DBE-ADB1-61A6EC6E31E5' into 'main'

cgraph: also flush C++ iostreams in exit wrapper

See merge request graphviz/graphviz!2611

2 years agocgraph: also flush C++ iostreams in exit wrapper
Matthew Fernandez [Sun, 17 Apr 2022 21:31:35 +0000 (14:31 -0700)]
cgraph: also flush C++ iostreams in exit wrapper

This exit wrapper works around an issue where processes running under MinGW can
exit with unbuffered data remaining in their stdout and stderr internal buffers
without being flushed. The C stdio and C++ iostreams implementations can have
separate buffers. Thus when using this wrapper in C++ code in combination with
C++ iostreams (e.g. cmd/mingle/minglemain.cpp) we need to additionally flush the
C++ buffers as well.

Gitlab: #2178

2 years agoMerge branch 'smattr/2876ED0F-59E3-4EAD-BF53-380662F6B6CF' into 'main'
Matthew Fernandez [Tue, 19 Apr 2022 05:24:24 +0000 (05:24 +0000)]
Merge branch 'smattr/2876ED0F-59E3-4EAD-BF53-380662F6B6CF' into 'main'

gvgen: replace inline stack with generation implementation

See merge request graphviz/graphviz!2612

2 years agogvgen: replace inline stack with generation implementation
Matthew Fernandez [Sat, 5 Feb 2022 07:52:15 +0000 (18:52 +1100)]
gvgen: replace inline stack with generation implementation

Similar to previous changes to `gc` in 4e2875fd7376338259dcb3ccc8f029d58bdf22dd,
this replaces some duplicated functionality with the generic Graphviz stack
implementation. This also introduces some missing allocation failure checks.

Gitlab: #1793

2 years agoMerge branch 'smattr/D117C632-7F81-42C4-859F-F6CA7D69D211' into 'main'
Matthew Fernandez [Tue, 19 Apr 2022 04:05:02 +0000 (04:05 +0000)]
Merge branch 'smattr/D117C632-7F81-42C4-859F-F6CA7D69D211' into 'main'

remove 'HAVE_LIBXPMFORLEFTY' comment in Windows config.h

See merge request graphviz/graphviz!2613

2 years agoremove 'HAVE_LIBXPMFORLEFTY' comment in Windows config.h
Matthew Fernandez [Mon, 18 Apr 2022 02:06:20 +0000 (19:06 -0700)]
remove 'HAVE_LIBXPMFORLEFTY' comment in Windows config.h

The originating Autotools code from which this was derived was removed in
ba574d9f2579cda134d30b2ad5c8729012296a83.

2 years agoMerge branch 'smattr/95332056-80BA-49C3-9F43-72BD2F1E2060' into 'main'
Matthew Fernandez [Tue, 19 Apr 2022 02:15:02 +0000 (02:15 +0000)]
Merge branch 'smattr/95332056-80BA-49C3-9F43-72BD2F1E2060' into 'main'

cgraph man page fix, pack const-ify a param

See merge request graphviz/graphviz!2610

2 years agopack: take a const parameter in 'parsePackModeInfo'
Matthew Fernandez [Thu, 14 Apr 2022 00:26:38 +0000 (17:26 -0700)]
pack: take a const parameter in 'parsePackModeInfo'

This string is not modified internally.

2 years agocgraph: fix legacy type signature in man page
Matthew Fernandez [Thu, 14 Apr 2022 00:17:24 +0000 (17:17 -0700)]
cgraph: fix legacy type signature in man page

`agattr` was updated to take a `const char*` for `value` in
c5789870553e56ca80bcf233a1c7488538561ca3.

2 years agoMerge branch 'smattr/8B7C6044-6EC5-46EC-975D-79D9082F9A78' into 'main'
Matthew Fernandez [Mon, 18 Apr 2022 15:33:12 +0000 (15:33 +0000)]
Merge branch 'smattr/8B7C6044-6EC5-46EC-975D-79D9082F9A78' into 'main'

sccmap: replace inline stack with generation implementation

See merge request graphviz/graphviz!2609

2 years agosccmap: replace inline stack with generation implementation
Matthew Fernandez [Sat, 5 Feb 2022 07:35:35 +0000 (18:35 +1100)]
sccmap: replace inline stack with generation implementation

Similar to previous changes to `gc` in 4e2875fd7376338259dcb3ccc8f029d58bdf22dd,
this replaces some duplicated functionality with the generic Graphviz stack
implementation. This also introduces some missing allocation failure checks.

Gitlab: #1793

2 years agoMerge branch 'remove-__USE_GNU-hacks-for-stdlib.h' into 'main'
Magnus Jacobsson [Mon, 18 Apr 2022 07:23:30 +0000 (07:23 +0000)]
Merge branch 'remove-__USE_GNU-hacks-for-stdlib.h' into 'main'

render: unconditionally include stdlib.h

See merge request graphviz/graphviz!2607

2 years agorender: unconditionally include stdlib.h
Magnus Jacobsson [Sun, 3 Apr 2022 06:49:41 +0000 (08:49 +0200)]
render: unconditionally include stdlib.h

Without this change, attempting to include geomproc.h in render.h
would cause the following warning:

In file included from /home/magjac/graphviz/lib/common/shapes.c:12:
/home/magjac/graphviz/lib/common/render.h:24: warning: "__USE_GNU" redefined
   24 | #define __USE_GNU
      |
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/limits.h:26,
                 from /usr/lib/gcc/x86_64-linux-gnu/11/include/limits.h:203,
                 from /usr/lib/gcc/x86_64-linux-gnu/11/include/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-linux-gnu/11/include/limits.h:34,
                 from /home/magjac/graphviz/lib/common/arith.h:21,
                 from /home/magjac/graphviz/lib/common/geom.h:16,
                 from /home/magjac/graphviz/lib/common/geomprocs.h:21,
                 from /home/magjac/graphviz/lib/common/shapes.c:11:
/usr/include/features.h:407: note: this is the location of the previous definition
  407 | # define __USE_GNU      1
      |

This is casued by arith.h defining _GNU_SOURCE to 1 which seems to
implicitly set __USE_GNU.

2 years agoMerge branch 'smattr/FEF51FF4-CEC3-46E0-B585-34C3E7E6311E' into 'main'
Matthew Fernandez [Mon, 18 Apr 2022 04:29:02 +0000 (04:29 +0000)]
Merge branch 'smattr/FEF51FF4-CEC3-46E0-B585-34C3E7E6311E' into 'main'

add a CONTRIBUTING.md, spelling out some implicit development practices

See merge request graphviz/graphviz!2586

2 years agoadd a CONTRIBUTING.md, spelling out some implicit development practices
Matthew Fernandez [Mon, 11 Apr 2022 15:23:54 +0000 (08:23 -0700)]
add a CONTRIBUTING.md, spelling out some implicit development practices

This is still incomplete, but it at least documents some things we have largely
been doing implicitly for awhile.

Gitlab: #2199

2 years agoMerge branch 'smattr/DA9E7312-A451-4627-BCFB-778A8505ED48' into 'main'
Matthew Fernandez [Mon, 18 Apr 2022 03:09:10 +0000 (03:09 +0000)]
Merge branch 'smattr/DA9E7312-A451-4627-BCFB-778A8505ED48' into 'main'

gml2gv: replace 'liststk' stack with generic implementation

See merge request graphviz/graphviz!2606

2 years agogml2gv: replace 'liststk' stack with generic implementation
Matthew Fernandez [Sat, 5 Feb 2022 06:23:11 +0000 (17:23 +1100)]
gml2gv: replace 'liststk' stack with generic implementation

Similar to previous changes to `gc` in 4e2875fd7376338259dcb3ccc8f029d58bdf22dd,
this replaces some duplicated functionality with the generic Graphviz stack
implementation. This also introduces some missing allocation failure checks.

Gitlab: #1793

2 years agoMerge branch 'smattr/2BDF9A34-A358-4559-A1F7-55A3385F3088' into 'main'
Matthew Fernandez [Mon, 18 Apr 2022 00:14:24 +0000 (00:14 +0000)]
Merge branch 'smattr/2BDF9A34-A358-4559-A1F7-55A3385F3088' into 'main'

misc improvements

See merge request graphviz/graphviz!2605

2 years agotests: use 'gvtest.dot' to simplify a test case
Matthew Fernandez [Sat, 16 Apr 2022 20:57:23 +0000 (13:57 -0700)]
tests: use 'gvtest.dot' to simplify a test case

2 years agotests: switch test_large_graphs.py to *nix line endings
Matthew Fernandez [Sun, 17 Apr 2022 01:03:32 +0000 (18:03 -0700)]
tests: switch test_large_graphs.py to *nix line endings

Not sure how this one incurred Windows line endings, in contrast to the rest of
the tree.

2 years agotests: suppress 'gvtest' Pytest warnings by name instead of code
Matthew Fernandez [Sat, 16 Apr 2022 20:45:01 +0000 (13:45 -0700)]
tests: suppress 'gvtest' Pytest warnings by name instead of code

This has the same effect, but is slightly less cryptic to people reading this
code.

2 years agoadd a changelog entry for CMake plugin enabling since last release
Matthew Fernandez [Mon, 11 Apr 2022 14:58:15 +0000 (07:58 -0700)]
add a changelog entry for CMake plugin enabling since last release

2 years agoMerge branch 'smattr/12B33EC1-2DD6-4415-92C4-A3914D178A24' into 'main'
Matthew Fernandez [Sun, 17 Apr 2022 22:44:44 +0000 (22:44 +0000)]
Merge branch 'smattr/12B33EC1-2DD6-4415-92C4-A3914D178A24' into 'main'

graphml2gv: replace inline stack implementations with generic API

See merge request graphviz/graphviz!2600

2 years agographml2gv: replace custom 'slist' string stack with generic stack
Matthew Fernandez [Fri, 4 Feb 2022 10:36:21 +0000 (21:36 +1100)]
graphml2gv: replace custom 'slist' string stack with generic stack

Similar to previous changes to `gc` in 4e2875fd7376338259dcb3ccc8f029d58bdf22dd,
this replaces some duplicated functionality with the generic Graphviz stack
implementation. Apart from reducing code duplication and complexity, this
removes an unnecessary rounding of allocations. The prior code rounded up
`slist` allocations to `sizeof(void*)`, but `malloc` effectively does this
internally anyway.

Gitlab: #1793

2 years agographml2gv: replace inline stack implementation with generic API
Matthew Fernandez [Fri, 4 Feb 2022 07:49:15 +0000 (18:49 +1100)]
graphml2gv: 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. This removes the previously hard coded nested subgraph limit of
32. The number of supported subgraphs in now solely limited by available memory.

Gitlab: #1793

2 years agoMerge branch 'smattr/F75A68E4-8CEB-47C7-9183-FB9033461020' into 'main'
Matthew Fernandez [Sun, 17 Apr 2022 17:21:46 +0000 (17:21 +0000)]
Merge branch 'smattr/F75A68E4-8CEB-47C7-9183-FB9033461020' into 'main'

CI: retry macOS libANN installation up to 2× on failure

See merge request graphviz/graphviz!2603

2 years agoCI: retry macOS libANN installation up to 2× on failure
Matthew Fernandez [Sat, 16 Apr 2022 15:39:32 +0000 (08:39 -0700)]
CI: retry macOS libANN installation up to 2× on failure

libANN availability seems erratic, with Macports sometimes reporting:

  Error: Port libANN not found

only for a retry of the job to succeed. This change introduces an auto-retry
loop on libANN’s installation, hoping this will ameliorate the issue.

2 years agoMerge branch 'smattr/B0797CFF-D97C-4D8F-B2BB-08A472AB2C8A' into 'main'
Matthew Fernandez [Sun, 17 Apr 2022 16:03:22 +0000 (16:03 +0000)]
Merge branch 'smattr/B0797CFF-D97C-4D8F-B2BB-08A472AB2C8A' into 'main'

bcomps: replace inline stack implementation with generic API

See merge request graphviz/graphviz!2604

2 years agobcomps: replace inline stack implementation with generic API
Matthew Fernandez [Fri, 4 Feb 2022 10:53:23 +0000 (21:53 +1100)]
bcomps: 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 'minor-poly_init-cleanup' into 'main'
Magnus Jacobsson [Sun, 17 Apr 2022 10:29:58 +0000 (10:29 +0000)]
Merge branch 'minor-poly_init-cleanup' into 'main'

Minor cleanup in poly_init

See merge request graphviz/graphviz!2601

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.