ADTast-experimental
Last change
on this file since 7a2057a was
33608cb,
checked in by Thierry Delisle <tdelisle@…>, 3 years ago
|
Changed defice/cpu to hopefully work with sparse cpus.
UNTESTED
|
-
Property mode set to
100644
|
File size:
629 bytes
|
Line | |
---|
1 | // |
---|
2 | // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo |
---|
3 | // |
---|
4 | // The contents of this file are covered under the licence agreement in the |
---|
5 | // file "LICENCE" distributed with Cforall. |
---|
6 | // |
---|
7 | // range_iterator.hfa -- |
---|
8 | // |
---|
9 | // Author : Thierry Delisle |
---|
10 | // Created On : Tue Nov 30 13:06:22 2021 |
---|
11 | // Last Modified By : |
---|
12 | // Last Modified On : |
---|
13 | // Update Count : |
---|
14 | // |
---|
15 | |
---|
16 | generator RangeIter { |
---|
17 | const char * text; |
---|
18 | int com; |
---|
19 | int _start; |
---|
20 | int _stop; |
---|
21 | }; |
---|
22 | |
---|
23 | static inline void ?{}(RangeIter & this, const char * text) { |
---|
24 | this.text = text; |
---|
25 | } |
---|
26 | |
---|
27 | static inline bool moveNext(RangeIter & this) { resume(this); return this.com >= 0; } |
---|
Note: See
TracBrowser
for help on using the repository browser.