]> granicus.if.org Git - graphviz/log
graphviz
3 years agoMerge branch 'smattr/F500167B-4E3B-48CB-B3CC-D74707171300' into 'main'
Matthew Fernandez [Sat, 4 Sep 2021 16:14:56 +0000 (16:14 +0000)]
Merge branch 'smattr/F500167B-4E3B-48CB-B3CC-D74707171300' into 'main'

yet more Pylint warning squashing

See merge request graphviz/graphviz!2136

3 years agotest_shapes.py: address missing docstrings
Matthew Fernandez [Thu, 2 Sep 2021 03:32:52 +0000 (20:32 -0700)]
test_shapes.py: address missing docstrings

3 years agortest.py: remove shadowing of 'TEST'
Matthew Fernandez [Thu, 2 Sep 2021 03:30:41 +0000 (20:30 -0700)]
rtest.py: remove shadowing of 'TEST'

3 years agortest.py: remove 'OUTDIR' parameter to 'doDiff'
Matthew Fernandez [Thu, 2 Sep 2021 03:28:39 +0000 (20:28 -0700)]
rtest.py: remove 'OUTDIR' parameter to 'doDiff'

This parameter is available as a global. This change removes a Pylint
redefined-outer-name warning.

3 years agortest.py: remove 'REFDIR' parameter to 'doDiff'
Matthew Fernandez [Thu, 2 Sep 2021 03:26:54 +0000 (20:26 -0700)]
rtest.py: remove 'REFDIR' parameter to 'doDiff'

This parameter is available as a global. This change removes a Pylint
redefined-outer-name warning and a Pylint too-many-arguments warning.

3 years agortest.py: remove unused TESTNAME
Matthew Fernandez [Thu, 2 Sep 2021 03:22:31 +0000 (20:22 -0700)]
rtest.py: remove unused TESTNAME

Every usage of this within this file is actually referring to a closer variable
that shadows this global.

3 years agortest.py: address Pylint missing-function-docstring warnings
Matthew Fernandez [Thu, 2 Sep 2021 03:18:17 +0000 (20:18 -0700)]
rtest.py: address Pylint missing-function-docstring warnings

3 years agoshapes.py: remove variable shadowing
Matthew Fernandez [Thu, 2 Sep 2021 03:13:24 +0000 (20:13 -0700)]
shapes.py: remove variable shadowing

Squashes Pylint redefined-outer-name warnings.

3 years agoMerge branch 'smattr/07ffb8b9-aba1-45d9-a6b4-abf34e9278e4' into 'main'
Matthew Fernandez [Sat, 4 Sep 2021 04:22:29 +0000 (04:22 +0000)]
Merge branch 'smattr/07ffb8b9-aba1-45d9-a6b4-abf34e9278e4' into 'main'

ellipse.c clean up

See merge request graphviz/graphviz!2125

3 years agochange ellipse.c #if STANDALONE to #ifdef
Matthew Fernandez [Sun, 29 Aug 2021 19:36:47 +0000 (12:36 -0700)]
change ellipse.c #if STANDALONE to #ifdef

From later usage of this macro in the same file, it looks like this is what was
intended. Squashes a -Wundef build warning.

3 years agogenEllipticPath: remove shadowing of 'etaB' variable
Matthew Fernandez [Sun, 29 Aug 2021 19:33:08 +0000 (12:33 -0700)]
genEllipticPath: remove shadowing of 'etaB' variable

3 years agogenEllipticPath: remove shadowing of 'dEta' variable
Matthew Fernandez [Sun, 29 Aug 2021 19:31:56 +0000 (12:31 -0700)]
genEllipticPath: remove shadowing of 'dEta' variable

3 years agoendPath: remove shadowing of global 'path' variable
Matthew Fernandez [Sun, 29 Aug 2021 19:30:21 +0000 (12:30 -0700)]
endPath: remove shadowing of global 'path' variable

3 years agocurveTo: remove shadowing of global 'path' variable
Matthew Fernandez [Sun, 29 Aug 2021 19:29:36 +0000 (12:29 -0700)]
curveTo: remove shadowing of global 'path' variable

3 years agolineTo: remove shadowing of global 'path' variable
Matthew Fernandez [Sun, 29 Aug 2021 19:27:57 +0000 (12:27 -0700)]
lineTo: remove shadowing of global 'path' variable

3 years agomoveTo: remove shadowing of global 'path' variable
Matthew Fernandez [Sun, 29 Aug 2021 19:27:05 +0000 (12:27 -0700)]
moveTo: remove shadowing of global 'path' variable

3 years agogenEllipticPath: remove shadowing of global 'path' variable
Matthew Fernandez [Sun, 29 Aug 2021 19:23:37 +0000 (12:23 -0700)]
genEllipticPath: remove shadowing of global 'path' variable

3 years agoremove some unused struct names
Matthew Fernandez [Sun, 29 Aug 2021 19:20:25 +0000 (12:20 -0700)]
remove some unused struct names

3 years agogenEllipticPath: remove 'degree' parameter
Matthew Fernandez [Sun, 29 Aug 2021 19:18:02 +0000 (12:18 -0700)]
genEllipticPath: remove 'degree' parameter

This function is only ever called with the argument 3.

3 years agogenEllipticPath: remove 'threshold' parameter
Matthew Fernandez [Sun, 29 Aug 2021 19:08:31 +0000 (12:08 -0700)]
genEllipticPath: remove 'threshold' parameter

This is always called with the same threshold.

3 years agoremove now-unused hand rolled boolean type
Matthew Fernandez [Sun, 29 Aug 2021 19:05:58 +0000 (12:05 -0700)]
remove now-unused hand rolled boolean type

3 years agoendPath: remove 'close' parameter
Matthew Fernandez [Sun, 29 Aug 2021 19:05:26 +0000 (12:05 -0700)]
endPath: remove 'close' parameter

This function is only ever called with the argument true.

3 years agogenEllipticPath: remove 'isSlice' parameter
Matthew Fernandez [Sun, 29 Aug 2021 19:04:10 +0000 (12:04 -0700)]
genEllipticPath: remove 'isSlice' parameter

This function is only ever called with the argument true.

3 years agogenEllipticPath: remove unnecessary bracketing
Matthew Fernandez [Sun, 29 Aug 2021 19:01:20 +0000 (12:01 -0700)]
genEllipticPath: remove unnecessary bracketing

3 years agogenEllipticPath: use a C99 bool instead of boolean type
Matthew Fernandez [Sun, 29 Aug 2021 18:58:51 +0000 (11:58 -0700)]
genEllipticPath: use a C99 bool instead of boolean type

3 years agoMerge branch 'smattr/CC730FC7-8FD1-477A-B0A9-3F40CD40836A' into 'main'
Matthew Fernandez [Sat, 4 Sep 2021 03:26:15 +0000 (03:26 +0000)]
Merge branch 'smattr/CC730FC7-8FD1-477A-B0A9-3F40CD40836A' into 'main'

clean up in lib/common

See merge request graphviz/graphviz!2126

3 years agofindStopColor: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:38:47 +0000 (17:38 -0700)]
findStopColor: remove unnecessary bracketing

3 years agogvRenderJobs: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:38:11 +0000 (17:38 -0700)]
gvRenderJobs: remove unnecessary bracketing

3 years agostyle_token: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:37:15 +0000 (17:37 -0700)]
style_token: remove unnecessary bracketing

3 years agoemit_clusters: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:36:09 +0000 (17:36 -0700)]
emit_clusters: remove unnecessary bracketing

3 years agoinit_job_viewport: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:33:29 +0000 (17:33 -0700)]
init_job_viewport: remove unnecessary bracketing

3 years agoinit_job_dpi: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:31:38 +0000 (17:31 -0700)]
init_job_dpi: remove unnecessary bracketing

3 years agoinit_gvc: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:30:47 +0000 (17:30 -0700)]
init_gvc: remove unnecessary bracketing

3 years agoxdotBB: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:29:55 +0000 (17:29 -0700)]
xdotBB: remove unnecessary bracketing

3 years agoexpandBB: rephrase open coding to fmax, fmin
Matthew Fernandez [Mon, 30 Aug 2021 00:28:41 +0000 (17:28 -0700)]
expandBB: rephrase open coding to fmax, fmin

3 years agoemit_edge_label: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:26:17 +0000 (17:26 -0700)]
emit_edge_label: remove unnecessary bracketing

3 years agoremove unnecessary void* casts in calls to strdup_and_subst_obj
Matthew Fernandez [Mon, 30 Aug 2021 00:25:26 +0000 (17:25 -0700)]
remove unnecessary void* casts in calls to strdup_and_subst_obj

These pointers implicitly coerce.

3 years agoemit_begin_edge: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:25:08 +0000 (17:25 -0700)]
emit_begin_edge: remove unnecessary bracketing

3 years agoemit_edge_graphics: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:21:19 +0000 (17:21 -0700)]
emit_edge_graphics: remove unnecessary bracketing

3 years agotaperfun: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:19:47 +0000 (17:19 -0700)]
taperfun: remove unnecessary bracketing

3 years agobothfunc: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:19:20 +0000 (17:19 -0700)]
bothfunc: remove unnecessary bracketing

3 years agononefunc: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:18:34 +0000 (17:18 -0700)]
nonefunc: remove unnecessary bracketing

3 years agorevfunc: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:18:15 +0000 (17:18 -0700)]
revfunc: remove unnecessary bracketing

3 years agoforfunc: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:17:39 +0000 (17:17 -0700)]
forfunc: remove unnecessary bracketing

3 years agomulticolor: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:16:59 +0000 (17:16 -0700)]
multicolor: remove unnecessary bracketing

3 years agoemit_attachment: use a more appropriate type for 's' local
Matthew Fernandez [Mon, 30 Aug 2021 00:15:05 +0000 (17:15 -0700)]
emit_attachment: use a more appropriate type for 's' local

3 years agoemit_node: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:12:02 +0000 (17:12 -0700)]
emit_node: remove unnecessary bracketing

3 years agoemit_begin_node: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:11:25 +0000 (17:11 -0700)]
emit_begin_node: remove unnecessary bracketing

3 years agosetup_page: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:09:58 +0000 (17:09 -0700)]
setup_page: remove unnecessary bracketing

3 years agoemit_xdot: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:08:35 +0000 (17:08 -0700)]
emit_xdot: remove unnecessary bracketing

3 years agoinit_job_pagination: use fmax instead of open coding
Matthew Fernandez [Mon, 30 Aug 2021 00:05:37 +0000 (17:05 -0700)]
init_job_pagination: use fmax instead of open coding

3 years agoinit_job_pagination: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:05:26 +0000 (17:05 -0700)]
init_job_pagination: remove unnecessary bracketing

3 years agofirstlayer: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:01:19 +0000 (17:01 -0700)]
firstlayer: remove unnecessary bracketing

3 years agoinit_layering: remove unnecessary bracketing
Matthew Fernandez [Mon, 30 Aug 2021 00:00:08 +0000 (17:00 -0700)]
init_layering: remove unnecessary bracketing

3 years agomap_output_bspline: remove unnecessary bracketing
Matthew Fernandez [Sun, 29 Aug 2021 23:58:58 +0000 (16:58 -0700)]
map_output_bspline: remove unnecessary bracketing

3 years agobisect: remove unnecessary bracketing
Matthew Fernandez [Sun, 29 Aug 2021 23:58:09 +0000 (16:58 -0700)]
bisect: remove unnecessary bracketing

3 years agoisFilled: return a C99 bool instead of int
Matthew Fernandez [Sun, 29 Aug 2021 23:55:52 +0000 (16:55 -0700)]
isFilled: return a C99 bool instead of int

3 years agorename 'ifFilled' to 'isFilled'
Matthew Fernandez [Sun, 29 Aug 2021 23:52:34 +0000 (16:52 -0700)]
rename 'ifFilled' to 'isFilled'

From the leading comment, this is what it was intended to be called.

3 years agostripedBox: remove unnecessary bracketing
Matthew Fernandez [Sun, 29 Aug 2021 23:51:37 +0000 (16:51 -0700)]
stripedBox: remove unnecessary bracketing

3 years agowedgedEllipse: remove unnecessary bracketing
Matthew Fernandez [Sun, 29 Aug 2021 23:50:58 +0000 (16:50 -0700)]
wedgedEllipse: remove unnecessary bracketing

3 years agocheckClusterStyle: remove unnecessary bracketing
Matthew Fernandez [Sun, 29 Aug 2021 23:49:08 +0000 (16:49 -0700)]
checkClusterStyle: remove unnecessary bracketing

3 years agogetObjId: remove unnecessary bracketing
Matthew Fernandez [Sun, 29 Aug 2021 23:47:46 +0000 (16:47 -0700)]
getObjId: remove unnecessary bracketing

3 years agolayerPagePrefix: remove unnecessary bracketing
Matthew Fernandez [Sun, 29 Aug 2021 23:47:08 +0000 (16:47 -0700)]
layerPagePrefix: remove unnecessary bracketing

3 years agocolorseg_t: use a C99 bool for 'hasFraction' field
Matthew Fernandez [Sun, 29 Aug 2021 23:45:55 +0000 (16:45 -0700)]
colorseg_t: use a C99 bool for 'hasFraction' field

3 years agoisRect: remove unnecessary bracketing
Matthew Fernandez [Sun, 29 Aug 2021 23:45:14 +0000 (16:45 -0700)]
isRect: remove unnecessary bracketing

3 years agoisRect: use a C99 bool return type instead of boolean
Matthew Fernandez [Sun, 29 Aug 2021 23:44:45 +0000 (16:44 -0700)]
isRect: use a C99 bool return type instead of boolean

3 years agointerpretCRNL: use a C99 bool for 'backslash_seen' local
Matthew Fernandez [Sun, 29 Aug 2021 23:43:51 +0000 (16:43 -0700)]
interpretCRNL: use a C99 bool for 'backslash_seen' local

3 years agoremove some open coded NULLs
Matthew Fernandez [Sun, 29 Aug 2021 23:43:10 +0000 (16:43 -0700)]
remove some open coded NULLs

3 years agoparse_style: use a C99 bool for 'in_parens' local
Matthew Fernandez [Sun, 29 Aug 2021 23:41:27 +0000 (16:41 -0700)]
parse_style: use a C99 bool for 'in_parens' local

3 years agoparse_style: use a C99 bool for 'is_first' local
Matthew Fernandez [Sun, 29 Aug 2021 23:40:31 +0000 (16:40 -0700)]
parse_style: use a C99 bool for 'is_first' local

3 years agois_style_delim: use a C99 bool return type instead of boolean
Matthew Fernandez [Sun, 29 Aug 2021 23:39:39 +0000 (16:39 -0700)]
is_style_delim: use a C99 bool return type instead of boolean

3 years agonodeIntersect: use a C99 bool for 'explicit' local
Matthew Fernandez [Sun, 29 Aug 2021 23:38:37 +0000 (16:38 -0700)]
nodeIntersect: use a C99 bool for 'explicit' local

3 years agoemit_edge_graphics: use a C99 bool for 'tapered' local
Matthew Fernandez [Sun, 29 Aug 2021 23:37:32 +0000 (16:37 -0700)]
emit_edge_graphics: use a C99 bool for 'tapered' local

3 years agonode_in_box: use a C99 bool return type instead of boolean
Matthew Fernandez [Sun, 29 Aug 2021 23:36:47 +0000 (16:36 -0700)]
node_in_box: use a C99 bool return type instead of boolean

3 years agoclust_in_layer: use a C99 bool return type instead of boolean
Matthew Fernandez [Sun, 29 Aug 2021 23:35:53 +0000 (16:35 -0700)]
clust_in_layer: use a C99 bool return type instead of boolean

3 years agoedge_in_layer: remove unnecessary bracketing
Matthew Fernandez [Sun, 29 Aug 2021 23:35:05 +0000 (16:35 -0700)]
edge_in_layer: remove unnecessary bracketing

3 years agoedge_in_layer: use a C99 bool return type instead of boolean
Matthew Fernandez [Sun, 29 Aug 2021 23:34:42 +0000 (16:34 -0700)]
edge_in_layer: use a C99 bool return type instead of boolean

3 years agonode_in_layer: remove unnecessary bracketing
Matthew Fernandez [Sun, 29 Aug 2021 23:34:01 +0000 (16:34 -0700)]
node_in_layer: remove unnecessary bracketing

3 years agonode_in_layer: use a C99 bool return type instead of boolean
Matthew Fernandez [Sun, 29 Aug 2021 23:33:38 +0000 (16:33 -0700)]
node_in_layer: use a C99 bool return type instead of boolean

3 years agowrite_node_test: use a C99 bool return type instead of boolean
Matthew Fernandez [Sun, 29 Aug 2021 23:32:45 +0000 (16:32 -0700)]
write_node_test: use a C99 bool return type instead of boolean

3 years agowrite_edge_test: use a C99 bool return type instead of boolean
Matthew Fernandez [Sun, 29 Aug 2021 23:32:10 +0000 (16:32 -0700)]
write_edge_test: use a C99 bool return type instead of boolean

3 years agovalidpage: remove unnecessary bracketing
Matthew Fernandez [Sun, 29 Aug 2021 23:31:34 +0000 (16:31 -0700)]
validpage: remove unnecessary bracketing

3 years agovalidpage: use a C99 bool return type instead of boolean
Matthew Fernandez [Sun, 29 Aug 2021 23:30:57 +0000 (16:30 -0700)]
validpage: use a C99 bool return type instead of boolean

3 years agovalidlayer: remove unnecessary bracketing
Matthew Fernandez [Sun, 29 Aug 2021 23:30:16 +0000 (16:30 -0700)]
validlayer: remove unnecessary bracketing

3 years agovalidlayer: use a C99 bool return type instead of boolean
Matthew Fernandez [Sun, 29 Aug 2021 23:29:57 +0000 (16:29 -0700)]
validlayer: use a C99 bool return type instead of boolean

3 years agoselectedLayer: remove unnecessary bracketing
Matthew Fernandez [Sun, 29 Aug 2021 23:29:28 +0000 (16:29 -0700)]
selectedLayer: remove unnecessary bracketing

3 years agoselectedLayer: use a C99 bool return type instead of boolean
Matthew Fernandez [Sun, 29 Aug 2021 23:28:37 +0000 (16:28 -0700)]
selectedLayer: use a C99 bool return type instead of boolean

3 years agois_natural_number: use more precise type for input parameter
Matthew Fernandez [Sun, 29 Aug 2021 23:26:16 +0000 (16:26 -0700)]
is_natural_number: use more precise type for input parameter

We can be more strict and rigorous with how we deal with strings here.

3 years agois_natural_number: use a C99 bool return type instead of boolean
Matthew Fernandez [Sun, 29 Aug 2021 23:25:38 +0000 (16:25 -0700)]
is_natural_number: use a C99 bool return type instead of boolean

3 years agomore standard usage of isdigit and friends
Matthew Fernandez [Sun, 29 Aug 2021 23:21:59 +0000 (16:21 -0700)]
more standard usage of isdigit and friends

3 years agoremove some commented out code
Matthew Fernandez [Sun, 29 Aug 2021 23:20:38 +0000 (16:20 -0700)]
remove some commented out code

3 years agocolorcmpf: remove strcmp micro-optimization
Matthew Fernandez [Sun, 29 Aug 2021 23:19:57 +0000 (16:19 -0700)]
colorcmpf: remove strcmp micro-optimization

This is unnecessary when using a modern compiler.

3 years agocolorcmpf: remove unnecessary casts
Matthew Fernandez [Sun, 29 Aug 2021 23:19:20 +0000 (16:19 -0700)]
colorcmpf: remove unnecessary casts

These pointers implicitly coerce.

3 years agocolorxlate: remove some unnecessary bracketing
Matthew Fernandez [Sun, 29 Aug 2021 23:18:41 +0000 (16:18 -0700)]
colorxlate: remove some unnecessary bracketing

3 years agocolorxlate: remove strcmp micro-optimization
Matthew Fernandez [Sun, 29 Aug 2021 23:17:17 +0000 (16:17 -0700)]
colorxlate: remove strcmp micro-optimization

This is unnecessary when using a modern compiler.

3 years agoreplace header guards in lib/common with more modern #pragma once
Matthew Fernandez [Sun, 29 Aug 2021 22:38:10 +0000 (15:38 -0700)]
replace header guards in lib/common with more modern #pragma once

3 years agoremove cryptic globals.h comment
Matthew Fernandez [Sun, 29 Aug 2021 22:29:56 +0000 (15:29 -0700)]
remove cryptic globals.h comment

The link in this comment is dead and it is unclear what it is referring to.

3 years agocolorxlate: squash some -Wswitch-default warnings
Matthew Fernandez [Sun, 29 Aug 2021 22:20:12 +0000 (15:20 -0700)]
colorxlate: squash some -Wswitch-default warnings

3 years agocolorxlate: squash some -Wconversion warnings
Matthew Fernandez [Sun, 29 Aug 2021 22:19:20 +0000 (15:19 -0700)]
colorxlate: squash some -Wconversion warnings

By design, these calculations cannot overflow.

3 years agocolorCvt: remove commented out code
Matthew Fernandez [Sun, 29 Aug 2021 22:19:02 +0000 (15:19 -0700)]
colorCvt: remove commented out code