annotate nocompile/c/continue_03_A.d @ 1535:20d8ee6523e1

updated to DMD-1.013
author thomask
date Mon, 07 May 2007 05:19:57 +0000
parents b6f10a770c3b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
642
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
1 // $HeadURL$
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
2 // $Date$
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
3 // $Author$
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
4
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
5 // @author@ Hiroshi Sakurai <Hiroshi_member@pathlink.com>
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
6 // @date@ 2005-08-27
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
7 // @uri@ news:dep4oc$8sq$1@digitaldaemon.com
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
8 // @uri@ http://f17.aaa.livedoor.jp/~labamba/?BugTrack%2F20
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
9 // @desc@ Internal error: s2ir.c 481
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
10
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
11 // __DSTRESS_ELINE__ 24
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
12
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
13 module dstress.nocompile.c.continue_03_A;
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
14
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
15 class Stream{
1535
20d8ee6523e1 updated to DMD-1.013
thomask
parents: 642
diff changeset
16 int opApply(int delegate(ref char[] line) dg){
642
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
17 }
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
18 }
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
19
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
20 void parse(Stream stream){
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
21 READ_LINE:
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
22 foreach (char [] line; stream) {
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
23 if (line.length == 0) {
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
24 continue READ_LINE;
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
25 }
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
26 }
b6f10a770c3b Hiroshi Sakurai <Hiroshi_member@pathlink.com>
thomask
parents:
diff changeset
27 }