]>
granicus.if.org Git - graphviz/log
Matthew Fernandez [Sat, 14 Aug 2021 22:15:52 +0000 (15:15 -0700)]
Smyrna GUI menu callbacks: remove excess space, commented out code, brackets
Matthew Fernandez [Sat, 14 Aug 2021 22:11:48 +0000 (15:11 -0700)]
on_gvprbuttonsave_clicked: remove unused local 'charcnt'
Matthew Fernandez [Sat, 14 Aug 2021 22:10:26 +0000 (15:10 -0700)]
change_cursor: remove unused local 'w'
Matthew Fernandez [Sat, 14 Aug 2021 22:08:52 +0000 (15:08 -0700)]
mGraphPropertiesSlot: remove unused local 'respond'
Matthew Fernandez [Sat, 14 Aug 2021 22:02:16 +0000 (15:02 -0700)]
remove unnecessary execv prototype
This is unused in Graphviz. Related to #1998.
Matthew Fernandez [Sat, 14 Aug 2021 21:53:45 +0000 (14:53 -0700)]
remove unused O_TEMPORARY
Related to #1998.
Matthew Fernandez [Sat, 14 Aug 2021 21:51:56 +0000 (14:51 -0700)]
replace sfio SF_MAXLONG with libc LONG_MAX
Related to #1998.
Matthew Fernandez [Sat, 14 Aug 2021 21:50:21 +0000 (14:50 -0700)]
remove unused SF_MAXINT
Related to #1998.
Matthew Fernandez [Sat, 14 Aug 2021 21:49:48 +0000 (14:49 -0700)]
replace sfio SF_MAXCHAR with libc UCHAR_MAX
Related to #1998.
Matthew Fernandez [Thu, 19 Aug 2021 03:35:35 +0000 (03:35 +0000)]
Merge branch 'smattr/
4151f512 -15b8-4cea-b0e4-
86d7ad442341 ' into 'main'
more char* → const char* in libcgraph
Closes #634
See merge request graphviz/graphviz!2100
Matthew Fernandez [Sun, 15 Aug 2021 19:31:18 +0000 (12:31 -0700)]
agsafeset: take const pointers for 'value' and 'def' arguments
Neither of these are modified by this function. Closes #634. I believe this is
the last Cgraph function currently able to receive a modification like this.
Matthew Fernandez [Sun, 15 Aug 2021 19:30:52 +0000 (12:30 -0700)]
agset: take a const pointer for 'value' argument that is not modified
Related to #634.
Matthew Fernandez [Sun, 15 Aug 2021 19:22:10 +0000 (12:22 -0700)]
agattrsym: remove a pointless local
Matthew Fernandez [Sun, 15 Aug 2021 19:09:04 +0000 (12:09 -0700)]
remove some use of open coded NULL when calling agattr
Matthew Fernandez [Sun, 15 Aug 2021 19:09:20 +0000 (12:09 -0700)]
agattr: take a const pointer for 'value' argument that is not modified
Related to #634.
Matthew Fernandez [Sun, 15 Aug 2021 19:16:14 +0000 (12:16 -0700)]
global_def: remove 'dclfun' argument
This function is only ever called with `agattr` as this parameter. Removing this
takes care of the sole use of `agattr` with a function pointer, clearing the way
to modify the type signature of `agattr`. Related to #634.
Matthew Fernandez [Sun, 15 Aug 2021 19:04:44 +0000 (12:04 -0700)]
setattr: take a const pointer for 'value' argument that is not modified
Related to #634.
Matthew Fernandez [Sun, 15 Aug 2021 18:58:34 +0000 (11:58 -0700)]
agxset: take a const pointer for 'value' argument that is not modified
Related to #634.
Matthew Fernandez [Sun, 15 Aug 2021 18:58:11 +0000 (11:58 -0700)]
inline and remove ag_xset macro
This did not seem to be adding any value.
Matthew Fernandez [Sun, 15 Aug 2021 18:50:33 +0000 (11:50 -0700)]
agnewsym: take const pointers for string arguments that are not modified
Related to #634.
Matthew Fernandez [Thu, 19 Aug 2021 02:24:35 +0000 (02:24 +0000)]
Merge branch 'smattr/
0432D029 -37BD-4A2A-B61B-
DA05F137EFE1 ' into 'main'
Remove DATE file and variables
See merge request graphviz/graphviz!2095
Matthew Fernandez [Fri, 13 Aug 2021 00:05:36 +0000 (17:05 -0700)]
autotools: remove some commented out lines
Matthew Fernandez [Fri, 13 Aug 2021 00:04:42 +0000 (17:04 -0700)]
autotools: do not write DATE file
This is not used by CI or other parts of the build system.
Matthew Fernandez [Fri, 13 Aug 2021 00:03:28 +0000 (17:03 -0700)]
do not export DATE file from portable-source CI job
No other CI jobs use this file.
Matthew Fernandez [Fri, 13 Aug 2021 00:01:35 +0000 (17:01 -0700)]
cmake: remove ability to override GRAPHVIZ_VERSION_BUILD
Commit
705ced5fa22ba13f239adfe1ba45713553c1fe05 added the ability to override
the Graphviz version from the command line when configuring the CMake build
system. This is not currently in use and does not seem desirable to maintain
going forwards.
Matthew Fernandez [Wed, 18 Aug 2021 15:22:41 +0000 (15:22 +0000)]
Merge branch 'smattr/
dfe2d6e6 -3d41-4797-b1b9-
3c59049efcf9 ' into 'main'
remove Fmt_t.tmp and some s/boolean/bool modernization
See merge request graphviz/graphviz!2096
Matthew Fernandez [Sat, 14 Aug 2021 04:16:17 +0000 (21:16 -0700)]
edge_in_box: return a C99 bool
Matthew Fernandez [Sat, 14 Aug 2021 04:11:14 +0000 (21:11 -0700)]
remove unused neato_closest
Matthew Fernandez [Sat, 14 Aug 2021 04:07:30 +0000 (21:07 -0700)]
overlap_bale: return a C99 bool
Matthew Fernandez [Sat, 14 Aug 2021 04:06:12 +0000 (21:06 -0700)]
overlap_node: return a C99 bool
Matthew Fernandez [Sat, 14 Aug 2021 04:01:51 +0000 (21:01 -0700)]
gvevent.c: remove unnecessary casts
Matthew Fernandez [Sat, 14 Aug 2021 04:01:26 +0000 (21:01 -0700)]
overlap_edge: return a C99 bool
Matthew Fernandez [Sat, 14 Aug 2021 03:51:39 +0000 (20:51 -0700)]
swap some unnecessary prototypes for a #include
Matthew Fernandez [Sat, 14 Aug 2021 03:48:22 +0000 (20:48 -0700)]
utils.h: fix missing include
This header references agxbuf objects in function prototypes.
Matthew Fernandez [Sat, 14 Aug 2021 03:36:57 +0000 (20:36 -0700)]
overlap_bezier: use a C99 bool return type
Matthew Fernandez [Sat, 14 Aug 2021 03:35:23 +0000 (20:35 -0700)]
overlap_arrow: use C99 bool return type to simplify
Matthew Fernandez [Sat, 14 Aug 2021 03:31:29 +0000 (20:31 -0700)]
overlap_arrow: remove unused 'flag' parameter
Matthew Fernandez [Sat, 14 Aug 2021 03:30:04 +0000 (20:30 -0700)]
arrow_bb: remove unused 'flag' parameter
Matthew Fernandez [Sat, 14 Aug 2021 03:24:16 +0000 (20:24 -0700)]
squash warnings for unused parameters in Arrowtypes functions
These all need to conform to a common prototype, so many have parameters that
they do not need to use.
Matthew Fernandez [Sat, 14 Aug 2021 03:14:43 +0000 (20:14 -0700)]
simplify iteration over Arrowtypes array
The size of this array can be computed at compile-time, allowing the compiler to
unroll loops over its content.
Matthew Fernandez [Sat, 14 Aug 2021 03:05:28 +0000 (20:05 -0700)]
mark Arrowtypes as const
Matthew Fernandez [Sat, 14 Aug 2021 03:03:58 +0000 (20:03 -0700)]
arrows.c: remove commented out code
Matthew Fernandez [Sat, 14 Aug 2021 02:57:43 +0000 (19:57 -0700)]
remove 'tmp' member from 'Fmt_t'
As of merge
9053aaba8f7791983b493c56b5443bf602cc529b and
f0adc7da80a22230174f4afcec12151e3ae28fad , this member is no longer used. Related
to #1998.
Matthew Fernandez [Sat, 14 Aug 2021 21:18:00 +0000 (21:18 +0000)]
Merge branch 'smattr/
1408a71c -89e3-4b1a-8aa9-
c088fe4f01bd ' into 'main'
fix failed Exshort_t type discrimination
Closes #1799
See merge request graphviz/graphviz!2088
Matthew Fernandez [Sun, 8 Aug 2021 19:17:38 +0000 (12:17 -0700)]
remove unused ERROR_catalog
Matthew Fernandez [Sun, 8 Aug 2021 18:50:30 +0000 (11:50 -0700)]
remove Exshort_t type
This type discrimination did not seem to make much sense (why select between int
and short based on the sizes of long and int?), but more problematically was not
working as intended. This header does not include limits.h, so both LONG_MAX and
INT_MAX were undefined and this expression defaulted to 0 regardless of the
sizes of these types.
Closes #1799.
Matthew Fernandez [Sun, 8 Aug 2021 18:49:32 +0000 (11:49 -0700)]
replace use of Exshort_t type with int
This squashes a number of -Wconversion warnings where int values are written
into these fields. Related to #1799.
Matthew Fernandez [Sun, 8 Aug 2021 18:47:31 +0000 (11:47 -0700)]
remove pad_1 member of Exnode_s
This kind of compile assistance is unnecessary. Compilers can infer the
necessary padding by themselves. Related to #1799.
Matthew Fernandez [Sun, 8 Aug 2021 18:42:09 +0000 (11:42 -0700)]
remove pad_2 member of Exnode_s
This padding seems unnecessary. Nothing relies on the size of this struct.
Related to #1799.
Matthew Fernandez [Tue, 3 Aug 2021 03:50:24 +0000 (20:50 -0700)]
remove %{JAVASCRIPT} build warning during rpmbuild on Fedora
This code was commented out in
05f7c2f6f911c92fcaeafc0a02f6d19537386e0d .
rpmbuild does not like the presence of macros in comments:
warning: Macro expanded in comment on line 100: %{JAVASCRIPT}
Matthew Fernandez [Sat, 14 Aug 2021 02:21:01 +0000 (02:21 +0000)]
Merge branch 'smattr/
3ef81d11 -6c0d-45af-8447-
2824072f5f40 ' into 'main'
remove some use of sfputc, sfputr
See merge request graphviz/graphviz!2093
Matthew Fernandez [Wed, 11 Aug 2021 01:10:26 +0000 (18:10 -0700)]
exsub: remove use of sfio temporary buffer
This removes yet another use of `ex->tmp` within exeval.c code. It is replaced
with a dynamically allocated buffer from vmalloc. This not only reduces reliance
on sfio, but is likely more efficient as data is written directly into a vmalloc
buffer rather than being written to an sfio buffer and then copied to a vmalloc
buffer. Related to #1998.
Matthew Fernandez [Wed, 11 Aug 2021 01:02:22 +0000 (18:02 -0700)]
replace: explicitly brace conditionals
Makes this function a little easier to read.
Matthew Fernandez [Wed, 11 Aug 2021 01:00:25 +0000 (18:00 -0700)]
replace: re-indent body
Upcoming changes refactor parts of this function and its current chaotic indent
style make these changes very error prone to apply. It is hoped that this
reformatting makes the upcoming change safer.
Matthew Fernandez [Wed, 11 Aug 2021 00:36:10 +0000 (17:36 -0700)]
strgrpmatch: reflow some text
Matthew Fernandez [Wed, 11 Aug 2021 00:20:22 +0000 (17:20 -0700)]
Revert "remove now-unused vmresize"
This reverts commit
ab322d219b7dae03fe5f7114dfd0e1d2fc7d3b5d . A `realloc`
analogue appears to be the simplest way of removing sfputr/sfputc usage in
exeval.c. Related to #1998.
Matthew Fernandez [Wed, 11 Aug 2021 00:19:18 +0000 (17:19 -0700)]
exsub: use a C99 bool for 'global' parameter to be clearer
Matthew Fernandez [Wed, 11 Aug 2021 00:12:17 +0000 (17:12 -0700)]
gvprmain.c: remove unnecessary casts
Matthew Fernandez [Wed, 11 Aug 2021 00:10:57 +0000 (17:10 -0700)]
sfwrite: remove unnecessary casts
Matthew Fernandez [Sat, 14 Aug 2021 01:17:41 +0000 (01:17 +0000)]
Merge branch 'smattr/
a7c9e340 -7b78-40cd-947b-
40e8fc6a5e45 ' into 'main'
more warning squashing and clean up
See merge request graphviz/graphviz!2094
Matthew Fernandez [Thu, 12 Aug 2021 02:18:53 +0000 (19:18 -0700)]
pathcat: return a const char* instead of char*
Squashes a -Wcast-qual warning, and is generally more honest.
Matthew Fernandez [Thu, 12 Aug 2021 02:13:57 +0000 (19:13 -0700)]
pathcanon: remove some int-as-char type confusion
Removes a -Wconversion warning.
Matthew Fernandez [Thu, 12 Aug 2021 02:09:28 +0000 (19:09 -0700)]
remove PRESERVE_TRAILING_SLASH and DONT_PRESERVE_TRAILING_SLASH
Neither of these are defined anywhere in the build system(s).
Matthew Fernandez [Thu, 12 Aug 2021 02:07:32 +0000 (19:07 -0700)]
fmquote: squash -Wconversion warnings
These operations appear safe and deliberate to me.
Matthew Fernandez [Thu, 12 Aug 2021 01:53:41 +0000 (18:53 -0700)]
fmtquote: remove reuse of an int variable
Squashes 6 -Wsign-conversion/-Wconversion warnings.
Matthew Fernandez [Thu, 12 Aug 2021 01:42:25 +0000 (18:42 -0700)]
sfwrite: squash a -Wsign-conversion warning
The value of `r` here is known between `0` and `sizeof(buf)`.
Matthew Fernandez [Thu, 12 Aug 2021 01:38:07 +0000 (18:38 -0700)]
sfwr: remove unnecessary cast of 'write' argument
The `write` function takes a `const void*`, which `buf` already is.
Matthew Fernandez [Thu, 12 Aug 2021 01:36:44 +0000 (18:36 -0700)]
sfoutput: squash a -Wsign-conversion warning
This value is guaranteed positive in this branch.
Matthew Fernandez [Thu, 12 Aug 2021 01:34:48 +0000 (18:34 -0700)]
remove disabled _lib_wctype-guarded code
Matthew Fernandez [Thu, 12 Aug 2021 01:34:03 +0000 (18:34 -0700)]
remove _hdr_wchar-guarded code
Nothing in the build system(s) define this.
Matthew Fernandez [Thu, 12 Aug 2021 01:23:56 +0000 (18:23 -0700)]
remove isxdigit shim
This function is defined everywhere as far back as ISO C89.
Matthew Fernandez [Thu, 12 Aug 2021 01:21:27 +0000 (18:21 -0700)]
remove _lib_fnmatch-guarded code
Nothing in the build system(s) define this.
Matthew Fernandez [Fri, 13 Aug 2021 15:40:18 +0000 (15:40 +0000)]
Merge branch 'smattr/
4aa37954 -37b6-4d19-a3b0-
c8554069c3d3 ' into 'main'
more const-ing of API char* arguments
See merge request graphviz/graphviz!2092
Matthew Fernandez [Tue, 10 Aug 2021 02:01:34 +0000 (19:01 -0700)]
rec_apply: take 'preorder' parameter as a C99 bool for clarity
Matthew Fernandez [Tue, 10 Aug 2021 01:58:38 +0000 (18:58 -0700)]
agapply: remove useless comment
This comment is indeed useless. It is clear it is *an* entry point by virtue of
being part of the public API.
Matthew Fernandez [Tue, 10 Aug 2021 01:57:18 +0000 (18:57 -0700)]
aginit: take a const char* instead of char* for record name
This function does not modify its argument. No changelog entry because this is
already covered by the existing #634 one for the upcoming release.
Matthew Fernandez [Tue, 10 Aug 2021 01:55:14 +0000 (18:55 -0700)]
agdelrec: take a const char* instead of char* for record name
This function does not modify its argument. No changelog entry because this is
already covered by the existing #634 one for the upcoming release.
Matthew Fernandez [Tue, 10 Aug 2021 01:53:01 +0000 (18:53 -0700)]
set_data: use a bool for 'mtf'
The externally-facing functions that take a `move_to_front` parameter cannot
easily be updated to take C99 bools without breaking API. But at least the
internal functions can use C99 bools to be clearer.
Matthew Fernandez [Tue, 10 Aug 2021 01:50:04 +0000 (18:50 -0700)]
objputrec: remove unused 'g' parameter
Matthew Fernandez [Tue, 10 Aug 2021 01:49:06 +0000 (18:49 -0700)]
remove unnecessary casts in rec.c
Matthew Fernandez [Tue, 10 Aug 2021 01:46:47 +0000 (18:46 -0700)]
remove unnecessary bracketing in rec.c
Matthew Fernandez [Tue, 10 Aug 2021 01:43:47 +0000 (18:43 -0700)]
agbindrec: realign parameter names in prototype with definition
The C compiler does not care if these names mismatch, but it is less confusing
to be consistent. This change leaves the obj/arg_obj discrepancy alone under the
justification that "arg_obj" is not any more useful externally-facing and "obj"
internally would conflict with an already existing local.
Matthew Fernandez [Tue, 10 Aug 2021 01:41:41 +0000 (18:41 -0700)]
agbindrec: take a const char* instead of char* for record name
This function does not modify its argument. No changelog entry because this is
already covered by the existing #634 one for the upcoming release.
Matthew Fernandez [Tue, 10 Aug 2021 01:33:06 +0000 (18:33 -0700)]
aggetrec: take a const char* instead of char* for record name
This function does not modify its argument. No changelog entry because this is
already covered by the existing #634 one for the upcoming release.
Matthew Fernandez [Tue, 10 Aug 2021 01:30:14 +0000 (18:30 -0700)]
aggetrec: remove micro-optimization of string comparison
This kind of trick is unnecessary on modern machines.
Magnus Jacobsson [Thu, 12 Aug 2021 16:23:58 +0000 (16:23 +0000)]
Merge branch 'dont-wait-for-portable-source-for-cmake-jobs' into 'main'
Reduce latency in CI for CMake jobs + some related cleanup
See merge request graphviz/graphviz!2090
Matthew Fernandez [Thu, 12 Aug 2021 15:43:10 +0000 (15:43 +0000)]
Merge branch 'smattr/
16235491 -04e0-471e-a116-
e92e994517ea ' into 'main'
more steps towards removing sfio
See merge request graphviz/graphviz!2089
Magnus Jacobsson [Mon, 9 Aug 2021 12:08:00 +0000 (14:08 +0200)]
remove the dependency on the portable-source job for autotools test jobs
This dependency is now obsolete and unnecessary although there is no
latency benefit by removing it.
Magnus Jacobsson [Mon, 9 Aug 2021 12:03:40 +0000 (14:03 +0200)]
add archiving of VERSION and COLLECTION to all build jobs
An upcoming commit will remove the dependency to the portable-source
job for all test jobs, so it must be possible the retrieve these files
from the corresponding build job instead. Note that this is used only
for jobs using the portable source which have these files built into
them. Other jobs generate these files as needed.
Magnus Jacobsson [Wed, 11 Aug 2021 18:21:39 +0000 (20:21 +0200)]
remove the dependency on the portable-source job for CMake test jobs
The dependency is unnecessary since both the VERSION and COLLECTION
files are now generated in the CMake test jobs. Note that there
probably is no latency benefit by removing it, since the
portable-source job normally is faster than the CMake builds jobs.
Magnus Jacobsson [Mon, 9 Aug 2021 12:03:40 +0000 (14:03 +0200)]
add generation of VERSION to all CMake test jobs
An upcoming commit will remove the dependency to the portable-source
job for all CMake test jobs, so this file instead needs to be
generated by these jobs. Note that the COLLECTION file is generated by
the CMake test jobs already before this commit.
Magnus Jacobsson [Mon, 9 Aug 2021 11:05:58 +0000 (13:05 +0200)]
remove the dependency on the portable-source job for CMake build jobs
The dependency is now obsolete and this change reduces the latency for
the CMake jobs significantly by not having to wait for the
portable-source job.
Magnus Jacobsson [Mon, 9 Aug 2021 11:26:32 +0000 (13:26 +0200)]
don't read the VERSION file for CMake builds in ci/build.sh
The CMake build system generates this file itself and nothing in this
script uses it for the CMake builds.
An upcoming commit will change the CI configuration to start the CMake
builds jobs directly without waiting for the portable-source job and
since that job produces the VERSION file, it will no longer be present
when the CMake builds jobs start.
Matthew Fernandez [Sun, 8 Aug 2021 23:04:46 +0000 (16:04 -0700)]
remove unnecessary casts of parameters to sfio extf functions
These pointers implicitly coerce. Related to #1998.
Matthew Fernandez [Sun, 8 Aug 2021 22:58:25 +0000 (15:58 -0700)]
remove the first parameter of Sffmtext_f
Neither uses of the only field of this type, extf, were using this parameter.
Related to #1998.
Matthew Fernandez [Sun, 8 Aug 2021 22:36:27 +0000 (15:36 -0700)]
restructure "%.*s" handling to avoid sfio dynamic allocation in expr’s printf
Rather than using the temporary sfio buffer in this code, fmt->tmp, we can just
use the original string as-is as it does not need to be modified. Apart from
slightly accelerating this code, this makes yet more progress towards removing
fmt->tmp and sfio. Related to #1998.
Matthew Fernandez [Sun, 8 Aug 2021 22:39:38 +0000 (15:39 -0700)]
remove the use of an sfio temporary buffer in expr’s qualify
We can simply use regular malloc for this short-lived allocation. Related to
#1998.
Matthew Fernandez [Sun, 8 Aug 2021 22:20:11 +0000 (15:20 -0700)]
remove fallback "%?%K" strftime format in expr’s printf
lib/expr’s printf implementation supports a "%t" format code to print a time. If
no format is provided for this, it would fallback to a default of "%?%K".
While working on #1998, one of my intermediate refactorings moved this string
literal into the actual call to strftime. At this point the compiler politely
interjected that neither "%?" nor "%K" are format strings understood by
strftime. So it seems this results in an invalid call to strftime.
To deal with this, we now throw an error when this function is called with no
format string instead of making an invalid strftime call.
Magnus Jacobsson [Thu, 12 Aug 2021 08:24:44 +0000 (08:24 +0000)]
Merge branch 'add-svg-analyzer' into 'main'
Add an SVG analyzer and use it in the C++ tests
See merge request graphviz/graphviz!2087
Magnus Jacobsson [Thu, 8 Apr 2021 20:51:26 +0000 (22:51 +0200)]
add a few first tests of the rendered SVG