Last change
on this file since 6009a5a was
5e4a830,
checked in by Peter A. Buhr <pabuhr@…>, 20 months ago
|
add #pragma once to .h and .hfa files
|
-
Property mode set to
100644
|
File size:
685 bytes
|
Rev | Line | |
---|
[8157bde] | 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 |
---|
[5e4a830] | 11 | // Last Modified By : Peter A. Buhr |
---|
| 12 | // Last Modified On : Mon Mar 13 23:10:35 2023 |
---|
| 13 | // Update Count : 1 |
---|
[8157bde] | 14 | // |
---|
| 15 | |
---|
[5e4a830] | 16 | #pragma once |
---|
| 17 | |
---|
[8157bde] | 18 | generator RangeIter { |
---|
| 19 | const char * text; |
---|
| 20 | int com; |
---|
[58b2638] | 21 | int _start; |
---|
| 22 | int _stop; |
---|
[8157bde] | 23 | }; |
---|
| 24 | |
---|
[33608cb] | 25 | static inline void ?{}(RangeIter & this, const char * text) { |
---|
[8157bde] | 26 | this.text = text; |
---|
| 27 | } |
---|
| 28 | |
---|
[5e4a830] | 29 | static inline bool moveNext(RangeIter & this) { resume(this); return this.com >= 0; } |
---|
Note: See
TracBrowser
for help on using the repository browser.