From 925f71a2ef30d3f4ee273be9c75ca7bb5958c630 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 15 Sep 2015 17:29:38 +0800 Subject: [PATCH] JSDOC/TextStream.vala --- JSDOC/TextStream.vala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/JSDOC/TextStream.vala b/JSDOC/TextStream.vala index 9182c28..7ebda98 100644 --- a/JSDOC/TextStream.vala +++ b/JSDOC/TextStream.vala @@ -49,9 +49,9 @@ namespace JSDOC { }, - public char next(int n = 1, out bool eof) + public char next(int n = 1) { - eof = false; + if (n < 1) { //?? eof??? return '\0'; } @@ -61,9 +61,9 @@ namespace JSDOC { while (i < n) { if (this.cursor+i < this.length) { pulled += this.text.get_char(this.cursor+i); - i+=pulled.to_string.length(); + i += pulled.to_string.length(); } else { - eof =true; + return '\0'; -- 2.39.2