]> granicus.if.org Git - graphviz/log
graphviz
3 years agoMerge branch 'post-remove-gvc-def-file-cleanup' into 'main'
Magnus Jacobsson [Wed, 5 Jan 2022 06:29:25 +0000 (06:29 +0000)]
Merge branch 'post-remove-gvc-def-file-cleanup' into 'main'

Some cleanup of duplicate declarations

See merge request graphviz/graphviz!2379

3 years agoplugin/gd: remove duplicate definition of Bezier in gvrender_gd_vrml.c
Magnus Jacobsson [Sun, 1 Aug 2021 20:57:20 +0000 (22:57 +0200)]
plugin/gd: remove duplicate definition of Bezier in gvrender_gd_vrml.c

Removes this warning:

C:\Users\magja\graphviz\plugin\gd\gvrender_gd_vrml.c(41,86): warning C4273: 'Bezier': inconsistent dll linkage [C:\Users\magja\graphviz\plugin\gd\gvplugin_gd.vcxproj]

3 years agoplugin/gd: remove duplicate declaration of shapeOf in plugin/gd/gvrender_gd_vrml.c
Magnus Jacobsson [Sun, 1 Aug 2021 20:54:53 +0000 (22:54 +0200)]
plugin/gd: remove duplicate declaration of shapeOf in plugin/gd/gvrender_gd_vrml.c

3 years agosparse: replace local declaration of colorxlate with including common/colorprocs...
Magnus Jacobsson [Tue, 27 Jul 2021 09:48:19 +0000 (11:48 +0200)]
sparse: replace local declaration of colorxlate with including common/colorprocs.h in colorutil.h

3 years agosparse: MSBuild: add windows include dir to find config.h
Magnus Jacobsson [Sun, 12 Dec 2021 11:27:44 +0000 (12:27 +0100)]
sparse: MSBuild: add windows include dir to find config.h

An upcoming commit which will include config.h in colorprocs.h would
otherwise cause this error:

C:\Users\magja\graphviz\lib\common\colorprocs.h(13,10): fatal error C1083: Cannot open include file: 'config.h': No such file or directory [C:\Users\magja\graphviz\lib\sparse\gvsparse.vcxproj]

3 years agodot: unconditionally include globals.h in dot.c instead of duplicating declarations...
Magnus Jacobsson [Mon, 26 Jul 2021 13:28:04 +0000 (15:28 +0200)]
dot: unconditionally include globals.h in dot.c instead of duplicating declarations for WIN32_DLL

3 years agoMerge branch 'remove-gvc-def-file' into 'main'
Magnus Jacobsson [Tue, 4 Jan 2022 17:51:05 +0000 (17:51 +0000)]
Merge branch 'remove-gvc-def-file' into 'main'

Remove the last symbols from gvc.def and remove the gvc.def file

Closes #2058

See merge request graphviz/graphviz!2376

3 years agogvc: remove now empty and obsolete gvc.def file
Magnus Jacobsson [Mon, 26 Jul 2021 11:19:38 +0000 (13:19 +0200)]
gvc: remove now empty and obsolete gvc.def file

Closes https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agogvc: autotools: remove now obsolete use of gvc.def
Magnus Jacobsson [Mon, 26 Jul 2021 11:19:38 +0000 (13:19 +0200)]
gvc: autotools: remove now obsolete use of gvc.def

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agogvc: CMake: remove now obsolete use of gvc.def
Magnus Jacobsson [Mon, 26 Jul 2021 11:19:38 +0000 (13:19 +0200)]
gvc: CMake: remove now obsolete use of gvc.def

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agogvc: MSBuild: remove now obsolete use of gvc.def in project file
Magnus Jacobsson [Mon, 26 Jul 2021 11:19:38 +0000 (13:19 +0200)]
gvc: MSBuild: remove now obsolete use of gvc.def in project file

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agogvc: remove now obsolete exporting of render.h symbol rank2 from gvc.def
Magnus Jacobsson [Wed, 15 Dec 2021 06:34:06 +0000 (07:34 +0100)]
gvc: remove now obsolete exporting of render.h symbol rank2 from gvc.def

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agocommon: add missing declaration of rank2 to render.h
Magnus Jacobsson [Sun, 1 Aug 2021 11:25:17 +0000 (13:25 +0200)]
common: add missing declaration of rank2 to render.h

Also remove duplicated declaration of rank2 in rank.c in dotgen.

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agogvc: remove now obsolete exporting of render.h symbols from gvc.def
Magnus Jacobsson [Wed, 15 Dec 2021 21:00:19 +0000 (22:00 +0100)]
gvc: remove now obsolete exporting of render.h symbols from gvc.def

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agocommon: correct storage class attributes in render.h
Magnus Jacobsson [Sat, 11 Dec 2021 06:21:22 +0000 (07:21 +0100)]
common: correct storage class attributes in render.h

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agogvc: remove now obsolete exporting of gvcproc.h symbol gvrender_ptf from gvc.def
Magnus Jacobsson [Wed, 15 Dec 2021 20:47:02 +0000 (21:47 +0100)]
gvc: remove now obsolete exporting of gvcproc.h symbol gvrender_ptf from gvc.def

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agogvc: add storage-class attribute declaration of gvrender_ptf to gvcproc.h
Magnus Jacobsson [Wed, 28 Jul 2021 08:31:46 +0000 (10:31 +0200)]
gvc: add storage-class attribute declaration of gvrender_ptf to gvcproc.h

This will allow removing this symbol from gvc.def in an upcoming commit.

Note that no other symbols from gvcproc.h were exported from gvc.def,
hence the attributes are applied only to gvrender_ptf.

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agoplugin/gd: replace local declaration of gvrender_ptf with including gvcproc.h in...
Magnus Jacobsson [Wed, 28 Jul 2021 08:31:46 +0000 (10:31 +0200)]
plugin/gd: replace local declaration of gvrender_ptf with including gvcproc.h in gvrender_gd_vrml.c

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agoMerge branch 'smattr/659D906E-26CA-46C5-9E8A-CEC2CDBDE034' into 'main'
Matthew Fernandez [Tue, 4 Jan 2022 16:53:58 +0000 (16:53 +0000)]
Merge branch 'smattr/659D906E-26CA-46C5-9E8A-CEC2CDBDE034' into 'main'

convert mingle to C++

See merge request graphviz/graphviz!2362

3 years agomingle: use safer C++ casts
Matthew Fernandez [Sat, 25 Dec 2021 20:39:30 +0000 (12:39 -0800)]
mingle: use safer C++ casts

3 years agomingle: remove unnecessary include
Matthew Fernandez [Sat, 25 Dec 2021 20:36:15 +0000 (12:36 -0800)]
mingle: remove unnecessary include

3 years agomingle: use C++ 'nullptr' instead of C 'NULL'
Matthew Fernandez [Sat, 25 Dec 2021 20:35:50 +0000 (12:35 -0800)]
mingle: use C++ 'nullptr' instead of C 'NULL'

3 years agomingle: strip trailing space
Matthew Fernandez [Sat, 25 Dec 2021 20:35:08 +0000 (12:35 -0800)]
mingle: strip trailing space

3 years agomingle: replace C stdio with C++ iostream
Matthew Fernandez [Sat, 25 Dec 2021 20:32:36 +0000 (12:32 -0800)]
mingle: replace C stdio with C++ iostream

3 years agomingle bundle: avoid some manual memory management
Matthew Fernandez [Sat, 25 Dec 2021 20:17:42 +0000 (12:17 -0800)]
mingle bundle: avoid some manual memory management

Note that this appears to actually fix a memory leak as `xx` was never freed
previously.

3 years agomingle genBundleColors: avoid some manual memory management
Matthew Fernandez [Sat, 25 Dec 2021 20:10:38 +0000 (12:10 -0800)]
mingle genBundleColors: avoid some manual memory management

3 years agomingle: replace an 'agxbuf' with a 'std::ostringstream'
Matthew Fernandez [Sat, 25 Dec 2021 20:01:29 +0000 (12:01 -0800)]
mingle: replace an 'agxbuf' with a 'std::ostringstream'

Related to #2154.

3 years agoremove reference to non-existent cmd/mingle/ReadMe.txt
Matthew Fernandez [Sat, 25 Dec 2021 19:12:12 +0000 (11:12 -0800)]
remove reference to non-existent cmd/mingle/ReadMe.txt

3 years agoconvert Mingle to C++
Matthew Fernandez [Sat, 25 Dec 2021 19:05:47 +0000 (11:05 -0800)]
convert Mingle to C++

cmd/mingle depends on lib/mingle, which in turn depends on libANN, a C++
library. Thus the `mingle` binary needs to link against the C++ standard
library. There is no advantage to Mingle being implemented in C, and some nice
advantages to it being implemented in C++ instead.

This commit does a basic rename, as AFAICT nothing in minglemain.c has varying
semantics between C and C++. Future commits will use C++ features to simplify
the code.

Related to #2154.

3 years agomingle: cast results of 'malloc'
Matthew Fernandez [Sat, 25 Dec 2021 19:33:51 +0000 (11:33 -0800)]
mingle: cast results of 'malloc'

This has no effect at present. However, when moving this code to C++ in an
upcoming commit, it would trigger -fpermissive problems. This change
pre-emptively prevents this issue.

3 years agomingle: cast 'name' parameter values in 'agattr' calls
Matthew Fernandez [Sat, 25 Dec 2021 19:31:51 +0000 (11:31 -0800)]
mingle: cast 'name' parameter values in 'agattr' calls

This has no effect at present. However, when moving this code to C++ in an
upcoming commit, it would trigger -Wwrite-strings warnings. This change
pre-emptively prevents these warnings.

3 years agomingle: convert usage text to a const char array
Matthew Fernandez [Sat, 25 Dec 2021 19:26:32 +0000 (11:26 -0800)]
mingle: convert usage text to a const char array

This makes the intent of the code slightly clearer, but also pre-emptively
avoids an upcoming -Wwrite-strings warning when converting this code to C++.

Related to #2154.

3 years agolib/mingle: add guards, making headers safe to include from C++
Matthew Fernandez [Sat, 25 Dec 2021 19:11:27 +0000 (11:11 -0800)]
lib/mingle: add guards, making headers safe to include from C++

An upcoming change will convert cmd/mingle/minglemain.c to C++, which
includes some of these headers.

Related to #2154.

3 years agolib/sparse/color_palette.h: disambiguate an include
Matthew Fernandez [Sat, 25 Dec 2021 19:10:41 +0000 (11:10 -0800)]
lib/sparse/color_palette.h: disambiguate an include

3 years agolib/sparse: add guards, making headers safe to include from C++
Matthew Fernandez [Sat, 25 Dec 2021 19:09:15 +0000 (11:09 -0800)]
lib/sparse: add guards, making headers safe to include from C++

An upcoming change will convert cmd/mingle/minglemain.c to C++, which
transitively includes some of these headers.

Related to #2154.

3 years agoMerge branch 'smattr/f2181a81-197c-481f-af2f-df55298be60e' into 'main'
Matthew Fernandez [Tue, 4 Jan 2022 03:01:56 +0000 (03:01 +0000)]
Merge branch 'smattr/f2181a81-197c-481f-af2f-df55298be60e' into 'main'

remove cgraph macro aliases

See merge request graphviz/graphviz!2366

3 years agoremove cgraph macro aliases
Matthew Fernandez [Sun, 26 Dec 2021 03:56:19 +0000 (19:56 -0800)]
remove cgraph macro aliases

The functions removed in this commit were intended to be aliases for the
same-named macros declared in cgraph.h. The claimed purpose is debugger
introspection.

It is unclear to me what value these have in a modern development environment.
Some modern debuggers can understand macro definitions. Those that cannot are
_impeded_ by these aliases. A developer debugging looks at the alias definition
and thinks they understand the code, but they do not. The code that is executing
on their system is _not_ the code these functions compile to. To state something
stronger: it is unclear to me how these definitions were ever helpful. They
appear to (accidentally) obscure what is actually occurring in the machine at
runtime.

Note that these functions also bloated the cgraph .so/.a size by including
functions that were never called.

3 years agoremove problematic 'agmkin', 'agmkout'
Matthew Fernandez [Sun, 26 Dec 2021 03:46:31 +0000 (19:46 -0800)]
remove problematic 'agmkin', 'agmkout'

These functions were introduced in c9b7b0719776e022d760195fae2727b84be82eda to
match `AGMKOUT` and `AGMKIN` (#1212). But there are no exposed prototypes for
these. So the only way to call them is to externally prototype them with a
best-guess type signature and hope Graphviz never changes. This commit removes
them to reduce portability problems.

3 years agoMerge branch 'smattr/59EAC8A6-959D-4CE7-86FD-A4205260BFC3' into 'main'
Matthew Fernandez [Tue, 4 Jan 2022 01:59:27 +0000 (01:59 +0000)]
Merge branch 'smattr/59EAC8A6-959D-4CE7-86FD-A4205260BFC3' into 'main'

enable Mingle on CentOS

See merge request graphviz/graphviz!2335

3 years agoremove 'ANN' toggle in RH RPM configuration
Matthew Fernandez [Sat, 11 Dec 2021 18:29:16 +0000 (10:29 -0800)]
remove 'ANN' toggle in RH RPM configuration

libANN is now installed in all Red Hat environments in CI (CentOS and Fedora)
and building Mingle is enabled in all. So we remove this configuration flag that
is no longer used.

3 years agoenable Mingle on CentOS 7 in CI
Matthew Fernandez [Fri, 10 Dec 2021 15:56:54 +0000 (07:56 -0800)]
enable Mingle on CentOS 7 in CI

Related to #1835.

3 years agoinstall libANN on CentOS 7 in CI
Matthew Fernandez [Sat, 11 Dec 2021 06:27:24 +0000 (22:27 -0800)]
install libANN on CentOS 7 in CI

Related to #1835.

3 years agoremove CentOS 8 testing in CI
Matthew Fernandez [Sat, 11 Dec 2021 17:05:29 +0000 (09:05 -0800)]
remove CentOS 8 testing in CI

CentOS 8 was EOLed on 2021-12-31.¹ Note that some unorthodox roadmap changes by
Red Hat means CentOS 8 is EOLed _before_ CentOS 7.

¹ https://www.centos.org/centos-linux-eol/

3 years agoMerge branch 'remove-geomprocs-h-symbols-from-gvc-def-file' into 'main'
Magnus Jacobsson [Fri, 31 Dec 2021 21:44:25 +0000 (21:44 +0000)]
Merge branch 'remove-geomprocs-h-symbols-from-gvc-def-file' into 'main'

Remove geomprocs.h symbols from gvc.def

See merge request graphviz/graphviz!2374

3 years agocommon: remove now obsolete exporting of geomprocs.h symbols from gvc.def
Magnus Jacobsson [Wed, 15 Dec 2021 20:41:12 +0000 (21:41 +0100)]
common: remove now obsolete exporting of geomprocs.h symbols from gvc.def

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agocommon: correct storage-class attribute declarations in geomprocs.h
Magnus Jacobsson [Wed, 28 Jul 2021 06:00:33 +0000 (08:00 +0200)]
common: correct storage-class attribute declarations in geomprocs.h

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agoMerge branch 'remove-colorprocs-h-symbols-from-gvc-def-file' into 'main'
Magnus Jacobsson [Wed, 29 Dec 2021 06:18:01 +0000 (06:18 +0000)]
Merge branch 'remove-colorprocs-h-symbols-from-gvc-def-file' into 'main'

Remove colorprocs.h symbols from gvc.def

See merge request graphviz/graphviz!2373

3 years agocommon: remove now obsolete exporting of colorprocs.h symbols from gvc.def
Magnus Jacobsson [Wed, 15 Dec 2021 06:46:15 +0000 (07:46 +0100)]
common: remove now obsolete exporting of colorprocs.h symbols from gvc.def

Note that the canontoken and colorCvt functions in colorprocs.h were
not exported from gvc.def.

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agocommon: add storage-class attribute declarations in colorprocs.h
Magnus Jacobsson [Tue, 27 Jul 2021 09:48:19 +0000 (11:48 +0200)]
common: add storage-class attribute declarations in colorprocs.h

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agocommon: include config.h in colorprocs.h to get GVDLL in autotools builds
Magnus Jacobsson [Sat, 11 Dec 2021 14:57:39 +0000 (15:57 +0100)]
common: include config.h in colorprocs.h to get GVDLL in autotools builds

An upcoming commit that corrects the storage-class attribute
declarations in colorprocs.h would otherwise cause this error:

/usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: ../../lib/sparse/.libs/libsparse_C.a(DotIO.o): in function `Import_coord_clusters_from_dot':
/home/magja/graphviz/lib/sparse/DotIO.c:577: undefined reference to `colorxlate'

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agoMerge branch 'smattr/a45c8ab0-d6e4-4cb7-8f28-61abb60c7359' into 'main'
Matthew Fernandez [Tue, 28 Dec 2021 22:02:28 +0000 (22:02 +0000)]
Merge branch 'smattr/a45c8ab0-d6e4-4cb7-8f28-61abb60c7359' into 'main'

migrate some more bool arrays to bit arrays

See merge request graphviz/graphviz!2356

3 years agoMerge branch 'remove-gvcint-h-symbols-from-gvc-def-file' into 'main'
Magnus Jacobsson [Tue, 28 Dec 2021 21:34:18 +0000 (21:34 +0000)]
Merge branch 'remove-gvcint-h-symbols-from-gvc-def-file' into 'main'

Remove gvcint.h symbols from gvc.def

See merge request graphviz/graphviz!2371

3 years agogvc: remove now obsolete exporting of gvcint.h symbols from gvc.def
Magnus Jacobsson [Wed, 15 Dec 2021 06:30:26 +0000 (07:30 +0100)]
gvc: remove now obsolete exporting of gvcint.h symbols from gvc.def

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agogvc: add storage-class attribute declarations in gvcint.h
Magnus Jacobsson [Mon, 26 Jul 2021 15:01:07 +0000 (17:01 +0200)]
gvc: add storage-class attribute declarations in gvcint.h

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agoextract_adjacency: use bit arrays instead of bool arrays for neighbours lists
Matthew Fernandez [Wed, 22 Dec 2021 04:35:26 +0000 (20:35 -0800)]
extract_adjacency: use bit arrays instead of bool arrays for neighbours lists

This reduces memory usage of this function.

3 years agosgd_graph: use 'size_t' for 'sources' and 'targets'
Matthew Fernandez [Wed, 22 Dec 2021 04:24:06 +0000 (20:24 -0800)]
sgd_graph: use 'size_t' for 'sources' and 'targets'

Following on from 1c42bb82cd73cb45d3abee845c21819add00d982, this uses a more
appropriate type for these members, permitting collections that exceed 2³² - 1
and avoiding sign conversion issues.

3 years agoMerge branch 'smattr/FF411856-89EB-4528-B888-34D18055BAC2' into 'main'
Matthew Fernandez [Tue, 28 Dec 2021 00:14:10 +0000 (00:14 +0000)]
Merge branch 'smattr/FF411856-89EB-4528-B888-34D18055BAC2' into 'main'

osage: fix some function prototyping

See merge request graphviz/graphviz!2357

3 years agoprototype osage_layout and osage_cleanup in osage.h
Matthew Fernandez [Wed, 22 Dec 2021 16:15:29 +0000 (08:15 -0800)]
prototype osage_layout and osage_cleanup in osage.h

These are the only functions lib/osage exports. Yet neither were prototyped in a
header. It seems like this header could now be #included in
plugin/neato_layout/gvlayout_neato_layout.c, removing the need for that file to
prototype these functions. Except that it gives slightly different prototypes
for them.

3 years agoremove osage prototypes of unimplemented functions
Matthew Fernandez [Wed, 22 Dec 2021 16:13:03 +0000 (08:13 -0800)]
remove osage prototypes of unimplemented functions

3 years agoMerge branch 'smattr/47AD173A-739B-4728-A786-2C40BEE7D75C' into 'main'
Matthew Fernandez [Mon, 27 Dec 2021 21:01:54 +0000 (21:01 +0000)]
Merge branch 'smattr/47AD173A-739B-4728-A786-2C40BEE7D75C' into 'main'

some neatogen linkage clean up

See merge request graphviz/graphviz!2354

3 years agomove_node: make a static function
Matthew Fernandez [Mon, 20 Dec 2021 16:14:38 +0000 (08:14 -0800)]
move_node: make a static function

This function is not used outside of stuff.c.

3 years agomake_spring: make a static function
Matthew Fernandez [Mon, 20 Dec 2021 16:13:44 +0000 (08:13 -0800)]
make_spring: make a static function

This function is not used outside of stuff.c.

3 years agoheapup: make a static function
Matthew Fernandez [Mon, 20 Dec 2021 16:11:14 +0000 (08:11 -0800)]
heapup: make a static function

This function is not used outside of stuff.c.

3 years agoheapdown: make a static function
Matthew Fernandez [Mon, 20 Dec 2021 16:10:22 +0000 (08:10 -0800)]
heapdown: make a static function

This function is not used outside of stuff.c.

3 years agofpow32: make a static function
Matthew Fernandez [Mon, 20 Dec 2021 16:08:19 +0000 (08:08 -0800)]
fpow32: make a static function

This function is not used outside of stuff.c.

3 years agoremove unused 'final_energy'
Matthew Fernandez [Mon, 20 Dec 2021 16:07:45 +0000 (08:07 -0800)]
remove unused 'final_energy'

3 years agodistvec: make a static function
Matthew Fernandez [Mon, 20 Dec 2021 16:06:55 +0000 (08:06 -0800)]
distvec: make a static function

This function is not used outside of stuff.c.

3 years agoD2E: make a static
Matthew Fernandez [Mon, 20 Dec 2021 16:05:47 +0000 (08:05 -0800)]
D2E: make a static

This function is not used outside of stuff.c.

3 years agochoose_node: make a static function
Matthew Fernandez [Mon, 20 Dec 2021 16:04:07 +0000 (08:04 -0800)]
choose_node: make a static function

This is not used outside of stuff.c.

3 years agoremote prototype for unimplemented 'avoid_cycling'
Matthew Fernandez [Mon, 20 Dec 2021 16:03:46 +0000 (08:03 -0800)]
remote prototype for unimplemented 'avoid_cycling'

3 years agoMerge branch 'smattr/e18d313d-2db6-47c6-8bc4-3f8a7714252f' into 'main'
Matthew Fernandez [Mon, 27 Dec 2021 20:03:01 +0000 (20:03 +0000)]
Merge branch 'smattr/e18d313d-2db6-47c6-8bc4-3f8a7714252f' into 'main'

fix: configure output when Lefty is disabled

See merge request graphviz/graphviz!2360

3 years agoMerge branch 'remove-gvio-h-symbols-from-gvc-def-file' into 'main'
Magnus Jacobsson [Mon, 27 Dec 2021 19:24:55 +0000 (19:24 +0000)]
Merge branch 'remove-gvio-h-symbols-from-gvc-def-file' into 'main'

Remove gvio.h symbols from gvc.def

See merge request graphviz/graphviz!2368

3 years agofix: configure output when Lefty is disabled
Matthew Fernandez [Fri, 24 Dec 2021 18:39:53 +0000 (10:39 -0800)]
fix: configure output when Lefty is disabled

Commit 1a4ad00b59cc1e1e9302fcbd1a205495ee59cab5 disabled Lefty by default in the
Autotools build system but accidentally made the configure output say nothing
next to "Lefty: " when Lefty is disabled.

3 years agogvc: remove now obsolete exporting of gvio.h symbols from gvc.def
Magnus Jacobsson [Wed, 15 Dec 2021 05:19:15 +0000 (06:19 +0100)]
gvc: remove now obsolete exporting of gvio.h symbols from gvc.def

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agogvc: correct storage-class attribute declarations in gvio.h
Magnus Jacobsson [Mon, 26 Jul 2021 14:57:20 +0000 (16:57 +0200)]
gvc: correct storage-class attribute declarations in gvio.h

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agoMerge branch 'remove-gvplugin_loadimage-h-symbols-from-gvc-def-file' into 'main'
Magnus Jacobsson [Sun, 26 Dec 2021 20:18:58 +0000 (20:18 +0000)]
Merge branch 'remove-gvplugin_loadimage-h-symbols-from-gvc-def-file' into 'main'

Remove gvplugin_loadimage.h symbols from gvc.def

See merge request graphviz/graphviz!2367

3 years agogvc: remove now obsolete exporting of gvplugin_loadimage.h symbols from gvc.def
Magnus Jacobsson [Tue, 14 Dec 2021 20:25:58 +0000 (21:25 +0100)]
gvc: remove now obsolete exporting of gvplugin_loadimage.h symbols from gvc.def

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agogvc: correct storage-class attribute declarations in gvplugin_loadimage.h
Magnus Jacobsson [Mon, 26 Jul 2021 14:55:15 +0000 (16:55 +0200)]
gvc: correct storage-class attribute declarations in gvplugin_loadimage.h

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agoMerge branch 'remove-timing.h' into 'main'
Magnus Jacobsson [Sun, 26 Dec 2021 08:22:06 +0000 (08:22 +0000)]
Merge branch 'remove-timing.h' into 'main'

Remove timing.h

See merge request graphviz/graphviz!2363

3 years agocommon: remove now unused timing.h
Magnus Jacobsson [Wed, 4 Aug 2021 09:05:30 +0000 (11:05 +0200)]
common: remove now unused timing.h

3 years agocommon: autotools: remove now unused timing.h
Magnus Jacobsson [Wed, 4 Aug 2021 09:05:30 +0000 (11:05 +0200)]
common: autotools: remove now unused timing.h

3 years agotred: include common/utils.h instead of duplicate defs from common/timing.h
Magnus Jacobsson [Wed, 4 Aug 2021 09:04:58 +0000 (11:04 +0200)]
tred: include common/utils.h instead of duplicate defs from common/timing.h

3 years agotred: rename DIST macro to avoid shadowing
Magnus Jacobsson [Sun, 12 Dec 2021 09:24:35 +0000 (10:24 +0100)]
tred: rename DIST macro to avoid shadowing

The next commit in this series will include types.h which transitively
includes geom.h which has another DIST macro defined.

Without this change, this error would occur:

FAILED: cmd/tools/CMakeFiles/tred.dir/tred.c.obj
C:\tools\msys64\mingw64\bin\ccache.exe  gcc -DDEMAND_LOADING=0 -DDIGCOLA -DENABLE_LTDL -DGVDLL -DORTHO -DSFDP -IC:/Users/magja/graphviz/build -IC:/Users/magja/graphviz/lib -IC:/Users/magja/graphviz/cmd/tools -IC:/Users/magja/graphviz/build/cmd/tools -IC:/Users/magja/graphviz/lib/cdt -IC:/Users/magja/graphviz/lib/cgraph -IC:/Users/magja/graphviz/lib/common -IC:/Users/magja/graphviz/lib/gvc -IC:/Users/magja/graphviz/lib/pack -IC:/Users/magja/graphviz/lib/pathplan -Werror -Wall -std=gnu99 -MD -MT cmd/tools/CMakeFiles/tred.dir/tred.c.obj -MF cmd\tools\CMakeFiles\tred.dir\tred.c.obj.d -o cmd/tools/CMakeFiles/tred.dir/tred.c.obj -c C:/Users/magja/graphviz/cmd/tools/tred.c
C:/Users/magja/graphviz/cmd/tools/tred.c:38: error: "DIST" redefined [-Werror]
   38 | #define DIST(ninfo,n) (ninfo[AGSEQ(n)].dist)
      |
In file included from C:/Users/magja/graphviz/lib/common/types.h:31,
                 from C:/Users/magja/graphviz/cmd/tools/tred.c:24:
C:/Users/magja/graphviz/lib/common/geom.h:53: note: this is the location of the previous definition
   53 | #define DIST(p,q)  (sqrt(DIST2((p),(q))))
      |

3 years agotred: MSBuild: add pathplan include directory
Magnus Jacobsson [Wed, 4 Aug 2021 13:55:57 +0000 (15:55 +0200)]
tred: MSBuild: add pathplan include directory

An upcoming commit that changes tred.c to include utils.h instead of
timing.h would otherwise cause this error:

C:\Users\magja\graphviz\lib\common\types.h(33,10): fatal error C1083: Cannot open include file: 'pathgeom.h': No such file or directory

3 years agotred: MSBuild: add gvc include directory
Magnus Jacobsson [Wed, 4 Aug 2021 13:32:28 +0000 (15:32 +0200)]
tred: MSBuild: add gvc include directory

An upcoming commit that changes tred.c to include utils.h instead of
timing.h would otherwise cause this error:

C:\Users\magja\graphviz\lib\common\types.h(32,10): fatal error C1083: Cannot open include file: 'gvcext.h': No such file or directory

3 years agotred: autotools: link to the shared gvc lib instead of the static common lib
Magnus Jacobsson [Wed, 4 Aug 2021 09:04:58 +0000 (11:04 +0200)]
tred: autotools: link to the shared gvc lib instead of the static common lib

The common lib is built into the gvc lib.

An upcoming commit that changes tred.c to include utils.h instead of
timing.h would otherwise cause these errors:

/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: tred.o: in function `process':
/cygdrive/c/GitLab-Runner/builds/magjac/graphviz/cmd/tools/tred.c:296: undefined reference to `__imp_start_timer'
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/c/GitLab-Runner/builds/magjac/graphviz/cmd/tools/tred.c:299: undefined reference to `__imp_elapsed_sec'

3 years agotred: CMake: link to the gvc lib instead of the common lib
Magnus Jacobsson [Wed, 4 Aug 2021 09:04:58 +0000 (11:04 +0200)]
tred: CMake: link to the gvc lib instead of the common lib

The common lib is a static lib which is built into the shared gvc lib.

An upcoming commit that changes tred.c to include utils.h instead of
timing.h would otherwise cause these errors:

C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cmd/tools/CMakeFiles/tred.dir/tred.c.obj:tred.c:(.text+0xb47): undefined reference to `__imp_start_timer'
C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cmd/tools/CMakeFiles/tred.dir/tred.c.obj:tred.c:(.text+0xb7a): undefined reference to `__imp_elapsed_sec'

3 years agoMerge branch 'remove-pointset-h-symbols-from-gvc-def-file' into 'main'
Magnus Jacobsson [Sun, 26 Dec 2021 06:54:13 +0000 (06:54 +0000)]
Merge branch 'remove-pointset-h-symbols-from-gvc-def-file' into 'main'

Remove pointset.h symbols from gvc.def

See merge request graphviz/graphviz!2365

3 years agocommon: remove now obsolete exporting of pointset.h symbols from gvc.def
Magnus Jacobsson [Tue, 14 Dec 2021 20:20:06 +0000 (21:20 +0100)]
common: remove now obsolete exporting of pointset.h symbols from gvc.def

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agocommon: correct storage-class attribute declarations in pointset.h
Magnus Jacobsson [Mon, 26 Jul 2021 14:53:22 +0000 (16:53 +0200)]
common: correct storage-class attribute declarations in pointset.h

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agoMerge branch 'remove-pack-h-symbols-from-gvc-def' into 'main'
Magnus Jacobsson [Sat, 25 Dec 2021 23:09:12 +0000 (23:09 +0000)]
Merge branch 'remove-pack-h-symbols-from-gvc-def' into 'main'

Remove pack.h symbols from gvc.def

See merge request graphviz/graphviz!2364

3 years agopack: remove now obsolete exporting of pack.h symbols from gvc.def
Magnus Jacobsson [Tue, 14 Dec 2021 20:13:19 +0000 (21:13 +0100)]
pack: remove now obsolete exporting of pack.h symbols from gvc.def

Note that the packRects and shiftGraphs functions in pack.h was not
exported from gvc.def.

3 years agopack: correct storage-class attribute declarations in pack.h
Magnus Jacobsson [Mon, 26 Jul 2021 13:36:34 +0000 (15:36 +0200)]
pack: correct storage-class attribute declarations in pack.h

3 years agoMerge branch 'remove-utils-h-symbols-from-gvc-def-file' into 'main'
Magnus Jacobsson [Sat, 25 Dec 2021 22:00:50 +0000 (22:00 +0000)]
Merge branch 'remove-utils-h-symbols-from-gvc-def-file' into 'main'

Remove utils.h symbols from gvc.def file

See merge request graphviz/graphviz!2361

3 years agocommon: remove now obsolete exporting of utils.h symbols from gvc.def
Magnus Jacobsson [Sat, 18 Dec 2021 14:53:52 +0000 (15:53 +0100)]
common: remove now obsolete exporting of utils.h symbols from gvc.def

3 years agocommon: correct storage-class attribute declarations in utils.h
Magnus Jacobsson [Mon, 26 Jul 2021 13:33:57 +0000 (15:33 +0200)]
common: correct storage-class attribute declarations in utils.h

This will allow removing the utils.h symbols from the gvc.def file in
an upcoming commit.

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agocommon: include utils.h and types.h in timing.c also for _WIN32
Magnus Jacobsson [Sat, 25 Dec 2021 14:50:26 +0000 (15:50 +0100)]
common: include utils.h and types.h in timing.c also for _WIN32

This ensures that the timing functions are declared with the
storage-class attributes from utils.h.

An upcoming commit that corrects the storage-class attribute
declarations in utils.h would otherwise cause these errors:

/usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: ../../lib/dotgen/.libs/libdotgen_C.a(mincross.o): in function `init_mincross':
/home/magja/graphviz/lib/dotgen/mincross.c:1163: undefined reference to `__imp_start_timer'
/usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: ../../lib/dotgen/.libs/libdotgen_C.a(mincross.o): in function `cleanup2':
/home/magja/graphviz/lib/dotgen/mincross.c:996: undefined reference to `__imp_elapsed_sec'

The reason for also including types.h is that utils.h depends on it
without including it itself for unclear reasons.

Note that these functions are also redundantly declared in
timing.h. This file will be removed in an upcoming commit series.

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agocommon: include types.h instead of render.h in timing.c
Magnus Jacobsson [Sat, 25 Dec 2021 14:46:02 +0000 (15:46 +0100)]
common: include types.h instead of render.h in timing.c

This file does not explicitly need either of thoses files, but it
includes utils.h that needs types.h. It is better to include this file
directly rather transitively through render.h.

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

3 years agoMerge branch 'smattr/ce9e6cdc-f5de-4342-959e-4e83691b2521' into 'main'
Matthew Fernandez [Sat, 25 Dec 2021 20:40:50 +0000 (20:40 +0000)]
Merge branch 'smattr/ce9e6cdc-f5de-4342-959e-4e83691b2521' into 'main'

some warning squashing

See merge request graphviz/graphviz!2358

3 years agotranslate_drawing: [nfc] use a bool for 'shift' for clearer intent
Matthew Fernandez [Fri, 24 Dec 2021 16:53:03 +0000 (08:53 -0800)]
translate_drawing: [nfc] use a bool for 'shift' for clearer intent