]> granicus.if.org Git - graphviz/log
graphviz
3 years agodelete commented out code
Matthew Fernandez [Sat, 3 Apr 2021 02:00:27 +0000 (19:00 -0700)]
delete commented out code

3 years agoremove useless code
Matthew Fernandez [Sat, 3 Apr 2021 01:56:33 +0000 (18:56 -0700)]
remove useless code

This was added in the initial commit of VPSC,
03c20a55c921ac07599be2ae19ae34209ec0d02e. The comment was incorrect. This does
*not* limit iteration because the variable type is unsigned. That is, it is
always >= 0. This was caught by enabling CXXFLAGS+=-Wtype-limits.

3 years agosquash a -Wparentheses warning
Matthew Fernandez [Sat, 3 Apr 2021 01:54:18 +0000 (18:54 -0700)]
squash a -Wparentheses warning

3 years agosquash a -Wmisleading-indentation warning
Matthew Fernandez [Sat, 3 Apr 2021 01:52:29 +0000 (18:52 -0700)]
squash a -Wmisleading-indentation warning

3 years agoMerge branch 'smattr/1F78CB9B-13C5-4885-BAFA-8CB840D952FB' into 'main'
Matthew Fernandez [Sat, 10 Apr 2021 20:30:24 +0000 (20:30 +0000)]
Merge branch 'smattr/1F78CB9B-13C5-4885-BAFA-8CB840D952FB' into 'main'

general clean up

See merge request graphviz/graphviz!1886

3 years agopush a definition closer to its use
Matthew Fernandez [Sun, 4 Apr 2021 04:30:33 +0000 (21:30 -0700)]
push a definition closer to its use

3 years agoremove unused Info variable
Matthew Fernandez [Sun, 4 Apr 2021 04:17:29 +0000 (21:17 -0700)]
remove unused Info variable

3 years agoremove unused SFIO Version
Matthew Fernandez [Sun, 4 Apr 2021 02:42:41 +0000 (19:42 -0700)]
remove unused SFIO Version

3 years agoabbreviate some arithmetic
Matthew Fernandez [Sun, 4 Apr 2021 02:40:03 +0000 (19:40 -0700)]
abbreviate some arithmetic

3 years agoremove some unnecessary bracketing
Matthew Fernandez [Sun, 4 Apr 2021 02:39:51 +0000 (19:39 -0700)]
remove some unnecessary bracketing

3 years agoremove some unnecessary casts
Matthew Fernandez [Sun, 4 Apr 2021 02:22:21 +0000 (19:22 -0700)]
remove some unnecessary casts

These pointers coerce implicitly.

3 years agoremove some commented out code
Matthew Fernandez [Sun, 4 Apr 2021 02:14:56 +0000 (19:14 -0700)]
remove some commented out code

3 years agomark Origin as static const
Matthew Fernandez [Sun, 4 Apr 2021 02:10:28 +0000 (19:10 -0700)]
mark Origin as static const

This variable is not modified or used outside this file.

3 years agoMerge branch 'smattr/30a4bc3c-4d5a-4130-8a78-60712ab9805e' into 'main'
Matthew Fernandez [Sat, 10 Apr 2021 03:00:53 +0000 (03:00 +0000)]
Merge branch 'smattr/30a4bc3c-4d5a-4130-8a78-60712ab9805e' into 'main'

replace a use of sfstropen with malloc+vsnprintf

See merge request graphviz/graphviz!1884

3 years agoreplace a use of sfstropen with malloc+vsnprintf
Matthew Fernandez [Sat, 3 Apr 2021 20:13:02 +0000 (13:13 -0700)]
replace a use of sfstropen with malloc+vsnprintf

This is another step towards removing uses of sfstropen in the code base.
Related to #1873.

3 years agoadd missing #include
Matthew Fernandez [Sat, 3 Apr 2021 19:44:43 +0000 (12:44 -0700)]
add missing #include

3 years agoMerge branch 'smattr/19cb473f-0226-41d2-9f69-0fc1b45513ef' into 'main'
Matthew Fernandez [Sat, 10 Apr 2021 02:05:56 +0000 (02:05 +0000)]
Merge branch 'smattr/19cb473f-0226-41d2-9f69-0fc1b45513ef' into 'main'

remove another use of setjmp/longjmp

See merge request graphviz/graphviz!1883

3 years agoremove now-unused jmp_buf
Matthew Fernandez [Sat, 3 Apr 2021 19:35:30 +0000 (12:35 -0700)]
remove now-unused jmp_buf

Related to #1801.

3 years agoreturn NULL from deriveGraph to indicate failure
Matthew Fernandez [Sat, 3 Apr 2021 19:34:52 +0000 (12:34 -0700)]
return NULL from deriveGraph to indicate failure

Related to #1801.

3 years agoanticipate a NULL return from deriveGraph
Matthew Fernandez [Sat, 3 Apr 2021 19:33:22 +0000 (12:33 -0700)]
anticipate a NULL return from deriveGraph

Related to #1801.

3 years agoanticipate failure from layout
Matthew Fernandez [Sat, 3 Apr 2021 19:32:05 +0000 (12:32 -0700)]
anticipate failure from layout

Related to #1801.

3 years agoadd a return value to layout
Matthew Fernandez [Sat, 3 Apr 2021 19:31:08 +0000 (12:31 -0700)]
add a return value to layout

Related to #1801.

3 years agoanticipate failure from fdpLayout
Matthew Fernandez [Sat, 3 Apr 2021 19:28:59 +0000 (12:28 -0700)]
anticipate failure from fdpLayout

Related to #1801.

3 years agoadd a return value to fdpLayout
Matthew Fernandez [Sat, 3 Apr 2021 19:27:56 +0000 (12:27 -0700)]
add a return value to fdpLayout

Related to #1801.

3 years agodelete commented out code
Matthew Fernandez [Sat, 3 Apr 2021 19:22:42 +0000 (12:22 -0700)]
delete commented out code

3 years agoMerge remote-tracking branch 'origin/smattr/1EBF65AE-6292-4A55-B9E5-A01E28911B08...
Matthew Fernandez [Sat, 10 Apr 2021 01:21:47 +0000 (18:21 -0700)]
Merge remote-tracking branch 'origin/smattr/1EBF65AE-6292-4A55-B9E5-A01E28911B08' into main

3 years agoallow macOS CI tasks to run immediately
Matthew Fernandez [Sat, 3 Apr 2021 17:56:00 +0000 (10:56 -0700)]
allow macOS CI tasks to run immediately

The macOS tasks were, by default, blocking on the portable source generation.
However these tasks do not use the portable source or any prior stage’s
artifacts. Now that we have moved to shared macOS runners without caching, the
macOS CI tasks are the limiting factor on CI runtime. Cutting this dependency
should meaningfully impact this.

3 years agopropagate COLLECTION from macOS CI build tasks to macOS CI test tasks
Matthew Fernandez [Sat, 3 Apr 2021 18:50:37 +0000 (11:50 -0700)]
propagate COLLECTION from macOS CI build tasks to macOS CI test tasks

This is more straightforward and reliable than trying to keep multiple places
where we manually set the collection coherent.

3 years agofix: propagate VERSION from macOS build tasks to macOS CI test tasks
Matthew Fernandez [Sat, 3 Apr 2021 18:46:35 +0000 (11:46 -0700)]
fix: propagate VERSION from macOS build tasks to macOS CI test tasks

The macOS test tasks in CI were picking up the VERSION from the portable source
task, despite their build tasks using a different process to derive VERSION.
This change ensures they get the VERSION file their build task created.

3 years agoMerge branch 'fix-strcpy-param-overlap' into 'main'
Magnus Jacobsson [Fri, 9 Apr 2021 18:08:29 +0000 (18:08 +0000)]
Merge branch 'fix-strcpy-param-overlap' into 'main'

Fix AddressSanitizer: strcpy-param-overlap in gvconfig_libdir

Closes #1994

See merge request graphviz/graphviz!1887

3 years agoFix AddressSanitizer: strcpy-param-overlap in gvconfig_libdir
Magnus Jacobsson [Sun, 4 Apr 2021 14:54:29 +0000 (16:54 +0200)]
Fix AddressSanitizer: strcpy-param-overlap in gvconfig_libdir

Fixes https://gitlab.com/graphviz/graphviz/-/issues/1994.

3 years agoMerge branch 'smattr/19C32E28-7A45-406A-A700-B74AB173D7FE' into 'main'
Matthew Fernandez [Thu, 8 Apr 2021 05:04:25 +0000 (05:04 +0000)]
Merge branch 'smattr/19C32E28-7A45-406A-A700-B74AB173D7FE' into 'main'

remove inlining of flip_rec_box

See merge request graphviz/graphviz!1880

3 years agoremove inlining of flip_rec_box
Matthew Fernandez [Fri, 2 Apr 2021 00:03:37 +0000 (17:03 -0700)]
remove inlining of flip_rec_box

With a modern compiler, the inline keyword is more or less ignored and the
compiler makes a (usually better) decision itself.

3 years agoMerge branch 'smattr/1DFCCF93-D5FA-4443-A701-9C65CC090280' into 'main'
Matthew Fernandez [Thu, 8 Apr 2021 02:43:35 +0000 (02:43 +0000)]
Merge branch 'smattr/1DFCCF93-D5FA-4443-A701-9C65CC090280' into 'main'

fix computation of minimum graph rank on large graphs

See merge request graphviz/graphviz!1879

3 years agofix computation of minimum graph rank on large graphs
Matthew Fernandez [Fri, 2 Apr 2021 00:02:19 +0000 (17:02 -0700)]
fix computation of minimum graph rank on large graphs

This code was using MAXSHORT as the maximum (unrealistically large) rank. That
is, start out with this value and assume all nodes will rank below this so we
can progressively step down. This was likely correct when the code was first
written. However, 97cb5fffdcaa97eadb76a9b82a026d084a6a94d9 altered the type used
for storing ranks from short to int to support larger graphs. That is, nodes in
a graph are now anticipated to have ranks in excess of 32767 (on e.g. x86). This
change did not update these algorithms to compensate.

The effect of this is that any graph whose nodes were all ranked >32767 would be
incorrectly judged to have a minimum rank of 32767. The present change fixes
this by realigning this to the limit of the new ranking type.

Note that this removes the last use MAXSHORT in the code base. Unfortunately we
cannot easily remove its definition without breaking API because the containing
header lib/common/arith.h is shipped.

3 years agoMerge branch 'smattr/BC4B3197-1AC8-4F9E-BCB8-CDF5BFE64A0D' into 'main'
Matthew Fernandez [Wed, 7 Apr 2021 05:12:57 +0000 (05:12 +0000)]
Merge branch 'smattr/BC4B3197-1AC8-4F9E-BCB8-CDF5BFE64A0D' into 'main'

use smart pointers to clean up Visio::Graphics

See merge request graphviz/graphviz!1878

3 years agooptimize some size()>0 checks
Matthew Fernandez [Thu, 1 Apr 2021 03:21:38 +0000 (20:21 -0700)]
optimize some size()>0 checks

The implementation of empty() is typically more efficient.

3 years agouse C++11 in-class member initialization to remove the need for an explicit ctor
Matthew Fernandez [Thu, 1 Apr 2021 02:12:35 +0000 (19:12 -0700)]
use C++11 in-class member initialization to remove the need for an explicit ctor

This is an equivalent way of saying the same thing.

3 years agoremove some explicit constructor calls
Matthew Fernandez [Thu, 1 Apr 2021 02:08:44 +0000 (19:08 -0700)]
remove some explicit constructor calls

These constructors are all called implicitly already.

3 years agouse range-based for loops to clean up some manual iteration
Matthew Fernandez [Thu, 1 Apr 2021 02:05:30 +0000 (19:05 -0700)]
use range-based for loops to clean up some manual iteration

Note that in once instance this modifies a loop that was skipping the first
element to not skip it. But this is a no-op the compiler should see through.

3 years agostore Graphics as managed pointers in Visio::Render instead of raw pointers
Matthew Fernandez [Thu, 1 Apr 2021 01:55:16 +0000 (18:55 -0700)]
store Graphics as managed pointers in Visio::Render instead of raw pointers

This lets us clean up some manual handling of these and stop worrying about
memory management. Note that Visio::Render::ClearGraphicsAndTexts touched in
this commit is effectively a hand written destructor for this class. Presumably
it was implemented in a time before destructors were standardized. We can likely
move the other collections affected here to using smart pointers too and remove
this function entirely eventually.

3 years agotake a reference instead of a pointer in Visio::Render::PrintEdgeShape
Matthew Fernandez [Thu, 1 Apr 2021 01:42:00 +0000 (18:42 -0700)]
take a reference instead of a pointer in Visio::Render::PrintEdgeShape

Similar to the previous commits, this function assumes its input pointer is
non-null, so we may as well use the more convenient C++ syntax for this. This
will also ease some upcoming changes to convert the underlying raw pointers to
smart pointers.

3 years agotake a reference instead of a pointer in Visio::Render::PrintInnerShape
Matthew Fernandez [Thu, 1 Apr 2021 01:38:57 +0000 (18:38 -0700)]
take a reference instead of a pointer in Visio::Render::PrintInnerShape

Similar to the previous commit, this function assumes its input pointer is
non-null, so we may as well use the more convenient C++ syntax for this. This
will also ease some upcoming changes to convert the underlying raw pointers to
smart pointers.

3 years agotake a reference instead of a pointer in Visio::Render::PrintOuterShape
Matthew Fernandez [Thu, 1 Apr 2021 01:36:37 +0000 (18:36 -0700)]
take a reference instead of a pointer in Visio::Render::PrintOuterShape

This function assumes its input pointer is non-null, so we may as well use the
more convenient C++ syntax for this. This will also ease some upcoming changes
to convert the underlying raw pointers to smart pointers.

3 years agoremove const qualifier on Visio::Graphics
Matthew Fernandez [Thu, 1 Apr 2021 01:27:50 +0000 (18:27 -0700)]
remove const qualifier on Visio::Graphics

Using a const qualifier on the element type of an STL container is usually an
anti-pattern. In this case, doubly so, because Visio::Render does not treat
elements of such a vector as const.

3 years agoremove const qualifier from Visio::Render::AddGraphic argument
Matthew Fernandez [Thu, 1 Apr 2021 01:23:45 +0000 (18:23 -0700)]
remove const qualifier from Visio::Render::AddGraphic argument

This pointer is not treated as const internally by Visio::Render. This is a step
towards removing manual memory management of Graphic pointers.

3 years agoMerge branch 'smattr/72E0571B-88AC-4CBC-AC52-ABB391482FDB' into 'main'
Matthew Fernandez [Tue, 6 Apr 2021 15:36:56 +0000 (15:36 +0000)]
Merge branch 'smattr/72E0571B-88AC-4CBC-AC52-ABB391482FDB' into 'main'

fix: do not recognize "&;" as an XML escape sequence

Closes #797

See merge request graphviz/graphviz!1876

3 years agofix: do not recognize "&;" as an XML escape sequence
Matthew Fernandez [Wed, 31 Mar 2021 04:27:08 +0000 (21:27 -0700)]
fix: do not recognize "&;" as an XML escape sequence

xml_isentity was incorrectly recognizing "&;" as an escape sequence. Despite
vague wording in the standard, it seems fairly clear that &<name>; is only
intended to be a valid escape sequence when <name> is non-empty. Fixes #797.

Note that unfortunately due to #1868, we need to fix this bug four times in
copy-pasted versions of the same function.

3 years agoadd a test case for #797
Matthew Fernandez [Wed, 31 Mar 2021 04:18:54 +0000 (21:18 -0700)]
add a test case for #797

3 years agoMerge branch 'smattr/8D352476-8903-4236-8AE7-1C1DA75CC4B8' into 'main'
Matthew Fernandez [Tue, 6 Apr 2021 03:16:31 +0000 (03:16 +0000)]
Merge branch 'smattr/8D352476-8903-4236-8AE7-1C1DA75CC4B8' into 'main'

remove internal definitions of NULL

See merge request graphviz/graphviz!1875

3 years agoremove internal definitions of NULL
Matthew Fernandez [Wed, 31 Mar 2021 02:08:49 +0000 (19:08 -0700)]
remove internal definitions of NULL

ISO C guarantees this to exist via stddef.h or stdlib.h.

3 years agoinclude stddef.h in some files that are using NULL
Matthew Fernandez [Wed, 31 Mar 2021 02:07:52 +0000 (19:07 -0700)]
include stddef.h in some files that are using NULL

These were relying on picking up NULL through one of their other includes. We
are about to remove some internal definitions of NULL that may affect this, so
adding explicit stddef.h includes guards against these upcoming changes.

3 years agoremove stray line feed characters
Matthew Fernandez [Wed, 31 Mar 2021 02:07:28 +0000 (19:07 -0700)]
remove stray line feed characters

3 years agoremove unhelpful comment
Matthew Fernandez [Wed, 31 Mar 2021 02:06:55 +0000 (19:06 -0700)]
remove unhelpful comment

3 years agoremove some commented out code
Matthew Fernandez [Wed, 31 Mar 2021 02:06:40 +0000 (19:06 -0700)]
remove some commented out code

3 years agoMerge branch 'smattr/20D31C39-98CB-43AC-89A4-D37C86FA81E3' into 'main'
Matthew Fernandez [Sun, 4 Apr 2021 17:30:12 +0000 (17:30 +0000)]
Merge branch 'smattr/20D31C39-98CB-43AC-89A4-D37C86FA81E3' into 'main'

clean up lib/twopigen/circle.c

See merge request graphviz/graphviz!1874

3 years agoswap an unnecessary MAX call for fmax
Matthew Fernandez [Mon, 29 Mar 2021 04:55:40 +0000 (21:55 -0700)]
swap an unnecessary MAX call for fmax

3 years agomove some definitions closer to their usage
Matthew Fernandez [Mon, 29 Mar 2021 04:48:50 +0000 (21:48 -0700)]
move some definitions closer to their usage

3 years agomore precise return type for isLeaf
Matthew Fernandez [Mon, 29 Mar 2021 04:34:38 +0000 (21:34 -0700)]
more precise return type for isLeaf

3 years agosquash -Wcompare, -Wconversion, -Wsign-convertion warnings
Matthew Fernandez [Mon, 29 Mar 2021 04:30:40 +0000 (21:30 -0700)]
squash -Wcompare, -Wconversion, -Wsign-convertion warnings

3 years agosquash some -Wsign-compare warnings
Matthew Fernandez [Mon, 29 Mar 2021 04:26:48 +0000 (21:26 -0700)]
squash some -Wsign-compare warnings

3 years agosquash a -Wsign-compare and a -Wconversion compiler warnings
Matthew Fernandez [Mon, 29 Mar 2021 04:01:37 +0000 (21:01 -0700)]
squash a -Wsign-compare and a -Wconversion compiler warnings

3 years agoremove some commented out code
Matthew Fernandez [Mon, 29 Mar 2021 03:56:03 +0000 (20:56 -0700)]
remove some commented out code

3 years agosquash -Wconversion compiler warning
Matthew Fernandez [Mon, 29 Mar 2021 03:53:42 +0000 (20:53 -0700)]
squash -Wconversion compiler warning

This also squashes a -Wsign-compare and a -Wsign-conversion warning.

3 years agoMerge branch 'smattr/D2AA2D59-2982-42CC-9CA3-374F58FDC5B2' into 'main'
Matthew Fernandez [Sun, 4 Apr 2021 05:47:52 +0000 (05:47 +0000)]
Merge branch 'smattr/D2AA2D59-2982-42CC-9CA3-374F58FDC5B2' into 'main'

fix: put HTML bit at the top of the count in reference counted strings

Closes #1984

See merge request graphviz/graphviz!1873

3 years agosimplify some debugging code
Matthew Fernandez [Mon, 29 Mar 2021 03:00:59 +0000 (20:00 -0700)]
simplify some debugging code

3 years agoremove unused struct name
Matthew Fernandez [Mon, 29 Mar 2021 02:53:32 +0000 (19:53 -0700)]
remove unused struct name

3 years agouse a bitfield instead of shifting and masking for reference count in refstr.c
Matthew Fernandez [Mon, 29 Mar 2021 02:51:51 +0000 (19:51 -0700)]
use a bitfield instead of shifting and masking for reference count in refstr.c

This performs the same operations, but asks the compiler to generate the
required shifts and masks instead of relying on the error prone process of doing
them manually.

3 years agofix: put HTML bit at the top of the count in reference counted strings
Matthew Fernandez [Mon, 29 Mar 2021 02:37:08 +0000 (19:37 -0700)]
fix: put HTML bit at the top of the count in reference counted strings

lib/cgraph/refstr.c implements reference-counted strings with the structure
refstr_t. Since the initial commit of cgraph,
d7767d4b5c511afa89b46798eea4e2f915930844, HTML_BIT has been (IMHO incorrectly)
set based on unsigned int instead of unsigned long. Presumably this was not an
issue because most machines were 32-bit x86 at the time, where
sizeof(unsigned int) == sizeof(unsigned long).

In the transition to x86-64 machines, this setup became awkward. The reference
count is 8 bytes wide, but HTML_BIT is set to be bit 31. I.e. the bit indicating
that a string is HTML is now in the middle of the reference count. A string with
≥ 2³¹ references, something that is possible on an x86-64 machine, now
accidentally sets the HTML bit. Note that this ecosystem transition also made
the comment about HTML_BIT incorrect, /* msbit of unsigned long */.

d1244c8001e8c681def4c0ff25a91136845c2a75 did a tree-wide replacement of unsigned
long with uint64_t, which further compounded the situation. Now the HTML bit is
in the incorrect position on both 32-bit and 64-bit x86.

The present change fixes this by moving the HTML bit into bit 63 of the refcnt
field. Fixes #1984.

It is questionable whether this even needs to be a bitfield, and not simply a
uint64_t and a bool, but I think we should leave this space optimization in
place for now.

3 years agoMerge branch 'smattr/f4713040-3ec5-4d22-9ea3-48bdc47c1eae' into 'main'
Matthew Fernandez [Sat, 3 Apr 2021 04:33:44 +0000 (04:33 +0000)]
Merge branch 'smattr/f4713040-3ec5-4d22-9ea3-48bdc47c1eae' into 'main'

remove a use of setjmp/longjmp

See merge request graphviz/graphviz!1871

3 years agoremove -Wshadow warning in conc.c
Matthew Fernandez [Sat, 27 Mar 2021 20:17:33 +0000 (13:17 -0700)]
remove -Wshadow warning in conc.c

3 years agoremove now-unused jmp_buf
Matthew Fernandez [Sat, 27 Mar 2021 20:12:32 +0000 (13:12 -0700)]
remove now-unused jmp_buf

Related to #1801.

3 years agoremove the use of longjmp to indicate failure in rebuild_vlists
Matthew Fernandez [Sat, 27 Mar 2021 20:06:38 +0000 (13:06 -0700)]
remove the use of longjmp to indicate failure in rebuild_vlists

Related to #1801.

3 years agoanticipate non-zero return from rebuild_vlists
Matthew Fernandez [Sat, 27 Mar 2021 20:01:09 +0000 (13:01 -0700)]
anticipate non-zero return from rebuild_vlists

This is a step towards removing a longjmp call from rebuild_vlists. Related to
#1801.

3 years agoadd a return value to rebuild_vlists
Matthew Fernandez [Sat, 27 Mar 2021 19:55:56 +0000 (12:55 -0700)]
add a return value to rebuild_vlists

This is step towards removing the use of longjmp in this function. Related to
#1801.

3 years agoMerge branch 'smattr/F9620D3B-7BEF-49CD-85DD-CB9FEB3B07AF' into 'main'
Matthew Fernandez [Sat, 3 Apr 2021 03:48:24 +0000 (03:48 +0000)]
Merge branch 'smattr/F9620D3B-7BEF-49CD-85DD-CB9FEB3B07AF' into 'main'

switch to Gitlab shared macOS runners for CI

See merge request graphviz/graphviz!1872

3 years agomove macOS CI jobs to Gitlab shared runner
Matthew Fernandez [Sat, 27 Mar 2021 21:09:11 +0000 (14:09 -0700)]
move macOS CI jobs to Gitlab shared runner

The macOS CI closed beta program Graphviz has been participating in is winding
down. As of 2021-03-24, we have been requested to migrate to a shared macOS
runner as the program transitions into an open beta [0]. The cut over date for
this is scheduled for 2021-04-07. This change causes our CI setup to now run
macOS jobs on this shared runner instead of the reserved macOS VM Graphviz had
during the closed beta.

Note that this change also migrates these CI jobs from macOS 10.15.6 (Catalina)
to macOS 11.2 (Big Sur). With this, the XCode version is expected to move
forwards as well, though I do not know the precise version numbers.

Related to #1727.

  [0]: https://gitlab.com/gitlab-com/macos-buildcloud-runners-beta/-/issues/3#note_536852935

3 years agofix: install dependencies in macOS test tasks
Matthew Fernandez [Sun, 28 Mar 2021 00:22:50 +0000 (17:22 -0700)]
fix: install dependencies in macOS test tasks

These tasks were passing despite missing steps to install dependencies because
the current private beta macOS runner Graphviz uses is stateful. Moving to the
stateless shared macOS runner for the open beta exposes that testing fails
because the runtime dependencies of Graphviz are missing.

3 years agoMerge branch 'smattr/02B780E5-FA0B-4FE5-94B8-9979AA32D4F4' into 'main'
Matthew Fernandez [Sat, 3 Apr 2021 02:40:14 +0000 (02:40 +0000)]
Merge branch 'smattr/02B780E5-FA0B-4FE5-94B8-9979AA32D4F4' into 'main'

maze.c warning squashing and clean up

See merge request graphviz/graphviz!1870

3 years agoremove some commented out code
Matthew Fernandez [Sat, 27 Mar 2021 16:08:26 +0000 (09:08 -0700)]
remove some commented out code

3 years agoremove some unnecessary bracketing
Matthew Fernandez [Sat, 27 Mar 2021 16:08:16 +0000 (09:08 -0700)]
remove some unnecessary bracketing

3 years agoremove some useless code
Matthew Fernandez [Sat, 27 Mar 2021 16:07:09 +0000 (09:07 -0700)]
remove some useless code

3 years agoreplace some unnecessary MIN calls with fmin
Matthew Fernandez [Sat, 27 Mar 2021 16:05:59 +0000 (09:05 -0700)]
replace some unnecessary MIN calls with fmin

3 years agoreplace some unnecessary MAX calls with fmax
Matthew Fernandez [Sat, 27 Mar 2021 16:05:21 +0000 (09:05 -0700)]
replace some unnecessary MAX calls with fmax

3 years agoremove unused g parameter from markSmall
Matthew Fernandez [Sat, 27 Mar 2021 15:58:38 +0000 (08:58 -0700)]
remove unused g parameter from markSmall

3 years agoremove unused cp parameter from updateWt
Matthew Fernandez [Sat, 27 Mar 2021 15:57:00 +0000 (08:57 -0700)]
remove unused cp parameter from updateWt

3 years agosquash some -Wunused-parameter warnings
Matthew Fernandez [Sat, 27 Mar 2021 15:56:24 +0000 (08:56 -0700)]
squash some -Wunused-parameter warnings

3 years agoMerge branch 'smattr/279B0FC2-0820-4378-A2DF-3A0EDB8B463E' into 'main'
Matthew Fernandez [Fri, 2 Apr 2021 04:15:34 +0000 (04:15 +0000)]
Merge branch 'smattr/279B0FC2-0820-4378-A2DF-3A0EDB8B463E' into 'main'

fix: missing counting refactor and fatal errors in Pylint metrics

See merge request graphviz/graphviz!1867

3 years agofix: missing counting refactor and fatal errors in Pylint metrics
Matthew Fernandez [Sat, 27 Mar 2021 01:11:02 +0000 (18:11 -0700)]
fix: missing counting refactor and fatal errors in Pylint metrics

3 years agoMerge branch 'smattr/CE58A1C5-3233-40B6-AB51-1094448247F0' into 'main'
Matthew Fernandez [Fri, 2 Apr 2021 03:38:19 +0000 (03:38 +0000)]
Merge branch 'smattr/CE58A1C5-3233-40B6-AB51-1094448247F0' into 'main'

replace Smyrna use of sfstropen with agxbuf

See merge request graphviz/graphviz!1868

3 years agoreplace Smyrna use of sfstropen with agxbuf
Matthew Fernandez [Sun, 3 Jan 2021 01:39:50 +0000 (17:39 -0800)]
replace Smyrna use of sfstropen with agxbuf

Related to #1873.

3 years agoMerge branch 'grammar-align' into 'main'
Mark Hansen [Wed, 31 Mar 2021 09:41:12 +0000 (09:41 +0000)]
Merge branch 'grammar-align' into 'main'

docs: Remove deprecated HTML attributes in generation

See merge request graphviz/graphviz!1877

3 years agoRemove deprecated HTML attributes in generation
Mark Hansen [Wed, 31 Mar 2021 09:12:56 +0000 (20:12 +1100)]
Remove deprecated HTML attributes in generation

Style the generated code with CSS instead.

3 years agoMerge branch 'smattr/4D210743-7509-4642-AB03-14BCBC375538' into 'main'
Matthew Fernandez [Wed, 31 Mar 2021 00:43:47 +0000 (00:43 +0000)]
Merge branch 'smattr/4D210743-7509-4642-AB03-14BCBC375538' into 'main'

clean up and warning squashing in lib/label

See merge request graphviz/graphviz!1866

3 years agoplaceLabels: move definition of i closer to its use
Matthew Fernandez [Wed, 24 Mar 2021 04:06:34 +0000 (21:06 -0700)]
placeLabels: move definition of i closer to its use

3 years agoxlspdxload: move definition of op closer its use
Matthew Fernandez [Wed, 24 Mar 2021 04:06:15 +0000 (21:06 -0700)]
xlspdxload: move definition of op closer its use

3 years agoxlhdxload: move definition of i closer to its use
Matthew Fernandez [Wed, 24 Mar 2021 04:05:56 +0000 (21:05 -0700)]
xlhdxload: move definition of i closer to its use

3 years agoxladjust: abbreviate some zeroing
Matthew Fernandez [Wed, 24 Mar 2021 04:05:27 +0000 (21:05 -0700)]
xladjust: abbreviate some zeroing

The compiler understands a shorter memory-zeroing idiom.

3 years agoxlintersections: move definitions closer to their use
Matthew Fernandez [Wed, 24 Mar 2021 04:05:05 +0000 (21:05 -0700)]
xlintersections: move definitions closer to their use

3 years agoaabbaabb: move definitions closer to their use
Matthew Fernandez [Wed, 24 Mar 2021 04:04:33 +0000 (21:04 -0700)]
aabbaabb: move definitions closer to their use