| Previous | 15994 Revisions | Next |
| r6072 Wednesday 14th October, 2009 at 09:25:30 UTC by Dirk Best |
|---|
| Move toolerr.c to tools, some cleanups |
| [src/mess] | messcore.mak |
| [src/mess/tools] | toolerr.c* |
| [src/mess/tools/castool] | castool.mak |
| [src/mess/tools/imgtool] | imgtool.mak |
| [src/mess/tools/imgtool/windows] | wimgtool.mak |
| [src/mess/tools/messdocs] | messdocs.mak |
| [src/mess/tools/messtest] | messtest.mak |
| r6071 | r6072 | |
|---|---|---|
| 1 | #include <stdio.h> | |
| 2 | #include <stdarg.h> | |
| 3 | ||
| 4 | #include "mamecore.h" | |
| 5 | ||
| 6 | /*------------------------------------------------- | |
| 7 | fatalerror - print a message and escape back | |
| 8 | to the OSD layer | |
| 9 | -------------------------------------------------*/ | |
| 10 | ||
| 11 | void CLIB_DECL fatalerror(const char *text, ...) | |
| 12 | { | |
| 13 | va_list va; | |
| 14 | va_start(va, text); | |
| 15 | vfprintf(stderr, text, va); | |
| 16 | va_end(va); | |
| 17 | exit(-1); | |
| 18 | } |
| r6071 | r6072 | |
|---|---|---|
| 46 | 46 | MESS_LAYOUT = $(MESSOBJ)/layout |
| 47 | 47 | MESS_MACHINE = $(MESSOBJ)/machine |
| 48 | 48 | MESS_VIDEO = $(MESSOBJ)/video |
| 49 | MESS_TOOLS = $(MESSOBJ)/tools | |
| 49 | 50 | |
| 50 | 51 | |
| 51 | 52 | OBJDIRS += \ |
| r6071 | r6072 | |
|---|---|---|
| 15 | 15 | MESSHELP = mess.chm |
| 16 | 16 | |
| 17 | 17 | # add our stuff to the global variables |
| 18 | OBJDIRS += $(MESSO | |
| 18 | OBJDIRS += $(MESS_TOOLS) | |
| 19 | 19 | |
| 20 | 20 | # html help compiler |
| 21 | 21 | HHC = @-hhc |
| r6071 | r6072 | |
| 29 | 29 | MESSDOCS_OBJS = \ |
| 30 | 30 | $(MESSOBJ)/tools/messdocs/messdocs.o \ |
| 31 | 31 | $(MESSOBJ)/utils.o \ |
| 32 | $(MESSO | |
| 32 | $(MESS_TOOLS)/toolerr.o \ | |
| 33 | 33 | |
| 34 | 34 | |
| 35 | 35 |
| r6071 | r6072 | |
|---|---|---|
| 14 | 14 | CFLAGS += -I$(SRC)/$(TARGET)/tools/castool |
| 15 | 15 | |
| 16 | 16 | # castool directories |
| 17 | CASTOOLOBJ = $(MESSO | |
| 17 | CASTOOLOBJ = $(MESS_TOOLS) | |
| 18 | 18 | |
| 19 | 19 | |
| 20 | 20 | |
| r6071 | r6072 | |
| 69 | 69 | CASTOOL_OBJS = \ |
| 70 | 70 | $(CASTOOLOBJ)/main.o \ |
| 71 | 71 | $(CASTOOLOBJ)/stubs.o \ |
| 72 | $(MESSO | |
| 72 | $(MESS_TOOLS)/toolerr.o | |
| 73 | 73 | |
| 74 | 74 | |
| 75 | 75 |
| r6071 | r6072 | |
|---|---|---|
| 11 | 11 | MESSTEST = messtest$(EXE) |
| 12 | 12 | |
| 13 | 13 | # messtest directories |
| 14 | OBJ | |
| 14 | MESSTESTOBJ | |
| 15 | 15 | |
| 16 | 16 | |
| 17 | 17 | |
| r6071 | r6072 | |
| 19 | 19 | # messtest objects |
| 20 | 20 | #------------------------------------------------- |
| 21 | 21 | |
| 22 | # messtest directories | |
| 23 | OBJDIRS += $(MESSTESTOBJ) | |
| 24 | ||
| 22 | 25 | MESSTEST_OBJS = \ |
| 23 | $(MESSOBJ)/pile.o \ | |
| 24 | $(MESSOBJ)/tools/messtest/main.o \ | |
| 25 | $(MESSOBJ)/tools/messtest/core.o \ | |
| 26 | $(MESSOBJ)/tools/messtest/testmess.o \ | |
| 27 | $(MESSOBJ)/tools/messtest/testimgt.o \ | |
| 28 | $(MESSOBJ)/tools/messtest/testzpth.o \ | |
| 29 | $(MESSOBJ)/tools/messtest/tststubs.o \ | |
| 30 | $(MESSOBJ)/tools/messtest/tstutils.o \ | |
| 26 | $(MESSOBJ)/pile.o \ | |
| 27 | $(MESSTESTOBJ)/main.o \ | |
| 28 | $(MESSTESTOBJ)/core.o \ | |
| 29 | $(MESSTESTOBJ)/testmess.o \ | |
| 30 | $(MESSTESTOBJ)/testimgt.o \ | |
| 31 | $(MESSTESTOBJ)/testzpth.o \ | |
| 32 | $(MESSTESTOBJ)/tststubs.o \ | |
| 33 | $(MESSTESTOBJ)/tstutils.o \ | |
| 31 | 34 | |
| 32 | 35 | |
| 33 | 36 |
| r0 | r6072 | |
|---|---|---|
| 1 | #include <stdio.h> | |
| 2 | #include <stdarg.h> | |
| 3 | ||
| 4 | #include "mamecore.h" | |
| 5 | ||
| 6 | /*------------------------------------------------- | |
| 7 | fatalerror - print a message and escape back | |
| 8 | to the OSD layer | |
| 9 | -------------------------------------------------*/ | |
| 10 | ||
| 11 | void CLIB_DECL fatalerror(const char *text, ...) | |
| 12 | { | |
| 13 | va_list va; | |
| 14 | va_start(va, text); | |
| 15 | vfprintf(stderr, text, va); | |
| 16 | va_end(va); | |
| 17 | exit(-1); | |
| 18 | } |
| r6071 | r6072 | |
|---|---|---|
| 14 | 14 | CFLAGS += -I$(SRC)/$(TARGET)/tools/imgtool |
| 15 | 15 | |
| 16 | 16 | # imgtool directories |
| 17 | IMGTOOLOBJ = $(MESSO | |
| 17 | IMGTOOLOBJ = $(MESS_TOOLS) | |
| 18 | 18 | IMGTOOL_MODULES = $(IMGTOOLOBJ)/modules |
| 19 | 19 | |
| 20 | 20 | |
| r6071 | r6072 | |
| 105 | 105 | IMGTOOL_OBJS = \ |
| 106 | 106 | $(IMGTOOLOBJ)/main.o \ |
| 107 | 107 | $(IMGTOOLOBJ)/stubs.o \ |
| 108 | $(MESSO | |
| 108 | $(MESS_TOOLS)/toolerr.o | |
| 109 | 109 | |
| 110 | 110 | |
| 111 | 111 |
| r6071 | r6072 | |
|---|---|---|
| 12 | 12 | |
| 13 | 13 | # wimgtool directories |
| 14 | 14 | WIMGTOOLSRC = $(MESSSRC)/tools/imgtool/windows |
| 15 | WIMGTOOLOBJ = $(MESSO | |
| 15 | WIMGTOOLOBJ = $(MESS_TOOLS) | |
| 16 | 16 | |
| 17 | 17 | |
| 18 | 18 | |
| r6071 | r6072 | |
| 23 | 23 | OBJDIRS += $(WIMGTOOLOBJ) |
| 24 | 24 | |
| 25 | 25 | WIMGTOOL_OBJS = \ |
| 26 | $(MESSOBJ)/pile.o \ | |
| 27 | $(MESSOBJ)/toolerr.o \ | |
| 28 | $(MESSOBJ)/osd/windows/opcntrl.o \ | |
| 29 | $(MESSOBJ)/osd/windows/winutils.o \ | |
| 30 | $(MESSOBJ)/tools/imgtool/stubs.o \ | |
| 31 | $(MESSOBJ)/tools/imgtool/windows/wmain.o \ | |
| 32 | $(MESSOBJ)/tools/imgtool/windows/wimgtool.o \ | |
| 33 | $(MESSOBJ)/tools/imgtool/windows/attrdlg.o \ | |
| 34 | $(MESSOBJ)/tools/imgtool/windows/assoc.o \ | |
| 35 | $(MESSOBJ)/tools/imgtool/windows/assocdlg.o \ | |
| 36 | $(MESSOBJ)/tools/imgtool/windows/hexview.o \ | |
| 37 | $(MESSOBJ)/tools/imgtool/windows/secview.o \ | |
| 38 | $(MESSOBJ)/tools/imgtool/windows/wimgtool.res \ | |
| 26 | $(MESSOBJ)/pile.o \ | |
| 27 | $(MESS_TOOLS)/toolerr.o \ | |
| 28 | $(MESSOBJ)/osd/windows/opcntrl.o \ | |
| 29 | $(MESSOBJ)/osd/windows/winutils.o \ | |
| 30 | $(MESS_TOOLS)/imgtool/stubs.o \ | |
| 31 | $(MESS_TOOLS)/imgtool/windows/wmain.o \ | |
| 32 | $(MESS_TOOLS)/imgtool/windows/wimgtool.o \ | |
| 33 | $(MESS_TOOLS)/imgtool/windows/attrdlg.o \ | |
| 34 | $(MESS_TOOLS)/imgtool/windows/assoc.o \ | |
| 35 | $(MESS_TOOLS)/imgtool/windows/assocdlg.o \ | |
| 36 | $(MESS_TOOLS)/imgtool/windows/hexview.o \ | |
| 37 | $(MESS_TOOLS)/imgtool/windows/secview.o \ | |
| 38 | $(MESS_TOOLS)/imgtool/windows/wimgtool.res \ | |
| 39 | 39 | |
| 40 | 40 | |
| 41 | 41 |
| Previous | 15994 Revisions | Next |