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
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
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.
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.
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.
John Ellson [Sun, 4 Dec 2016 22:46:23 +0000 (17:46 -0500)]
fix pangocairo breakage from last commit
John Ellson [Sun, 4 Dec 2016 22:03:38 +0000 (17:03 -0500)]
prep for php7 support in swig-3.0.11
John Ellson [Sun, 4 Dec 2016 19:48:09 +0000 (14:48 -0500)]
try are more direct approach to the missing XRENDER_CFLAGS
John Ellson [Sun, 4 Dec 2016 19:29:23 +0000 (14:29 -0500)]
improve fix for #1175
John Ellson [Sun, 4 Dec 2016 15:38:19 +0000 (10:38 -0500)]
add explicit check to cairo lib dependencies
John Ellson [Fri, 2 Dec 2016 06:35:59 +0000 (01:35 -0500)]
tito doesn't autogen to spec.tmpl
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
John Ellson [Fri, 2 Dec 2016 06:22:37 +0000 (01:22 -0500)]
Initialized to use tito.
John Ellson [Thu, 1 Dec 2016 03:08:08 +0000 (22:08 -0500)]
partial fix for #1175
Emden R. Gansner [Tue, 29 Nov 2016 21:23:36 +0000 (16:23 -0500)]
Update ChangeLog
Emden Gansner [Mon, 28 Nov 2016 20:49:10 +0000 (15:49 -0500)]
Add regression test for urls appearing in svg output.
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.
Emden Gansner [Mon, 28 Nov 2016 19:24:50 +0000 (14:24 -0500)]
Print out depth of graph in verbose mode.
Emden Gansner [Mon, 28 Nov 2016 16:57:41 +0000 (11:57 -0500)]
Add minus sign dropped in the conversion added in
0258d60cbde273e99abd015da7cb510b195724c3.
Emden R. Gansner [Sun, 27 Nov 2016 21:43:37 +0000 (16:43 -0500)]
Update man page to include additional widely-used formats.
John Ellson [Sat, 26 Nov 2016 18:03:18 +0000 (13:03 -0500)]
preparing Changelog for 2.40.0 release
John Ellson [Thu, 24 Nov 2016 22:14:04 +0000 (17:14 -0500)]
update svg and xdot regression reference cases
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
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"
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.
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
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
John Ellson [Thu, 24 Nov 2016 19:10:38 +0000 (14:10 -0500)]
remove .hgignore - not using mercurial anymore
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.
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.
Han Kruiger [Fri, 18 Nov 2016 10:32:05 +0000 (11:32 +0100)]
Added generation of tetrix (3d sierpinski) graphs.
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.
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.
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.
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.
Emden R. Gansner [Sun, 30 Oct 2016 21:27:47 +0000 (17:27 -0400)]
Merge branch 'master' of https://github.com/ellson/graphviz
Emden R. Gansner [Sun, 30 Oct 2016 21:26:58 +0000 (17:26 -0400)]
Fix issue https://github.com/ellson/graphviz/issues/1166.
Emden Gansner [Fri, 28 Oct 2016 15:04:06 +0000 (11:04 -0400)]
Allow user to specify clustering algorithm in gvmap.
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.
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.
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`
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.
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`.
John Ellson [Fri, 14 Oct 2016 19:28:34 +0000 (15:28 -0400)]
simplify ksh buildrequire for SuSE builds
Emden Gansner [Wed, 12 Oct 2016 14:37:02 +0000 (10:37 -0400)]
Complete backbone algorithm; add testing scaffolding.
John Ellson [Sat, 8 Oct 2016 18:27:48 +0000 (14:27 -0400)]
missing TCL_EXEC_PREFIX substitution
John Ellson [Sat, 8 Oct 2016 16:24:37 +0000 (12:24 -0400)]
add spinehdr.h to source dstribution
John Ellson [Sat, 8 Oct 2016 16:00:52 +0000 (12:00 -0400)]
Merge branch 'ErwinJanssen-various-changes'
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
John Ellson [Sat, 8 Oct 2016 15:53:26 +0000 (11:53 -0400)]
#include<spinehdr.h> => #include "spinehdr.h"
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.
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.
Erwin Janssen [Tue, 27 Sep 2016 10:55:54 +0000 (12:55 +0200)]
Replace checks for <stdint.h> and <inttypes.h>
Instead of checking for the availability of stdint.h and inttypes.h with HAVE_STDINT_H and HAVE_INTTYPES_H, simply include stdint.h. The header stdint.h is part of the C99 standard, so it can be safely assumed that this header is present.
inttypes.h contains everything stdint.h includes, but in all cases here, stdint.h suffices.
Erwin Janssen [Mon, 26 Sep 2016 20:27:09 +0000 (22:27 +0200)]
Remove usage of not set define HAVE_VMALLOC
This define is only used three times in lib/cgraph:
- In cghdr.h to include vmalloc.h
- In main.c in a function that is never called.
- in mem.c where malloc based allocation is used instead.
Erwin Janssen [Mon, 26 Sep 2016 11:35:33 +0000 (13:35 +0200)]
No _BEGIN/END_EXTERNS_ in headers with extern "C"
The defines _BEGIN_EXTERNS_ and _END_EXTERNS_ define `extern "C"` based on compilation with C++. However, the header files containing this define already have this check in a more conventional way. This additional define is therefore not needed in these files.
Erwin Janssen [Sat, 24 Sep 2016 15:34:49 +0000 (17:34 +0200)]
Remove alloca checks and definition
There are various checks for the alloca function and a definition of this function if it isn't found. However, the alloca function is never used anywhere in the code. These checks and defintions can therefore be removed.
Erwin Janssen [Sat, 24 Sep 2016 14:25:22 +0000 (16:25 +0200)]
Remove usage of _hdr_mman define.
This define is never set as there are no checks for it.
Erwin Janssen [Sat, 24 Sep 2016 12:42:16 +0000 (14:42 +0200)]
Remove unused code from cgraph: sfdcio
This function is never used somewhere. Removed the function declaration from sfdisc.h and the file containing the definition.
The define `HAVE_STRUCT_DIOATTR` was only used in this code file, so the check setting this define in `configure.ac` can also be removed.
Erwin Janssen [Sat, 24 Sep 2016 02:12:37 +0000 (04:12 +0200)]
Remove unused file from sfio: Makefile.orig
This makefile was probably the original makefile used by sfio, but another
makefile being used now.
Erwin Janssen [Sat, 24 Sep 2016 01:13:23 +0000 (03:13 +0200)]
Remove define and usage of `_hdr_float`
The header file float.h is part of the standard C library, so we can
assume it is always available. This header file also isn't included in the
sfio build when `_SFBINARY` is defined, resulting in a failed build.
The checks defining `_hdr_float` are removed and <float.h> is only
included were required in lib/sfio: in sfputd.c
Erwin Janssen [Wed, 21 Sep 2016 22:02:44 +0000 (00:02 +0200)]
Remove usage of HAVE_AST define
This define is never set, because there are no checks for the ast library. The checks using this define will never succeed, so they can be removed.
Erwin Janssen [Wed, 21 Sep 2016 18:47:42 +0000 (20:47 +0200)]
Remove unused code from cgraph: vmstub.h
The header file vmstub.h is never included or used.
Erwin Janssen [Wed, 21 Sep 2016 17:30:48 +0000 (19:30 +0200)]
No longer include ast_common.h in lib/cdt
The ast_common.h no longer contains anything used by cdt, so including it
is no longer needed.
Erwin Janssen [Tue, 20 Sep 2016 15:21:54 +0000 (17:21 +0200)]
Replace _BEGIN/END_EXTERNS_ with extern "C" in cdt
Erwin Janssen [Tue, 20 Sep 2016 11:34:44 +0000 (13:34 +0200)]
Replace `Void_t` with `void`
There used to be a check that defined `Void_t` as `void` when standard C
was used and `char` otherwise. Since we are always compiling with standard
C and `void` is a valid type, there is no reason to keep this typedef.
Erwin Janssen [Tue, 20 Sep 2016 11:09:17 +0000 (13:09 +0200)]
Removed redefinitions of `offsetof`
The `offsetof` macro is part of the ANSI C standard, so redefining it is
not needed since it's always present.
Erwin Janssen [Mon, 19 Sep 2016 18:47:43 +0000 (20:47 +0200)]
Remove all __DEFINE__ and __EXTERN__ macros
It seems that the condition where this macro is defined
(`#if !defined(_DLL_BLD) && defined(_dll_import)`) is never met. This
macro also seems to be meant for very specific scenario.
All in all, it seems safe to remove the macros by replacing them with
the value it gets when the above condition is not met.
Erwin Janssen [Mon, 19 Sep 2016 16:08:08 +0000 (18:08 +0200)]
Remove _ARG_ macro from all files.
This macro is used to simplify function prototyping when using the old
K&R C and more modern C dialects. Only three projects use this macro:
cdt, sfio and vmalloc. K&R is obsolete, so this macro adds no benefits and
only makes the code more complicated.
Definition and usage of this macro is removed from all files.
Erwin Janssen [Mon, 19 Sep 2016 13:57:44 +0000 (15:57 +0200)]
lib/cdt/cdt.h: Remove `#if 0` block
This `#if 0` block contains the extern declaration of two function
declared in string.h (which is included). This block can safely be
removed.
Erwin Janssen [Mon, 19 Sep 2016 13:54:17 +0000 (15:54 +0200)]
lib/cdt/dthdr.h: #include <stdlib.h>
Instead of declaring externs for the function malloc, realloc and free,
include the stdlib.h header file that includes these declarations.
Emden R. Gansner [Sun, 2 Oct 2016 21:49:01 +0000 (17:49 -0400)]
Add library for computing Simmelian backbones of graphs.
John Ellson [Tue, 27 Sep 2016 13:34:24 +0000 (09:34 -0400)]
Merge pull request #1164 from ErwinJanssen/update-appveyor-dependencies
Appveyor: update libgd dependencies and build dir
Erwin Janssen [Mon, 26 Sep 2016 20:42:26 +0000 (22:42 +0200)]
Appveyor: update libgd dependencies and build dir
Change the build directory of libgd to `build` instead of `gdbuild`,
because `build` is ignored by the libgd's .gitignore file. The vcxproject
files have been updated to reflect this change.
Changed the download link for freetype because the link was changed.
John Ellson [Mon, 19 Sep 2016 18:21:06 +0000 (14:21 -0400)]
Merge branch 'ErwinJanssen-remove-unused'
(resolved conflict from reinstalled features/common)
John Ellson [Mon, 19 Sep 2016 18:16:05 +0000 (14:16 -0400)]
merge changes except to features/common
John Ellson [Mon, 19 Sep 2016 17:13:24 +0000 (13:13 -0400)]
Merge pull request #1163 from ErwinJanssen/less-conditional-build
Less conditional build
John Ellson [Mon, 19 Sep 2016 17:12:38 +0000 (13:12 -0400)]
Merge pull request #1162 from ErwinJanssen/generate-exparse.c
Windows: generate exparse.c and exparse.h
John Ellson [Mon, 19 Sep 2016 17:12:02 +0000 (13:12 -0400)]
Merge pull request #1161 from ErwinJanssen/fix/travis-build
Fix Travis deployment
Erwin Janssen [Mon, 19 Sep 2016 12:56:43 +0000 (14:56 +0200)]
Remove remaining defines and usage of `__STD_C`
We are compiling with standard C99, so there is no need to define and
check for `__STD_C`, it is always true.
Erwin Janssen [Wed, 14 Sep 2016 15:16:24 +0000 (17:16 +0200)]
Removed old-style function defintions from vmalloc
The functions definitions in vmalloc are all surrounded by an `#if __STD_C`, if __STD_C is not defined than the old style function definition is used. These days STD C is the standard and the old style function defintions are obsolete.
They have been removed from lib/vmalloc and its subprojects, comments have been preserved by converting them to a Doxygen style.
Erwin Janssen [Fri, 9 Sep 2016 01:36:30 +0000 (03:36 +0200)]
Removed old-style function defintions from sfio
The functions definitions in sfio are all surrounded by an `#if __STD_C`, if __STD_C is not defined than the old style function definition is used. These days STD C is the standard and the old style function defintions are obsolete.
They have been removed from lib/sfio and its subprojects, comments have been preserved by converting time to a Doxygen style.
Erwin Janssen [Thu, 8 Sep 2016 21:06:24 +0000 (23:06 +0200)]
Removed old-style function defintions from lib/cdt
The functions definitions in cdt are all surrounded by an `#if __STD_C`, if __STD_C is not defined than the old style function definition is used. These days STD C is the standard and the old style function defintions are obsolete.
They have been removed from lib/cdt, but not from the subprojects.
Erwin Janssen [Mon, 19 Sep 2016 11:10:58 +0000 (13:10 +0200)]
Replace `SF_MAXDOUBLE` with `DBL_MAX` in lib/sfio
There are multiple checks to set SF_MAXDOUBLE, which is then only used
once. Since we are compiling with standard C and `float.h` is part of the
standard C API, we can use DBL_MAX instead and remove the define of
SF_MAXDOUBLE. This also results in some header files that are no longer
included, so checks for these could also be removed.
Erwin Janssen [Sun, 18 Sep 2016 21:16:28 +0000 (23:16 +0200)]
Remove define and usage of `_hdr_stdint`
This define is used in `lib/sfio` to determine if it is alright to include
`<stdint.h>`. Since we are compiling with standard C and stdint.h is part
of the standard, we can safely assume this check always evaluates to true
and remove it.
Erwin Janssen [Sun, 18 Sep 2016 17:42:41 +0000 (19:42 +0200)]
Windows: same runtime library option for getopt
The Release configuration of the getopt library used a different runtime
library option than the other projects. This is fixed now.
Erwin Janssen [Sun, 18 Sep 2016 16:43:59 +0000 (18:43 +0200)]
Remove HAVE_BOOLEAN from windows\include\config.h
This define is only defined here, and never occures anywhere else.
Erwin Janssen [Sun, 18 Sep 2016 15:50:06 +0000 (17:50 +0200)]
Remove define and usage of HAVE_BOOL
This define was only used twice. Once surrounded by a `#if 0` and once
only if HAVE_STDBOOL_H wasn't defined (HAVE_STDBOOL_H is part of the C99
standard library and is always defined).
Erwin Janssen [Sun, 18 Sep 2016 14:56:26 +0000 (16:56 +0200)]
Remove define and usage of HAVE_STRING_H
The header string.h is always present since we are compiling with standard C.
There is no need for this check, since it will always evaluate to true.
In addition to this, most includes of string.h to not use this check.
Erwin Janssen [Sun, 18 Sep 2016 12:51:15 +0000 (14:51 +0200)]
Remove define and usage of `_hdr_string`
This define is used in `lib/sfio` to determine if it is alright to include
`<string.h>`. Since we are compiling with standard C and string.h is part
of the standard, we can safely assume this check always evaluates to true
and remove it.
Erwin Janssen [Sun, 18 Sep 2016 12:37:35 +0000 (14:37 +0200)]
Remove check for unused `socklen_t`
The presence of `socklen_t` is tested and an alternative typedef is
created when `socklen_t` is absent, but `socklen_t` is never used in the
code, this check should be removed.
Erwin Janssen [Sun, 18 Sep 2016 12:19:02 +0000 (14:19 +0200)]
Remove define and usage of HAVE_STDLIB_H
The header stdlib.h is always present since we are compiling with standard C.
There is no need for this check, since it will always evaluate to true.
Erwin Janssen [Sun, 18 Sep 2016 11:38:54 +0000 (13:38 +0200)]
Remove define and usage of `_hdr_stdlib`
This define is used in `lib/sfio` and `lib/vmalloc' to determine if it is
alright to include `<stdlib.h>`. Since we are compiling with standard C
and stdlib.h is part of the standard, we can safely assume this check
always evaluates to true and remove it.
Erwin Janssen [Sun, 18 Sep 2016 11:11:44 +0000 (13:11 +0200)]
Removed unsed vcproj files from DIST targets.
Erwin Janssen [Sun, 18 Sep 2016 01:46:07 +0000 (03:46 +0200)]
Remove unused *.vcproj files.
The .vcproj files are the old Visual Studio project files. A lot of these
were upgraded and the old versions removed. These vcproj files have an
upgraded .vcxproj, but hadn't been removed yet.
Erwin Janssen [Sun, 18 Sep 2016 01:37:04 +0000 (03:37 +0200)]
Remove checks for getopt.h
Removed the checks that define `HAVE_GETOPT_H` and `HAVE_GETOPT_DECL`.
Because getopt can be used by the Windows build, these checks are no
longer needed.
Erwin Janssen [Sun, 18 Sep 2016 01:15:34 +0000 (03:15 +0200)]
Remove all references to getopt_compat.h
This file is removed, so references to this file should be removed as well.
Erwin Janssen [Sun, 18 Sep 2016 01:06:52 +0000 (03:06 +0200)]
Windows: link getopt library to multiple projects
The projects that required getopt were:
- acyclic
- bcomps
- ccomps
- dijkstra
- edgepaint
- gc
- gml2gv
- graphml2gv
- gv2gml
- gvcolor
- gvgen
- gvmap
- gvpack
- gvprlib
- gxl2gv
- mingle
- mm2gv
- nop
- prune
- sccmap
- smyrna
- tred
- unflatten
Also made minor changes to graphml2gv for proper linking.
Erwin Janssen [Sun, 18 Sep 2016 00:28:54 +0000 (02:28 +0200)]
Remove old getopt.h and compat_getopt.h
These two files were present because Windows doesn't have the getopt
function. With the new getopt library for Windows added, these two files
are no longer needed.
Erwin Janssen [Sun, 18 Sep 2016 00:11:05 +0000 (02:11 +0200)]
Windows: add getopt library project.
This library should provide the ability to use `getopt` in the Windows
build. The implementatation of the `getopt` function is taken from the
ingraphs library.
Adding this project also added a x64 build configuration to the Visual
Studio solution, but this configuration isn't tested yet.
Erwin Janssen [Sat, 17 Sep 2016 23:34:38 +0000 (01:34 +0200)]
Remove HAVE_CONFIG_H check
config.h should always be included, a build without it never happens.
The checks on Linux always succeed, because autotools automatically
defines HAVE_CONFIG_H on all the Makefiles. On Windows this is not the
case. Removing all the checks revealed that multiple projects did not
include config.h because HAVE_CONFIG_H wasn't defined. This was the case
for at least the following projects:
- acyclic
- bcomps
- ccomps
- dijkstra
- ingraphs
- gc
- gml2gv
- graphml2gv
- gv2gml
- gvcolor
- gvgen
- mm2gv
- nop
- pathplan
- rbtree
- sccmap
- topfish
- tred
Added `windows\include` to the additional include directories and adding
some library paths solves some, but not all problems that emerged when the
check was removed and some code actually got compiled that wasn't compiled
before.