From 0f2781f8a28881084295663c3e608e5f6f159047 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 17 Sep 2016 14:43:13 -0700 Subject: 3393 --- 046global.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '046global.cc') diff --git a/046global.cc b/046global.cc index 652d025f..39cc3a6b 100644 --- a/046global.cc +++ b/046global.cc @@ -11,10 +11,10 @@ :(scenario global_space) def main [ - # pretend address:@:location; in practice we'll use new + # pretend address:array:location; in practice we'll use new 10:num <- copy 0 # refcount 11:num <- copy 5 # length - # pretend address:@:location; in practice we'll use new + # pretend address:array:location; in practice we'll use new 20:num <- copy 0 # refcount 21:num <- copy 5 # length # actual start of this recipe @@ -43,7 +43,7 @@ global_space = 0; :(after "Begin Preprocess write_memory(x, data)") if (x.name == "global-space") { if (!scalar(data) || !is_space(x)) - raise << maybe(current_recipe_name()) << "'global-space' should be of type address:@:location, but tried to write '" << to_string(x.type) << "'\n" << end(); + raise << maybe(current_recipe_name()) << "'global-space' should be of type address:array:location, but tried to write '" << to_string(x.type) << "'\n" << end(); if (Current_routine->global_space) raise << "routine already has a global-space; you can't over-write your globals" << end(); Current_routine->global_space = data.at(0); -- cgit 1.4.1-2-gfad0 /a> commit diff stats
path: root/themes/whiteness
blob: bea6722e2c54ecf9d6add9550462340468e7f683 (plain) (blame)
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