]> granicus.if.org Git - graphviz/log
graphviz
3 years agoreplace another sfstropen in GVPR with an agxbuf
Matthew Fernandez [Sun, 3 Jan 2021 17:35:10 +0000 (09:35 -0800)]
replace another sfstropen in GVPR with an agxbuf

Related to #1873.

3 years agoremove a use of sfstropen in GVPR
Matthew Fernandez [Sun, 3 Jan 2021 01:49:25 +0000 (17:49 -0800)]
remove a use of sfstropen in GVPR

Related to #1873.

3 years agoMerge branch 'smattr/37ce32ea-c880-4551-bbc7-91d0a3ccc596' into 'master'
Matthew Fernandez [Sun, 7 Mar 2021 19:46:30 +0000 (19:46 +0000)]
Merge branch 'smattr/37ce32ea-c880-4551-bbc7-91d0a3ccc596' into 'master'

rewrite agxbputc as a function

Closes #1814

See merge request graphviz/graphviz!1812

3 years agorewrite agxbputc as a function
Matthew Fernandez [Mon, 1 Mar 2021 04:30:59 +0000 (20:30 -0800)]
rewrite agxbputc as a function

This solves an issue where the macro implementation did not sufficiently bracket
its arguments. Fixes #1814.

3 years agoMerge branch 'smattr/F8CE1A6E-745B-4768-839C-5004B9EECA6E' into 'master'
Matthew Fernandez [Sat, 6 Mar 2021 16:58:15 +0000 (16:58 +0000)]
Merge branch 'smattr/F8CE1A6E-745B-4768-839C-5004B9EECA6E' into 'master'

remove yet more strcmp micro-optimizations

See merge request graphviz/graphviz!1805

3 years agoremove commented out M_PI
Matthew Fernandez [Sun, 28 Feb 2021 07:11:59 +0000 (23:11 -0800)]
remove commented out M_PI

3 years agoremove another strcmp micro-optimization
Matthew Fernandez [Sun, 28 Feb 2021 06:36:04 +0000 (22:36 -0800)]
remove another strcmp micro-optimization

3 years agoremove no-longer-used Strcmp
Matthew Fernandez [Sun, 28 Feb 2021 06:08:02 +0000 (22:08 -0800)]
remove no-longer-used Strcmp

3 years agoswap Strcmp calls for strcmp
Matthew Fernandez [Sun, 28 Feb 2021 06:03:43 +0000 (22:03 -0800)]
swap Strcmp calls for strcmp

Strcmp optimized strcmp by unrolling the first iteration of a byte comparison
loop. This is no longer an optimization. In modern compilers/libc, (1) strcmp is
generally no longer a byte-by-byte comparison loop and (2) the compiler knows
strcmp as a built-in and can do this kind of unrolling itself. As a result, the
compiler actually has to do *more* work to reverse Strcmp back into strcmp and
thus determine it can use, e.g., SIMD optimizations.

This is essentially the next step of f5a326cb061866bb3beaa33c3e5169efe7fc134d.

3 years agoMerge branch 'smattr/d509f519-e63e-4df1-ab2b-6daac754ff43' into 'master'
Matthew Fernandez [Sat, 6 Mar 2021 01:54:26 +0000 (01:54 +0000)]
Merge branch 'smattr/d509f519-e63e-4df1-ab2b-6daac754ff43' into 'master'

remove an intermediate buffer in libxdot’s jsonString

See merge request graphviz/graphviz!1800

3 years agoremove intermediate buffer in libxdot
Matthew Fernandez [Sat, 27 Feb 2021 04:10:31 +0000 (20:10 -0800)]
remove intermediate buffer in libxdot

The function jsonString was trying to optimize processing by constructing a
string in an intermediate agxbuf before passing this buffer to the caller’s
print callback. An implicit assumption is that the callback is significantly
more expensive than outputting to the intermediate buffer. This is not true. The
only callbacks ever passed to this function are agxbprint itself and fputs,
which does efficient buffering. Both of these are at least as efficient as
agxbuf, making the trip through the intermediate buffer actually a
*de-optimization*.

3 years agoremove irrelevant comment
Matthew Fernandez [Sat, 27 Feb 2021 03:45:08 +0000 (19:45 -0800)]
remove irrelevant comment

JSON encoding needs no special UTF-8 handling.

3 years agoadd a test case for xdot's JSON output
Matthew Fernandez [Sat, 27 Feb 2021 03:31:05 +0000 (19:31 -0800)]
add a test case for xdot's JSON output

Related to #1958.

3 years agorefactor existing test cases that compile C to call common code
Matthew Fernandez [Sat, 27 Feb 2021 03:25:30 +0000 (19:25 -0800)]
refactor existing test cases that compile C to call common code

3 years agohelper test function for running C code
Matthew Fernandez [Sat, 27 Feb 2021 03:12:30 +0000 (19:12 -0800)]
helper test function for running C code

3 years agohelper test function for compiling C code
Matthew Fernandez [Sat, 27 Feb 2021 03:04:07 +0000 (19:04 -0800)]
helper test function for compiling C code

3 years agoadd a test program for proving jsonXDot
Matthew Fernandez [Sat, 27 Feb 2021 02:52:10 +0000 (18:52 -0800)]
add a test program for proving jsonXDot

Related to #1958.

3 years agoMerge branch 'master' into 'master'
Mark Hansen [Fri, 5 Mar 2021 09:21:31 +0000 (09:21 +0000)]
Merge branch 'master' into 'master'

Revert "Revert "Build docker images with buildkit""

Closes #1963

See merge request graphviz/graphviz!1829

3 years agoRevert "Revert "Build docker images with buildkit""
Mark Hansen [Thu, 4 Mar 2021 10:06:56 +0000 (21:06 +1100)]
Revert "Revert "Build docker images with buildkit""

This reverts commit 6cdd95b8776d54eb1a474e1d90f7f3b7e85a7e01.

I'm now confident I can make Docker buildkit caching work after
observing it work on graphviz.gitlab.io. repo.

I now understand why I wasn't seeing caching before:
- I was pushing to my own fork of graphviz
- I didn't push to the master branch
- So I didn't build a `live` tag
- So I didn't have anything to cache from

3 years agoMerge branch 'smattr/7DFF32C2-8BCC-4FDB-8174-28981F4494E5' into 'master'
Matthew Fernandez [Wed, 3 Mar 2021 16:22:06 +0000 (16:22 +0000)]
Merge branch 'smattr/7DFF32C2-8BCC-4FDB-8174-28981F4494E5' into 'master'

removes Windows strdup redirection

See merge request graphviz/graphviz!1797

3 years agoremoves Windows strdup redirection
Matthew Fernandez [Thu, 25 Feb 2021 03:19:17 +0000 (19:19 -0800)]
removes Windows strdup redirection

Microsoft already provides a shim that does this [0].

  [0]: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strdup-wcsdup?view=msvc-160

3 years agoMerge branch 'arrows' into 'master'
Mark Hansen [Tue, 2 Mar 2021 11:13:08 +0000 (11:13 +0000)]
Merge branch 'arrows' into 'master'

Move arrows.html generation into jinja2 templates

See merge request graphviz/graphviz!1826

3 years agoMerge branch 'shapes-no-table' into 'master'
Mark Hansen [Tue, 2 Mar 2021 10:46:00 +0000 (10:46 +0000)]
Merge branch 'shapes-no-table' into 'master'

Generate shapes responsively: reflow small screens

See merge request graphviz/graphviz!1825

3 years agoMove arrows.html generation into jinja2 templates.
Mark Hansen [Tue, 2 Mar 2021 10:23:08 +0000 (21:23 +1100)]
Move arrows.html generation into jinja2 templates.

In preparation for moving this to Jekyll repo.

3 years agoGenerate shapes responsively: reflow small screens
Mark Hansen [Tue, 2 Mar 2021 10:09:20 +0000 (21:09 +1100)]
Generate shapes responsively: reflow small screens

Don't use a fixed table of width 4, reflow to the available space.

This was a bit of a pain to get the CSS right. This stackoverflow answer
was very helpful: https://stackoverflow.com/a/14155983/171898

This is towards moving shapes.html into graphviz.gitlab.io repo. Simpler
for loops that jekyll can handle.

3 years agoGenerate shapes responsively: reflow small screens
Mark Hansen [Tue, 2 Mar 2021 10:09:20 +0000 (21:09 +1100)]
Generate shapes responsively: reflow small screens

Don't use a fixed table of width 4, reflow to the available space.

This was a bit of a pain to get the CSS right. This stackoverflow answer
was very helpful: https://stackoverflow.com/a/14155983/171898

This is towards moving shapes.html into graphviz.gitlab.io repo. Simpler
for loops that jekyll can handle.

3 years agoMerge branch 'no-color' into 'master'
Mark Hansen [Tue, 2 Mar 2021 09:51:51 +0000 (09:51 +0000)]
Merge branch 'no-color' into 'master'

Remove colors.html.j2, it's migrated to docs repo

Closes #1967 and #1968

See merge request graphviz/graphviz!1824

3 years agoMerge branch 'awk-color' into 'master'
Mark Hansen [Tue, 2 Mar 2021 09:44:37 +0000 (09:44 +0000)]
Merge branch 'awk-color' into 'master'

Fix single-line color generation

Closes #1967

See merge request graphviz/graphviz!1823

3 years agoRemove colors.html.j2, it's migrated to docs repo
Mark Hansen [Tue, 2 Mar 2021 09:10:05 +0000 (20:10 +1100)]
Remove colors.html.j2, it's migrated to docs repo

Moved to graphviz.gitlab.io in
https://gitlab.com/graphviz/graphviz.gitlab.io/-/merge_requests/269

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

3 years agoFix single-line color generation
Mark Hansen [Tue, 2 Mar 2021 08:59:20 +0000 (19:59 +1100)]
Fix single-line color generation

Looks like awk has actually added a `-s` flag in the last ten years, breaking this code! Amazing.

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

3 years agoFix single-line color generation
Mark Hansen [Tue, 2 Mar 2021 08:59:20 +0000 (19:59 +1100)]
Fix single-line color generation

Looks like awk has actually added a `-s` flag in the last ten years, breaking this code! Amazing.

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

3 years agoMerge branch 'color-template2' into 'master'
Mark Hansen [Tue, 2 Mar 2021 08:39:39 +0000 (08:39 +0000)]
Merge branch 'color-template2' into 'master'

Close output file descriptor only after done writing

Closes #1965

See merge request graphviz/graphviz!1822

3 years agoClose output file descriptor only after done writing
Mark Hansen [Tue, 2 Mar 2021 08:14:13 +0000 (19:14 +1100)]
Close output file descriptor only after done writing

Previously we would close the output as soon as we wrote a single line.

This didn't account for continuation lines, where $1 == "".

The subsequent printfs would be to a closed file.

Fixes #1965

3 years agoMerge branch 'color-template2' into 'master'
Mark Hansen [Tue, 2 Mar 2021 08:12:33 +0000 (08:12 +0000)]
Merge branch 'color-template2' into 'master'

Split generation of colors.html in Makefile

See merge request graphviz/graphviz!1821

3 years agoSplit generation of colors.html in Makefile
Mark Hansen [Tue, 2 Mar 2021 07:45:15 +0000 (18:45 +1100)]
Split generation of colors.html in Makefile

Allows us to separately generate then check in
the constituent color html files as includes in the graphviz.gitlab.io
repo.

Which would let us remove the colors.html template from this repo.

3 years agoMerge branch 'lang-2' into 'master'
Mark Hansen [Tue, 2 Mar 2021 07:30:53 +0000 (07:30 +0000)]
Merge branch 'lang-2' into 'master'

Remove lang.html.j2: it's migrated repos

See merge request graphviz/graphviz!1820

3 years agoMerge branch 'smattr/A6912F38-21BB-46AC-AE57-DF0CA1990112' into 'master'
Matthew Fernandez [Tue, 2 Mar 2021 06:44:45 +0000 (06:44 +0000)]
Merge branch 'smattr/A6912F38-21BB-46AC-AE57-DF0CA1990112' into 'master'

strlen-related clean up and warning squashing

See merge request graphviz/graphviz!1795

3 years agoremove commented out execOp
Matthew Fernandez [Wed, 24 Feb 2021 04:08:02 +0000 (20:08 -0800)]
remove commented out execOp

3 years agoremove unnecessary bracketing
Matthew Fernandez [Wed, 24 Feb 2021 04:07:45 +0000 (20:07 -0800)]
remove unnecessary bracketing

3 years agoremove use of int as size_t in gprintf
Matthew Fernandez [Wed, 24 Feb 2021 03:52:30 +0000 (19:52 -0800)]
remove use of int as size_t in gprintf

3 years agoremove use of int as size_t in pathAppend
Matthew Fernandez [Wed, 24 Feb 2021 03:51:22 +0000 (19:51 -0800)]
remove use of int as size_t in pathAppend

This removes three -Wsign-conversion and -Wconversion warnings.

3 years agouse stronger typing for pathAppend
Matthew Fernandez [Wed, 24 Feb 2021 03:44:08 +0000 (19:44 -0800)]
use stronger typing for pathAppend

This removes one -Wsign-conversion warning.

3 years agoremove commented out code in make_map.c
Matthew Fernandez [Wed, 24 Feb 2021 03:37:37 +0000 (19:37 -0800)]
remove commented out code in make_map.c

3 years agoremove commented out #include
Matthew Fernandez [Wed, 24 Feb 2021 03:35:57 +0000 (19:35 -0800)]
remove commented out #include

3 years agoremove intermediate buffer in dot_polygon
Matthew Fernandez [Wed, 24 Feb 2021 04:22:38 +0000 (20:22 -0800)]
remove intermediate buffer in dot_polygon

This buffer was only used to calculate how many bytes were necessary to
allocate. The semantics of snprintf allow us to achieve this without the buffer.

3 years agoremove use of int as size_t in dot_polygon
Matthew Fernandez [Wed, 24 Feb 2021 03:32:19 +0000 (19:32 -0800)]
remove use of int as size_t in dot_polygon

This removes four -Wconversion warnings.

3 years agoremove use of %d to print size_t
Matthew Fernandez [Wed, 24 Feb 2021 03:31:08 +0000 (19:31 -0800)]
remove use of %d to print size_t

Now that we build with C99, %zu is available.

3 years agoremove some unnecessary casts
Matthew Fernandez [Wed, 24 Feb 2021 03:22:51 +0000 (19:22 -0800)]
remove some unnecessary casts

3 years agoremove some unnecessary bracketing
Matthew Fernandez [Wed, 24 Feb 2021 03:20:55 +0000 (19:20 -0800)]
remove some unnecessary bracketing

3 years agoremove use of int as size_t in colorxlate
Matthew Fernandez [Wed, 24 Feb 2021 02:14:53 +0000 (18:14 -0800)]
remove use of int as size_t in colorxlate

This removes one -Wconversion and two -Wsign-conversion warnings.

3 years agoremove use of int as size_t in fullColor
Matthew Fernandez [Wed, 24 Feb 2021 02:11:03 +0000 (18:11 -0800)]
remove use of int as size_t in fullColor

This removes two -Wconversion and one -Wsign-conversion warnings.

3 years agoremove use of int as size_t in canontoken
Matthew Fernandez [Wed, 24 Feb 2021 02:00:54 +0000 (18:00 -0800)]
remove use of int as size_t in canontoken

This removes two -Wconversion and one -Wsign-conversion warnings.

3 years agoremove strncmp micro-optimization in rindexOf
Matthew Fernandez [Wed, 24 Feb 2021 01:56:03 +0000 (17:56 -0800)]
remove strncmp micro-optimization in rindexOf

Compilers can do this trick themselves if they decide there is speed to be
gained from it.

3 years agoremove use of int as size_t in rindexOf
Matthew Fernandez [Wed, 24 Feb 2021 01:54:31 +0000 (17:54 -0800)]
remove use of int as size_t in rindexOf

This removes two -Wconversion and one -Wsign-conversion warnings.

3 years agorewrite indexOf
Matthew Fernandez [Wed, 24 Feb 2021 02:06:19 +0000 (18:06 -0800)]
rewrite indexOf

There is a C standard library function that does almost all of this for us. This
removes two -Wconversion and one -Wsign-conversion warnings.

3 years agoremove commented out strdup
Matthew Fernandez [Wed, 24 Feb 2021 01:02:48 +0000 (17:02 -0800)]
remove commented out strdup

This is part of “Extensions to the C Library Part II: Dynamic Allocation
Functions, ISO/IEC TR 24731-2:2010.” It is also slated for inclusion in ISO C23.
In practice, all modern libc implementations provide it.

3 years agoMerge branch 'smattr/487954c2-c50c-4d99-a3d0-a01379415823' into 'master'
Matthew Fernandez [Mon, 1 Mar 2021 16:39:56 +0000 (16:39 +0000)]
Merge branch 'smattr/487954c2-c50c-4d99-a3d0-a01379415823' into 'master'

port rtest2 to pytest and re-enable it

See merge request graphviz/graphviz!1794

3 years agoremove now-legacy rtest2 directory
Matthew Fernandez [Tue, 23 Feb 2021 05:06:28 +0000 (21:06 -0800)]
remove now-legacy rtest2 directory

3 years agoconsolidate ported rtest2 into tests/
Matthew Fernandez [Tue, 23 Feb 2021 04:51:46 +0000 (20:51 -0800)]
consolidate ported rtest2 into tests/

3 years agoport rtest2 to pytest
Matthew Fernandez [Tue, 23 Feb 2021 04:45:15 +0000 (20:45 -0800)]
port rtest2 to pytest

Only two of the reference tests pass, but this is at least the first step
towards resurrecting these.

3 years agodecompress test_reference
Matthew Fernandez [Tue, 23 Feb 2021 04:13:53 +0000 (20:13 -0800)]
decompress test_reference

Git data is already compressed. We do not gain anything by storing compressed
files within the repository.

3 years agoMerge branch 'color-template' into 'master'
Mark Hansen [Mon, 1 Mar 2021 10:59:24 +0000 (10:59 +0000)]
Merge branch 'color-template' into 'master'

Use python template to generate colors.html

See merge request graphviz/graphviz!1819

3 years agoMerge branch 'w3data' into 'master'
Mark Hansen [Mon, 1 Mar 2021 10:55:22 +0000 (10:55 +0000)]
Merge branch 'w3data' into 'master'

Remove w3data.js from this repo

See merge request graphviz/graphviz!1818

3 years agoMerge branch 'lang' into 'master'
Mark Hansen [Mon, 1 Mar 2021 10:52:58 +0000 (10:52 +0000)]
Merge branch 'lang' into 'master'

Generate lang.html with a template

See merge request graphviz/graphviz!1817

3 years agoMerge branch 'no_json' into 'master'
Mark Hansen [Mon, 1 Mar 2021 10:51:44 +0000 (10:51 +0000)]
Merge branch 'no_json' into 'master'

Remove graphviz_json_schema.json copy

See merge request graphviz/graphviz!1816

3 years agoMerge branch 'no-a_' into 'master'
Mark Hansen [Mon, 1 Mar 2021 10:44:16 +0000 (10:44 +0000)]
Merge branch 'no-a_' into 'master'

Remove doc/info/a_{forward,nohead}.dot

See merge request graphviz/graphviz!1815

3 years agoRemove lang.html.j2: it's migrated repos
Mark Hansen [Mon, 1 Mar 2021 10:41:23 +0000 (21:41 +1100)]
Remove lang.html.j2: it's migrated repos

In https://gitlab.com/graphviz/graphviz.gitlab.io/-/merge_requests/268,
I added a copy of lang.html.j2 to graphviz.gitlab.io.

Now there's no need to keep two copies.

Instead we only generate the insides of lang.html: an EBNF HTML diagram,
grammar.html

3 years agoUse python template to generate colors.html
Mark Hansen [Mon, 1 Mar 2021 09:42:10 +0000 (20:42 +1100)]
Use python template to generate colors.html

One step closer to migrating this to the other repo as a jekyll file.

Confirmed with diff that the only differences are extra blank lines,
nothing important.

3 years agoMerge branch 'no-html' into 'master'
Mark Hansen [Mon, 1 Mar 2021 10:12:37 +0000 (10:12 +0000)]
Merge branch 'no-html' into 'master'

Inline html.{1,2,3} files into shapes.html template

See merge request graphviz/graphviz!1814

3 years agoRemove w3data.js from this repo
Mark Hansen [Mon, 1 Mar 2021 09:26:29 +0000 (20:26 +1100)]
Remove w3data.js from this repo

It's been migrated fully to graphviz.gitlab.io docs repo.

No more references in this repo.

3 years agoGenerate lang.html with a template
Mark Hansen [Mon, 1 Mar 2021 09:24:24 +0000 (20:24 +1100)]
Generate lang.html with a template

This is a bit more complex, but it does let us see the entire doc in one
template.

One step closer to being able to generate this in jekyll and have a
single source of truth for this doc.

3 years agoRemove graphviz_json_schema.json copy
Mark Hansen [Mon, 1 Mar 2021 09:11:41 +0000 (20:11 +1100)]
Remove graphviz_json_schema.json copy

This file is used in doc/infosrc/ to generate an HTML table. It's not
used here in this directory, it's just a copy.

This is unused here, not part of the html_DATA Makefile in this
directory.

3 years agoRemove doc/info/a_{forward,nohead}.dot
Mark Hansen [Mon, 1 Mar 2021 09:07:51 +0000 (20:07 +1100)]
Remove doc/info/a_{forward,nohead}.dot

These seem completely unreferenced.

3 years agoInline html.{1,2,3} files into shapes.html template
Mark Hansen [Mon, 1 Mar 2021 08:46:28 +0000 (19:46 +1100)]
Inline html.{1,2,3} files into shapes.html template

shapes.html is the only place these files are used.

Moving them into a template is one step towards being able to build this
file in the other graphviz repo (and having a single source of truth for
this doc)

3 years agoMerge branch 'no-buildkit' into 'master'
Mark Hansen [Sun, 28 Feb 2021 11:19:07 +0000 (11:19 +0000)]
Merge branch 'no-buildkit' into 'master'

Revert "Build docker images with buildkit"

Closes #1963

See merge request graphviz/graphviz!1811

3 years agoMerge branch 'command' into 'master'
Mark Hansen [Sun, 28 Feb 2021 10:54:10 +0000 (10:54 +0000)]
Merge branch 'command' into 'master'

Delete command.html: moved to graphviz.gitlab.io

See merge request graphviz/graphviz!1810

3 years agoMerge branch 'mv-tcl' into 'master'
Mark Hansen [Sun, 28 Feb 2021 10:52:21 +0000 (10:52 +0000)]
Merge branch 'mv-tcl' into 'master'

Move doc/info/*.tcl build scripts to doc/infosrc

See merge request graphviz/graphviz!1807

3 years agoRevert "Build docker images with buildkit"
Mark Hansen [Sun, 28 Feb 2021 10:44:40 +0000 (21:44 +1100)]
Revert "Build docker images with buildkit"

This reverts commit e8c5df0ad943cf2ab1c657165900928c3f6f7d3b.

Fixes #1963

3 years agoMerge branch 'formats2' into 'master'
Mark Hansen [Sun, 28 Feb 2021 10:39:00 +0000 (10:39 +0000)]
Merge branch 'formats2' into 'master'

Delete mkoutput.py

See merge request graphviz/graphviz!1809

3 years agoMerge branch 'formats' into 'master'
Mark Hansen [Sun, 28 Feb 2021 10:32:14 +0000 (10:32 +0000)]
Merge branch 'formats' into 'master'

Adapt mkoutput.py to generate YAML for jekyll

See merge request graphviz/graphviz!1808

3 years agoDelete command.html: moved to graphviz.gitlab.io
Mark Hansen [Sun, 28 Feb 2021 10:22:47 +0000 (21:22 +1100)]
Delete command.html: moved to graphviz.gitlab.io

3 years agoDelete mkoutput.py
Mark Hansen [Sun, 28 Feb 2021 09:55:00 +0000 (20:55 +1100)]
Delete mkoutput.py

Output generation has moved to graphviz.gitlab.io repo.

Towards #1962.

3 years agoAdapt mkoutput.py to generate YAML for jekyll
Mark Hansen [Sun, 28 Feb 2021 09:51:14 +0000 (20:51 +1100)]
Adapt mkoutput.py to generate YAML for jekyll

This is towards #1962. The output yaml-front-matter HTML can be used as input to jekyll.

3 years agoMerge branch 'buildkit' into 'master'
Mark Hansen [Sun, 28 Feb 2021 07:50:09 +0000 (07:50 +0000)]
Merge branch 'buildkit' into 'master'

Build docker images with buildkit

See merge request graphviz/graphviz!1804

3 years agoMove .tcl build scripts to infosrc
Mark Hansen [Sun, 28 Feb 2021 07:32:20 +0000 (18:32 +1100)]
Move .tcl build scripts to infosrc

This is where all the other build scripts live.

And it's where the input to these files lives.

3 years agoMerge branch 'smattr/6efacd71-1ee2-422c-a843-1765f184956a' into 'master'
Matthew Fernandez [Sun, 28 Feb 2021 07:26:15 +0000 (07:26 +0000)]
Merge branch 'smattr/6efacd71-1ee2-422c-a843-1765f184956a' into 'master'

fix buffer overflow in unflatten

See merge request graphviz/graphviz!1791

3 years agoRemove doc/info/*.gv
Mark Hansen [Sun, 28 Feb 2021 07:25:57 +0000 (18:25 +1100)]
Remove doc/info/*.gv

These files are not referenced by any HTML.

3 years agoRemove doc/info/*.png
Mark Hansen [Sun, 28 Feb 2021 06:58:00 +0000 (17:58 +1100)]
Remove doc/info/*.png

There are no references to any of these files left.

They're all hosted now over at the graphviz.gitlab.io main docs repo.

No need for this duplication.

3 years agoBuild docker images with buildkit
Mark Hansen [Sun, 28 Feb 2021 06:43:51 +0000 (17:43 +1100)]
Build docker images with buildkit

Buildkit is the newer, faster way to build docker images.

For one, buildkit doesn't send the entire repo as build context.

3 years agoRemove gifs from doc/info
Mark Hansen [Sun, 28 Feb 2021 06:39:32 +0000 (17:39 +1100)]
Remove gifs from doc/info

These are now hosted over at graphviz.gitlab.io repo -- the main docs repo.

3 years agomore strongly type some boolean variables
Matthew Fernandez [Mon, 22 Feb 2021 03:12:31 +0000 (19:12 -0800)]
more strongly type some boolean variables

3 years agoremove an open coded NULL
Matthew Fernandez [Mon, 22 Feb 2021 03:10:31 +0000 (19:10 -0800)]
remove an open coded NULL

3 years agoremove unnecessary bracketing in unflatten
Matthew Fernandez [Mon, 22 Feb 2021 03:07:43 +0000 (19:07 -0800)]
remove unnecessary bracketing in unflatten

3 years agoswap an sprintf for an snprintf
Matthew Fernandez [Mon, 22 Feb 2021 03:02:39 +0000 (19:02 -0800)]
swap an sprintf for an snprintf

Towards #1950.

3 years agofix buffer overflow in unflatten
Matthew Fernandez [Mon, 22 Feb 2021 03:01:10 +0000 (19:01 -0800)]
fix buffer overflow in unflatten

GCC 8.3.0 with -Wformat-overflow is capable of noticing that the sprintf in this
function can overflow the target buffer.

3 years agoMerge branch 'smattr/BF97B15D-EDF2-4F74-B79D-E3C0E7E2124F' into 'master'
Matthew Fernandez [Sun, 28 Feb 2021 06:24:55 +0000 (06:24 +0000)]
Merge branch 'smattr/BF97B15D-EDF2-4F74-B79D-E3C0E7E2124F' into 'master'

fix GVPR's ability to comprehend absolute paths on Windows

Closes #1780

See merge request graphviz/graphviz!1790

3 years agoMerge branch 'redir' into 'master'
Mark Hansen [Sun, 28 Feb 2021 06:04:40 +0000 (06:04 +0000)]
Merge branch 'redir' into 'master'

Redirect doc files to graphviz.org

See merge request graphviz/graphviz!1802

3 years agofix: detect absolute paths correctly in GVPR on Windows
Matthew Fernandez [Sun, 3 Jan 2021 00:00:19 +0000 (16:00 -0800)]
fix: detect absolute paths correctly in GVPR on Windows

This code was incorrectly depending on WIN32_DLL which was not defined when the
source file was built. Rather than addressing this directly, we make gvpr comply
more accurately with its man page:

  If progfile contains a slash character, the name is taken as the pathname of
  the file.

We now look for a path separator, backslash on Windows and forward slash on
anything else. Fixes #1780.

3 years agotest case for #1780
Matthew Fernandez [Sat, 2 Jan 2021 23:59:19 +0000 (15:59 -0800)]
test case for #1780

3 years agoRedirect more duplicate docs to graphviz site
Mark Hansen [Sun, 28 Feb 2021 03:15:05 +0000 (14:15 +1100)]
Redirect more duplicate docs to graphviz site

I've deleted schema.html instead of redirecting because it's not
intended to be shown as a top-level page on its own, but rather included
in another page as a subtree.

Towards https://gitlab.com/graphviz/graphviz.gitlab.io/-/issues/39