Skip to content
Browse files

Typo fixes. NULL is a pointer cannot be assinged to integer value.

  • Loading branch information...
1 parent 54668e7 commit 4bd2d74dee8dd94f84ba89bef509faefe22c08f5 @kthakore kthakore committed Nov 6, 2009
Showing with 13 additions and 7 deletions.
  1. +2 −2 lib/SDL/WManagement.pm
  2. +6 −1 src/Core/WManagement.xs
  3. +4 −4 src/Core/objects/Event.xs
  4. +1 −0 typemap
View
4 lib/SDL/WManagement.pm
@@ -1,8 +1,8 @@
-package SDL::WMangement;
+package SDL::WManagement;
use strict;
use warnings;
require Exporter;
require DynaLoader;
our @ISA = qw(Exporter DynaLoader);
-bootstrap SDL::WMangement;
+bootstrap SDL::WManagement;
1;
View
7 src/Core/WManagement.xs
@@ -20,4 +20,9 @@ Described on the SDL API site.
=cut
-
+int
+wmanage_get_WM_info( )
+ CODE:
+ RETVAL = 1;
+ OUTPUT:
+ RETVAL
View
8 src/Core/objects/Event.xs
@@ -47,7 +47,7 @@ Uint8
event_type ( event, ... )
SDL_Event *event
CODE:
- RETVAL = NULL;
+ RETVAL = -1;
if ( &event != NULL )
RETVAL = event->type;
OUTPUT:
@@ -179,7 +179,7 @@ event_quit ( event, ... )
PREINIT:
char *CLASS = "SDL::QuitEvent";
CODE:
- RETVAL = NULL;
+ RETVALE = NULL;
if ( &event != NULL )
RETVAL = &(event->quit);
OUTPUT:
@@ -191,7 +191,7 @@ event_user ( event, ... )
PREINIT:
char *CLASS = "SDL::UserEvent";
CODE:
- RETVAL = NULL;
+ RETVALE = NULL;
if ( &event != NULL )
RETVAL = &(event->user);
OUTPUT:
@@ -203,7 +203,7 @@ event_syswm ( event, ... )
PREINIT:
char *CLASS = "SDL::SysWMEvent";
CODE:
- RETVAL = NULL;
+ RETVALE = NULL;
if ( &event != NULL )
RETVAL = &(event->syswm);
OUTPUT:
View
1 typemap
@@ -40,6 +40,7 @@ SDL_Palette * O_OBJECT
SDL_PixelFormat * O_OBJECT
SDL_VideoInfo * O_OBJECT
SDL_version * O_OBJECT
+SDL_SysWMInfo * O_OBJECT
SDL_Cursor * T_PTR
SDL_AudioSpec * T_PTR
SDL_AudioCVT * T_PTR

0 comments on commit 4bd2d74

Please sign in to comment.
Something went wrong with that request. Please try again.