]>
granicus.if.org Git - graphviz/log
Matthew Fernandez [Thu, 22 Oct 2020 00:05:01 +0000 (17:05 -0700)]
rephrase some swapping code
C allows you to assign structs in this way, so there's no need to use a more
confusing memcpy sequence.
Matthew Fernandez [Thu, 22 Oct 2020 00:04:53 +0000 (17:04 -0700)]
remove unnecessary casts on arguments to free()
These implicitly coerce to void* so no cast is needed.
Matthew Fernandez [Thu, 22 Oct 2020 00:04:48 +0000 (17:04 -0700)]
remove unnecessary guards on calls to free()
Freeing NULL is a no-op, so there is no need for these extra conditionals.
Matthew Fernandez [Thu, 22 Oct 2020 00:04:44 +0000 (17:04 -0700)]
fix memory leak in gvplugin_list
It seems clear these conditionals were reversed and were meant to read
`if (typestr_list)`. Rather than flip their polarity, we just remove them as it
is safe to free NULL.
Matthew Fernandez [Thu, 22 Oct 2020 00:04:38 +0000 (17:04 -0700)]
remove some unnecessary casts of arguments to realloc()
These parameters implicitly coerce to void* with no casting required.
Matthew Fernandez [Thu, 22 Oct 2020 00:04:33 +0000 (17:04 -0700)]
remove unnecessary casts of realloc() return value
realloc returns a void* which, in C, implicitly coerces to all other pointer
types
Matthew Fernandez [Thu, 22 Oct 2020 00:04:26 +0000 (17:04 -0700)]
remove unnecessary casts of calloc() return value
calloc returns a void* which, in C, implicitly coerces to every other pointer
type.
Matthew Fernandez [Thu, 22 Oct 2020 00:03:54 +0000 (17:03 -0700)]
remove unnecessary casts of malloc() return value
malloc returns a void* which, in C, implicitly coerces to every other pointer
type.
Magnus Jacobsson [Wed, 28 Oct 2020 21:44:57 +0000 (21:44 +0000)]
Merge branch 'add-some-missing-tools-to-macos-autotools-build' into 'master'
Add some missing tools to macos autotools build
See merge request graphviz/graphviz!1650
Magnus Jacobsson [Mon, 26 Oct 2020 09:52:41 +0000 (10:52 +0100)]
Enable dotty, lefty, lneato and vimdot to be built on macOS.
Enabled by adding brew install libxaw to macOS builds
Fixes https://gitlab.com/graphviz/graphviz/-/issues/1858
Towards https://gitlab.com/graphviz/graphviz/-/issues/1854
Magnus Jacobsson [Mon, 26 Oct 2020 09:49:21 +0000 (10:49 +0100)]
Move common commands from macOS jobs to macos_build_definition
Matthew Fernandez [Wed, 28 Oct 2020 00:06:02 +0000 (00:06 +0000)]
Merge branch 'smattr/
6f54cfb5 -5fb4-42a0-aba0-
41e155372757 ' into 'master'
refactor tests cases into CI-only and others relevant to developers and CI
Closes #1851
See merge request graphviz/graphviz!1647
Matthew Fernandez [Tue, 27 Oct 2020 14:42:53 +0000 (14:42 +0000)]
Merge branch 'smattr/
BDA848A6 -E53C-4722-BDF7-
B82677681621 ' into 'master'
clean up and a UB fix
See merge request graphviz/graphviz!1621
Matthew Fernandez [Sun, 25 Oct 2020 04:03:04 +0000 (21:03 -0700)]
remove fine grained test skip logic and now depend on tool existence
The test suite should now pass on developers' machines, regardless of which
build configuration or subset of tools they use. Closes #1851.
Matthew Fernandez [Sun, 25 Oct 2020 03:17:45 +0000 (20:17 -0700)]
add others to the CI tool check that do not need fine grained exceptions
Related to #1851.
Matthew Fernandez [Sun, 25 Oct 2020 03:13:39 +0000 (20:13 -0700)]
add exemption list for Autotools macOS build in CI tool check
Related to #1851.
Matthew Fernandez [Sun, 25 Oct 2020 03:11:33 +0000 (20:11 -0700)]
add MSBuild exemption list to CI tool check
Related to #1851.
Matthew Fernandez [Sun, 25 Oct 2020 03:10:09 +0000 (20:10 -0700)]
add CMake exemptions to CI tool check
Related to #1851.
Matthew Fernandez [Sun, 25 Oct 2020 03:08:16 +0000 (20:08 -0700)]
extend CI tool check to dot_builtins
Related to #1851.
Matthew Fernandez [Sun, 25 Oct 2020 03:06:46 +0000 (20:06 -0700)]
extend CI tool check to Mingle
Related to #1851.
Matthew Fernandez [Sun, 25 Oct 2020 03:04:58 +0000 (20:04 -0700)]
check that Smyrna exists in CI
Related to #1851.
Matthew Fernandez [Sun, 25 Oct 2020 02:53:06 +0000 (19:53 -0700)]
move some pytest skip logic into a decorator
For more consistency with other tests.
Matthew Fernandez [Sun, 25 Oct 2020 02:49:43 +0000 (19:49 -0700)]
adjust installation test to work even if GV_VERSION is unset
This test should now run correctly in users' development environments as well as
in CI. Related to #1851.
Matthew Fernandez [Sun, 25 Oct 2020 18:20:32 +0000 (11:20 -0700)]
make gen_version run correctly regardless of CWD
Matthew Fernandez [Sun, 25 Oct 2020 02:34:08 +0000 (19:34 -0700)]
add a home for test cases that are only relevant to run in CI
Related to #1851.
Magnus Jacobsson [Sun, 25 Oct 2020 09:26:51 +0000 (09:26 +0000)]
Merge branch 'ensure-all-existing-tools-are-tested' into 'master'
Ensure all existing tools are tested
See merge request graphviz/graphviz!1643
Magnus Jacobsson [Tue, 20 Oct 2020 15:44:20 +0000 (17:44 +0200)]
Add check that expected missing tool doesn't exist to tools test
Magnus Jacobsson [Wed, 21 Oct 2020 15:05:12 +0000 (17:05 +0200)]
Add removal of old graphviz version before install on RPM systems
Matthew Fernandez [Sun, 25 Oct 2020 04:42:28 +0000 (04:42 +0000)]
Merge branch '
4AF62F39 -396B-483C-A035-
F1C7A0E5D039 ' into 'master'
remove some unused lib/cgraph functions
See merge request graphviz/graphviz!1445
Magnus Jacobsson [Thu, 22 Oct 2020 13:32:16 +0000 (15:32 +0200)]
Add removal of old graphviz version before install on macOS
Magnus Jacobsson [Tue, 20 Oct 2020 16:02:54 +0000 (18:02 +0200)]
Remove gc from tools_not_built_with_cmake list in tools test
It was a mistake to put it there in the first place.
Magnus Jacobsson [Fri, 23 Oct 2020 10:41:52 +0000 (12:41 +0200)]
Ensure that Graphviz tools are found first in Windows CMake jobs
Prepend Graphviz bin directory to path instead of appending it.
The tools test found
C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86\gc.exe
before Graphviz gc.
Magnus Jacobsson [Sat, 24 Oct 2020 06:05:41 +0000 (06:05 +0000)]
Merge branch 'add-macos-test-jobs-to-gitlab-ci' into 'master'
Fix tool usage on macOS and add macOS test jobs to gitlab CI
Closes #1852, #1860, and #1727
See merge request graphviz/graphviz!1629
Magnus Jacobsson [Tue, 20 Oct 2020 13:04:01 +0000 (15:04 +0200)]
Add macos-cmake-test job to CI
Resolves https://gitlab.com/graphviz/graphviz/-/issues/1727.
Magnus Jacobsson [Tue, 20 Oct 2020 13:03:53 +0000 (15:03 +0200)]
Add macos-autotools-test job to CI
Towards https://gitlab.com/graphviz/graphviz/-/issues/1727.
Magnus Jacobsson [Tue, 20 Oct 2020 12:50:09 +0000 (14:50 +0200)]
Add skip of test_1818 also for macOS
Fails because of https://gitlab.com/graphviz/graphviz/-/issues/1858.
Magnus Jacobsson [Tue, 20 Oct 2020 12:48:44 +0000 (14:48 +0200)]
Add skip of test_1813 also for macOS
Fails because of https://gitlab.com/graphviz/graphviz/-/issues/1857.
Magnus Jacobsson [Tue, 20 Oct 2020 06:43:24 +0000 (08:43 +0200)]
Add skip of all tools not built for macOS in CI using autotools in tools test
Fails because not all tools are built for macOS in CI using
autotools. See https://gitlab.com/graphviz/graphviz/-/issues/1854
Magnus Jacobsson [Tue, 20 Oct 2020 16:23:00 +0000 (18:23 +0200)]
Add subset of macOS rtest reference files
Generated with ./rtest.py -g. The .gv files are identical to those in
the linux.x86 subdirectory. The .ps file has slight differences, but
no visible differences.
Magnus Jacobsson [Wed, 21 Oct 2020 06:53:12 +0000 (08:53 +0200)]
Add brew install pango to macos build jobs
Needed for png format and cairo renderer.
Fixes https://gitlab.com/graphviz/graphviz/-/issues/1860.
Magnus Jacobsson [Tue, 20 Oct 2020 13:51:12 +0000 (15:51 +0200)]
Add support for macOS to ci/install.sh
Magnus Jacobsson [Tue, 20 Oct 2020 13:42:18 +0000 (15:42 +0200)]
Refactor ci/install.sh to check for build system before OS
Magnus Jacobsson [Tue, 20 Oct 2020 06:32:44 +0000 (08:32 +0200)]
Fix tred -? to actually print usage instead of error on macOS
Final commit that fixes https://gitlab.com/graphviz/graphviz/-/issues/1852.
Magnus Jacobsson [Tue, 20 Oct 2020 06:32:16 +0000 (08:32 +0200)]
Fix sccmap -? to actually print usage instead of error on macOS
Towards https://gitlab.com/graphviz/graphviz/-/issues/1852.
Magnus Jacobsson [Tue, 20 Oct 2020 06:31:58 +0000 (08:31 +0200)]
Fix nop -? to actually print usage instead of error on macOS
Towards https://gitlab.com/graphviz/graphviz/-/issues/1852.
Magnus Jacobsson [Tue, 20 Oct 2020 06:31:49 +0000 (08:31 +0200)]
Fix mm2gv -? to actually print usage instead of error on macOS
Towards https://gitlab.com/graphviz/graphviz/-/issues/1852.
Magnus Jacobsson [Tue, 20 Oct 2020 06:31:38 +0000 (08:31 +0200)]
Fix gvpack -? to actually print usage instead of error on macOS
Towards https://gitlab.com/graphviz/graphviz/-/issues/1852.
Magnus Jacobsson [Tue, 20 Oct 2020 06:31:02 +0000 (08:31 +0200)]
Fix gvcolor -? to actually print usage instead of error on macOS
Towards https://gitlab.com/graphviz/graphviz/-/issues/1852.
Magnus Jacobsson [Tue, 20 Oct 2020 06:30:44 +0000 (08:30 +0200)]
Fix gc -? to actually print usage instead of error on macOS
Towards https://gitlab.com/graphviz/graphviz/-/issues/1852.
Magnus Jacobsson [Tue, 20 Oct 2020 06:30:27 +0000 (08:30 +0200)]
Fix dijkstra -? to actually print usage instead of error on macOS
Towards https://gitlab.com/graphviz/graphviz/-/issues/1852.
Magnus Jacobsson [Tue, 20 Oct 2020 06:29:49 +0000 (08:29 +0200)]
Fix gvmap -? to actually print usage instead of error on macOS
Towards https://gitlab.com/graphviz/graphviz/-/issues/1852.
Magnus Jacobsson [Tue, 20 Oct 2020 06:29:03 +0000 (08:29 +0200)]
Fix cluster -? to actually print usage instead of error on macOS
Towards https://gitlab.com/graphviz/graphviz/-/issues/1852.
Magnus Jacobsson [Tue, 20 Oct 2020 06:28:21 +0000 (08:28 +0200)]
Fix edgepaint -? to actually print usage instead of error on macOS
Towards https://gitlab.com/graphviz/graphviz/-/issues/1852.
Magnus Jacobsson [Tue, 20 Oct 2020 06:11:33 +0000 (08:11 +0200)]
Fix ccomps -? to actually print usage instead of error on macOS
Towards https://gitlab.com/graphviz/graphviz/-/issues/1852
Magnus Jacobsson [Tue, 20 Oct 2020 06:08:51 +0000 (08:08 +0200)]
Fix bcomps -? to actually print usage instead of error on macOS
Towards https://gitlab.com/graphviz/graphviz/-/issues/1852.
Magnus Jacobsson [Fri, 11 Sep 2020 06:50:27 +0000 (08:50 +0200)]
Restore whitespace and comment after earlier bad merge conflict resolution
Matthew Fernandez [Sat, 24 Oct 2020 02:36:07 +0000 (02:36 +0000)]
Merge branch 'smattr/
629f9eac -8e8a-486d-9695-
cc857dce075c ' into 'master'
some clean up
See merge request graphviz/graphviz!1620
Matthew Fernandez [Sat, 17 Oct 2020 22:08:24 +0000 (15:08 -0700)]
remove rtest.sh redirect
Nothing in the repository uses this any more.
Matthew Fernandez [Sat, 17 Oct 2020 22:04:36 +0000 (15:04 -0700)]
remove unnecessary 'global' statements in rtest
These variables were either unused in the contained function or only read from.
Matthew Fernandez [Sat, 17 Oct 2020 22:00:06 +0000 (15:00 -0700)]
fix some comparisons between booleans and ints in rtest
This all worked fine, but for consistency we should be treating these variables
as booleans everywhere.
Matthew Fernandez [Sat, 17 Oct 2020 21:41:26 +0000 (14:41 -0700)]
remove legacy comment
The variable this is referring to, LINECNT, was removed when this script was
ported to Python in
a1b9ffc0c37a435607ac8b1c123c8c542ef1cec9 .
Matthew Fernandez [Sat, 17 Oct 2020 21:37:33 +0000 (14:37 -0700)]
remove some unused variables in rtest
Matthew Fernandez [Sat, 17 Oct 2020 21:21:49 +0000 (14:21 -0700)]
squash a -Wabsolute-value warning
In
8414e62738bf7f52596eb83049ecef758582c760 I misread the surrounding code and
thought this was a float being operated on here.
Matthew Fernandez [Sat, 17 Oct 2020 21:18:12 +0000 (14:18 -0700)]
squash -Wcomment warning
Matthew Fernandez [Sat, 17 Oct 2020 21:13:01 +0000 (14:13 -0700)]
remove unused onexit() prototype
Matthew Fernandez [Sat, 17 Oct 2020 21:12:19 +0000 (14:12 -0700)]
remove unused _exit() prototype
Matthew Fernandez [Sat, 17 Oct 2020 20:58:21 +0000 (13:58 -0700)]
remove unused prototypes for frexp() and ldexp()
Matthew Fernandez [Sat, 17 Oct 2020 20:56:55 +0000 (13:56 -0700)]
remove unneeded X_OK shim
Nothing in Graphviz uses X_OK.
Matthew Fernandez [Sat, 17 Oct 2020 20:52:01 +0000 (13:52 -0700)]
remove POOLMTXRETURN()
Matthew Fernandez [Sat, 17 Oct 2020 20:40:04 +0000 (13:40 -0700)]
remove POOLMTXSTART() no-op
Matthew Fernandez [Sat, 17 Oct 2020 20:27:59 +0000 (13:27 -0700)]
remove POOLMTXUNLOCK() no-op
Matthew Fernandez [Sat, 17 Oct 2020 20:15:38 +0000 (13:15 -0700)]
remove POOLMTXLOCK() no-op
Matthew Fernandez [Sat, 17 Oct 2020 20:01:51 +0000 (13:01 -0700)]
remove SFMTXUNLOCK() no-op
Matthew Fernandez [Sat, 17 Oct 2020 19:41:41 +0000 (12:41 -0700)]
remove no-op SFMTXLOCK()
Matthew Fernandez [Sat, 17 Oct 2020 19:24:03 +0000 (12:24 -0700)]
remove useless extern declarations
These variables already have extern linkage.
Matthew Fernandez [Sat, 17 Oct 2020 03:00:47 +0000 (20:00 -0700)]
remove now unused vthread.h
Matthew Fernandez [Sat, 17 Oct 2020 02:43:02 +0000 (19:43 -0700)]
remove unused sf_mutex field from Sfextern_t
Matthew Fernandez [Sat, 17 Oct 2020 02:17:23 +0000 (19:17 -0700)]
remove unused mtx parameter to SFCLEAR() macro
Matthew Fernandez [Sat, 17 Oct 2020 02:15:59 +0000 (19:15 -0700)]
remove unused mutex field from SFIO structures
Matthew Fernandez [Sat, 17 Oct 2020 01:56:16 +0000 (18:56 -0700)]
remove unused Sfonce functionality
Matthew Fernandez [Sat, 17 Oct 2020 01:59:00 +0000 (18:59 -0700)]
remove SFONCE() no-op
Matthew Fernandez [Sat, 17 Oct 2020 01:41:22 +0000 (18:41 -0700)]
remove vmtx mutex no-ops
Matthew Fernandez [Sat, 17 Oct 2020 01:13:32 +0000 (18:13 -0700)]
remove unused SFIO vthread prototypes
Matthew Fernandez [Sat, 17 Oct 2020 00:42:16 +0000 (17:42 -0700)]
remove unused sftell()
Matthew Fernandez [Sat, 17 Oct 2020 00:28:25 +0000 (17:28 -0700)]
remove unused _sfstrtod()
Mark Hansen [Fri, 23 Oct 2020 11:03:44 +0000 (11:03 +0000)]
Merge branch 'orientation' into 'master'
Combine `orientation` attr for graphs and nodes
See merge request graphviz/graphviz!1640
Mark Hansen [Fri, 23 Oct 2020 11:02:01 +0000 (22:02 +1100)]
Combine `orientation` attr for graphs and nodes
This simplifies the generation quite a lot, gets rid of the duplicated
anchors for differently-named.
Removes a little confusion too, in my opinion.
It's not perfect: they have different datatypes.
Mark Hansen [Fri, 23 Oct 2020 10:45:23 +0000 (10:45 +0000)]
Merge branch 'stray-a' into 'master'
attrs.html: Close TT tag
See merge request graphviz/graphviz!1639
Mark Hansen [Fri, 23 Oct 2020 10:44:54 +0000 (21:44 +1100)]
attrs.html: Close TT tag
Mark Hansen [Fri, 23 Oct 2020 10:23:33 +0000 (10:23 +0000)]
Merge branch 'stray-a' into 'master'
attrs.html: Remove stray anchor close tag
See merge request graphviz/graphviz!1638
Mark Hansen [Fri, 23 Oct 2020 10:22:55 +0000 (21:22 +1100)]
attrs.html: Remove stray anchor close tag
Mark Hansen [Thu, 22 Oct 2020 10:17:05 +0000 (10:17 +0000)]
Merge branch 'ps' into 'master'
attrs.html: Rename 'kind' to 'types'.
See merge request graphviz/graphviz!1636
Mark Hansen [Thu, 22 Oct 2020 10:16:28 +0000 (21:16 +1100)]
attrs.html: Rename 'kind' to 'types'.
Matches the title of the table, and colloquial use.
Mark Hansen [Thu, 22 Oct 2020 10:12:29 +0000 (10:12 +0000)]
Merge branch 'ps' into 'master'
attrs.html: Rename attr.uses to used_by
See merge request graphviz/graphviz!1635
Mark Hansen [Thu, 22 Oct 2020 10:11:58 +0000 (21:11 +1100)]
attrs.html: Rename attr.uses to used_by
Matches table header.
Makes more sense when you're looking at an attribute definition
Mark Hansen [Thu, 22 Oct 2020 10:09:37 +0000 (10:09 +0000)]
Merge branch 'ps' into 'master'
Add consistent indentation to attrs.html
See merge request graphviz/graphviz!1634
Mark Hansen [Thu, 22 Oct 2020 10:06:53 +0000 (21:06 +1100)]
Add consistent indentation to attrs.html
No-op as far as appearance goes.
But makes looking at diffs much easier!
Mark Hansen [Thu, 22 Oct 2020 09:57:59 +0000 (09:57 +0000)]
Merge branch 'ps' into 'master'
attrs.html: don't special-case double/int/string
See merge request graphviz/graphviz!1633
Mark Hansen [Thu, 22 Oct 2020 09:57:29 +0000 (20:57 +1100)]
attrs.html: don't special-case double/int/string
Instead, add (very basic) type definitions for them.
This simplifies the template.
Mark Hansen [Thu, 22 Oct 2020 09:47:51 +0000 (09:47 +0000)]
Merge branch 'ps' into 'master'
attrs.html: Stop special-casing bitmap output
See merge request graphviz/graphviz!1632