]> granicus.if.org Git - graphviz/log
graphviz
7 years agoUpdate documentation to handle included json
Emden R. Gansner [Sun, 29 Jan 2017 23:50:34 +0000 (18:50 -0500)]
Update documentation to handle included json

8 years agoMerge branch 'master' of github.com:/ellson/graphviz
John Ellson [Sat, 17 Dec 2016 03:39:50 +0000 (22:39 -0500)]
Merge branch 'master' of github.com:/ellson/graphviz

8 years agoadding a builtin tred to langs bindings
John Ellson [Sat, 17 Dec 2016 03:39:39 +0000 (22:39 -0500)]
adding a builtin tred to langs bindings

8 years agoFix a couple of lose ends where incorrect information is given in
Emden Gansner [Fri, 16 Dec 2016 22:15:01 +0000 (17:15 -0500)]
Fix a couple of lose ends where incorrect information is given in
error messages. Make sure each call to agmemread resets the line number
to 1 and the file name to NULL. If the input contains cpp line directive,
another run of agmemread with errors would report them incorrectly.

In addition, the gvNextInputGraph in common/input.s was not resetting the
the file name in the case that the new FILE* happened to use the same memory
as the previous FILE*.

8 years agoAt present, if the graph has no nodes, no layout is done. But then if gvFreeLayout...
Emden Gansner [Fri, 16 Dec 2016 20:02:23 +0000 (15:02 -0500)]
At present, if the graph has no nodes, no layout is done. But then if gvFreeLayout is called
and there are subgraphs, dot_cleanup_graph assumes the subgraphs are bound to a Agraphinfo_t,
which doesn't exist.  The calls to free the associated memory cause a crash.

The simplest solution is to check that Agraphinfo_t exists in dot_cleanup_graph before using it.

8 years agoremove file that caused all lineends to change to CRLF. - Windows users, please...
John Ellson [Fri, 16 Dec 2016 02:12:19 +0000 (21:12 -0500)]
remove file that caused all lineends to change to CRLF.   - Windows users, please find another way.

8 years agotrying to get Travis-CI to send me notifications
John Ellson [Fri, 16 Dec 2016 02:02:15 +0000 (21:02 -0500)]
trying to get Travis-CI to send me notifications

8 years agoreturning line-ends to lf ???
John Ellson [Fri, 16 Dec 2016 02:00:44 +0000 (21:00 -0500)]
returning line-ends to lf ???

8 years agoMerge pull request #1185 from Chiel92/master
John Ellson [Wed, 14 Dec 2016 15:01:16 +0000 (10:01 -0500)]
Merge pull request #1185 from Chiel92/master

Fix flex build command in cgraph project.

8 years agoFix flex build command in cgraph project.
Chiel ten Brinke [Wed, 14 Dec 2016 14:19:22 +0000 (15:19 +0100)]
Fix flex build command in cgraph project.

8 years agoMerge pull request #1183 from ErwinJanssen/remove-fenv-init
John Ellson [Tue, 13 Dec 2016 14:02:29 +0000 (09:02 -0500)]
Merge pull request #1183 from ErwinJanssen/remove-fenv-init

Remove unused FPE initialization from dot.c

8 years agoRemove unused FPE initialization from dot.c
Erwin Janssen [Mon, 12 Dec 2016 14:50:50 +0000 (15:50 +0100)]
Remove unused FPE initialization from dot.c

In cmd/dot/dot.c, non standard floating point exceptions are enabled
in a platform specific way in a sequence of `ifdef`s. However, this
is never used because:
- The rest of the code never checks for set floating point exception
  flags (with `fetestexcept` for example).
- The check that toggles the whole block, `ifndef NO_FPERR` is almost
  false. `NO_FPERR` is always defined on Windows and only disabled on
  specific platforms that do not support `-ffast-math`.

In conclusion, the code adds unnecessary complexity and can be removed.

8 years agoAdd print function for spring control; remove extraneous spaces; fix misspelling.
Emden Gansner [Fri, 9 Dec 2016 21:22:36 +0000 (16:22 -0500)]
Add print function for spring control; remove extraneous spaces; fix misspelling.

8 years agoAdd missing include directory in Makefile
Emden Gansner [Fri, 9 Dec 2016 21:15:17 +0000 (16:15 -0500)]
Add missing include directory in Makefile

8 years agoCleanup warnings and add missing include directory.
Emden Gansner [Fri, 9 Dec 2016 21:03:56 +0000 (16:03 -0500)]
Cleanup warnings and add missing include directory.

8 years agoAdd verbose printing of overlap parameters
Emden Gansner [Fri, 9 Dec 2016 20:32:24 +0000 (15:32 -0500)]
Add verbose printing of overlap parameters

8 years agoFix verbose printing. First, we are not printing the graph depth, but the
Emden Gansner [Fri, 9 Dec 2016 20:28:41 +0000 (15:28 -0500)]
Fix verbose printing. First, we are not printing the graph depth, but the
maximum number of steps to the center. Second, we can't use SLEAF if the root
is specified, since SLEAF is not calculated in that case.

8 years agoemail notifications going to Erwin?? Try to over-ride
John Ellson [Fri, 9 Dec 2016 16:43:42 +0000 (11:43 -0500)]
email notifications going to Erwin?? Try to over-ride

8 years agoLua-5.2 renamed string.gfind to string.gmatch
John Ellson [Fri, 9 Dec 2016 04:47:13 +0000 (23:47 -0500)]
Lua-5.2 renamed string.gfind to string.gmatch

8 years agoMerge pull request #1181 from ErwinJanssen/various-changes
John Ellson [Wed, 7 Dec 2016 16:20:32 +0000 (11:20 -0500)]
Merge pull request #1181 from ErwinJanssen/various-changes

Various changes

8 years agoMerge branch 'master' of github.com:ellson/graphviz
John Ellson [Wed, 7 Dec 2016 15:27:34 +0000 (10:27 -0500)]
Merge branch 'master' of github.com:ellson/graphviz

8 years agoremove the AR_FLAGS over-ride which broke on Macs (#84)
John Ellson [Wed, 7 Dec 2016 15:26:40 +0000 (10:26 -0500)]
remove the AR_FLAGS over-ride which broke on Macs (#84)

8 years agoFixed 3 potential memory leaks in QuadTree.c
Erwin Janssen [Wed, 7 Dec 2016 13:56:39 +0000 (14:56 +0100)]
Fixed 3 potential memory leaks in QuadTree.c

In the function `QuadTree_new_from_point_list` in lib/sparse/QuadTree.c,
memory is allocated for tree variables. The check that follows returns
NULL if one of the pointers is NULL (indicating memory allocation
failure). However, it is possible that memory allocation succeeds for one
or two variables, but fails for the third. If this happens, the functions
returns NULL, but the allocated memory isn't freed.
The fix is to free all three pointers in case of a failure. If memory is
allocated it is freed. If the pointer is NULL, free can still safely be
called.

8 years agoFixed: 'dereference before null check' in DotIO.c
Erwin Janssen [Sat, 19 Nov 2016 01:20:46 +0000 (02:20 +0100)]
Fixed: 'dereference before null check' in DotIO.c

When the local variables in the function `convert_edge_labels_to_nodes` in
lib/spare/DotIO.c are initialized, the pointer `g` is dereferenced. But a
the check that tests if `g` is NULL happens after this initialization. The
fix is placing the `if (!g) return NULL` as the first line of the
function, so dereferencing only occurs if the pointer is not NULL.

8 years agoFixed: 2 'dereference before null check' in SparseMatrix
Erwin Janssen [Sat, 19 Nov 2016 01:06:57 +0000 (02:06 +0100)]
Fixed: 2 'dereference before null check' in SparseMatrix

In the file lib/sparse/SparseMatric.x, there were two functions were a
pointer is dereferenced before checking if the pointer is NULL. The check
`if(!A)` caused an early return in both functions.
The fix is placing the check and the early return as the first line in
both functions. Dereferencing then only occures if the pointer A is not
NULL.

8 years agoFixed: 'dereference before null check' in stack.c
Erwin Janssen [Sat, 19 Nov 2016 00:53:25 +0000 (01:53 +0100)]
Fixed: 'dereference before null check' in stack.c

The pointer `theStack` is dereferenced before the if statement that
checks whether `theStack` is null. This is fixed by placing the variable
declarations in the if statement.

8 years agoFixed: three memory leaks in neatoinit.c
Erwin Janssen [Thu, 17 Nov 2016 16:11:13 +0000 (17:11 +0100)]
Fixed: three memory leaks in neatoinit.c

In the function `makeGraphData()` memory is allocated in various places,
but not all allocated memory is freed at the end of this function. This
commit fixes this by calling `free()` on the pointers `edges`, `edists`
and `ewgts`.

8 years agoReplace WIN32 with _WIN32 in ast, common, dotgen2
Erwin Janssen [Sun, 13 Nov 2016 20:21:38 +0000 (21:21 +0100)]
Replace WIN32 with _WIN32 in ast, common, dotgen2

WIN32 is defined by the user, _WIN32 is set by the compiler to indicate
the platform. It is better to use the latter.
This commit replaces WIN32 with _WIN32 in source and header files of
lib/ast, lib/common and lib/dotgen2.

8 years agoChange lib/common/types.h.in -> lib/common/types.h
Erwin Janssen [Thu, 10 Nov 2016 15:59:38 +0000 (16:59 +0100)]
Change lib/common/types.h.in -> lib/common/types.h

The only Autotools check in types.h.in is for `WITH_CGRAPH`, which is
always true for legacy reasons. Therefore we can set this define and turn
it in a regular header file.

8 years agoRemove usage and defintion of __INLINE__
Erwin Janssen [Tue, 1 Nov 2016 15:07:02 +0000 (16:07 +0100)]
Remove usage and defintion of __INLINE__

The __INLINE__ definition is used on one place in the code: sfio.h
In this header, some function are defined as inline functions when the
__INLINE__ definition is set. With the current configuration the
__INLINE__ definition is never set, and the inline functions are never
used. Changing the condition so that __INLINE__ does get set, results in
errors during the compilation process. Therefore this defintion can be
removed.

8 years agoRemove usage of _hdr_filio and _sys_filio
Erwin Janssen [Mon, 31 Oct 2016 22:08:16 +0000 (23:08 +0100)]
Remove usage of _hdr_filio and _sys_filio

Both headers are not required for the build and are excluded when
SF_BINARY is defined. The headers and defines can therefore be removed.

8 years agoAssume `atexit()` can be used, part of standard C
Erwin Janssen [Mon, 31 Oct 2016 21:32:36 +0000 (22:32 +0100)]
Assume `atexit()` can be used, part of standard C

The `atexit()` function is part of standard C, so it can be assumed that
it available. The fallback machanism with `onexit()` is therefore not
needed, which results in less code and defines.

8 years agoRemove definition of _hdr_stddef
Erwin Janssen [Mon, 31 Oct 2016 21:13:58 +0000 (22:13 +0100)]
Remove definition of _hdr_stddef

The header file `stddef.h` is part of the C standard and should always be
available. Checking is therefore not needed.

8 years agoRemove definition of _sys_time and _sys_times
Erwin Janssen [Mon, 31 Oct 2016 20:16:18 +0000 (21:16 +0100)]
Remove definition of _sys_time and _sys_times

Both definitions are no longer used can be safely removed.

8 years agoRemove definition of `_proto_stdc`
Erwin Janssen [Mon, 31 Oct 2016 20:13:09 +0000 (21:13 +0100)]
Remove definition of `_proto_stdc`

This definition is no longer used and can be safely removed.

8 years agoRemove definition of _hdr_time
Erwin Janssen [Mon, 31 Oct 2016 20:11:21 +0000 (21:11 +0100)]
Remove definition of _hdr_time

This definition is no longer used and can safely be removed.

8 years agoDelete lib/cdt/features/common, no longer used
Erwin Janssen [Mon, 31 Oct 2016 20:07:06 +0000 (21:07 +0100)]
Delete lib/cdt/features/common, no longer used

The code in lib/cdt no longer uses any of the defines or values set in
this script.

8 years agoRemove definition of `_hdr_pthread`
Erwin Janssen [Mon, 31 Oct 2016 15:08:26 +0000 (16:08 +0100)]
Remove definition of `_hdr_pthread`

This define is not used anymore and doesn't have to be set.

8 years agoRemove `_may_use_threads` from lib/sfio/vthread.h
Erwin Janssen [Mon, 31 Oct 2016 14:59:41 +0000 (15:59 +0100)]
Remove `_may_use_threads` from lib/sfio/vthread.h

The define `_may_use_threads` is set after checking some condition, but is
`undef`ed immediately after. The checks that follow only succeed if
`_may_use_threads` is defined, so they all fail and nothing happens. Therefore, the checks of this define and the usage of it can be removed.

8 years agoRemove all usage of _PACKAGE_ast and PACKAGE_ast
Erwin Janssen [Mon, 31 Oct 2016 13:36:47 +0000 (14:36 +0100)]
Remove all usage of _PACKAGE_ast and PACKAGE_ast

These two defines are never set in the configuration or code. Manually
setting them causes the build to fail. Therefore all usage of these
defines can be removed.

8 years agoRemove usage `_hdr_time` & `_sys_time` from sfio
Erwin Janssen [Mon, 31 Oct 2016 12:27:02 +0000 (13:27 +0100)]
Remove usage `_hdr_time` & `_sys_time` from sfio

The headers time.h and sys/time.h are not included in the binary build and
are not required for a successfull compilation. The corresponding defines
can therefore also be removed.

8 years agoReplace WIN32 with _WIN32 in cdt, cgraph, pathplan
Erwin Janssen [Sun, 30 Oct 2016 22:10:21 +0000 (23:10 +0100)]
Replace WIN32 with _WIN32 in cdt, cgraph, pathplan

WIN32 is defined by the user, _WIN32 is set by the compiler to indicate
the platform. It is better to use the latter.
This commit replaces WIN32 with _WIN32 in source and header files of
lib/cdt, lib/cgraph and lib/pathplan.

8 years agoVisual Studio: access bison, flex, sed from path
Erwin Janssen [Fri, 28 Oct 2016 19:32:00 +0000 (21:32 +0200)]
Visual Studio: access bison, flex, sed from path

Instead of the environment variables %BISON%, %FLEX% and %SED%, access the
commands by using the PATH.

8 years agoRemove `_typ_size_t` define and check
Erwin Janssen [Tue, 11 Oct 2016 15:18:52 +0000 (17:18 +0200)]
Remove `_typ_size_t` define and check

The type `size_t` is part of the C standard library, there is no need
to check and define it.

8 years agoExpanded windows/include/unistd.h
Erwin Janssen [Fri, 7 Oct 2016 10:35:51 +0000 (12:35 +0200)]
Expanded windows/include/unistd.h

This unistd.h header file is intended to serve as a drop-in replacement
for unistd.h on Windows.
Source: http://stackoverflow.com/questions/341817/is-there-a-replacement-for-unistd-h-for-windows-visual-c

8 years agoremove experimental file
John Ellson [Mon, 5 Dec 2016 18:53:49 +0000 (13:53 -0500)]
remove experimental file

8 years agoMerge pull request #1179 from rakuco/egrep-for-version-header
John Ellson [Mon, 5 Dec 2016 18:05:16 +0000 (13:05 -0500)]
Merge pull request #1179 from rakuco/egrep-for-version-header

build: Use EGREP to generate graphviz_version.h

8 years agobuild: Use EGREP to generate graphviz_version.h
Raphael Kubo da Costa [Mon, 5 Dec 2016 10:53:43 +0000 (11:53 +0100)]
build: Use EGREP to generate graphviz_version.h

According to POSIX, '|' only works as an alternation character in grep
when it is extended regular expression mode (egrep, or grep -E).

This is not an issue most of the time because GNU grep accepts it in
non-extended expressions as well, but other grep implementations
adhering to the standard will fail to match the pattern used to generate
graphviz_version.h.

Switching to EGREP (which also requires not escaping the '|'s) makes it
work for all implementations.

8 years agoMerge pull request #1178 from ErwinJanssen/travis-nightly Nightly untagged-d41a2ad534044c12cb35
John Ellson [Mon, 5 Dec 2016 03:07:00 +0000 (22:07 -0500)]
Merge pull request #1178 from ErwinJanssen/travis-nightly

Enhanced Travis Nightly Release

8 years agoMerge pull request #1177 from ErwinJanssen/fix/windows-rtest
John Ellson [Mon, 5 Dec 2016 03:05:42 +0000 (22:05 -0500)]
Merge pull request #1177 from ErwinJanssen/fix/windows-rtest

Prevent values like -0 in xdot output

8 years agoSmall changelog change
Erwin Janssen [Mon, 5 Dec 2016 02:07:39 +0000 (03:07 +0100)]
Small changelog change

Appveyor is not used for Mac builds, but for the automated Windows build.

8 years agoEnhanced Travis Nightly Release
Erwin Janssen [Mon, 5 Dec 2016 01:58:01 +0000 (02:58 +0100)]
Enhanced Travis Nightly Release

Instead of publishing a new release with an "untagged" name on every
Travis build, this configuration will deploy all these nightlies to a
special Nightly release tag.

8 years agoPrevent values like -0 in xdot output
Erwin Janssen [Mon, 5 Dec 2016 01:10:22 +0000 (02:10 +0100)]
Prevent values like -0 in xdot output

Two graphs in the shapes regression test reference files (invhouse and
invtrapezium) contained a -0 coordinate. The Linux build produced the same
results, but the Windows build didn't, causing the regression tests to
fail.
To prevent values like -0 in the xdot output, a comparison is added just
before formatting the number.

8 years agofix pangocairo breakage from last commit untagged-febac5463c9a6f3cfc7b
John Ellson [Sun, 4 Dec 2016 22:46:23 +0000 (17:46 -0500)]
fix pangocairo breakage from last commit

8 years agoprep for php7 support in swig-3.0.11 untagged-21ff5f4411678e44e72c
John Ellson [Sun, 4 Dec 2016 22:03:38 +0000 (17:03 -0500)]
prep for php7 support in swig-3.0.11

8 years agotry are more direct approach to the missing XRENDER_CFLAGS untagged-f51b8e00e323a78e8270
John Ellson [Sun, 4 Dec 2016 19:48:09 +0000 (14:48 -0500)]
try are more direct approach to the missing XRENDER_CFLAGS

8 years agoimprove fix for #1175 untagged-46a47981af1ad6c7830d
John Ellson [Sun, 4 Dec 2016 19:29:23 +0000 (14:29 -0500)]
improve fix for #1175

8 years agoadd explicit check to cairo lib dependencies untagged-bb1d11353d7e8ae2f2a4
John Ellson [Sun, 4 Dec 2016 15:38:19 +0000 (10:38 -0500)]
add explicit check to cairo lib dependencies

8 years agotito doesn't autogen to spec.tmpl
John Ellson [Fri, 2 Dec 2016 06:35:59 +0000 (01:35 -0500)]
tito doesn't autogen to spec.tmpl

8 years agotrying to set up tito so that copr can work directly ffrom github
John Ellson [Fri, 2 Dec 2016 06:29:43 +0000 (01:29 -0500)]
trying to set up tito so that copr can work directly ffrom github

8 years agoInitialized to use tito.
John Ellson [Fri, 2 Dec 2016 06:22:37 +0000 (01:22 -0500)]
Initialized to use tito.

8 years agopartial fix for #1175 untagged-46da481a5543e7a1bf8e
John Ellson [Thu, 1 Dec 2016 03:08:08 +0000 (22:08 -0500)]
partial fix for #1175

8 years agoUpdate ChangeLog untagged-44fc22e3a508c2958a81
Emden R. Gansner [Tue, 29 Nov 2016 21:23:36 +0000 (16:23 -0500)]
Update ChangeLog

8 years agoAdd regression test for urls appearing in svg output. untagged-14e7b24955d481c7b36a
Emden Gansner [Mon, 28 Nov 2016 20:49:10 +0000 (15:49 -0500)]
Add regression test for urls appearing in svg output.

8 years agoFix issue #1166 for good. This also simplfies the code and also avoids the problem...
Emden Gansner [Mon, 28 Nov 2016 20:45:45 +0000 (15:45 -0500)]
Fix issue #1166 for good. This also simplfies the code and also avoids the problem of generating duplicate id's for different <g> elements.

8 years agoPrint out depth of graph in verbose mode. untagged-941905a04b09702a353c
Emden Gansner [Mon, 28 Nov 2016 19:24:50 +0000 (14:24 -0500)]
Print out depth of graph in verbose mode.

8 years agoAdd minus sign dropped in the conversion added in untagged-0a3057e980c64a11875a
Emden Gansner [Mon, 28 Nov 2016 16:57:41 +0000 (11:57 -0500)]
Add minus sign dropped in the conversion added in
0258d60cbde273e99abd015da7cb510b195724c3.

8 years agoUpdate man page to include additional widely-used formats. untagged-257982c92c56d4315606
Emden R. Gansner [Sun, 27 Nov 2016 21:43:37 +0000 (16:43 -0500)]
Update man page to include additional widely-used formats.

8 years agopreparing Changelog for 2.40.0 release untagged-09292206f9ec6d0f25d8
John Ellson [Sat, 26 Nov 2016 18:03:18 +0000 (13:03 -0500)]
preparing Changelog for 2.40.0 release

8 years agoupdate svg and xdot regression reference cases untagged-5efd1411540d5300c05d
John Ellson [Thu, 24 Nov 2016 22:14:04 +0000 (17:14 -0500)]
update svg and xdot regression reference cases

8 years agouse number rounding gvprintdouble() in .svg output - already used in tk and ps output
John Ellson [Thu, 24 Nov 2016 22:13:01 +0000 (17:13 -0500)]
use number rounding gvprintdouble() in .svg output - already used in tk and ps output

8 years agoMerge branch 'ErwinJanssen-regression-tests'
John Ellson [Thu, 24 Nov 2016 19:25:24 +0000 (14:25 -0500)]
Merge branch 'ErwinJanssen-regression-tests'
except for: "Fix: shape coordinates close to 0 now absolutely 0"

8 years agoRevert "Fix: shape coordinates close to 0 now absolutely 0"
John Ellson [Thu, 24 Nov 2016 19:23:52 +0000 (14:23 -0500)]
Revert "Fix: shape coordinates close to 0 now absolutely 0"

This reverts commit a55127dbe7d5557eeb019e1ed50fae16f84c2547.

8 years agoMerge branch 'regression-tests' of https://github.com/ErwinJanssen/graphviz into...
John Ellson [Thu, 24 Nov 2016 19:19:54 +0000 (14:19 -0500)]
Merge branch 'regression-tests' of https://github.com/ErwinJanssen/graphviz into ErwinJanssen-regression-tests

8 years agochange winbuild.html to a relative URL so that it doesn't break wgen relocated untagged-167219c230abbb068c64
John Ellson [Thu, 24 Nov 2016 19:13:11 +0000 (14:13 -0500)]
change winbuild.html to a relative URL so that it doesn't break wgen relocated

8 years agoremove .hgignore - not using mercurial anymore
John Ellson [Thu, 24 Nov 2016 19:10:38 +0000 (14:10 -0500)]
remove .hgignore - not using mercurial anymore

8 years agoUpdate man page, and fix number of nodes in the 2D Sierpinski graph; untagged-4a0354222931f4cf012e
Emden Gansner [Tue, 22 Nov 2016 18:33:28 +0000 (13:33 -0500)]
Update man page, and fix number of nodes in the 2D Sierpinski graph;
fix edge count for 3D Sierpinski in graph_generator.c;
modify CLI to use -S for Sierpinski in any dimension.

8 years agoMerge pull request #1171 from HanKruiger/master untagged-0a8cda69d4cba78f2e68
emden [Tue, 22 Nov 2016 16:17:45 +0000 (11:17 -0500)]
Merge pull request #1171 from HanKruiger/master

Added generation of tetrix (3d sierpinski) graphs.

8 years agoAdded generation of tetrix (3d sierpinski) graphs.
Han Kruiger [Fri, 18 Nov 2016 10:32:05 +0000 (11:32 +0100)]
Added generation of tetrix (3d sierpinski) graphs.

8 years agoRevert version ffb894f27874ebd510a8555c28083d6e01eb80b6. The fix broke other input... untagged-348619a7ff77176f7492
Emden Gansner [Thu, 3 Nov 2016 20:57:52 +0000 (16:57 -0400)]
Revert version ffb894f27874ebd510a8555c28083d6e01eb80b6. The fix broke other input (rtest/graphs/url.gv).
Plus it didn't fix the problem of repeated ids. We need to rethink how to handle anchors.

8 years agoxdot output added to shapes regression test
Erwin Janssen [Thu, 3 Nov 2016 00:54:04 +0000 (01:54 +0100)]
xdot output added to shapes regression test

The script `shapes.py` now also produces and compares xdot output, also
included the xdot reference files.

8 years agoSVG output added to shapes regression test
Erwin Janssen [Thu, 3 Nov 2016 00:33:16 +0000 (01:33 +0100)]
SVG output added to shapes regression test

The script `shapes.py` now also produces and compares SVG output, also
included the SVG reference files.

8 years agoFix: shape coordinates close to 0 now absolutely 0
Erwin Janssen [Thu, 3 Nov 2016 00:18:20 +0000 (01:18 +0100)]
Fix: shape coordinates close to 0 now absolutely 0

Check wether the values are close to zero by checking if it lies between
-0.00001 and 0.00001. If this is the case, set the value to 0. This prevents
coordinates like 7.10543e-15, that are differ by platform.

8 years agoMerge branch 'master' of https://github.com/ellson/graphviz untagged-c673d4de5b49bfc3ca91
Emden R. Gansner [Sun, 30 Oct 2016 21:27:47 +0000 (17:27 -0400)]
Merge branch 'master' of https://github.com/ellson/graphviz

8 years agoFix issue https://github.com/ellson/graphviz/issues/1166.
Emden R. Gansner [Sun, 30 Oct 2016 21:26:58 +0000 (17:26 -0400)]
Fix issue https://github.com/ellson/graphviz/issues/1166.

8 years agoAllow user to specify clustering algorithm in gvmap. untagged-0abbc2b30eaa01ee0686
Emden Gansner [Fri, 28 Oct 2016 15:04:06 +0000 (11:04 -0400)]
Allow user to specify clustering algorithm in gvmap.

8 years agoCompare output `shapes.py` to reference files
Erwin Janssen [Tue, 11 Oct 2016 10:38:23 +0000 (12:38 +0200)]
Compare output `shapes.py` to reference files

The reference files in `shapes/reference` are generated by the most recent
version of Graphviz. They will serve as a comparison for later versions to
verify the output.
`shapes.py` compares the generated files stored in `output` with the
reference files, by checking equality.

8 years agoBatch file for regression tests for Windows added.
Erwin Janssen [Mon, 10 Oct 2016 22:01:22 +0000 (00:01 +0200)]
Batch file for regression tests for Windows added.

This batch file will execute the new regression tests, for now this only
inclues `shapes.py`. Also added the execution of this file to the Appveyor
configuration.

8 years agoAdd shapes.py to Autotools check step
Erwin Janssen [Fri, 7 Oct 2016 13:16:24 +0000 (15:16 +0200)]
Add shapes.py to Autotools check step

Running `make check` (or `test` or `rtest`) now also executes `python shapes.py`

8 years agoPython script to generate a graph for every shape
Erwin Janssen [Mon, 10 Oct 2016 21:44:24 +0000 (23:44 +0200)]
Python script to generate a graph for every shape

The start of a regression test with Python. This script generates a gv
output for every available shape, the most basic output type.

8 years agoMove unit test from `tests/` to `tests/unit_tests`
Erwin Janssen [Thu, 29 Sep 2016 12:03:06 +0000 (14:03 +0200)]
Move unit test from `tests/` to `tests/unit_tests`

Moving the unit tests to a seperate folder in tests, allows the
regression tests to be placed in `tests/regressions_tests`.

8 years agosimplify ksh buildrequire for SuSE builds untagged-1520451ef19a8815aefb
John Ellson [Fri, 14 Oct 2016 19:28:34 +0000 (15:28 -0400)]
simplify ksh buildrequire for SuSE builds

8 years agoComplete backbone algorithm; add testing scaffolding. untagged-be0b53127acfad7b5de6
Emden Gansner [Wed, 12 Oct 2016 14:37:02 +0000 (10:37 -0400)]
Complete backbone algorithm; add testing scaffolding.

8 years agomissing TCL_EXEC_PREFIX substitution untagged-8d75101f9a003883956c
John Ellson [Sat, 8 Oct 2016 18:27:48 +0000 (14:27 -0400)]
missing TCL_EXEC_PREFIX substitution

8 years agoadd spinehdr.h to source dstribution untagged-5fc0363bc76319758ff6
John Ellson [Sat, 8 Oct 2016 16:24:37 +0000 (12:24 -0400)]
add spinehdr.h to source dstribution

8 years agoMerge branch 'ErwinJanssen-various-changes'
John Ellson [Sat, 8 Oct 2016 16:00:52 +0000 (12:00 -0400)]
Merge branch 'ErwinJanssen-various-changes'

8 years agoMerge branch 'various-changes' of https://github.com/ErwinJanssen/graphviz into Erwin...
John Ellson [Sat, 8 Oct 2016 15:56:04 +0000 (11:56 -0400)]
Merge branch 'various-changes' of https://github.com/ErwinJanssen/graphviz into ErwinJanssen-various-changes

8 years ago#include<spinehdr.h> => #include "spinehdr.h" untagged-a81020c0c01db3e23629
John Ellson [Sat, 8 Oct 2016 15:53:26 +0000 (11:53 -0400)]
#include<spinehdr.h> => #include "spinehdr.h"

8 years agoAdd lib/spine to Windows build
Erwin Janssen [Tue, 4 Oct 2016 16:04:13 +0000 (18:04 +0200)]
Add lib/spine to Windows build

Create a new Visual Studio project for the new library spine and include
this in the Windows build.

8 years agoReplace `Void_t` with `void` in lib/spine
Erwin Janssen [Tue, 4 Oct 2016 15:09:29 +0000 (17:09 +0200)]
Replace `Void_t` with `void` in lib/spine

The newly added code in spine used `Void_t`, which is no longer needed.