]> granicus.if.org Git - graphviz/log
graphviz
4 years agoremove unnecessary lib/common include directory
Matthew Fernandez [Sat, 15 Aug 2020 19:07:44 +0000 (12:07 -0700)]
remove unnecessary lib/common include directory

4 years agodisambiguate lib/circogen/*.c #includes
Matthew Fernandez [Sat, 15 Aug 2020 18:29:10 +0000 (11:29 -0700)]
disambiguate lib/circogen/*.c #includes

Related to #1785.

4 years agoremove unnecessary lib/circogen include directory
Matthew Fernandez [Sat, 15 Aug 2020 17:41:16 +0000 (10:41 -0700)]
remove unnecessary lib/circogen include directory

4 years agoinclude internal headers with <...> in lib/ast/*.c
Matthew Fernandez [Sat, 15 Aug 2020 16:46:54 +0000 (09:46 -0700)]
include internal headers with <...> in lib/ast/*.c

It turns out to deal with #1785, we will need to include internal headers this
way as well as external headers. 2ecb837a05be3d69971001708e7acccfd470ad97 should
have gone in this direction to begin with.

4 years agomake lib/cgraph/*.c #includes unambiguous
Matthew Fernandez [Fri, 14 Aug 2020 03:38:52 +0000 (20:38 -0700)]
make lib/cgraph/*.c #includes unambiguous

Related to #1785.

4 years agoremove unnecessary cgraph #include path
Matthew Fernandez [Fri, 14 Aug 2020 03:23:15 +0000 (20:23 -0700)]
remove unnecessary cgraph #include path

4 years agoremove #define EXTERN trick in cgraph
Matthew Fernandez [Fri, 14 Aug 2020 03:11:39 +0000 (20:11 -0700)]
remove #define EXTERN trick in cgraph

This was designed to allow one declaration of Ag_G_global serve as both
declaration and definition. However, this obscures the actual definition of this
variable from any code browser unable to evaluate macro expansion (e.g. Cscope).
There's no real need for this trick, as we can just define the variable as
normal.

4 years agodisambiguate lib/cdt/*.c #includes
Matthew Fernandez [Thu, 13 Aug 2020 03:07:21 +0000 (20:07 -0700)]
disambiguate lib/cdt/*.c #includes

Related to #1785.

4 years agoremove unused cdt 'Version'
Matthew Fernandez [Thu, 13 Aug 2020 03:00:35 +0000 (20:00 -0700)]
remove unused cdt 'Version'

4 years agoMerge branch '3a0128e0-8665-418d-b92d-642f114890ce' into 'master'
Matthew Fernandez [Thu, 10 Sep 2020 01:12:06 +0000 (01:12 +0000)]
Merge branch '3a0128e0-8665-418d-b92d-642f114890ce' into 'master'

remove unused SFIO 'disciplines'

See merge request graphviz/graphviz!1556

4 years agoremove unused SFIO 'disciplines'
Matthew Fernandez [Fri, 4 Sep 2020 00:31:58 +0000 (17:31 -0700)]
remove unused SFIO 'disciplines'

4 years agoMerge branch 'fcec7644-4a9d-47cb-ba10-81305417378d' into 'master'
Matthew Fernandez [Tue, 8 Sep 2020 14:56:26 +0000 (14:56 +0000)]
Merge branch 'fcec7644-4a9d-47cb-ba10-81305417378d' into 'master'

remove ad hoc name mangling for lib/expr/grammar.y

See merge request graphviz/graphviz!1553

4 years agoremove unnecessary intermediate build artifact
Matthew Fernandez [Wed, 2 Sep 2020 02:29:09 +0000 (19:29 -0700)]
remove unnecessary intermediate build artifact

This is the equivalent of c498c4bb3e12e48e3bab9aba8d3162535e163c92 for
exparse.y. Related to #1806.

4 years agouse Bison's api.prefix instead of name mangling in expr
Matthew Fernandez [Wed, 2 Sep 2020 01:15:07 +0000 (18:15 -0700)]
use Bison's api.prefix instead of name mangling in expr

This is the equivalent of cc2cb52756f545d6863d6fd801fa23762a81704c. My original
intent was to split the changes that remove the build-time symbol mangling (the
equivalent of 9240da12ab7857975aa34279520f1f6aad113d48) into a separate commit.
However, the expression parser does a lot of messy tricks to collide with and
suppress Bison-generated macros. It was simpler to undo all of this in one go
then try to thread this convoluted needle. Related to #1806.

4 years agoexplicitly name output of lib/expr/exparse.y rule
Matthew Fernandez [Wed, 2 Sep 2020 01:23:37 +0000 (18:23 -0700)]
explicitly name output of lib/expr/exparse.y rule

This has no effect right now, but an upcoming change modifies api.prefix which,
without this, would alter the name of the generated parser. Related to #1806.

4 years agoexplicitly drop Yacc, Bison < 3 compatibility in exparse.y
Matthew Fernandez [Wed, 2 Sep 2020 00:57:05 +0000 (17:57 -0700)]
explicitly drop Yacc, Bison < 3 compatibility in exparse.y

Yacc was already not supported as this parser is using Bison extensions, but
this at least makes explicit what our requirements are. This is the equivalent
of 4a13c9598ad3d950a251e5d3e5be8d05c59c6214. Related to #1806.

4 years agosuppress warnings from using Bison extensions in lib/expr/exparse.y
Matthew Fernandez [Wed, 2 Sep 2020 00:53:43 +0000 (17:53 -0700)]
suppress warnings from using Bison extensions in lib/expr/exparse.y

This is the equivalent of 8c099fc032074a0bb5961d67ef4df05ddca7eba4 but for a
different parser. Surprisingly exparse.y was already using Bison extensions, so
this actually suppresses two warnings:

  bison -y -dtv ../../lib/expr/exparse.y
  ../../lib/expr/exparse.y:131.1-7: warning: POSIX Yacc does not support %binary [-Wyacc]
   %binary       <op>    EQ      NE
   ^~~~~~~
  ../../lib/expr/exparse.y:132.1-7: warning: POSIX Yacc does not support %binary [-Wyacc]
   %binary       <op>    '<'     '>'     LE      GE
   ^~~~~~~

Related to #1806.

4 years agoremove incorrect EXSTYPE redefinition
Matthew Fernandez [Wed, 2 Sep 2020 01:47:32 +0000 (18:47 -0700)]
remove incorrect EXSTYPE redefinition

Bison's -pPREFIX -- which, incidentally, this parser is not using -- does *not*
miss YYSTYPE. Upcoming changes expose that this detrimentally interferes with
attempts to properly prefix the expr parser. Related to #1806.

4 years agoMerge branch 'remove-warnings-related-to-issue-1800' into 'master'
Magnus Jacobsson [Mon, 7 Sep 2020 14:14:01 +0000 (14:14 +0000)]
Merge branch 'remove-warnings-related-to-issue-1800' into 'master'

Remove warnings related to issue 1800

See merge request graphviz/graphviz!1554

4 years agoRemove 1 -Wswitch-default warning in attr.c
Magnus Jacobsson [Tue, 1 Sep 2020 06:37:26 +0000 (08:37 +0200)]
Remove 1 -Wswitch-default warning in attr.c

4 years agoRemove 1 -Wunused-but-set-variable warning in attr.c
Magnus Jacobsson [Tue, 1 Sep 2020 06:36:57 +0000 (08:36 +0200)]
Remove 1 -Wunused-but-set-variable warning in attr.c

4 years agoRemove 2 -Wsign-conversion warnings in attr.c
Magnus Jacobsson [Tue, 1 Sep 2020 06:36:15 +0000 (08:36 +0200)]
Remove 2 -Wsign-conversion warnings in attr.c

4 years agoRemove 1 -Wconversion warning in attr.c
Magnus Jacobsson [Tue, 1 Sep 2020 06:35:45 +0000 (08:35 +0200)]
Remove 1 -Wconversion warning in attr.c

4 years agoRemove 4 -Wmissing-prototypes warnings in attr.c by adding static
Magnus Jacobsson [Tue, 1 Sep 2020 06:34:02 +0000 (08:34 +0200)]
Remove 4 -Wmissing-prototypes warnings in attr.c by adding static

4 years agoRemove 2 -Wmissing-field-initializers warnings in attr.c
Magnus Jacobsson [Tue, 1 Sep 2020 06:32:16 +0000 (08:32 +0200)]
Remove 2 -Wmissing-field-initializers warnings in attr.c

4 years agoRemove 1 -Wswitch-default warning in agdelrec
Magnus Jacobsson [Mon, 31 Aug 2020 18:41:29 +0000 (20:41 +0200)]
Remove 1 -Wswitch-default warning in agdelrec

4 years agoRemove 3 -Wunused-parameter warnings in rec.c
Magnus Jacobsson [Mon, 31 Aug 2020 18:34:33 +0000 (20:34 +0200)]
Remove 3 -Wunused-parameter warnings in rec.c

4 years agoRemove 2 -Wconversion warnings in set_data
Magnus Jacobsson [Mon, 31 Aug 2020 18:28:06 +0000 (20:28 +0200)]
Remove 2 -Wconversion warnings in set_data

4 years agoRemove 1 -Wswitch-default warning in agbindrec by removing redundant switch
Magnus Jacobsson [Mon, 31 Aug 2020 17:09:51 +0000 (19:09 +0200)]
Remove 1 -Wswitch-default warning in agbindrec by removing redundant switch

4 years agoRemove 1 -Wconversion warnings in cccomps
Magnus Jacobsson [Sat, 29 Aug 2020 16:11:36 +0000 (18:11 +0200)]
Remove 1 -Wconversion warnings in cccomps

4 years agoRemove 2 -Wsign-conversion warnings in cccomps
Magnus Jacobsson [Sat, 29 Aug 2020 16:11:13 +0000 (18:11 +0200)]
Remove 2 -Wsign-conversion warnings in cccomps

4 years agoRemove 3 -Wsign-conversion warnings in ccomps
Magnus Jacobsson [Fri, 28 Aug 2020 15:40:56 +0000 (17:40 +0200)]
Remove 3 -Wsign-conversion warnings in ccomps

4 years agoRemove 3 -Wsign-conversion warnings in pccomps
Magnus Jacobsson [Fri, 28 Aug 2020 15:40:17 +0000 (17:40 +0200)]
Remove 3 -Wsign-conversion warnings in pccomps

4 years agoRemove 2 -Wconversion warnings in setPrefix
Magnus Jacobsson [Fri, 28 Aug 2020 07:48:04 +0000 (09:48 +0200)]
Remove 2 -Wconversion warnings in setPrefix

4 years agoRemove 1 -Wconversion warning in clMarkFn
Magnus Jacobsson [Fri, 28 Aug 2020 07:46:35 +0000 (09:46 +0200)]
Remove 1 -Wconversion warning in clMarkFn

It's safe to cast to char since the value is always 0 or 1.

4 years agoRemove 1 -Wconversion warning in markFn
Magnus Jacobsson [Fri, 28 Aug 2020 07:40:55 +0000 (09:40 +0200)]
Remove 1 -Wconversion warning in markFn

It's safe to cast to char since the value is always 0 or 1.

4 years agoRemove 1 -Wbad-function-cast warning in agdelsubg
Magnus Jacobsson [Fri, 28 Aug 2020 07:25:39 +0000 (09:25 +0200)]
Remove 1 -Wbad-function-cast warning in agdelsubg

Restores the public API to what's documented in cgraph.3 by instead of
casting the void pointer that dtdelete returns to long, returns an int
which is 0 if the pointer is NULL and 1 otherwise. Internally the
return value is however not used today.

4 years agoRemove 1 -Wbad-function-cast warning in agdtdelete
Magnus Jacobsson [Fri, 28 Aug 2020 07:20:43 +0000 (09:20 +0200)]
Remove 1 -Wbad-function-cast warning in agdtdelete

Changes the *internal* API by instead of casting the void pointer that
dtdelete returns to long, returns an int which is 0 if the pointer is
NULL and 1 otherwise. It doesn't really matter though, since the
return value is not used anywhere today.

4 years agoRemove 1 -Wunused-parameter warning in agrefstrdump when -DDEBUG
Magnus Jacobsson [Thu, 27 Aug 2020 17:06:13 +0000 (19:06 +0200)]
Remove 1 -Wunused-parameter warning in agrefstrdump when -DDEBUG

4 years agoRemove 1 -Wconversion warning in aghtmlstr
Magnus Jacobsson [Thu, 27 Aug 2020 17:03:16 +0000 (19:03 +0200)]
Remove 1 -Wconversion warning in aghtmlstr

4 years agoRemove 9 -Wsign-conversion warnings in _DTCMP
Magnus Jacobsson [Thu, 27 Aug 2020 14:47:35 +0000 (16:47 +0200)]
Remove 9 -Wsign-conversion warnings in _DTCMP

Casting to size_t is safe since sz is always positive when it happens.

4 years agoRemove 1 -Wunused-parameter warning in idopen
Magnus Jacobsson [Thu, 27 Aug 2020 14:41:53 +0000 (16:41 +0200)]
Remove 1 -Wunused-parameter warning in idopen

4 years agoRemove 1 -Wconversion warning in idalloc
Magnus Jacobsson [Thu, 27 Aug 2020 14:38:02 +0000 (16:38 +0200)]
Remove 1 -Wconversion warning in idalloc

It's safe to cast to int from long since the value is always FALSE (0).

4 years agoRemove 2 -Wconversion warnings in idmap
Magnus Jacobsson [Thu, 27 Aug 2020 14:34:51 +0000 (16:34 +0200)]
Remove 2 -Wconversion warnings in idmap

Its safe to cast to int from long since the value is always TRUE (1).

4 years agoMerge branch 'fix-silent-fail-of-windows-ci-builds' into 'master'
Magnus Jacobsson [Mon, 7 Sep 2020 06:17:00 +0000 (06:17 +0000)]
Merge branch 'fix-silent-fail-of-windows-ci-builds' into 'master'

Fix silent fail of Windows builds in CI

Closes #1815

See merge request graphviz/graphviz!1560

4 years agoFix silent fail of Windows build in CI
Magnus Jacobsson [Sun, 6 Sep 2020 19:13:18 +0000 (21:13 +0200)]
Fix silent fail of Windows build in CI

Fixes https://gitlab.com/graphviz/graphviz/-/issues/1815.

4 years agoMerge branch 'C1AB8FAC-C63E-4D45-AF41-31FC5100516E' into 'master'
Matthew Fernandez [Sat, 5 Sep 2020 17:56:02 +0000 (17:56 +0000)]
Merge branch 'C1AB8FAC-C63E-4D45-AF41-31FC5100516E' into 'master'

remove unnecessary NUL_FILE abstraction

See merge request graphviz/graphviz!1550

4 years agoremove now unused NUL_FILE
Matthew Fernandez [Sun, 30 Aug 2020 16:57:46 +0000 (09:57 -0700)]
remove now unused NUL_FILE

4 years agoremove unnecessary NUL_FILE use
Matthew Fernandez [Sun, 30 Aug 2020 16:56:21 +0000 (09:56 -0700)]
remove unnecessary NUL_FILE use

The Cairo API supports simply passing NULL to indicate you do not want the
output written to a file.

4 years agoMerge branch '2be5439a-0e4a-4a18-98ad-2a13d8c5b9fd' into 'master'
Matthew Fernandez [Sat, 5 Sep 2020 17:18:14 +0000 (17:18 +0000)]
Merge branch '2be5439a-0e4a-4a18-98ad-2a13d8c5b9fd' into 'master'

fix failure to link gvpr with debug enabled

Closes #1807

See merge request graphviz/graphviz!1549

4 years agofix failure to link gvpr with debug enabled
Matthew Fernandez [Sun, 30 Aug 2020 14:58:28 +0000 (07:58 -0700)]
fix failure to link gvpr with debug enabled

When using `CFLAGS=-DDEBUG CXXFLAGS=-DDEBUG ./configure --enable-debug`, gvpr
would fail to link due to missing libraries. Fixes #1807.

4 years agoMerge branch '5213EAD3-14D1-45A4-A269-4C7D9DA5F44B' into 'master'
Matthew Fernandez [Fri, 4 Sep 2020 00:25:56 +0000 (00:25 +0000)]
Merge branch '5213EAD3-14D1-45A4-A269-4C7D9DA5F44B' into 'master'

remove unused sfdcslow()

See merge request graphviz/graphviz!1545

4 years agoremove unused sfdcslow()
Matthew Fernandez [Fri, 28 Aug 2020 14:12:19 +0000 (07:12 -0700)]
remove unused sfdcslow()

4 years agoMerge branch 'c6f76f21-830c-4108-aafa-806719ed59d2' into 'master'
Matthew Fernandez [Wed, 2 Sep 2020 15:24:14 +0000 (15:24 +0000)]
Merge branch 'c6f76f21-830c-4108-aafa-806719ed59d2' into 'master'

clean up RxSpencer CMake warnings

See merge request graphviz/graphviz!1544

4 years agoremove advanced target suppression for RxSpencer in CMake builds
Matthew Fernandez [Fri, 28 Aug 2020 03:12:19 +0000 (20:12 -0700)]
remove advanced target suppression for RxSpencer in CMake builds

This section suppressed detailed messages about where (or not) RxSpencer was
found. Given the majority of CMake builds are performed by either CI or advanced
users, it did not make sense to suppress this information that is very useful
for debugging failures.

4 years agofix case warnings for RxSpencer during CMake builds
Matthew Fernandez [Fri, 28 Aug 2020 03:09:28 +0000 (20:09 -0700)]
fix case warnings for RxSpencer during CMake builds

This fixes the following CI warning:

  -- Found RXSPENCER: ...rxspencer.lib
  CMake Warning (dev) at ...FindPackageHandleStandardArgs.cmake:272 (message):
    The package name passed to `find_package_handle_standard_args` (RXSPENCER)
    does not match the name of the calling package (RxSpencer).  This can lead
    to problems in calling code that expects `find_package` result variables
    (e.g., `_FOUND`) to follow a certain pattern.
  Call Stack (most recent call first):
    cmake/FindRxSpencer.cmake:5 (find_package_handle_standard_args)
    CMakeLists.txt:90 (find_package)
  This warning is for project developers.  Use -Wno-dev to suppress it.

4 years agoMerge branch '064bf64e-752b-45fc-8da7-e66050fbe8b5' into 'master'
Matthew Fernandez [Wed, 2 Sep 2020 00:45:09 +0000 (00:45 +0000)]
Merge branch '064bf64e-752b-45fc-8da7-e66050fbe8b5' into 'master'

remove ad hoc name mangling in cgraph parser

See merge request graphviz/graphviz!1543

4 years agoremove unnecessary intermediate build step
Matthew Fernandez [Tue, 25 Aug 2020 02:26:55 +0000 (19:26 -0700)]
remove unnecessary intermediate build step

4 years agoremove now unnecessary find-and-replace step
Matthew Fernandez [Tue, 25 Aug 2020 02:06:28 +0000 (19:06 -0700)]
remove now unnecessary find-and-replace step

4 years agoremove unnecessary intermediate build artifact
Matthew Fernandez [Thu, 27 Aug 2020 02:43:23 +0000 (19:43 -0700)]
remove unnecessary intermediate build artifact

4 years agoremove some now unnecessary name mangling
Matthew Fernandez [Thu, 27 Aug 2020 02:42:38 +0000 (19:42 -0700)]
remove some now unnecessary name mangling

4 years agouse Bison's api.prefix and Flex's prefix instead of name mangling in cgraph
Matthew Fernandez [Tue, 25 Aug 2020 01:31:26 +0000 (18:31 -0700)]
use Bison's api.prefix and Flex's prefix instead of name mangling in cgraph

Related to !1523. Bison's api.prefix was introduced in 2.6, but switched to
using this bracing syntax in 3.0. Quoting from the Bison 3.0 release notes:

  ** Types of values for %define variables

  Bison used to make no difference between '%define foo bar' and '%define
  foo "bar"'.  The former is now called a 'keyword value', and the latter a
  'string value'.  A third kind was added: 'code values', such as '%define
  foo {bar}'.

  Keyword variables are used for fixed value sets, e.g.,

    %define lr.type lalr

  Code variables are used for value in the target language, e.g.,

    %define api.value.type {struct semantic_type}

  String variables are used remaining cases, e.g. file names.

The Flex option prefix was introduced in Flex 2.4.1 (November 1993) and then
stabilized around 2.5.2 (April 1995). It provides similar functionality:

  ‘-PPREFIX, --prefix=PREFIX, %option prefix="PREFIX"’

  changes the default ‘yy’ prefix used by flex for all globally-visible variable
  and function names to instead be ‘PREFIX’. For example, ‘--prefix=foo’ changes
  the name of yytext to footext. It also changes the name of the default output
  file from lex.yy.c to lex.foo.c.

It would have been nicer to split the lexer and parser changes into separate
commits. However, the MSBuild build does no name mangling here (see
lib/cgraph/cgraph.vcxproj), so changing one of these immediately broke the other
one there. On the positive side, this commit has the effect of realigning some
MSBuild outputs with the Autotools build, as the cgraph lexer and parser are now
aag-prefixed there as well.

4 years agodrop compatibility with Yacc, Bison < 3 in lib/cgraph/grammar.y
Matthew Fernandez [Thu, 27 Aug 2020 00:32:14 +0000 (17:32 -0700)]
drop compatibility with Yacc, Bison < 3 in lib/cgraph/grammar.y

This will allow us to use api.prefix with brace syntax in an upcoming commit.
Bison 3.0 was released in July 2013 [0], so this seems an acceptable base line
requirement from now on.

  [0]: http://savannah.gnu.org/forum/forum.php?forum_id=7663

4 years agosuppress warnings from using Bison extensions in lib/cgraph/grammar.y
Matthew Fernandez [Tue, 25 Aug 2020 01:23:54 +0000 (18:23 -0700)]
suppress warnings from using Bison extensions in lib/cgraph/grammar.y

We don't currently use any, but are about to introduce one. For some more back
story on this, we quote the Bison 3.0 release notes:

  *** Use of YACC='bison -y'

  TL;DR: With Autoconf <= 2.69, pass -Wno-yacc to (AM_)YFLAGS if you use
  Bison extensions.

  Traditional Yacc generates 'y.tab.c' whatever the name of the input file.
  Therefore Makefiles written for Yacc expect 'y.tab.c' (and possibly
  'y.tab.h' and 'y.outout') to be generated from 'foo.y'.

  To this end, for ages, AC_PROG_YACC, Autoconf's macro to look for an
  implementation of Yacc, was using Bison as 'bison -y'.  While it does
  ensure compatible output file names, it also enables warnings for
  incompatibilities with POSIX Yacc.  In other words, 'bison -y' triggers
  warnings for Bison extensions.

  Autoconf 2.70+ fixes this incompatibility by using YACC='bison -o y.tab.c'
  (which also generates 'y.tab.h' and 'y.output' when needed).
  Alternatively, disable Yacc warnings by passing '-Wno-yacc' to your Yacc
  flags (YFLAGS, or AM_YFLAGS with Automake).

4 years agoMerge branch '61ec04a4-5eb2-47e7-a491-cd20773f1460' into 'master'
Matthew Fernandez [Tue, 1 Sep 2020 00:37:49 +0000 (00:37 +0000)]
Merge branch '61ec04a4-5eb2-47e7-a491-cd20773f1460' into 'master'

remove use of ABS in favor of abs/fabs

See merge request graphviz/graphviz!1540

4 years agoremove now unused ABS macros
Matthew Fernandez [Wed, 26 Aug 2020 01:14:39 +0000 (18:14 -0700)]
remove now unused ABS macros

4 years agouse abs() instead of ABS() for taking the absolute value of ints
Matthew Fernandez [Wed, 26 Aug 2020 01:05:38 +0000 (18:05 -0700)]
use abs() instead of ABS() for taking the absolute value of ints

Similar to b88ebe0548dd412ea415d6cfc410d91117270277 and the previous commit,
this replaces uses of the macro ABS with standard library functionality for
readability and maintainability.

4 years agouse fabs() instead of ABS() for taking the absolute value of reals
Matthew Fernandez [Wed, 26 Aug 2020 00:50:39 +0000 (17:50 -0700)]
use fabs() instead of ABS() for taking the absolute value of reals

The type real is #defined to double, so we can use the same replacement as in
b88ebe0548dd412ea415d6cfc410d91117270277 to simplify this code.

4 years agoremove unused collide macro
Matthew Fernandez [Wed, 26 Aug 2020 00:20:51 +0000 (17:20 -0700)]
remove unused collide macro

4 years agoremove unused ABS definition
Matthew Fernandez [Wed, 26 Aug 2020 00:08:57 +0000 (17:08 -0700)]
remove unused ABS definition

4 years agoMerge branch 'CBC6D01D-6639-4C01-BFB5-0B336AD01D0E' into 'master'
Matthew Fernandez [Sun, 30 Aug 2020 02:03:53 +0000 (02:03 +0000)]
Merge branch 'CBC6D01D-6639-4C01-BFB5-0B336AD01D0E' into 'master'

remove executability from some source files

See merge request graphviz/graphviz!1546

4 years agoremove executability from some source files
Matthew Fernandez [Sat, 29 Aug 2020 00:42:56 +0000 (17:42 -0700)]
remove executability from some source files

4 years agoMerge branch 'E30B249E-79E8-4BF0-9276-C11C1464A32C' into 'master'
Matthew Fernandez [Sun, 30 Aug 2020 01:45:57 +0000 (01:45 +0000)]
Merge branch 'E30B249E-79E8-4BF0-9276-C11C1464A32C' into 'master'

remove unused variable

See merge request graphviz/graphviz!1548

4 years agoremove unused variable
Matthew Fernandez [Sat, 29 Aug 2020 18:29:47 +0000 (11:29 -0700)]
remove unused variable

4 years agoMerge branch 'add-metrics-report-with-warnings-to-ci' into 'master'
Magnus Jacobsson [Sat, 29 Aug 2020 17:54:10 +0000 (17:54 +0000)]
Merge branch 'add-metrics-report-with-warnings-to-ci' into 'master'

Add a metrics report with warnings to pull requests

See merge request graphviz/graphviz!1547

4 years agoAdd a metrics report with warnings to CI
Magnus Jacobsson [Fri, 28 Aug 2020 12:51:45 +0000 (14:51 +0200)]
Add a metrics report with warnings to CI

4 years agoMerge branch 'dfabfa2e-74d2-4bec-b68e-90ea7c501b77' into 'master'
Matthew Fernandez [Fri, 28 Aug 2020 14:07:46 +0000 (14:07 +0000)]
Merge branch 'dfabfa2e-74d2-4bec-b68e-90ea7c501b77' into 'master'

remove unused sfdcseekable

See merge request graphviz/graphviz!1534

4 years agoremove unused sfdcseekable
Matthew Fernandez [Sat, 22 Aug 2020 16:24:31 +0000 (09:24 -0700)]
remove unused sfdcseekable

4 years agoMerge branch '571f1f84-a955-4e9b-9911-445f7435dc5a' into 'master'
Matthew Fernandez [Thu, 27 Aug 2020 14:44:09 +0000 (14:44 +0000)]
Merge branch '571f1f84-a955-4e9b-9911-445f7435dc5a' into 'master'

fix Pango plugin build on macOS

See merge request graphviz/graphviz!1533

4 years agoupdate CMake Cairo discovery to match PangoCairo
Matthew Fernandez [Sun, 23 Aug 2020 18:30:08 +0000 (11:30 -0700)]
update CMake Cairo discovery to match PangoCairo

This does the equivalent of the previous commit, to now use pkg-config to
discover Cairo on non-Windows platforms and to suppress the CMake warning:

  CMake Warning (dev) at ...FindPackageHandleStandardArgs.cmake:272 (message):
    The package name passed to `find_package_handle_standard_args` (CAIRO) does
    not match the name of the calling package (Cairo).  This can lead to
    problems in calling code that expects `find_package` result variables
    (e.g., `_FOUND`) to follow a certain pattern.
  Call Stack (most recent call first):
    cmake/FindCairo.cmake:12 (find_package_handle_standard_args)
    CMakeLists.txt:81 (find_package)
  This warning is for project developers.  Use -Wno-dev to suppress it.

4 years agofix Pango plugin build on macOS
Matthew Fernandez [Wed, 19 Aug 2020 00:03:24 +0000 (17:03 -0700)]
fix Pango plugin build on macOS

Compiling plugin/pango depends on the discovery of PangoCairo and its dependent
libraries which is handled by cmake/FindPangoCairo.cmake. This file was assuming
all libraries were available at default system paths, which is not true on e.g.
macOS when you install libraries via Homebrew or Macports. We now simply ask
pkg-config to find all necessary information for us (unless we are on Windows).

This also incidentally cleans up the following warning issued by CMake in CI:

  CMake Warning (dev) at C:/…/FindPackageHandleStandardArgs.cmake:272 (message):
    The package name passed to `find_package_handle_standard_args` (PANGOCAIRO)
    does not match the name of the calling package (PangoCairo).  This can lead
    to problems in calling code that expects `find_package` result variables
    (e.g., `_FOUND`) to follow a certain pattern.
  Call Stack (most recent call first):
    cmake/FindPangoCairo.cmake:20 (find_package_handle_standard_args)
    CMakeLists.txt:85 (find_package)
  This warning is for project developers.  Use -Wno-dev to suppress it.

4 years agoMerge branch 'fix-test-examples-exit-status-check' into 'master'
Magnus Jacobsson [Wed, 26 Aug 2020 14:53:06 +0000 (14:53 +0000)]
Merge branch 'fix-test-examples-exit-status-check' into 'master'

Fix test examples exit status check

See merge request graphviz/graphviz!1542

4 years agoMerge branch 'fix-1770-warning-path-too-long-using-cmake-windows-installer' into...
Magnus Jacobsson [Wed, 26 Aug 2020 14:52:16 +0000 (14:52 +0000)]
Merge branch 'fix-1770-warning-path-too-long-using-cmake-windows-installer' into 'master'

Fix path too long using Windows CMake build .exe-installer

Closes #1770

See merge request graphviz/graphviz!1541

4 years agoFix test examples exit status check
Magnus Jacobsson [Wed, 26 Aug 2020 12:58:11 +0000 (14:58 +0200)]
Fix test examples exit status check

4 years agoFix path too long using Windows CMake build .exe-installer
Magnus Jacobsson [Wed, 26 Aug 2020 04:48:11 +0000 (06:48 +0200)]
Fix path too long using Windows CMake build .exe-installer

Fixed by using updated preinstalled NSIS with string length 8192.

Fixes https://gitlab.com/graphviz/graphviz/-/issues/1770.

4 years agoMerge branch 'add-linux-cmake-builds' into 'master'
Magnus Jacobsson [Wed, 26 Aug 2020 05:25:53 +0000 (05:25 +0000)]
Merge branch 'add-linux-cmake-builds' into 'master'

Add ubuntu18-04-cmake-build

See merge request graphviz/graphviz!1539

4 years agoMerge branch 'use-updated-winflexbison' into 'master'
Magnus Jacobsson [Wed, 26 Aug 2020 04:56:41 +0000 (04:56 +0000)]
Merge branch 'use-updated-winflexbison' into 'master'

Use updated winflexbison version 2.5.22

See merge request graphviz/graphviz!1538

4 years agoAdd ubuntu18-04-cmake-build
Magnus Jacobsson [Thu, 2 Jul 2020 21:07:25 +0000 (23:07 +0200)]
Add ubuntu18-04-cmake-build

4 years agoAdapt MSBuild project files to renamed win_flex and win_bison
Magnus Jacobsson [Tue, 25 Aug 2020 18:25:33 +0000 (20:25 +0200)]
Adapt MSBuild project files to renamed win_flex and win_bison

4 years agoAdapt setup-build-utilities.ps1 to to renamed win_flex and win_bison
Magnus Jacobsson [Tue, 25 Aug 2020 18:50:15 +0000 (20:50 +0200)]
Adapt setup-build-utilities.ps1 to to renamed win_flex and win_bison

4 years agoUse updated preinstalled winflexbison version 2.5.22
Magnus Jacobsson [Tue, 25 Aug 2020 18:11:12 +0000 (20:11 +0200)]
Use updated preinstalled winflexbison version 2.5.22

Updates bison to version 3.5.0 and flex to version 2.6.4.

4 years agoMerge branch 'execute-test-examples' into 'master'
Magnus Jacobsson [Tue, 25 Aug 2020 16:36:56 +0000 (16:36 +0000)]
Merge branch 'execute-test-examples' into 'master'

Execute test examples

See merge request graphviz/graphviz!1532

4 years agoSkip execution of segfaulting neatopack.c in test examples
Magnus Jacobsson [Thu, 20 Aug 2020 14:14:27 +0000 (16:14 +0200)]
Skip execution of segfaulting neatopack.c in test examples

Fails because of https://gitlab.com/graphviz/graphviz/-/issues/1800

4 years agoAdd execution of compiled test examples
Magnus Jacobsson [Tue, 18 Aug 2020 19:49:10 +0000 (21:49 +0200)]
Add execution of compiled test examples

4 years agoUse dynamic linking on Windows in test_examples.py
Magnus Jacobsson [Tue, 18 Aug 2020 17:51:57 +0000 (19:51 +0200)]
Use dynamic linking on Windows in test_examples.py

4 years agoMerge branch 'add-windows-build-ps1-scripts-and-refactor-ci' into 'master'
Magnus Jacobsson [Tue, 25 Aug 2020 15:58:03 +0000 (15:58 +0000)]
Merge branch 'add-windows-build-ps1-scripts-and-refactor-ci' into 'master'

Add windows build PowerShell scripts and refactor CI

See merge request graphviz/graphviz!1529

4 years agoMerge branch '01a7249f-7db1-4539-81e5-eb2016375520' into 'master'
Matthew Fernandez [Tue, 25 Aug 2020 15:18:21 +0000 (15:18 +0000)]
Merge branch '01a7249f-7db1-4539-81e5-eb2016375520' into 'master'

use fabs() instead of ABS() for taking the absolute value of a double

See merge request graphviz/graphviz!1531

4 years agouse fabs() instead of ABS() for taking the absolute value of a double
Matthew Fernandez [Thu, 20 Aug 2020 00:03:10 +0000 (17:03 -0700)]
use fabs() instead of ABS() for taking the absolute value of a double

The fabs() function is available via math.h, even prior to C89 so there's no
reason not to use it. Avoiding the macro eliminates some mental overhead for the
reader. Also fabs has some more lenient semantics with respect to denormal
inputs, so this change results in slightly more efficient code.

4 years agoReplace Windows build code in CI config with new build script
Magnus Jacobsson [Mon, 17 Aug 2020 09:55:00 +0000 (11:55 +0200)]
Replace Windows build code in CI config with new build script

4 years agoAdd windows/bin/setup-and-build.ps1
Magnus Jacobsson [Sun, 16 Aug 2020 08:51:02 +0000 (10:51 +0200)]
Add windows/bin/setup-and-build.ps1