From bf374a5f238360d6a5055d79f53065fa95a26047 Mon Sep 17 00:00:00 2001 From: grischka Date: Thu, 11 Aug 2011 17:07:56 +0200 Subject: rename error/warning -> tcc_(error/warning) --- tccpe.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tccpe.c') diff --git a/tccpe.c b/tccpe.c index 74d0c19..51f4c53 100644 --- a/tccpe.c +++ b/tccpe.c @@ -595,7 +595,7 @@ static int pe_write(struct pe_info *pe) op = fopen(pe->filename, "wb"); if (NULL == op) { - error_noabort("could not write '%s': %s", pe->filename, strerror(errno)); + tcc_error_noabort("could not write '%s': %s", pe->filename, strerror(errno)); return -1; } @@ -841,7 +841,7 @@ static void pe_build_imports(struct pe_info *pe) v = (ADDR3264)GetProcAddress(dllref->handle, name); } if (!v) - error_noabort("undefined symbol '%s'", name); + tcc_error_noabort("undefined symbol '%s'", name); } #endif } else { @@ -941,7 +941,7 @@ static void pe_build_exports(struct pe_info *pe) strcpy(tcc_fileextension(buf), ".def"); op = fopen(buf, "w"); if (NULL == op) { - error_noabort("could not create '%s': %s", buf, strerror(errno)); + tcc_error_noabort("could not create '%s': %s", buf, strerror(errno)); } else { fprintf(op, "LIBRARY %s\n\nEXPORTS\n", dllname); if (pe->s1->verbose) @@ -1287,7 +1287,7 @@ static int pe_check_symbols(struct pe_info *pe) } not_found: - error_noabort("undefined symbol '%s'", name); + tcc_error_noabort("undefined symbol '%s'", name); ret = -1; } else if (pe->s1->rdynamic @@ -1774,7 +1774,7 @@ static void pe_add_runtime_ex(TCCState *s1, struct pe_info *pe) if (PE_DLL != pe_type && PE_GUI != pe_type) break; } else if (tcc_add_library(s1, p) < 0) - error_noabort("cannot find library: %s", p); + tcc_error_noabort("cannot find library: %s", p); } } @@ -1871,7 +1871,7 @@ ST_FUNC int pe_output_file(TCCState * s1, const char *filename) tcc_free(pe.sec_info); } else { #ifndef TCC_IS_NATIVE - error_noabort("-run supported only on native platform"); + tcc_error_noabort("-run supported only on native platform"); #endif pe.thunk = data_section; pe_build_imports(&pe); -- cgit v1.3.1