diff --git a/doc/funcref.sgml b/doc/funcref.sgml index c249cc3cf..a8593ebb5 100644 --- a/doc/funcref.sgml +++ b/doc/funcref.sgml @@ -627,7 +627,7 @@ communication, see also testcode/lib/ser-test.c.

- + @@ -1058,14 +1058,14 @@ It returns 1 if it does. -__poserror

+_poserror

/ - , +, diff --git a/include/stdio.h b/include/stdio.h index f4ba52a15..84a991a98 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -147,7 +147,7 @@ int __fastcall__ vfscanf (FILE* f, const char* format, __va_list ap); FILE* __fastcall__ fdopen (int fd, const char* mode); /* Unix */ int __fastcall__ fileno (FILE* f); /* Unix */ #endif -void __fastcall__ __poserror (const char* msg); /* cc65 */ +void __fastcall__ _poserror (const char* msg); /* cc65 */ /* Masking macros for some functions */ #define getc(f) fgetc (f) /* ANSI */ diff --git a/libsrc/common/_poserror.c b/libsrc/common/_poserror.c index 93c67dcf7..2777fee98 100644 --- a/libsrc/common/_poserror.c +++ b/libsrc/common/_poserror.c @@ -1,6 +1,6 @@ /*****************************************************************************/ /* */ -/* __poserror.c */ +/* _poserror.c */ /* */ /* Output a system dependent error code */ /* */ @@ -39,7 +39,7 @@ -void __fastcall__ __poserror (const char* msg) +void __fastcall__ _poserror (const char* msg) { /* Fetch the message that corresponds to _oserror */ const char* errormsg = _stroserror (_oserror); diff --git a/libsrc/geos-common/common/_poserror.c b/libsrc/geos-common/common/_poserror.c index 1e06a3b24..eeb3f368e 100644 --- a/libsrc/geos-common/common/_poserror.c +++ b/libsrc/geos-common/common/_poserror.c @@ -1,5 +1,5 @@ /* -** __poserror.c +** _poserror.c ** ** Maciej 'YTM/Elysium' Witkowiak, 25.04.2003 */ @@ -9,7 +9,7 @@ #include #include -void __fastcall__ __poserror (const char* msg) +void __fastcall__ _poserror (const char* msg) { const char *errmsg = _stroserror(_oserror); diff --git a/samples/geos/overlay-demo.c b/samples/geos/overlay-demo.c index d6acbe655..73ab0e3c0 100644 --- a/samples/geos/overlay-demo.c +++ b/samples/geos/overlay-demo.c @@ -65,7 +65,7 @@ void foobar (void) void main(int /*argc*/, char *argv[]) { if (OpenRecordFile(argv[0])) { - __poserror("OpenRecordFile"); + _poserror("OpenRecordFile"); return; } @@ -73,7 +73,7 @@ void main(int /*argc*/, char *argv[]) "Click OK to call Overlay One."); if (PointRecord(1)) { - __poserror("PointRecord.1"); + _poserror("PointRecord.1"); return; } @@ -82,7 +82,7 @@ void main(int /*argc*/, char *argv[]) ** size specific to a certain program. */ if (ReadRecord(OVERLAY_ADDR, OVERLAY_SIZE)) { - __poserror("ReadRecord.1"); + _poserror("ReadRecord.1"); return; } @@ -96,7 +96,7 @@ void main(int /*argc*/, char *argv[]) "Click OK to call Overlay Two."); if (PointRecord(2)) { - __poserror("PointRecord.2"); + _poserror("PointRecord.2"); return; } @@ -104,7 +104,7 @@ void main(int /*argc*/, char *argv[]) ** program. This implies that an overlay can never load another overlay. */ if (ReadRecord(OVERLAY_ADDR, OVERLAY_SIZE)) { - __poserror("ReadRecord.2"); + _poserror("ReadRecord.2"); return; } @@ -114,19 +114,19 @@ void main(int /*argc*/, char *argv[]) "Click OK to call Overlay Three."); if (PointRecord(3)) { - __poserror("PointRecord.3"); + _poserror("PointRecord.3"); return; } if (ReadRecord(OVERLAY_ADDR, OVERLAY_SIZE)) { - __poserror("ReadRecord.3"); + _poserror("ReadRecord.3"); return; } foobar(); if (CloseRecordFile()) { - __poserror("CloseRecordFile"); + _poserror("CloseRecordFile"); return; } } diff --git a/targettest/rename-test.c b/targettest/rename-test.c index 2f1d77600..0e9160b9e 100644 --- a/targettest/rename-test.c +++ b/targettest/rename-test.c @@ -58,7 +58,7 @@ int main(void) printf("Creating file: %s\n", name1); file = fopen(name1, "w"); if (file == NULL) { - __poserror("Disk error making first file"); + _poserror("Disk error making first file"); return EXIT_FAILURE; } fclose(file); @@ -66,7 +66,7 @@ int main(void) /* Verify that the file-name exists now. */ file = fopen(name1, "r"); if (file == NULL) { - __poserror("Cannot find first name"); + _poserror("Cannot find first name"); return EXIT_FAILURE; } fclose(file); @@ -78,7 +78,7 @@ int main(void) printf("Renaming %s to %s\n", name1, name2); r = rename(name1, name2); if (r < 0) { - __poserror("rename() failed"); + _poserror("rename() failed"); return EXIT_FAILURE; } @@ -86,14 +86,14 @@ int main(void) file = fopen(name1, "r"); if (file != NULL) { fclose(file); - __poserror("First name still exists"); + _poserror("First name still exists"); return EXIT_FAILURE; } /* Verify that the second file-name exists now. */ file = fopen(name2, "r"); if (file == NULL) { - __poserror("Cannot find second name"); + _poserror("Cannot find second name"); return EXIT_FAILURE; } fclose(file); @@ -104,7 +104,7 @@ int main(void) printf("Removing %s\n", name2); r = remove(name2); if (r < 0) { - __poserror("remove() failed"); + _poserror("remove() failed"); return EXIT_FAILURE; }