aboutsummaryrefslogtreecommitdiff
path: root/tccpe.c
diff options
context:
space:
mode:
authorgrischka <grischka>2011-08-11 17:07:56 +0200
committergrischka <grischka>2011-08-11 17:07:56 +0200
commitbf374a5f238360d6a5055d79f53065fa95a26047 (patch)
treeed7cdfeab603cc28a9715a3abcd23df550bdca2f /tccpe.c
parent74a24d77fd9c08ad9a6b3b6c0f434c7314dae639 (diff)
downloadtinycc-bf374a5f238360d6a5055d79f53065fa95a26047.tar.gz
tinycc-bf374a5f238360d6a5055d79f53065fa95a26047.tar.bz2
rename error/warning -> tcc_(error/warning)
Diffstat (limited to 'tccpe.c')
-rw-r--r--tccpe.c12
1 files changed, 6 insertions, 6 deletions
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);