Mercurial > projects > ddmd
comparison dmd/Util.d @ 136:9d194c848e3a
fixed a few null reference bugs, thx sagitario
author | Trass3r |
---|---|
date | Mon, 13 Sep 2010 23:27:38 +0200 |
parents | 60bb0fe4563e |
children | 09c858522d55 |
comparison
equal
deleted
inserted
replaced
132:c494af1dba80 | 136:9d194c848e3a |
---|---|
384 // remove spaces bracketing = | 384 // remove spaces bracketing = |
385 auto p2 = pn; | 385 auto p2 = pn; |
386 for ( ; *p2; p2++) | 386 for ( ; *p2; p2++) |
387 { if (islower(*p2)) | 387 { if (islower(*p2)) |
388 *p2 &= ~0x20; | 388 *p2 &= ~0x20; |
389 else if (isspace(*p)) | 389 else if (isspace(*p2)) |
390 memmove(p2, p2 + 1, strlen(p2)); | 390 memmove(p2, p2 + 1, strlen(p2)); |
391 else if (*p2 == '=') | 391 else if (*p2 == '=') |
392 { | 392 { |
393 p2++; | 393 p2++; |
394 while (isspace(*p2)) | 394 while (isspace(*p2)) |