summary refs log tree commit diff stats
path: root/lib/parseopt.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2009-04-22 15:55:27 +0200
committerAndreas Rumpf <rumpf_a@web.de>2009-04-22 15:55:27 +0200
commite792940f5273bf8f8761c4cb29b241445e8b1d0b (patch)
tree8a6b224b8c0b3db14dbc20d89b7ca9ccb19b1f56 /lib/parseopt.nim
parent439aa2d04d5528b5aed288f70895515d1da2dc3d (diff)
downloadNim-e792940f5273bf8f8761c4cb29b241445e8b1d0b.tar.gz
version 0.7.6
Diffstat (limited to 'lib/parseopt.nim')
-rw-r--r--lib/parseopt.nim8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/parseopt.nim b/lib/parseopt.nim
index 1cce0a11e..12060ba70 100644
--- a/lib/parseopt.nim
+++ b/lib/parseopt.nim
@@ -1,7 +1,7 @@
 #
 #
 #            Nimrod's Runtime Library
-#        (c) Copyright 2008 Andreas Rumpf
+#        (c) Copyright 2009 Andreas Rumpf
 #
 #    See the file "copying.txt", included in this
 #    distribution, for details about the copyright.
@@ -73,8 +73,7 @@ proc parseWord(s: string, i: int, w: var string,
       inc(result)
 
 proc handleShortOption(p: var TOptParser) = 
-  var i: int
-  i = p.pos
+  var i = p.pos
   p.kind = cmdShortOption
   add(p.key, p.cmd[i])
   inc(i)
@@ -91,8 +90,7 @@ proc handleShortOption(p: var TOptParser) =
   p.pos = i
 
 proc next(p: var TOptParser) = 
-  var i: int
-  i = p.pos
+  var i = p.pos
   while p.cmd[i] in {'\x09', ' '}: inc(i)
   p.pos = i
   setlen(p.key, 0)
'n169' href='#n169'>169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296