Skip to content

Commit 71544f0

Browse files
committed
COMMON: cleanup comp_pass1(), fix INCLUDE statement
1 parent 48ea095 commit 71544f0

File tree

18 files changed

+329
-347
lines changed

18 files changed

+329
-347
lines changed

ide/android/project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# project structure.
99
#
1010
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11-
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
11+
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
1212

1313
# Project target.
1414
target=android-15
File renamed without changes.
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/sbasic
2-
#inc:"metac.bas"
3-
1+
INCLUDE "metac.bas"
42
? "Module: Meta-A"
53

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
? "Module: Meta-B"
32

43

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
TauChild::initialized
2+
3+
Tau::initilized
4+
5+
Tau's exported variable: Tau's exported variable
6+
Function fooF : Tau's fooF(Hi) is here
7+
Procedure fooP :
8+
Tau's fooP(Hi) is here
9+
message from main
10+
message from tau
11+
[1,2,3,4]
12+
Predefined Variables
13+
OS VER =0x0
14+
OS NAME=Unix/Linux version 3.13.0-32-generic (buildd@kissel) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014
15+
SB VER =0x0
16+
PI =3.14159265358979
17+
XMAX =161
18+
YMAX =42
19+
CWD =/home/chrisws/src/SmallBASIC/src/platform/unix/
20+
HOME =/home/chrisws/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
Module: Meta-B
12
Module: Meta-A
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
OK
2+
OK
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
OPTION PREDEF QUIET
2+
OPTION PREDEF TEXTMODE
3+
OPTION PREDEF COMMAND FOO
4+
5+
if (command <> "FOO") then
6+
print "ERROR"
7+
else
8+
print "OK"
9+
end if
10+
11+
UNITPATH = "/foo"
12+
if ENV("UNITPATH") != "/foo" then
13+
print "ERROR" + " WAS:" + ENV("UNITPATH")
14+
else
15+
print "OK"
16+
end if
17+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1+
unit predef
2+
3+
export prsys
4+
5+
sub prsys
16
? cat(1);"Predefined Variables";cat(0)
27
? "OS VER =0x"; HEX$(osver)
38
? "OS NAME="; osname
49
? "SB VER =0x"; HEX$(sbver)
510
? "PI ="; pi
611
? "XMAX ="; xmax
712
? "YMAX ="; ymax
13+
? "CWD ="; CWD
14+
? "HOME ="; HOME
15+
end
816

917

1018

File renamed without changes.

0 commit comments

Comments
 (0)