[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash gui/fb.cpp ChangeLog
From: |
Martin Guy |
Subject: |
[Gnash-commit] gnash gui/fb.cpp ChangeLog |
Date: |
Thu, 12 Jul 2007 13:34:22 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Martin Guy <martinwguy> 07/07/12 13:34:21
Modified files:
gui : fb.cpp
. : ChangeLog
Log message:
* fb/gui.cpp: Add newline to end of fatal messages
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/fb.cpp?cvsroot=gnash&r1=1.36&r2=1.37
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3720&r2=1.3721
Patches:
Index: gui/fb.cpp
===================================================================
RCS file: /sources/gnash/gnash/gui/fb.cpp,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -b -r1.36 -r1.37
--- gui/fb.cpp 11 Jul 2007 09:10:09 -0000 1.36
+++ gui/fb.cpp 12 Jul 2007 13:34:20 -0000 1.37
@@ -50,8 +50,20 @@
# include <fcntl.h>
#endif
-// workaround until we agree that log_error does not rely on -v switch
-#define fatal_error printf
+// workaround until fatal_error() is implemented
+// that is not silent without -v switch
+//
+// The do { } while (0) strangeness here is the only general way to get a
+// compound statement that is lexically equivalent to a single one. Example:
+// #define foo() { this(); that(); }
+// if (a) foo();
+// else bar();
+// would become
+// if (a) { this(); that() ; } ; else bar()
+// which is a syntax error.
+
+#define fatal_error(args ...) \
+ do { fprintf(stderr, args); putc('\n', stderr); } while(0)
//--
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3720
retrieving revision 1.3721
diff -u -b -r1.3720 -r1.3721
--- ChangeLog 12 Jul 2007 09:31:50 -0000 1.3720
+++ ChangeLog 12 Jul 2007 13:34:20 -0000 1.3721
@@ -4,6 +4,7 @@
Document "make pdf and "make html" commands near --enable-docbook
* doc/C/usermanual/installation/feature_configuration.xml:
document --enable-docbook configuration flag.
+ * fb/gui.cpp: Add newline to end of fatal messages.
2007-07-12 Zou Lunkai <address@hidden>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash gui/fb.cpp ChangeLog,
Martin Guy <=