Embryo:
[framework/uifw/embryo.git] / src / bin / embryo_cc_sc5.c
index c7c22d4..a8af498 100644 (file)
@@ -1,4 +1,4 @@
- *  Small compiler - Error message system
+/*  Small compiler - Error message system
  *  In fact a very simple system, using only 'panic mode'.
  *
  *  Copyright (c) ITB CompuPhase, 1997-2003
@@ -32,7 +32,7 @@
 #include <stdarg.h>
 #include <string.h>
 
-#ifndef _MSC_VER
+#ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif
 
@@ -49,9 +49,9 @@ static int errstart;  /* line number at which the instruction started */
  *  errors are ignored until lex() finds a semicolumn or a keyword
  *  (lex() resets "errflag" in that case).
  *
- *  Global references: inpfname   (reffered to only)
- *                     fline      (reffered to only)
- *                     fcurrent   (reffered to only)
+ *  Global references: inpfname   (referred to only)
+ *                     fline      (referred to only)
+ *                     fcurrent   (referred to only)
  *                     errflag    (altered)
  */
 int
@@ -110,7 +110,7 @@ error(int number, ...)
        sc_error(0, "\nCompilation aborted.", NULL, 0, 0, argptr);
        va_end(argptr);
 
-       if (outf != NULL)
+       if (outf)
          {
             sc_closeasm(outf);
             outf = NULL;