1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
{
"name": "Aamath",
"description": "Renders mathematical expressions as ASCII art",
"url": "http://fuse.superglue.se/aamath/aamath-0.3.tar.gz",
"mirror": null,
"homepage": "http://fuse.superglue.se/aamath/",
"depends": [],
"resource": [],
"conflicts": [],
"patches": [
{
"url": null,
"data": [
"diff --git a/expr.cc b/expr.cc\n",
"index 7bc0ee3..8f4eaf7 100644\n",
"--- a/expr.cc\n",
"+++ b/expr.cc\n",
"@@ -1192,7 +1192,7 @@ IntegralOnInterval::render_head() const\n",
" \n",
" class SumSymbol : public OpSymbol {\n",
" public:\n",
"-\tvoid render(Canvas& c, int r, int c) const;\n",
"+\tvoid render(Canvas& canvas, int r, int c) const;\n",
" };\n",
" \n",
" void\n",
"@@ -1208,7 +1208,7 @@ SumSymbol::render(Canvas& canvas, int r, int c) const\n",
" \n",
" class ProductSymbol : public OpSymbol {\n",
" public:\n",
"-\tvoid render(Canvas& c, int r, int c) const;\n",
"+\tvoid render(Canvas& canvas, int r, int c) const;\n",
" };\n",
" \n",
" void\n",
"@@ -1612,7 +1612,7 @@ Matrix::render() const\n",
" \tint cols = num_cols();\n",
" \tint rows = num_rows();\n",
" \n",
"-\tCanvasPtr ec[cols * rows];\n",
"+\tCanvasPtr *ec = new CanvasPtr[cols * rows];\n",
" \tSize sz[cols * rows];\n",
" \n",
" \tint row_height[rows];\n",
"@@ -1692,6 +1692,8 @@ Matrix::render() const\n",
" \n",
" \tcanvas->center();\n",
" \n",
"+ delete[] ec;\n",
"+\n",
" \treturn canvas;\n",
" }\n",
" \n",
"diff --git a/expr.h b/expr.h\n",
"index 000ebd4..d233da9 100644\n",
"--- a/expr.h\n",
"+++ b/expr.h\n",
"@@ -451,7 +451,7 @@ class Integral : public OpOnFunction {\n",
" \n",
" \tvirtual CanvasPtr render_head() const;\n",
" \n",
"-\tvoid render_symbol(Canvas& c, int r, int c, int h) const;\n",
"+\tvoid render_symbol(Canvas& canvas, int r, int c, int h) const;\n",
" \n",
" \tvirtual CanvasPtr render() const;\n",
" };\n",
"@@ -467,7 +467,7 @@ class IntegralOnInterval : public Integral, public OpOverInterval {\n",
" \n",
" class OpSymbol {\n",
" public:\n",
"-\tvirtual void render(Canvas& c, int r, int c) const = 0;\n",
"+\tvirtual void render(Canvas& canvas, int r, int c) const = 0;\n",
" };\n",
" \n",
" class SumOrProduct : public OpOnFunction {\n"
]
}
],
"install": [
"ENV.deparallelize",
"system \"make\"",
"bin.install \"aamath\"",
"man1.install \"aamath.1\"",
"prefix.install \"testcases\""
],
"version": "0.3",
"file": "aamath.rb"
}
|