Imported Upstream version 0.2.0+beta
[debian/yforth] / coree.c
diff --git a/coree.c b/coree.c
index 8acd70811d667963a5f1b50b44bb2bdc30800e06..cf7eef643f3f3cf1240169056cbe6611955ae769 100644 (file)
--- a/coree.c
+++ b/coree.c
@@ -1,8 +1,18 @@
-/* yForth? - Written by Luca Padovani (C) 1996/97
- * ------------------------------------------------------------------------
- * This software is FreeWare as long as it comes with this header in each
- * source file, anyway you can use it or any part of it whatever
- * you want. It comes without any warranty, so use it at your own risk.
+/* yForth? - A Forth interpreter written in ANSI C
+ * Copyright (C) 2012 Luca Padovani
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  * ------------------------------------------------------------------------
  * Module name:     coree.c
  * Abstract:        Core extension word set
@@ -159,15 +169,16 @@ void _nip() {
 }
 
 void _parse() {
-       register Char delim = (Char) *sp;
+    register Char delim = (Char) *sp;
     register Char *orig = &_input_buffer[_to_in];
     register int i = 0;
     while (_to_in < _in_input_buffer && _input_buffer[_to_in] != delim) {
         _to_in++;
         i++;
     }
-       *sp = (Cell) orig;
+    *sp = (Cell)orig;
     *--sp = i;
+
     if (_to_in < _in_input_buffer) _to_in++;
 }