rhodes 2.3.2 → 2.4.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +18 -0
- data/CREDITS +38 -0
- data/README.md +2 -2
- data/Rakefile +60 -2
- data/bin/set-rhodes-sdk.bat +1 -0
- data/doc/application.txt +11 -0
- data/doc/build.txt +156 -39
- data/doc/configuration.txt +1 -10
- data/doc/connect-to-web-services.txt +6 -6
- data/doc/device-caps.txt +48 -5
- data/doc/extensions.txt +8 -1
- data/doc/rhom.txt +16 -0
- data/doc/synchronization.txt +56 -14
- data/doc/ui.txt +23 -2
- data/installer/instant-rhodes.nsi +6 -6
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Barcode.xcodeproj/project.pbxproj +4 -2
- data/lib/extensions/barcode/ext/barcode/platform/wm/Rakefile +1 -1
- data/lib/extensions/digest-md5/ext/Rakefile +3 -3
- data/lib/extensions/digest-md5/ext/build +0 -1
- data/lib/extensions/digest-sha1/ext/Rakefile +1 -1
- data/lib/extensions/digest-sha1/ext/build +0 -1
- data/lib/extensions/digest/ext/Rakefile +3 -3
- data/lib/extensions/digest/ext/build +0 -1
- data/lib/extensions/fcntl/ext/Rakefile +1 -1
- data/lib/extensions/mspec/mspec/guards/guard.rb +4 -0
- data/lib/extensions/mspec/mspec/helpers/environment.rb +4 -0
- data/lib/extensions/nfc/ext.yml +2 -0
- data/lib/extensions/nfc/ext/build +12 -0
- data/lib/extensions/nfc/ext/build.bat +8 -0
- data/lib/extensions/nfc/ext/nfc/platform/android/AndroidManifest.xml +25 -0
- data/lib/extensions/nfc/ext/nfc/platform/android/Rakefile +94 -0
- data/lib/extensions/nfc/ext/nfc/platform/android/ext_build.files +4 -0
- data/lib/extensions/nfc/ext/nfc/platform/android/jni/src/nfc.cpp +404 -0
- data/lib/extensions/nfc/ext/nfc/platform/android/src/com/nfc/Nfc.java +138 -0
- data/lib/extensions/nfc/ext/nfc/platform/android/src/com/nfc/NfcMessage.java +34 -0
- data/lib/extensions/nfc/ext/nfc/platform/android/src/com/nfc/NfcMessagePack.java +33 -0
- data/lib/extensions/nfc/ext/nfc/platform/android/src/com/nfc/NfcRecord.java +149 -0
- data/lib/extensions/nfc/ext/nfc/shared/ruby/nfc.i +22 -0
- data/lib/extensions/nfc/ext/nfc/shared/ruby/nfc_wrap.c +2034 -0
- data/lib/extensions/nfc/nfc.rb +120 -0
- data/lib/extensions/rholang/{lang_ca.rb → rholang/lang_ca.rb} +0 -0
- data/lib/extensions/rholang/{lang_cf.rb → rholang/lang_cf.rb} +0 -0
- data/lib/extensions/rholang/{lang_chef.rb → rholang/lang_chef.rb} +0 -0
- data/lib/extensions/rholang/{lang_cs.rb → rholang/lang_cs.rb} +0 -0
- data/lib/extensions/rholang/{lang_da.rb → rholang/lang_da.rb} +0 -0
- data/lib/extensions/rholang/{lang_de.rb → rholang/lang_de.rb} +0 -0
- data/lib/extensions/rholang/{lang_es.rb → rholang/lang_es.rb} +0 -0
- data/lib/extensions/rholang/{lang_es_ar.rb → rholang/lang_es_ar.rb} +0 -0
- data/lib/extensions/rholang/{lang_fi.rb → rholang/lang_fi.rb} +0 -0
- data/lib/extensions/rholang/{lang_fr.rb → rholang/lang_fr.rb} +0 -0
- data/lib/extensions/rholang/{lang_it.rb → rholang/lang_it.rb} +0 -0
- data/lib/extensions/rholang/{lang_ko.rb → rholang/lang_ko.rb} +0 -0
- data/lib/extensions/rholang/{lang_nl.rb → rholang/lang_nl.rb} +0 -0
- data/lib/extensions/rholang/{lang_no.rb → rholang/lang_no.rb} +0 -0
- data/lib/extensions/rholang/{lang_pt.rb → rholang/lang_pt.rb} +0 -0
- data/lib/extensions/rholang/{lang_pt_br.rb → rholang/lang_pt_br.rb} +0 -0
- data/lib/extensions/rholang/{lang_ru.rb → rholang/lang_ru.rb} +0 -0
- data/lib/extensions/rholang/{lang_se.rb → rholang/lang_se.rb} +0 -0
- data/lib/extensions/rholang/{lang_sr.rb → rholang/lang_sr.rb} +0 -0
- data/lib/extensions/rholang/{rhoerror_ru.rb → rholang/rhoerror_ru.rb} +0 -0
- data/lib/extensions/rholang/{rhomsg_ru.rb → rholang/rhomsg_ru.rb} +0 -0
- data/lib/framework/date/format.rb +2 -0
- data/lib/framework/dateOrig.rb +17 -8
- data/lib/framework/rational18.rb +532 -0
- data/lib/framework/res/back_btn.wp7.png +0 -0
- data/lib/framework/res/blue_pushpin.wp7.png +0 -0
- data/lib/framework/res/blue_pushpin_small.wp7.png +0 -0
- data/lib/framework/res/callout.wp7.png +0 -0
- data/lib/framework/res/callout_link.wp7.png +0 -0
- data/lib/framework/res/esri.wp7.png +0 -0
- data/lib/framework/res/forward_btn.wp7.png +0 -0
- data/lib/framework/res/home_btn.wp7.png +0 -0
- data/lib/framework/res/options_btn.wp7.png +0 -0
- data/lib/framework/res/refresh_btn.wp7.png +0 -0
- data/lib/framework/rho/render.rb +8 -1
- data/lib/framework/rho/rho.rb +30 -7
- data/lib/framework/rho/rhoapplication.rb +9 -4
- data/lib/framework/rho/rhofsconnector.rb +5 -1
- data/lib/framework/rho/rhotabbar.rb +8 -0
- data/lib/framework/rho/rhotoolbar.rb +1 -1
- data/lib/framework/rho/rhoviewhelpers.rb +18 -1
- data/lib/framework/rhodes.rb +1 -1
- data/lib/framework/rhoframework.rb +46 -1
- data/lib/framework/rholang/localization_simplified.rb +17 -16
- data/lib/framework/rhom/rhom_db_adapter.rb +2 -2
- data/lib/framework/rhom/rhom_object_factory.rb +115 -12
- data/lib/framework/rhosystem.rb +135 -0
- data/lib/framework/version.rb +1 -1
- data/lib/rhodes.rb +1 -1
- data/lib/test/apps/rhoconfig.txt +23 -23
- data/platform/android/Rhodes/AndroidManifest.full.xml +101 -0
- data/platform/android/Rhodes/AndroidManifest.xml +10 -15
- data/platform/android/Rhodes/default.properties +11 -0
- data/platform/android/Rhodes/gen/com/rhomobile/rhodes/R.java +59 -53
- data/platform/android/Rhodes/jni/include/rhodes.h +1 -0
- data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_RhodesApplication.h +21 -0
- data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_alert_PopupActivity.h +21 -0
- data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_file_RhoFileApi.h +10 -2
- data/platform/android/Rhodes/jni/src/alert.cpp +2 -1
- data/platform/android/Rhodes/jni/src/datetimepicker.cpp +2 -0
- data/platform/android/Rhodes/jni/src/fileapi.cpp +671 -84
- data/platform/android/Rhodes/jni/src/nativebar.cpp +18 -0
- data/platform/android/Rhodes/jni/src/rhodes.cpp +92 -1
- data/platform/android/Rhodes/res/values/styles.xml +7 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/BaseActivity.java +35 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/Capabilities.java +12 -13
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/LocalFileProvider.java +130 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/NativeBar.java +6 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/PushReceiver.java +5 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/PushService.java +6 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoMenu.java +7 -36
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivity.java +43 -20
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesApplication.java +2 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +63 -28
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/Utils.java +2 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/WebView.java +6 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/alert/Alert.java +19 -282
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/alert/PopupActivity.java +354 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/datetime/DateTimePickerScreen.java +4 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/event/EventStore.java +1 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/file/RhoFileApi.java +71 -5
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocationImpl.java +107 -37
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +10 -7
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/TabbedMainView.java +156 -56
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/MapView.java +0 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/phonebook/ContactAccessorNew.java +40 -32
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/SignatureView.java +1 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/ExternalHttpHandler.java +14 -6
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/LocalFileHandler.java +46 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/MailUriHandler.java +4 -24
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/UriHandler.java +3 -1
- data/platform/android/build/RhodesSRC_build.files +28 -25
- data/platform/android/build/android.rake +230 -54
- data/platform/android/build/androidcommon.rb +1 -1
- data/platform/android/build/librhocommon_build.files +1 -0
- data/platform/bb/Hsqldb/BlackBerry_App_Descriptor.xml +20 -0
- data/platform/bb/Hsqldb/src/com/rho/db/HsqlDBResult.java +1 -5
- data/platform/bb/Hsqldb/src/com/rho/db/HsqlDBStorage.java +6 -1
- data/platform/bb/Hsqldb/src/org/hsqldb/rowio/RowOutputBase.java +1 -1
- data/platform/bb/Hsqldb/src/org/hsqldb/rowio/RowOutputBinary.java +1 -1
- data/platform/bb/RubyVM/BlackBerry_App_Descriptor.xml +20 -0
- data/platform/bb/RubyVM/src/com/rho/IRhoRubyHelper.java +2 -0
- data/platform/bb/RubyVM/src/com/rho/RhoLogOutputSink.java +0 -1
- data/platform/bb/RubyVM/src/com/rho/RhoLogger.java +12 -10
- data/platform/bb/RubyVM/src/com/rho/RhoThread.java +16 -0
- data/platform/bb/RubyVM/src/com/rho/RhoTimer.java +89 -0
- data/platform/bb/RubyVM/src/com/rho/RhodesApp.java +20 -13
- data/platform/bb/RubyVM/src/com/rho/SplashScreen.java +1 -2
- data/platform/bb/RubyVM/src/com/rho/ThreadQueue.java +2 -2
- data/platform/bb/RubyVM/src/com/rho/TimeInterval.java +5 -0
- data/platform/bb/RubyVM/src/com/rho/db/DBAdapter.java +54 -48
- data/platform/bb/RubyVM/src/com/rho/db/IDBResult.java +0 -1
- data/platform/bb/RubyVM/src/com/rho/db/IDBStorage.java +1 -0
- data/platform/bb/RubyVM/src/com/rho/net/AsyncHttp.java +1 -1
- data/platform/bb/RubyVM/src/com/rho/sync/ClientRegister.java +1 -1
- data/platform/bb/RubyVM/src/com/rho/sync/JSONStructIterator.java +1 -1
- data/platform/bb/RubyVM/src/com/rho/sync/SyncEngine.java +16 -8
- data/platform/bb/RubyVM/src/com/rho/sync/SyncNotify.java +2 -2
- data/platform/bb/RubyVM/src/com/rho/sync/SyncSource.java +52 -29
- data/platform/bb/RubyVM/src/com/rho/sync/SyncThread.java +1 -3
- data/platform/bb/build/RubyVM_build.files +1 -0
- data/platform/bb/build/bb.rake +29 -9
- data/platform/bb/rhodes/BlackBerry_App_Descriptor.xml +23 -0
- data/platform/bb/rhodes/platform/5.0/com/rho/RhodesApplicationPlatform.java +1 -1
- data/platform/bb/rhodes/platform/5.0/com/rho/db/SqliteCopyResult.java +0 -4
- data/platform/bb/rhodes/platform/5.0/com/rho/db/SqliteResult.java +13 -20
- data/platform/bb/rhodes/platform/5.0/com/rho/db/SqliteStorage.java +183 -157
- data/platform/bb/rhodes/src/com/rho/RhoRubyHelper.java +22 -0
- data/platform/bb/rhodes/src/com/rho/RhodesApplicationPlatform.java +1 -1
- data/platform/bb/rhodes/src/com/rho/db/SqliteCopyResult.java +0 -4
- data/platform/bb/rhodes/src/com/rho/db/SqliteResult.java +13 -20
- data/platform/bb/rhodes/src/com/rho/db/SqliteStorage.java +183 -157
- data/platform/bb/rhodes/src/com/rho/rubyext/System.java +46 -1
- data/platform/bb/rhodes/src/rhomobile/RhodesApplication.java +8 -1
- data/platform/bb/rhodes/src/rhomobile/camera/CameraFilesListener.java +13 -3
- data/platform/iphone/Classes/AppManager/AppManager.h +5 -1
- data/platform/iphone/Classes/AppManager/AppManager.m +170 -7
- data/platform/iphone/Classes/DateTimePicker.m +14 -1
- data/platform/iphone/Classes/DateTimePickerDelegate.h +2 -0
- data/platform/iphone/Classes/DateTimePickerDelegate.m +36 -2
- data/platform/iphone/Classes/NativeBar.h +1 -0
- data/platform/iphone/Classes/NativeBar.m +15 -3
- data/platform/iphone/Classes/Phonebook/phonebook.m +8 -9
- data/platform/iphone/Classes/Rhodes.m +50 -6
- data/platform/iphone/Classes/SimpleMainView.m +7 -6
- data/platform/iphone/Classes/SplitView/RightViewController.h +3 -1
- data/platform/iphone/Classes/SplitView/RightViewController.m +14 -1
- data/platform/iphone/Classes/TabbedMainView.h +4 -0
- data/platform/iphone/Classes/TabbedMainView.m +43 -26
- data/platform/iphone/Info.plist +1 -1
- data/platform/iphone/RhoLib/RhoLib.xcodeproj/project.pbxproj +4 -0
- data/platform/iphone/curl/curl.xcodeproj/project.pbxproj +3 -3
- data/platform/iphone/rbuild/iphone.rake +168 -119
- data/platform/iphone/rhoextlib/rhoextlib.xcodeproj/project.pbxproj +4 -2
- data/platform/iphone/rhorubylib/rhorubylib.xcodeproj/project.pbxproj +3 -3
- data/platform/iphone/rhorunner.xcodeproj/project.pbxproj +2 -2
- data/platform/iphone/rhosynclib/rhosynclib.xcodeproj/project.pbxproj +3 -3
- data/platform/shared/SyncClient/SyncClient.cpp +20 -8
- data/platform/shared/SyncClient/SyncClient.h +2 -1
- data/platform/shared/common/RhoDefs.h +4 -0
- data/platform/shared/common/RhoPort.h +22 -0
- data/platform/shared/common/RhoStd.h +5 -0
- data/platform/shared/common/RhoTime.cpp +73 -0
- data/platform/shared/common/RhoTime.h +26 -53
- data/platform/shared/common/RhodesApp.cpp +29 -28
- data/platform/shared/common/RhodesApp.h +4 -1
- data/platform/shared/common/StringConverter.h +37 -10
- data/platform/shared/common/app_build_capabilities.h +2 -0
- data/platform/shared/common/rhoparams.cpp +25 -12
- data/platform/shared/common/rhoparams.h +10 -8
- data/platform/shared/db/DBAdapter.cpp +0 -22
- data/platform/shared/json/RJSONTokener.c +15 -23
- data/platform/shared/net/AsyncHttp.cpp +9 -8
- data/platform/shared/net/HttpServer.cpp +61 -19
- data/platform/shared/net/HttpServer.h +2 -0
- data/platform/shared/ruby/ext/datetimepicker/datetimepicker.i +3 -0
- data/platform/shared/ruby/ext/datetimepicker/datetimepicker_wrap.c +151 -402
- data/platform/shared/ruby/ext/nativebar/nativebar.i +3 -0
- data/platform/shared/ruby/ext/nativebar/nativebar_wrap.c +154 -403
- data/platform/shared/ruby/ext/rho/rhoruby.c +4 -0
- data/platform/shared/ruby/ext/rho/rhoruby.h +2 -0
- data/platform/shared/ruby/ext/system/system.i +8 -0
- data/platform/shared/ruby/ext/system/system_wrap.c +80 -5
- data/platform/shared/ruby/file.c +6 -4
- data/platform/shared/ruby/gc.c +1 -1
- data/platform/shared/ruby/linux/ruby/config.h +7 -2
- data/platform/shared/ruby/missing/acosh.c +3 -3
- data/platform/shared/ruby/wince/_time.h +1 -1
- data/platform/shared/ruby/wince/stdlib.c +1 -1
- data/platform/shared/ruby/wince/string_wce.c +2 -2
- data/platform/shared/ruby/wince/sys/timeb.c +1 -0
- data/platform/shared/ruby/wince/time_wce.c +8 -0
- data/platform/shared/ruby/wince/wince.c +7 -7
- data/platform/shared/ruby/wince/wince.h +22 -0
- data/platform/shared/rubyext/System.cpp +19 -1
- data/platform/shared/sqlite/sqlite3.c +18993 -8129
- data/platform/shared/sqlite/sqlite3.h +953 -358
- data/platform/shared/sqlite/sqlite3ext.h +42 -0
- data/platform/shared/sync/SyncEngine.cpp +10 -0
- data/platform/shared/sync/SyncSource.cpp +41 -19
- data/platform/shared/sync/SyncSource.h +1 -1
- data/platform/shared/tcmalloc/rhomem.h +7 -2
- data/platform/shared/tcmalloc/windows/port.h +2 -0
- data/platform/shared/unzip/unzip.cpp +1 -0
- data/platform/shared/xruby/src/com/xruby/compiler/parser/RubyParser.java +11 -1
- data/platform/wm/RhoLib/RhoLib.vcproj +182 -24
- data/platform/wm/build/wm.rake +16 -3
- data/platform/wm/rhodes.sln +106 -113
- data/platform/wm/rhodes/Alert.cpp +6 -7
- data/platform/wm/rhodes/AppManager.cpp +8 -17
- data/platform/wm/rhodes/DateTimePicker.cpp +3 -0
- data/platform/wm/rhodes/DateTimePicker.h +2 -0
- data/platform/wm/rhodes/MainWindow.cpp +36 -16
- data/platform/wm/rhodes/MainWindow.h +6 -3
- data/platform/wm/rhodes/OutlookApp.cpp +3 -3
- data/platform/wm/rhodes/Rhodes.cpp +46 -27
- data/platform/wm/rhodes/Rhodes.rc +16 -3
- data/platform/wm/rhodes/RingtoneManager.cpp +7 -7
- data/platform/wm/rhodes/RingtoneManager.h +1 -1
- data/platform/wm/rhodes/Utils.cpp +2 -1
- data/platform/wm/rhodes/bluetooth/Bluetooth.cpp +1 -13
- data/platform/wm/rhodes/bluetooth/Bluetooth.h +1 -2
- data/platform/wm/rhodes/camera/Camera.cpp +6 -12
- data/platform/wm/rhodes/phonebook/phonebook.cpp +11 -11
- data/platform/wm/rhodes/phonebook/phonebook.h +1 -1
- data/platform/wm/rhodes/resource.h +3 -1
- data/platform/wm/rhodes/rho/net/NetRequestImpl.cpp +7 -5
- data/platform/wm/rhodes/rho/rubyext/GeoLocationImpl.cpp +6 -6
- data/platform/wm/rhodes/rho/rubyext/GeoLocationImpl.h +1 -1
- data/platform/wm/rhodes/rho/rubyext/NativeToolbar.cpp +6 -1
- data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +84 -19
- data/platform/wm/rhodes/rho/rubyext/calendar.cpp +2 -2
- data/platform/wm/rhodes/rhodes.vcproj +316 -73
- data/platform/wm/rhodes/signature/Signature.cpp +336 -6
- data/platform/wm/rhodes/signature/Signature.h +55 -0
- data/platform/wm/rhodes/stdafx.h +7 -4
- data/platform/wm/rubylib/rubylib.vcproj +261 -91
- data/platform/wm/sqlite3/sqlite3.vcproj +223 -69
- data/platform/wm/syncengine/syncengine.vcproj +220 -66
- data/platform/wm/tcmalloc/tcmalloc.vcproj +197 -43
- data/platform/wp7/IronRuby/Languages/Ruby/Ruby/Builtins/ConsoleStream.cs +107 -0
- data/platform/wp7/IronRuby/Languages/Ruby/Ruby/Runtime/Loader.cs +1037 -0
- data/platform/wp7/IronRuby/Languages/Ruby/Ruby/Runtime/RubyUtils.cs +1476 -0
- data/platform/wp7/RhoAppRunner/Program.cs +55 -0
- data/platform/wp7/RhoAppRunner/Properties/AssemblyInfo.cs +36 -0
- data/platform/wp7/RhoAppRunner/RhoAppRunner.csproj +69 -0
- data/platform/wp7/RhoRubyExtGen/GenerateInitializers.cmd +7 -0
- data/platform/wp7/RhoRubyExtGen/Properties/AssemblyInfo.cs +36 -0
- data/platform/wp7/RhoRubyExtGen/RhoAsyncHttp.cs +38 -0
- data/platform/wp7/RhoRubyExtGen/RhoDatabase.cs +93 -0
- data/platform/wp7/RhoRubyExtGen/RhoJSON.cs +37 -0
- data/platform/wp7/RhoRubyExtGen/RhoNativeBar.cs +106 -0
- data/platform/wp7/RhoRubyExtGen/RhoRubyExtGen.csproj +75 -0
- data/platform/wp7/RhoRubyExtGen/RhoSyncEngine.cs +123 -0
- data/platform/wp7/RhoRubyExtGen/RhoWebView.cs +42 -0
- data/platform/wp7/RhoRubyLib/Initializers.Generated.cs +309 -0
- data/platform/wp7/RhoRubyLib/Properties/AssemblyInfo.cs +36 -0
- data/platform/wp7/RhoRubyLib/RhoAppAdapter.cs +96 -0
- data/platform/wp7/RhoRubyLib/RhoRuby.cs +296 -0
- data/platform/wp7/RhoRubyLib/RhoRubyLib.csproj +155 -0
- data/platform/wp7/RhoRubyLib/WP_PlatformAdaptationLayer.cs +107 -0
- data/platform/wp7/RhoRubyLib/common/IInputStream.cs +21 -0
- data/platform/wp7/RhoRubyLib/common/Mutex.cs +30 -0
- data/platform/wp7/RhoRubyLib/common/RhoConf.cs +389 -0
- data/platform/wp7/RhoRubyLib/common/RhoEmptyProfiler.cs +27 -0
- data/platform/wp7/RhoRubyLib/common/RhoFile.cs +332 -0
- data/platform/wp7/RhoRubyLib/common/RhoFilePath.cs +89 -0
- data/platform/wp7/RhoRubyLib/common/RhoParamArray.cs +33 -0
- data/platform/wp7/RhoRubyLib/common/RhoParams.cs +66 -0
- data/platform/wp7/RhoRubyLib/common/RhoProfiler.cs +145 -0
- data/platform/wp7/RhoRubyLib/common/RhoResourceMap.cs +68 -0
- data/platform/wp7/RhoRubyLib/common/RhoStd.cs +205 -0
- data/platform/wp7/RhoRubyLib/common/RhoThread.cs +114 -0
- data/platform/wp7/RhoRubyLib/common/RhodesApp.cs +504 -0
- data/platform/wp7/RhoRubyLib/common/ThreadQueue.cs +199 -0
- data/platform/wp7/RhoRubyLib/common/TimeInterval.cs +56 -0
- data/platform/wp7/RhoRubyLib/common/Tokenizer.cs +52 -0
- data/platform/wp7/RhoRubyLib/db/DBAdapter.cs +1129 -0
- data/platform/wp7/RhoRubyLib/db/DBAttrManager.cs +92 -0
- data/platform/wp7/RhoRubyLib/db/DBException.cs +35 -0
- data/platform/wp7/RhoRubyLib/db/IDBCallback.cs +10 -0
- data/platform/wp7/RhoRubyLib/db/IDBResult.cs +33 -0
- data/platform/wp7/RhoRubyLib/db/IDBStorage.cs +32 -0
- data/platform/wp7/RhoRubyLib/db/SqliteCopyResult.cs +79 -0
- data/platform/wp7/RhoRubyLib/db/SqliteResult.cs +267 -0
- data/platform/wp7/RhoRubyLib/db/SqliteStorage.cs +319 -0
- data/platform/wp7/RhoRubyLib/json/JSONArrayIterator.cs +63 -0
- data/platform/wp7/RhoRubyLib/json/JSONEntry.cs +96 -0
- data/platform/wp7/RhoRubyLib/json/JSONStructIterator.cs +77 -0
- data/platform/wp7/RhoRubyLib/json/JsonParser.cs +483 -0
- data/platform/wp7/RhoRubyLib/json/RJSONTokener.cs +406 -0
- data/platform/wp7/RhoRubyLib/logging/IRhoLogSink.cs +12 -0
- data/platform/wp7/RhoRubyLib/logging/RhoLogConf.cs +161 -0
- data/platform/wp7/RhoRubyLib/logging/RhoLogFileSink.cs +174 -0
- data/platform/wp7/RhoRubyLib/logging/RhoLogger.cs +320 -0
- data/platform/wp7/RhoRubyLib/net/AsyncHttp.cs +362 -0
- data/platform/wp7/RhoRubyLib/net/HttpServer.cs +466 -0
- data/platform/wp7/RhoRubyLib/net/NetRequest.cs +717 -0
- data/platform/wp7/RhoRubyLib/net/NetResponse.cs +64 -0
- data/platform/wp7/RhoRubyLib/net/URI.cs +187 -0
- data/platform/wp7/RhoRubyLib/rubyext/RhoAsyncHttp.cs +43 -0
- data/platform/wp7/RhoRubyLib/rubyext/RhoDatabase.cs +177 -0
- data/platform/wp7/RhoRubyLib/rubyext/RhoJSON.cs +39 -0
- data/platform/wp7/RhoRubyLib/rubyext/RhoKernelOps.cs +19 -0
- data/platform/wp7/RhoRubyLib/rubyext/RhoNativeBar.cs +117 -0
- data/platform/wp7/RhoRubyLib/rubyext/RhoSyncEngine.cs +199 -0
- data/platform/wp7/RhoRubyLib/rubyext/RhoWebView.cs +49 -0
- data/platform/wp7/RhoRubyLib/sync/ClientRegister.cs +142 -0
- data/platform/wp7/RhoRubyLib/sync/ISyncProtocol.cs +23 -0
- data/platform/wp7/RhoRubyLib/sync/ISyncStatusListener.cs +10 -0
- data/platform/wp7/RhoRubyLib/sync/SyncEngine.cs +1051 -0
- data/platform/wp7/RhoRubyLib/sync/SyncNotify.cs +651 -0
- data/platform/wp7/RhoRubyLib/sync/SyncProtocol_3.cs +79 -0
- data/platform/wp7/RhoRubyLib/sync/SyncSource.cs +1105 -0
- data/platform/wp7/RhoRubyLib/sync/SyncThread.cs +301 -0
- data/platform/wp7/WPApplication.sln +50 -0
- data/platform/wp7/WPApplication/App.xaml +19 -0
- data/platform/wp7/WPApplication/App.xaml.cs +211 -0
- data/platform/wp7/WPApplication/ApplicationIcon.png +0 -0
- data/platform/wp7/WPApplication/Background.png +0 -0
- data/platform/wp7/WPApplication/MainPage.xaml +44 -0
- data/platform/wp7/WPApplication/MainPage.xaml.cs +132 -0
- data/platform/wp7/WPApplication/Properties/AppManifest.xml +6 -0
- data/platform/wp7/WPApplication/Properties/AssemblyInfo.cs +35 -0
- data/platform/wp7/WPApplication/Properties/WMAppManifest.xml +32 -0
- data/platform/wp7/WPApplication/SplashScreenImage.jpg +0 -0
- data/platform/wp7/WPApplication/WPApplication.csproj +201 -0
- data/platform/wp7/WPApplication/WP_PlatformAdaptationLayer.cs +88 -0
- data/platform/wp7/WPApplication/app_manifest.txt +1 -0
- data/platform/wp7/WPApplication/readme.htm +40 -0
- data/platform/wp7/WPApplication/readme2.htm +37 -0
- data/platform/wp7/WPApplication/rho/apps/app/Model1/edit.bb.erb +29 -0
- data/platform/wp7/WPApplication/rho/apps/app/Model1/edit.erb +32 -0
- data/platform/wp7/WPApplication/rho/apps/app/Model1/index.bb.erb +21 -0
- data/platform/wp7/WPApplication/rho/apps/app/Model1/index.erb +26 -0
- data/platform/wp7/WPApplication/rho/apps/app/Model1/model1.rb +10 -0
- data/platform/wp7/WPApplication/rho/apps/app/Model1/model1_controller.rb +58 -0
- data/platform/wp7/WPApplication/rho/apps/app/Model1/new.bb.erb +29 -0
- data/platform/wp7/WPApplication/rho/apps/app/Model1/new.erb +31 -0
- data/platform/wp7/WPApplication/rho/apps/app/Model1/show.bb.erb +26 -0
- data/platform/wp7/WPApplication/rho/apps/app/Model1/show.erb +28 -0
- data/platform/wp7/WPApplication/rho/apps/app/Settings/controller.rb +75 -0
- data/platform/wp7/WPApplication/rho/apps/app/Settings/home.bb.erb +17 -0
- data/platform/wp7/WPApplication/rho/apps/app/Settings/home.erb +20 -0
- data/platform/wp7/WPApplication/rho/apps/app/Settings/index.bb.erb +32 -0
- data/platform/wp7/WPApplication/rho/apps/app/Settings/index.erb +30 -0
- data/platform/wp7/WPApplication/rho/apps/app/Settings/login.bb.erb +35 -0
- data/platform/wp7/WPApplication/rho/apps/app/Settings/login.erb +27 -0
- data/platform/wp7/WPApplication/rho/apps/app/Settings/reset.bb.erb +15 -0
- data/platform/wp7/WPApplication/rho/apps/app/Settings/reset.erb +17 -0
- data/platform/wp7/WPApplication/rho/apps/app/Settings/wait.bb.erb +3 -0
- data/platform/wp7/WPApplication/rho/apps/app/Settings/wait.erb +5 -0
- data/platform/wp7/WPApplication/rho/apps/app/application.rb +16 -0
- data/platform/wp7/WPApplication/rho/apps/app/helpers/application_helper.rb +126 -0
- data/platform/wp7/WPApplication/rho/apps/app/helpers/browser_helper.rb +18 -0
- data/platform/wp7/WPApplication/rho/apps/app/index.bb.erb +26 -0
- data/platform/wp7/WPApplication/rho/apps/app/index.erb +26 -0
- data/platform/wp7/WPApplication/rho/apps/app/layout.erb +45 -0
- data/platform/wp7/WPApplication/rho/apps/app/loading.html +11 -0
- data/platform/wp7/WPApplication/rho/apps/app_manifest.txt +1 -0
- data/platform/wp7/WPApplication/rho/apps/public/css/android.css +330 -0
- data/platform/wp7/WPApplication/rho/apps/public/css/blackberry.css +115 -0
- data/platform/wp7/WPApplication/rho/apps/public/css/iphone.css +410 -0
- data/platform/wp7/WPApplication/rho/apps/public/css/windows_mobile.css +222 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/IUI_LICENSE.txt +21 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/android/btn_check_off.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/android/btn_check_on.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/android/btn_radio_off.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/android/btn_radio_on.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/android/disclosure.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/android/ic_menu_more.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/backButton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/blueButton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/cancel.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/grayButton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/disclosure.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/disclosure_detail.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/backButton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/blueButton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/cancel.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/chevron.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/grayButton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/listArrowSel.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/listGroup.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/loading.gif +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/on_off.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/pinstripes.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/selection.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/thumb.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/toggle.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/toggleOn.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/toolButton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/toolbar.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/whiteButton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/radiobutton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/select.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/switch.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iui-logo-touch-icon.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/listArrow.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/listArrowDown.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/listArrowSel.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/listGroup.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/loading.gif +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/pinstripes.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/right_button.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/selection.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/thumb.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/toggle.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/toggleOn.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/toolButton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/toolButton_new.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/toolbar.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/whiteButton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/jqtouch/jqtouch-iphone.css +9 -0
- data/platform/wp7/WPApplication/rho/apps/public/jqtouch/jqtouch.css +374 -0
- data/platform/wp7/WPApplication/rho/apps/public/jqtouch/jqtouch.js +742 -0
- data/platform/wp7/WPApplication/rho/apps/public/jqtouch/jqtouch.transitions.js +60 -0
- data/platform/wp7/WPApplication/rho/apps/public/jqtouch/jquery.1.3.2.min.js +19 -0
- data/platform/wp7/WPApplication/rho/apps/public/js/application.js +1 -0
- data/platform/wp7/WPApplication/rho/apps/public/js/rho.js +4 -0
- data/platform/wp7/WPApplication/rho/apps/public/js/rhogeolocation-wm.js +59 -0
- data/platform/wp7/WPApplication/rho/apps/public/js/rhogeolocation.js +11 -0
- data/platform/wp7/WPApplication/rho/apps/rhoconfig.txt +32 -0
- data/platform/wp7/WPApplication/rhoconfig.txt +32 -0
- data/platform/wp7/WPApplication/windows_mobile.css +222 -0
- data/platform/wp7/build/wp.rake +261 -0
- data/platform/wp7/rhodes.sln +79 -0
- data/platform/wp7/rhodes/App.xaml +19 -0
- data/platform/wp7/rhodes/App.xaml.cs +144 -0
- data/platform/wp7/rhodes/Background.png +0 -0
- data/platform/wp7/rhodes/MainPage.xaml +44 -0
- data/platform/wp7/rhodes/MainPage.xaml.cs +98 -0
- data/platform/wp7/rhodes/Properties/AppManifest.xml +6 -0
- data/platform/wp7/rhodes/Properties/AssemblyInfo.cs +35 -0
- data/platform/wp7/rhodes/Properties/WMAppManifest.xml +31 -0
- data/platform/wp7/rhodes/Rhodes.csproj +127 -0
- data/platform/wp7/rhodes/SplashScreenImage.jpg +0 -0
- data/platform/wp7/rhodes/icon.png +0 -0
- data/platform/wp7/sqlite3/Properties/AssemblyInfo.cs +35 -0
- data/platform/wp7/sqlite3/SQLiteClient.cs +550 -0
- data/platform/wp7/sqlite3/SqliteWrapper/BtreeInt_h.cs +774 -0
- data/platform/wp7/sqlite3/SqliteWrapper/Btree_h.cs +280 -0
- data/platform/wp7/sqlite3/SqliteWrapper/ClassDiagram1.cd +1306 -0
- data/platform/wp7/sqlite3/SqliteWrapper/Delagates.cs +365 -0
- data/platform/wp7/sqlite3/SqliteWrapper/Hash_h.cs +133 -0
- data/platform/wp7/sqlite3/SqliteWrapper/VdbeInt_h.cs +620 -0
- data/platform/wp7/sqlite3/SqliteWrapper/Vdbe_h.cs +302 -0
- data/platform/wp7/sqlite3/SqliteWrapper/_Custom.cs +449 -0
- data/platform/wp7/sqlite3/SqliteWrapper/alter_c.cs +872 -0
- data/platform/wp7/sqlite3/SqliteWrapper/analyze_c.cs +757 -0
- data/platform/wp7/sqlite3/SqliteWrapper/attach_c.cs +628 -0
- data/platform/wp7/sqlite3/SqliteWrapper/auth_c.cs +268 -0
- data/platform/wp7/sqlite3/SqliteWrapper/backup_c.cs +737 -0
- data/platform/wp7/sqlite3/SqliteWrapper/bitvec_c.cs +509 -0
- data/platform/wp7/sqlite3/SqliteWrapper/btmutex_c.cs +379 -0
- data/platform/wp7/sqlite3/SqliteWrapper/btree_c.cs +9138 -0
- data/platform/wp7/sqlite3/SqliteWrapper/build_c.cs +4189 -0
- data/platform/wp7/sqlite3/SqliteWrapper/callback_c.cs +548 -0
- data/platform/wp7/sqlite3/SqliteWrapper/complete_c.cs +342 -0
- data/platform/wp7/sqlite3/SqliteWrapper/ctime_cs.cs +408 -0
- data/platform/wp7/sqlite3/SqliteWrapper/date_c.cs +1317 -0
- data/platform/wp7/sqlite3/SqliteWrapper/delete_c.cs +726 -0
- data/platform/wp7/sqlite3/SqliteWrapper/expr_c.cs +4406 -0
- data/platform/wp7/sqlite3/SqliteWrapper/fault_c.cs +115 -0
- data/platform/wp7/sqlite3/SqliteWrapper/fkey_c.cs +1330 -0
- data/platform/wp7/sqlite3/SqliteWrapper/func_c.cs +2025 -0
- data/platform/wp7/sqlite3/SqliteWrapper/global_c.cs +228 -0
- data/platform/wp7/sqlite3/SqliteWrapper/hash_c.cs +351 -0
- data/platform/wp7/sqlite3/SqliteWrapper/hwtime_c.cs +101 -0
- data/platform/wp7/sqlite3/SqliteWrapper/insert_c.cs +2122 -0
- data/platform/wp7/sqlite3/SqliteWrapper/journal_c.cs +247 -0
- data/platform/wp7/sqlite3/SqliteWrapper/keywordhash_h.cs +302 -0
- data/platform/wp7/sqlite3/SqliteWrapper/legacy_c.cs +223 -0
- data/platform/wp7/sqlite3/SqliteWrapper/loadext_c.cs +683 -0
- data/platform/wp7/sqlite3/SqliteWrapper/main_c.cs +2716 -0
- data/platform/wp7/sqlite3/SqliteWrapper/malloc_c.cs +977 -0
- data/platform/wp7/sqlite3/SqliteWrapper/mem_Pool.cs +394 -0
- data/platform/wp7/sqlite3/SqliteWrapper/memjournal_c.cs +315 -0
- data/platform/wp7/sqlite3/SqliteWrapper/mutex_c.cs +182 -0
- data/platform/wp7/sqlite3/SqliteWrapper/mutex_h.cs +91 -0
- data/platform/wp7/sqlite3/SqliteWrapper/mutex_noop_c.cs +202 -0
- data/platform/wp7/sqlite3/SqliteWrapper/mutex_w32.cs +344 -0
- data/platform/wp7/sqlite3/SqliteWrapper/notify_c.cs +347 -0
- data/platform/wp7/sqlite3/SqliteWrapper/opcodes_c.cs +171 -0
- data/platform/wp7/sqlite3/SqliteWrapper/opcodes_h.cs +346 -0
- data/platform/wp7/sqlite3/SqliteWrapper/os_c.cs +367 -0
- data/platform/wp7/sqlite3/SqliteWrapper/os_common_h.cs +174 -0
- data/platform/wp7/sqlite3/SqliteWrapper/os_h.cs +295 -0
- data/platform/wp7/sqlite3/SqliteWrapper/os_win_c.cs +1255 -0
- data/platform/wp7/sqlite3/SqliteWrapper/pager_c.cs +6078 -0
- data/platform/wp7/sqlite3/SqliteWrapper/pager_h.cs +188 -0
- data/platform/wp7/sqlite3/SqliteWrapper/parse_c.cs +4045 -0
- data/platform/wp7/sqlite3/SqliteWrapper/parse_h.cs +331 -0
- data/platform/wp7/sqlite3/SqliteWrapper/pcache1_c.cs +969 -0
- data/platform/wp7/sqlite3/SqliteWrapper/pcache_c.cs +712 -0
- data/platform/wp7/sqlite3/SqliteWrapper/pcache_h.cs +213 -0
- data/platform/wp7/sqlite3/SqliteWrapper/pragma_c.cs +1767 -0
- data/platform/wp7/sqlite3/SqliteWrapper/prepare_c.cs +1015 -0
- data/platform/wp7/sqlite3/SqliteWrapper/printf_c.cs +1300 -0
- data/platform/wp7/sqlite3/SqliteWrapper/random_c.cs +201 -0
- data/platform/wp7/sqlite3/SqliteWrapper/resolve_c.cs +1396 -0
- data/platform/wp7/sqlite3/SqliteWrapper/rowset_c.cs +519 -0
- data/platform/wp7/sqlite3/SqliteWrapper/select_c.cs +4878 -0
- data/platform/wp7/sqlite3/SqliteWrapper/sqlite3_h.cs +6253 -0
- data/platform/wp7/sqlite3/SqliteWrapper/sqlite3ext_h.cs +397 -0
- data/platform/wp7/sqlite3/SqliteWrapper/sqliteInt_h.cs +4075 -0
- data/platform/wp7/sqlite3/SqliteWrapper/sqliteLimit_h.cs +214 -0
- data/platform/wp7/sqlite3/SqliteWrapper/sqliteicu_h.cs +39 -0
- data/platform/wp7/sqlite3/SqliteWrapper/status_c.cs +155 -0
- data/platform/wp7/sqlite3/SqliteWrapper/table_c.cs +222 -0
- data/platform/wp7/sqlite3/SqliteWrapper/tokenize_c.cs +673 -0
- data/platform/wp7/sqlite3/SqliteWrapper/trigger_c.cs +1219 -0
- data/platform/wp7/sqlite3/SqliteWrapper/update_c.cs +766 -0
- data/platform/wp7/sqlite3/SqliteWrapper/utf_c.cs +612 -0
- data/platform/wp7/sqlite3/SqliteWrapper/util_c.cs +1476 -0
- data/platform/wp7/sqlite3/SqliteWrapper/vacuum_c.cs +382 -0
- data/platform/wp7/sqlite3/SqliteWrapper/vdbe_c.cs +6566 -0
- data/platform/wp7/sqlite3/SqliteWrapper/vdbeapi_c.cs +1557 -0
- data/platform/wp7/sqlite3/SqliteWrapper/vdbeaux_c.cs +4019 -0
- data/platform/wp7/sqlite3/SqliteWrapper/vdbeblob_c.cs +396 -0
- data/platform/wp7/sqlite3/SqliteWrapper/vdbemem_c.cs +1480 -0
- data/platform/wp7/sqlite3/SqliteWrapper/vdbetrace_c.cs +181 -0
- data/platform/wp7/sqlite3/SqliteWrapper/vtab_c.cs +957 -0
- data/platform/wp7/sqlite3/SqliteWrapper/walker_c.cs +174 -0
- data/platform/wp7/sqlite3/SqliteWrapper/where_c.cs +4651 -0
- data/platform/wp7/sqlite3/sqlite3.csproj +155 -0
- data/rakefile.rb +60 -2
- data/res/build-tools/7za.exe +0 -0
- data/res/build-tools/RhoAppRunner.exe +0 -0
- data/res/build-tools/xruby-0.3.3.jar +0 -0
- data/res/generators/rhogen.rb +9 -1
- data/res/generators/templates/application/app/Settings/reset.erb +1 -1
- data/res/generators/templates/application/app/layout.erb +17 -10
- data/res/generators/templates/application/build.yml +5 -3
- data/res/generators/templates/application/public/jqtouch/changes.txt +20 -0
- data/res/generators/templates/application/public/jqtouch/jqtouch.js +12 -4
- data/res/generators/templates/application/public/jqtouch/jquery.1.3.2.min.js +1 -1
- data/res/generators/templates/application/public/js/wp7.js +7 -0
- data/res/generators/templates/model/controller.rb +5 -6
- data/rhobuild.yml.example +1 -0
- data/rhodes.gemspec +2 -1
- data/spec/framework_spec/app/spec/core/dir/close_spec.rb +1 -1
- data/spec/framework_spec/app/spec/core/dir/shared/pwd.rb +13 -11
- data/spec/framework_spec/app/spec/core/env/shared/store.rb +12 -10
- data/spec/framework_spec/app/spec/core/env/update_spec.rb +1 -0
- data/spec/framework_spec/app/spec/core/file/expand_path_spec.rb +3 -2
- data/spec/framework_spec/app/spec/core/file/fixtures/file_types.rb +7 -1
- data/spec/framework_spec/app/spec/core/file/flock_spec.rb +8 -1
- data/spec/framework_spec/app/spec/core/file/ftype_spec.rb +5 -3
- data/spec/framework_spec/app/spec/core/file/lchmod_spec.rb +1 -1
- data/spec/framework_spec/app/spec/core/file/setgid_spec.rb +1 -1
- data/spec/framework_spec/app/spec/core/file/setuid_spec.rb +1 -1
- data/spec/framework_spec/app/spec/core/file/stat/ftype_spec.rb +6 -4
- data/spec/framework_spec/app/spec/core/file/truncate_spec.rb +5 -1
- data/spec/framework_spec/app/spec/core/float/to_s_spec.rb +1 -1
- data/spec/framework_spec/app/spec/core/process/gid_spec.rb +5 -3
- data/spec/framework_spec/app/spec/core/process/groups_spec.rb +11 -9
- data/spec/framework_spec/app/spec/core/process/uid_spec.rb +5 -3
- data/spec/framework_spec/app/spec/language/execution_spec.rb +10 -6
- data/spec/framework_spec/app/spec/shared/file/directory.rb +6 -1
- data/spec/framework_spec/app/spec/shared/file/executable.rb +7 -1
- data/spec/framework_spec/app/spec/shared/file/file.rb +6 -1
- data/spec/framework_spec/app/spec/shared/file/readable.rb +13 -4
- data/spec/framework_spec/app/spec/shared/file/writable.rb +6 -1
- data/spec/phone_spec/app/spec/rho_controller_spec.rb +11 -0
- data/spec/phone_spec/app/spec/rho_spec.rb +11 -0
- data/spec/phone_spec/app/spec/rhom_object_spec.rb +102 -6
- data/spec/phone_spec/app/spec/string/end_with_spec.rb +4 -1
- data/spec/phone_spec/app/spec/string/slice_spec.rb +5 -1
- data/spec/phone_spec/app/spec/string/start_with_spec.rb +4 -0
- data/spec/phone_spec/app/spec/syncengine_spec.rb +73 -6
- data/spec/phone_spec/app/spec_runner.rb +7 -3
- metadata +380 -41
- data/Manifest.txt +0 -5819
- data/platform/bb/Hsqldb/Hsqldb.cso +0 -5
- data/platform/bb/Hsqldb/Hsqldb.jdp +0 -197
- data/platform/bb/RhoBundle/RhoBundle.cso +0 -5
- data/platform/bb/RhoBundle/RhoBundle.jdp +0 -42
- data/platform/bb/RubyVM/RubyVM.cso +0 -5
- data/platform/bb/RubyVM/RubyVM.jdp +0 -467
- data/platform/bb/rhodes/rhodes.csl +0 -3
- data/platform/bb/rhodes/rhodes.cso +0 -5
- data/platform/bb/rhodes/rhodes.jdp +0 -104
@@ -86,6 +86,8 @@ public:
|
|
86
86
|
String create_response(String const &reason, HeaderList const &headers, String const &body);
|
87
87
|
|
88
88
|
static int isIndex(String const &uri);
|
89
|
+
|
90
|
+
bool call_ruby_method(String const &uri, String const &body, String& strReply);
|
89
91
|
private:
|
90
92
|
bool init();
|
91
93
|
void close_listener();
|
@@ -5,6 +5,8 @@
|
|
5
5
|
#define choose choose_datetime
|
6
6
|
extern void choose_datetime_with_range(char* callback, char* title, long initial_time, int format, char* data, long min_time, long max_time);
|
7
7
|
#define choose_with_range choose_datetime_with_range
|
8
|
+
extern void set_change_value_callback_datetime(char* callback);
|
9
|
+
#define set_change_value_callback set_change_value_callback_datetime
|
8
10
|
%}
|
9
11
|
|
10
12
|
%typemap(in) long initial_time {
|
@@ -71,3 +73,4 @@
|
|
71
73
|
|
72
74
|
extern void choose(char* callback, char* title, long initial_time, int format, char* data);
|
73
75
|
extern void choose_with_range(char* callback, char* title, long initial_time, int format, char* data, long min_time, long max_time);
|
76
|
+
extern void set_change_value_callback(char* callback);
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
-
* Version
|
3
|
+
* Version 1.3.31
|
4
4
|
*
|
5
5
|
* This file is not intended to be easily readable and contains a number of
|
6
6
|
* coding conventions designed to improve portability and efficiency. Do not make
|
@@ -9,7 +9,6 @@
|
|
9
9
|
* ----------------------------------------------------------------------------- */
|
10
10
|
|
11
11
|
#define SWIGRUBY
|
12
|
-
|
13
12
|
/* -----------------------------------------------------------------------------
|
14
13
|
* This section contains generic SWIG labels for method/variable
|
15
14
|
* declarations/attributes, and other compiler dependent labels.
|
@@ -17,14 +16,14 @@
|
|
17
16
|
|
18
17
|
/* template workaround for compilers that cannot correctly implement the C++ standard */
|
19
18
|
#ifndef SWIGTEMPLATEDISAMBIGUATOR
|
20
|
-
# if defined(__SUNPRO_CC)
|
21
|
-
#
|
22
|
-
#
|
23
|
-
|
24
|
-
|
25
|
-
#
|
19
|
+
# if defined(__SUNPRO_CC)
|
20
|
+
# if (__SUNPRO_CC <= 0x560)
|
21
|
+
# define SWIGTEMPLATEDISAMBIGUATOR template
|
22
|
+
# else
|
23
|
+
# define SWIGTEMPLATEDISAMBIGUATOR
|
24
|
+
# endif
|
26
25
|
# else
|
27
|
-
#
|
26
|
+
# define SWIGTEMPLATEDISAMBIGUATOR
|
28
27
|
# endif
|
29
28
|
#endif
|
30
29
|
|
@@ -52,12 +51,6 @@
|
|
52
51
|
# endif
|
53
52
|
#endif
|
54
53
|
|
55
|
-
#ifndef SWIG_MSC_UNSUPPRESS_4505
|
56
|
-
# if defined(_MSC_VER)
|
57
|
-
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
|
58
|
-
# endif
|
59
|
-
#endif
|
60
|
-
|
61
54
|
#ifndef SWIGUNUSEDPARM
|
62
55
|
# ifdef __cplusplus
|
63
56
|
# define SWIGUNUSEDPARM(p)
|
@@ -113,12 +106,6 @@
|
|
113
106
|
# define _CRT_SECURE_NO_DEPRECATE
|
114
107
|
#endif
|
115
108
|
|
116
|
-
/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
|
117
|
-
#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
|
118
|
-
# define _SCL_SECURE_NO_DEPRECATE
|
119
|
-
#endif
|
120
|
-
|
121
|
-
|
122
109
|
/* -----------------------------------------------------------------------------
|
123
110
|
* This section contains generic SWIG labels for method/variable
|
124
111
|
* declarations/attributes, and other compiler dependent labels.
|
@@ -126,14 +113,14 @@
|
|
126
113
|
|
127
114
|
/* template workaround for compilers that cannot correctly implement the C++ standard */
|
128
115
|
#ifndef SWIGTEMPLATEDISAMBIGUATOR
|
129
|
-
# if defined(__SUNPRO_CC)
|
130
|
-
#
|
131
|
-
#
|
132
|
-
|
133
|
-
|
134
|
-
#
|
116
|
+
# if defined(__SUNPRO_CC)
|
117
|
+
# if (__SUNPRO_CC <= 0x560)
|
118
|
+
# define SWIGTEMPLATEDISAMBIGUATOR template
|
119
|
+
# else
|
120
|
+
# define SWIGTEMPLATEDISAMBIGUATOR
|
121
|
+
# endif
|
135
122
|
# else
|
136
|
-
#
|
123
|
+
# define SWIGTEMPLATEDISAMBIGUATOR
|
137
124
|
# endif
|
138
125
|
#endif
|
139
126
|
|
@@ -161,12 +148,6 @@
|
|
161
148
|
# endif
|
162
149
|
#endif
|
163
150
|
|
164
|
-
#ifndef SWIG_MSC_UNSUPPRESS_4505
|
165
|
-
# if defined(_MSC_VER)
|
166
|
-
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
|
167
|
-
# endif
|
168
|
-
#endif
|
169
|
-
|
170
151
|
#ifndef SWIGUNUSEDPARM
|
171
152
|
# ifdef __cplusplus
|
172
153
|
# define SWIGUNUSEDPARM(p)
|
@@ -222,22 +203,16 @@
|
|
222
203
|
# define _CRT_SECURE_NO_DEPRECATE
|
223
204
|
#endif
|
224
205
|
|
225
|
-
/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
|
226
|
-
#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
|
227
|
-
# define _SCL_SECURE_NO_DEPRECATE
|
228
|
-
#endif
|
229
|
-
|
230
|
-
|
231
206
|
/* -----------------------------------------------------------------------------
|
232
207
|
* swigrun.swg
|
233
208
|
*
|
234
|
-
* This file contains generic
|
209
|
+
* This file contains generic CAPI SWIG runtime support for pointer
|
235
210
|
* type checking.
|
236
211
|
* ----------------------------------------------------------------------------- */
|
237
212
|
|
238
213
|
/* This should only be incremented when either the layout of swig_type_info changes,
|
239
214
|
or for whatever reason, the runtime changes incompatibly */
|
240
|
-
#define SWIG_RUNTIME_VERSION "
|
215
|
+
#define SWIG_RUNTIME_VERSION "3"
|
241
216
|
|
242
217
|
/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
|
243
218
|
#ifdef SWIG_TYPE_TABLE
|
@@ -250,11 +225,11 @@
|
|
250
225
|
|
251
226
|
/*
|
252
227
|
You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
|
253
|
-
creating a static or dynamic library from the
|
254
|
-
In 99.9% of the cases,
|
228
|
+
creating a static or dynamic library from the swig runtime code.
|
229
|
+
In 99.9% of the cases, swig just needs to declare them as 'static'.
|
255
230
|
|
256
|
-
But only do this if strictly necessary, ie, if you have problems
|
257
|
-
with your compiler or
|
231
|
+
But only do this if is strictly necessary, ie, if you have problems
|
232
|
+
with your compiler or so.
|
258
233
|
*/
|
259
234
|
|
260
235
|
#ifndef SWIGRUNTIME
|
@@ -272,7 +247,6 @@
|
|
272
247
|
|
273
248
|
/* Flags for pointer conversions */
|
274
249
|
#define SWIG_POINTER_DISOWN 0x1
|
275
|
-
#define SWIG_CAST_NEW_MEMORY 0x2
|
276
250
|
|
277
251
|
/* Flags for new pointer objects */
|
278
252
|
#define SWIG_POINTER_OWN 0x1
|
@@ -281,14 +255,14 @@
|
|
281
255
|
/*
|
282
256
|
Flags/methods for returning states.
|
283
257
|
|
284
|
-
The
|
258
|
+
The swig conversion methods, as ConvertPtr, return and integer
|
285
259
|
that tells if the conversion was successful or not. And if not,
|
286
260
|
an error code can be returned (see swigerrors.swg for the codes).
|
287
261
|
|
288
262
|
Use the following macros/flags to set or process the returning
|
289
263
|
states.
|
290
264
|
|
291
|
-
In old versions
|
265
|
+
In old swig versions, you usually write code as:
|
292
266
|
|
293
267
|
if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
|
294
268
|
// success code
|
@@ -296,7 +270,7 @@
|
|
296
270
|
//fail code
|
297
271
|
}
|
298
272
|
|
299
|
-
Now you can be more explicit:
|
273
|
+
Now you can be more explicit as:
|
300
274
|
|
301
275
|
int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
|
302
276
|
if (SWIG_IsOK(res)) {
|
@@ -305,7 +279,7 @@
|
|
305
279
|
// fail code
|
306
280
|
}
|
307
281
|
|
308
|
-
|
282
|
+
that seems to be the same, but now you can also do
|
309
283
|
|
310
284
|
Type *ptr;
|
311
285
|
int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
|
@@ -323,7 +297,7 @@
|
|
323
297
|
|
324
298
|
I.e., now SWIG_ConvertPtr can return new objects and you can
|
325
299
|
identify the case and take care of the deallocation. Of course that
|
326
|
-
also
|
300
|
+
requires also to SWIG_ConvertPtr to return new result values, as
|
327
301
|
|
328
302
|
int SWIG_ConvertPtr(obj, ptr,...) {
|
329
303
|
if (<obj is ok>) {
|
@@ -341,7 +315,7 @@
|
|
341
315
|
|
342
316
|
Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
|
343
317
|
more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
|
344
|
-
|
318
|
+
swig errors code.
|
345
319
|
|
346
320
|
Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
|
347
321
|
allows to return the 'cast rank', for example, if you have this
|
@@ -355,8 +329,9 @@
|
|
355
329
|
fooi(1) // cast rank '0'
|
356
330
|
|
357
331
|
just use the SWIG_AddCast()/SWIG_CheckState()
|
358
|
-
*/
|
359
332
|
|
333
|
+
|
334
|
+
*/
|
360
335
|
#define SWIG_OK (0)
|
361
336
|
#define SWIG_ERROR (-1)
|
362
337
|
#define SWIG_IsOK(r) (r >= 0)
|
@@ -381,6 +356,7 @@
|
|
381
356
|
#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
|
382
357
|
#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
|
383
358
|
|
359
|
+
|
384
360
|
/* Cast-Rank Mode */
|
385
361
|
#if defined(SWIG_CASTRANK_MODE)
|
386
362
|
# ifndef SWIG_TypeRank
|
@@ -403,16 +379,18 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) {
|
|
403
379
|
#endif
|
404
380
|
|
405
381
|
|
382
|
+
|
383
|
+
|
406
384
|
#include <string.h>
|
407
385
|
|
408
386
|
#ifdef __cplusplus
|
409
387
|
extern "C" {
|
410
388
|
#endif
|
411
389
|
|
412
|
-
typedef void *(*swig_converter_func)(void
|
390
|
+
typedef void *(*swig_converter_func)(void *);
|
413
391
|
typedef struct swig_type_info *(*swig_dycast_func)(void **);
|
414
392
|
|
415
|
-
/* Structure to store
|
393
|
+
/* Structure to store inforomation on one type */
|
416
394
|
typedef struct swig_type_info {
|
417
395
|
const char *name; /* mangled name of this type */
|
418
396
|
const char *str; /* human readable name of this type */
|
@@ -457,7 +435,7 @@ SWIG_TypeNameComp(const char *f1, const char *l1,
|
|
457
435
|
while ((*f2 == ' ') && (f2 != l2)) ++f2;
|
458
436
|
if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
|
459
437
|
}
|
460
|
-
return (
|
438
|
+
return (l1 - f1) - (l2 - f2);
|
461
439
|
}
|
462
440
|
|
463
441
|
/*
|
@@ -499,66 +477,48 @@ SWIG_TypeCompare(const char *nb, const char *tb) {
|
|
499
477
|
}
|
500
478
|
|
501
479
|
|
480
|
+
/* think of this as a c++ template<> or a scheme macro */
|
481
|
+
#define SWIG_TypeCheck_Template(comparison, ty) \
|
482
|
+
if (ty) { \
|
483
|
+
swig_cast_info *iter = ty->cast; \
|
484
|
+
while (iter) { \
|
485
|
+
if (comparison) { \
|
486
|
+
if (iter == ty->cast) return iter; \
|
487
|
+
/* Move iter to the top of the linked list */ \
|
488
|
+
iter->prev->next = iter->next; \
|
489
|
+
if (iter->next) \
|
490
|
+
iter->next->prev = iter->prev; \
|
491
|
+
iter->next = ty->cast; \
|
492
|
+
iter->prev = 0; \
|
493
|
+
if (ty->cast) ty->cast->prev = iter; \
|
494
|
+
ty->cast = iter; \
|
495
|
+
return iter; \
|
496
|
+
} \
|
497
|
+
iter = iter->next; \
|
498
|
+
} \
|
499
|
+
} \
|
500
|
+
return 0
|
501
|
+
|
502
502
|
/*
|
503
503
|
Check the typename
|
504
504
|
*/
|
505
505
|
SWIGRUNTIME swig_cast_info *
|
506
506
|
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
|
507
|
-
|
508
|
-
swig_cast_info *iter = ty->cast;
|
509
|
-
while (iter) {
|
510
|
-
if (strcmp(iter->type->name, c) == 0) {
|
511
|
-
if (iter == ty->cast)
|
512
|
-
return iter;
|
513
|
-
/* Move iter to the top of the linked list */
|
514
|
-
iter->prev->next = iter->next;
|
515
|
-
if (iter->next)
|
516
|
-
iter->next->prev = iter->prev;
|
517
|
-
iter->next = ty->cast;
|
518
|
-
iter->prev = 0;
|
519
|
-
if (ty->cast) ty->cast->prev = iter;
|
520
|
-
ty->cast = iter;
|
521
|
-
return iter;
|
522
|
-
}
|
523
|
-
iter = iter->next;
|
524
|
-
}
|
525
|
-
}
|
526
|
-
return 0;
|
507
|
+
SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
|
527
508
|
}
|
528
509
|
|
529
|
-
/*
|
530
|
-
Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
|
531
|
-
*/
|
510
|
+
/* Same as previous function, except strcmp is replaced with a pointer comparison */
|
532
511
|
SWIGRUNTIME swig_cast_info *
|
533
|
-
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *
|
534
|
-
|
535
|
-
swig_cast_info *iter = ty->cast;
|
536
|
-
while (iter) {
|
537
|
-
if (iter->type == from) {
|
538
|
-
if (iter == ty->cast)
|
539
|
-
return iter;
|
540
|
-
/* Move iter to the top of the linked list */
|
541
|
-
iter->prev->next = iter->next;
|
542
|
-
if (iter->next)
|
543
|
-
iter->next->prev = iter->prev;
|
544
|
-
iter->next = ty->cast;
|
545
|
-
iter->prev = 0;
|
546
|
-
if (ty->cast) ty->cast->prev = iter;
|
547
|
-
ty->cast = iter;
|
548
|
-
return iter;
|
549
|
-
}
|
550
|
-
iter = iter->next;
|
551
|
-
}
|
552
|
-
}
|
553
|
-
return 0;
|
512
|
+
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
|
513
|
+
SWIG_TypeCheck_Template(iter->type == from, into);
|
554
514
|
}
|
555
515
|
|
556
516
|
/*
|
557
517
|
Cast a pointer up an inheritance hierarchy
|
558
518
|
*/
|
559
519
|
SWIGRUNTIMEINLINE void *
|
560
|
-
SWIG_TypeCast(swig_cast_info *ty, void *ptr
|
561
|
-
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr
|
520
|
+
SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
|
521
|
+
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
|
562
522
|
}
|
563
523
|
|
564
524
|
/*
|
@@ -831,33 +791,6 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
831
791
|
|
832
792
|
#include <ruby.h>
|
833
793
|
|
834
|
-
/* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which
|
835
|
-
* breaks using rb_intern as an lvalue, as SWIG does. We work around this
|
836
|
-
* issue for now by disabling this.
|
837
|
-
* https://sourceforge.net/tracker/?func=detail&aid=2859614&group_id=1645&atid=101645
|
838
|
-
*/
|
839
|
-
#ifdef rb_intern
|
840
|
-
# undef rb_intern
|
841
|
-
#endif
|
842
|
-
|
843
|
-
/* Remove global macros defined in Ruby's win32.h */
|
844
|
-
#ifdef write
|
845
|
-
# undef write
|
846
|
-
#endif
|
847
|
-
#ifdef read
|
848
|
-
# undef read
|
849
|
-
#endif
|
850
|
-
#ifdef bind
|
851
|
-
# undef bind
|
852
|
-
#endif
|
853
|
-
#ifdef close
|
854
|
-
# undef close
|
855
|
-
#endif
|
856
|
-
#ifdef connect
|
857
|
-
# undef connect
|
858
|
-
#endif
|
859
|
-
|
860
|
-
|
861
794
|
/* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */
|
862
795
|
#ifndef NUM2LL
|
863
796
|
#define NUM2LL(x) NUM2LONG((x))
|
@@ -886,44 +819,12 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
886
819
|
#ifndef RSTRING_PTR
|
887
820
|
# define RSTRING_PTR(x) RSTRING(x)->ptr
|
888
821
|
#endif
|
889
|
-
#ifndef RSTRING_END
|
890
|
-
# define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x))
|
891
|
-
#endif
|
892
822
|
#ifndef RARRAY_LEN
|
893
823
|
# define RARRAY_LEN(x) RARRAY(x)->len
|
894
824
|
#endif
|
895
825
|
#ifndef RARRAY_PTR
|
896
826
|
# define RARRAY_PTR(x) RARRAY(x)->ptr
|
897
827
|
#endif
|
898
|
-
#ifndef RFLOAT_VALUE
|
899
|
-
# define RFLOAT_VALUE(x) RFLOAT(x)->value
|
900
|
-
#endif
|
901
|
-
#ifndef DOUBLE2NUM
|
902
|
-
# define DOUBLE2NUM(x) rb_float_new(x)
|
903
|
-
#endif
|
904
|
-
#ifndef RHASH_TBL
|
905
|
-
# define RHASH_TBL(x) (RHASH(x)->tbl)
|
906
|
-
#endif
|
907
|
-
#ifndef RHASH_ITER_LEV
|
908
|
-
# define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev)
|
909
|
-
#endif
|
910
|
-
#ifndef RHASH_IFNONE
|
911
|
-
# define RHASH_IFNONE(x) (RHASH(x)->ifnone)
|
912
|
-
#endif
|
913
|
-
#ifndef RHASH_SIZE
|
914
|
-
# define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries)
|
915
|
-
#endif
|
916
|
-
#ifndef RHASH_EMPTY_P
|
917
|
-
# define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0)
|
918
|
-
#endif
|
919
|
-
#ifndef RSTRUCT_LEN
|
920
|
-
# define RSTRUCT_LEN(x) RSTRUCT(x)->len
|
921
|
-
#endif
|
922
|
-
#ifndef RSTRUCT_PTR
|
923
|
-
# define RSTRUCT_PTR(x) RSTRUCT(x)->ptr
|
924
|
-
#endif
|
925
|
-
|
926
|
-
|
927
828
|
|
928
829
|
/*
|
929
830
|
* Need to be very careful about how these macros are defined, especially
|
@@ -985,7 +886,6 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
985
886
|
#define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new")
|
986
887
|
#endif
|
987
888
|
|
988
|
-
static VALUE _mSWIG = Qnil;
|
989
889
|
|
990
890
|
/* -----------------------------------------------------------------------------
|
991
891
|
* error manipulation
|
@@ -1076,73 +976,12 @@ SWIG_Ruby_ErrorType(int SWIG_code) {
|
|
1076
976
|
}
|
1077
977
|
|
1078
978
|
|
1079
|
-
/* This function is called when a user inputs a wrong argument to
|
1080
|
-
a method.
|
1081
|
-
*/
|
1082
|
-
SWIGINTERN
|
1083
|
-
const char* Ruby_Format_TypeError( const char* msg,
|
1084
|
-
const char* type,
|
1085
|
-
const char* name,
|
1086
|
-
const int argn,
|
1087
|
-
VALUE input )
|
1088
|
-
{
|
1089
|
-
char buf[128];
|
1090
|
-
VALUE str;
|
1091
|
-
VALUE asStr;
|
1092
|
-
if ( msg && *msg )
|
1093
|
-
{
|
1094
|
-
str = rb_str_new2(msg);
|
1095
|
-
}
|
1096
|
-
else
|
1097
|
-
{
|
1098
|
-
str = rb_str_new(NULL, 0);
|
1099
|
-
}
|
1100
|
-
|
1101
|
-
str = rb_str_cat2( str, "Expected argument " );
|
1102
|
-
sprintf( buf, "%d of type ", argn-1 );
|
1103
|
-
str = rb_str_cat2( str, buf );
|
1104
|
-
str = rb_str_cat2( str, type );
|
1105
|
-
str = rb_str_cat2( str, ", but got " );
|
1106
|
-
str = rb_str_cat2( str, rb_obj_classname(input) );
|
1107
|
-
str = rb_str_cat2( str, " " );
|
1108
|
-
asStr = rb_inspect(input);
|
1109
|
-
if ( RSTRING_LEN(asStr) > 30 )
|
1110
|
-
{
|
1111
|
-
str = rb_str_cat( str, StringValuePtr(asStr), 30 );
|
1112
|
-
str = rb_str_cat2( str, "..." );
|
1113
|
-
}
|
1114
|
-
else
|
1115
|
-
{
|
1116
|
-
str = rb_str_append( str, asStr );
|
1117
|
-
}
|
1118
|
-
|
1119
|
-
if ( name )
|
1120
|
-
{
|
1121
|
-
str = rb_str_cat2( str, "\n\tin SWIG method '" );
|
1122
|
-
str = rb_str_cat2( str, name );
|
1123
|
-
str = rb_str_cat2( str, "'" );
|
1124
|
-
}
|
1125
|
-
|
1126
|
-
return StringValuePtr( str );
|
1127
|
-
}
|
1128
979
|
|
1129
|
-
/* This function is called when an overloaded method fails */
|
1130
|
-
SWIGINTERN
|
1131
|
-
void Ruby_Format_OverloadedError(
|
1132
|
-
const int argc,
|
1133
|
-
const int maxargs,
|
1134
|
-
const char* method,
|
1135
|
-
const char* prototypes
|
1136
|
-
)
|
1137
|
-
{
|
1138
|
-
const char* msg = "Wrong # of arguments";
|
1139
|
-
if ( argc <= maxargs ) msg = "Wrong arguments";
|
1140
|
-
rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n"
|
1141
|
-
"Possible C/C++ prototypes are:\n%s",
|
1142
|
-
msg, method, prototypes);
|
1143
|
-
}
|
1144
980
|
|
1145
981
|
/* -----------------------------------------------------------------------------
|
982
|
+
* See the LICENSE file for information on copyright, usage and redistribution
|
983
|
+
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
984
|
+
*
|
1146
985
|
* rubytracking.swg
|
1147
986
|
*
|
1148
987
|
* This file contains support for tracking mappings from
|
@@ -1155,51 +994,23 @@ void Ruby_Format_OverloadedError(
|
|
1155
994
|
extern "C" {
|
1156
995
|
#endif
|
1157
996
|
|
1158
|
-
/* Ruby 1.8 actually assumes the first case. */
|
1159
|
-
#if SIZEOF_VOIDP == SIZEOF_LONG
|
1160
|
-
# define SWIG2NUM(v) LONG2NUM((unsigned long)v)
|
1161
|
-
# define NUM2SWIG(x) (unsigned long)NUM2LONG(x)
|
1162
|
-
#elif SIZEOF_VOIDP == SIZEOF_LONG_LONG
|
1163
|
-
# define SWIG2NUM(v) LL2NUM((unsigned long long)v)
|
1164
|
-
# define NUM2SWIG(x) (unsigned long long)NUM2LL(x)
|
1165
|
-
#else
|
1166
|
-
# error sizeof(void*) is not the same as long or long long
|
1167
|
-
#endif
|
1168
|
-
|
1169
997
|
|
1170
998
|
/* Global Ruby hash table to store Trackings from C/C++
|
1171
|
-
structs to Ruby Objects.
|
1172
|
-
|
1173
|
-
static VALUE swig_ruby_trackings = Qnil;
|
999
|
+
structs to Ruby Objects. */
|
1000
|
+
static VALUE swig_ruby_trackings;
|
1174
1001
|
|
1175
1002
|
/* Global variable that stores a reference to the ruby
|
1176
1003
|
hash table delete function. */
|
1177
|
-
static ID swig_ruby_hash_delete;
|
1004
|
+
static ID swig_ruby_hash_delete = 0;
|
1178
1005
|
|
1179
1006
|
/* Setup a Ruby hash table to store Trackings */
|
1180
1007
|
SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
|
1181
1008
|
/* Create a ruby hash table to store Trackings from C++
|
1182
|
-
objects to Ruby objects.
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
1187
|
-
This is done to allow multiple DSOs to share the same
|
1188
|
-
tracking table.
|
1189
|
-
*/
|
1190
|
-
ID trackings_id = rb_intern( "@__trackings__" );
|
1191
|
-
VALUE verbose = rb_gv_get("VERBOSE");
|
1192
|
-
rb_gv_set("VERBOSE", Qfalse);
|
1193
|
-
swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id );
|
1194
|
-
rb_gv_set("VERBOSE", verbose);
|
1195
|
-
|
1196
|
-
/* No, it hasn't. Create one ourselves */
|
1197
|
-
if ( swig_ruby_trackings == Qnil )
|
1198
|
-
{
|
1199
|
-
swig_ruby_trackings = rb_hash_new();
|
1200
|
-
rb_ivar_set( _mSWIG, trackings_id, swig_ruby_trackings );
|
1201
|
-
}
|
1202
|
-
|
1009
|
+
objects to Ruby objects. Also make sure to tell
|
1010
|
+
the garabage collector about the hash table. */
|
1011
|
+
swig_ruby_trackings = rb_hash_new();
|
1012
|
+
rb_gc_register_address(&swig_ruby_trackings);
|
1013
|
+
|
1203
1014
|
/* Now store a reference to the hash table delete function
|
1204
1015
|
so that we only have to look it up once.*/
|
1205
1016
|
swig_ruby_hash_delete = rb_intern("delete");
|
@@ -1212,7 +1023,8 @@ SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) {
|
|
1212
1023
|
a Ruby number object. */
|
1213
1024
|
|
1214
1025
|
/* Convert the pointer to a Ruby number */
|
1215
|
-
|
1026
|
+
unsigned long value = (unsigned long) ptr;
|
1027
|
+
return LONG2NUM(value);
|
1216
1028
|
}
|
1217
1029
|
|
1218
1030
|
/* Get a Ruby number to reference an object */
|
@@ -1222,7 +1034,8 @@ SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) {
|
|
1222
1034
|
a Ruby number object. */
|
1223
1035
|
|
1224
1036
|
/* Convert the Object to a Ruby number */
|
1225
|
-
|
1037
|
+
unsigned long value = (unsigned long) object;
|
1038
|
+
return LONG2NUM(value);
|
1226
1039
|
}
|
1227
1040
|
|
1228
1041
|
/* Get a Ruby object from a previously stored reference */
|
@@ -1230,8 +1043,9 @@ SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) {
|
|
1230
1043
|
/* The provided Ruby number object is a reference
|
1231
1044
|
to the Ruby object we want.*/
|
1232
1045
|
|
1233
|
-
/*
|
1234
|
-
|
1046
|
+
/* First convert the Ruby number to a C number */
|
1047
|
+
unsigned long value = NUM2LONG(reference);
|
1048
|
+
return (VALUE) value;
|
1235
1049
|
}
|
1236
1050
|
|
1237
1051
|
/* Add a Tracking from a C/C++ struct to a Ruby object */
|
@@ -1323,21 +1137,15 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
1323
1137
|
return target;
|
1324
1138
|
}
|
1325
1139
|
|
1326
|
-
/* For ruby1.8.4 and earlier. */
|
1327
|
-
#ifndef RUBY_INIT_STACK
|
1328
|
-
RUBY_EXTERN void Init_stack(VALUE* addr);
|
1329
|
-
# define RUBY_INIT_STACK \
|
1330
|
-
VALUE variable_in_this_stack_frame; \
|
1331
|
-
Init_stack(&variable_in_this_stack_frame);
|
1332
|
-
#endif
|
1333
|
-
|
1334
|
-
|
1335
1140
|
#ifdef __cplusplus
|
1336
1141
|
}
|
1337
1142
|
#endif
|
1338
1143
|
|
1339
1144
|
|
1340
1145
|
/* -----------------------------------------------------------------------------
|
1146
|
+
* See the LICENSE file for information on copyright, usage and redistribution
|
1147
|
+
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
1148
|
+
*
|
1341
1149
|
* rubyrun.swg
|
1342
1150
|
*
|
1343
1151
|
* This file contains the runtime support for Ruby modules
|
@@ -1381,7 +1189,7 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
1381
1189
|
/* Error manipulation */
|
1382
1190
|
|
1383
1191
|
#define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
|
1384
|
-
#define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code),
|
1192
|
+
#define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), msg)
|
1385
1193
|
#define SWIG_fail goto fail
|
1386
1194
|
|
1387
1195
|
|
@@ -1393,7 +1201,6 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
1393
1201
|
#define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
|
1394
1202
|
#define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
|
1395
1203
|
|
1396
|
-
#include "assert.h"
|
1397
1204
|
|
1398
1205
|
/* -----------------------------------------------------------------------------
|
1399
1206
|
* pointers/data manipulation
|
@@ -1401,6 +1208,9 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
1401
1208
|
|
1402
1209
|
#ifdef __cplusplus
|
1403
1210
|
extern "C" {
|
1211
|
+
#if 0
|
1212
|
+
} /* cc-mode */
|
1213
|
+
#endif
|
1404
1214
|
#endif
|
1405
1215
|
|
1406
1216
|
typedef struct {
|
@@ -1412,44 +1222,10 @@ typedef struct {
|
|
1412
1222
|
} swig_class;
|
1413
1223
|
|
1414
1224
|
|
1415
|
-
|
1225
|
+
static VALUE _mSWIG = Qnil;
|
1416
1226
|
static VALUE _cSWIG_Pointer = Qnil;
|
1417
1227
|
static VALUE swig_runtime_data_type_pointer = Qnil;
|
1418
1228
|
|
1419
|
-
/* Global IDs used to keep some internal SWIG stuff */
|
1420
|
-
static ID swig_arity_id = 0;
|
1421
|
-
static ID swig_call_id = 0;
|
1422
|
-
|
1423
|
-
/*
|
1424
|
-
If your swig extension is to be run within an embedded ruby and has
|
1425
|
-
director callbacks, you should set -DRUBY_EMBEDDED during compilation.
|
1426
|
-
This will reset ruby's stack frame on each entry point from the main
|
1427
|
-
program the first time a virtual director function is invoked (in a
|
1428
|
-
non-recursive way).
|
1429
|
-
If this is not done, you run the risk of Ruby trashing the stack.
|
1430
|
-
*/
|
1431
|
-
|
1432
|
-
#ifdef RUBY_EMBEDDED
|
1433
|
-
|
1434
|
-
# define SWIG_INIT_STACK \
|
1435
|
-
if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \
|
1436
|
-
++swig_virtual_calls;
|
1437
|
-
# define SWIG_RELEASE_STACK --swig_virtual_calls;
|
1438
|
-
# define Ruby_DirectorTypeMismatchException(x) \
|
1439
|
-
rb_raise( rb_eTypeError, "%s", x ); return c_result;
|
1440
|
-
|
1441
|
-
static unsigned int swig_virtual_calls = 0;
|
1442
|
-
|
1443
|
-
#else /* normal non-embedded extension */
|
1444
|
-
|
1445
|
-
# define SWIG_INIT_STACK
|
1446
|
-
# define SWIG_RELEASE_STACK
|
1447
|
-
# define Ruby_DirectorTypeMismatchException(x) \
|
1448
|
-
throw Swig::DirectorTypeMismatchException( x );
|
1449
|
-
|
1450
|
-
#endif /* RUBY_EMBEDDED */
|
1451
|
-
|
1452
|
-
|
1453
1229
|
SWIGRUNTIME VALUE
|
1454
1230
|
getExceptionClass(void) {
|
1455
1231
|
static int init = 0;
|
@@ -1481,8 +1257,6 @@ SWIG_Ruby_InitRuntime(void)
|
|
1481
1257
|
{
|
1482
1258
|
if (_mSWIG == Qnil) {
|
1483
1259
|
_mSWIG = rb_define_module("SWIG");
|
1484
|
-
swig_call_id = rb_intern("call");
|
1485
|
-
swig_arity_id = rb_intern("arity");
|
1486
1260
|
}
|
1487
1261
|
}
|
1488
1262
|
|
@@ -1506,7 +1280,7 @@ SWIGRUNTIME VALUE
|
|
1506
1280
|
SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
1507
1281
|
{
|
1508
1282
|
int own = flags & SWIG_POINTER_OWN;
|
1509
|
-
|
1283
|
+
|
1510
1284
|
char *klass_name;
|
1511
1285
|
swig_class *sklass;
|
1512
1286
|
VALUE klass;
|
@@ -1519,15 +1293,14 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
|
1519
1293
|
sklass = (swig_class *) type->clientdata;
|
1520
1294
|
|
1521
1295
|
/* Are we tracking this class and have we already returned this Ruby object? */
|
1522
|
-
|
1523
|
-
if (track) {
|
1296
|
+
if (sklass->trackObjects) {
|
1524
1297
|
obj = SWIG_RubyInstanceFor(ptr);
|
1525
1298
|
|
1526
1299
|
/* Check the object's type and make sure it has the correct type.
|
1527
1300
|
It might not in cases where methods do things like
|
1528
1301
|
downcast methods. */
|
1529
1302
|
if (obj != Qnil) {
|
1530
|
-
VALUE value = rb_iv_get(obj, "
|
1303
|
+
VALUE value = rb_iv_get(obj, "__swigtype__");
|
1531
1304
|
char* type_name = RSTRING_PTR(value);
|
1532
1305
|
|
1533
1306
|
if (strcmp(type->name, type_name) == 0) {
|
@@ -1537,13 +1310,10 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
|
1537
1310
|
}
|
1538
1311
|
|
1539
1312
|
/* Create a new Ruby object */
|
1540
|
-
obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark),
|
1541
|
-
( own ? VOIDFUNC(sklass->destroy) :
|
1542
|
-
(track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 )
|
1543
|
-
), ptr);
|
1313
|
+
obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark), (own ? VOIDFUNC(sklass->destroy) : 0), ptr);
|
1544
1314
|
|
1545
1315
|
/* If tracking is on for this class then track this object. */
|
1546
|
-
if (
|
1316
|
+
if (sklass->trackObjects) {
|
1547
1317
|
SWIG_RubyAddTracking(ptr, obj);
|
1548
1318
|
}
|
1549
1319
|
} else {
|
@@ -1553,7 +1323,7 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
|
1553
1323
|
free((void *) klass_name);
|
1554
1324
|
obj = Data_Wrap_Struct(klass, 0, 0, ptr);
|
1555
1325
|
}
|
1556
|
-
rb_iv_set(obj, "
|
1326
|
+
rb_iv_set(obj, "__swigtype__", rb_str_new2(type->name));
|
1557
1327
|
|
1558
1328
|
return obj;
|
1559
1329
|
}
|
@@ -1565,7 +1335,7 @@ SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
|
|
1565
1335
|
VALUE obj;
|
1566
1336
|
swig_class *sklass = (swig_class *) type->clientdata;
|
1567
1337
|
obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0);
|
1568
|
-
rb_iv_set(obj, "
|
1338
|
+
rb_iv_set(obj, "__swigtype__", rb_str_new2(type->name));
|
1569
1339
|
return obj;
|
1570
1340
|
}
|
1571
1341
|
|
@@ -1573,7 +1343,7 @@ SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
|
|
1573
1343
|
SWIGRUNTIMEINLINE char *
|
1574
1344
|
SWIG_Ruby_MangleStr(VALUE obj)
|
1575
1345
|
{
|
1576
|
-
VALUE stype = rb_iv_get(obj, "
|
1346
|
+
VALUE stype = rb_iv_get(obj, "__swigtype__");
|
1577
1347
|
return StringValuePtr(stype);
|
1578
1348
|
}
|
1579
1349
|
|
@@ -1655,11 +1425,8 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1655
1425
|
tc = SWIG_TypeCheck(c, ty);
|
1656
1426
|
if (!tc) {
|
1657
1427
|
return SWIG_ERROR;
|
1658
|
-
} else {
|
1659
|
-
int newmemory = 0;
|
1660
|
-
*ptr = SWIG_TypeCast(tc, vptr, &newmemory);
|
1661
|
-
assert(!newmemory); /* newmemory handling not yet implemented */
|
1662
1428
|
}
|
1429
|
+
*ptr = SWIG_TypeCast(tc, vptr);
|
1663
1430
|
} else {
|
1664
1431
|
*ptr = vptr;
|
1665
1432
|
}
|
@@ -1740,42 +1507,10 @@ SWIG_Ruby_SetModule(swig_module_info *pointer)
|
|
1740
1507
|
rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
|
1741
1508
|
}
|
1742
1509
|
|
1743
|
-
/* This function can be used to check whether a proc or method or similarly
|
1744
|
-
callable function has been passed. Usually used in a %typecheck, like:
|
1745
|
-
|
1746
|
-
%typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) {
|
1747
|
-
$result = SWIG_Ruby_isCallable( $input );
|
1748
|
-
}
|
1749
|
-
*/
|
1750
|
-
SWIGINTERN
|
1751
|
-
int SWIG_Ruby_isCallable( VALUE proc )
|
1752
|
-
{
|
1753
|
-
if ( rb_respond_to( proc, swig_call_id ) == Qtrue )
|
1754
|
-
return 1;
|
1755
|
-
return 0;
|
1756
|
-
}
|
1757
|
-
|
1758
|
-
/* This function can be used to check the arity (number of arguments)
|
1759
|
-
a proc or method can take. Usually used in a %typecheck.
|
1760
|
-
Valid arities will be that equal to minimal or those < 0
|
1761
|
-
which indicate a variable number of parameters at the end.
|
1762
|
-
*/
|
1763
|
-
SWIGINTERN
|
1764
|
-
int SWIG_Ruby_arity( VALUE proc, int minimal )
|
1765
|
-
{
|
1766
|
-
if ( rb_respond_to( proc, swig_arity_id ) == Qtrue )
|
1767
|
-
{
|
1768
|
-
VALUE num = rb_funcall( proc, swig_arity_id, 0 );
|
1769
|
-
int arity = NUM2INT(num);
|
1770
|
-
if ( arity < 0 && (arity+1) < -minimal ) return 1;
|
1771
|
-
if ( arity == minimal ) return 1;
|
1772
|
-
return 1;
|
1773
|
-
}
|
1774
|
-
return 0;
|
1775
|
-
}
|
1776
|
-
|
1777
|
-
|
1778
1510
|
#ifdef __cplusplus
|
1511
|
+
#if 0
|
1512
|
+
{ /* cc-mode */
|
1513
|
+
#endif
|
1779
1514
|
}
|
1780
1515
|
#endif
|
1781
1516
|
|
@@ -1802,11 +1537,7 @@ static swig_module_info swig_module = {swig_types, 1, 0, 0, 0, 0};
|
|
1802
1537
|
|
1803
1538
|
static VALUE mDateTimePicker;
|
1804
1539
|
|
1805
|
-
#define
|
1806
|
-
#define SWIG_RUBY_THREAD_END_BLOCK
|
1807
|
-
|
1808
|
-
|
1809
|
-
#define SWIGVERSION 0x020000
|
1540
|
+
#define SWIGVERSION 0x010331
|
1810
1541
|
#define SWIG_VERSION SWIGVERSION
|
1811
1542
|
|
1812
1543
|
|
@@ -1818,6 +1549,8 @@ static VALUE mDateTimePicker;
|
|
1818
1549
|
#define choose choose_datetime
|
1819
1550
|
extern void choose_datetime_with_range(char* callback, char* title, long initial_time, int format, char* data, long min_time, long max_time);
|
1820
1551
|
#define choose_with_range choose_datetime_with_range
|
1552
|
+
extern void set_change_value_callback_datetime(char* callback);
|
1553
|
+
#define set_change_value_callback set_change_value_callback_datetime
|
1821
1554
|
|
1822
1555
|
|
1823
1556
|
SWIGINTERN swig_type_info*
|
@@ -1837,11 +1570,11 @@ SWIGINTERN int
|
|
1837
1570
|
SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
1838
1571
|
{
|
1839
1572
|
if (TYPE(obj) == T_STRING) {
|
1840
|
-
|
1841
|
-
|
1842
|
-
|
1573
|
+
|
1574
|
+
|
1575
|
+
|
1843
1576
|
char *cstr = STR2CSTR(obj);
|
1844
|
-
|
1577
|
+
|
1845
1578
|
size_t size = RSTRING_LEN(obj) + 1;
|
1846
1579
|
if (cptr) {
|
1847
1580
|
if (alloc) {
|
@@ -1875,12 +1608,14 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
1875
1608
|
|
1876
1609
|
|
1877
1610
|
#include <limits.h>
|
1878
|
-
#
|
1879
|
-
#
|
1880
|
-
#
|
1881
|
-
#
|
1882
|
-
#
|
1883
|
-
#
|
1611
|
+
#ifndef LLONG_MIN
|
1612
|
+
# define LLONG_MIN LONG_LONG_MIN
|
1613
|
+
#endif
|
1614
|
+
#ifndef LLONG_MAX
|
1615
|
+
# define LLONG_MAX LONG_LONG_MAX
|
1616
|
+
#endif
|
1617
|
+
#ifndef ULLONG_MAX
|
1618
|
+
# define ULLONG_MAX ULONG_LONG_MAX
|
1884
1619
|
#endif
|
1885
1620
|
|
1886
1621
|
|
@@ -1891,7 +1626,7 @@ SWIG_ruby_failed(void)
|
|
1891
1626
|
}
|
1892
1627
|
|
1893
1628
|
|
1894
|
-
/*@SWIG
|
1629
|
+
/*@SWIG:%ruby_aux_method@*/
|
1895
1630
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
|
1896
1631
|
{
|
1897
1632
|
VALUE obj = args[0];
|
@@ -1962,12 +1697,12 @@ _wrap_choose(int argc, VALUE *argv, VALUE self) {
|
|
1962
1697
|
}
|
1963
1698
|
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
1964
1699
|
if (!SWIG_IsOK(res1)) {
|
1965
|
-
SWIG_exception_fail(SWIG_ArgError(res1),
|
1700
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "choose" "', argument " "1"" of type '" "char *""'");
|
1966
1701
|
}
|
1967
1702
|
arg1 = (char *)(buf1);
|
1968
1703
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
1969
1704
|
if (!SWIG_IsOK(res2)) {
|
1970
|
-
SWIG_exception_fail(SWIG_ArgError(res2),
|
1705
|
+
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "choose" "', argument " "2"" of type '" "char *""'");
|
1971
1706
|
}
|
1972
1707
|
arg2 = (char *)(buf2);
|
1973
1708
|
{
|
@@ -1990,13 +1725,13 @@ _wrap_choose(int argc, VALUE *argv, VALUE self) {
|
|
1990
1725
|
}
|
1991
1726
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
1992
1727
|
if (!SWIG_IsOK(ecode4)) {
|
1993
|
-
SWIG_exception_fail(SWIG_ArgError(ecode4),
|
1728
|
+
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "choose" "', argument " "4"" of type '" "int""'");
|
1994
1729
|
}
|
1995
1730
|
arg4 = (int)(val4);
|
1996
1731
|
if (argc > 4) {
|
1997
1732
|
res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5);
|
1998
1733
|
if (!SWIG_IsOK(res5)) {
|
1999
|
-
SWIG_exception_fail(SWIG_ArgError(res5),
|
1734
|
+
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "choose" "', argument " "5"" of type '" "char *""'");
|
2000
1735
|
}
|
2001
1736
|
arg5 = (char *)(buf5);
|
2002
1737
|
}
|
@@ -2042,12 +1777,12 @@ _wrap_choose_with_range(int argc, VALUE *argv, VALUE self) {
|
|
2042
1777
|
}
|
2043
1778
|
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
2044
1779
|
if (!SWIG_IsOK(res1)) {
|
2045
|
-
SWIG_exception_fail(SWIG_ArgError(res1),
|
1780
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "choose_with_range" "', argument " "1"" of type '" "char *""'");
|
2046
1781
|
}
|
2047
1782
|
arg1 = (char *)(buf1);
|
2048
1783
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
2049
1784
|
if (!SWIG_IsOK(res2)) {
|
2050
|
-
SWIG_exception_fail(SWIG_ArgError(res2),
|
1785
|
+
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "choose_with_range" "', argument " "2"" of type '" "char *""'");
|
2051
1786
|
}
|
2052
1787
|
arg2 = (char *)(buf2);
|
2053
1788
|
{
|
@@ -2070,13 +1805,13 @@ _wrap_choose_with_range(int argc, VALUE *argv, VALUE self) {
|
|
2070
1805
|
}
|
2071
1806
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
2072
1807
|
if (!SWIG_IsOK(ecode4)) {
|
2073
|
-
SWIG_exception_fail(SWIG_ArgError(ecode4),
|
1808
|
+
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "choose_with_range" "', argument " "4"" of type '" "int""'");
|
2074
1809
|
}
|
2075
1810
|
arg4 = (int)(val4);
|
2076
1811
|
if (argc > 4) {
|
2077
1812
|
res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5);
|
2078
1813
|
if (!SWIG_IsOK(res5)) {
|
2079
|
-
SWIG_exception_fail(SWIG_ArgError(res5),
|
1814
|
+
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "choose_with_range" "', argument " "5"" of type '" "char *""'");
|
2080
1815
|
}
|
2081
1816
|
arg5 = (char *)(buf5);
|
2082
1817
|
}
|
@@ -2133,6 +1868,30 @@ fail:
|
|
2133
1868
|
}
|
2134
1869
|
|
2135
1870
|
|
1871
|
+
SWIGINTERN VALUE
|
1872
|
+
_wrap_set_change_value_callback(int argc, VALUE *argv, VALUE self) {
|
1873
|
+
char *arg1 = (char *) 0 ;
|
1874
|
+
int res1 ;
|
1875
|
+
char *buf1 = 0 ;
|
1876
|
+
int alloc1 = 0 ;
|
1877
|
+
|
1878
|
+
if ((argc < 1) || (argc > 1)) {
|
1879
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
1880
|
+
}
|
1881
|
+
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
1882
|
+
if (!SWIG_IsOK(res1)) {
|
1883
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "set_change_value_callback" "', argument " "1"" of type '" "char *""'");
|
1884
|
+
}
|
1885
|
+
arg1 = (char *)(buf1);
|
1886
|
+
set_change_value_callback(arg1);
|
1887
|
+
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
1888
|
+
return Qnil;
|
1889
|
+
fail:
|
1890
|
+
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
1891
|
+
return Qnil;
|
1892
|
+
}
|
1893
|
+
|
1894
|
+
|
2136
1895
|
|
2137
1896
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
|
2138
1897
|
|
@@ -2208,7 +1967,7 @@ SWIGRUNTIME void
|
|
2208
1967
|
SWIG_InitializeModule(void *clientdata) {
|
2209
1968
|
size_t i;
|
2210
1969
|
swig_module_info *module_head, *iter;
|
2211
|
-
int found
|
1970
|
+
int found;
|
2212
1971
|
|
2213
1972
|
clientdata = clientdata;
|
2214
1973
|
|
@@ -2218,9 +1977,6 @@ SWIG_InitializeModule(void *clientdata) {
|
|
2218
1977
|
swig_module.type_initial = swig_type_initial;
|
2219
1978
|
swig_module.cast_initial = swig_cast_initial;
|
2220
1979
|
swig_module.next = &swig_module;
|
2221
|
-
init = 1;
|
2222
|
-
} else {
|
2223
|
-
init = 0;
|
2224
1980
|
}
|
2225
1981
|
|
2226
1982
|
/* Try and load any already created modules */
|
@@ -2249,12 +2005,6 @@ SWIG_InitializeModule(void *clientdata) {
|
|
2249
2005
|
module_head->next = &swig_module;
|
2250
2006
|
}
|
2251
2007
|
|
2252
|
-
/* When multiple interpeters are used, a module could have already been initialized in
|
2253
|
-
a different interpreter, but not yet have a pointer in this interpreter.
|
2254
|
-
In this case, we do not want to continue adding types... everything should be
|
2255
|
-
set up already */
|
2256
|
-
if (init == 0) return;
|
2257
|
-
|
2258
2008
|
/* Now work on filling in swig_module.types */
|
2259
2009
|
#ifdef SWIGRUNTIME_DEBUG
|
2260
2010
|
printf("SWIG_InitializeModule: size %d\n", swig_module.size);
|
@@ -2388,9 +2138,7 @@ SWIG_PropagateClientData(void) {
|
|
2388
2138
|
}
|
2389
2139
|
#endif
|
2390
2140
|
|
2391
|
-
/*
|
2392
2141
|
|
2393
|
-
*/
|
2394
2142
|
#ifdef __cplusplus
|
2395
2143
|
extern "C"
|
2396
2144
|
#endif
|
@@ -2408,5 +2156,6 @@ SWIGEXPORT void Init_DateTimePicker(void) {
|
|
2408
2156
|
SWIG_RubyInitializeTrackings();
|
2409
2157
|
rb_define_module_function(mDateTimePicker, "choose", _wrap_choose, -1);
|
2410
2158
|
rb_define_module_function(mDateTimePicker, "choose_with_range", _wrap_choose_with_range, -1);
|
2159
|
+
rb_define_module_function(mDateTimePicker, "set_change_value_callback", _wrap_set_change_value_callback, -1);
|
2411
2160
|
}
|
2412
2161
|
|