Index: trunk/flexbisonparse/wikiparse.y |
— | — | @@ -803,20 +803,20 @@ |
804 | 804 | { |
805 | 805 | int result, i; |
806 | 806 | |
807 | | - /* yy_scan_string copies the string into an internal buffer. During lexing, this internal |
808 | | - * buffer may be modified. We don't really need the string anymore, so we probably don't mind |
809 | | - * if it's modified, so we might not need for it to be copied. There is yy_scan_buffer which |
810 | | - * uses the string directly as a buffer, but for some bizarre reason it expects the buffer to |
811 | | - * end with *two* NULs instead of just one. Thus yy_scan_string is the easiest way for now. */ |
812 | | - yy_scan_string (input); |
| 807 | + /* yy_scan_string copies the string into an internal buffer. During lexing, this internal |
| 808 | + * buffer may be modified. We don't really need the string anymore, so we probably don't mind |
| 809 | + * if it's modified, so we might not need for it to be copied. There is yy_scan_buffer which |
| 810 | + * uses the string directly as a buffer, but for some bizarre reason it expects the buffer to |
| 811 | + * end with *two* NULs instead of just one. Thus yy_scan_string is the easiest way for now. */ |
| 812 | + yy_scan_string (input); |
813 | 813 | |
814 | | - result = yyparse(); |
| 814 | + result = yyparse(); |
815 | 815 | if (!result) |
816 | 816 | { |
817 | 817 | /* Start with an output buffer twice the size of the input, but at least 1 KB. This should |
818 | 818 | * normally be plenty. If it isn't, it will grow automatically. */ |
819 | 819 | i = 2*strlen (input); |
820 | 820 | return outputXML (articlenode, i < 1024 ? 1024 : i); |
821 | | - } |
822 | | - return "<error />"; |
| 821 | + } |
| 822 | + return "<error />"; |
823 | 823 | } |