r5241 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r5240‎ | r5241 | r5242 >
Date:22:35, 15 September 2004
Author:timwi
Status:old
Tags:
Comment:
fix indentation
Modified paths:
  • /trunk/flexbisonparse/wikiparse.y (modified) (history)

Diff [purge]

Index: trunk/flexbisonparse/wikiparse.y
@@ -803,20 +803,20 @@
804804 {
805805 int result, i;
806806
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);
813813
814 - result = yyparse();
 814+ result = yyparse();
815815 if (!result)
816816 {
817817 /* Start with an output buffer twice the size of the input, but at least 1 KB. This should
818818 * normally be plenty. If it isn't, it will grow automatically. */
819819 i = 2*strlen (input);
820820 return outputXML (articlenode, i < 1024 ? 1024 : i);
821 - }
822 - return "<error />";
 821+ }
 822+ return "<error />";
823823 }

Status & tagging log