]> granicus.if.org Git - graphviz/log
graphviz
7 years agoExpose ageqedge in cgraph.dll.
Chiel ten Brinke [Tue, 3 Jan 2017 14:35:13 +0000 (15:35 +0100)]
Expose ageqedge in cgraph.dll.

Fix #1188.

8 years agocontinuing 2.41 development series
John Ellson [Sun, 25 Dec 2016 03:18:08 +0000 (22:18 -0500)]
continuing 2.41 development series

8 years agostable_release_2.40.1 2.40.1 stable_release_2.40.1
John Ellson [Sun, 25 Dec 2016 03:04:04 +0000 (22:04 -0500)]
stable_release_2.40.1

8 years agoDon't use aptr->u.asym unless it has been set. This can cause a crash if aptr->u...
Emden Gansner [Thu, 22 Dec 2016 20:58:24 +0000 (15:58 -0500)]
Don't use aptr->u.asym unless it has been set. This can cause a crash if aptr->u.asym->name is referenced.

8 years agoMerge branch 'master' of https://github.com/ellson/graphviz
Emden Gansner [Thu, 22 Dec 2016 17:16:45 +0000 (12:16 -0500)]
Merge branch 'master' of https://github.com/ellson/graphviz

8 years agoNull out input file name after parsing, as a user may have set the file name before...
Emden Gansner [Thu, 22 Dec 2016 17:15:39 +0000 (12:15 -0500)]
Null out input file name after parsing, as a user may have set the file name before calling agmemread.

8 years agomaybe called libgd-dev
John Ellson [Thu, 22 Dec 2016 05:34:03 +0000 (00:34 -0500)]
maybe called libgd-dev

8 years agoMerge branch 'master' of github.com:/ellson/graphviz
John Ellson [Thu, 22 Dec 2016 05:30:16 +0000 (00:30 -0500)]
Merge branch 'master' of github.com:/ellson/graphviz

merging

8 years agoprobably need gd-dev for diffimg
John Ellson [Thu, 22 Dec 2016 05:30:00 +0000 (00:30 -0500)]
probably need gd-dev for diffimg

8 years agoMerge pull request #1189 from ErwinJanssen/various-changes
John Ellson [Wed, 21 Dec 2016 18:21:03 +0000 (13:21 -0500)]
Merge pull request #1189 from ErwinJanssen/various-changes

Various changes and removed ast_common.h

8 years agoRemove usage of ast_common.h
Erwin Janssen [Wed, 21 Dec 2016 14:15:05 +0000 (15:15 +0100)]
Remove usage of ast_common.h

Now that ast_common.h is never included anymore, the files
`ast_common.h.in`, `windows/include/ast_common.h` and all
`features/common` can be removed.

8 years agoReplace remaining "ast_common.h" includes
Erwin Janssen [Wed, 21 Dec 2016 13:18:25 +0000 (14:18 +0100)]
Replace remaining "ast_common.h" includes

Added a typedef for `ssize_t` to the Windows config.h, which is the
location were Autotools would define it if it isn't found.
Removed the remaining includes of "ast_common.h", instead include
"config.h" and add a check to include "sys/typesh" (were ssize_t is
located on Linux)

8 years agoRemove `_dll_import` define block in ast_common.h
Erwin Janssen [Mon, 19 Dec 2016 11:10:46 +0000 (12:10 +0100)]
Remove `_dll_import` define block in ast_common.h

The define `_dll_import` is never set by any file that includes
ast_common.h, the define block is therefore never triggered. DLL linkage
is Windows is currently done with `def` files.

8 years agoRemove va_* and ast_va_* defines from ast_common.h
Erwin Janssen [Sun, 18 Dec 2016 15:15:49 +0000 (16:15 +0100)]
Remove va_* and ast_va_* defines from ast_common.h

These defines are never used, just like the varargs.h include that
was removed earlier. They can therefore be safely removed as well.

8 years agoReplace last usage of _BEGIN/END_EXTERNS_
Erwin Janssen [Sun, 18 Dec 2016 14:49:15 +0000 (15:49 +0100)]
Replace last usage of _BEGIN/END_EXTERNS_

The last occurence of the defines _BEGIN_EXTERNS_ and _END_EXTERNS_ in the
code was in lib/sfio/sfsetbuf.h, this is now replaced with the standard
`extern "C"` define and check. Because of this, the definition of
_BEGIN_EXTERNS_ and _END_EXTERNS_ can be removed from ast_common.h

8 years agoRemove limits.h/values.h include from ast_common.h
Erwin Janssen [Sun, 18 Dec 2016 13:23:06 +0000 (14:23 +0100)]
Remove limits.h/values.h include from ast_common.h

These includes are not used by the files that include ast_common.h

8 years agoRemove `_typ_long_double` define from ast_common.h
Erwin Janssen [Sun, 18 Dec 2016 13:13:35 +0000 (14:13 +0100)]
Remove `_typ_long_double` define from ast_common.h

This define is never used and can therefore be safely removed.

8 years agoFix: remove trailing `]` from sfhdr.h
Erwin Janssen [Sun, 18 Dec 2016 12:46:55 +0000 (13:46 +0100)]
Fix: remove trailing `]` from sfhdr.h

A previous change accidently introduced a trailing `]` in sfhdr.h.

8 years agoRemove `varargs.h` include from ast_common.h.in
Erwin Janssen [Sun, 18 Dec 2016 12:42:06 +0000 (13:42 +0100)]
Remove `varargs.h` include from ast_common.h.in

None of the files that include ast_common.h.in, require anything from
varargs.h, compilation is still successfull.

8 years agoRemove unused function checks and defines
Erwin Janssen [Sun, 18 Dec 2016 12:01:35 +0000 (13:01 +0100)]
Remove unused function checks and defines

congigure.ac checks for the presence of certain functions and creates
define indicating if it was found. Some of these defines are never
used, so the check (and the static define for Windows) can be safely
removed. This is the case for the following functions:
- __freadable
- _sysconf
- getrusage
- lsqrt
- memset
- nl_langinfo
- pow
- sqrt
- strchr
- strdup
- strstr
- strtoll
- strtoul
- strtoull
- uname

Also removed duplicate `strerror` in `AC_CHECK_FUNCS`.

8 years agoRemove check for `size_t` in configure.ac
Erwin Janssen [Sun, 18 Dec 2016 11:49:49 +0000 (12:49 +0100)]
Remove check for `size_t` in configure.ac

The macro `AC_TYPE_SIZE_T` checks if the type `size_t` is available, but
this type is part of the C standard, checking is therefore not required.

8 years agoRemove check for `mode_t` in configure.ac
Erwin Janssen [Sun, 18 Dec 2016 11:41:42 +0000 (12:41 +0100)]
Remove check for `mode_t` in configure.ac

The macro `AC_TYPE_MODE_T` checks if the type `mode_t` is available, but
this type is never used in the code. Checking is therefore not required.

8 years agoRemove check for `const` keyword in configure.ac
Erwin Janssen [Sun, 18 Dec 2016 11:30:14 +0000 (12:30 +0100)]
Remove check for `const` keyword in configure.ac

The macro `AC_C_CONST` checks whether the used C compiler supports
the keyword `const` and defines it accordingly. But as stated in
the autoconf documentation, this macro is becomming obsolete as
current C compilers `cost`. Checking is therefore no longer required.

8 years agoRemove unused header checks and defines
Erwin Janssen [Mon, 12 Dec 2016 15:12:49 +0000 (16:12 +0100)]
Remove unused header checks and defines

congigure.ac checkes for the presence of header files and creates
define indicating if it was found. Some of these defines are never
used, so the check (and the static define for Windows) can be safely
removed. This is the case for the following headers:
- langinfo.h
- libintl.h
- pthread.h
- setjmp.h
- sys/times.h

8 years agoRemove definition and usage of HAVE_TIME_H
Erwin Janssen [Sun, 11 Dec 2016 00:59:19 +0000 (01:59 +0100)]
Remove definition and usage of HAVE_TIME_H

The header <time.h> is part of the standard C library and is always
available, checking is therefore not needed.

8 years agoRemove definition of HAVE_FLOAT_H
Erwin Janssen [Sun, 11 Dec 2016 00:55:02 +0000 (01:55 +0100)]
Remove definition of HAVE_FLOAT_H

The header <float.h> is part of the standard C library and is always
available, checking is therefore not needed. In addition to this,
this define is never used.

8 years agoRemove definition and usage of HAVE_STDDEF_H
Erwin Janssen [Sun, 11 Dec 2016 00:49:39 +0000 (01:49 +0100)]
Remove definition and usage of HAVE_STDDEF_H

The header <stddef.h> is part of the standard C library and is always available,
checking is therefore not needed.

8 years agoRemoved all _ast_int and _ast_flt defines
Erwin Janssen [Fri, 9 Dec 2016 15:07:50 +0000 (16:07 +0100)]
Removed all _ast_int and _ast_flt defines

The defines _ast_int and _ast_flt used to be generated, but were now defined
in ast_common.h. Most of these defines were not used either, only _ast_intmax_t
and _ast_fltmax_t were used to define another define in sfio.h. Instead, we now
directly use the values `long long` and `long double` to set the defines in
sfio.h and we can safely remove the _ast_int and _ast_flt defines.

8 years agoRemove defintion of HAVE_STDARG_H and _hdr_stdarg
Erwin Janssen [Fri, 9 Dec 2016 00:24:14 +0000 (01:24 +0100)]
Remove defintion of HAVE_STDARG_H and _hdr_stdarg

The define _hdr_stdarg was only used in ast_common.h to include <stdarg.h>
but this include was not needed, compilation succeeds without it.
The define HAVE_STDARG_H was only used to set _hdr_starg in ast_common.h.

Both defines and the include can therefore safely be removed.

8 years agoAdd CI build status badges to README.md
Erwin Janssen [Thu, 8 Dec 2016 11:24:11 +0000 (12:24 +0100)]
Add CI build status badges to README.md

These badges show the build status of the master branch. If the Travis or
Appveyor build fails, it can be seen directly on Github in the README.

8 years agoRemove defintion of HAVE_SYS_SOCKET_H and _sys_socket
Erwin Janssen [Thu, 8 Dec 2016 23:23:40 +0000 (00:23 +0100)]
Remove defintion of HAVE_SYS_SOCKET_H and _sys_socket

These defines were set, but never used. Defining them is therefore not needed.

8 years agorestarting 2.41 development series
John Ellson [Wed, 21 Dec 2016 03:06:20 +0000 (22:06 -0500)]
restarting 2.41 development series

8 years agoredo 2.40 stable release with neatoinit.c change reverted
John Ellson [Wed, 21 Dec 2016 02:39:32 +0000 (21:39 -0500)]
redo 2.40 stable release with neatoinit.c change reverted

8 years agostarting 2.41 development series
John Ellson [Tue, 20 Dec 2016 16:48:14 +0000 (11:48 -0500)]
starting 2.41 development series

8 years agostable release 2.40 2.40.0
John Ellson [Tue, 20 Dec 2016 16:01:44 +0000 (11:01 -0500)]
stable release 2.40

8 years agoMerge branch 'master' of github.com:/ellson/graphviz
John Ellson [Tue, 20 Dec 2016 14:31:54 +0000 (09:31 -0500)]
Merge branch 'master' of github.com:/ellson/graphviz

merge local changes

8 years agocomment out refs to tred2, not intended for distribution
John Ellson [Tue, 20 Dec 2016 14:31:42 +0000 (09:31 -0500)]
comment out refs to tred2, not intended for distribution

8 years agoRemove spurious #define DEBUG 1 in source code
Stephen C North [Tue, 20 Dec 2016 13:19:40 +0000 (08:19 -0500)]
Remove spurious #define DEBUG 1 in source code

8 years agoMerge branch 'master' of https://github.com/ellson/graphviz
Stephen C North [Tue, 20 Dec 2016 01:28:49 +0000 (20:28 -0500)]
Merge branch 'master' of https://github.com/ellson/graphviz

8 years ago"Beware of bugs in the above code; I have only proved it correct, not tried it."...
Stephen C North [Tue, 20 Dec 2016 00:37:04 +0000 (19:37 -0500)]
"Beware of bugs in the above code; I have only proved it correct, not tried it."--Donald Knuth

8 years agoMerge pull request #1187 from ErwinJanssen/fix/issue-#1186
John Ellson [Mon, 19 Dec 2016 20:00:48 +0000 (15:00 -0500)]
Merge pull request #1187 from ErwinJanssen/fix/issue-#1186

Fix font errors on Windows with binary outputs

8 years agoFix fonts errors on Windows with binary outputs
Erwin Janssen [Mon, 19 Dec 2016 14:39:32 +0000 (15:39 +0100)]
Fix fonts errors on Windows with binary outputs

Outputs like 'png' didn't render the text properly on Windows (rectangles
instead of letters). The cause was that Pango was missings its modules. This
change adds post build commands to the `smyrna` en `gvplugin_pango` Visual
Studio projects, so the required modules are copied and then recognized by
pango.
Fixes issue #1186

8 years agoMerge branch 'master' of https://github.com/ellson/graphviz
Stephen C North [Mon, 19 Dec 2016 00:54:46 +0000 (19:54 -0500)]
Merge branch 'master' of https://github.com/ellson/graphviz

8 years agoNew tight_tree search algorithm to reduce running time from |V|^2 to something closer...
Stephen C North [Mon, 19 Dec 2016 00:48:13 +0000 (19:48 -0500)]
New tight_tree search algorithm to reduce running time from |V|^2 to something closer to |V+E|.  May solve some old "trouble in init_rank" bugs.

8 years agofix rpm breakage
John Ellson [Sun, 18 Dec 2016 12:57:35 +0000 (07:57 -0500)]
fix rpm breakage

8 years agodemo/modgraph.lua now demos built-in tred
John Ellson [Sun, 18 Dec 2016 06:14:25 +0000 (01:14 -0500)]
demo/modgraph.lua now demos built-in tred

8 years agofix tred2
John Ellson [Sun, 18 Dec 2016 05:04:18 +0000 (00:04 -0500)]
fix tred2

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 agoMerge branch 'master' of git://github.com/ellson/graphviz
Stephen C North [Mon, 5 Dec 2016 19:26:06 +0000 (14:26 -0500)]
Merge branch 'master' of git://github.com/ellson/graphviz

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.