]> granicus.if.org Git - graphviz/log
graphviz
3 years agogvmap: remove dynamic allocation for line color
Matthew Fernandez [Sat, 14 Aug 2021 21:23:13 +0000 (14:23 -0700)]
gvmap: remove dynamic allocation for line color

Following the prior type signature changes, there is no need to dynamically
allocate this.

3 years agoplot_dot_map: take a const pointer for a string that is not modified
Matthew Fernandez [Sat, 14 Aug 2021 21:19:09 +0000 (14:19 -0700)]
plot_dot_map: take a const pointer for a string that is not modified

3 years agoplot_dot_polygons: take a const pointer for a string that is not modified
Matthew Fernandez [Sat, 14 Aug 2021 21:15:50 +0000 (14:15 -0700)]
plot_dot_polygons: take a const pointer for a string that is not modified

3 years agodot_one_poly: take a const pointer for a string that is not modified
Matthew Fernandez [Sat, 14 Aug 2021 21:13:46 +0000 (14:13 -0700)]
dot_one_poly: take a const pointer for a string that is not modified

3 years agodot_polygon: take a const pointer for a string that is not modified
Matthew Fernandez [Sat, 14 Aug 2021 21:09:40 +0000 (14:09 -0700)]
dot_polygon: take a const pointer for a string that is not modified

3 years agopolytess.c: remove unused return values
Matthew Fernandez [Sat, 14 Aug 2021 21:06:53 +0000 (14:06 -0700)]
polytess.c: remove unused return values

3 years agoRender_Contour2: allocate vertices as a single block
Matthew Fernandez [Sat, 14 Aug 2021 20:59:21 +0000 (13:59 -0700)]
Render_Contour2: allocate vertices as a single block

Rather than an array of pointers and then individual allocations for each
vertex, we can simply allocate a single block ahead of time. This decreases
memory requirements and increases cache locality. Note that this does nothing
about the fairly egregious memory leak in this code.

3 years agoRender_Contour2: fix incorrect allocation calculation
Matthew Fernandez [Sat, 14 Aug 2021 20:53:12 +0000 (13:53 -0700)]
Render_Contour2: fix incorrect allocation calculation

It is clear from surrounding code that this was attempting to allocate an array
of GLdouble *pointers*, not an array of GLdoubles. It is unlikely this would
have caused any noticeable issues as sizeof(GLdouble) is typically greater than
sizeof(GLdouble*), but nevertheless the calculation was incorrect. This change
not only corrects this, but uses the more appropriate calloc instead of malloc
for array allocation.

3 years agoattr_value_edited_cb: remove unused 'row' variable
Matthew Fernandez [Sat, 14 Aug 2021 20:50:48 +0000 (13:50 -0700)]
attr_value_edited_cb: remove unused 'row' variable

3 years agoMerge branch 'smattr/d9bdea2a-6c61-49fb-988e-2b4f61ee06dd' into 'main'
Matthew Fernandez [Mon, 23 Aug 2021 04:05:54 +0000 (04:05 +0000)]
Merge branch 'smattr/d9bdea2a-6c61-49fb-988e-2b4f61ee06dd' into 'main'

fix path to which CMake install man pages

Closes #1936

See merge request graphviz/graphviz!2102

3 years agofix path to which CMake install man pages
Matthew Fernandez [Sun, 15 Aug 2021 21:06:47 +0000 (14:06 -0700)]
fix path to which CMake install man pages

The CMake build system was setup to unconditionally install man pages to man3.
This is only correct for libraries, whose man pages have the extension .3.
Binaries have man pages with the extension .1 and were intended to be installed
in man1. Now both go to the correct man subdirectory. Fixes #1936.

3 years agoMerge branch 'smattr/F6BCF86C-44CC-4894-94B5-E3DE88B8EB93' into 'main'
Matthew Fernandez [Mon, 23 Aug 2021 02:57:18 +0000 (02:57 +0000)]
Merge branch 'smattr/F6BCF86C-44CC-4894-94B5-E3DE88B8EB93' into 'main'

merge disto_notes.txt into DEVELOPERS.md

See merge request graphviz/graphviz!2104

3 years agomerge disto_notes.txt into DEVELOPERS.md
Matthew Fernandez [Mon, 16 Aug 2021 15:09:04 +0000 (08:09 -0700)]
merge disto_notes.txt into DEVELOPERS.md

Most of this was out of date, but the SUSE entry may still be relevant.

3 years agoMerge branch 'smattr/DF8696C5-E2D8-45B4-9AC1-96857719F6C3' into 'main'
Matthew Fernandez [Thu, 19 Aug 2021 15:42:15 +0000 (15:42 +0000)]
Merge branch 'smattr/DF8696C5-E2D8-45B4-9AC1-96857719F6C3' into 'main'

remove unused chars.tcl script

See merge request graphviz/graphviz!2103

3 years agoremove unused chars.tcl script
Matthew Fernandez [Mon, 16 Aug 2021 14:57:26 +0000 (07:57 -0700)]
remove unused chars.tcl script

The FontWidth table this script generates appears to have never been used.

3 years agoMerge branch 'smattr/A84C7010-2B56-4AE4-87A8-1C503E97EB27' into 'main'
Matthew Fernandez [Thu, 19 Aug 2021 05:29:25 +0000 (05:29 +0000)]
Merge branch 'smattr/A84C7010-2B56-4AE4-87A8-1C503E97EB27' into 'main'

remove open coded NULL in agread calls

See merge request graphviz/graphviz!2099

3 years agoremove open coded NULL in agread calls
Matthew Fernandez [Sun, 15 Aug 2021 01:26:56 +0000 (18:26 -0700)]
remove open coded NULL in agread calls

3 years agoMerge branch 'smattr/d6bb3f1d-b287-4d7f-9362-88e271f35b45' into 'main'
Matthew Fernandez [Thu, 19 Aug 2021 04:31:29 +0000 (04:31 +0000)]
Merge branch 'smattr/d6bb3f1d-b287-4d7f-9362-88e271f35b45' into 'main'

more sfio removal, some Smyrna clean up

See merge request graphviz/graphviz!2098

3 years agoSmyrna GUI menu callbacks: remove excess space, commented out code, brackets
Matthew Fernandez [Sat, 14 Aug 2021 22:15:52 +0000 (15:15 -0700)]
Smyrna GUI menu callbacks: remove excess space, commented out code, brackets

3 years agoon_gvprbuttonsave_clicked: remove unused local 'charcnt'
Matthew Fernandez [Sat, 14 Aug 2021 22:11:48 +0000 (15:11 -0700)]
on_gvprbuttonsave_clicked: remove unused local 'charcnt'

3 years agochange_cursor: remove unused local 'w'
Matthew Fernandez [Sat, 14 Aug 2021 22:10:26 +0000 (15:10 -0700)]
change_cursor: remove unused local 'w'

3 years agomGraphPropertiesSlot: remove unused local 'respond'
Matthew Fernandez [Sat, 14 Aug 2021 22:08:52 +0000 (15:08 -0700)]
mGraphPropertiesSlot: remove unused local 'respond'

3 years agoremove unnecessary execv prototype
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.

3 years agoremove unused O_TEMPORARY
Matthew Fernandez [Sat, 14 Aug 2021 21:53:45 +0000 (14:53 -0700)]
remove unused O_TEMPORARY

Related to #1998.

3 years agoreplace sfio SF_MAXLONG with libc LONG_MAX
Matthew Fernandez [Sat, 14 Aug 2021 21:51:56 +0000 (14:51 -0700)]
replace sfio SF_MAXLONG with libc LONG_MAX

Related to #1998.

3 years agoremove unused SF_MAXINT
Matthew Fernandez [Sat, 14 Aug 2021 21:50:21 +0000 (14:50 -0700)]
remove unused SF_MAXINT

Related to #1998.

3 years agoreplace sfio SF_MAXCHAR with libc UCHAR_MAX
Matthew Fernandez [Sat, 14 Aug 2021 21:49:48 +0000 (14:49 -0700)]
replace sfio SF_MAXCHAR with libc UCHAR_MAX

Related to #1998.

3 years agoMerge branch 'smattr/4151f512-15b8-4cea-b0e4-86d7ad442341' into 'main'
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

3 years agoagsafeset: take const pointers for 'value' and 'def' arguments
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.

3 years agoagset: take a const pointer for 'value' argument that is not modified
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.

3 years agoagattrsym: remove a pointless local
Matthew Fernandez [Sun, 15 Aug 2021 19:22:10 +0000 (12:22 -0700)]
agattrsym: remove a pointless local

3 years agoremove some use of open coded NULL when calling agattr
Matthew Fernandez [Sun, 15 Aug 2021 19:09:04 +0000 (12:09 -0700)]
remove some use of open coded NULL when calling agattr

3 years agoagattr: take a const pointer for 'value' argument that is not modified
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.

3 years agoglobal_def: remove 'dclfun' argument
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.

3 years agosetattr: take a const pointer for 'value' argument that is not modified
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.

3 years agoagxset: take a const pointer for 'value' argument that is not modified
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.

3 years agoinline and remove ag_xset macro
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.

3 years agoagnewsym: take const pointers for string arguments that are not modified
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.

3 years agoMerge branch 'smattr/0432D029-37BD-4A2A-B61B-DA05F137EFE1' into 'main'
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

3 years agoautotools: remove some commented out lines
Matthew Fernandez [Fri, 13 Aug 2021 00:05:36 +0000 (17:05 -0700)]
autotools: remove some commented out lines

3 years agoautotools: do not write DATE file
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.

3 years agodo not export DATE file from portable-source CI job
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.

3 years agocmake: remove ability to override GRAPHVIZ_VERSION_BUILD
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.

3 years agoMerge branch 'smattr/dfe2d6e6-3d41-4797-b1b9-3c59049efcf9' into 'main'
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

3 years agoedge_in_box: return a C99 bool
Matthew Fernandez [Sat, 14 Aug 2021 04:16:17 +0000 (21:16 -0700)]
edge_in_box: return a C99 bool

3 years agoremove unused neato_closest
Matthew Fernandez [Sat, 14 Aug 2021 04:11:14 +0000 (21:11 -0700)]
remove unused neato_closest

3 years agooverlap_bale: return a C99 bool
Matthew Fernandez [Sat, 14 Aug 2021 04:07:30 +0000 (21:07 -0700)]
overlap_bale: return a C99 bool

3 years agooverlap_node: return a C99 bool
Matthew Fernandez [Sat, 14 Aug 2021 04:06:12 +0000 (21:06 -0700)]
overlap_node: return a C99 bool

3 years agogvevent.c: remove unnecessary casts
Matthew Fernandez [Sat, 14 Aug 2021 04:01:51 +0000 (21:01 -0700)]
gvevent.c: remove unnecessary casts

3 years agooverlap_edge: return a C99 bool
Matthew Fernandez [Sat, 14 Aug 2021 04:01:26 +0000 (21:01 -0700)]
overlap_edge: return a C99 bool

3 years agoswap some unnecessary prototypes for a #include
Matthew Fernandez [Sat, 14 Aug 2021 03:51:39 +0000 (20:51 -0700)]
swap some unnecessary prototypes for a #include

3 years agoutils.h: fix missing 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.

3 years agooverlap_bezier: use a C99 bool return type
Matthew Fernandez [Sat, 14 Aug 2021 03:36:57 +0000 (20:36 -0700)]
overlap_bezier: use a C99 bool return type

3 years agooverlap_arrow: use C99 bool return type to simplify
Matthew Fernandez [Sat, 14 Aug 2021 03:35:23 +0000 (20:35 -0700)]
overlap_arrow: use C99 bool return type to simplify

3 years agooverlap_arrow: remove unused 'flag' parameter
Matthew Fernandez [Sat, 14 Aug 2021 03:31:29 +0000 (20:31 -0700)]
overlap_arrow: remove unused 'flag' parameter

3 years agoarrow_bb: remove unused 'flag' parameter
Matthew Fernandez [Sat, 14 Aug 2021 03:30:04 +0000 (20:30 -0700)]
arrow_bb: remove unused 'flag' parameter

3 years agosquash warnings for unused parameters in Arrowtypes functions
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.

3 years agosimplify iteration over Arrowtypes array
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.

3 years agomark Arrowtypes as const
Matthew Fernandez [Sat, 14 Aug 2021 03:05:28 +0000 (20:05 -0700)]
mark Arrowtypes as const

3 years agoarrows.c: remove commented out code
Matthew Fernandez [Sat, 14 Aug 2021 03:03:58 +0000 (20:03 -0700)]
arrows.c: remove commented out code

3 years agoremove 'tmp' member from 'Fmt_t'
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.

3 years agoMerge branch 'smattr/1408a71c-89e3-4b1a-8aa9-c088fe4f01bd' into 'main'
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

3 years agoremove unused ERROR_catalog
Matthew Fernandez [Sun, 8 Aug 2021 19:17:38 +0000 (12:17 -0700)]
remove unused ERROR_catalog

3 years agoremove Exshort_t type
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.

3 years agoreplace use of Exshort_t type with int
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.

3 years agoremove pad_1 member of Exnode_s
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.

3 years agoremove pad_2 member of Exnode_s
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.

3 years agoremove %{JAVASCRIPT} build warning during rpmbuild on Fedora
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}

3 years agoMerge branch 'smattr/3ef81d11-6c0d-45af-8447-2824072f5f40' into 'main'
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

3 years agoexsub: remove use of sfio temporary buffer
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.

3 years agoreplace: explicitly brace conditionals
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.

3 years agoreplace: re-indent body
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.

3 years agostrgrpmatch: reflow some text
Matthew Fernandez [Wed, 11 Aug 2021 00:36:10 +0000 (17:36 -0700)]
strgrpmatch: reflow some text

3 years agoRevert "remove now-unused vmresize"
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.

3 years agoexsub: use a C99 bool for 'global' parameter to be clearer
Matthew Fernandez [Wed, 11 Aug 2021 00:19:18 +0000 (17:19 -0700)]
exsub: use a C99 bool for 'global' parameter to be clearer

3 years agogvprmain.c: remove unnecessary casts
Matthew Fernandez [Wed, 11 Aug 2021 00:12:17 +0000 (17:12 -0700)]
gvprmain.c: remove unnecessary casts

3 years agosfwrite: remove unnecessary casts
Matthew Fernandez [Wed, 11 Aug 2021 00:10:57 +0000 (17:10 -0700)]
sfwrite: remove unnecessary casts

3 years agoMerge branch 'smattr/a7c9e340-7b78-40cd-947b-40e8fc6a5e45' into 'main'
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

3 years agopathcat: return a const char* instead of char*
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.

3 years agopathcanon: remove some int-as-char type confusion
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.

3 years agoremove PRESERVE_TRAILING_SLASH and DONT_PRESERVE_TRAILING_SLASH
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).

3 years agofmquote: squash -Wconversion warnings
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.

3 years agofmtquote: remove reuse of an int variable
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.

3 years agosfwrite: squash a -Wsign-conversion warning
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)`.

3 years agosfwr: remove unnecessary cast of 'write' argument
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.

3 years agosfoutput: squash a -Wsign-conversion warning
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.

3 years agoremove disabled _lib_wctype-guarded code
Matthew Fernandez [Thu, 12 Aug 2021 01:34:48 +0000 (18:34 -0700)]
remove disabled _lib_wctype-guarded code

3 years agoremove _hdr_wchar-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.

3 years agoremove isxdigit shim
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.

3 years agoremove _lib_fnmatch-guarded code
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.

3 years agoMerge branch 'smattr/4aa37954-37b6-4d19-a3b0-c8554069c3d3' into 'main'
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

3 years agorec_apply: take 'preorder' parameter as a C99 bool for clarity
Matthew Fernandez [Tue, 10 Aug 2021 02:01:34 +0000 (19:01 -0700)]
rec_apply: take 'preorder' parameter as a C99 bool for clarity

3 years agoagapply: remove useless comment
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.

3 years agoaginit: take a const char* instead of char* for record name
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.

3 years agoagdelrec: take a const char* instead of char* for record name
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.

3 years agoset_data: use a bool for 'mtf'
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.

3 years agoobjputrec: remove unused 'g' parameter
Matthew Fernandez [Tue, 10 Aug 2021 01:50:04 +0000 (18:50 -0700)]
objputrec: remove unused 'g' parameter

3 years agoremove unnecessary casts in rec.c
Matthew Fernandez [Tue, 10 Aug 2021 01:49:06 +0000 (18:49 -0700)]
remove unnecessary casts in rec.c

3 years agoremove unnecessary bracketing in rec.c
Matthew Fernandez [Tue, 10 Aug 2021 01:46:47 +0000 (18:46 -0700)]
remove unnecessary bracketing in rec.c

3 years agoagbindrec: realign parameter names in prototype with definition
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.