Last change
on this file since fa5e1aa5 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
|
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 : Peter A. Buhr |
---|
12 | // Last Modified On : Mon Mar 13 23:10:35 2023 |
---|
13 | // Update Count : 1 |
---|
14 | // |
---|
15 | |
---|
16 | #pragma once |
---|
17 | |
---|
18 | generator RangeIter { |
---|
19 | const char * text; |
---|
20 | int com; |
---|
21 | int _start; |
---|
22 | int _stop; |
---|
23 | }; |
---|
24 | |
---|
25 | static inline void ?{}(RangeIter & this, const char * text) { |
---|
26 | this.text = text; |
---|
27 | } |
---|
28 | |
---|
29 | static inline bool moveNext(RangeIter & this) { resume(this); return this.com >= 0; } |
---|
Note: See
TracBrowser
for help on using the repository browser.