Previous 199869 Revisions Next

r31394 Wednesday 23rd July, 2014 at 04:45:46 UTC by smf
Don't convert spaces to tabs if they are in a string literal that is split over multiple lines using line continuation (nw)
[src/tools]srcclean.c

trunk/src/tools/srcclean.c
r31393r31394
311311         }
312312
313313         /* convert spaces to tabs, if used for indenting */
314         while (spaces > 0 && (!in_multiline_comment || col < indent_multiline_comment) && (col == 0 || modified[dst-1] == 0x09))
314         while (spaces > 0 && (!in_multiline_comment || col < indent_multiline_comment) && (col == 0 || modified[dst-1] == 0x09) && !in_c_string)
315315         {
316316            modified[dst++] = 0x09;
317317            spaces -= tab_size;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team