diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2016-01-05 00:35:03 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2016-01-05 00:35:03 +0100 |
commit | 20ce5054404b007f7313fe45f0eb31b2a5e44c71 (patch) | |
tree | 518d5d6e0e2d99deb29cfb253b7396cea97122b0 | |
parent | making the first release (diff) | |
download | libhaiku-1.0.tar.gz libhaiku-1.0.tar.bz2 libhaiku-1.0.tar.xz |
silly mistakes1.0
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r-- | doc/info/chap/overview.texinfo | 2 | ||||
-rw-r--r-- | doc/man/libhaiku_perror.3 | 2 | ||||
-rw-r--r-- | src/libhaiku.c | 24 |
3 files changed, 14 insertions, 14 deletions
diff --git a/doc/info/chap/overview.texinfo b/doc/info/chap/overview.texinfo index d132354..9e44ffb 100644 --- a/doc/info/chap/overview.texinfo +++ b/doc/info/chap/overview.texinfo @@ -32,7 +32,7 @@ if @code{errno} is zero. If you rather it did, you can use the macro if (errno && s__) \ perror(s__); \ errno = errno ? errno : -1; \ - libhaiku_perror(s__); \ + libhaiku_perror(0); \ @} while (0) @end example diff --git a/doc/man/libhaiku_perror.3 b/doc/man/libhaiku_perror.3 index 1514470..54c8e01 100644 --- a/doc/man/libhaiku_perror.3 +++ b/doc/man/libhaiku_perror.3 @@ -42,7 +42,7 @@ is zero. If you rather it did, you can use the macro if (errno && s__) \\ perror(s__); \\ errno = errno ? errno : -1; \\ - libhaiku_perror(s__); \\ + libhaiku_perror(0); \\ } while (0) .fi .SH "SEE ALSO" diff --git a/src/libhaiku.c b/src/libhaiku.c index 6373495..d9a635d 100644 --- a/src/libhaiku.c +++ b/src/libhaiku.c @@ -102,7 +102,7 @@ void libhaiku_perror(const char* s) #ifdef ENETDOWN case ENETDOWN: - H("Stay the patient course.\n""Of little worth is your ire.\n""The network is down.\n" + H("Stay the patient course.\n""Of little worth is your ire.\n""The network is down.\n", "Your vast achievements\n""are now only dreams.\n""The network is down.\n"); #endif @@ -127,7 +127,7 @@ void libhaiku_perror(const char* s) case EMLINK: #endif #if defined(EAGAIN) || defined(ENFILE) || defined(EMFILE) || defined(EUSERS) || defined(EMLINK) - H("ABORTED effort:\n""Close all that you have.\n""You ask way too much.\n" + H("ABORTED effort:\n""Close all that you have.\n""You ask way too much.\n", "The code was willing\n""It considered your request\n""But the chips were weak.\n"); #endif @@ -163,7 +163,7 @@ void libhaiku_perror(const char* s) "Rather than a beep\n""Or a rude error message,\n""These words: “File not found.”\n", "Three things are certain:\n""Death, taxes, and lost data.\n""Guess which has occurred.\n", "Having been erased,\n""The document you're seeking\n""Must now be retyped.\n", - "Everything is gone.\n""Your life's work has been destroyed.\n""Squeeze trigger (yes/no)?\n" + "Everything is gone.\n""Your life's work has been destroyed.\n""Squeeze trigger (yes/no)?\n", "Spring will come again,\n""But it will not bring with it\n""Any of your files.\n"); #endif @@ -194,7 +194,7 @@ void libhaiku_perror(const char* s) #ifdef EHOSTDOWN case EHOSTDOWN: - H("Windows NT crashed.\n""I am the Blue Screen of Death.\n""Noone hears your screams.\n" + H("Windows NT crashed.\n""I am the Blue Screen of Death.\n""Noone hears your screams.\n", "Won't you please observe\n""a brief moment of silence\n""For the dead server?\n"); #endif @@ -205,14 +205,14 @@ void libhaiku_perror(const char* s) #ifdef EFAULT case EFAULT: - H("A crash reduces\n""your expensive computer\n""to a simple stone.\n" - "Seeing my great fault.\n""Through a darkening red screen.\n""I begin again.\n" + H("A crash reduces\n""your expensive computer\n""to a simple stone.\n", + "Seeing my great fault.\n""Through a darkening red screen.\n""I begin again.\n", "Memory shaken,\n""the San Andreas of all\n""invalid page faults.\n"); #endif #ifdef EINVAL case EINVAL: - H("Something you entered\n""transcended parameters.\n""So much is unknown.\n" + H("Something you entered\n""transcended parameters.\n""So much is unknown.\n", "Some incompetence\n""fundamentally transcends\n""mere error message.\n"); #endif @@ -258,11 +258,11 @@ void libhaiku_perror(const char* s) default: if (s) perror(s); - H("Error messages\n""cannot completely convey.\n""We now know shared loss.\n" - "Errors have occurred.\n""We won't tell you where or why.\n""Lazy programmers.\n" - "To have no errors.\n""Would be life without meaning.\n""No struggle, no joy.\n" - "There is a chasm\n""of carbon and silicon\n""the software can't bridge.\n" - "Beauty, success, truth\n""He is blessed who has two.\n""Your program has none.\n" + H("Error messages\n""cannot completely convey.\n""We now know shared loss.\n", + "Errors have occurred.\n""We won't tell you where or why.\n""Lazy programmers.\n", + "To have no errors.\n""Would be life without meaning.\n""No struggle, no joy.\n", + "There is a chasm\n""of carbon and silicon\n""the software can't bridge.\n", + "Beauty, success, truth\n""He is blessed who has two.\n""Your program has none.\n", "Technical support\n""would be a flowing source of\n""sweet commiseration.\n"); } } |