]> granicus.if.org Git - graphviz/log
graphviz
7 years agoMove Windows dependencies to x86 directory
Erwin Janssen [Fri, 7 Apr 2017 14:32:36 +0000 (16:32 +0200)]
Move Windows dependencies to x86 directory

The current Windows dependencies are all 32bit. To compile a 64bit
Graphviz, 64bit dependencies are required. In order to have both the
32bit and 64bit libraries, we store the 32bit libraries in the x86
folder.

7 years agoRemove HAVE_PANGOCAIRO check from plugin/pango
Erwin Janssen [Sun, 14 May 2017 20:43:48 +0000 (22:43 +0200)]
Remove HAVE_PANGOCAIRO check from plugin/pango

The check to see if pangocairo is present should be done before including
this project in the build. Now, when pangocairo is not found, this tries
to compile when it shouldn't, resulting in strange errors.

7 years agoMerge pull request #1241 from ErwinJanssen/fix/regression-reference
emden [Sat, 13 May 2017 17:47:37 +0000 (13:47 -0400)]
Merge pull request #1241 from ErwinJanssen/fix/regression-reference

Update SVG reference output

7 years agoUpdate SVG reference output
Erwin Janssen [Sat, 13 May 2017 08:14:27 +0000 (10:14 +0200)]
Update SVG reference output

A recent change caused the SVG colors to be specified by name, rather than
by hex code. This updates the reference output accordingly.

7 years agoAdd dtclose(map) line which was accidentally removed in the previous revision.
Emden Gansner [Thu, 11 May 2017 21:39:27 +0000 (17:39 -0400)]
Add dtclose(map) line which was accidentally removed in the previous revision.

7 years agoFix bug where a node whose name starts with "cluster" gets lost in JSON output.
Emden Gansner [Thu, 11 May 2017 18:59:16 +0000 (14:59 -0400)]
Fix bug where a node whose name starts with "cluster" gets lost in JSON output.

7 years agoMerge pull request #1236 from Chiel92/expose_forgotten_cgraph_functions
John Ellson [Thu, 4 May 2017 11:41:27 +0000 (07:41 -0400)]
Merge pull request #1236 from Chiel92/expose_forgotten_cgraph_functions

Expose forgotten cgraph functions.

7 years agoExpose forgotten cgraph functions.
Chiel ten Brinke [Thu, 4 May 2017 08:49:41 +0000 (10:49 +0200)]
Expose forgotten cgraph functions.

7 years agoJust use strcmp, rather than streq.
Emden Gansner [Wed, 3 May 2017 17:15:41 +0000 (13:15 -0400)]
Just use strcmp, rather than streq.

7 years agoFix incorrect bsearch for colors. This basically rolls back the changes from
Emden Gansner [Wed, 3 May 2017 17:05:59 +0000 (13:05 -0400)]
Fix incorrect bsearch for colors. This basically rolls back the changes from
e653d8054fe3c2313944a2a88f3ad7c374bd9b21 and a155276b30da0619979d0b7d5ae22cb05b9b7d16.

7 years agoFix incorrect code that should short-circuit the analysis for colors black, white...
Emden Gansner [Wed, 3 May 2017 16:00:37 +0000 (12:00 -0400)]
Fix incorrect code that should short-circuit the analysis for colors black, white and lightgrey.
It should have been && rather than ||. Just use streq.

7 years agoAdd info on new imagepos attribute to attrs.html page.
Emden R. Gansner [Sun, 30 Apr 2017 20:08:29 +0000 (16:08 -0400)]
Add info on new imagepos attribute to attrs.html page.

7 years agoMerge pull request #1233 from apocalyptech/master
John Ellson [Thu, 27 Apr 2017 15:23:09 +0000 (11:23 -0400)]
Merge pull request #1233 from apocalyptech/master

Add 'imagepos' node attribute to control image placement

7 years agoAdding 'imagepos' node attribute to control image placement
CJ Kucera [Tue, 25 Apr 2017 21:36:09 +0000 (16:36 -0500)]
Adding 'imagepos' node attribute to control image placement

7 years agoReset flex start state if error occurs. Otherwise, the next call to the
Emden Gansner [Sun, 9 Apr 2017 17:48:41 +0000 (13:48 -0400)]
Reset flex start state if error occurs. Otherwise, the next call to the
lexer will potentially start in a state other than INITIAL.

7 years agoback off from usage of unsigned dimensions and colors not supported by libgd
John Ellson [Fri, 7 Apr 2017 14:34:11 +0000 (10:34 -0400)]
back off from usage of unsigned dimensions and colors not supported by libgd

7 years agoMerge pull request #1229 from ErwinJanssen/cmake
John Ellson [Fri, 7 Apr 2017 14:06:06 +0000 (10:06 -0400)]
Merge pull request #1229 from ErwinJanssen/cmake

Major CMake additions + Windows Installer

7 years agoInclude required system libraries on install
Erwin Janssen [Thu, 6 Apr 2017 20:22:23 +0000 (22:22 +0200)]
Include required system libraries on install

By including `InstallRequiredSystemLibraries`, the required system
libraries are included when CPack creates a packages. The main purpose is
including the required vcruntime on Windows.

7 years agoAdd tools from cmd/tools to CMake build
Erwin Janssen [Wed, 5 Apr 2017 20:35:21 +0000 (22:35 +0200)]
Add tools from cmd/tools to CMake build

The directory cmd/tools contains multiple command line tools, these are
added to the CMake build. Because most tools shared some or most of their
settings, a CMake function could be used to set most of these settings.

7 years agoCMake: build getopt if it's not available
Erwin Janssen [Sun, 2 Apr 2017 17:28:31 +0000 (19:28 +0200)]
CMake: build getopt if it's not available

Some platforms (most notably Windows) do have not getopt. For these
platforms, a seperate getopt library can be build and linked when
required.

7 years agoAdd plugin/neato_layout to CMake build
Erwin Janssen [Sat, 1 Apr 2017 09:14:34 +0000 (11:14 +0200)]
Add plugin/neato_layout to CMake build

The dynamic library 'gvplugin_neato_layout' has no dependencies outside
the libraries from `lib`.

7 years agoAdd plugin/gdiplus to CMake build
Erwin Janssen [Sat, 1 Apr 2017 07:53:42 +0000 (09:53 +0200)]
Add plugin/gdiplus to CMake build

The dynamic library 'gvplugin_gdiplus' is, besides from the libraries in
lib, also dependent on gdiplus. This is a Windows only library that is
assumed to be available on Windows systems. The only check added for this
project is `if(WIN32)`.

7 years agoAdd plugin/gd to CMake build
Erwin Janssen [Fri, 31 Mar 2017 11:35:52 +0000 (13:35 +0200)]
Add plugin/gd to CMake build

The dynamic library 'gvplugin_gd' is, besides from the libraries in lib,
also dependent on libgd. For this a check and CMake find module was added.
If libgd is not found, this pluging is not build.

7 years agoUse GRAPHVIZ_PLUGIN_VERSION=6 in CMake build
Erwin Janssen [Fri, 31 Mar 2017 10:49:00 +0000 (12:49 +0200)]
Use GRAPHVIZ_PLUGIN_VERSION=6 in CMake build

The Autotools build specifices the GVPLUGING_VERSION to 6, this doesn't
change in the CMake build.

7 years agoAdd Windows installer using NSIS and CPack
Erwin Janssen [Fri, 31 Mar 2017 07:27:56 +0000 (09:27 +0200)]
Add Windows installer using NSIS and CPack

Create a Windows Installer using CPack and the NSIS generator. The CMake
build on Appveyor now installs Graphviz using this installer and runs the
tests using ctest. The installer is added as an artifact to the Release
build.
Also switched the order of cmake and msbuild in Appveyor and added
`clone_depth: 25` for faster cloning.

7 years agoTravis + Cmake, include usr/local/lib for ldconfig
Erwin Janssen [Sat, 25 Mar 2017 16:23:37 +0000 (17:23 +0100)]
Travis + Cmake, include usr/local/lib for ldconfig

Not all platforms include this directory when running ldconfig, the
CentOS docker image for example.

7 years agoRun `ldconfig` after CMake build install on Travis
Erwin Janssen [Sat, 25 Mar 2017 15:22:47 +0000 (16:22 +0100)]
Run `ldconfig` after CMake build install on Travis

The CMake install command doesn't register the installed libraries, so
ldconfig must be called manually.

7 years agoCMake: Install plugin library to lib/graphviz
Erwin Janssen [Sat, 25 Mar 2017 15:02:38 +0000 (16:02 +0100)]
CMake: Install plugin library to lib/graphviz

Instead of installing the plugin libraries to `lib`, install them
`lib/graphviz`, just like the current Autotools build.

7 years agoExecute CMake test on Travis
Erwin Janssen [Fri, 24 Mar 2017 09:50:04 +0000 (10:50 +0100)]
Execute CMake test on Travis

Verify the build on Travis by executing the tests added by CMake.

7 years agoAdd Python based regression tests to CMake
Erwin Janssen [Fri, 24 Mar 2017 09:21:24 +0000 (10:21 +0100)]
Add Python based regression tests to CMake

This commits add the Python based regression tests to CMake, after
Graphviz has been build and installed, it can be executed by running
`ctest` in the build directory.

7 years agoAdd general CPack information
Erwin Janssen [Mon, 20 Mar 2017 13:03:16 +0000 (14:03 +0100)]
Add general CPack information

Add a seperate file containing the CPack information. This now includes
general information shared by all CPack generators, like package name,
version and description.

7 years agoAdd the `dot` executable to the CMake build
Erwin Janssen [Mon, 20 Mar 2017 12:07:01 +0000 (13:07 +0100)]
Add the `dot` executable to the CMake build

The CMake build now builds `dot` and allows graphs to be rendered. Only
the `core` outputs and `dot_layout` are included for now.

7 years agoAdd plugin/dot_layout to CMake build
Erwin Janssen [Sat, 18 Mar 2017 21:02:07 +0000 (22:02 +0100)]
Add plugin/dot_layout to CMake build

The dynamic library 'gvplugin_dot_layout' has no dependencies outside the
libraries from `lib`.

7 years agoAdd plugin/core to CMake build
Erwin Janssen [Tue, 14 Mar 2017 20:53:58 +0000 (21:53 +0100)]
Add plugin/core to CMake build

The dynamic library 'gvplugin_core' is the first library from `plugin`
added to the CMake build. It has no dependencies outside the libraries
in `lib`.

7 years agoAdd JSON functions to lib/gvc/gvc.def
Erwin Janssen [Tue, 14 Mar 2017 20:00:16 +0000 (21:00 +0100)]
Add JSON functions to lib/gvc/gvc.def

These functions are already added to lib/gvc.def (used by the Visual
Studio build), now they are also added to lib/gvc/gvc.def (used by the
CMake build).

7 years agoAdd some platform checks to CMake build
Erwin Janssen [Sat, 4 Mar 2017 15:26:07 +0000 (16:26 +0100)]
Add some platform checks to CMake build

Included the definition of the DEFAULT_FONTPATH in the platform check.
Also define DARWIN and DARWIN_DYLIB when compiling on OS X.
Both checks are also done in the Autotools build.

7 years agoAdd function checks from configure.ac to CMake
Erwin Janssen [Thu, 9 Feb 2017 07:11:01 +0000 (08:11 +0100)]
Add function checks from configure.ac to CMake

Checks for the following functions were added to the CMake build:
- _NSGetEnviron
- getenv
- lrand48
- setenv
- setmode

7 years agoAdd all header checks from configure.ac to CMake
Erwin Janssen [Wed, 8 Feb 2017 20:38:41 +0000 (21:38 +0100)]
Add all header checks from configure.ac to CMake

The CMake build now checks for the same headers as the Autotools build.
The following headers checks were added:
- crt_externs.h
- fcntl.h
- memory.h
- search.h
- sys/inotify.h
- sys/ioctl.h
- sys/mman.h
- sys/select.h
- sys/time.h
- sys/vfork.h
- termios.h
- vfork.h
- X11/Intrinsic.h
- X11/Xaw/Text.h

7 years agoAdd lib/gvc to CMake build
Erwin Janssen [Tue, 7 Feb 2017 07:02:19 +0000 (08:02 +0100)]
Add lib/gvc to CMake build

The dynamic library `gvc` is the core library of Graphviz. It has various
dependencies, of which some are third party libraries. The DLLs of these
libraries will be included in the package on Windows.

Now also generating `builddate.h` on all platforms. The Windows Visual
Studio build didn't generate this file.

Now also defines GVPLUGIN_CONFIG_FILE, set to confg6, just like the
Autotools build.

Support the "enable-ltdl" option, default value is ON.

Now passing the "-fPIC" to all compilers, except MSVC.

The following checks have been added:
- FindLTDL
- FindRxSpencer (on Windows only)

7 years agoAdd lib/common to CMake build
Erwin Janssen [Fri, 3 Feb 2017 16:50:02 +0000 (17:50 +0100)]
Add lib/common to CMake build

The static library 'common' has no dependencies.

The following checks have been added:
- FindAWK (custom CMake module added)
- FindPerl
- FindEXPAT
- FindZLIB
- HAVE_SINCOS
- HAVE_STRINGS_H
- HAVE_SYS_TYPES_H
- HAVE_STRNCASECMP_H

The steps to generate `colortbl.h` and `ps_font_equiv.h` are the same as
in the Autotools build. DEFAULT_DPI is now set in the config.h generated
by CMake.

7 years agoAdd lib/mingle to CMake build
Erwin Janssen [Sun, 29 Jan 2017 11:30:48 +0000 (12:30 +0100)]
Add lib/mingle to CMake build

The static library 'libmingle' has no dependencies, but a check for the
ANN library had to be added. For this a cmake find module was added.

7 years agoDisable warning C4996 on Windows CMake build
Erwin Janssen [Sun, 29 Jan 2017 09:51:42 +0000 (10:51 +0100)]
Disable warning C4996 on Windows CMake build

MSVC warning C4996 mostly fires on completely valid code. The changes
proposed in the warning text often seriously compromise the code
portability, while they never substantially improve the code quality.
Thus we suppress this warning.

7 years agoAdd lib/topfish to CMake build
Erwin Janssen [Sun, 29 Jan 2017 09:35:17 +0000 (10:35 +0100)]
Add lib/topfish to CMake build

The static library 'topfish' has no dependencies, but the `with_smyrna`
option had to be added.

7 years agoMerge pull request #1227 from ErwinJanssen/prune
John Ellson [Thu, 6 Apr 2017 16:21:00 +0000 (12:21 -0400)]
Merge pull request #1227 from ErwinJanssen/prune

Some cleanup

7 years agoAdd comment noting that feasible_tree() needs to return 1 if the graph is
Emden Gansner [Wed, 5 Apr 2017 21:52:56 +0000 (17:52 -0400)]
Add comment noting that feasible_tree() needs to return 1 if the graph is
disconnected; fix small type on another comment.

7 years agogmlparse.y: Each identifier in dedicated statement
Erwin Janssen [Wed, 5 Apr 2017 12:23:08 +0000 (14:23 +0200)]
gmlparse.y: Each identifier in dedicated statement

It is good practice to define each identifier in a dedicated statement,
various standard and style guides recommend this. Because where multiple
declarators appear in the same declaration, the type of an identifier
may not meet a developer's expectations.

7 years agotypes.h: Each identifier in dedicated statement
Erwin Janssen [Wed, 5 Apr 2017 12:09:47 +0000 (14:09 +0200)]
types.h: Each identifier in dedicated statement

It is good practice to define each identifier in a dedicated statement,
various standard and style guides recommend this. Because where multiple
declarators appear in the same declaration, the type of an identifier
may not meet a developer's expectations.

7 years agocgraph.h: Each identifier in dedicated statement
Erwin Janssen [Wed, 5 Apr 2017 11:23:37 +0000 (13:23 +0200)]
cgraph.h: Each identifier in dedicated statement

It is good practice to define each identifier in a dedicated statement,
various standard and style guides recommend this. Because where multiple
declarators appear in the same declaration, the type of an identifier
may not meet a developer's expectations.

7 years agoRemove unused function `allow_edits` from neatogen
Erwin Janssen [Sat, 1 Apr 2017 08:52:34 +0000 (10:52 +0200)]
Remove unused function `allow_edits` from neatogen

This function is defined but never used, it can therefore be removed.

7 years agoDon't include io.h in gvrender_gd.c
Erwin Janssen [Fri, 31 Mar 2017 11:46:20 +0000 (13:46 +0200)]
Don't include io.h in gvrender_gd.c

The header io.h is not required in this file, so remove the include.

7 years agoRemove HAVE_LIBGD check from plugin/gd
Erwin Janssen [Fri, 31 Mar 2017 11:06:41 +0000 (13:06 +0200)]
Remove HAVE_LIBGD check from plugin/gd

This check should exist only in the build configuration, if plugin/gd gets
build, then libgd should _always_ be available. Otherwise, mistakenly
building plugin/gd without defining HAVE_LIBGD, will lead to believe that
the build is succesfull, while in truth nothing gets build.

7 years agoRemove declared, not defined, function from cdt.h
Erwin Janssen [Fri, 31 Mar 2017 07:06:41 +0000 (09:06 +0200)]
Remove declared, not defined, function from cdt.h

Remove `dttreeset` function declaration from cdt.h. The function
definition was removed some time ago because it was not used in the
codebase, but the declaration wasn't removed properly.

7 years agoRemove unused declaration of type `nodesizefn_t`
Erwin Janssen [Thu, 30 Mar 2017 12:59:33 +0000 (14:59 +0200)]
Remove unused declaration of type `nodesizefn_t`

This type was declared in lib/common/render.h, but never used.

7 years agoFix issue #1225.
Emden Gansner [Wed, 5 Apr 2017 18:17:28 +0000 (14:17 -0400)]
Fix issue #1225.

7 years agoMerge pull request #1224 from ErwinJanssen/windows-fixes
John Ellson [Wed, 5 Apr 2017 16:53:19 +0000 (12:53 -0400)]
Merge pull request #1224 from ErwinJanssen/windows-fixes

Windows fixes

7 years agoAdd gvpr script to create a derived cluster graph.
Emden Gansner [Tue, 4 Apr 2017 19:20:02 +0000 (15:20 -0400)]
Add gvpr script to create a derived cluster graph.

7 years agoReduce exported symbols for plugin/neato_layout
Erwin Janssen [Sat, 1 Apr 2017 08:43:46 +0000 (10:43 +0200)]
Reduce exported symbols for plugin/neato_layout

On Windows, the plugin gvplugin_neato_layout exported a lot of function,
also from other libraries that are not being exported, such as ortho and
neatogen. This has been reduced to only the varaible
`gvplugin_neato_layout_LTX_library`.
A minor link change was needed on Windows as a result.

7 years agoAdd `extern "C"` to export in plugin/gdiplus
Erwin Janssen [Sat, 1 Apr 2017 07:57:40 +0000 (09:57 +0200)]
Add `extern "C"` to export in plugin/gdiplus

plugin/gdiplus is a C++ project, so the `extern "C"` must be added in
order to export C symbols that can be used by the rest of the code.

7 years agoMerge pull request #1220 from ErwinJanssen/windows-build
John Ellson [Tue, 28 Mar 2017 15:30:40 +0000 (11:30 -0400)]
Merge pull request #1220 from ErwinJanssen/windows-build

Windows build improvements and fixes

7 years agoUse dllimport to link gd fonts on Windows
Erwin Janssen [Mon, 27 Mar 2017 20:53:07 +0000 (22:53 +0200)]
Use dllimport to link gd fonts on Windows

Using extern to link the gd fonts on Windows doesn't work, they should be
imported from the DLL using __declspec(dllimport).
Also update the libgd DLL to the most recent version.

7 years agoRestructure appveyor.yml
Erwin Janssen [Mon, 27 Mar 2017 09:12:12 +0000 (11:12 +0200)]
Restructure appveyor.yml

Split the script into three parts, instead of one large block. Because
of the block structure, errors didn't show up because only the last
command was evaluated when determining whether the build was successful.
These errors should now be visible.

7 years agoRemove disabled Autotools build from appveyor.yml
Erwin Janssen [Mon, 27 Mar 2017 08:40:45 +0000 (10:40 +0200)]
Remove disabled Autotools build from appveyor.yml

There was an attempt to include the Autotools build on Appveyor, but
with the current Visual Studio build and the future CMake build, this is
no longer relevant.

7 years agoUpdate version number in appveyor.yml to 2.41
Erwin Janssen [Sun, 26 Mar 2017 13:57:10 +0000 (15:57 +0200)]
Update version number in appveyor.yml to 2.41

7 years ago*_API to specify linkage for lib/cgraph on Windows
Erwin Janssen [Sun, 26 Mar 2017 13:52:11 +0000 (15:52 +0200)]
*_API to specify linkage for lib/cgraph on Windows

Instead of overloading the `extern` keyword with __dllspec(dllexport) or
__dllspec(dllimport) to specify the linkage, and use a function definition
file to specify the exported functions, this commit adds a seperate define
for each header file to do both. It also makes it more explicit which
function are exported.

7 years agoCDT_API to specify linkage for lib/cdt on Windows
Erwin Janssen [Sat, 25 Mar 2017 17:11:13 +0000 (18:11 +0100)]
CDT_API to specify linkage for lib/cdt on Windows

Instead of overloading the `extern` keyword with __dllspec(dllexport) or
__dllspec(dllimport) to specify the linkage, and use a function definition
file to specify the exported functions, this commit adds a seperate define
to do both.

7 years agoImprove __dllspec specification in plugin/
Erwin Janssen [Sat, 18 Mar 2017 23:05:33 +0000 (00:05 +0100)]
Improve __dllspec specification in plugin/

The plugin projects that are included in the Visual Studio build,
contained __dllspec specification for the `gvplugin_*_LTX_library`
definition. This commit improves this specification by making it more
consistant. The `.def` files in `pluging` are now no longer required.

7 years agoEnable features in plugin/core on Windows
Erwin Janssen [Sat, 18 Mar 2017 21:37:16 +0000 (22:37 +0100)]
Enable features in plugin/core on Windows

Remove the `#ifdef` blocks surrounding some function prototypes and add
`gvrender_core_mp.c` to the Visual Studio build.

7 years agoReplace WIN32_DLL with _WIN32 in vplugin_core.c
Erwin Janssen [Thu, 16 Mar 2017 10:36:08 +0000 (11:36 +0100)]
Replace WIN32_DLL with _WIN32 in vplugin_core.c

This define check should only be triggerd on Windows. Using the compiler
set `_WIN32` to check if Windows is the platform is better than using a
user set define.

7 years agoUse #ifdef instead of #if in gvloadimage_core.c
Erwin Janssen [Tue, 14 Mar 2017 21:14:46 +0000 (22:14 +0100)]
Use #ifdef instead of #if in gvloadimage_core.c

Replace `#if HAVE_SYS_MMAN_H` with `#ifdef HAVE_SYS_MMAN_H`. Using the
former causes problems is HAVE_SYS_MMAN_H is defined without a value.

7 years agoSupport opacity in svg fonts. Issue #1217.
Emden Gansner [Thu, 23 Mar 2017 18:42:21 +0000 (14:42 -0400)]
Support opacity in svg fonts. Issue #1217.

7 years agoFix switched roles for prerev and preposrev in traversal.
Emden Gansner [Thu, 16 Mar 2017 19:13:14 +0000 (15:13 -0400)]
Fix switched roles for prerev and preposrev in traversal.

7 years agoReplace name bisect with gvbisect to avoid conflicts.
Emden R. Gansner [Tue, 14 Mar 2017 22:20:26 +0000 (18:20 -0400)]
Replace name bisect with gvbisect to avoid conflicts.

7 years agoReplace hard-coded 2 with Ndim
Emden R. Gansner [Tue, 14 Mar 2017 22:18:16 +0000 (18:18 -0400)]
Replace hard-coded 2 with Ndim

7 years agoThe test for a pointer being >= 0 is silly.
Emden R. Gansner [Tue, 14 Mar 2017 22:14:11 +0000 (18:14 -0400)]
The test for a pointer being >= 0 is silly.

7 years agoPull call to rank() out of assert. If assert is a no-op, rank() will not be
Emden R. Gansner [Tue, 14 Mar 2017 22:09:17 +0000 (18:09 -0400)]
Pull call to rank() out of assert. If assert is a no-op, rank() will not be
called.

7 years agoPull assignment out of assert statement. If assert is a no-op, the assignment
Emden R. Gansner [Tue, 14 Mar 2017 22:04:13 +0000 (18:04 -0400)]
Pull assignment out of assert statement. If assert is a no-op, the assignment
won't be done.

7 years agoRemove duplicate declaration of gd fonts; re-add extern. Without extern, thesewill...
Emden R. Gansner [Tue, 14 Mar 2017 21:39:47 +0000 (17:39 -0400)]
Remove duplicate declaration of gd fonts; re-add extern. Without extern, thesewill be defined locally and uninitialized. We want these to bind to gdFontPtrs
defined in libgd.

7 years agoSmall cleanup and replace np->name with agnameof(np)
Emden Gansner [Mon, 13 Mar 2017 15:06:02 +0000 (11:06 -0400)]
Small cleanup and replace np->name with agnameof(np)

7 years agoMerge pull request #1215 from ErwinJanssen/various-changes
John Ellson [Mon, 6 Mar 2017 18:13:59 +0000 (13:13 -0500)]
Merge pull request #1215 from ErwinJanssen/various-changes

Various changes

7 years agoEnable JSON on Windows build
Erwin Janssen [Sun, 5 Mar 2017 12:26:36 +0000 (13:26 +0100)]
Enable JSON on Windows build

The JSON module was not included in the Windows build because of some
errors. These errors were caused by two function from gvc not being added
to the Windows definition file. This is now resolved and JSON is added.

7 years agoUse <type>_MAX instead of <type>_SIZE, rectangle.c
Erwin Janssen [Fri, 10 Feb 2017 09:57:03 +0000 (10:57 +0100)]
Use <type>_MAX instead of <type>_SIZE, rectangle.c

Instead of using the custom defined <type>_SIZE defines in
lib/label/rectangle.c function RectAra, we now use the defines
<type>_MAX from the standard library. The meaning is the same, but it is
more portable and requires less checks.

7 years agoRemove `#ifdef _UWIN` block with hard path include
Erwin Janssen [Thu, 9 Feb 2017 06:57:08 +0000 (07:57 +0100)]
Remove `#ifdef _UWIN` block with hard path include

The header globals.h had an `#ifdef _UWIN` block at the top. This block
had an include with a hard path, which is a bad idea. Since it has
been 12 years since this block has been modified an UWIN isn't used in
the current build, we remove this block.

7 years agoRemove `AC_HEADER_DIRENT` from configure.ac
Erwin Janssen [Wed, 8 Feb 2017 19:36:35 +0000 (20:36 +0100)]
Remove `AC_HEADER_DIRENT` from configure.ac

The check `AC_HEADER_DIRENT` is no longer needed, as all current UNIX
systems have the correct version of this header. The checks and
corresponding define can be removed.

7 years agoRemove `AC_HEADER_TIME` from configure.ac
Erwin Janssen [Wed, 8 Feb 2017 17:14:10 +0000 (18:14 +0100)]
Remove `AC_HEADER_TIME` from configure.ac

This check is deprecated according to the official autoconf documentation,
it can safely be removed.

7 years agoRemove final check and usage of stdbool.h
Erwin Janssen [Wed, 8 Feb 2017 17:10:52 +0000 (18:10 +0100)]
Remove final check and usage of stdbool.h

Removed the check for stdbool.h from configure.ac and a remaining usage
of the define.

7 years agoRemove HAVE_STDBOOL_H check from common/logic.h
Erwin Janssen [Mon, 6 Feb 2017 17:12:22 +0000 (18:12 +0100)]
Remove HAVE_STDBOOL_H check from common/logic.h

This header check was removed earlier, but this one was missed. The C++
check can also be removed, because the stdbool.h header files includes is
check by itself.

7 years agoInclude header check for unistd.h in utils.c
Erwin Janssen [Sat, 4 Feb 2017 14:40:07 +0000 (15:40 +0100)]
Include header check for unistd.h in utils.c

The header unistd.h is not available on on platforms, so we add a check
around it.

7 years agoDon't use path as variable name in colortbl.awk
Erwin Janssen [Sat, 4 Feb 2017 10:21:18 +0000 (11:21 +0100)]
Don't use path as variable name in colortbl.awk

Instead of using `argv[1]` to name the variable, we now always call it
`color_lib` in awk/colortbl.awk. The reason for this, is in some build
configurations, like the Visual Studio and CMake build, the full path to
the color_lib file is used. This resulted in the variable conaining
slashes, etc. Since the rest of the code already assumes this variable is
called `color_lib`, there is no problem with hard coding it in
colortbl.awk

7 years agoRemove email address from .travis.yml
Erwin Janssen [Tue, 31 Jan 2017 15:57:32 +0000 (16:57 +0100)]
Remove email address from .travis.yml

Notifications about the build were now always send to John, even when
someone else, in their own fork, was using Travis. This should send the
emails to the one that issued the build.

7 years agoMade libgvpr a dynamic library on Windows
Erwin Janssen [Tue, 31 Jan 2017 13:29:46 +0000 (14:29 +0100)]
Made libgvpr a dynamic library on Windows

libgvpr is a dynamic library with the Autotools build, but was for some
reason a static library on Windows. Since Autotools is considered the
default, this commit makes libgvpr a dynamic library on Windows as well.
The added define "GVPR_API", is used for linking, so a seperate gvpr.def
file is not needed. On non-Windows platforms, this define is set to
"extern", so nothing changes there.

7 years agofix gtk_message_dialog_new() usage (fc26)
John Ellson [Sun, 5 Mar 2017 16:42:50 +0000 (11:42 -0500)]
fix gtk_message_dialog_new() usage (fc26)

7 years agofix gtk_message_dialog_new() usage (fc26)
John Ellson [Sun, 5 Mar 2017 16:32:26 +0000 (11:32 -0500)]
fix gtk_message_dialog_new() usage (fc26)

7 years agotrying to fix an issue with %post in rpm .spec filr
John Ellson [Sun, 5 Mar 2017 05:29:19 +0000 (00:29 -0500)]
trying to fix an issue with %post in rpm .spec filr

7 years agoAdd initializer to avoid warning.
Emden Gansner [Fri, 3 Mar 2017 15:46:58 +0000 (10:46 -0500)]
Add initializer to avoid warning.

7 years agoFix warning messages.
Emden Gansner [Fri, 3 Mar 2017 15:38:56 +0000 (10:38 -0500)]
Fix warning messages.

7 years agoFix bug in print function: two fields were interchanged.
Emden Gansner [Fri, 3 Mar 2017 14:58:29 +0000 (09:58 -0500)]
Fix bug in print function: two fields were interchanged.

7 years agoFix rtest.sh to use test data based on system running the tests;
Emden Gansner [Wed, 1 Mar 2017 19:54:27 +0000 (14:54 -0500)]
Fix rtest.sh to use test data based on system running the tests;
add test data for Ubuntu;
remove absolute paths containing dperry-make relative to the rtest directory.

7 years agoRemove antique test directories
Emden Gansner [Wed, 1 Mar 2017 19:26:32 +0000 (14:26 -0500)]
Remove antique test directories

7 years agosometimes 'dot -c' isn't getting run
John Ellson [Fri, 17 Feb 2017 14:17:52 +0000 (09:17 -0500)]
sometimes 'dot -c' isn't getting run

7 years agosometimes 'dot -c' isn't getting run
John Ellson [Fri, 17 Feb 2017 14:09:12 +0000 (09:09 -0500)]
sometimes 'dot -c' isn't getting run