Commit Graph

39 Commits

Author SHA1 Message Date
Lazula
ad749a0b1a Fix static/R_API function definition formatting
* Remove spaces before parens
* Remove spaces after asterisks
2021-12-21 20:58:12 +01:00
Lazula
2255bf8b5d Many indentation style fixes
* Change several 8-space indents to tabs
* Apply tab indent style when breaking long lines
* Move operators from EOL to start of next line
* Fix ternary formatting
2021-11-18 10:43:52 +01:00
pancake
530c737d5d
Fix incorrect use of non-const strings and fiz zousans of warnings (#18544)
Co-authored-by: pancake <pancake@nopcode.org>
2021-04-06 12:45:19 +02:00
pancake
4dee81b7a9 Initial implementation of graph edge highlighting ##visual 2021-02-28 16:17:07 +01:00
pancake
143a6a7c5a Honor utf8 in diagonal graph lines ##graph 2019-07-18 03:54:15 +02:00
radare
b435d19515
Code cleanup in RCons 2019-06-09 18:50:36 +02:00
Florian Märkl
f80a47ab60 Move Palette to RConsContext to make RCoreTask less racy ##cons 2019-01-18 11:58:49 +01:00
David CARLIER
260a9e64cc Couple of leak fixes, div by zero avoidance. (#12338) 2018-11-27 15:46:56 +01:00
cyanpencil
3fda01343d Fix: coverities 1394583 1394582 1394447 2018-08-01 17:52:06 +02:00
cyanpencil
f3b33640d1 Adjust edge positioning if there is a graph title
Fix whitespace
2018-07-29 12:48:15 +08:00
cyanpencil
29955c4c0d Add '#' key to toggle graph hints
Refactoring

Small fix

Fix for windows in graph.c
2018-07-29 12:48:15 +08:00
cyanpencil
169d69efd7 Different dot style for backedges 2018-07-29 12:48:15 +08:00
cyanpencil
4ac4873100 Dotted lines only for conditional jumps
Set graph.dotted default true + refactor in canvas_line.c
2018-07-27 02:12:50 +08:00
cyanpencil
104a52b55f Fix some utf8 bugs in canvas.c 2018-07-27 02:12:50 +08:00
cyanpencil
fc26f2a04e Use dotted lines in graph 2018-07-27 02:12:50 +08:00
Khairul Kasmiran
2faadf6d86 r_cons_singleton() 🠊 r_cons_singleton () 2018-05-02 21:36:08 +08:00
Riccardo Schirone
c939bbc058 cons/canvas_line: fix back and straight edges (#9630)
Without this patch, the last piece of those lines was missing.
2018-03-08 10:50:36 +01:00
pancake
34ffd014f4 Better graphs, bringback t/f, add ^to seek to the begining and updated help 2017-12-30 00:50:25 +01:00
pancake
b49314a94b Add graph.edges, bringback the linemode=0 and add the graph+dis mode 2017-12-29 11:22:22 +01:00
Srimanta Barua
41ce16b314 added curved corners (#8660) 2017-10-08 13:09:27 +02:00
pancake
829009a339 Revert "fix leak in cons/canvas:set_attr by strdupping everything"
This reverts commit 00074b3a44.
2017-09-17 01:41:08 +02:00
Rakholiya Jenish
00074b3a44 fix leak in cons/canvas:set_attr by strdupping everything
fix formatting
2017-09-15 14:32:07 +08:00
Rakholiya Jenish
11e13f1c95 Fix node and edge overlapping issue in graph mode (#7948)
* initial work on fixing overlapping issues in graph mode

* better vertical gap calculation and minor fixes
* fix backedges overlapping issue
* fix backedge height and remove unnecessary functions
* horizontal graph
* add edge info for update graph size
graph size for horizontal layout
* fix leaks in agraph_print_edges
2017-09-12 15:41:30 +02:00
pancake
4bf5c94bf6 More optimizations for RConsCanvas 2017-02-13 01:31:43 +01:00
Álvaro Felipe Melchor
f8a5f88440 Fix #6564 - agf can be stopped 2017-01-28 13:33:01 +01:00
pancake
02950398a9 Add utf8 rune support for RCons.canvas 2016-10-21 01:24:40 +02:00
Riccardo Schirone
6df5031bf7 core/graph: quick fix for 1-level back-edges and self-referenced blocks 2015-10-18 15:52:34 +02:00
Riccardo Schirone
e54462343d core/graph: honor scr.color also for edges and current box 2015-10-14 00:10:17 +02:00
Riccardo Schirone
94f303ca36 core/graph: clean code + fixes
cons/canvas_line: split style in color and symbol

In this way you can choose to apply a color and/or a symbol (t/f/v) to a
line. This patch also changes core/graph to avoid t/f symbols in the
middle of long edges.

cons/canvas_line: fix "reversed" edge

core/graph: center current node when changing function
2015-07-27 12:29:18 +02:00
Riccardo Schirone
31dfeda157 core/graph: improve edges layout 2015-07-25 13:55:31 +02:00
pancake
df25085ffe Add custom color support for graphs and handle VVR and VVVq 2015-07-15 15:54:20 +02:00
Riccardo Schirone
757c2da65f cons/canvas_line: refactoring calls to draw_horizontal_line 2015-06-02 10:17:17 +02:00
Riccardo Schirone
2d74815b27 cons/canvas_line: remove special case x == x2 in canvas_line_square 2015-06-02 10:17:17 +02:00
Riccardo Schirone
5a8afbfd50 cons/canvas_line: extract draw_horizontal_line helper function
cons/canvas_line: extract draw_vertical_line helper function
2015-06-02 10:17:17 +02:00
Riccardo Schirone
e48a7b8dcd cons/canvas_line: use some spaces between operators 2015-06-02 10:17:17 +02:00
pancake
bb151c1607 Fix two out-of-canvas node location and missing box lines issues 2015-05-31 22:27:47 +02:00
jvoisin
7a1975bd06 Add some comments for graphs + coverifix 2015-02-17 17:03:16 +01:00
r0nk
87ae355a3a removed repetitive code. 2015-02-16 03:23:02 +01:00
pancake
40edd608d1 Bring back the old edge style in the aa graph. Fix self loops 2015-02-15 21:34:12 +01:00