]>
granicus.if.org Git - graphviz/log
Matthew Fernandez [Tue, 6 Jul 2021 05:13:39 +0000 (05:13 +0000)]
Merge branch 'smattr/
9ca68f13 -5591-4f3c-a488-
f3b15c827039 ' into 'main'
fix incorrect reference counting of HTML-like strings in gvpack
See merge request graphviz/graphviz!2026
Matthew Fernandez [Wed, 30 Jun 2021 03:11:13 +0000 (20:11 -0700)]
fix incorrect reference counting of HTML-like strings in gvpack
When duplicating graph attributes, gvpack was calling agstrdup_html to construct
an HTML-like string and then agattr/agset to assign this to an attribute. It did
not anticipate that *both* of these increment the reference count for the string
that has been interned in the graph’s dictionary. The result was a reference
count of 2 for a new HTML-like string, despite only 1 reference to the string
existing.
This was not directly visible to users (hence no changelog entry for this
commit) and the extra reference counts are disposed of when the graph itself is
destroyed. However, this persistent off-by-one issue internally confused some
debugging and potentially retained memory longer than was necessary. The issue
was visible with the following patch applied:
diff --git cmd/tools/gvpack.c cmd/tools/gvpack.c
index
16a4ffa5b ..
8e8fbf3b9 100644
--- cmd/tools/gvpack.c
+++ cmd/tools/gvpack.c
@@ -352,9 +352,13 @@ static void cloneAttrs(void *old, void *new)
for (a = agnxtattr(g, kind, 0); a; a = agnxtattr(g, kind, a)) {
s = agxget (old, a);
- if (aghtmlstr(s))
- agset(new, a->name, agstrdup_html(ng, s));
- else
+ if (aghtmlstr(s)) {
+ printf("creating HTML string...\n");
+ char *scopy = agstrdup_html(ng, s);
+ agrefcntprint(scopy);
+ agset(new, a->name, scopy);
+ agrefcntprint(scopy);
+ } else
agset(new, a->name, s);
}
}
diff --git lib/cgraph/cgraph.h lib/cgraph/cgraph.h
index
a043fb26d ..
e2b065e16 100644
--- lib/cgraph/cgraph.h
+++ lib/cgraph/cgraph.h
@@ -305,6 +305,7 @@ CGRAPH_API int agobjkind(void *);
/* strings */
CGRAPH_API char *agstrdup(Agraph_t *, char *);
CGRAPH_API char *agstrdup_html(Agraph_t *, char *);
+CGRAPH_API void *agrefcntprint(const char *);
CGRAPH_API int aghtmlstr(char *);
CGRAPH_API char *agstrbind(Agraph_t * g, char *);
CGRAPH_API int agstrfree(Agraph_t *, char *);
diff --git lib/cgraph/refstr.c lib/cgraph/refstr.c
index
b524649ff ..
d8d7ca468 100644
--- lib/cgraph/refstr.c
+++ lib/cgraph/refstr.c
@@ -9,6 +9,7 @@
*************************************************************************/
#include <cgraph/cghdr.h>
+#include <inttypes.h>
#include <stddef.h>
#include <stdio.h>
@@ -139,6 +140,11 @@ char *agstrdup_html(Agraph_t * g, char *s)
return r->s;
}
+void *agrefcntprint(const char *s) {
+ refstr_t *key = (refstr_t *) (s - offsetof(refstr_t, store[0]));
+ printf("reference count: %" PRIu64 "\n", (uint64_t)key->refcnt);
+}
+
int agstrfree(Agraph_t * g, char *s)
{
refstr_t *r;
With these changes, attempting to gvpack a graph with an HTML-like string
attribute results in the following output:
creating HTML string...
reference count: 1
reference count: 2
The present commit fixes this issue by replicating the correct pattern for doing
this kind of duplication from lib/gvpr/actions.c:copyAttr.
Matthew Fernandez [Tue, 6 Jul 2021 00:15:26 +0000 (00:15 +0000)]
Merge branch 'smattr/
32e830af -ed59-441c-9dc6-
9eaef9316b04 ' into 'main'
work towards solution for round tripping GV→GXL→GV
See merge request graphviz/graphviz!2016
Matthew Fernandez [Thu, 24 Jun 2021 03:07:57 +0000 (20:07 -0700)]
remove some unnecessary casts to agxbuf functions
These functions take const char pointers. There is no need to cast away the
const-ness of the original pointers.
Matthew Fernandez [Thu, 24 Jun 2021 02:55:29 +0000 (19:55 -0700)]
gv2gxl: in GXL output, indicate when a label originated as an HTML like label
When translating Dot to GXL, labels come out as strings. Input something like:
`label="foo"` and the GXL output is something like
`<attr name="label"><string>foo</string></attr>`. This translation is fine and
works well, until you start using HTML like labels.
Graphviz allows `<` and `>` as delimiters to indicate your label string contains
HTML that should be parsed. When you try to use this feature in combination with
gv2gxl, you get a lossy translation. E.g. the labels `label="foo"` and
`label=<foo>` come out identically in GXL.
This commit makes use of the GXL ‘kind’ field on attributes to note that the
source was an HTML like label. If you translate the two labels from above, you
will now get:
<attr name="label"><string>foo</string></attr>
and
<attr name="label" kind="HTML-like string"><string>foo</string></attr>
respectively.
This is a partial fix for #517. This makes the translation to GXL no longer
lossy. The other half of this is recognizing the ‘kind’ field during gxl2gv
translation and preserving it on the way back.
Matthew Fernandez [Thu, 24 Jun 2021 02:41:26 +0000 (19:41 -0700)]
reflow some text
Matthew Fernandez [Thu, 24 Jun 2021 02:04:27 +0000 (19:04 -0700)]
add a test case for #517
Matthew Fernandez [Mon, 5 Jul 2021 23:06:31 +0000 (23:06 +0000)]
Merge branch 'smattr/
cbc230d2 -1896-4082-84b8-
df235572234c ' into 'main'
branch-tune allocation wrappers
See merge request graphviz/graphviz!2021
Matthew Fernandez [Sat, 26 Jun 2021 19:12:13 +0000 (12:12 -0700)]
branch-tune allocation wrappers
These functions are used extensively within Graphviz. This change tells the
compiler to optimize for the case when allocation succeeds. This may slow the
case when allocation fails, though we do not care about this case as Graphviz is
about to exit with failure in this scenario.
Matthew Fernandez [Mon, 5 Jul 2021 22:17:51 +0000 (22:17 +0000)]
Merge branch 'smattr/
5d05e2d1 -45cd-4422-b78c-
122a62fff5c8 ' into 'main'
more gvmap-related clean up
See merge request graphviz/graphviz!2025
Matthew Fernandez [Tue, 29 Jun 2021 03:57:23 +0000 (20:57 -0700)]
remove GVIEWER-guarded code
Nothing in the build system(s) define this. A lot of this also looks broken.
For example, the GVIEWER alternative of the stress_model function sets up an
argv whose first string entry is not terminated.
Matthew Fernandez [Tue, 29 Jun 2021 03:59:21 +0000 (20:59 -0700)]
remove commented out code in stress_model.c
Matthew Fernandez [Tue, 29 Jun 2021 03:51:46 +0000 (20:51 -0700)]
remove useless flag parameter to remove_overlap
This function has no path in which it sets this output parameter to non-zero.
Matthew Fernandez [Tue, 29 Jun 2021 03:29:05 +0000 (20:29 -0700)]
mark array parameters to get_local_12_norm as const
This makes it clearer that this function does not modify these arrays.
Matthew Fernandez [Tue, 29 Jun 2021 03:23:06 +0000 (20:23 -0700)]
remove unused norm variable in improve_antibandwidth_by_swapping
Matthew Fernandez [Tue, 29 Jun 2021 03:19:00 +0000 (20:19 -0700)]
remove unused norm_1 output parameter to country_graph_coloring_internal
Matthew Fernandez [Tue, 29 Jun 2021 03:15:26 +0000 (20:15 -0700)]
remove unused norm_1 output parameter to country_graph_coloring
Matthew Fernandez [Mon, 5 Jul 2021 21:27:10 +0000 (21:27 +0000)]
Merge branch 'smattr/
B7DD3AE0 -829A-49E5-9A94-
5518A9FFA6D9 ' into 'main'
remove unused gvfwrite
Closes #1846
See merge request graphviz/graphviz!2029
Matthew Fernandez [Thu, 1 Jul 2021 14:48:39 +0000 (07:48 -0700)]
remove unused gvfwrite
The last use of gvfwrite was removed in
6e818420cf02ad01d9c976b69d49fb794a661f5e . But more problematically, this
function seems incorrect. By ignoring its size argument it will generate
surprising results if ever called with a non-1 size. Closes #1846.
Matthew Fernandez [Mon, 5 Jul 2021 19:51:32 +0000 (19:51 +0000)]
Merge branch 'smattr/
12de6328 -7c30-45ad-9029-
63f88edd6385 ' into 'main'
clean up in lib/sfio
See merge request graphviz/graphviz!2027
Matthew Fernandez [Mon, 5 Jul 2021 19:18:55 +0000 (19:18 +0000)]
Merge branch 'smattr/
F16DEFA3 -B7E0-4DC8-BDD5-
C4D2C9D8242F ' into 'main'
port deploy script from os.path to pathlib
See merge request graphviz/graphviz!2024
Matthew Fernandez [Thu, 1 Jul 2021 00:24:58 +0000 (17:24 -0700)]
remove _SFBINARY_H-conditional code
Nothing in the build defines this.
Matthew Fernandez [Thu, 1 Jul 2021 00:24:51 +0000 (17:24 -0700)]
remove unused SETCLOEXEC and FD_CLOEXEC
The last use of these was removed in
f552c0dece1435773de62334dee3310d1728e22f .
Matthew Fernandez [Thu, 1 Jul 2021 00:24:49 +0000 (17:24 -0700)]
remove unused ESPIPE
ESPIPE has never been used in sfio.
Matthew Fernandez [Thu, 1 Jul 2021 00:24:46 +0000 (17:24 -0700)]
remove unused ENOMEM
The last use of this in sfio was removed in
bb04aad8c6e033b6fef9cecd424a4d02758d661a .
Matthew Fernandez [Thu, 1 Jul 2021 00:24:44 +0000 (17:24 -0700)]
remove cbrt configuration check
Graphviz is built with C99 which requires cbrt.
Matthew Fernandez [Thu, 1 Jul 2021 00:24:41 +0000 (17:24 -0700)]
remove unlink configuration check and Windows shim
Nothing in Graphviz uses unlink.
Matthew Fernandez [Thu, 1 Jul 2021 00:24:39 +0000 (17:24 -0700)]
remove remove/unlink declarations in sfio
The last use of these was removed in
751ab539a2531b5459ef709946ea0642ce2c44e8 .
Matthew Fernandez [Thu, 1 Jul 2021 00:24:35 +0000 (17:24 -0700)]
remove fork/vfork detection
As of the previous commit, nothing uses these configuration variables.
Matthew Fernandez [Thu, 1 Jul 2021 00:24:33 +0000 (17:24 -0700)]
remove unused sfio fork/vfork declarations
The last usage of fork in this library was removed in
f552c0dece1435773de62334dee3310d1728e22f .
Matthew Fernandez [Thu, 1 Jul 2021 00:24:30 +0000 (17:24 -0700)]
remove unnecessary errno declaration
The errno variable/macro is part of ISO C.
Matthew Fernandez [Thu, 1 Jul 2021 00:24:25 +0000 (17:24 -0700)]
remove unused MAXSHORT
Matthew Fernandez [Thu, 1 Jul 2021 00:24:21 +0000 (17:24 -0700)]
remove unused MAXLONG
Matthew Fernandez [Tue, 29 Jun 2021 02:41:49 +0000 (19:41 -0700)]
squash Pylint warning in deploy script
With this tweak, deploy.py is Pylint-warning-free. I do not think it makes sense
to write docstrings on a main function.
Matthew Fernandez [Tue, 29 Jun 2021 02:39:40 +0000 (19:39 -0700)]
port deploy script from os.path to pathlib
While this does not look like a win in terms of conciseness, I think the trade
off is worth it for stronger typing within this script. It is hard to test this
script without actually running a deployment, so we heavily rely on Pylint to
validate what it is doing. Giving Pylint some more hints as to what is going on
seems like a good idea.
Matthew Fernandez [Mon, 5 Jul 2021 04:24:07 +0000 (04:24 +0000)]
Merge branch 'smattr/
77f377e7 -e733-48ca-8003-
6de107b48820 ' into 'main'
test cases for #2089
See merge request graphviz/graphviz!2023
Matthew Fernandez [Tue, 29 Jun 2021 00:23:27 +0000 (17:23 -0700)]
test cases for #2089
Matthew Fernandez [Tue, 29 Jun 2021 00:26:17 +0000 (17:26 -0700)]
remove prototype for unimplemented agrelabel
I do not know why this function was described as “scary.” However, it seems it
was so scary no one in Graphviz’ history ever implemented it.
Matthew Fernandez [Sun, 4 Jul 2021 15:33:10 +0000 (15:33 +0000)]
Merge branch 'smattr/
259855E7 -1FFB-4A36-8116-
EA81D402CFCD ' into 'main'
fix macOS CI
See merge request graphviz/graphviz!2030
Matthew Fernandez [Fri, 2 Jul 2021 03:51:28 +0000 (20:51 -0700)]
remove Courier.gv graph reference test
This test compares the rendering of a graph using the Courier font against
reference examples. However the rendering of Courier is not stable across
operating system releases. At present, this test is spuriously failing due to a
macOS upgrade. But in principle, an upgrade of any platform can break it. To
avoid testing this unstable behavior, we remove this test.
Matthew Fernandez [Fri, 2 Jul 2021 03:53:40 +0000 (20:53 -0700)]
remove unused font_tests.txt
This seems to be a subset of tests covered elsewhere. This file is also
currently unused.
Mark Hansen [Fri, 2 Jul 2021 07:46:49 +0000 (07:46 +0000)]
Update README.md -- queries go to Graphviz forum
Should keep bug tracker full of bugs, and give people with other queries a better chance at getting them answered (there are more people on the forum).
Matthew Fernandez [Wed, 30 Jun 2021 05:15:17 +0000 (05:15 +0000)]
Merge branch 'smattr/
94045bf0 -ac99-4edb-acba-
84c65c67d983 ' into 'main'
clean up in lib/vpsc
See merge request graphviz/graphviz!2020
Matthew Fernandez [Sat, 26 Jun 2021 18:59:04 +0000 (11:59 -0700)]
remove unused Rectangle {x|y}Border
Matthew Fernandez [Sat, 26 Jun 2021 18:48:39 +0000 (11:48 -0700)]
use a range-based for-loop to simplify remapOutConstraints
Matthew Fernandez [Sat, 26 Jun 2021 18:47:49 +0000 (11:47 -0700)]
use a range-based for-loop to simplify remapInConstraints
Matthew Fernandez [Sat, 26 Jun 2021 18:38:26 +0000 (11:38 -0700)]
rephrase accumulate loop in Blocks::cost using a range-based for-loop
Matthew Fernandez [Sat, 26 Jun 2021 18:31:59 +0000 (11:31 -0700)]
rephrase delete loop in Blocks::~Blocks to a range-based for-loop
Matthew Fernandez [Sat, 26 Jun 2021 18:28:35 +0000 (11:28 -0700)]
remove unnecessary clear of Blocks set
The object is being destructed, so the underlying set is automatically cleared.
Matthew Fernandez [Sat, 26 Jun 2021 18:23:45 +0000 (11:23 -0700)]
remove unused getSplitCnt
Matthew Fernandez [Sat, 26 Jun 2021 18:23:08 +0000 (11:23 -0700)]
remove unused splitIncVPSC
Matthew Fernandez [Sat, 26 Jun 2021 18:20:27 +0000 (11:20 -0700)]
remove duplicate solve_VPSC.h in VPSC noinst_HEADERS list
Matthew Fernandez [Sat, 26 Jun 2021 18:19:55 +0000 (11:19 -0700)]
remove unused newVPSC
Matthew Fernandez [Wed, 30 Jun 2021 04:09:15 +0000 (04:09 +0000)]
Merge branch 'smattr/
49e76f9c -dbd6-42d8-bcc1-
cbe0a523441e ' into 'main'
clean up in lib/sparse
See merge request graphviz/graphviz!2019
Matthew Fernandez [Sat, 26 Jun 2021 04:57:43 +0000 (21:57 -0700)]
remove unused StringVector
Matthew Fernandez [Sat, 26 Jun 2021 04:56:45 +0000 (21:56 -0700)]
remove unused IntegerVector
Matthew Fernandez [Sat, 26 Jun 2021 04:48:29 +0000 (21:48 -0700)]
remove unused SparseMatrix_pseudo_diameter_weighted
Matthew Fernandez [Sat, 26 Jun 2021 04:43:15 +0000 (21:43 -0700)]
remove unused SparseMatrix_pseudo_diameter_unweighted
Matthew Fernandez [Sat, 26 Jun 2021 04:33:21 +0000 (21:33 -0700)]
remove pattern_symmetric_only parameter to SparseMatrix_symmetrize_nodiag
This function is only called with FALSE for this argument, so we can propagate
it through and remove the parameter.
Matthew Fernandez [Sat, 26 Jun 2021 04:25:20 +0000 (21:25 -0700)]
remove duplicate palette_grey_to_red
Matthew Fernandez [Sat, 26 Jun 2021 04:19:29 +0000 (21:19 -0700)]
remove another unused MAXINT
Matthew Fernandez [Sat, 26 Jun 2021 04:18:30 +0000 (21:18 -0700)]
remove unused MAXINT
Matthew Fernandez [Sat, 26 Jun 2021 04:17:00 +0000 (21:17 -0700)]
remove unused vector_subtract_from
Matthew Fernandez [Sat, 26 Jun 2021 04:15:43 +0000 (21:15 -0700)]
remove unused vector_add_to
Matthew Fernandez [Wed, 30 Jun 2021 03:21:51 +0000 (03:21 +0000)]
Merge branch 'smattr/
584ca143 -13f9-4b18-aecc-
1195d5de7644 ' into 'main'
clean up in lib/common
See merge request graphviz/graphviz!2018
Matthew Fernandez [Sat, 26 Jun 2021 03:30:48 +0000 (20:30 -0700)]
reflow some routespl.c code for readability
Matthew Fernandez [Sat, 26 Jun 2021 03:12:54 +0000 (20:12 -0700)]
remove dead code in get_centroid
The preceding return statement ensures none of the latter part of the function
is reachable. This was introduced in
05674ae147c14ec4ec74b2b6771e04e0c82209b8
and seemingly never noticed.
This commit also drops now-unused variables, as well as the static qualifier
from sum. It is not clear to me what the purpose of making sum static was. It is
a small struct and both its fields are overwritten immediately when entering
this function, so there is no value to retaining it across calls or
BSS-allocating it.
Matthew Fernandez [Sat, 26 Jun 2021 03:11:49 +0000 (20:11 -0700)]
remove a micro-optimization in checkpath
Self-stores like this are effectively free on a modern CPU. The branch guarding
this store is more costly than the store itself.
Matthew Fernandez [Sat, 26 Jun 2021 03:11:20 +0000 (20:11 -0700)]
use C99 booleans to clarify some ambiguous types in routespl.c
Matthew Fernandez [Sat, 26 Jun 2021 02:59:10 +0000 (19:59 -0700)]
remove unnecessary bracketing in lib/common/routespl.c
Matthew Fernandez [Sat, 26 Jun 2021 02:58:18 +0000 (19:58 -0700)]
remove casts of vec_get’s return value
The vec_get function returns a void* that implicitly coerces to other pointer
types.
Matthew Fernandez [Sat, 26 Jun 2021 02:57:29 +0000 (19:57 -0700)]
condense some compound assignments
Matthew Fernandez [Sat, 26 Jun 2021 02:51:00 +0000 (19:51 -0700)]
remove __CYCLE_CENTROID and conditional code for when it is undefined
This was unconditionally defined, so remove the alternative that is always
disabled.
Matthew Fernandez [Sat, 26 Jun 2021 02:45:08 +0000 (19:45 -0700)]
rephrase open coded fmax/fmin in checkpath
Matthew Fernandez [Sat, 26 Jun 2021 02:30:07 +0000 (19:30 -0700)]
_routesplines: remove unnecessary cast
pp->data is a void*, which implicitly coerces to a edge_t*.
Matthew Fernandez [Sat, 26 Jun 2021 02:26:28 +0000 (19:26 -0700)]
remove commented out code in lib/common
Matthew Fernandez [Sat, 26 Jun 2021 02:22:41 +0000 (19:22 -0700)]
remove DONTFIXPATH guards
These guards were present in the very first revision of Graphviz, but nothing
has ever defined them.
Matthew Fernandez [Sat, 26 Jun 2021 02:19:41 +0000 (19:19 -0700)]
remove NOTNOW-guarded code
Nothing in the build defines this.
Matthew Fernandez [Tue, 29 Jun 2021 15:42:50 +0000 (15:42 +0000)]
Merge branch 'fix-typos-GD_LIBS-to-GDLIB_LIBS' into 'main'
Fix a typo GD_LIBS to GDLIB_LIBS in tclpkg/tcldot/Makefile.am
See merge request graphviz/graphviz!2022
Matthew Fernandez [Tue, 29 Jun 2021 14:56:18 +0000 (07:56 -0700)]
add a CHANGELOG.md entry for the GTK→GDLIB change
This fix and the GD_LIBS→GDLIB_LIBS fix are both addressing problems that were
introduced in
3fcf096870bffa7d21fceecb56ba26e925073ecb .
Matthew Fernandez [Tue, 29 Jun 2021 14:52:46 +0000 (07:52 -0700)]
move GD_LIBS typo fix to Fixes section of CHANGELOG.md
Matthew Fernandez [Tue, 29 Jun 2021 14:51:21 +0000 (07:51 -0700)]
realign configure.ac after removal of $with_gd conditional
Lemures Lemniscati [Mon, 28 Jun 2021 09:14:39 +0000 (18:14 +0900)]
Avoid cases where `$with_libgd = yes` in spite of `$use_gd != Yes`
Such cases would have occurred when
the first `test "x$use_gd" = "x"` [1] is true
and then the third `test "x$use_gd" = "x"` [2] is false.
[1]: Just before `PKG_CHECK_MODULES([GDLIB], [gdlib >= 2.0.33],[`
[2]: Just before `# see if we can use the external gd lib`
Lemures Lemniscati [Mon, 28 Jun 2021 09:14:38 +0000 (18:14 +0900)]
Remove a redundant `if`-conditional, which is always true in its scope
Lemures Lemniscati [Mon, 28 Jun 2021 09:14:37 +0000 (18:14 +0900)]
Fix a typo `GDK` to `[GDLIB]` in a call `PKG_CHECK_MODULES()`
Lemures Lemniscati [Mon, 28 Jun 2021 09:14:36 +0000 (18:14 +0900)]
Remove a redundant arg `$GD_LIBS`
It might be a typo of `$GDLIB_LIBS`,
and, if so, it is redundant, since `$LDFLAGS` contains `$GDLIB_LIBS`.
Lemures Lemniscati [Sun, 27 Jun 2021 08:27:48 +0000 (17:27 +0900)]
Update CHANGELOG.md
For https://gitlab.com/graphviz/graphviz/-/merge_requests/2022
Lemures Lemniscati [Sun, 27 Jun 2021 08:27:47 +0000 (17:27 +0900)]
Fix a typo GD_LIBS to GDLIB_LIBS in tclpkg/tcldot/Makefile.am
Matthew Fernandez [Sat, 26 Jun 2021 23:23:34 +0000 (23:23 +0000)]
Merge branch 'smattr/
EFF6337A -A391-409A-9B11-
F11C26A76481 ' into 'main'
CMake: when finding Bison, require ≥3.0
Closes #1916
See merge request graphviz/graphviz!2008
Matthew Fernandez [Sun, 20 Jun 2021 20:07:10 +0000 (13:07 -0700)]
CMake: when finding Bison, require ≥3.0
Commit
4a13c9598ad3d950a251e5d3e5be8d05c59c6214 made the minimum Bison baseline
3.0. This change teaches CMake ths constraint, so using a version of Bison <3.0
now results in a clearer error during configuration rather than a cryptic
failure during build. Closes #1916.
Matthew Fernandez [Sat, 26 Jun 2021 22:13:43 +0000 (22:13 +0000)]
Merge branch 'smattr/
5c6b4c6f -b22b-49a6-8607-
7a4b5caa120a ' into 'main'
clean up in lib/edgepaint
See merge request graphviz/graphviz!2007
Matthew Fernandez [Sun, 20 Jun 2021 19:30:39 +0000 (12:30 -0700)]
remove color_diff and color_diff_sum computation from node_distinct_coloring
Neither of the callers of this function use the results returned in these output
parameters.
Matthew Fernandez [Sun, 20 Jun 2021 19:01:06 +0000 (12:01 -0700)]
remove commented out code in node_distinct_coloring.c
Matthew Fernandez [Sun, 20 Jun 2021 18:59:51 +0000 (11:59 -0700)]
remove some variable shadowing in node_distinct_coloring_internal2
Squashes two -Wshadow warnings.
Matthew Fernandez [Sun, 20 Jun 2021 18:52:33 +0000 (11:52 -0700)]
remove unused x parameter to splines_intersect
Matthew Fernandez [Sun, 20 Jun 2021 18:50:14 +0000 (11:50 -0700)]
remove unused color_blend_rgb
Matthew Fernandez [Sun, 20 Jun 2021 18:49:05 +0000 (11:49 -0700)]
remove unused color_blend_rgbstring
Matthew Fernandez [Sun, 20 Jun 2021 18:47:58 +0000 (11:47 -0700)]
return errors from node_distinct_coloring via the return value, rather than flag
This makes things simpler for readers, callers, as well as the compiler.
Matthew Fernandez [Sun, 20 Jun 2021 18:39:52 +0000 (11:39 -0700)]
remove commented out code in edge_distinct_coloring.c
Matthew Fernandez [Sun, 20 Jun 2021 18:36:50 +0000 (11:36 -0700)]
remove unused lab_gamut_from_file