Created
April 28, 2018 23:53
-
-
Save Varriount/3fd164ffa45e3b75616c59aa3bc5c482 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| proc readElementInto( | |
| dest: var DescribeAvailabilityZonesResult, | |
| parser: var XmlParser, | |
| elementName: string): int = | |
| result = 0 | |
| if parser.elementName != elementName: | |
| return 0 | |
| var readCount = 0 | |
| while readCount < 1: | |
| let increment = ( | |
| readElementInto(dest.availabilityZones, parser) | |
| ) | |
| inc(readCount, increment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment