]>
granicus.if.org Git - graphviz/log
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
Matthew Fernandez [Sun, 20 Jun 2021 18:34:35 +0000 (11:34 -0700)]
fix: incorrect failure diagnosis in lab_gamut_quadtree call
This function can only fail due to exhausting memory, not due to the lab_gamut
file failing to be opened. As per the previous commit, this file is no longer
relevant as the gamut information is in the source itself.
Matthew Fernandez [Sun, 20 Jun 2021 18:23:31 +0000 (11:23 -0700)]
remove unused gamut_file parameter to lab_gamut_quadtree
Commit
5649b9fa3dd7699750cfd69753ab4d54d29e469f added the gamut data in the
source code itself, so it does not need to be read in from a file.
Matthew Fernandez [Sat, 26 Jun 2021 20:06:30 +0000 (20:06 +0000)]
Merge branch 'smattr/
2738CB52 -612E-47E9-8950-
4DA41DAB9A7D ' into 'main'
some clean up around usage of zmalloc
See merge request graphviz/graphviz!2010
Matthew Fernandez [Mon, 21 Jun 2021 00:54:01 +0000 (17:54 -0700)]
remove some commented out code in gvusershape_open
Matthew Fernandez [Mon, 21 Jun 2021 00:52:33 +0000 (17:52 -0700)]
remove unnecessary cast in gvusershape_open
The result of find_user_shape, shape_desc*, implicitly coerces to void*.
Matthew Fernandez [Mon, 21 Jun 2021 00:50:58 +0000 (17:50 -0700)]
remove redundant error check in gvusershape_open
The zmalloc function calls exit() on failure, so there is not need to check its
return value for out-of-memory.
Matthew Fernandez [Mon, 21 Jun 2021 00:49:53 +0000 (17:49 -0700)]
remove unnecessary cast in gvjobs_next
The result of zmalloc, void*, implicitly coerces to all other pointer types.
Matthew Fernandez [Mon, 21 Jun 2021 00:48:41 +0000 (17:48 -0700)]
remove redundant error check in gvNEWcontext
The zmalloc function calls exit() on failure, so there is not need to check its
return value for out-of-memory.
Matthew Fernandez [Mon, 21 Jun 2021 00:47:31 +0000 (17:47 -0700)]
remove redundant error check in push_obj_state
The zmalloc function calls exit() on failure, so there is not need to check its
return value for out-of-memory.
Matthew Fernandez [Sat, 26 Jun 2021 18:44:53 +0000 (18:44 +0000)]
Merge branch 'smattr/
3FE7CC37 -7FE8-4BD6-9C4E-
C4A17C4ACB68 ' into 'main'
introduce branch-tuning support
See merge request graphviz/graphviz!2011
Matthew Fernandez [Mon, 21 Jun 2021 00:44:59 +0000 (17:44 -0700)]
mark verbose reporting in gvParseArgs as unlikely
This indicates to the compiler it should predict the condition of this branch as
false in its optimization choices.
Matthew Fernandez [Mon, 21 Jun 2021 00:40:20 +0000 (17:40 -0700)]
add macros for branch-tuning optimization
Matthew Fernandez [Sat, 26 Jun 2021 17:28:07 +0000 (17:28 +0000)]
Merge branch 'smattr/
D9E1B66F -05C1-4156-960B-
F48BF3FA06EC ' into 'main'
add a better way of indicating unreachable code
See merge request graphviz/graphviz!2009
Matthew Fernandez [Sun, 20 Jun 2021 21:18:12 +0000 (14:18 -0700)]
fix some comment typos
Matthew Fernandez [Sun, 20 Jun 2021 21:16:24 +0000 (14:16 -0700)]
swap assertion in agdelrec for a call to UNREACHABLE
This removes some -Wstring-conversion warnings when building with Clang, due to
the expression `!"unreachable"`. It also teaches the compiler it can more
aggressively optimize this switch.
Matthew Fernandez [Sun, 20 Jun 2021 21:11:33 +0000 (14:11 -0700)]
swap assertion in setattr for a call to UNREACHABLE
This removes some -Wstring-conversion warnings when building with Clang, due to
the expression `!"unreachable"`. It also teaches the compiler it can more
aggressively optimize this switch.
Matthew Fernandez [Sun, 20 Jun 2021 21:09:41 +0000 (14:09 -0700)]
add a macro for optimizing unreachable code
Matthew Fernandez [Sat, 26 Jun 2021 16:39:44 +0000 (16:39 +0000)]
Merge branch 'smattr/
C266706C -CF93-4076-8F45-
297A35F08DDC ' into 'main'
only enable -Wtrampolines and -Wlogical-op for compilers that support them
Closes #2066
See merge request graphviz/graphviz!2004
Matthew Fernandez [Fri, 18 Jun 2021 15:07:27 +0000 (08:07 -0700)]
only enable -Wtrampolines and -Wlogical-op for compilers that support them
This fixes an issue where these flags were enabled for Clang, despite it not
supporting them. This did not fail the build, but produced a lot of noisy
warning output about unsupported flags. Closes #2066.
Matthew Fernandez [Sat, 26 Jun 2021 05:15:33 +0000 (05:15 +0000)]
Merge branch 'smattr/
d7229a4a -c7dd-4aaa-bbd2-
016b3839b8e1 ' into 'main'
test cases for ortho routing bugs and typo fix in eqEndSeg
Closes #2047
See merge request graphviz/graphviz!2006
Matthew Fernandez [Sat, 19 Jun 2021 20:19:04 +0000 (13:19 -0700)]
remove excess bracketing in eqEndSeg
Matthew Fernandez [Sat, 19 Jun 2021 20:16:56 +0000 (13:16 -0700)]
fix typo in eqEndSeg
This fixes a typo which was causing this function to check equality incorrectly.
Unfortunately this seems to have no effect on any open ortho-related bugs.
Closes #2047.
Matthew Fernandez [Sat, 19 Jun 2021 18:41:24 +0000 (11:41 -0700)]
add a test case for #144
Matthew Fernandez [Sat, 19 Jun 2021 18:00:39 +0000 (11:00 -0700)]
add a test case for #1658
Matthew Fernandez [Sat, 19 Jun 2021 17:56:56 +0000 (10:56 -0700)]
add a test case for #56
Matthew Fernandez [Sat, 19 Jun 2021 17:55:00 +0000 (10:55 -0700)]
add a test case for #1880
Matthew Fernandez [Sat, 19 Jun 2021 17:51:34 +0000 (10:51 -0700)]
add a test case for #1856
Matthew Fernandez [Sat, 19 Jun 2021 17:01:22 +0000 (10:01 -0700)]
add a test case for #1990
Matthew Fernandez [Sat, 19 Jun 2021 16:57:46 +0000 (09:57 -0700)]
add a test case for #14
Matthew Fernandez [Sat, 19 Jun 2021 16:53:25 +0000 (09:53 -0700)]
add a test case for #1408
Matthew Fernandez [Sat, 26 Jun 2021 03:47:34 +0000 (03:47 +0000)]
Merge branch 'smattr/
d00934a1 -c2db-4d93-b033-
bfda973477bf ' into 'main'
more clean up in lib/sparse
See merge request graphviz/graphviz!2005
Matthew Fernandez [Sat, 19 Jun 2021 21:14:37 +0000 (14:14 -0700)]
remove unused SparseMatrix_scaled_by_vector
Matthew Fernandez [Sat, 19 Jun 2021 21:07:01 +0000 (14:07 -0700)]
remove unused lib/sparse macros
Matthew Fernandez [Sat, 19 Jun 2021 21:01:28 +0000 (14:01 -0700)]
remove unused dump_coordinates
Matthew Fernandez [Sat, 19 Jun 2021 21:00:22 +0000 (14:00 -0700)]
remove unused SparseMatrix_read_dot
Matthew Fernandez [Sat, 19 Jun 2021 20:58:53 +0000 (13:58 -0700)]
remove prototype for unimplemented function
This function was removed in
32ad37113a52a6818b19c6ab0554bed224da2a1d , but its
prototype was left behind.
Matthew Fernandez [Sat, 19 Jun 2021 20:50:25 +0000 (13:50 -0700)]
remove unused makeDotGraph
Matthew Fernandez [Sat, 19 Jun 2021 20:49:02 +0000 (13:49 -0700)]
remove unused convert_edge_labels_to_nodes
Matthew Fernandez [Sat, 19 Jun 2021 20:48:00 +0000 (13:48 -0700)]
remove unused assign_random_edge_color
Matthew Fernandez [Sat, 19 Jun 2021 20:47:03 +0000 (13:47 -0700)]
remove unused edgelist_export
Matthew Fernandez [Sat, 19 Jun 2021 20:44:37 +0000 (13:44 -0700)]
remove unused hue2rgb_real
Matthew Fernandez [Sat, 26 Jun 2021 02:26:48 +0000 (02:26 +0000)]
Merge branch 'smattr/
4776D4AA -9B85-4010-BF10-
ED5243311BE9 ' into 'main'
clean up in lib/cgraph/io.c
See merge request graphviz/graphviz!2012
Mark Hansen [Sat, 26 Jun 2021 01:17:46 +0000 (01:17 +0000)]
Update CHANGELOG.md
For https://gitlab.com/graphviz/graphviz/-/merge_requests/2017
Mark Hansen [Sat, 26 Jun 2021 01:00:54 +0000 (01:00 +0000)]
Merge branch 'fix-path-of-gvc.def' into 'main'
Fix a path of gvc.def specified in libgvc_la_LDFLAGS (WITH_WIN32)
See merge request graphviz/graphviz!2017
Lemures Lemniscati [Sat, 26 Jun 2021 00:20:02 +0000 (09:20 +0900)]
Fix a path of gvc.def specified in libgvc_la_LDFLAGS (WITH_WIN32)
Matthew Fernandez [Tue, 22 Jun 2021 04:08:33 +0000 (21:08 -0700)]
remove some unnecessary bracketing in memiofread
Matthew Fernandez [Tue, 22 Jun 2021 04:06:41 +0000 (21:06 -0700)]
remove unnecessary cast in memiofread
A void* implicitly coerces to an rdr_t*.
Matthew Fernandez [Tue, 22 Jun 2021 04:05:58 +0000 (21:05 -0700)]
remove unnecessary cast in ioflush
The function fflush takes a FILE* to which void* implicitly coerces.
Matthew Fernandez [Tue, 22 Jun 2021 04:05:18 +0000 (21:05 -0700)]
remove unnecessary cast in ioputstr
The function fputs takes a FILE* as its second argument, to which void*
implicitly coerces.
Matthew Fernandez [Tue, 22 Jun 2021 04:03:49 +0000 (21:03 -0700)]
squash a -Wsign-conversion warning in iofread
The preceding call to fgets can only have returned at most bufsize - 1
characters, so it is safe to downcast the size_t result of strlen to an int.
Matthew Fernandez [Tue, 22 Jun 2021 04:03:05 +0000 (21:03 -0700)]
remove unnecessary cast in iofread
The function fgets takes a FILE* as its third argument, to which void*
implicitly coerces.
Matthew Fernandez [Fri, 25 Jun 2021 15:27:28 +0000 (15:27 +0000)]
Merge branch 'smattr/
5a012c5d -e9c4-4395-97b1-
ef472d03fc83 ' into 'main'
clean up in cmd/gvmap
See merge request graphviz/graphviz!2014
Matthew Fernandez [Wed, 23 Jun 2021 01:33:15 +0000 (18:33 -0700)]
fix some comment typos
Matthew Fernandez [Wed, 23 Jun 2021 01:32:22 +0000 (18:32 -0700)]
remove some unnecessary bracketing
Matthew Fernandez [Wed, 23 Jun 2021 01:13:42 +0000 (18:13 -0700)]
remove dynamic allocation capability of power_method for eigs
The behavior to dynamically allocate memory for eigs was not documented (unlike
the parameter eigv). However, the only caller was not using this anyway. This
commit removes it to ease ongoing maintenance.
Matthew Fernandez [Wed, 23 Jun 2021 01:05:08 +0000 (18:05 -0700)]
inline tol and maxit from power_method into power.c as constants
The function power_method is only called in a single location. There it is
called with constants for tol and maxit. So it is simpler to remove these as
parameters and just specify them directly next to power_method.
Matthew Fernandez [Wed, 23 Jun 2021 00:54:23 +0000 (17:54 -0700)]
remove now-unused improve_antibandwidth_by_swapping_cheap
Matthew Fernandez [Wed, 23 Jun 2021 00:44:47 +0000 (17:44 -0700)]
remove unnecessary do_swapping parameter to country_graph_coloring_internal
This function is only ever called with do_swapping == DO_SWAPPING.
Matthew Fernandez [Wed, 23 Jun 2021 00:40:13 +0000 (17:40 -0700)]
remove an open coded NULL in cluster.c
Matthew Fernandez [Wed, 23 Jun 2021 00:37:49 +0000 (17:37 -0700)]
make cluster usage string a constant array
Minor clarity change that makes it more obvious to readers and the compiler that
this string is a constant that can be inlined at its usage site.
Matthew Fernandez [Wed, 23 Jun 2021 00:35:28 +0000 (17:35 -0700)]
gvmap: uniformly treat clock() results as clock_t or double
The return type of clock(), clock_t, is an unspecified real type. The usual way
to deal with it is to upcast it to a double when doing computation or printing,
as is done in this commit. Squashes 8 -Wconversion warnings.
Matthew Fernandez [Wed, 23 Jun 2021 00:25:02 +0000 (17:25 -0700)]
remove a useless return statement
Matthew Fernandez [Wed, 23 Jun 2021 00:24:23 +0000 (17:24 -0700)]
mark clusterGraph as static
This function is not used outside of its containing file.
Matthew Fernandez [Fri, 25 Jun 2021 14:38:02 +0000 (14:38 +0000)]
Merge branch 'smattr/
4BAD66AE -4F6D-4F40-96A2-
755E25EF6F5A ' into 'main'
some clean up of lib/sparse/general.c
See merge request graphviz/graphviz!2015
Matthew Fernandez [Wed, 23 Jun 2021 03:48:06 +0000 (20:48 -0700)]
remove unused vector_take
Matthew Fernandez [Wed, 23 Jun 2021 03:47:10 +0000 (20:47 -0700)]
remove unused validQ_int_string
Matthew Fernandez [Wed, 23 Jun 2021 03:46:38 +0000 (20:46 -0700)]
remove unused digitsQ
Matthew Fernandez [Wed, 23 Jun 2021 03:45:08 +0000 (20:45 -0700)]
remove unused excute_system_command3
Similar to the previous commit, this function seems to have a typoed name and
unsafe behavior.
Matthew Fernandez [Wed, 23 Jun 2021 03:44:10 +0000 (20:44 -0700)]
remove unused excute_system_command
This function appears to have a typo in its name and also do something quite
unsafe.
Matthew Fernandez [Wed, 23 Jun 2021 03:42:44 +0000 (20:42 -0700)]
remove unused vector_percentile
Matthew Fernandez [Wed, 23 Jun 2021 03:41:55 +0000 (20:41 -0700)]
remove unused vector_median
Matthew Fernandez [Wed, 23 Jun 2021 03:39:51 +0000 (20:39 -0700)]
remove ascending parameter to vector_sort_int
The only calls to this uses ascending, so having this configurable was adding
unnecessary maintenance burden.
Matthew Fernandez [Wed, 23 Jun 2021 03:37:20 +0000 (20:37 -0700)]
remove unused vector_sort_real
Matthew Fernandez [Wed, 23 Jun 2021 03:35:33 +0000 (20:35 -0700)]
remove ascending parameter from vector_ordering
All calls to this use ascending, so having this configurable was adding
unnecessary maintenance burden.
Matthew Fernandez [Fri, 25 Jun 2021 05:01:21 +0000 (05:01 +0000)]
Merge branch 'smattr/
1b923de5 -43ac-4445-adfe-
fd9b1512bd2b ' into 'main'
cleanup configure.ac
See merge request graphviz/graphviz!2002
Matthew Fernandez [Sat, 19 Jun 2021 00:07:57 +0000 (17:07 -0700)]
remove legacy advice to build on Fedora 8
Fedora 8 was EOLed in 2009. Compiling Graphviz on it in 2021 is not a journey
likely to end in happiness.
Matthew Fernandez [Sat, 19 Jun 2021 00:07:53 +0000 (17:07 -0700)]
update Graphviz URL in AC_INIT configure setup
This URL was out of date (the current Graphviz URL is https://graphviz.org/),
but the third parameter of AC_INIT is also expected to be the bug tracker, not
the project’s homepage.
Matthew Fernandez [Sat, 19 Jun 2021 00:07:50 +0000 (17:07 -0700)]
remove configure check for strerror
The strerror function is in ISO C, even prior to C99. POSIX defines some
extensions to it, but Graphviz does not rely on any of these. In either case,
there is no need to link against anything beyond libc.
Matthew Fernandez [Sat, 19 Jun 2021 00:07:45 +0000 (17:07 -0700)]
remove commented out Tclsh configure checks
Matthew Fernandez [Sat, 19 Jun 2021 00:07:42 +0000 (17:07 -0700)]
remove commented out D configure checks
Matthew Fernandez [Sat, 19 Jun 2021 00:07:38 +0000 (17:07 -0700)]
remove commented out Go configure checks
Matthew Fernandez [Sat, 19 Jun 2021 00:07:34 +0000 (17:07 -0700)]
remove commented out JavaScript configure checks
Matthew Fernandez [Sat, 19 Jun 2021 00:07:30 +0000 (17:07 -0700)]
remove commented out TCL AC_SUBST configure commands
Matthew Fernandez [Sat, 19 Jun 2021 20:25:23 +0000 (13:25 -0700)]
adjust indentation after prior commit
Matthew Fernandez [Sat, 19 Jun 2021 00:07:26 +0000 (17:07 -0700)]
remove commented out Visio configure checks
Matthew Fernandez [Sat, 19 Jun 2021 00:07:21 +0000 (17:07 -0700)]
remove commented out ANN configure checks
Matthew Fernandez [Sat, 19 Jun 2021 00:07:17 +0000 (17:07 -0700)]
remove GD_GIFANIM configure checks
Nothing in Graphviz depends on this.
Matthew Fernandez [Sat, 19 Jun 2021 00:07:11 +0000 (17:07 -0700)]
remove GD_OPENPOLYGON configure checks
Nothing in Graphviz depends on this.
Matthew Fernandez [Sat, 19 Jun 2021 00:07:05 +0000 (17:07 -0700)]
remove legacy __eprintf dependency check
This check was forcing assertions off if using them depends on __eprintf. It is
unclear to me what the motivation for this is and it was introduced in the
initial revision with no further information. As far as I am aware, this is no
longer relevant. Modern libc is intended to provide everything necessary to
support assert, unless you are building freestanding which Graphviz does not
support.
Matthew Fernandez [Wed, 23 Jun 2021 01:58:37 +0000 (01:58 +0000)]
Merge branch 'smattr/
9ca97a2a -a1dc-4631-9310-
ded139978324 ' into 'main'
clean up in lib/sfdpgen
See merge request graphviz/graphviz!2000
Matthew Fernandez [Thu, 17 Jun 2021 00:54:30 +0000 (17:54 -0700)]
replace lib/sfdpgen header guards with more modern #pragma once
Matthew Fernandez [Thu, 17 Jun 2021 00:54:26 +0000 (17:54 -0700)]
remove unused flag argument to uniform_stress_solve
Matthew Fernandez [Thu, 17 Jun 2021 00:54:23 +0000 (17:54 -0700)]
remove unused flag argument to cg
Matthew Fernandez [Thu, 17 Jun 2021 00:54:19 +0000 (17:54 -0700)]
remove unused flag parameter to conjugate_gradient
Matthew Fernandez [Thu, 17 Jun 2021 00:54:15 +0000 (17:54 -0700)]
remove another pow micro-optimization in spring_electrical.c
A slightly different variant of the instances dealt with in the prior commit.
Matthew Fernandez [Thu, 17 Jun 2021 00:54:10 +0000 (17:54 -0700)]
remove pow micro-optimizations in spring_electrical.c
This code was attempting to optimize the case when the second argument to pow()
was 2. However, modern compilers are able to understand such nuances. In fact,
at -O3 recent Clang *undoes* this branching code into an unconditional call to
pow(). In other words, it considers this branch to multiplication to be a
de-optimization.
This change also incidentally removes 14 -Wfloat-equal warnings.
Matthew Fernandez [Thu, 17 Jun 2021 00:54:06 +0000 (17:54 -0700)]
remove unused jd argument to dmean_get