Commit 51f4e522 authored by Martin Ruckert's avatar Martin Ruckert

handling MMIX_ERROR and long input lines copying .ide to .h files

parent 197f70b1
#ifndef LIBCONFIG_H
#define LIBCONFIG_H
/* This tis the libconfig.h file for MMIX IDE rename to libconfig.h */
#ifdef WIN32
#pragma warning(disable : 4996)
#endif
......@@ -63,6 +65,7 @@
otherwise it will resume at Main */
#define MMIX_BOOT
/* if MMIX_PRINT is defined the mmixoutput is redirected from stdin or stderr */
#ifdef _MMIXAL_
#undef MMIX_PRINT
#else
......@@ -78,15 +81,14 @@ extern int mmix_fputc(int c, FILE *f);
#define fputc(c,f) mmix_fputc(c,f)
#endif
/* this action is executed when ther is no mmo file on the command line */
/* this action is executed when there is no mmo file on the command line */
#define MMIX_NO_FILE
/* define this to get the real TRAP implementation not the MMIXWARE fake TRAPS */
#define MMIX_TRAP
/* this is the error display function */
#define MMIX_ERROR(f,m) fprintf(stderr,f,m)
#define MMIX_ERROR(f,m) win32_ferror(__LINE__,f,m)
/* define this if you need the tetra inside the mem_node */
#undef MMIX_MEM_TET /* tetra tet; the tetrabyte of simulated memory */
......@@ -104,9 +106,7 @@ extern int mmix_fputc(int c, FILE *f);
#define MMIX_DELETE_DCACHE(w,xx) delete_data(w,xx)
#define MMIX_DELETE_ICACHE(w,xx) delete_instruction(w,xx)
#define MMXIAL_LINE_TRUNCATED fprintf(stderr,"(say `-b <number>' to increase the length of my input buffer)\n");
#define MMXIAL_LINE_TRUNCATED win32_message("Use the Menu (Options -> Assembler) to increase the length of my input buffer\r\n");
/* 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)
......
......@@ -3,3 +3,5 @@
#include "../../vmbmmixlib/mmix-bus.h"
extern void win32_log(char *msg);
extern void win32_ferror(int line, char *format, char *str);
extern void win32_message(char *msg);
\ No newline at end of file
......@@ -8,6 +8,8 @@
#include "libglobals.h"
#include <setjmp.h>
#include "libname.h"
#include "libimport.h"
extern jmp_buf mmix_exit;
/* simple implementation of the identity mapping */
......
......@@ -683,6 +683,28 @@
<File
RelativePath=".\libconfig.h"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="Copy libconfig.ide to libconfig.h"
CommandLine="copy libconfig.ide libconfig.h&#x0D;&#x0A;"
AdditionalDependencies="libconfig.ide"
Outputs="libconfig.h"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="Copy libconfig.ide to libconfig.h"
CommandLine="copy libconfig.ide libconfig.h&#x0D;&#x0A;"
AdditionalDependencies="libconfig.ide"
Outputs="libconfig.h"
/>
</FileConfiguration>
</File>
<File
RelativePath=".\libglobals.h"
......@@ -691,6 +713,28 @@
<File
RelativePath=".\libimport.h"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="Copy libimport.ide to libimport.h"
CommandLine="copy libimport.ide libimport.h"
AdditionalDependencies="libimport.ide"
Outputs="libimport.h"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="Copy libimport.ide to libimport.h"
CommandLine="copy libimport.ide libimport.h"
AdditionalDependencies="libimport.ide"
Outputs="libimport.h"
/>
</FileConfiguration>
</File>
<File
RelativePath=".\libname.h"
......
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