[svn:parrot] r37870 - in trunk: examples/sdl runtime/parrot/library/SDL

barney at svn.parrot.org barney at svn.parrot.org
Thu Apr 2 18:58:29 UTC 2009


Author: barney
Date: Thu Apr  2 18:58:28 2009
New Revision: 37870
URL: https://trac.parrot.org/parrot/changeset/37870

Log:
allow examples/sdl/blue_rect.pir to be run with installed parrot

Modified:
   trunk/examples/sdl/blue_rect.pir
   trunk/runtime/parrot/library/SDL/App.pir
   trunk/runtime/parrot/library/SDL/Color.pir
   trunk/runtime/parrot/library/SDL/Event.pir
   trunk/runtime/parrot/library/SDL/EventHandler.pir
   trunk/runtime/parrot/library/SDL/Font.pir
   trunk/runtime/parrot/library/SDL/Image.pir
   trunk/runtime/parrot/library/SDL/Rect.pir
   trunk/runtime/parrot/library/SDL/Sprite.pir
   trunk/runtime/parrot/library/SDL/StopWatch.pir
   trunk/runtime/parrot/library/SDL/Surface.pir

Modified: trunk/examples/sdl/blue_rect.pir
==============================================================================
--- trunk/examples/sdl/blue_rect.pir	Thu Apr  2 05:35:24 2009	(r37869)
+++ trunk/examples/sdl/blue_rect.pir	Thu Apr  2 18:58:28 2009	(r37870)
@@ -13,9 +13,9 @@
 
 .sub _main :main
     # first load the necessary libraries
-    load_bytecode "library/SDL/App.pir"
-    load_bytecode "library/SDL/Rect.pir"
-    load_bytecode "library/SDL/Color.pir"
+    load_bytecode "SDL/App.pir"
+    load_bytecode "SDL/Rect.pir"
+    load_bytecode "SDL/Color.pir"
 
     # create an SDL::App object
     .local pmc app

Modified: trunk/runtime/parrot/library/SDL/App.pir
==============================================================================
--- trunk/runtime/parrot/library/SDL/App.pir	Thu Apr  2 05:35:24 2009	(r37869)
+++ trunk/runtime/parrot/library/SDL/App.pir	Thu Apr  2 18:58:28 2009	(r37870)
@@ -8,7 +8,7 @@
 =head1 SYNOPSIS
 
     # load this library
-    load_bytecode 'library/SDL/App.pir'
+    load_bytecode 'SDL/App.pir'
 
     # create a new SDL::App object
     .local pmc app
@@ -67,9 +67,9 @@
 .sub _initialize :load
 
     .include 'datatypes.pasm'
-    load_bytecode 'library/SDL.pir'
-    load_bytecode 'library/SDL/Surface.pir'
-    load_bytecode 'library/SDL/Constants.pir'
+    load_bytecode 'SDL.pir'
+    load_bytecode 'SDL/Surface.pir'
+    load_bytecode 'SDL/Constants.pir'
 
     .local pmc app_class
 

Modified: trunk/runtime/parrot/library/SDL/Color.pir
==============================================================================
--- trunk/runtime/parrot/library/SDL/Color.pir	Thu Apr  2 05:35:24 2009	(r37869)
+++ trunk/runtime/parrot/library/SDL/Color.pir	Thu Apr  2 18:58:28 2009	(r37870)
@@ -7,7 +7,7 @@
 
 =head1 SYNOPSIS
 
-    load_bytecode 'library/SDL/Color.pir'
+    load_bytecode 'SDL/Color.pir'
 
     # create a new SDL::Color object
     .local pmc color

Modified: trunk/runtime/parrot/library/SDL/Event.pir
==============================================================================
--- trunk/runtime/parrot/library/SDL/Event.pir	Thu Apr  2 05:35:24 2009	(r37869)
+++ trunk/runtime/parrot/library/SDL/Event.pir	Thu Apr  2 18:58:28 2009	(r37870)
@@ -8,7 +8,7 @@
 =head1 SYNOPSIS
 
     # load this library
-    load_bytecode 'library/SDL/Event.pir'
+    load_bytecode 'SDL/Event.pir'
 
     # create a new SDL::Event object
     .local pmc event

Modified: trunk/runtime/parrot/library/SDL/EventHandler.pir
==============================================================================
--- trunk/runtime/parrot/library/SDL/EventHandler.pir	Thu Apr  2 05:35:24 2009	(r37869)
+++ trunk/runtime/parrot/library/SDL/EventHandler.pir	Thu Apr  2 18:58:28 2009	(r37870)
@@ -8,8 +8,8 @@
 =head1 SYNOPSIS
 
     # load the event class and this library
-    load_bytecode 'library/SDL/Event.pir'
-    load_bytecode 'library/SDL/EventHandler.pir'
+    load_bytecode 'SDL/Event.pir'
+    load_bytecode 'SDL/EventHandler.pir'
 
     # subclass this class
     .local pmc parent_class

Modified: trunk/runtime/parrot/library/SDL/Font.pir
==============================================================================
--- trunk/runtime/parrot/library/SDL/Font.pir	Thu Apr  2 05:35:24 2009	(r37869)
+++ trunk/runtime/parrot/library/SDL/Font.pir	Thu Apr  2 18:58:28 2009	(r37870)
@@ -8,7 +8,7 @@
 =head1 SYNOPSIS
 
     # load this library
-    load_bytecode 'library/SDL/Font.pir'
+    load_bytecode 'SDL/Font.pir'
 
     # create a new SDL::Font object
     .local pmc font

Modified: trunk/runtime/parrot/library/SDL/Image.pir
==============================================================================
--- trunk/runtime/parrot/library/SDL/Image.pir	Thu Apr  2 05:35:24 2009	(r37869)
+++ trunk/runtime/parrot/library/SDL/Image.pir	Thu Apr  2 18:58:28 2009	(r37870)
@@ -8,7 +8,7 @@
 =head1 SYNOPSIS
 
     # load this library
-    load_bytecode 'library/SDL/Image.pir'
+    load_bytecode 'SDL/Image.pir'
 
     # create a new SDL::Image object
     .local pmc image

Modified: trunk/runtime/parrot/library/SDL/Rect.pir
==============================================================================
--- trunk/runtime/parrot/library/SDL/Rect.pir	Thu Apr  2 05:35:24 2009	(r37869)
+++ trunk/runtime/parrot/library/SDL/Rect.pir	Thu Apr  2 18:58:28 2009	(r37870)
@@ -8,7 +8,7 @@
 =head1 SYNOPSIS
 
     # load this library
-    load_bytecode 'library/SDL/Rect.pir'
+    load_bytecode 'SDL/Rect.pir'
 
     # create a new SDL::Rect object
     .local pmc rect

Modified: trunk/runtime/parrot/library/SDL/Sprite.pir
==============================================================================
--- trunk/runtime/parrot/library/SDL/Sprite.pir	Thu Apr  2 05:35:24 2009	(r37869)
+++ trunk/runtime/parrot/library/SDL/Sprite.pir	Thu Apr  2 18:58:28 2009	(r37870)
@@ -8,7 +8,7 @@
 =head1 SYNOPSIS
 
     # load this library
-    load_bytecode 'library/SDL/Sprite.pir'
+    load_bytecode 'SDL/Sprite.pir'
 
     # ... load a new SDL::Image into image
 

Modified: trunk/runtime/parrot/library/SDL/StopWatch.pir
==============================================================================
--- trunk/runtime/parrot/library/SDL/StopWatch.pir	Thu Apr  2 05:35:24 2009	(r37869)
+++ trunk/runtime/parrot/library/SDL/StopWatch.pir	Thu Apr  2 18:58:28 2009	(r37870)
@@ -42,7 +42,7 @@
     .return()
 
   create_class:
-    load_bytecode "library/SDL/LCD.pir"
+    load_bytecode "SDL/LCD.pir"
     class = get_class 'SDL::LCD'
     class = subclass class, 'SDL::StopWatch'
     addattribute $P0, 'time'

Modified: trunk/runtime/parrot/library/SDL/Surface.pir
==============================================================================
--- trunk/runtime/parrot/library/SDL/Surface.pir	Thu Apr  2 05:35:24 2009	(r37869)
+++ trunk/runtime/parrot/library/SDL/Surface.pir	Thu Apr  2 18:58:28 2009	(r37870)
@@ -8,7 +8,7 @@
 =head1 SYNOPSIS
 
     # load this library
-    load_bytecode 'library/SDL/Surface.pir'
+    load_bytecode 'SDL/Surface.pir'
 
     # create a new SDL::Surface object
     surface = new 'SDL::Surface'


More information about the parrot-commits mailing list