Commit 26cb9b2d authored by Kohei Yoshida's avatar Kohei Yoshida

Require an explicit 'exit' command.

parent da294fc2
Pipeline #5858014 passed with stage
in 4 minutes and 23 seconds
......@@ -122,9 +122,10 @@ void model_parser::parse()
global::load_file_content(m_filepath, strm);
parse_mode_t parse_mode = parse_mode_unknown;
const char *p = &strm[0], *p_last = &strm[strm.size()-1];
const char* p = strm.data();
const char* p_end = p + strm.size();
for (; p != p_last; ++p)
for (; p != p_end; ++p)
{
// In each iteration, the p always points to the 1st character of a
// line.
......
......@@ -49,3 +49,5 @@ A7=#REF!
A8=#DIV/0!
A9=#DIV/0!
%check
%exit
......@@ -23,3 +23,5 @@ A8=#REF!
A9=#REF!
A10=#REF!
%check
%exit
......@@ -12,4 +12,4 @@ B1=A1
A1=#REF!
B1=#REF!
%check
%exit
......@@ -13,3 +13,5 @@ A3=3
A4=140
A5=64
%check
%exit
......@@ -10,4 +10,4 @@ A5=AVERAGE(A1,A2,A3)
A4=5
A5=5
%check
%exit
......@@ -40,4 +40,4 @@ C2=COUNTA(A3:B3)
C1=9
C2=2
%check
%exit
......@@ -9,6 +9,4 @@ A4=if(A1<>A2,"not equal","equal")
A3="not equal"
A4="not equal"
%check
%exit
......@@ -11,4 +11,4 @@ A2=5
A3=25
A4=18
%check
%exit
......@@ -22,4 +22,4 @@ C4=1000
%mode result
A2=1010
%check
%exit
......@@ -25,7 +25,4 @@ B4=1
%mode result
D1=20
%check
%exit
......@@ -30,3 +30,5 @@ A2=20
A1=31
A3=11
%check
%exit
......@@ -8,4 +8,4 @@ A1=0
%mode edit
B1=SUM(A1:A2)
%recalc
%exit
......@@ -9,4 +9,4 @@ A1=35.173
A2=5.7
A3=34.5345
%check
%exit
......@@ -14,3 +14,4 @@ A3=12.5
A4=-1.2
A5=12.3
%check
%exit
......@@ -13,3 +13,5 @@ C1="Charles"
D1="David"
A2="Andy"
%check
%exit
......@@ -6,4 +6,4 @@ A3=A2+1
A4=A3+1
A5=A4+1
%calc
%exit
......@@ -19,5 +19,5 @@ A2=4
A3=6
B1=16
%check
%exit
......@@ -29,3 +29,5 @@ A11=4
A12="Andy"
A13="Andy is smart"
%check
%exit
......@@ -27,3 +27,4 @@ A10=1
A11=1
A12=0
%check
%exit
......@@ -20,3 +20,4 @@ A8=1
A9=1
A10=0
%check
%exit
......@@ -16,3 +16,4 @@ B3=1
B4=0
B5=1
%check
%exit
......@@ -33,4 +33,5 @@ E2=2
E3=1
E4=6
%check
%exit
......@@ -7,4 +7,5 @@ A5=A1+A2+A3+A4+WAIT()
A6=(A2+A3)*2+WAIT()
A7=A5+A6+WAIT()
%calc
%exit
......@@ -4,3 +4,5 @@ A2=WAIT()+20
A3=WAIT()+15
A4=(A2+A3)*2+WAIT()
%calc
%exit
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment