diff --git a/doc/funcref.sgml b/doc/funcref.sgml index a8593ebb5..c249cc3cf 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 84a991a98..f4ba52a15 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 2777fee98..93c67dcf7 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 eeb3f368e..1e06a3b24 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 73ab0e3c0..d6acbe655 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 0e9160b9e..2f1d77600 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; }