]> granicus.if.org Git - graphviz/log
graphviz
4 years agofix: remove unused format arguments in rtest
Matthew Fernandez [Sat, 24 Oct 2020 18:58:12 +0000 (11:58 -0700)]
fix: remove unused format arguments in rtest

This was detected by `python3 -m pylint --errors-only rtest/rtest.py`.

4 years agoMerge branch 'smattr/81334456-1889-4c1c-b6ee-3e83aa779c2f' into 'master'
Matthew Fernandez [Sat, 31 Oct 2020 02:09:33 +0000 (02:09 +0000)]
Merge branch 'smattr/81334456-1889-4c1c-b6ee-3e83aa779c2f' into 'master'

fix macOS CMake build warnings

See merge request graphviz/graphviz!1644

4 years agofix printf format code in agnameof()
Matthew Fernandez [Sat, 24 Oct 2020 17:28:38 +0000 (10:28 -0700)]
fix printf format code in agnameof()

This fixes a build warning on macOS when using CMake. Related to !1620.

4 years agouse safer snprintf in agnameof()
Matthew Fernandez [Sat, 24 Oct 2020 17:24:34 +0000 (10:24 -0700)]
use safer snprintf in agnameof()

4 years agoreduce the scope of a buffer in agnameof()
Matthew Fernandez [Sat, 24 Oct 2020 17:24:11 +0000 (10:24 -0700)]
reduce the scope of a buffer in agnameof()

4 years agofix printf format code in write_nodename()
Matthew Fernandez [Sat, 24 Oct 2020 17:22:35 +0000 (10:22 -0700)]
fix printf format code in write_nodename()

This fixes a build warning on macOS when using CMake. Related to !1620.

4 years agouse safer snprintf in write_nodename()
Matthew Fernandez [Sat, 24 Oct 2020 17:13:39 +0000 (10:13 -0700)]
use safer snprintf in write_nodename()

4 years agoreduce the scope of buffer in write_nodename()
Matthew Fernandez [Sat, 24 Oct 2020 17:13:04 +0000 (10:13 -0700)]
reduce the scope of buffer in write_nodename()

4 years agofix buffer overflow in write_nodename()
Matthew Fernandez [Sat, 24 Oct 2020 17:11:36 +0000 (10:11 -0700)]
fix buffer overflow in write_nodename()

This buffer was not large enough to print the string and uint64_t that gets
written into it. Related to !1620.

4 years agofix missing bracketing in a macro expansion
Matthew Fernandez [Sat, 24 Oct 2020 16:53:57 +0000 (09:53 -0700)]
fix missing bracketing in a macro expansion

None of the calls to this macro were passing in multiple tokens, so this issue
was latent. This refactor is for the safety of any future introduced calls to
EMPTY().

4 years agofix handling of varargs in gvprintf
Matthew Fernandez [Sat, 24 Oct 2020 16:43:24 +0000 (09:43 -0700)]
fix handling of varargs in gvprintf

It is not safe to re-va_start a va_list the way this code was previously
operating. This probably worked by coincidence on platforms like x86-64.

4 years agoswitch to safer snprintf in portName()
Matthew Fernandez [Sat, 24 Oct 2020 16:49:36 +0000 (09:49 -0700)]
switch to safer snprintf in portName()

4 years agofix print of an AGSEQ
Matthew Fernandez [Sat, 24 Oct 2020 16:24:33 +0000 (09:24 -0700)]
fix print of an AGSEQ

This squashes a build warning on macOS when using CMake. Related to !1620.

4 years agofix a buffer overflow in string construction
Matthew Fernandez [Sat, 24 Oct 2020 16:17:54 +0000 (09:17 -0700)]
fix a buffer overflow in string construction

The conditional in this code was the wrong way around. So the %s branch could be
taken only when the resulting sprintf would *definitely* overflow the target
buffer. From this we can conclude this branch was never safe and never used
correctly. For simplicity, we remove it, leaving only the %d option. Related to
!1620.

4 years agoMerge branch 'smattr/029D9712-951E-4082-B254-9B0BB83BC384' into 'master'
Matthew Fernandez [Sat, 31 Oct 2020 00:21:17 +0000 (00:21 +0000)]
Merge branch 'smattr/029D9712-951E-4082-B254-9B0BB83BC384' into 'master'

remove a use of setjmp/longjmp

See merge request graphviz/graphviz!1645

4 years agoremove a now unused jmp_buf
Matthew Fernandez [Sat, 24 Oct 2020 18:51:27 +0000 (11:51 -0700)]
remove a now unused jmp_buf

Related to #1801.

4 years agoindicate failure in growops() by return value instead of longjmp()
Matthew Fernandez [Sat, 24 Oct 2020 18:50:47 +0000 (11:50 -0700)]
indicate failure in growops() by return value instead of longjmp()

Related to #1801.

4 years agoindicate failure from growtris() by return value instead of longjmp()
Matthew Fernandez [Sat, 24 Oct 2020 18:44:39 +0000 (11:44 -0700)]
indicate failure from growtris() by return value instead of longjmp()

Related to #1801.

4 years agoadd a return value to loadtriangle()
Matthew Fernandez [Sat, 24 Oct 2020 18:39:19 +0000 (11:39 -0700)]
add a return value to loadtriangle()

Related to #1801.

4 years agoadd a return value to triangulate()
Matthew Fernandez [Sat, 24 Oct 2020 18:33:34 +0000 (11:33 -0700)]
add a return value to triangulate()

Related to #1801.

4 years agoremove unnecessary use of longjmp() in growdq()
Matthew Fernandez [Sat, 24 Oct 2020 18:23:56 +0000 (11:23 -0700)]
remove unnecessary use of longjmp() in growdq()

Related to #1801.

4 years agoremove an unnecessary use of longjmp() in growpnls()
Matthew Fernandez [Sat, 24 Oct 2020 18:17:54 +0000 (11:17 -0700)]
remove an unnecessary use of longjmp() in growpnls()

Related to #1801.

4 years agoMerge branch 'smattr/4b7c9c53-bdf9-48ef-8fa6-7c06fc5720b4' into 'master'
Matthew Fernandez [Fri, 30 Oct 2020 14:08:00 +0000 (14:08 +0000)]
Merge branch 'smattr/4b7c9c53-bdf9-48ef-8fa6-7c06fc5720b4' into 'master'

stop shipping strcasecmp.h

See merge request graphviz/graphviz!1642

4 years agostop shipping strcasecmp.h
Matthew Fernandez [Sat, 24 Oct 2020 03:02:07 +0000 (20:02 -0700)]
stop shipping strcasecmp.h

The header strcasecmp.h is a portability shim that was introduced in
cadb72d6157603338a990be4e27a599c7b96b214. However, no installed Graphviz headers
#include this header, so we do not need to install it. It is cleaner not to
clutter the shipped Graphviz include directory with an internal shim like this.

Note that there is no changelog entry for this change and this is not an API
break because there has not yet been a release since this header was added.

4 years agoMerge branch 'orientation' into 'master'
Mark Hansen [Thu, 29 Oct 2020 10:01:43 +0000 (10:01 +0000)]
Merge branch 'orientation' into 'master'

Delete attrs.html from main graphviz repo

Closes graphviz.gitlab.io#65

See merge request graphviz/graphviz!1641

4 years agoDelete attrs.html from main graphviz repo
Mark Hansen [Thu, 29 Oct 2020 09:32:45 +0000 (20:32 +1100)]
Delete attrs.html from main graphviz repo

This now canonically lives in the graphviz.gitlab.io repo (the docs repo):

https://gitlab.com/graphviz/graphviz.gitlab.io/-/blob/master/doc/info/attrs.html

This gives one central source of truth for the docs, so that people
updating the docs don't have to update 3 locations (doc/info,
doc/infosrc, and the docs repo).

It's perhaps a little controversial to redirect the old docs. The old
docs are still built into some OS's HTML docs packages, but I imagine
the vast majority of users access docs through the graphviz website
after using a search engine to find them.

Fixes https://gitlab.com/graphviz/graphviz.gitlab.io/-/issues/65

4 years agoMerge branch 'smattr/f037c2f4-a5af-4f90-a41d-412fb74c4296' into 'master'
Matthew Fernandez [Thu, 29 Oct 2020 01:19:47 +0000 (01:19 +0000)]
Merge branch 'smattr/f037c2f4-a5af-4f90-a41d-412fb74c4296' into 'master'

add CI testing of HTML files in the repository

See merge request graphviz/graphviz!1637

4 years agorun pytest with --verbose in CI
Matthew Fernandez [Fri, 23 Oct 2020 00:02:57 +0000 (17:02 -0700)]
run pytest with --verbose in CI

This makes it a little easier to see from the logs which tests were skipped and
to validate that the tests you think are being found are actually running.

4 years agoadd test cases for validating in-repo HTML files
Matthew Fernandez [Fri, 23 Oct 2020 00:00:37 +0000 (17:00 -0700)]
add test cases for validating in-repo HTML files

Related to #1861.

4 years agoMerge branch 'smattr/38BA03F9-7DC4-4E4F-8B4C-51C3F360855D' into 'master'
Matthew Fernandez [Thu, 29 Oct 2020 00:49:13 +0000 (00:49 +0000)]
Merge branch 'smattr/38BA03F9-7DC4-4E4F-8B4C-51C3F360855D' into 'master'

remove unnecessary casts and fix a memory leak

See merge request graphviz/graphviz!1630

4 years agoremove unnecessary casts from parameters to memcpy
Matthew Fernandez [Thu, 22 Oct 2020 00:05:05 +0000 (17:05 -0700)]
remove unnecessary casts from parameters to memcpy

These implicitly coerce to void* so a cast is not required.

4 years agorephrase some swapping code
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.

4 years agoremove unnecessary casts on arguments to free()
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.

4 years agoremove unnecessary guards on calls to free()
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.

4 years agofix memory leak in gvplugin_list
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.

4 years agoremove some unnecessary casts of arguments to realloc()
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.

4 years agoremove unnecessary casts of realloc() return value
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

4 years agoremove unnecessary casts of calloc() return value
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.

4 years agoremove unnecessary casts of malloc() return value
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.

4 years agoMerge branch 'add-some-missing-tools-to-macos-autotools-build' into 'master'
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

4 years agoEnable dotty, lefty, lneato and vimdot to be built on macOS.
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

4 years agoMove common commands from macOS jobs to macos_build_definition
Magnus Jacobsson [Mon, 26 Oct 2020 09:49:21 +0000 (10:49 +0100)]
Move common commands from macOS jobs to macos_build_definition

4 years agoMerge branch 'smattr/6f54cfb5-5fb4-42a0-aba0-41e155372757' into 'master'
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

4 years agoMerge branch 'smattr/BDA848A6-E53C-4722-BDF7-B82677681621' into 'master'
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

4 years agoremove fine grained test skip logic and now depend on tool existence
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.

4 years agoadd others to the CI tool check that do not need fine grained exceptions
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.

4 years agoadd exemption list for Autotools macOS build in CI tool check
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.

4 years agoadd MSBuild exemption list to CI tool check
Matthew Fernandez [Sun, 25 Oct 2020 03:11:33 +0000 (20:11 -0700)]
add MSBuild exemption list to CI tool check

Related to #1851.

4 years agoadd CMake exemptions to CI tool check
Matthew Fernandez [Sun, 25 Oct 2020 03:10:09 +0000 (20:10 -0700)]
add CMake exemptions to CI tool check

Related to #1851.

4 years agoextend CI tool check to dot_builtins
Matthew Fernandez [Sun, 25 Oct 2020 03:08:16 +0000 (20:08 -0700)]
extend CI tool check to dot_builtins

Related to #1851.

4 years agoextend CI tool check to Mingle
Matthew Fernandez [Sun, 25 Oct 2020 03:06:46 +0000 (20:06 -0700)]
extend CI tool check to Mingle

Related to #1851.

4 years agocheck that Smyrna exists in CI
Matthew Fernandez [Sun, 25 Oct 2020 03:04:58 +0000 (20:04 -0700)]
check that Smyrna exists in CI

Related to #1851.

4 years agomove some pytest skip logic into a decorator
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.

4 years agoadjust installation test to work even if GV_VERSION is unset
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.

4 years agomake gen_version run correctly regardless of CWD
Matthew Fernandez [Sun, 25 Oct 2020 18:20:32 +0000 (11:20 -0700)]
make gen_version run correctly regardless of CWD

4 years agoadd a home for test cases that are only relevant to run in CI
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.

4 years agoMerge branch 'ensure-all-existing-tools-are-tested' into 'master'
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

4 years agoAdd check that expected missing tool doesn't exist to tools test
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

4 years agoAdd removal of old graphviz version before install on RPM systems
Magnus Jacobsson [Wed, 21 Oct 2020 15:05:12 +0000 (17:05 +0200)]
Add removal of old graphviz version before install on RPM systems

4 years agoMerge branch '4AF62F39-396B-483C-A035-F1C7A0E5D039' into 'master'
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

4 years agoAdd removal of old graphviz version before install on macOS
Magnus Jacobsson [Thu, 22 Oct 2020 13:32:16 +0000 (15:32 +0200)]
Add removal of old graphviz version before install on macOS

4 years agoRemove gc from tools_not_built_with_cmake list in tools test
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.

4 years agoEnsure that Graphviz tools are found first in Windows CMake jobs
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.

4 years agoMerge branch 'add-macos-test-jobs-to-gitlab-ci' into 'master'
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

4 years agoAdd macos-cmake-test job to CI
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.

4 years agoAdd macos-autotools-test job to CI
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.

4 years agoAdd skip of test_1818 also for macOS
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.

4 years agoAdd skip of test_1813 also for macOS
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.

4 years agoAdd skip of all tools not built for macOS in CI using autotools in tools test
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

4 years agoAdd subset of macOS rtest reference files
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.

4 years agoAdd brew install pango to macos build jobs
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.

4 years agoAdd support for macOS to ci/install.sh
Magnus Jacobsson [Tue, 20 Oct 2020 13:51:12 +0000 (15:51 +0200)]
Add support for macOS to ci/install.sh

4 years agoRefactor ci/install.sh to check for build system before OS
Magnus Jacobsson [Tue, 20 Oct 2020 13:42:18 +0000 (15:42 +0200)]
Refactor ci/install.sh to check for build system before OS

4 years agoFix tred -? to actually print usage instead of error on macOS
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.

4 years agoFix sccmap -? to actually print usage instead of error on macOS
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.

4 years agoFix nop -? to actually print usage instead of error on macOS
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.

4 years agoFix mm2gv -? to actually print usage instead of error on macOS
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.

4 years agoFix gvpack -? to actually print usage instead of error on macOS
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.

4 years agoFix gvcolor -? to actually print usage instead of error on macOS
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.

4 years agoFix gc -? to actually print usage instead of error on macOS
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.

4 years agoFix dijkstra -? to actually print usage instead of error on macOS
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.

4 years agoFix gvmap -? to actually print usage instead of error on macOS
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.

4 years agoFix cluster -? to actually print usage instead of error on macOS
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.

4 years agoFix edgepaint -? to actually print usage instead of error on macOS
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.

4 years agoFix ccomps -? to actually print usage instead of error on macOS
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

4 years agoFix bcomps -? to actually print usage instead of error on macOS
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.

4 years agoRestore whitespace and comment after earlier bad merge conflict resolution
Magnus Jacobsson [Fri, 11 Sep 2020 06:50:27 +0000 (08:50 +0200)]
Restore whitespace and comment after earlier bad merge conflict resolution

4 years agoMerge branch 'smattr/629f9eac-8e8a-486d-9695-cc857dce075c' into 'master'
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

4 years agoremove rtest.sh redirect
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.

4 years agoremove unnecessary 'global' statements in rtest
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.

4 years agofix some comparisons between booleans and ints in rtest
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.

4 years agoremove legacy comment
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.

4 years agoremove some unused variables in rtest
Matthew Fernandez [Sat, 17 Oct 2020 21:37:33 +0000 (14:37 -0700)]
remove some unused variables in rtest

4 years agosquash a -Wabsolute-value warning
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.

4 years agosquash -Wcomment warning
Matthew Fernandez [Sat, 17 Oct 2020 21:18:12 +0000 (14:18 -0700)]
squash -Wcomment warning

4 years agoremove unused onexit() prototype
Matthew Fernandez [Sat, 17 Oct 2020 21:13:01 +0000 (14:13 -0700)]
remove unused onexit() prototype

4 years agoremove unused _exit() prototype
Matthew Fernandez [Sat, 17 Oct 2020 21:12:19 +0000 (14:12 -0700)]
remove unused _exit() prototype

4 years agoremove unused prototypes for frexp() and ldexp()
Matthew Fernandez [Sat, 17 Oct 2020 20:58:21 +0000 (13:58 -0700)]
remove unused prototypes for frexp() and ldexp()

4 years agoremove unneeded X_OK shim
Matthew Fernandez [Sat, 17 Oct 2020 20:56:55 +0000 (13:56 -0700)]
remove unneeded X_OK shim

Nothing in Graphviz uses X_OK.

4 years agoremove POOLMTXRETURN()
Matthew Fernandez [Sat, 17 Oct 2020 20:52:01 +0000 (13:52 -0700)]
remove POOLMTXRETURN()