Cleanup 'debuginfo' variable in output; add comment.
authorKevin O'Connor <kevin@koconnor.net>
Mon, 12 Oct 2009 13:48:12 +0000 (09:48 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 12 Oct 2009 13:48:12 +0000 (09:48 -0400)
src/output.c

index ab2236b11a1417901299de4bfe36364171f44aab..e860b0b2c6247d6b6ecaf54e2ca644931ac53433 100644 (file)
@@ -1,6 +1,6 @@
 // Raw screen writing and debug output code.
 //
-// Copyright (C) 2008  Kevin O'Connor <kevin@koconnor.net>
+// Copyright (C) 2008,2009  Kevin O'Connor <kevin@koconnor.net>
 //
 // This file may be distributed under the terms of the GNU LGPLv3 license.
 
@@ -84,8 +84,11 @@ putc_debug(struct putcinfo *action, char c)
     debug_serial(c);
 }
 
+// In 16bit mode just need a dummy variable (putc_debug is always used
+// anyway), and in 32bit mode need a pointer to the 32bit instance of
+// putc_debug().
 #if MODE16
-static struct putcinfo debuginfo VAR16 = { putc_debug };
+static struct putcinfo debuginfo VAR16;
 #else
 static struct putcinfo debuginfo = { putc_debug };
 #endif