]> granicus.if.org Git - graphviz/log
graphviz
4 years agoremove SFMTXUNLOCK() no-op
Matthew Fernandez [Sat, 17 Oct 2020 20:01:51 +0000 (13:01 -0700)]
remove SFMTXUNLOCK() no-op

4 years agoremove no-op SFMTXLOCK()
Matthew Fernandez [Sat, 17 Oct 2020 19:41:41 +0000 (12:41 -0700)]
remove no-op SFMTXLOCK()

4 years agoremove useless extern declarations
Matthew Fernandez [Sat, 17 Oct 2020 19:24:03 +0000 (12:24 -0700)]
remove useless extern declarations

These variables already have extern linkage.

4 years agoremove now unused vthread.h
Matthew Fernandez [Sat, 17 Oct 2020 03:00:47 +0000 (20:00 -0700)]
remove now unused vthread.h

4 years agoremove unused sf_mutex field from Sfextern_t
Matthew Fernandez [Sat, 17 Oct 2020 02:43:02 +0000 (19:43 -0700)]
remove unused sf_mutex field from Sfextern_t

4 years agoremove unused mtx parameter to SFCLEAR() macro
Matthew Fernandez [Sat, 17 Oct 2020 02:17:23 +0000 (19:17 -0700)]
remove unused mtx parameter to SFCLEAR() macro

4 years agoremove unused mutex field from SFIO structures
Matthew Fernandez [Sat, 17 Oct 2020 02:15:59 +0000 (19:15 -0700)]
remove unused mutex field from SFIO structures

4 years agoremove unused Sfonce functionality
Matthew Fernandez [Sat, 17 Oct 2020 01:56:16 +0000 (18:56 -0700)]
remove unused Sfonce functionality

4 years agoremove SFONCE() no-op
Matthew Fernandez [Sat, 17 Oct 2020 01:59:00 +0000 (18:59 -0700)]
remove SFONCE() no-op

4 years agoremove vmtx mutex no-ops
Matthew Fernandez [Sat, 17 Oct 2020 01:41:22 +0000 (18:41 -0700)]
remove vmtx mutex no-ops

4 years agoremove unused SFIO vthread prototypes
Matthew Fernandez [Sat, 17 Oct 2020 01:13:32 +0000 (18:13 -0700)]
remove unused SFIO vthread prototypes

4 years agoremove unused sftell()
Matthew Fernandez [Sat, 17 Oct 2020 00:42:16 +0000 (17:42 -0700)]
remove unused sftell()

4 years agoremove unused _sfstrtod()
Matthew Fernandez [Sat, 17 Oct 2020 00:28:25 +0000 (17:28 -0700)]
remove unused _sfstrtod()

4 years agoMerge branch 'orientation' into 'master'
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

4 years agoCombine `orientation` attr for graphs and nodes
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.

4 years agoMerge branch 'stray-a' into 'master'
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

4 years agoattrs.html: Close TT tag
Mark Hansen [Fri, 23 Oct 2020 10:44:54 +0000 (21:44 +1100)]
attrs.html: Close TT tag

4 years agoMerge branch 'stray-a' into 'master'
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

4 years agoattrs.html: Remove stray anchor close tag
Mark Hansen [Fri, 23 Oct 2020 10:22:55 +0000 (21:22 +1100)]
attrs.html: Remove stray anchor close tag

4 years agoMerge branch 'ps' into 'master'
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

4 years agoattrs.html: Rename 'kind' to 'types'.
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.

4 years agoMerge branch 'ps' into 'master'
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

4 years agoattrs.html: Rename attr.uses to used_by
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

4 years agoMerge branch 'ps' into 'master'
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

4 years agoAdd consistent indentation to attrs.html
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!

4 years agoMerge branch 'ps' into 'master'
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

4 years agoattrs.html: don't special-case double/int/string
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.

4 years agoMerge branch 'ps' into 'master'
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

4 years agoattrs.html: Stop special-casing bitmap output
Mark Hansen [Thu, 22 Oct 2020 09:47:34 +0000 (20:47 +1100)]
attrs.html: Stop special-casing bitmap output

No-op change.

4 years agoMerge branch 'ps' into 'master'
Mark Hansen [Thu, 22 Oct 2020 09:45:20 +0000 (09:45 +0000)]
Merge branch 'ps' into 'master'

attrs: Remove special-casing postscript template

See merge request graphviz/graphviz!1631

4 years agoattrs: Remove special-casing postscript template
Mark Hansen [Thu, 22 Oct 2020 09:44:21 +0000 (20:44 +1100)]
attrs: Remove special-casing postscript template

Just spell out postscript in the source

4 years agoMerge branch 'smattr/07caebcd-6088-4479-89d4-80d864a567fa' into 'master'
Matthew Fernandez [Thu, 22 Oct 2020 00:28:18 +0000 (00:28 +0000)]
Merge branch 'smattr/07caebcd-6088-4479-89d4-80d864a567fa' into 'master'

speed up Neato

See merge request graphviz/graphviz!1619

4 years agosquash a -Wfloat-conversion warning
Matthew Fernandez [Thu, 15 Oct 2020 03:06:22 +0000 (20:06 -0700)]
squash a -Wfloat-conversion warning

4 years agoinline and fuse a number of loops in majorization code
Matthew Fernandez [Thu, 15 Oct 2020 02:32:58 +0000 (19:32 -0700)]
inline and fuse a number of loops in majorization code

This accelerates the Neato example from #1652 by ~9.5%.

4 years agoinline some vector computations and fuse two loops
Matthew Fernandez [Thu, 15 Oct 2020 01:59:51 +0000 (18:59 -0700)]
inline some vector computations and fuse two loops

This slightly accelerates a current test case by ~0.1%. Related to #1652.

4 years agoMerge branch 'nslimit6' into 'master'
Mark Hansen [Wed, 21 Oct 2020 11:09:32 +0000 (11:09 +0000)]
Merge branch 'nslimit6' into 'master'

Remove no-op bool case

See merge request graphviz/graphviz!1628

4 years agoRemove no-op bool case
Mark Hansen [Wed, 21 Oct 2020 11:09:06 +0000 (22:09 +1100)]
Remove no-op bool case

It behaved the same as the 'else'

4 years agoMerge branch 'nslimit5' into 'master'
Mark Hansen [Wed, 21 Oct 2020 11:04:57 +0000 (11:04 +0000)]
Merge branch 'nslimit5' into 'master'

Replace TT with CODE element

See merge request graphviz/graphviz!1627

4 years agoReplace TT with CODE element
Mark Hansen [Wed, 21 Oct 2020 11:04:34 +0000 (22:04 +1100)]
Replace TT with CODE element

TT is deprecated

4 years agoMerge branch 'nslimit4' into 'master'
Mark Hansen [Wed, 21 Oct 2020 11:02:04 +0000 (11:02 +0000)]
Merge branch 'nslimit4' into 'master'

attrs.html: clean ID and NAMEs

See merge request graphviz/graphviz!1626

4 years agoattrs.html: clean ID and NAMEs
Mark Hansen [Wed, 21 Oct 2020 10:59:22 +0000 (21:59 +1100)]
attrs.html: clean ID and NAMEs

- Convert NAMEs to IDs, as recommended for non-form elements.
https://stackoverflow.com/a/7470325/171898
- Quote HREFs and IDs

4 years agoMerge branch 'nslimit3' into 'master'
Mark Hansen [Wed, 21 Oct 2020 10:55:07 +0000 (10:55 +0000)]
Merge branch 'nslimit3' into 'master'

Remove two-spacing from front of HTML continuation

See merge request graphviz/graphviz!1625

4 years agoMerge branch 'nslimit2' into 'master'
Mark Hansen [Wed, 21 Oct 2020 10:54:42 +0000 (10:54 +0000)]
Merge branch 'nslimit2' into 'master'

Simplify parsing, now all attributes have one name

Closes graphviz.gitlab.io#64

See merge request graphviz/graphviz!1623

4 years agoRemove two-spacing from front of HTML continuation
Mark Hansen [Wed, 21 Oct 2020 10:39:05 +0000 (21:39 +1100)]
Remove two-spacing from front of HTML continuation

No need for this, just adds complexity to the parser.

4 years agoMerge branch 'nslimie1' into 'master'
Mark Hansen [Wed, 21 Oct 2020 10:37:41 +0000 (10:37 +0000)]
Merge branch 'nslimie1' into 'master'

Split nslimit and nslimit1 attributes

See merge request graphviz/graphviz!1622

4 years agoSimplify parsing, now all attributes have one name
Mark Hansen [Wed, 21 Oct 2020 10:30:23 +0000 (21:30 +1100)]
Simplify parsing, now all attributes have one name

Closes #64

4 years agoSplit nslimit and nslimit1 attributes
Mark Hansen [Wed, 21 Oct 2020 10:16:29 +0000 (21:16 +1100)]
Split nslimit and nslimit1 attributes

They're the only attributes that don't already have their own sections,
they complicate parsing and emitting, and on balance I think they're
better explained separately (but next to each other).

Closes #64

4 years agoMerge branch '9ddbb9ea-f0a4-481d-9c40-b9709aa1680c' into HEAD
Matthew Fernandez [Tue, 20 Oct 2020 02:10:13 +0000 (19:10 -0700)]
Merge branch '9ddbb9ea-f0a4-481d-9c40-b9709aa1680c' into HEAD

4 years agosquash a -Wimplicit-fallthrough warning
Matthew Fernandez [Mon, 12 Oct 2020 00:37:29 +0000 (17:37 -0700)]
squash a -Wimplicit-fallthrough warning

GCC recognizes "fall through" and "fallthrough" comments to suppress this
warning but not "falling through."

4 years agoremove now-unnecessary use of volatile on some locals
Matthew Fernandez [Mon, 12 Oct 2020 00:33:54 +0000 (17:33 -0700)]
remove now-unnecessary use of volatile on some locals

Related to #1801.

4 years agoremove now-unused ljbuf
Matthew Fernandez [Mon, 12 Oct 2020 00:33:29 +0000 (17:33 -0700)]
remove now-unused ljbuf

Related to #1801.

4 years agoundo an unnecessary use of setjmp/longjmp
Matthew Fernandez [Mon, 12 Oct 2020 00:23:48 +0000 (17:23 -0700)]
undo an unnecessary use of setjmp/longjmp

This code actually correctly marks the variables that are affected by the
setjmp/longjmp as volatile, but there is still no need for this complexity. A
standard error code return does the trick much simpler. Related to #1801.

4 years agoMerge branch 'remove-fedora-29-and-30-jobs-from-ci' into 'master'
Magnus Jacobsson [Mon, 19 Oct 2020 17:16:09 +0000 (17:16 +0000)]
Merge branch 'remove-fedora-29-and-30-jobs-from-ci' into 'master'

Remove Fedora 29 and 30 jobs from CI

See merge request graphviz/graphviz!1617

4 years agoRemove EOL Fedora 30 Dockerfile
Magnus Jacobsson [Mon, 12 Oct 2020 20:45:40 +0000 (22:45 +0200)]
Remove EOL Fedora 30 Dockerfile

4 years agoRemove EOL Fedora 29 Dockerfile
Magnus Jacobsson [Mon, 12 Oct 2020 20:45:32 +0000 (22:45 +0200)]
Remove EOL Fedora 29 Dockerfile

4 years agoStop building & testing for EOL Fedora 30 in CI
Magnus Jacobsson [Mon, 12 Oct 2020 18:39:09 +0000 (20:39 +0200)]
Stop building & testing for EOL Fedora 30 in CI

4 years agoStop building & testing for EOL Fedora 29 in CI
Magnus Jacobsson [Mon, 12 Oct 2020 18:37:05 +0000 (20:37 +0200)]
Stop building & testing for EOL Fedora 29 in CI

4 years agoMerge branch '91908b3f-1fea-401e-a238-435c742d3589' into HEAD
Matthew Fernandez [Mon, 19 Oct 2020 15:32:22 +0000 (08:32 -0700)]
Merge branch '91908b3f-1fea-401e-a238-435c742d3589' into HEAD

4 years agofix Lefty's reliance on dup() internals smattr/91908b3f-1fea-401e-a238-435c742d3589
Matthew Fernandez [Sat, 10 Oct 2020 22:36:52 +0000 (15:36 -0700)]
fix Lefty's reliance on dup() internals

This addresses the following Coverity warnings:

  Error: RESOURCE_LEAK (CWE-772): [#def39]
  graphviz-2.40.1/cmd/lefty/os/unix/io.c:362: open_fn: Returning handle opened by "dup".
  graphviz-2.40.1/cmd/lefty/os/unix/io.c:362: leaked_handle: Failing to save or close handle opened by "dup(fd[1])" leaks it.
  #  360|           panic2 (POS, "ptyopen", "cannot fork");
  #  361|       case 0:
  #  362|->         close (fd[0]), close (0), dup (fd[1]);
  #  363|           close (1), dup (fd[1]), close (fd[1]);
  #  364|           execl (shell, shbname, "-c", cmd, NULL);

  Error: RESOURCE_LEAK (CWE-772): [#def40]
  graphviz-2.40.1/cmd/lefty/os/unix/io.c:363: open_fn: Returning handle opened by "dup".
  graphviz-2.40.1/cmd/lefty/os/unix/io.c:363: leaked_handle: Failing to save or close handle opened by "dup(fd[1])" leaks it.
  #  361|       case 0:
  #  362|           close (fd[0]), close (0), dup (fd[1]);
  #  363|->         close (1), dup (fd[1]), close (fd[1]);
  #  364|           execl (shell, shbname, "-c", cmd, NULL);
  #  365|           panic2 (POS, "ptyopen", "child cannot exec: %s\n", cmd);

  Error: RESOURCE_LEAK (CWE-772): [#def41]
  graphviz-2.40.1/cmd/lefty/os/unix/io.c:429: open_fn: Returning handle opened by "dup".
  graphviz-2.40.1/cmd/lefty/os/unix/io.c:429: leaked_handle: Failing to save or close handle opened by "dup(p1[1])" leaks it.
  #  427|                   panic2 (POS, "pipeopen", "child cannot exec: %s\n", cmd2);
  #  428|               }
  #  429|->         close (1), dup (p1[1]), close (p1[1]);
  #  430|           close (0), dup (p2[0]), close (p2[0]);
  #  431|           execl (shell, shbname, "-c", cmd, NULL);

  Error: RESOURCE_LEAK (CWE-772): [#def42]
  graphviz-2.40.1/cmd/lefty/os/unix/io.c:430: open_fn: Returning handle opened by "dup".
  graphviz-2.40.1/cmd/lefty/os/unix/io.c:430: leaked_handle: Failing to save or close handle opened by "dup(p2[0])" leaks it.
  #  428|               }
  #  429|           close (1), dup (p1[1]), close (p1[1]);
  #  430|->         close (0), dup (p2[0]), close (p2[0]);
  #  431|           execl (shell, shbname, "-c", cmd, NULL);
  #  432|           panic2 (POS, "pipeopen", "child cannot exec: %s\n", cmd);

Fixes #1823. Related to #1464.

4 years agoMerge branch 'master' into 'master'
Matthew Fernandez [Fri, 16 Oct 2020 14:39:33 +0000 (14:39 +0000)]
Merge branch 'master' into 'master'

Since the string from strerror should never be modified, use const.

See merge request graphviz/graphviz!1618

4 years agoMerge branch 'b2f0e4be-93c5-4d03-9a33-16c7f45988a8' into HEAD
Matthew Fernandez [Fri, 16 Oct 2020 03:24:53 +0000 (20:24 -0700)]
Merge branch 'b2f0e4be-93c5-4d03-9a33-16c7f45988a8' into HEAD

4 years agoremove unused sfsize()
Matthew Fernandez [Sat, 10 Oct 2020 00:33:42 +0000 (17:33 -0700)]
remove unused sfsize()

4 years agoremove unused sfset()
Matthew Fernandez [Sat, 10 Oct 2020 00:29:14 +0000 (17:29 -0700)]
remove unused sfset()

4 years agoremove unused SFSEEK() macro
Matthew Fernandez [Sat, 10 Oct 2020 00:24:56 +0000 (17:24 -0700)]
remove unused SFSEEK() macro

4 years agoremove unused sfpurge()
Matthew Fernandez [Sat, 10 Oct 2020 00:23:21 +0000 (17:23 -0700)]
remove unused sfpurge()

4 years agoremove unused sfprints()
Matthew Fernandez [Sat, 10 Oct 2020 00:19:03 +0000 (17:19 -0700)]
remove unused sfprints()

4 years agoremove unused sfpool()
Matthew Fernandez [Sat, 10 Oct 2020 00:14:39 +0000 (17:14 -0700)]
remove unused sfpool()

4 years agoremove unused sfpoll()
Matthew Fernandez [Sat, 10 Oct 2020 00:10:36 +0000 (17:10 -0700)]
remove unused sfpoll()

4 years agoremove unused sfnotify()
Matthew Fernandez [Sat, 10 Oct 2020 00:03:14 +0000 (17:03 -0700)]
remove unused sfnotify()

4 years agoremove SFIO references to missing directories
Matthew Fernandez [Sat, 10 Oct 2020 00:02:30 +0000 (17:02 -0700)]
remove SFIO references to missing directories

The only one of these that ever existed in the source tree, Sfio_dc, was removed
in 3cc75428f78e4b66554d3a266939ad3e6113a1f4.

4 years agoMerge branch 'add-centos7-and-fedora31-cmake-build-and-test-jobs-to-ci' into 'master'
Magnus Jacobsson [Thu, 15 Oct 2020 16:29:34 +0000 (16:29 +0000)]
Merge branch 'add-centos7-and-fedora31-cmake-build-and-test-jobs-to-ci' into 'master'

Add Centos 7 and Fedora 31 CMake build and test jobs to CI

See merge request graphviz/graphviz!1616

4 years agoAdd centos7-cmake-test job to CI
Magnus Jacobsson [Mon, 5 Oct 2020 08:01:01 +0000 (10:01 +0200)]
Add centos7-cmake-test job to CI

4 years agoAdd centos7-cmake-build job to CI
Magnus Jacobsson [Mon, 5 Oct 2020 07:59:38 +0000 (09:59 +0200)]
Add centos7-cmake-build job to CI

4 years agoAdd fedora31-cmake-test job to CI
Magnus Jacobsson [Sun, 4 Oct 2020 09:45:29 +0000 (11:45 +0200)]
Add fedora31-cmake-test job to CI

4 years agoAdd fedora31-cmake-build job to CI
Magnus Jacobsson [Sun, 4 Oct 2020 09:42:27 +0000 (11:42 +0200)]
Add fedora31-cmake-build job to CI

4 years agoMove ubuntu18-04-cmake-test later in .gitlab-ci.yml
Magnus Jacobsson [Mon, 5 Oct 2020 07:50:53 +0000 (09:50 +0200)]
Move ubuntu18-04-cmake-test later in .gitlab-ci.yml

The Linux CMake build jobs are kept together after all the autotools
jobs and the test jobs should follow the same principle.

4 years agoAdd install of RPM package from Centos and Fedora CMake builds
Magnus Jacobsson [Tue, 6 Oct 2020 16:38:34 +0000 (18:38 +0200)]
Add install of RPM package from Centos and Fedora CMake builds

4 years agoAdd generation of an RPM package from Centos and Fedora CMake builds
Magnus Jacobsson [Tue, 6 Oct 2020 05:50:02 +0000 (07:50 +0200)]
Add generation of an RPM package from Centos and Fedora CMake builds

4 years agoInstall git version 2 instead of version 1 in Centos 7 Docker image
Magnus Jacobsson [Mon, 12 Oct 2020 15:34:29 +0000 (17:34 +0200)]
Install git version 2 instead of version 1 in Centos 7 Docker image

The option --date=format-local:... used in gen_version.py is not
supported in git version 1.

4 years agoInstall CMake 3 instead of CMake 2 in Centos 7 Docker image
Magnus Jacobsson [Mon, 12 Oct 2020 08:37:07 +0000 (10:37 +0200)]
Install CMake 3 instead of CMake 2 in Centos 7 Docker image

Some constructs used in the CMake builds are not supported in CMake 2, e.g. the $<TARGET_OBJECTS:common_obj> generator expression.

See also:

* https://centos.pkgs.org/7/epel-x86_64/cmake3-3.17.3-3.el7.x86_64.rpm.html#howto
* https://stackoverflow.com/questions/48831131/cmake-on-linux-centos-7-how-to-force-the-system-to-use-cmake3

4 years agoAdd changelog notes for CMake dependency bump
Magnus Jacobsson [Thu, 15 Oct 2020 15:01:38 +0000 (17:01 +0200)]
Add changelog notes for CMake dependency bump

4 years agoChange minimum required CMake version to 3.1
Magnus Jacobsson [Wed, 14 Oct 2020 05:19:17 +0000 (07:19 +0200)]
Change minimum required CMake version to 3.1

The $<TARGET_OBJECTS:objLib> generator expression was introduced in
CMake version 3.1.

4 years agoMerge branch '0f71798c-c756-4c99-8ef0-c88e42201de0' into HEAD
Matthew Fernandez [Thu, 15 Oct 2020 02:49:12 +0000 (19:49 -0700)]
Merge branch '0f71798c-c756-4c99-8ef0-c88e42201de0' into HEAD

4 years agoadd a test case for sequential PS graphs
Matthew Fernandez [Fri, 9 Oct 2020 01:12:26 +0000 (18:12 -0700)]
add a test case for sequential PS graphs

Related to #1845.

4 years agoadd changelog entry for #1845
Matthew Fernandez [Fri, 9 Oct 2020 01:14:40 +0000 (18:14 -0700)]
add changelog entry for #1845

4 years agoMerge branch '9efca080-662e-4990-a1ff-40ebd0fd1530' into HEAD
Matthew Fernandez [Thu, 15 Oct 2020 00:28:12 +0000 (17:28 -0700)]
Merge branch '9efca080-662e-4990-a1ff-40ebd0fd1530' into HEAD

4 years agoremove unnecessary destructor
Matthew Fernandez [Wed, 7 Oct 2020 03:04:06 +0000 (20:04 -0700)]
remove unnecessary destructor

The compiler-provided default destructor is identical to this, except that the
compiler-provided one can also be inlined.

4 years agoremove user configuration files in the Visio plugin
Matthew Fernandez [Wed, 7 Oct 2020 02:59:05 +0000 (19:59 -0700)]
remove user configuration files in the Visio plugin

These are Visual Studio configuration files for local machine setup. They are
not intended to be committed to version control.

4 years agoSince the string from strerror should never be modified, use const.
Philipp Klaus Krause [Wed, 14 Oct 2020 08:04:10 +0000 (10:04 +0200)]
Since the string from strerror should never be modified, use const.

4 years agotake an early exit when gvprintdouble-ing a "0"
Matthew Fernandez [Tue, 6 Oct 2020 01:14:31 +0000 (18:14 -0700)]
take an early exit when gvprintdouble-ing a "0"

In large graphs, the value being printed is frequently zero and the snprintf in
this function shows up as a minor hotspot. Profiling with
tests/regression_tests/large/long_chain this drops the total snprintf calls
within gvprintdouble from 924019 to 858017. This lowers the contributing runtime
of gvprintdouble to overall execution from 28.89% to 28.12%.

4 years agoMerge branch 'B494AFA0-22B1-4119-A751-D39B7E9BEE9D' into 'master'
Matthew Fernandez [Sat, 10 Oct 2020 22:40:02 +0000 (22:40 +0000)]
Merge branch 'B494AFA0-22B1-4119-A751-D39B7E9BEE9D' into 'master'

clean up some unused things

See merge request graphviz/graphviz!1603

4 years agoremove commented out cleanup1 function
Matthew Fernandez [Sun, 4 Oct 2020 19:20:22 +0000 (12:20 -0700)]
remove commented out cleanup1 function

4 years agoremove deprecated AppVeyor config
Matthew Fernandez [Sun, 4 Oct 2020 19:19:26 +0000 (12:19 -0700)]
remove deprecated AppVeyor config

Windows CI now runs on Gitlab.

4 years agoremove commented out legacy CI jobs
Matthew Fernandez [Sun, 4 Oct 2020 19:19:09 +0000 (12:19 -0700)]
remove commented out legacy CI jobs

4 years agoMerge branch 'b3d77ab1-ae13-4658-abf2-1dc937774152' into 'master'
Matthew Fernandez [Sat, 10 Oct 2020 22:20:01 +0000 (22:20 +0000)]
Merge branch 'b3d77ab1-ae13-4658-abf2-1dc937774152' into 'master'

remove long lived static global allocation

See merge request graphviz/graphviz!1604

4 years agoremove now unused AF global
Matthew Fernandez [Sun, 4 Oct 2020 21:04:10 +0000 (14:04 -0700)]
remove now unused AF global

4 years agouse a local instead of reusing global AF in gvrender_polyline
Matthew Fernandez [Sun, 4 Oct 2020 21:00:14 +0000 (14:00 -0700)]
use a local instead of reusing global AF in gvrender_polyline

There is a static global, AF, that is reused for a number of gvrender functions,
but none need to retain previous data stored in this array. This hack presumably
was from a time when allocators were much slower. Refactoring this into a local
allocation makes this function thread safe and removes the need to unnecessarily
prolong the lifetime of this allocation, thus decreasing Graphviz memory usage.
This commit introduces a -Wshadow warning about AF, but that will be removed
when we soon remove the static global.

4 years agouse a local instead of reusing global AF in gvrender_beziercurve
Matthew Fernandez [Sun, 4 Oct 2020 20:47:27 +0000 (13:47 -0700)]
use a local instead of reusing global AF in gvrender_beziercurve

There is a static global, AF, that is reused for a number of gvrender functions,
but none need to retain previous data stored in this array. This hack presumably
was from a time when allocators were much slower. Refactoring this into a local
allocation makes this function thread safe and removes the need to unnecessarily
prolong the lifetime of this allocation, thus decreasing Graphviz memory usage.
This commit introduces a -Wshadow warning about AF, but that will be removed
when we soon remove the static global.

4 years agouse a local allocation instead of global hack in gvrender_polygon
Matthew Fernandez [Sun, 4 Oct 2020 20:24:07 +0000 (13:24 -0700)]
use a local allocation instead of global hack in gvrender_polygon

There is a static global, AF, that is reused for a number of gvrender functions,
but none need to retain previous data stored in this array. This hack presumably
was from a time when allocators were much slower. Refactoring this into a local
allocation makes this function thread safe and removes the need to unnecessarily
prolong the lifetime of this allocation, thus decreasing Graphviz memory usage.
This commit introduces a -Wshadow warning about AF, but that will be removed
when we soon remove the static global.

4 years agoremove commented out code in dia plugin
Matthew Fernandez [Sun, 4 Oct 2020 19:57:06 +0000 (12:57 -0700)]
remove commented out code in dia plugin