Mercurial > projects > ldc
comparison gen/asmstmt.cpp @ 303:4aa2b6753059 trunk
[svn r324] Small indentation fixes.
Added end of line to complex.cpp.
author | ChristianK |
---|---|
date | Wed, 25 Jun 2008 20:42:30 +0200 |
parents | bef811104734 |
children | 3ebc136702dd |
comparison
equal
deleted
inserted
replaced
302:bef811104734 | 303:4aa2b6753059 |
---|---|
464 std::string needle; | 464 std::string needle; |
465 char buf[10]; | 465 char buf[10]; |
466 for (unsigned i = 0; i < nargs; i++) { | 466 for (unsigned i = 0; i < nargs; i++) { |
467 needle = prefix + digits[i] + suffix; | 467 needle = prefix + digits[i] + suffix; |
468 size_t pos = insnt.find(needle); | 468 size_t pos = insnt.find(needle); |
469 if(std::string::npos != pos) | 469 if(std::string::npos != pos) |
470 sprintf(buf, "%u", idx++); | 470 sprintf(buf, "%u", idx++); |
471 while(std::string::npos != (pos = insnt.find(needle))) | 471 while(std::string::npos != (pos = insnt.find(needle))) |
472 insnt.replace(pos, needle.size(), buf); | 472 insnt.replace(pos, needle.size(), buf); |
473 } | 473 } |
474 } | 474 } |
489 std::string needle; | 489 std::string needle; |
490 char buf[10]; | 490 char buf[10]; |
491 for (unsigned i = 0; i < nargs; i++) { | 491 for (unsigned i = 0; i < nargs; i++) { |
492 needle = prefix + digits[i] + suffix; | 492 needle = prefix + digits[i] + suffix; |
493 size_t pos = insnt.find(needle); | 493 size_t pos = insnt.find(needle); |
494 if(std::string::npos != pos) | 494 if(std::string::npos != pos) |
495 sprintf(buf, "%u", idx++); | 495 sprintf(buf, "%u", idx++); |
496 while(std::string::npos != (pos = insnt.find(needle))) | 496 while(std::string::npos != (pos = insnt.find(needle))) |
497 insnt.replace(pos, needle.size(), buf); | 497 insnt.replace(pos, needle.size(), buf); |
498 } | 498 } |
499 } | 499 } |