|
|
|
|
|
by kazinator
3527 days ago
|
|
On that topic, I did a somewhat weird thing in C yesterday. I took code like this: for (;;) {
/* original big loop */
}
and turned it into this: if (compatibility_with_old_version) for(;;) {
/* original big loop: same indentation level! */
} else for (;;) {
/* rewritten new loop */
}
I.e. if (...) for (...) {
} else for (...) {
}
Works for me. |
|