[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/backend gnash.cpp
From: |
Vitaly Alexeev |
Subject: |
[Gnash-commit] gnash/backend gnash.cpp |
Date: |
Mon, 12 Jun 2006 17:21:05 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Vitaly Alexeev <alexeev> 06/06/12 17:21:05
Modified files:
backend : gnash.cpp
Log message:
add mysql_db call
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/backend/gnash.cpp?cvsroot=gnash&r1=1.42&r2=1.43
Patches:
Index: gnash.cpp
===================================================================
RCS file: /sources/gnash/gnash/backend/gnash.cpp,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -b -r1.42 -r1.43
--- gnash.cpp 8 Jun 2006 15:40:37 -0000 1.42
+++ gnash.cpp 12 Jun 2006 17:21:05 -0000 1.43
@@ -45,13 +45,28 @@
#include "SDL_thread.h"
#endif
-#include <unistd.h>
-extern int mouse_x;
-extern int mouse_y;
-extern int mouse_buttons;
+#ifdef HAVE_EXTENSIONS
+# include "mysql_db.h"
+#endif
+
+
+#if defined(_WIN32) || defined(WIN32)
+# include "getopt.c"
+ int mouse_x;
+ int mouse_y;
+ int mouse_buttons;
+
+ int width;
+ int height;
+#else
+# include <unistd.h>
+ extern int mouse_x;
+ extern int mouse_y;
+ extern int mouse_buttons;
-extern int width;
-extern int height;
+ extern int width;
+ extern int height;
+#endif
#include <cstdlib>
#include <cstdio>
@@ -392,6 +407,10 @@
//gnash::register_file_opener_callback(file_opener);
gnash::register_fscommand_callback(fs_callback);
+#ifdef HAVE_EXTENSIONS
+ gnash::register_component("mysql_db", mysqldb::constructor);
+#endif
+
gnash::sound_handler *sound = NULL;
if (do_render) {
if (do_sound) {
@@ -1062,12 +1081,7 @@
version_and_copyright()
{
printf (
-#if defined(_WIN32) || defined(WIN32)
-// hack
-"Gnash for Windows\n" VERSION "\n"
-#else
"Gnash " VERSION "\n"
-#endif
"Copyright (C) 2006 Free Software Foundation, Inc.\n"
"Gnash comes with NO WARRANTY, to the extent permitted by law.\n"
"You may redistribute copies of Gnash under the terms of the GNU General\n"