gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/plugin/win32 npgnash.c npgnash.cpp


From: Dossy Shiobara
Subject: [Gnash-commit] gnash/plugin/win32 npgnash.c npgnash.cpp
Date: Wed, 12 Mar 2008 04:00:44 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Dossy Shiobara <dossy>  08/03/12 04:00:44

Added files:
        plugin/win32   : npgnash.c 
Removed files:
        plugin/win32   : npgnash.cpp 

Log message:
        Renamed from .cpp to .c to avoid having to wrap the whole file in
        an extern "C".

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/plugin/win32/npgnash.c?cvsroot=gnash&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/gnash/plugin/win32/npgnash.cpp?cvsroot=gnash&r1=1.8&r2=0

Patches:
Index: npgnash.c
===================================================================
RCS file: npgnash.c
diff -N npgnash.c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ npgnash.c   12 Mar 2008 04:00:43 -0000      1.1
@@ -0,0 +1,50 @@
+// 
+//   Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+// 
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+// 
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+#include <windows.h>
+#ifdef _DEBUG
+#include <stdio.h>
+#endif
+
+HINSTANCE g_hInst;
+
+BOOL WINAPI
+DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpReserved)
+{
+#ifdef _DEBUG
+    char szReason[64];
+
+    switch (dwReason) {
+        case DLL_PROCESS_ATTACH:
+            strcpy(szReason, "DLL_PROCESS_ATTACH");
+            break;
+        case DLL_THREAD_ATTACH:
+            strcpy(szReason, "DLL_THREAD_ATTACH");
+            break;
+        case DLL_THREAD_DETACH:
+            strcpy(szReason, "DLL_THREAD_DETACH");
+            break;
+        case DLL_PROCESS_DETACH:
+            strcpy(szReason, "DLL_PROCESS_DETACH");
+            break;
+    }
+    fprintf(stderr, "npgnash.dll, DllMain(): %s\n", szReason);
+#endif
+
+    g_hInst = hModule;
+    return TRUE;
+}

Index: npgnash.cpp
===================================================================
RCS file: npgnash.cpp
diff -N npgnash.cpp
--- npgnash.cpp 21 Jan 2008 23:28:04 -0000      1.8
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,43 +0,0 @@
-// 
-//   Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
-// 
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 3 of the License, or
-// (at your option) any later version.
-// 
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
-// 
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-
-#include <windows.h>
-#include <cassert>
-
-//#include <cstdio>
-#include "gnash.h"
-//#include "log.h"
-
-static void
-fs_callback(gnash::movie_interface* movie, const char* command, const char* 
args)
-// For handling notification callbacks from ActionScript.
-{
-//    dbglogfile << "fs_callback: " << command << "(" << args << ")" << endl;
-}
-
-BOOL APIENTRY DllMain( HMODULE hModule,
-                       DWORD  ul_reason_for_call,
-                       LPVOID lpReserved
-                                        )
-{
-
-       assert(tu_types_validate());
-
-//     gnash::register_fscommand_callback(fs_callback);
-    
-       return TRUE;
-}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]