changeset 1351:8256c4c57419

[project @ 1995-09-05 08:02:08 by jwe]
author jwe
date Tue, 05 Sep 1995 08:08:13 +0000
parents 5f63d83dd694
children 19c10b8657d5
files liboctave/tempnam.c src/lex.l src/parse.y src/pt-exp-base.h src/pt-misc.h src/strcasecmp.c src/strncase.c
diffstat 7 files changed, 26 insertions(+), 27 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/tempnam.c	Tue Sep 05 07:47:12 1995 +0000
+++ b/liboctave/tempnam.c	Tue Sep 05 08:08:13 1995 +0000
@@ -23,8 +23,8 @@
 #ifndef HAVE_TEMPNAM
 
 #include <stddef.h>
+#include <stdio.h>
 #include <stdlib.h>
-#include <stdio.h>
 #include <string.h>
 
 extern char *__stdio_gen_tempname (const char *dir, const char *pfx,
--- a/src/lex.l	Tue Sep 05 07:47:12 1995 +0000
+++ b/src/lex.l	Tue Sep 05 08:08:13 1995 +0000
@@ -36,17 +36,10 @@
 
 #include <strstream.h>
 
-#include "input.h"
-#include "token.h"
-
 #include "SLStack.h"
 
-// Stack to hold tokens so that we can delete them when the parser is
-// reset and avoid growing forever just because we are stashing some
-// information.  This has to appear before lex.h is included, because
-// one of the macros defined there uses token_stack.
-static SLStack <token*> token_stack;
-
+#include "input.h"
+#include "token.h"
 #include "user-prefs.h"
 #include "variables.h"
 #include "octave.h"
@@ -63,6 +56,12 @@
 #include "parse.h"
 #include "lex.h"
 
+// Stack to hold tokens so that we can delete them when the parser is
+// reset and avoid growing forever just because we are stashing some
+// information.  This has to appear before lex.h is included, because
+// one of the macros defined there uses token_stack.
+static SLStack <token*> token_stack;
+
 // Nonzero means we think we are looking at a set command.
 static int doing_set = 0;
 
--- a/src/parse.y	Tue Sep 05 07:47:12 1995 +0000
+++ b/src/parse.y	Tue Sep 05 08:08:13 1995 +0000
@@ -37,24 +37,24 @@
 
 #include "Matrix.h"
 
+#include "error.h"
+#include "input.h"
+#include "lex.h"
 #include "octave-hist.h"
-#include "user-prefs.h"
+#include "octave.h"
+#include "pager.h"
+#include "parse.h"
+#include "symtab.h"
+#include "token.h"
 #include "tree-base.h"
-#include "tree-expr.h"
 #include "tree-cmd.h"
 #include "tree-const.h"
+#include "tree-expr.h"
 #include "tree-misc.h"
-#include "variables.h"
 #include "tree-plot.h"
-#include "octave.h"
-#include "symtab.h"
-#include "parse.h"
-#include "token.h"
-#include "error.h"
-#include "pager.h"
-#include "input.h"
+#include "user-prefs.h"
 #include "utils.h"
-#include "lex.h"
+#include "variables.h"
 
 // Nonzero means we're in the middle of defining a function.
 int defining_func = 0;
--- a/src/pt-exp-base.h	Tue Sep 05 07:47:12 1995 +0000
+++ b/src/pt-exp-base.h	Tue Sep 05 08:08:13 1995 +0000
@@ -35,10 +35,10 @@
 
 #include "SLList.h"
 
-#include "variables.h"
+#include "error.h"
 #include "mappers.h"
-#include "error.h"
 #include "oct-obj.h"
+#include "variables.h"
 
 class tree_constant;
 class tree_statement_list;
--- a/src/pt-misc.h	Tue Sep 05 07:47:12 1995 +0000
+++ b/src/pt-misc.h	Tue Sep 05 08:08:13 1995 +0000
@@ -50,9 +50,9 @@
 #include <SLList.h>
 
 #include "tree-base.h"
-#include "tree-expr.h"
+#include "tree-cmd.h"
 #include "tree-const.h"
-#include "tree-cmd.h"
+#include "tree-expr.h"
 
 // A list of expressions and commands to be executed.
 
--- a/src/strcasecmp.c	Tue Sep 05 07:47:12 1995 +0000
+++ b/src/strcasecmp.c	Tue Sep 05 08:08:13 1995 +0000
@@ -22,8 +22,8 @@
 
 #ifndef HAVE_STRCASECMP
 
+#include <ctype.h>
 #include <string.h>
-#include <ctype.h>
 
 /* Compare S1 and S2, ignoring case, returning less than, equal to or
    greater than zero if S1 is lexiographically less than,
--- a/src/strncase.c	Tue Sep 05 07:47:12 1995 +0000
+++ b/src/strncase.c	Tue Sep 05 08:08:13 1995 +0000
@@ -22,8 +22,8 @@
 
 #ifndef HAVE_STRNCASECMP
 
+#include <ctype.h>
 #include <string.h>
-#include <ctype.h>
 
 /* Compare no more than N characters of S1 and S2,
    ignoring case, returning less than, equal to or