]> Shamusworld >> Repos - rmac/commitdiff
Version bump for last commit. v2.1.8
authorShamus Hammons <jlhamm@acm.org>
Wed, 9 Jun 2021 01:45:29 +0000 (20:45 -0500)
committerShamus Hammons <jlhamm@acm.org>
Wed, 9 Jun 2021 01:45:29 +0000 (20:45 -0500)
error.c
version.h

diff --git a/error.c b/error.c
index ce22b395f3d87976f60ca0b8beaabe0a359044d7..1452e98f8a3ac8339f84a38bbcf43b4ad93942fe 100644 (file)
--- a/error.c
+++ b/error.c
@@ -8,6 +8,7 @@
 
 #include "error.h"
 #include <stdarg.h>
+#include <token.h>
 #include "listing.h"
 #include "token.h"
 
@@ -18,7 +19,6 @@ char * err_fname;                             // Name of error message file
 // Internal variables
 static long unused;                            // For supressing 'write' warnings
 
-
 //
 // Report error if not at EOL
 //
@@ -39,7 +39,6 @@ int ErrorIfNotAtEOL(void)
        return 0;
 }
 
-
 //
 // Cannot create a file
 //
@@ -49,7 +48,6 @@ void CantCreateFile(const char * fn)
        exit(1);
 }
 
-
 //
 // Setup for error message
 //  o  Create error listing file (if necessary)
@@ -75,7 +73,6 @@ void err_setup(void)
        }
 }
 
-
 //
 // Display error message (uses printf() style variable arguments)
 //
@@ -103,13 +100,13 @@ int error(const char * text, ...)
                        break;
                case SRC_IMACRO:
                {
-                       // This is basically SetFilenameForErrorReporting() but we don't call it here
-                       // as it will clobber curfname. That function is used during fixups only so
-                       // it really doesn't matter at that point...
+                       // This is basically SetFilenameForErrorReporting() but we don't
+                       // call it here as it will clobber curfname. That function is used
+                       // during fixups only so it really doesn't matter at that point...
                        char * filename;
-#include <token.h>
                        FILEREC * fr;
                        uint16_t fnum = cur_inobj->inobj.imacro->im_macro->cfileno;
+
                        // Check for absolute top filename (this should never happen)
                        if (fnum == -1)
                                interror(8);
@@ -153,7 +150,6 @@ int error(const char * text, ...)
        return ERROR;
 }
 
-
 //
 // Display warning message (uses printf() style variable arguments)
 //
@@ -183,7 +179,6 @@ int warn(const char * text, ...)
        return OK;
 }
 
-
 int fatal(const char * s)
 {
        char buf[EBUFSIZ];
@@ -203,7 +198,6 @@ int fatal(const char * s)
        exit(1);
 }
 
-
 int interror(int n)
 {
        char buf[EBUFSIZ];
@@ -221,4 +215,3 @@ int interror(int n)
 
        exit(1);
 }
-
index de6d1478361c53e4889966f6a20de94d2f9ff0eb..726fdac39736980c1fd089ad598d5465f3eea078 100644 (file)
--- a/version.h
+++ b/version.h
@@ -15,6 +15,6 @@
 
 #define MAJOR   2              // Major version number
 #define MINOR   1              // Minor version number
-#define PATCH   7              // Patch release number
+#define PATCH   8              // Patch release number
 
 #endif // __VERSION_H__