]> granicus.if.org Git - graphviz/log
graphviz
2 years agosmyrna: mark 'copy_attr' static
Matthew Fernandez [Fri, 6 May 2022 00:52:06 +0000 (17:52 -0700)]
smyrna: mark 'copy_attr' static

This function is not used outside of its containing file.

2 years agosmyrna: remove unused return value of 'cb_game_mode'
Matthew Fernandez [Fri, 6 May 2022 00:50:43 +0000 (17:50 -0700)]
smyrna: remove unused return value of 'cb_game_mode'

2 years agosmyrna: propagate and remove 'fullscreen' parameter to 'cb_glutinit'
Matthew Fernandez [Fri, 6 May 2022 00:48:53 +0000 (17:48 -0700)]
smyrna: propagate and remove 'fullscreen' parameter to 'cb_glutinit'

This function did not properly support non-fullscreen mode, as evidenced by the
`x` and `y` parameters (removed in the previous commit) that it was ignoring.

2 years agosmyrna: remove unused parameter to 'cb_glutinit'
Matthew Fernandez [Fri, 6 May 2022 00:46:30 +0000 (17:46 -0700)]
smyrna: remove unused parameter to 'cb_glutinit'

2 years agosmyrna: squash -Wunused-parameter warnings for GLUT callbacks
Matthew Fernandez [Fri, 6 May 2022 00:42:13 +0000 (17:42 -0700)]
smyrna: squash -Wunused-parameter warnings for GLUT callbacks

These functions need to conform to a particular type signature.

2 years agoMerge branch 'smattr/1175FE55-FCE5-4173-B59E-6C30DFBE6AF1' into 'main'
Matthew Fernandez [Sat, 4 Jun 2022 16:16:58 +0000 (16:16 +0000)]
Merge branch 'smattr/1175FE55-FCE5-4173-B59E-6C30DFBE6AF1' into 'main'

sparse: remove 'transpose' parameter from 'SparseMatrix_multiply_vector'

See merge request graphviz/graphviz!2703

2 years agosparse: remove 'transpose' parameter from 'SparseMatrix_multiply_vector'
Matthew Fernandez [Fri, 27 May 2022 01:38:19 +0000 (18:38 -0700)]
sparse: remove 'transpose' parameter from 'SparseMatrix_multiply_vector'

This function is only used to multiply untransposed matrices.

2 years agoMerge branch 'smattr/ED48F907-F75B-4B57-B10D-B9C95033FDAB' into 'main'
Matthew Fernandez [Sat, 4 Jun 2022 06:06:28 +0000 (06:06 +0000)]
Merge branch 'smattr/ED48F907-F75B-4B57-B10D-B9C95033FDAB' into 'main'

bcomps: replace unchecked allocations with alloc helpers

See merge request graphviz/graphviz!2709

2 years agobcomps: replace unchecked allocations with alloc helpers
Matthew Fernandez [Sat, 28 May 2022 19:26:52 +0000 (12:26 -0700)]
bcomps: replace unchecked allocations with alloc helpers

This addresses some instances where out-of-memory would go undetected, leading
to a crash and/or data corruption.

2 years agoMerge branch 'smattr/2095BD9E-3E7D-4BD9-BC12-1B5EA3B75D3D' into 'main'
Matthew Fernandez [Sat, 4 Jun 2022 04:37:39 +0000 (04:37 +0000)]
Merge branch 'smattr/2095BD9E-3E7D-4BD9-BC12-1B5EA3B75D3D' into 'main'

dotgen: squash -Wsign-conversion warnings in 'medians'

See merge request graphviz/graphviz!2698

2 years agodotgen: squash -Wsign-conversion warnings in 'medians'
Matthew Fernandez [Sun, 8 May 2022 23:41:17 +0000 (16:41 -0700)]
dotgen: squash -Wsign-conversion warnings in 'medians'

The compiler says:

  mincross.c: In function 'medians':
  mincross.c:1803:25: warning: conversion to 'size_t' {aka 'long unsigned int'}
    from 'int' may change the sign of the result [-Wsign-conversion]
   1803 |             qsort(list, j, sizeof(int), (qsort_cmpf) ordercmpf);
        |                         ^

By doing array indexing in this function universally as `size_t` we can avoid
this.

2 years agoMerge branch 'smattr/51D1DF21-4D0E-4E0F-9E2A-3E9F3CA0D5C4' into 'main'
Matthew Fernandez [Sat, 4 Jun 2022 03:32:23 +0000 (03:32 +0000)]
Merge branch 'smattr/51D1DF21-4D0E-4E0F-9E2A-3E9F3CA0D5C4' into 'main'

sparse: remove support for three-way multiplication of non-real matrices

See merge request graphviz/graphviz!2704

2 years agosparse: remove support for three-way multiplication of non-real matrices
Matthew Fernandez [Fri, 27 May 2022 14:31:21 +0000 (07:31 -0700)]
sparse: remove support for three-way multiplication of non-real matrices

The function `SparseMatrix_multiply3` is only used to multiple real matrices.

2 years agoMerge branch 'start-4.0.1-dev' into 'main'
Magnus Jacobsson [Sun, 29 May 2022 10:49:11 +0000 (10:49 +0000)]
Merge branch 'start-4.0.1-dev' into 'main'

Start 4.0.1 development

See merge request graphviz/graphviz!2710

2 years agoStart 4.0.1 development
Magnus Jacobsson [Sun, 29 May 2022 08:51:15 +0000 (10:51 +0200)]
Start 4.0.1 development

2 years agoMerge branch 'stable-release-4.0.0' into 'main' 4.0.0
Magnus Jacobsson [Sun, 29 May 2022 09:37:45 +0000 (09:37 +0000)]
Merge branch 'stable-release-4.0.0' into 'main'

Stable Release 4.0.0

See merge request graphviz/graphviz!2694

2 years agoStable Release 4.0.0
Magnus Jacobsson [Tue, 24 May 2022 07:21:05 +0000 (09:21 +0200)]
Stable Release 4.0.0

2 years agoMerge branch 'smattr/BCE20F0D-9459-499B-A828-5DD50E5827A3' into 'main'
Matthew Fernandez [Sat, 28 May 2022 22:31:04 +0000 (22:31 +0000)]
Merge branch 'smattr/BCE20F0D-9459-499B-A828-5DD50E5827A3' into 'main'

sparse: remove some dead code paths

See merge request graphviz/graphviz!2697

2 years agosparse: remove 'weight' from 'QuadTree_new_from_point_list'
Matthew Fernandez [Tue, 24 May 2022 04:37:40 +0000 (21:37 -0700)]
sparse: remove 'weight' from 'QuadTree_new_from_point_list'

This parameter is always passed as `NULL`.

2 years agosfdpgen: remove unused 'node_weights' from 'spring_maxent_embedding'
Matthew Fernandez [Tue, 24 May 2022 03:19:32 +0000 (20:19 -0700)]
sfdpgen: remove unused 'node_weights' from 'spring_maxent_embedding'

2 years agosfdpgen: remove unused 'node_weights' from 'spring_electrical_embedding'
Matthew Fernandez [Tue, 24 May 2022 03:18:02 +0000 (20:18 -0700)]
sfdpgen: remove unused 'node_weights' from 'spring_electrical_embedding'

2 years agosfdpgen: remove unused 'node_weights' from 'spring_electrical_embedding_slow'
Matthew Fernandez [Tue, 24 May 2022 03:14:48 +0000 (20:14 -0700)]
sfdpgen: remove unused 'node_weights' from 'spring_electrical_embedding_slow'

2 years agosfdpgen: remove unused 'node_weights' from 'spring_electrical_embedding_fast'
Matthew Fernandez [Tue, 24 May 2022 03:13:03 +0000 (20:13 -0700)]
sfdpgen: remove unused 'node_weights' from 'spring_electrical_embedding_fast'

2 years agosfdpgen: remove always-false 'use_node_weights'
Matthew Fernandez [Tue, 24 May 2022 03:10:00 +0000 (20:10 -0700)]
sfdpgen: remove always-false 'use_node_weights'

2 years agosfdpgen: remove 'node_weights' from 'spring_electrical_spring_embedding'
Matthew Fernandez [Tue, 24 May 2022 02:53:01 +0000 (19:53 -0700)]
sfdpgen: remove 'node_weights' from 'spring_electrical_spring_embedding'

This parameter is always passed as `NULL`.

2 years agosfdpgen: remove 'node_weights' from 'SpringSmoother_smooth'
Matthew Fernandez [Tue, 24 May 2022 02:48:34 +0000 (19:48 -0700)]
sfdpgen: remove 'node_weights' from 'SpringSmoother_smooth'

This parameter is always passed as `NULL`.

2 years agosfdpgen: remove 'node_weights' from 'post_process_smoothing'
Matthew Fernandez [Tue, 24 May 2022 02:46:34 +0000 (19:46 -0700)]
sfdpgen: remove 'node_weights' from 'post_process_smoothing'

This parameter is always passed as `NULL`.

2 years agosfdpgen: remove 'node_weights' from 'Multilevel_new'
Matthew Fernandez [Tue, 24 May 2022 02:44:34 +0000 (19:44 -0700)]
sfdpgen: remove 'node_weights' from 'Multilevel_new'

This parameter is always passed as `NULL`.

2 years agosparse: remove 'node_weights' from 'multilevel_spring_electrical_embedding'
Matthew Fernandez [Tue, 24 May 2022 02:39:44 +0000 (19:39 -0700)]
sparse: remove 'node_weights' from 'multilevel_spring_electrical_embedding'

This parameter is always passed as `NULL`.

2 years agoMerge branch 'trapezoidation' into 'main'
Matthew Fernandez [Fri, 27 May 2022 15:01:00 +0000 (15:01 +0000)]
Merge branch 'trapezoidation' into 'main'

comment about theory and ðŸ“œ origins of trapezoids for ortho

See merge request graphviz/graphviz!2696

2 years agocomment about theory and origins of trap.h
Costa Shulyupin [Tue, 24 May 2022 19:29:26 +0000 (22:29 +0300)]
comment about theory and origins of trap.h

2 years agocomment about theory and origins of trapezoid.c
Costa Shulyupin [Tue, 24 May 2022 19:16:39 +0000 (22:16 +0300)]
comment about theory and origins of trapezoid.c

2 years agoMerge branch 'smattr/C8308E84-5819-47FC-B5A1-2C8A9A0D4BB5' into 'main'
Matthew Fernandez [Fri, 27 May 2022 05:54:22 +0000 (05:54 +0000)]
Merge branch 'smattr/C8308E84-5819-47FC-B5A1-2C8A9A0D4BB5' into 'main'

dotgen: remove shadowing of 'n' in 'build_ranks'

See merge request graphviz/graphviz!2687

2 years agodotgen: remove shadowing of 'n' in 'build_ranks'
Matthew Fernandez [Sun, 8 May 2022 20:47:20 +0000 (13:47 -0700)]
dotgen: remove shadowing of 'n' in 'build_ranks'

The compiler was warning:

  mincross.c:1404:17: warning: declaration of 'n' shadows a previous local
    [-Wshadow]
   1404 |             int n, ndiv2;
        |                 ^
  mincross.c:1359:13: note: shadowed declaration is here
   1359 |     node_t *n, *n0;
        |             ^

We can trivially rephrase the code to avoid this noise.

2 years agoMerge branch 'smattr/1CFC93CE-61B4-4BC3-AFD5-CE4AD8428B92' into 'main'
Matthew Fernandez [Fri, 27 May 2022 03:16:47 +0000 (03:16 +0000)]
Merge branch 'smattr/1CFC93CE-61B4-4BC3-AFD5-CE4AD8428B92' into 'main'

upgrade Pylint

See merge request graphviz/graphviz!2677

2 years agoupgrade Pylint
Matthew Fernandez [Fri, 20 May 2022 00:45:06 +0000 (17:45 -0700)]
upgrade Pylint

2 years agoMerge branch 'smattr/2B028903-89AB-434A-9AC9-F7D4D737A1BF' into 'main'
Matthew Fernandez [Fri, 27 May 2022 02:02:07 +0000 (02:02 +0000)]
Merge branch 'smattr/2B028903-89AB-434A-9AC9-F7D4D737A1BF' into 'main'

sparse: simplify 'SparseMatrix_coordinate_form_add_entries'

See merge request graphviz/graphviz!2691

2 years agosparse: remove incorrect comment in 'SparseMatrix_delete'
Matthew Fernandez [Mon, 23 May 2022 00:57:50 +0000 (17:57 -0700)]
sparse: remove incorrect comment in 'SparseMatrix_delete'

This appears to have been accidentally copy-pasted from
`SparseMatrix_general_new`.

2 years agosparse: take 'jcn' as a value instead of pointer
Matthew Fernandez [Mon, 23 May 2022 00:54:34 +0000 (17:54 -0700)]
sparse: take 'jcn' as a value instead of pointer

2 years agosparse: take 'irn' as a value instead of pointer
Matthew Fernandez [Mon, 23 May 2022 00:48:41 +0000 (17:48 -0700)]
sparse: take 'irn' as a value instead of pointer

2 years agosparse: rename 'SparseMatrix_coordinate_form_add_entries'
Matthew Fernandez [Mon, 23 May 2022 00:40:36 +0000 (17:40 -0700)]
sparse: rename 'SparseMatrix_coordinate_form_add_entries'

Now that this function only adds a single entry, its name should more accurately
indicate this.

2 years agosparse: rewrite 'memcpy' steps in 'SparseMatrix_coordinate_form_add_entries'
Matthew Fernandez [Mon, 23 May 2022 00:03:22 +0000 (17:03 -0700)]
sparse: rewrite 'memcpy' steps in 'SparseMatrix_coordinate_form_add_entries'

Now that we know these steps are always copying a single element, we can write
them simpler.

2 years agosparse: remove 'nentries' from 'SparseMatrix_coordinate_form_add_entries'
Matthew Fernandez [Sun, 22 May 2022 23:58:57 +0000 (16:58 -0700)]
sparse: remove 'nentries' from 'SparseMatrix_coordinate_form_add_entries'

This parameter is always passed as 1.

2 years agoMerge branch 'doc-cmd' into 'main'
Matthew Fernandez [Fri, 27 May 2022 00:58:42 +0000 (00:58 +0000)]
Merge branch 'doc-cmd' into 'main'

populate directory cmd with doxygen comments

See merge request graphviz/graphviz!2653

2 years agodoxygen comments for cmd/smyrna
Costa Shulyupin [Thu, 5 May 2022 15:42:50 +0000 (18:42 +0300)]
doxygen comments for cmd/smyrna

2 years agodoxygen comments for cmd/mingle
Costa Shulyupin [Thu, 5 May 2022 15:42:17 +0000 (18:42 +0300)]
doxygen comments for cmd/mingle

2 years agodoxygen comments for cmd, lefty, gvmap, lneato, dotty
Costa Shulyupin [Thu, 5 May 2022 15:41:41 +0000 (18:41 +0300)]
doxygen comments for cmd, lefty, gvmap, lneato, dotty

2 years agodoxygen comments for cmd/gvmap
Costa Shulyupin [Thu, 5 May 2022 15:40:10 +0000 (18:40 +0300)]
doxygen comments for cmd/gvmap

2 years agodoxygen comments for cmd/gvedit
Costa Shulyupin [Thu, 5 May 2022 15:38:46 +0000 (18:38 +0300)]
doxygen comments for cmd/gvedit

2 years agodoxygen comments for cmd/edgepaint
Costa Shulyupin [Thu, 5 May 2022 15:37:33 +0000 (18:37 +0300)]
doxygen comments for cmd/edgepaint

symbol % prevents automatic link generation

Reference https://www.doxygen.nl/manual/autolink.html#linkclass

2 years agodoxygen comments for cmd/dot
Costa Shulyupin [Thu, 5 May 2022 15:31:24 +0000 (18:31 +0300)]
doxygen comments for cmd/dot

2 years agoMerge branch 'smattr/E952DFA7-B513-45DE-B06B-55EDD4629175' into 'main'
Matthew Fernandez [Thu, 26 May 2022 16:43:23 +0000 (16:43 +0000)]
Merge branch 'smattr/E952DFA7-B513-45DE-B06B-55EDD4629175' into 'main'

edgepaint: remove 'iter_max' parameter from 'node_distinct_coloring'

See merge request graphviz/graphviz!2690

2 years agoedgepaint: remove 'iter_max' parameter from 'node_distinct_coloring'
Matthew Fernandez [Sun, 22 May 2022 17:08:54 +0000 (10:08 -0700)]
edgepaint: remove 'iter_max' parameter from 'node_distinct_coloring'

This is always set to 100.

2 years agoMerge branch 'smattr/46AE87AD-E20D-448B-A034-75D02874EF1D' into 'main'
Matthew Fernandez [Thu, 26 May 2022 06:22:01 +0000 (06:22 +0000)]
Merge branch 'smattr/46AE87AD-E20D-448B-A034-75D02874EF1D' into 'main'

sparse: remove 'D' parameter from 'SparseMatrix_import_dot' that is always null

See merge request graphviz/graphviz!2673

2 years agosparse: remove 'D' parameter from 'SparseMatrix_import_dot' that is always null
Matthew Fernandez [Wed, 18 May 2022 15:19:48 +0000 (08:19 -0700)]
sparse: remove 'D' parameter from 'SparseMatrix_import_dot' that is always null

2 years agoMerge branch 'smattr/11C3F22D-F3BE-483F-B2FF-968986B76565' into 'main'
Matthew Fernandez [Thu, 26 May 2022 05:03:22 +0000 (05:03 +0000)]
Merge branch 'smattr/11C3F22D-F3BE-483F-B2FF-968986B76565' into 'main'

tred: replace a 'malloc' with cgraph alloc wrapper

See merge request graphviz/graphviz!2674

2 years agotred: replace a 'malloc' with cgraph alloc wrapper
Matthew Fernandez [Tue, 17 May 2022 14:25:44 +0000 (07:25 -0700)]
tred: replace a 'malloc' with cgraph alloc wrapper

This addresses a case where allocation failure went unchecked.

2 years agoMerge branch 'doc-tools' into 'main'
Matthew Fernandez [Thu, 26 May 2022 04:01:41 +0000 (04:01 +0000)]
Merge branch 'doc-tools' into 'main'

populate directory cmd/tools with doxygen comments

See merge request graphviz/graphviz!2657

2 years agodoxygen comment for unflatten.c
Costa Shulyupin [Fri, 6 May 2022 07:03:32 +0000 (10:03 +0300)]
doxygen comment for unflatten.c

2 years agodoxygen comment for tred.c
Costa Shulyupin [Fri, 6 May 2022 07:03:20 +0000 (10:03 +0300)]
doxygen comment for tred.c

2 years agodoxygen comment for sccmap.c
Costa Shulyupin [Fri, 6 May 2022 07:03:07 +0000 (10:03 +0300)]
doxygen comment for sccmap.c

2 years agodoxygen comment for nop.c
Costa Shulyupin [Fri, 6 May 2022 07:02:43 +0000 (10:02 +0300)]
doxygen comment for nop.c

2 years agodoxygen comment for mmio.h
Costa Shulyupin [Fri, 6 May 2022 07:02:30 +0000 (10:02 +0300)]
doxygen comment for mmio.h

2 years agodoxygen comment for mm2gv.c
Costa Shulyupin [Fri, 6 May 2022 07:02:16 +0000 (10:02 +0300)]
doxygen comment for mm2gv.c

2 years agodoxygen comment for matrix_market.h
Costa Shulyupin [Fri, 6 May 2022 07:02:03 +0000 (10:02 +0300)]
doxygen comment for matrix_market.h

2 years agodoxygen comment for gxl2gv.c
Costa Shulyupin [Fri, 6 May 2022 07:01:50 +0000 (10:01 +0300)]
doxygen comment for gxl2gv.c

2 years agodoxygen comment for gvpack.cpp
Costa Shulyupin [Fri, 6 May 2022 07:01:38 +0000 (10:01 +0300)]
doxygen comment for gvpack.cpp

2 years agodoxygen comment for gvgen.c
Costa Shulyupin [Fri, 6 May 2022 07:01:22 +0000 (10:01 +0300)]
doxygen comment for gvgen.c

2 years agodoxygen comment for gvcolor.c
Costa Shulyupin [Fri, 6 May 2022 07:01:02 +0000 (10:01 +0300)]
doxygen comment for gvcolor.c

2 years agodoxygen comment for gv2gxl.c
Costa Shulyupin [Fri, 6 May 2022 07:00:50 +0000 (10:00 +0300)]
doxygen comment for gv2gxl.c

2 years agodoxygen comment for gv2gml.c
Costa Shulyupin [Fri, 6 May 2022 07:00:31 +0000 (10:00 +0300)]
doxygen comment for gv2gml.c

2 years agodoxygen comment for graphml2gv.c
Costa Shulyupin [Fri, 6 May 2022 06:58:00 +0000 (09:58 +0300)]
doxygen comment for graphml2gv.c

2 years agodoxygen comment for gml2gv.h
Costa Shulyupin [Fri, 6 May 2022 06:57:43 +0000 (09:57 +0300)]
doxygen comment for gml2gv.h

2 years agodoxygen comment for gc.c
Costa Shulyupin [Fri, 6 May 2022 06:57:25 +0000 (09:57 +0300)]
doxygen comment for gc.c

2 years agodoxygen comment for dijkstra.c
Costa Shulyupin [Fri, 6 May 2022 06:54:20 +0000 (09:54 +0300)]
doxygen comment for dijkstra.c

2 years agodoxygen comment for cvtgxl.c
Costa Shulyupin [Fri, 6 May 2022 06:54:05 +0000 (09:54 +0300)]
doxygen comment for cvtgxl.c

2 years agodoxygen comment for convert.h
Costa Shulyupin [Fri, 6 May 2022 06:53:33 +0000 (09:53 +0300)]
doxygen comment for convert.h

2 years agodoxygen comment for colxlate.c
Costa Shulyupin [Fri, 6 May 2022 06:51:48 +0000 (09:51 +0300)]
doxygen comment for colxlate.c

2 years agodoxygen comment for ccomps.c
Costa Shulyupin [Fri, 6 May 2022 06:51:16 +0000 (09:51 +0300)]
doxygen comment for ccomps.c

2 years agodoxygen comment for bcomps.c
Costa Shulyupin [Fri, 6 May 2022 06:50:20 +0000 (09:50 +0300)]
doxygen comment for bcomps.c

2 years agodoxygen comment for acyclic.c
Costa Shulyupin [Fri, 6 May 2022 06:48:15 +0000 (09:48 +0300)]
doxygen comment for acyclic.c

2 years agoMerge branch 'emitSearchGraph' into 'main'
Matthew Fernandez [Thu, 26 May 2022 03:06:13 +0000 (03:06 +0000)]
Merge branch 'emitSearchGraph' into 'main'

fix emitSearchGraph for better representation

See merge request graphviz/graphviz!2647

2 years agoemitSearchGraph: show weights of search graph in labels
Costa Shulyupin [Mon, 2 May 2022 03:18:08 +0000 (06:18 +0300)]
emitSearchGraph: show weights of search graph in labels

Before this patch using `weight` as `len` contradicted
predefined coordinates and changed layout.

2 years agofix emitSearchGraph, use layout=neato and pos=x,y!
Costa Shulyupin [Mon, 2 May 2022 03:10:07 +0000 (06:10 +0300)]
fix emitSearchGraph, use layout=neato and pos=x,y!

Function emitSearchGraph dumps internal state of
orthogonal routing search graph in dot format for debugging.
Output of the function is not used for final user output.

The functions already receives coordinates of nodes.
These coordinates should be used verbatim.

Before this patch `dot` changes locations of search graph nodes and
rendered output image is not useful.

This patch
- adds dummy layout `neato` because attribute `pos` is meaningful
  for only for `neato` and `fdp`.
- adds "!" to force fixed positions by default.

Finally layout engine doesn't changes layout and positions of nodes.

References:
- https://graphviz.org/docs/attrs/pos/
- https://graphviz.org/docs/attr-types/point/

2 years agoMerge branch 'gvpr' into 'main'
Matthew Fernandez [Thu, 26 May 2022 02:04:08 +0000 (02:04 +0000)]
Merge branch 'gvpr' into 'main'

Doxygen comments for gvpr

See merge request graphviz/graphviz!2648

2 years agodoxygen comment for lib/gvpr/gvpr.c
Costa Shulyupin [Mon, 2 May 2022 14:52:15 +0000 (17:52 +0300)]
doxygen comment for lib/gvpr/gvpr.c

2 years agodoxygen comment for lib/gvpr/gvpr.h
Costa Shulyupin [Mon, 2 May 2022 14:51:25 +0000 (17:51 +0300)]
doxygen comment for lib/gvpr/gvpr.h

2 years agodoxygen comment for cmd/gvpr
Costa Shulyupin [Mon, 2 May 2022 14:50:10 +0000 (17:50 +0300)]
doxygen comment for cmd/gvpr

2 years agoMerge branch 'smattr/C9DF4E16-8634-4D4E-AAE0-62E906147657' into 'main'
Matthew Fernandez [Wed, 25 May 2022 16:07:49 +0000 (16:07 +0000)]
Merge branch 'smattr/C9DF4E16-8634-4D4E-AAE0-62E906147657' into 'main'

dotgen: squash -Wsign-conversion warning in 'doDot'

See merge request graphviz/graphviz!2692

2 years agodotgen: squash -Wsign-conversion warning in 'doDot'
Matthew Fernandez [Sun, 8 May 2022 20:02:31 +0000 (13:02 -0700)]
dotgen: squash -Wsign-conversion warning in 'doDot'

The compiler says:

  dotinit.c: In function 'doDot':
  dotinit.c:454:24: warning: conversion to 'unsigned int' from 'int' may change
    the sign of the result [-Wsign-conversion]
  454 |         pinfo.margin = Pack;
      |                        ^~~~

But from the surrounding code and the implementation of `getPack`, we can
statically determine that `Pack` is non-negative at this point.

2 years agoMerge branch 'cleanup-arrow-length-use' into 'main'
Magnus Jacobsson [Wed, 25 May 2022 12:36:10 +0000 (12:36 +0000)]
Merge branch 'cleanup-arrow-length-use' into 'main'

remove unnecessary use of arrow_length function and make it static

See merge request graphviz/graphviz!2693

2 years agocommon: mark 'arrow_length' static
Magnus Jacobsson [Sun, 22 May 2022 15:33:22 +0000 (17:33 +0200)]
common: mark 'arrow_length' static

This function is no longer used outside of its containing file.

2 years agosameport: replace goto with return
Magnus Jacobsson [Sun, 22 May 2022 15:27:26 +0000 (17:27 +0200)]
sameport: replace goto with return

2 years agosameport: remove unused n_arr field from same_t struct
Magnus Jacobsson [Sun, 22 May 2022 15:25:13 +0000 (17:25 +0200)]
sameport: remove unused n_arr field from same_t struct

2 years agosameport: remove unused arr_len field from same_t struct
Magnus Jacobsson [Sun, 22 May 2022 15:20:19 +0000 (17:20 +0200)]
sameport: remove unused arr_len field from same_t struct

2 years agoMerge branch 'upgrade-centos7-docker-image' into 'main'
Magnus Jacobsson [Wed, 25 May 2022 08:39:23 +0000 (08:39 +0000)]
Merge branch 'upgrade-centos7-docker-image' into 'main'

Upgrade Centos7 Dockerfile

See merge request graphviz/graphviz!2695

2 years agoupgrade git to 2.36 in Centos7 Dockerfile
Magnus Jacobsson [Tue, 24 May 2022 09:39:29 +0000 (11:39 +0200)]
upgrade git to 2.36 in Centos7 Dockerfile

Version 2.24 is no longer available.

Fixes this error when building the Docker image:

Cannot open: https://repo.ius.io/7/x86_64/packages/g/git224-2.24.3-1.el7.ius.x86_64.rpm. Skipping.

2 years agoupgrade epel-release to latest-7 in Centos7 Dockerfile
Magnus Jacobsson [Tue, 24 May 2022 09:39:12 +0000 (11:39 +0200)]
upgrade epel-release to latest-7 in Centos7 Dockerfile

Version 7.12 is no longer available.

Fixes this error when building the Docker image:

Cannot open: https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-12.noarch.rpm. Skipping.

2 years agoMerge branch 'smattr/C351F03D-D182-43E4-92A6-4A4308AF78B9' into 'main'
Matthew Fernandez [Tue, 24 May 2022 05:29:07 +0000 (05:29 +0000)]
Merge branch 'smattr/C351F03D-D182-43E4-92A6-4A4308AF78B9' into 'main'

gvpr: squash -Wconversion warning from 'read' return

See merge request graphviz/graphviz!2675

2 years agogvpr: squash -Wconversion warning from 'read' return
Matthew Fernandez [Mon, 16 May 2022 04:31:25 +0000 (21:31 -0700)]
gvpr: squash -Wconversion warning from 'read' return

This call is asked to read an `int` length of bytes, so cannot return more than
`INT_MAX`.