Commit f997e28f authored by Martin Ruckert's avatar Martin Ruckert
Browse files

adapting the config files to the changes in MMIX_LOAD_FILE_LOC

parent d85723aa
...@@ -96,7 +96,8 @@ ...@@ -96,7 +96,8 @@
/* define this to record file line and location associations while assembling */ /* define this to record file line and location associations while assembling */
#define MMIXAL_LINE_LOC(file_no,line_no,cur_loc) #define MMIXAL_LINE_LOC(file_no,line_no,cur_loc)
/* define this to record file line and location associations while loading mmo files */ /* define this to record file line and location associations while loading mmo files
#define MMIX_LOAD_LINE_LOC(file_no,line_no,cur_loc) undefine to get the default behaviour of storing file_no and line_no in the mem_tetra */
#undef MMIX_LOAD_LINE_LOC(file_no,line_no,cur_loc)
#endif #endif
...@@ -96,7 +96,8 @@ ...@@ -96,7 +96,8 @@
/* define this to record file line and location associations while assembling */ /* define this to record file line and location associations while assembling */
#define MMIXAL_LINE_LOC(file_no,line_no,cur_loc) #define MMIXAL_LINE_LOC(file_no,line_no,cur_loc)
/* define this to record file line and location associations while loading mmo files */ /* define this to record file line and location associations while loading mmo files
#define MMIX_LOAD_LINE_LOC(file_no,line_no,cur_loc) undefine to get the default behaviour of storing file_no and line_no in the mem_tetra */
#undef MMIX_LOAD_LINE_LOC(file_no,line_no,cur_loc)
#endif #endif
...@@ -110,7 +110,8 @@ extern int mmix_fputc(int c, FILE *f); ...@@ -110,7 +110,8 @@ extern int mmix_fputc(int c, FILE *f);
/* define this to record file line and location associations while assembling */ /* define this to record file line and location associations while assembling */
#define MMIXAL_LINE_LOC(file_no,line_no,cur_loc) add_line_loc(file_no,line_no,cur_loc) #define MMIXAL_LINE_LOC(file_no,line_no,cur_loc) add_line_loc(file_no,line_no,cur_loc)
/* define this to record file line and location associations while loading mmo files */ /* define this to record file line and location associations while loading mmo files
undefine to get the default behaviour of storing file_no and line_no in the mem_tetra */
#define MMIX_LOAD_LINE_LOC(file_no,line_no,cur_loc) add_line_loc(file_no,line_no,cur_loc) #define MMIX_LOAD_LINE_LOC(file_no,line_no,cur_loc) add_line_loc(file_no,line_no,cur_loc)
#endif #endif
...@@ -86,6 +86,7 @@ extern int mmix_fputc(int c, FILE *f); ...@@ -86,6 +86,7 @@ extern int mmix_fputc(int c, FILE *f);
/* define this to record file line and location associations while assembling */ /* define this to record file line and location associations while assembling */
#define MMIXAL_LINE_LOC(file_no,line_no,cur_loc) #define MMIXAL_LINE_LOC(file_no,line_no,cur_loc)
/* define this to record file line and location associations while loading mmo files */ /* define this to record file line and location associations while loading mmo files
#define MMIX_LOAD_LINE_LOC(file_no,line_no,cur_loc) undefine to get the default behaviour of storing file_no and line_no in the mem_tetra */
#undef MMIX_LOAD_LINE_LOC(file_no,line_no,cur_loc)
#endif #endif
\ No newline at end of file
...@@ -94,7 +94,8 @@ extern int mmix_fputc(int c, FILE *f); ...@@ -94,7 +94,8 @@ extern int mmix_fputc(int c, FILE *f);
/* define this to record file line and location associations while assembling */ /* define this to record file line and location associations while assembling */
#define MMIXAL_LINE_LOC(file_no,line_no,cur_loc) add_line_loc(file_no,line_no,cur_loc) #define MMIXAL_LINE_LOC(file_no,line_no,cur_loc) add_line_loc(file_no,line_no,cur_loc)
/* define this to record file line and location associations while loading mmo files */ /* define this to record file line and location associations while loading mmo files
undefine to get the default behaviour of storing file_no and line_no in the mem_tetra */
#define MMIX_LOAD_LINE_LOC(file_no,line_no,cur_loc) add_line_loc(file_no,line_no,cur_loc) #define MMIX_LOAD_LINE_LOC(file_no,line_no,cur_loc) add_line_loc(file_no,line_no,cur_loc)
#endif #endif
......
...@@ -223,7 +223,9 @@ the association of lines and locations. ...@@ -223,7 +223,9 @@ the association of lines and locations.
@x @x
for (j=0;j<k;j++) { for (j=0;j<k;j++) {
@y @y
#ifdef MMIXAL_LINE_LOC
MMIXAL_LINE_LOC(cur_file, line_no, cur_loc); MMIXAL_LINE_LOC(cur_file, line_no, cur_loc);
#endif
for (j=0;j<k;j++) { for (j=0;j<k;j++) {
@z @z
......
...@@ -272,10 +272,13 @@ we reset the frequency and possibly record file, line, and loc. ...@@ -272,10 +272,13 @@ we reset the frequency and possibly record file, line, and loc.
ll->line_no=cur_line; ll->line_no=cur_line;
cur_line++; cur_line++;
@y @y
#ifdef MMIX_LOAD_LINE_LOC
MMIX_LOAD_LINE_LOC(cur_file,cur_line,cur_loc);
#else
ll->file_no=cur_file; ll->file_no=cur_file;
ll->line_no=cur_line; ll->line_no=cur_line;
#endif
ll->freq=0; ll->freq=0;
MMIX_LOAD_LINE_LOC(cur_file,cur_line,cur_loc);
cur_line++; cur_line++;
@z @z
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment