r2corba 1.5.1-universal-java → 1.5.5-universal-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/LICENSE +5 -5
- data/README.rdoc +62 -0
- data/THANKS +4 -4
- data/lib/corba.rb +0 -1
- data/lib/corba/cbase/IORMap.rb +0 -1
- data/lib/corba/cbase/ORB.rb +7 -8
- data/lib/corba/cbase/Request.rb +1 -2
- data/lib/corba/cbase/Streams.rb +2 -3
- data/lib/corba/cbase/Stub.rb +0 -1
- data/lib/corba/cbase/Typecode.rb +6 -7
- data/lib/corba/cbase/Values.rb +0 -1
- data/lib/corba/cbase/exception.rb +2 -3
- data/lib/corba/cbase/poa.rb +0 -1
- data/lib/corba/cbase/policies.rb +2 -3
- data/lib/corba/cbase/post_require.rb +1 -2
- data/lib/corba/cbase/require.rb +2 -1
- data/lib/corba/cmds/base.rb +1 -2
- data/lib/corba/cmds/test.rb +0 -1
- data/lib/corba/common/Any.rb +1 -2
- data/lib/corba/common/IDL.rb +5 -9
- data/lib/corba/common/ORB.rb +1 -2
- data/lib/corba/common/Object.rb +4 -2
- data/lib/corba/common/Request.rb +1 -2
- data/lib/corba/common/Servant.rb +0 -1
- data/lib/corba/common/Struct.rb +1 -2
- data/lib/corba/common/Stub.rb +1 -2
- data/lib/corba/common/Typecode.rb +56 -57
- data/lib/corba/common/Union.rb +1 -2
- data/lib/corba/common/Values.rb +1 -2
- data/lib/corba/common/const.rb +2 -3
- data/lib/corba/common/exception.rb +0 -1
- data/lib/corba/common/require.rb +8 -1
- data/lib/corba/common/version.rb +3 -4
- data/lib/corba/idl/BiDirPolicyC.rb +2 -3
- data/lib/corba/idl/CosNamingC.rb +4 -5
- data/lib/corba/idl/CosNamingS.rb +2 -3
- data/lib/corba/idl/IDL.rb +0 -1
- data/lib/corba/idl/IORTable.pidl +0 -1
- data/lib/corba/idl/MessagingC.rb +2 -3
- data/lib/corba/idl/POAC.rb +10 -11
- data/lib/corba/idl/TAO_Ext.pidl +0 -1
- data/lib/corba/idl/r2c_orb.rb +5 -6
- data/lib/corba/idl/require.rb +0 -1
- data/lib/corba/jbase/Any.rb +24 -25
- data/lib/corba/jbase/IORMap.rb +1 -2
- data/lib/corba/jbase/ORB.rb +3 -4
- data/lib/corba/jbase/Object.rb +0 -1
- data/lib/corba/jbase/Request.rb +6 -7
- data/lib/corba/jbase/Servant.rb +11 -12
- data/lib/corba/jbase/ServerRequest.rb +8 -9
- data/lib/corba/jbase/Streams.rb +4 -5
- data/lib/corba/jbase/Stub.rb +0 -1
- data/lib/corba/jbase/Typecode.rb +14 -15
- data/lib/corba/jbase/Values.rb +0 -1
- data/lib/corba/jbase/exception.rb +1 -2
- data/lib/corba/jbase/poa.rb +3 -4
- data/lib/corba/jbase/policies.rb +4 -5
- data/lib/corba/jbase/post_require.rb +0 -1
- data/lib/corba/jbase/require.rb +1 -2
- data/lib/corba/naming.rb +0 -1
- data/lib/corba/naming_service.rb +0 -1
- data/lib/corba/poa.rb +1 -2
- data/lib/corba/policies.rb +1 -2
- data/lib/corba/require.rb +2 -3
- data/lib/corba/svcs/ins/cos_naming.rb +64 -67
- data/lib/corba/svcs/ins/ins.rb +24 -25
- data/lib/corba/svcs/ins/naming_service.rb +3 -4
- data/lib/ridlbe/ruby/config.rb +49 -52
- data/lib/ridlbe/ruby/orb.pidlc +0 -0
- data/lib/ridlbe/ruby/require.rb +0 -1
- data/lib/ridlbe/ruby/walker.rb +38 -38
- data/mkrf_conf_bingem.rb +0 -2
- data/rakelib/bin.rake +2 -3
- data/rakelib/bin.rb +4 -5
- data/rakelib/build.rake +21 -21
- data/rakelib/config.rake +1 -2
- data/rakelib/config.rb +23 -25
- data/rakelib/gem.rake +53 -38
- data/rakelib/gem.rb +8 -9
- data/rakelib/package.rake +1 -2
- data/rakelib/test.rake +0 -1
- data/test/BiDirectional/Test.idl +0 -1
- data/test/BiDirectional/client.rb +4 -5
- data/test/BiDirectional/run_test.rb +1 -2
- data/test/BiDirectional/server.rb +4 -6
- data/test/CORBA_Services/Naming/BindingIterator/Test.idl +0 -1
- data/test/CORBA_Services/Naming/BindingIterator/client.rb +5 -6
- data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +1 -2
- data/test/CORBA_Services/Naming/BindingIterator/server.rb +4 -5
- data/test/CORBA_Services/Naming/Corbaname/Test.idl +0 -1
- data/test/CORBA_Services/Naming/Corbaname/client.rb +3 -4
- data/test/CORBA_Services/Naming/Corbaname/run_test.rb +1 -2
- data/test/CORBA_Services/Naming/Corbaname/server.rb +10 -11
- data/test/CORBA_Services/Naming/Simple/Test.idl +0 -1
- data/test/CORBA_Services/Naming/Simple/client.rb +4 -5
- data/test/CORBA_Services/Naming/Simple/run_test.rb +1 -2
- data/test/CORBA_Services/Naming/Simple/server.rb +4 -5
- data/test/Collocation/Diamond.idl +0 -1
- data/test/Collocation/run_test.rb +0 -1
- data/test/Collocation/test.rb +2 -3
- data/test/Connect_Timeout/Test.idl +0 -1
- data/test/Connect_Timeout/client.rb +3 -5
- data/test/Connect_Timeout/run_test.rb +0 -1
- data/test/DII/Test.idl +0 -1
- data/test/DII/client.rb +5 -6
- data/test/DII/run_test.rb +1 -2
- data/test/DII/server.rb +3 -4
- data/test/DSI/Test.idl +0 -1
- data/test/DSI/client.rb +3 -4
- data/test/DSI/run_test.rb +1 -2
- data/test/DSI/server.rb +3 -4
- data/test/Exceptions/Test.idl +0 -1
- data/test/Exceptions/client.rb +5 -6
- data/test/Exceptions/run_test.rb +1 -2
- data/test/Exceptions/server.rb +3 -4
- data/test/Hello/Test.idl +0 -1
- data/test/Hello/client.rb +3 -4
- data/test/Hello/run_test.rb +1 -2
- data/test/Hello/server.rb +3 -4
- data/test/IDL_Test/Test.idl +4 -1
- data/test/IDL_Test/client.rb +6 -5
- data/test/IDL_Test/run_test.rb +1 -2
- data/test/IDL_Test/server.rb +8 -4
- data/test/IORMap/Test.idl +0 -1
- data/test/IORMap/client.rb +3 -4
- data/test/IORMap/run_test.rb +1 -2
- data/test/IORMap/server.rb +4 -5
- data/test/IORTable/Test.idl +0 -1
- data/test/IORTable/client.rb +3 -4
- data/test/IORTable/run_test.rb +1 -2
- data/test/IORTable/server.rb +4 -5
- data/test/Implicit_Conversion/Test.idl +0 -1
- data/test/Implicit_Conversion/client.rb +4 -5
- data/test/Implicit_Conversion/run_test.rb +1 -2
- data/test/Implicit_Conversion/server.rb +3 -4
- data/test/Multi_Threading/Multiple_ORB/Test.idl +0 -1
- data/test/Multi_Threading/Multiple_ORB/client.rb +3 -4
- data/test/Multi_Threading/Multiple_ORB/run_test.rb +2 -3
- data/test/Multi_Threading/Multiple_ORB/server.rb +3 -4
- data/test/Multi_Threading/Simple/Test.idl +0 -1
- data/test/Multi_Threading/Simple/client.rb +4 -5
- data/test/Multi_Threading/Simple/run_test.rb +1 -2
- data/test/Multi_Threading/Simple/server.rb +4 -5
- data/test/Multi_Threading/Threads/Test.idl +0 -4
- data/test/Multi_Threading/Threads/client.rb +10 -13
- data/test/Multi_Threading/Threads/run_test.rb +1 -2
- data/test/Multi_Threading/Threads/server.rb +4 -7
- data/test/Multi_Threading/Threads/watchdog.rb +3 -3
- data/test/Multiple_Servant_Interfaces/Test.idl +0 -1
- data/test/Multiple_Servant_Interfaces/client.rb +3 -4
- data/test/Multiple_Servant_Interfaces/run_test.rb +1 -2
- data/test/Multiple_Servant_Interfaces/server.rb +3 -4
- data/test/Nil/Test.idl +0 -1
- data/test/Nil/run_test.rb +0 -1
- data/test/Nil/test.rb +11 -9
- data/test/OBV/AbstractInterface/client.rb +3 -4
- data/test/OBV/AbstractInterface/run_test.rb +1 -2
- data/test/OBV/AbstractInterface/server.rb +3 -4
- data/test/OBV/AbstractInterface/test.idl +0 -1
- data/test/OBV/Custom/OBV_impl.rb +0 -1
- data/test/OBV/Custom/client.rb +3 -4
- data/test/OBV/Custom/run_test.rb +1 -2
- data/test/OBV/Custom/server.rb +3 -4
- data/test/OBV/Simple/OBV_impl.rb +0 -1
- data/test/OBV/Simple/client.rb +3 -4
- data/test/OBV/Simple/run_test.rb +1 -2
- data/test/OBV/Simple/server.rb +3 -4
- data/test/OBV/Simple_Event/Event_impl.rb +0 -1
- data/test/OBV/Simple_Event/client.rb +3 -4
- data/test/OBV/Simple_Event/run_test.rb +1 -2
- data/test/OBV/Simple_Event/server.rb +3 -4
- data/test/OBV/Supports/client.rb +3 -4
- data/test/OBV/Supports/run_test.rb +1 -2
- data/test/OBV/Supports/server.rb +3 -4
- data/test/OBV/Supports/supports.idl +0 -1
- data/test/OBV/Supports/supports_impl.rb +0 -1
- data/test/OBV/Tree/client.rb +3 -4
- data/test/OBV/Tree/run_test.rb +1 -2
- data/test/OBV/Tree/server.rb +3 -4
- data/test/OBV/Tree/test.idl +0 -1
- data/test/OBV/Truncatable/Extra.idl +0 -1
- data/test/OBV/Truncatable/Truncatable_impl.rb +1 -2
- data/test/OBV/Truncatable/client.rb +4 -5
- data/test/OBV/Truncatable/run_test.rb +1 -2
- data/test/OBV/Truncatable/server.rb +3 -4
- data/test/OBV/ValueBox/client.rb +44 -45
- data/test/OBV/ValueBox/run_test.rb +1 -2
- data/test/OBV/ValueBox/server.rb +29 -29
- data/test/Object/Test.idl +0 -1
- data/test/Object/client.rb +4 -5
- data/test/Object/run_test.rb +1 -2
- data/test/Object/server.rb +3 -4
- data/test/POA/run_test.rb +0 -1
- data/test/POA/test.rb +4 -5
- data/test/Param_Test/client.rb +8 -9
- data/test/Param_Test/run_test.rb +1 -2
- data/test/Param_Test/server.rb +7 -8
- data/test/Performance/Simple/Test.idl +0 -1
- data/test/Performance/Simple/client.rb +3 -4
- data/test/Performance/Simple/run_test.rb +1 -2
- data/test/Performance/Simple/server.rb +3 -4
- data/test/Policies/Test.idl +0 -1
- data/test/Policies/run_test.rb +0 -1
- data/test/Policies/test.rb +2 -4
- data/test/Timeout/client.rb +6 -7
- data/test/Timeout/run_test.rb +1 -2
- data/test/Timeout/server.rb +4 -5
- data/test/Timeout/test.idl +0 -1
- data/test/lib/assert.rb +0 -2
- data/test/lib/test.rb +15 -17
- data/test/test_runner.rb +6 -8
- metadata +29 -66
- data/README +0 -62
- data/jacorb/lib/antlr-2.7.2.jar +0 -0
- data/jacorb/lib/jacorb-3.5.jar +0 -0
- data/jacorb/lib/jacorb-omgapi-3.5.jar +0 -0
- data/jacorb/lib/jacorb-services-3.5.jar +0 -0
- data/jacorb/lib/slf4j-api-1.7.6.jar +0 -0
- data/jacorb/lib/slf4j-jdk14-1.7.6.jar +0 -0
- data/test/BiDirectional/server.ior +0 -1
- data/test/CORBA_Services/Naming/BindingIterator/ins.ior +0 -1
- data/test/CORBA_Services/Naming/Corbaname/corbaname.ior +0 -1
- data/test/CORBA_Services/Naming/Corbaname/ins.ior +0 -1
- data/test/CORBA_Services/Naming/Simple/ins.ior +0 -1
- data/test/DII/server.ior +0 -1
- data/test/DSI/server.ior +0 -1
- data/test/Exceptions/server.ior +0 -1
- data/test/Hello/gateway.ior +0 -1
- data/test/IDL_Test/server.ior +0 -1
- data/test/IORMap/server.ior +0 -1
- data/test/IORTable/server.ior +0 -0
- data/test/Implicit_Conversion/server.ior +0 -1
- data/test/Multi_Threading/Multiple_ORB/server0.ior +0 -1
- data/test/Multi_Threading/Multiple_ORB/server1.ior +0 -1
- data/test/Multi_Threading/Simple/server.ior +0 -1
- data/test/Multi_Threading/Threads/server.ior +0 -1
- data/test/Multi_Threading/Threads/watchdog.ior +0 -1
- data/test/Multiple_Servant_Interfaces/server.ior +0 -1
- data/test/OBV/AbstractInterface/server.ior +0 -1
- data/test/OBV/Custom/server.ior +0 -1
- data/test/OBV/Simple/server.ior +0 -1
- data/test/OBV/Simple_Event/server.ior +0 -1
- data/test/OBV/Supports/server.ior +0 -1
- data/test/OBV/Tree/server.ior +0 -1
- data/test/OBV/Truncatable/server.ior +0 -1
- data/test/OBV/ValueBox/server.ior +0 -1
- data/test/Object/server.ior +0 -1
- data/test/Param_Test/server.ior +0 -1
- data/test/Performance/Simple/server.ior +0 -1
- data/test/Timeout/server.ior +0 -1
- data/test/test.log +0 -20
- data/test/test2.log +0 -5000
data/lib/corba/svcs/ins/ins.rb
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
|
14
13
|
require 'corba/svcs/ins/naming_service'
|
@@ -16,10 +15,10 @@ require 'optparse'
|
|
16
15
|
|
17
16
|
module R2CORBA
|
18
17
|
module INS
|
19
|
-
INS_VERSION_MAJOR = 0
|
20
|
-
INS_VERSION_MINOR = 1
|
21
|
-
INS_VERSION_RELEASE = 1
|
22
|
-
INS_COPYRIGHT =
|
18
|
+
INS_VERSION_MAJOR = 0
|
19
|
+
INS_VERSION_MINOR = 1
|
20
|
+
INS_VERSION_RELEASE = 1
|
21
|
+
INS_COPYRIGHT = "Copyright (c) 2011-#{Time.now.year} Remedy IT Expertise BV, The Netherlands".freeze
|
23
22
|
|
24
23
|
IS_WIN32 = (RUBY_PLATFORM =~ /win32/ || RUBY_PLATFORM =~ /mingw32/ || ENV['OS'] =~ /windows/i) ? true : false
|
25
24
|
IS_JRUBY = defined?(JRUBY_VERSION)
|
@@ -66,7 +65,7 @@ module R2CORBA
|
|
66
65
|
end
|
67
66
|
|
68
67
|
begin
|
69
|
-
File.open(self.pidfile, File::CREAT|File::EXCL|File::WRONLY) do |f|
|
68
|
+
File.open(self.pidfile, File::CREAT | File::EXCL | File::WRONLY) do |f|
|
70
69
|
f.write Process.pid
|
71
70
|
end
|
72
71
|
report "INS - PID \##{Process.pid} written to '#{self.pidfile}'"
|
@@ -136,7 +135,7 @@ module R2CORBA
|
|
136
135
|
end
|
137
136
|
|
138
137
|
def pidfile_exists?
|
139
|
-
File.
|
138
|
+
File.exist?(self.pidfile)
|
140
139
|
end
|
141
140
|
|
142
141
|
def check_pidfile
|
@@ -218,7 +217,7 @@ module R2CORBA
|
|
218
217
|
end
|
219
218
|
|
220
219
|
begin
|
221
|
-
File.open(self.pidfile, File::CREAT|File::EXCL|File::WRONLY) do |f|
|
220
|
+
File.open(self.pidfile, File::CREAT | File::EXCL | File::WRONLY) do |f|
|
222
221
|
f.write Process.pid
|
223
222
|
end
|
224
223
|
report "INS - PID \##{Process.pid} written to '#{self.pidfile}'"
|
@@ -327,7 +326,7 @@ module R2CORBA
|
|
327
326
|
end
|
328
327
|
|
329
328
|
def pidfile_exists?
|
330
|
-
File.
|
329
|
+
File.exist?(self.pidfile)
|
331
330
|
end
|
332
331
|
|
333
332
|
def check_pidfile
|
@@ -386,12 +385,12 @@ module R2CORBA
|
|
386
385
|
def INS.parse_arg
|
387
386
|
script_name = File.basename($0, '.bat')
|
388
387
|
if not script_name =~ /rins/
|
389
|
-
script_name = "ruby "
|
388
|
+
script_name = "ruby " + $0
|
390
389
|
end
|
391
390
|
|
392
391
|
@@command = ARGV.shift.to_sym unless ARGV.empty?
|
393
392
|
unless COMMANDS.include?(@@command)
|
394
|
-
STDERR.puts "ERROR: Invalid command [#{command}]!\n"+
|
393
|
+
STDERR.puts "ERROR: Invalid command [#{command}]!\n" +
|
395
394
|
"Usage: #{script_name} #{COMMANDS.join('|')} [options]\n"
|
396
395
|
exit 1
|
397
396
|
end
|
@@ -418,7 +417,7 @@ module R2CORBA
|
|
418
417
|
puts " provides help for the specified command\n\n"
|
419
418
|
exit
|
420
419
|
when :version
|
421
|
-
puts "R2CORBA
|
420
|
+
puts "R2CORBA Interoperable Naming Service (INS) #{INS_VERSION_MAJOR}.#{INS_VERSION_MINOR}.#{INS_VERSION_RELEASE}"
|
422
421
|
puts INS_COPYRIGHT
|
423
422
|
puts ''
|
424
423
|
exit
|
@@ -430,42 +429,42 @@ module R2CORBA
|
|
430
429
|
|
431
430
|
opts.on("-i FILE", "--ior=FILE", String,
|
432
431
|
"Specifies filename (incl. path) to write IOR to.",
|
433
|
-
"Default: ./ins.ior") { |v| OPTIONS[:iorfile]=v }
|
432
|
+
"Default: ./ins.ior") { |v| OPTIONS[:iorfile] = v }
|
434
433
|
unless IS_WIN32
|
435
434
|
opts.on("-p DIR", "--pid=DIR", String,
|
436
435
|
"Specifies path to write pidfile to.",
|
437
|
-
"Default: ./") { |v| OPTIONS[:piddir]=v }
|
436
|
+
"Default: ./") { |v| OPTIONS[:piddir] = v }
|
438
437
|
unless IS_JRUBY
|
439
438
|
opts.on("-o DIR", "--output=DIR", String,
|
440
439
|
"Specifies filename to write logfile to.",
|
441
|
-
"Default: <piddir>") { |v| OPTIONS[:logdir]=v }
|
440
|
+
"Default: <piddir>") { |v| OPTIONS[:logdir] = v }
|
442
441
|
end
|
443
442
|
else
|
444
443
|
opts.on("-o DIR", "--output=DIR", String,
|
445
444
|
"Specifies path to write logfile to.",
|
446
|
-
"Default: ./") { |v| OPTIONS[:logdir]=v }
|
445
|
+
"Default: ./") { |v| OPTIONS[:logdir] = v }
|
447
446
|
end
|
448
447
|
opts.on("-l PORTNUM", "--listen=PORTNUM", Integer,
|
449
448
|
"Specifies port number for service endpoint.",
|
450
|
-
"Default: none") { |v| OPTIONS[:port]=v }
|
451
|
-
if
|
449
|
+
"Default: none") { |v| OPTIONS[:port] = v }
|
450
|
+
if IS_JRUBY or R2CORBA::TAO::RUBY_THREAD_SUPPORT
|
452
451
|
opts.on("-t THREADNUM", "--threads=THREADNUM", Integer,
|
453
452
|
"Specifies (minimum) number of threads for service.",
|
454
|
-
"Default: 5") { |v| OPTIONS[:threads]=v }
|
453
|
+
"Default: 5") { |v| OPTIONS[:threads] = v }
|
455
454
|
end
|
456
455
|
|
457
456
|
unless IS_JRUBY || !INS.daemons_installed
|
458
457
|
opts.on("-d", "--daemon",
|
459
458
|
"Run as daemon.",
|
460
|
-
"Default: off") { |v| OPTIONS[:daemon]=v }
|
459
|
+
"Default: off") { |v| OPTIONS[:daemon] = v }
|
461
460
|
end
|
462
461
|
opts.on("-v", "--verbose",
|
463
462
|
"Run verbose.",
|
464
|
-
"Default: off") { |v| OPTIONS[:verbose]=v }
|
463
|
+
"Default: off") { |v| OPTIONS[:verbose] = v }
|
465
464
|
|
466
465
|
opts.on("--debug=LVL", Integer,
|
467
466
|
"Specifies debug level.",
|
468
|
-
"Default: 0") { |v| OPTIONS[:debug]=v }
|
467
|
+
"Default: 0") { |v| OPTIONS[:debug] = v }
|
469
468
|
|
470
469
|
opts.separator ""
|
471
470
|
|
@@ -484,18 +483,18 @@ module R2CORBA
|
|
484
483
|
unless IS_WIN32
|
485
484
|
opts.on("-p DIR", "--pid=DIR", String,
|
486
485
|
"Specifies path where pidfile is stored.",
|
487
|
-
"Default: ./") { |v| OPTIONS[:piddir]=v }
|
486
|
+
"Default: ./") { |v| OPTIONS[:piddir] = v }
|
488
487
|
end
|
489
488
|
|
490
489
|
unless @@command == 'status'
|
491
490
|
OPTIONS[:daemon] = true unless IS_JRUBY || !INS.daemons_installed
|
492
491
|
opts.on("--[no-]daemon",
|
493
492
|
"Do not run in daemon mode.",
|
494
|
-
"Default: #{OPTIONS[:daemon] ? 'on' : 'off'}") { |v| OPTIONS[:daemon]=v }
|
493
|
+
"Default: #{OPTIONS[:daemon] ? 'on' : 'off'}") { |v| OPTIONS[:daemon] = v }
|
495
494
|
end
|
496
495
|
opts.on("-v", "--verbose",
|
497
496
|
"Run verbose.",
|
498
|
-
"Default: off") { |v| OPTIONS[:verbose]=v }
|
497
|
+
"Default: off") { |v| OPTIONS[:verbose] = v }
|
499
498
|
|
500
499
|
opts.separator ""
|
501
500
|
|
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
|
14
13
|
require 'corba'
|
@@ -28,7 +27,7 @@ module R2CORBA
|
|
28
27
|
|
29
28
|
def initialize(options = {})
|
30
29
|
@options = OPTIONS.merge(options)
|
31
|
-
raise
|
30
|
+
raise 'nr. of threads must >= 1' if @options[:threads] < 1
|
32
31
|
end
|
33
32
|
|
34
33
|
def setup
|
@@ -36,7 +35,7 @@ module R2CORBA
|
|
36
35
|
#
|
37
36
|
if defined?(JRUBY_VERSION)
|
38
37
|
@options[:orbprop]['jacorb.poa.thread_pool_min'] = @options[:threads]
|
39
|
-
@options[:orbprop]['jacorb.poa.thread_pool_max'] = @options[:threads]*4
|
38
|
+
@options[:orbprop]['jacorb.poa.thread_pool_max'] = @options[:threads] * 4
|
40
39
|
if @options[:debug] > 0
|
41
40
|
@options[:orbprop]['jacorb.log.default.verbosity'] = case
|
42
41
|
when @options[:debug] < 2
|
@@ -94,7 +93,7 @@ module R2CORBA
|
|
94
93
|
|
95
94
|
def run
|
96
95
|
STDERR.puts "INS - starting service run" if @options[:verbose]
|
97
|
-
if
|
96
|
+
if defined?(JRUBY_VERSION) or !R2CORBA::TAO::RUBY_THREAD_SUPPORT
|
98
97
|
STDERR.puts "INS - running ORB" if @options[:verbose]
|
99
98
|
@orb.run
|
100
99
|
else
|
data/lib/ridlbe/ruby/config.rb
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
|
14
13
|
module IDL
|
@@ -32,7 +31,7 @@ module IDL
|
|
32
31
|
private
|
33
32
|
def RIDL.merge_params(params)
|
34
33
|
opts = IDL::OPTIONS.dup
|
35
|
-
params.each do |k,v|
|
34
|
+
params.each do |k, v|
|
36
35
|
case opts[k]
|
37
36
|
when Array
|
38
37
|
opts[k] = opts[k] + (Array === v ? v : [v])
|
@@ -51,7 +50,7 @@ module IDL
|
|
51
50
|
parser.parse(src)
|
52
51
|
s = ::IDL::StrOStream.new
|
53
52
|
s.clear
|
54
|
-
IDL::Ruby.process_input(parser,params,s)
|
53
|
+
IDL::Ruby.process_input(parser, params, s)
|
55
54
|
s
|
56
55
|
end
|
57
56
|
def RIDL.parse(src, params)
|
@@ -195,7 +194,7 @@ module IDL
|
|
195
194
|
# in options - initialized option hash
|
196
195
|
#
|
197
196
|
becfg.on_process_input do |parser, options|
|
198
|
-
IDL::Ruby.process_input(parser,options)
|
197
|
+
IDL::Ruby.process_input(parser, options)
|
199
198
|
end # becfg.on_process_input
|
200
199
|
|
201
200
|
end # Backend.configure
|
@@ -206,7 +205,7 @@ module IDL
|
|
206
205
|
|
207
206
|
# determine output file path for client stub code
|
208
207
|
unless fixed_output || options[:idlfile].nil?
|
209
|
-
options[:output] = options[:outputdir]+'/'+File.basename(options[:idlfile], '.idl')+options[:stub_pfx]+'.rb'
|
208
|
+
options[:output] = options[:outputdir] + '/' + File.basename(options[:idlfile], '.idl') + options[:stub_pfx] + '.rb'
|
210
209
|
end
|
211
210
|
# generate client stubs if requested
|
212
211
|
if options[:client_stubs]
|
@@ -232,7 +231,7 @@ module IDL
|
|
232
231
|
options[:srv_output] = if fixed_output
|
233
232
|
options[:output]
|
234
233
|
else
|
235
|
-
options[:outputdir]+'/'+File.basename(options[:idlfile], '.idl')+options[:srv_pfx]+'.rb'
|
234
|
+
options[:outputdir] + '/' + File.basename(options[:idlfile], '.idl') + options[:srv_pfx] + '.rb'
|
236
235
|
end
|
237
236
|
if fixed_output && options[:client_stubs]
|
238
237
|
co
|
@@ -255,28 +254,45 @@ module IDL
|
|
255
254
|
|
256
255
|
module LeafMixin
|
257
256
|
|
258
|
-
RESERVED_RUBY_CONST =
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
'Regexp', 'String', 'Struct', 'Symbol', 'Thread', 'ThreadGroup', 'Time', 'TrueClass',
|
263
|
-
'UnboundMethod', 'Comparable', 'Enumerable', 'Errno', 'FileTest', 'GC', 'Kernel',
|
264
|
-
'Marshal', 'Math', 'ObjectSpace', 'Signal'
|
265
|
-
]
|
257
|
+
RESERVED_RUBY_CONST = %w(Array Bignum Binding Class Continuation Dir Exception FalseClass File
|
258
|
+
Fixnum Float Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Process
|
259
|
+
Range Regexp String Struct Symbol Thread ThreadGroup Time TrueClass UnboundMethod Comparable
|
260
|
+
Enumerable Errno FileTest GC Kernel Marshal Math ObjectSpace Signal)
|
266
261
|
|
267
|
-
RESERVED_RUBY_MEMBER =
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
]
|
262
|
+
RESERVED_RUBY_MEMBER = %w(untaint id instance_variable_get inspect taint public_methods
|
263
|
+
__send__ to_a display instance_eval extend clone protected_methods hash freeze type
|
264
|
+
instance_variable_set methods instance_variables to_s method dup private_methods object_id
|
265
|
+
send __id__ singleton_methods proc readline global_variables singleton_method_removed callcc
|
266
|
+
syscall fail untrace_var load srand puts catch chomp initialize_copy format scan print abort
|
267
|
+
fork gsub trap test select initialize method_missing lambda readlines local_variables
|
268
|
+
singleton_method_undefined system open caller eval set_trace_func require rand
|
269
|
+
singleton_method_added throw gets binding raise warn getc exec trace_var irb_binding at_exit
|
270
|
+
split putc loop chop sprintf p remove_instance_variable exit printf sleep sub autoload)
|
277
271
|
|
278
|
-
def
|
279
|
-
|
272
|
+
def ruby_lm_name
|
273
|
+
unless @lm_name
|
274
|
+
ret = @name.checked_name.dup
|
275
|
+
case self
|
276
|
+
when IDL::AST::Port,
|
277
|
+
IDL::AST::StateMember,
|
278
|
+
IDL::AST::Initializer,
|
279
|
+
IDL::AST::Parameter,
|
280
|
+
IDL::AST::Operation,
|
281
|
+
IDL::AST::Attribute,
|
282
|
+
IDL::AST::Member,
|
283
|
+
IDL::AST::UnionMember
|
284
|
+
# member names
|
285
|
+
ret = ret[0, 1].downcase + ret[1, ret.size].to_s
|
286
|
+
ret = 'r_' + ret if IDL::Ruby::LeafMixin::RESERVED_RUBY_MEMBER.include?(ret)
|
287
|
+
else
|
288
|
+
# class/module names
|
289
|
+
ret = ret[0, 1].upcase + ret[1, ret.size].to_s
|
290
|
+
is_scoped = @enclosure && !@enclosure.scopes.empty?
|
291
|
+
ret = 'R_' + ret if !is_scoped && IDL::Ruby::LeafMixin::RESERVED_RUBY_CONST.include?(ret)
|
292
|
+
end
|
293
|
+
@lm_name = ret
|
294
|
+
end
|
295
|
+
@lm_name
|
280
296
|
end
|
281
297
|
|
282
298
|
def rubyname
|
@@ -286,43 +302,24 @@ module IDL
|
|
286
302
|
def scoped_rubyname
|
287
303
|
scoped_lm_name
|
288
304
|
end
|
289
|
-
|
290
|
-
module ClassMethods
|
291
|
-
def mk_name(nm, is_scoped)
|
292
|
-
ret = nm.dup
|
293
|
-
case self::NAMETYPE
|
294
|
-
when :class
|
295
|
-
ret = ret[0,1].upcase + ret[1,ret.size].to_s
|
296
|
-
ret = 'R_'+ret if !is_scoped && IDL::Ruby::LeafMixin::RESERVED_RUBY_CONST.include?(ret)
|
297
|
-
when :member
|
298
|
-
ret = ret[0,1].downcase + ret[1,ret.size].to_s
|
299
|
-
ret = 'r_'+ret if IDL::Ruby::LeafMixin::RESERVED_RUBY_MEMBER.include?(ret)
|
300
|
-
else
|
301
|
-
raise RuntimeError,
|
302
|
-
"invalid nametype for #{self.class}: #{self::NAMETYPE}"
|
303
|
-
end
|
304
|
-
ret
|
305
|
-
end
|
306
|
-
end
|
307
305
|
end # module LeafMixin
|
308
306
|
|
309
307
|
IDL::AST::Leaf.class_eval do
|
310
308
|
include LeafMixin
|
309
|
+
|
310
|
+
alias :base_lm_name :lm_name
|
311
|
+
alias :lm_name :ruby_lm_name
|
311
312
|
end
|
312
313
|
|
313
314
|
module ScannerMixin
|
314
315
|
|
315
|
-
RUBYKW =
|
316
|
-
|
317
|
-
|
318
|
-
'BEGIN', 'break', 'do', 'false', 'next', 'rescue', 'then', 'when',
|
319
|
-
'END', 'case', 'else', 'for', 'nil', 'retry', 'true', 'while',
|
320
|
-
'alias', 'class', 'elsif', 'if', 'not', 'return', 'undef', 'yield',
|
321
|
-
].collect! { |w| w.to_sym }
|
316
|
+
RUBYKW = %w(__FILE__ and def end in or self unless __LINE__ begin defined? ensure module redo
|
317
|
+
super until BEGIN break do false next rescue then when END case else for nil retry true while
|
318
|
+
alias class elsif if not return undef yield).collect! { |w| w.to_sym }
|
322
319
|
|
323
320
|
def chk_identifier(ident)
|
324
321
|
# prefix Ruby keywords with 'r_'
|
325
|
-
RUBYKW.include?(ident.to_sym) ? 'r_'+ident : ident
|
322
|
+
RUBYKW.include?(ident.to_sym) ? 'r_' + ident : ident
|
326
323
|
end
|
327
324
|
|
328
325
|
end # module ScannerMixin
|
data/lib/ridlbe/ruby/orb.pidlc
CHANGED
Binary file
|
data/lib/ridlbe/ruby/require.rb
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
|
14
13
|
(Dir.glob(File.join(File.dirname(__FILE__), '*.rb')) - [__FILE__]).each do |f|
|
data/lib/ridlbe/ruby/walker.rb
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
module IDL
|
14
13
|
class RubyWriterBase
|
@@ -55,10 +54,9 @@ module IDL
|
|
55
54
|
#
|
56
55
|
# **** Code generated by the R2CORBA IDL Compiler ****
|
57
56
|
# R2CORBA has been developed by:
|
58
|
-
# Remedy IT
|
59
|
-
# Nijkerk, GLD
|
57
|
+
# Remedy IT Expertise BV
|
60
58
|
# The Netherlands
|
61
|
-
#
|
59
|
+
# https://www.remedy.nl
|
62
60
|
#
|
63
61
|
})
|
64
62
|
println("require 'corba'") if @params[:libinit]
|
@@ -81,7 +79,7 @@ module IDL
|
|
81
79
|
end
|
82
80
|
|
83
81
|
def visit_include(node)
|
84
|
-
printiln(format("require '%s'", node.filename.sub(/\.[^\.]
|
82
|
+
printiln(format("require '%s'", node.filename.sub(/\.[^\.]*$/, @params[:stub_pfx])))
|
85
83
|
println()
|
86
84
|
end
|
87
85
|
|
@@ -135,7 +133,7 @@ module IDL
|
|
135
133
|
println()
|
136
134
|
@nest += 1
|
137
135
|
|
138
|
-
if node.bases.size>0
|
136
|
+
if node.bases.size > 0
|
139
137
|
node.bases.each do |n|
|
140
138
|
printiln("include #{n.scoped_rubyname}")
|
141
139
|
end
|
@@ -148,7 +146,7 @@ module IDL
|
|
148
146
|
println(",")
|
149
147
|
printi(" 'IDL:omg.org/CORBA/AbstractBase:1.0'")
|
150
148
|
end
|
151
|
-
if node.bases.size>0
|
149
|
+
if node.bases.size > 0
|
152
150
|
node.bases.each do |n|
|
153
151
|
println(",")
|
154
152
|
printi(" #{n.scoped_rubyname}::Id")
|
@@ -521,7 +519,7 @@ module IDL
|
|
521
519
|
|
522
520
|
## validate data for IN/INOUT args
|
523
521
|
##
|
524
|
-
if _parm.size>0
|
522
|
+
if _parm.size > 0
|
525
523
|
_parm.each do |p|
|
526
524
|
if p.attribute != IDL::AST::Parameter::OUT
|
527
525
|
printiln("#{p.rubyname} = #{get_typecode(p.idltype)}.validate(#{p.rubyname})")
|
@@ -538,7 +536,7 @@ module IDL
|
|
538
536
|
end
|
539
537
|
|
540
538
|
newln = ""
|
541
|
-
if _parm.size>0
|
539
|
+
if _parm.size > 0
|
542
540
|
println(newln)
|
543
541
|
nest do
|
544
542
|
printi(":arg_list => [")
|
@@ -567,7 +565,7 @@ module IDL
|
|
567
565
|
newln = ","
|
568
566
|
end
|
569
567
|
|
570
|
-
if node.raises.size>0
|
568
|
+
if node.raises.size > 0
|
571
569
|
println(newln)
|
572
570
|
nest {
|
573
571
|
printi(":exc_list => [")
|
@@ -614,7 +612,7 @@ module IDL
|
|
614
612
|
|
615
613
|
printiln("_ret = self._invoke('_get_#{node.name}', {")
|
616
614
|
nest { printi(":result_type => #{get_typecode(node.idltype)}") }
|
617
|
-
if node.get_raises.size>0
|
615
|
+
if node.get_raises.size > 0
|
618
616
|
println(',')
|
619
617
|
nest {
|
620
618
|
printi(":exc_list => [")
|
@@ -658,7 +656,7 @@ module IDL
|
|
658
656
|
printiln("['val', CORBA::ARG_IN, #{get_typecode(node.idltype)}, val]],");
|
659
657
|
}
|
660
658
|
printi(":result_type => CORBA._tc_void")
|
661
|
-
if node.set_raises.size>0
|
659
|
+
if node.set_raises.size > 0
|
662
660
|
println(',')
|
663
661
|
printi(":exc_list => [")
|
664
662
|
pfx = ""
|
@@ -691,7 +689,7 @@ module IDL
|
|
691
689
|
s = _type.class.name.split("::") # IDL::Type::Octet -> [IDL, Type, Octet]
|
692
690
|
s = s[s.length - 1]
|
693
691
|
s.downcase!
|
694
|
-
format("CORBA._tc_%s",s)
|
692
|
+
format("CORBA._tc_%s", s)
|
695
693
|
|
696
694
|
when Type::Object
|
697
695
|
"CORBA._tc_Object"
|
@@ -714,7 +712,7 @@ module IDL
|
|
714
712
|
scoped_type = _type.node.idltype
|
715
713
|
if scoped_type.is_a?(IDL::Type::Interface) && scoped_type.node.is_forward?()
|
716
714
|
node = scoped_type.node
|
717
|
-
"(CORBA::TypeCode.typecode_for_id('#{node.repository_id}') || "+
|
715
|
+
"(CORBA::TypeCode.typecode_for_id('#{node.repository_id}') || " +
|
718
716
|
"CORBA::TypeCode::ObjectRef.new('#{node.repository_id}', '#{node.rubyname}', #{node.scoped_rubyname}))"
|
719
717
|
else
|
720
718
|
_type.node.scoped_rubyname + '._tc'
|
@@ -740,7 +738,7 @@ module IDL
|
|
740
738
|
end
|
741
739
|
|
742
740
|
else
|
743
|
-
raise
|
741
|
+
raise "invalid type for (un)marshalling: #{_type.typename}"
|
744
742
|
end
|
745
743
|
end
|
746
744
|
|
@@ -764,7 +762,7 @@ module IDL
|
|
764
762
|
when Expression::ScopedName, Expression::Enumerator
|
765
763
|
exp.node.scoped_rubyname
|
766
764
|
else
|
767
|
-
raise
|
765
|
+
raise "unknown expression type: #{exp.class.name}"
|
768
766
|
end
|
769
767
|
end
|
770
768
|
|
@@ -821,7 +819,7 @@ module IDL
|
|
821
819
|
when Type::ScopedName
|
822
820
|
s = value_to_s(Expression::Value.new(exp.idltype.node.idltype, v))
|
823
821
|
else
|
824
|
-
raise
|
822
|
+
raise "#{exp.typename}'s not been supported yet."
|
825
823
|
end
|
826
824
|
s
|
827
825
|
end
|
@@ -855,7 +853,7 @@ module IDL
|
|
855
853
|
when Expression::Operation::Mod
|
856
854
|
s = expression_to_s(op[0]) + " % " + expression_to_s(op[1])
|
857
855
|
else
|
858
|
-
raise
|
856
|
+
raise "unknown operation: #{exp.type.name}"
|
859
857
|
end
|
860
858
|
"(" + s + ")"
|
861
859
|
end
|
@@ -895,7 +893,7 @@ module IDL
|
|
895
893
|
printiln(format("attr_accessor :%s", m.rubyname))
|
896
894
|
end
|
897
895
|
|
898
|
-
if struct_members_.size>0
|
896
|
+
if struct_members_.size > 0
|
899
897
|
printiln('def initialize(*param_)')
|
900
898
|
nest {
|
901
899
|
struct_members_.each do |m|
|
@@ -936,7 +934,7 @@ module IDL
|
|
936
934
|
printiln(format("@@tc_%s ||= CORBA::TypeCode::Union.new('%s'.freeze, '%s',",
|
937
935
|
node.rubyname, node.repository_id, node.rubyname))
|
938
936
|
printi(" #{get_typecode(node.switchtype)}")
|
939
|
-
if node.members.size>0
|
937
|
+
if node.members.size > 0
|
940
938
|
pfx = " ["
|
941
939
|
node.members.each do |m|
|
942
940
|
m.labels.each do |lbl|
|
@@ -960,7 +958,7 @@ module IDL
|
|
960
958
|
printiln("end")
|
961
959
|
printiln("self._tc # register typecode");
|
962
960
|
ix = 0
|
963
|
-
if node.members.size>0
|
961
|
+
if node.members.size > 0
|
964
962
|
node.members.each do |m|
|
965
963
|
printiln(format("def %s; @value; end", m.rubyname))
|
966
964
|
printiln(format("def %s=(val); _set_value(%d, val); end", m.rubyname, ix))
|
@@ -979,7 +977,7 @@ module IDL
|
|
979
977
|
end
|
980
978
|
|
981
979
|
def visit_enum(node)
|
982
|
-
printiln(format("class %s < ::
|
980
|
+
printiln(format("class %s < ::R2CORBA::FIXNUM_KLASS", node.rubyname))
|
983
981
|
nest {
|
984
982
|
printiln(format("def %s._tc", node.rubyname))
|
985
983
|
nest {
|
@@ -1096,8 +1094,11 @@ module IDL
|
|
1096
1094
|
}
|
1097
1095
|
printiln(format("end # typedef %s", node.rubyname))
|
1098
1096
|
|
1097
|
+
when IDL::Type::Object
|
1098
|
+
printiln(format("%s = CORBA::Object # typedef %s\n", node.rubyname, node.rubyname))
|
1099
|
+
|
1099
1100
|
else
|
1100
|
-
raise
|
1101
|
+
raise "unsupported typedef for #{t.class.name}."
|
1101
1102
|
end
|
1102
1103
|
end
|
1103
1104
|
end ## RubyStubWriter
|
@@ -1114,16 +1115,15 @@ module IDL
|
|
1114
1115
|
#
|
1115
1116
|
# **** Code generated by the R2CORBA IDL Compiler ****
|
1116
1117
|
# R2CORBA has been developed by:
|
1117
|
-
# Remedy IT
|
1118
|
-
# Nijkerk, GLD
|
1118
|
+
# Remedy IT Expertise BV
|
1119
1119
|
# The Netherlands
|
1120
|
-
#
|
1120
|
+
# https://www.remedy.nl
|
1121
1121
|
#
|
1122
1122
|
})
|
1123
1123
|
idleval = @params[:idl_eval] || false
|
1124
1124
|
println("require 'corba/poa.rb'") if @params[:libinit]
|
1125
1125
|
if !@params[:expand_includes]
|
1126
|
-
println("require '"
|
1126
|
+
println("require '" + @params[:idlfile].sub(/\.[^\.]*$/, @params[:stub_pfx]) + "'")
|
1127
1127
|
end
|
1128
1128
|
println()
|
1129
1129
|
printiln("module POA")
|
@@ -1147,7 +1147,7 @@ module IDL
|
|
1147
1147
|
end
|
1148
1148
|
|
1149
1149
|
def visit_include(node)
|
1150
|
-
printiln(format("require '%s'", node.filename.sub(/\.[^\.]
|
1150
|
+
printiln(format("require '%s'", node.filename.sub(/\.[^\.]*$/, @params[:srv_pfx])))
|
1151
1151
|
println()
|
1152
1152
|
end
|
1153
1153
|
|
@@ -1207,7 +1207,7 @@ module IDL
|
|
1207
1207
|
printiln("Id = Intf::Id")
|
1208
1208
|
println()
|
1209
1209
|
|
1210
|
-
if node.bases.size>0
|
1210
|
+
if node.bases.size > 0
|
1211
1211
|
node.bases.each do |n|
|
1212
1212
|
printiln("include_interface(#{n.scoped_rubyname}::Intf)")
|
1213
1213
|
end
|
@@ -1264,7 +1264,7 @@ module IDL
|
|
1264
1264
|
|
1265
1265
|
printi("Operations.store(:#{node.name}, {")
|
1266
1266
|
newln = ""
|
1267
|
-
if _parm.size>0
|
1267
|
+
if _parm.size > 0
|
1268
1268
|
println(newln)
|
1269
1269
|
nest do
|
1270
1270
|
printi(":arg_list => [")
|
@@ -1289,7 +1289,7 @@ module IDL
|
|
1289
1289
|
newln = ","
|
1290
1290
|
end
|
1291
1291
|
|
1292
|
-
if node.raises.size>0
|
1292
|
+
if node.raises.size > 0
|
1293
1293
|
println(newln)
|
1294
1294
|
nest {
|
1295
1295
|
printi(":exc_list => [")
|
@@ -1339,7 +1339,7 @@ module IDL
|
|
1339
1339
|
nest {
|
1340
1340
|
nest {
|
1341
1341
|
printiln(":result_type => #{get_typecode(node.idltype)},")
|
1342
|
-
if node.get_raises.size>0
|
1342
|
+
if node.get_raises.size > 0
|
1343
1343
|
printi(":exc_list => [")
|
1344
1344
|
pfx = ""
|
1345
1345
|
nest {
|
@@ -1374,7 +1374,7 @@ module IDL
|
|
1374
1374
|
printiln("['val', CORBA::ARG_IN, #{get_typecode(node.idltype)}]],");
|
1375
1375
|
}
|
1376
1376
|
printiln(":result_type => CORBA._tc_void,")
|
1377
|
-
if node.set_raises.size>0
|
1377
|
+
if node.set_raises.size > 0
|
1378
1378
|
printi(":exc_list => [")
|
1379
1379
|
pfx = ""
|
1380
1380
|
nest {
|
@@ -1414,7 +1414,7 @@ module IDL
|
|
1414
1414
|
s = _type.class.name.split("::") # IDL::Type::Octet -> [IDL, Type, Octet]
|
1415
1415
|
s = s[s.length - 1]
|
1416
1416
|
s.downcase!
|
1417
|
-
format("CORBA._tc_%s",s)
|
1417
|
+
format("CORBA._tc_%s", s)
|
1418
1418
|
|
1419
1419
|
when Type::Object
|
1420
1420
|
"CORBA._tc_Object"
|
@@ -1457,7 +1457,7 @@ module IDL
|
|
1457
1457
|
end
|
1458
1458
|
|
1459
1459
|
else
|
1460
|
-
raise
|
1460
|
+
raise "invalid type for (un)marshalling: #{_type.typename}"
|
1461
1461
|
end
|
1462
1462
|
end
|
1463
1463
|
|
@@ -1481,7 +1481,7 @@ module IDL
|
|
1481
1481
|
when Expression::ScopedName
|
1482
1482
|
@stub_root + exp.node.scoped_rubyname
|
1483
1483
|
else
|
1484
|
-
raise
|
1484
|
+
raise "unknown expression type: #{exp.class.name}"
|
1485
1485
|
end
|
1486
1486
|
end
|
1487
1487
|
|
@@ -1511,7 +1511,7 @@ module IDL
|
|
1511
1511
|
when Type::ScopedName
|
1512
1512
|
s = value_to_s(Expression::Value.new(exp.idltype.node.idltype, v))
|
1513
1513
|
else
|
1514
|
-
raise
|
1514
|
+
raise "#{exp.typename}'s not been supported yet."
|
1515
1515
|
end
|
1516
1516
|
s
|
1517
1517
|
end
|
@@ -1545,7 +1545,7 @@ module IDL
|
|
1545
1545
|
when Expression::Mod
|
1546
1546
|
s = expression_to_s(op[0]) + " % " + expression_to_s(op[1])
|
1547
1547
|
else
|
1548
|
-
raise
|
1548
|
+
raise "unknown operation: #{exp.type.name}"
|
1549
1549
|
end
|
1550
1550
|
"(" + s + ")"
|
1551
1551
|
end
|