From 2a02719742221b60b216cfe294a5cfcd951f2a0f Mon Sep 17 00:00:00 2001 From: nobody Date: Tue, 16 Jun 1998 04:07:53 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'ACE-4_5_12'. --- ACE.DSW | 1217 -- COPYING | 35 - ChangeLog-97b | 9182 -------- ChangeLog-98a | 6588 ------ STL/ACE_Changes | 53 - STL/readme2.stl | 272 - TAO/Benchmark/Marshal_Test/Orbix/Makefile | 75 - TAO/Benchmark/Marshal_Test/Orbix/client.cpp | 14 - TAO/Benchmark/Marshal_Test/Orbix/marshal.h | 1327 -- TAO/Benchmark/Marshal_Test/Orbix/marshal.idl | 90 - .../Marshal_Test/Orbix/orbix_marshal_client.cpp | 1336 -- .../Marshal_Test/Orbix/orbix_marshal_client.h | 125 - .../Marshal_Test/Orbix/orbix_marshal_client.i | 23 - .../Marshal_Test/Orbix/orbix_marshal_impl.cpp | 311 - .../Marshal_Test/Orbix/orbix_marshal_impl.h | 191 - .../Marshal_Test/Orbix/orbix_marshal_impl.i | 29 - .../Marshal_Test/Orbix/orbix_marshal_server.cpp | 95 - .../Marshal_Test/Orbix/orbix_marshal_server.h | 59 - .../Marshal_Test/Orbix/orbix_marshal_server.i | 28 - TAO/Benchmark/Marshal_Test/Orbix/run_client | 23 - TAO/Benchmark/Marshal_Test/Orbix/run_dsi | 4 - TAO/Benchmark/Marshal_Test/Orbix/run_dsi_server | 1 - TAO/Benchmark/Marshal_Test/Orbix/run_ssi | 4 - TAO/Benchmark/Marshal_Test/Orbix/run_ssi_server | 1 - TAO/Benchmark/Marshal_Test/Orbix/server.cpp | 14 - TAO/Benchmark/Marshal_Test/TAO/Makefile | 64 - TAO/Benchmark/Marshal_Test/TAO/client.cpp | 14 - TAO/Benchmark/Marshal_Test/TAO/marshal.idl | 91 - TAO/Benchmark/Marshal_Test/TAO/marshalC.cpp | 587 - TAO/Benchmark/Marshal_Test/TAO/marshalC.h | 196 - TAO/Benchmark/Marshal_Test/TAO/marshalS.cpp | 170 - TAO/Benchmark/Marshal_Test/TAO/marshalS.h | 110 - TAO/Benchmark/Marshal_Test/TAO/server.cpp | 14 - .../Marshal_Test/TAO/tao_marshal_client.cpp | 1426 -- .../Marshal_Test/TAO/tao_marshal_client.h | 126 - .../Marshal_Test/TAO/tao_marshal_client.i | 23 - .../Marshal_Test/TAO/tao_marshal_impl.cpp | 652 - TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.h | 192 - TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.i | 23 - .../Marshal_Test/TAO/tao_marshal_server.cpp | 112 - .../Marshal_Test/TAO/tao_marshal_server.h | 59 - .../Marshal_Test/TAO/tao_marshal_server.i | 28 - TAO/Benchmark/Marshal_Test/VisiBroker/Makefile | 64 - TAO/Benchmark/Marshal_Test/VisiBroker/client.cpp | 14 - TAO/Benchmark/Marshal_Test/VisiBroker/marshal.idl | 91 - TAO/Benchmark/Marshal_Test/VisiBroker/run_client | 23 - TAO/Benchmark/Marshal_Test/VisiBroker/run_server | 1 - TAO/Benchmark/Marshal_Test/VisiBroker/server.cpp | 14 - .../VisiBroker/visi_marshal_client.cpp | 1346 -- .../Marshal_Test/VisiBroker/visi_marshal_client.h | 142 - .../Marshal_Test/VisiBroker/visi_marshal_client.i | 23 - .../Marshal_Test/VisiBroker/visi_marshal_impl.cpp | 331 - .../Marshal_Test/VisiBroker/visi_marshal_impl.h | 179 - .../Marshal_Test/VisiBroker/visi_marshal_impl.i | 30 - .../VisiBroker/visi_marshal_server.cpp | 88 - .../Marshal_Test/VisiBroker/visi_marshal_server.h | 60 - .../Marshal_Test/VisiBroker/visi_marshal_server.i | 28 - TAO/Benchmark/benchmark/Makefile | 125 - TAO/Benchmark/benchmark/driver.cpp | 58 - TAO/Benchmark/benchmark/driver.h | 56 - TAO/Benchmark/benchmark/marshal_options.cpp | 280 - TAO/Benchmark/benchmark/marshal_options.h | 209 - TAO/Benchmark/benchmark/marshal_options.i | 235 - TAO/Benchmark/benchmark/marshal_proxy.cpp | 21 - TAO/Benchmark/benchmark/marshal_proxy.h | 48 - TAO/Benchmark/benchmark/marshal_proxy.i | 12 - TAO/Benchmark/benchmark/marshal_results.cpp | 34 - TAO/Benchmark/benchmark/marshal_results.h | 72 - TAO/Benchmark/benchmark/marshal_results.i | 61 - TAO/COPYING | 40 - TAO/COPYING.sun | 67 - TAO/ChangeLog-98c | 16658 -------------- TAO/IIOP/Build/default.bld | 16 - TAO/IIOP/Build/tao.bld | 53 - TAO/IIOP/Makefile | 27 - TAO/IIOP/docs/us/codecounts/align.hh.cccc | 29 - TAO/IIOP/docs/us/codecounts/any.cpp.cccc | 41 - TAO/IIOP/docs/us/codecounts/any.hh.cccc | 27 - TAO/IIOP/docs/us/codecounts/cdr.cpp.cccc | 36 - TAO/IIOP/docs/us/codecounts/cdr.hh.cccc | 26 - TAO/IIOP/docs/us/codecounts/connmgr.cpp.cccc | 38 - TAO/IIOP/docs/us/codecounts/connmgr.hh.cccc | 27 - TAO/IIOP/docs/us/codecounts/corbacom.cpp.cccc | 32 - TAO/IIOP/docs/us/codecounts/corbacom.hh.cccc | 59 - TAO/IIOP/docs/us/codecounts/debug.cpp.cccc | 39 - TAO/IIOP/docs/us/codecounts/debug.hh.cccc | 29 - TAO/IIOP/docs/us/codecounts/except.cpp.cccc | 53 - TAO/IIOP/docs/us/codecounts/except.hh.cccc | 37 - TAO/IIOP/docs/us/codecounts/generate | 24 - TAO/IIOP/docs/us/codecounts/giop.cpp.cccc | 50 - TAO/IIOP/docs/us/codecounts/giop.hh.cccc | 27 - TAO/IIOP/docs/us/codecounts/iiopobj.cpp.cccc | 34 - TAO/IIOP/docs/us/codecounts/iiopobj.hh.cccc | 30 - TAO/IIOP/docs/us/codecounts/iioporb.cpp.cccc | 35 - TAO/IIOP/docs/us/codecounts/iioporb.hh.cccc | 28 - TAO/IIOP/docs/us/codecounts/initguid.h.cccc | 25 - TAO/IIOP/docs/us/codecounts/interp.cpp.cccc | 40 - TAO/IIOP/docs/us/codecounts/invoke.cpp.cccc | 26 - TAO/IIOP/docs/us/codecounts/marshal.cpp.cccc | 30 - TAO/IIOP/docs/us/codecounts/nvlist.cpp.cccc | 40 - TAO/IIOP/docs/us/codecounts/nvlist.hh.cccc | 37 - TAO/IIOP/docs/us/codecounts/objbase.h.cccc | 37 - TAO/IIOP/docs/us/codecounts/object.cpp.cccc | 55 - TAO/IIOP/docs/us/codecounts/object.hh.cccc | 31 - TAO/IIOP/docs/us/codecounts/orb.hh.cccc | 33 - TAO/IIOP/docs/us/codecounts/orbconf.hh.cccc | 26 - TAO/IIOP/docs/us/codecounts/orbobj.cpp.cccc | 41 - TAO/IIOP/docs/us/codecounts/orbobj.hh.cccc | 31 - TAO/IIOP/docs/us/codecounts/principa.cpp.cccc | 33 - TAO/IIOP/docs/us/codecounts/principa.hh.cccc | 30 - TAO/IIOP/docs/us/codecounts/request.cpp.cccc | 36 - TAO/IIOP/docs/us/codecounts/request.hh.cccc | 31 - TAO/IIOP/docs/us/codecounts/roa.cpp.cccc | 43 - TAO/IIOP/docs/us/codecounts/roa.hh.cccc | 30 - TAO/IIOP/docs/us/codecounts/roa.i.cccc | 35 - TAO/IIOP/docs/us/codecounts/sequence.hh.cccc | 26 - TAO/IIOP/docs/us/codecounts/stub.hh.cccc | 32 - TAO/IIOP/docs/us/codecounts/svrrqst.cpp.cccc | 39 - TAO/IIOP/docs/us/codecounts/svrrqst.hh.cccc | 35 - TAO/IIOP/docs/us/codecounts/t-sizes.cpp.cccc | 25 - TAO/IIOP/docs/us/codecounts/t-xdr.cpp.cccc | 29 - TAO/IIOP/docs/us/codecounts/tc_const.cpp.cccc | 68 - TAO/IIOP/docs/us/codecounts/tcpoa.cpp.cccc | 51 - TAO/IIOP/docs/us/codecounts/tcpoa.hh.cccc | 31 - TAO/IIOP/docs/us/codecounts/thread.hh.cccc | 35 - TAO/IIOP/docs/us/codecounts/toa.cpp.cccc | 27 - TAO/IIOP/docs/us/codecounts/toa.hh.cccc | 30 - TAO/IIOP/docs/us/codecounts/typecode.cpp.cccc | 41 - TAO/IIOP/docs/us/codecounts/typecode.hh.cccc | 36 - TAO/IIOP/docs/us/codecounts/xdr.cpp.cccc | 33 - TAO/IIOP/docs/us/codecounts/xdr.hh.cccc | 27 - TAO/IIOP/docs/us/plan.html | 29 - TAO/IIOP/docs/us/server | 5 - TAO/IIOP/test/Build/clnt.bld | 8 - TAO/IIOP/test/Build/default.bld | 19 - TAO/IIOP/test/Build/svr.bld | 8 - TAO/IIOP/test/Makefile | 121 - TAO/IIOP/test/Orbeline/base_server/Makefile | 19 - .../test/Orbeline/base_server/Profile_Timer.cpp | 129 - TAO/IIOP/test/Orbeline/base_server/Profile_Timer.h | 62 - TAO/IIOP/test/Orbeline/base_server/cubit.idl | 42 - TAO/IIOP/test/Orbeline/base_server/cubit_impl.cpp | 48 - TAO/IIOP/test/Orbeline/base_server/cubit_impl.h | 35 - TAO/IIOP/test/Orbeline/base_server/server.cpp | 51 - TAO/IIOP/test/Orbeline/base_server/stdmk | 36 - TAO/IIOP/test/Orbeline/client/Makefile | 19 - TAO/IIOP/test/Orbeline/client/Profile_Timer.cpp | 129 - TAO/IIOP/test/Orbeline/client/Profile_Timer.h | 62 - TAO/IIOP/test/Orbeline/client/client.cpp | 232 - TAO/IIOP/test/Orbeline/client/cubit.idl | 42 - TAO/IIOP/test/Orbeline/client/stdmk | 36 - TAO/IIOP/test/Orbix/Makefile | 28 - TAO/IIOP/test/Orbix/base_server/Makefile | 89 - TAO/IIOP/test/Orbix/base_server/cubit.h | 729 - TAO/IIOP/test/Orbix/base_server/cubit.idl | 42 - TAO/IIOP/test/Orbix/base_server/cubitC.cpp | 559 - TAO/IIOP/test/Orbix/base_server/cubitC.h | 345 - TAO/IIOP/test/Orbix/base_server/cubitS.cpp | 228 - TAO/IIOP/test/Orbix/base_server/cubitS.h | 120 - TAO/IIOP/test/Orbix/base_server/cubit_impl.cpp | 48 - TAO/IIOP/test/Orbix/base_server/cubit_impl.h | 29 - TAO/IIOP/test/Orbix/base_server/server.cpp | 42 - TAO/IIOP/test/Orbix/base_server/tpr.cpp | 28 - TAO/IIOP/test/Orbix/base_server/tpr.h | 12 - TAO/IIOP/test/Orbix/client/Makefile | 89 - TAO/IIOP/test/Orbix/client/client.cpp | 234 - TAO/IIOP/test/Orbix/client/cubit.h | 729 - TAO/IIOP/test/Orbix/client/cubit.idl | 42 - TAO/IIOP/test/Orbix/client/cubitC.cpp | 559 - TAO/IIOP/test/Orbix/factory_client/Makefile | 77 - TAO/IIOP/test/Orbix/factory_client/client.cpp | 237 - TAO/IIOP/test/Orbix/factory_client/cubit.h | 1113 - TAO/IIOP/test/Orbix/factory_client/cubit.hh | 1111 - TAO/IIOP/test/Orbix/factory_client/cubit.idl | 48 - TAO/IIOP/test/Orbix/factory_client/cubitC.cpp | 712 - TAO/IIOP/test/Orbix/factory_client/cubitS.cpp | 284 - TAO/IIOP/test/Orbix/orb.mk | 146 - TAO/IIOP/test/Orbix/tpool/Makefile | 89 - TAO/IIOP/test/Orbix/tpool/cubit.h | 729 - TAO/IIOP/test/Orbix/tpool/cubit.idl | 42 - TAO/IIOP/test/Orbix/tpool/cubitC.cpp | 559 - TAO/IIOP/test/Orbix/tpool/cubitS.cpp | 228 - TAO/IIOP/test/Orbix/tpool/cubit_impl.cpp | 48 - TAO/IIOP/test/Orbix/tpool/cubit_impl.h | 29 - TAO/IIOP/test/Orbix/tpool/server.cpp | 48 - TAO/IIOP/test/Orbix/tpool/tpool.cpp | 44 - TAO/IIOP/test/Orbix/tpool/tpool.h | 17 - TAO/IIOP/test/Orbix/tpr/Makefile | 89 - TAO/IIOP/test/Orbix/tpr/cubit.h | 729 - TAO/IIOP/test/Orbix/tpr/cubit.idl | 42 - TAO/IIOP/test/Orbix/tpr/cubitC.cpp | 559 - TAO/IIOP/test/Orbix/tpr/cubitC.h | 345 - TAO/IIOP/test/Orbix/tpr/cubitS.cpp | 228 - TAO/IIOP/test/Orbix/tpr/cubitS.h | 120 - TAO/IIOP/test/Orbix/tpr/cubit_impl.cpp | 48 - TAO/IIOP/test/Orbix/tpr/cubit_impl.h | 29 - TAO/IIOP/test/Orbix/tpr/server.cpp | 42 - TAO/IIOP/test/Orbix/tpr/tpr.cpp | 28 - TAO/IIOP/test/Orbix/tpr/tpr.h | 12 - TAO/IIOP/test/Orbix/tps/Makefile | 349 - TAO/IIOP/test/Orbix/tps/cubit.h | 1113 - TAO/IIOP/test/Orbix/tps/cubit.idl | 48 - TAO/IIOP/test/Orbix/tps/cubitC.cpp | 712 - TAO/IIOP/test/Orbix/tps/cubitS.cpp | 284 - TAO/IIOP/test/Orbix/tps/cubit_impl.cpp | 83 - TAO/IIOP/test/Orbix/tps/cubit_impl.h | 48 - TAO/IIOP/test/Orbix/tps/server.cpp | 42 - TAO/IIOP/test/Orbix/tps/tps.cpp | 28 - TAO/IIOP/test/Orbix/tps/tps.h | 13 - TAO/IIOP/test/clnt.cpp | 510 - TAO/IIOP/test/cubit.cpp | 578 - TAO/IIOP/test/cubit.h | 108 - TAO/IIOP/test/cubit.idl | 42 - TAO/IIOP/test/cubitC.cpp | 383 - TAO/IIOP/test/cubitC.h | 104 - TAO/IIOP/test/cubitS.cpp | 234 - TAO/IIOP/test/cubitS.h | 84 - TAO/IIOP/test/cubit_i.cpp | 93 - TAO/IIOP/test/cubit_i.h | 56 - TAO/IIOP/test/method_db.i | 69 - TAO/IIOP/test/results/Orbix | 133 - TAO/IIOP/test/results/TAO | 92 - TAO/IIOP/test/results/Visibroker | 79 - TAO/IIOP/test/results/orbs.xls | Bin 26624 -> 0 bytes TAO/IIOP/test/svr.cpp | 214 - TAO/IIOP/test/test.mak | 463 - TAO/IIOP/test/test.mdp | Bin 43008 -> 0 bytes TAO/IIOP/test/test1.cpp | 392 - TAO/IIOP/test/test1.h | 126 - TAO/IIOP/test/test1.idl | 80 - TAO/IIOP/test/test1_clnt.cpp | 638 - TAO/IIOP/test/test1_svr.cpp | 672 - TAO/IIOP/test/tnf/Orbix.svr.summary | 32 - TAO/IIOP/test/tnf/clnt.summary | 43 - TAO/IIOP/test/tnf/svr.summary | 49 - TAO/IIOP/tests/Cubit/Build/clnt.bld | 8 - TAO/IIOP/tests/Cubit/Build/default.bld | 19 - TAO/IIOP/tests/Cubit/Build/svr.bld | 8 - TAO/IIOP/tests/Cubit/Orbix/Makefile | 28 - TAO/IIOP/tests/Cubit/Orbix/base_server/Makefile | 89 - TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.h | 729 - TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.idl | 42 - TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.cpp | 559 - TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.h | 345 - TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.cpp | 228 - TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.h | 120 - .../tests/Cubit/Orbix/base_server/cubit_impl.cpp | 48 - .../tests/Cubit/Orbix/base_server/cubit_impl.h | 29 - TAO/IIOP/tests/Cubit/Orbix/base_server/server.cpp | 42 - TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.cpp | 28 - TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.h | 12 - TAO/IIOP/tests/Cubit/Orbix/client/Makefile | 89 - TAO/IIOP/tests/Cubit/Orbix/client/client.cpp | 234 - TAO/IIOP/tests/Cubit/Orbix/client/cubit.h | 729 - TAO/IIOP/tests/Cubit/Orbix/client/cubit.idl | 42 - TAO/IIOP/tests/Cubit/Orbix/client/cubitC.cpp | 559 - TAO/IIOP/tests/Cubit/Orbix/factory_client/Makefile | 77 - .../tests/Cubit/Orbix/factory_client/client.cpp | 237 - TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.h | 1113 - TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.hh | 1111 - .../tests/Cubit/Orbix/factory_client/cubit.idl | 48 - .../tests/Cubit/Orbix/factory_client/cubitC.cpp | 712 - .../tests/Cubit/Orbix/factory_client/cubitS.cpp | 284 - TAO/IIOP/tests/Cubit/Orbix/orb.mk | 146 - TAO/IIOP/tests/Cubit/Orbix/tpool/Makefile | 89 - TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.h | 729 - TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.idl | 42 - TAO/IIOP/tests/Cubit/Orbix/tpool/cubitC.cpp | 559 - TAO/IIOP/tests/Cubit/Orbix/tpool/cubitS.cpp | 228 - TAO/IIOP/tests/Cubit/Orbix/tpool/cubit_impl.cpp | 48 - TAO/IIOP/tests/Cubit/Orbix/tpool/cubit_impl.h | 29 - TAO/IIOP/tests/Cubit/Orbix/tpool/server.cpp | 48 - TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.cpp | 44 - TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.h | 17 - TAO/IIOP/tests/Cubit/Orbix/tpr/Makefile | 89 - TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.h | 729 - TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.idl | 42 - TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.cpp | 559 - TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.h | 345 - TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.cpp | 228 - TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.h | 120 - TAO/IIOP/tests/Cubit/Orbix/tpr/cubit_impl.cpp | 48 - TAO/IIOP/tests/Cubit/Orbix/tpr/cubit_impl.h | 29 - TAO/IIOP/tests/Cubit/Orbix/tpr/server.cpp | 42 - TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.cpp | 28 - TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.h | 12 - TAO/IIOP/tests/Cubit/Orbix/tps/Makefile | 349 - TAO/IIOP/tests/Cubit/Orbix/tps/cubit.h | 1113 - TAO/IIOP/tests/Cubit/Orbix/tps/cubit.idl | 48 - TAO/IIOP/tests/Cubit/Orbix/tps/cubitC.cpp | 712 - TAO/IIOP/tests/Cubit/Orbix/tps/cubitS.cpp | 284 - TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.cpp | 83 - TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.h | 48 - TAO/IIOP/tests/Cubit/Orbix/tps/tps.cpp | 28 - TAO/IIOP/tests/Cubit/Orbix/tps/tps.h | 13 - TAO/IIOP/tests/Cubit/README | 7 - TAO/IIOP/tests/Cubit/TAO/Makefile | 121 - TAO/IIOP/tests/Cubit/TAO/clnt.cpp | 510 - TAO/IIOP/tests/Cubit/TAO/cubit.cpp | 578 - TAO/IIOP/tests/Cubit/TAO/cubit.h | 108 - TAO/IIOP/tests/Cubit/TAO/cubit.idl | 42 - TAO/IIOP/tests/Cubit/TAO/cubitC.cpp | 383 - TAO/IIOP/tests/Cubit/TAO/cubitC.h | 104 - TAO/IIOP/tests/Cubit/TAO/cubitS.cpp | 234 - TAO/IIOP/tests/Cubit/TAO/cubitS.h | 84 - TAO/IIOP/tests/Cubit/TAO/cubit_i.cpp | 93 - TAO/IIOP/tests/Cubit/TAO/cubit_i.h | 56 - TAO/IIOP/tests/Cubit/TAO/method_db.i | 69 - TAO/IIOP/tests/Cubit/TAO/svr.cpp | 214 - TAO/IIOP/tests/Cubit/TAO/test.mak | 463 - TAO/IIOP/tests/Cubit/TAO/test.mdp | Bin 43008 -> 0 bytes TAO/IIOP/tests/Cubit/TAO/test1.cpp | 392 - TAO/IIOP/tests/Cubit/TAO/test1.h | 126 - TAO/IIOP/tests/Cubit/TAO/test1.idl | 80 - TAO/IIOP/tests/Cubit/TAO/test1_clnt.cpp | 680 - TAO/IIOP/tests/Cubit/TAO/test1_svr.cpp | 693 - .../tests/Cubit/VisiBroker/base_server/Makefile | 19 - .../Cubit/VisiBroker/base_server/Profile_Timer.cpp | 129 - .../Cubit/VisiBroker/base_server/Profile_Timer.h | 62 - .../tests/Cubit/VisiBroker/base_server/cubit.idl | 42 - .../Cubit/VisiBroker/base_server/cubit_impl.cpp | 48 - .../Cubit/VisiBroker/base_server/cubit_impl.h | 35 - .../tests/Cubit/VisiBroker/base_server/server.cpp | 51 - TAO/IIOP/tests/Cubit/VisiBroker/base_server/stdmk | 36 - TAO/IIOP/tests/Cubit/VisiBroker/client/Makefile | 19 - .../Cubit/VisiBroker/client/Profile_Timer.cpp | 129 - .../tests/Cubit/VisiBroker/client/Profile_Timer.h | 62 - TAO/IIOP/tests/Cubit/VisiBroker/client/client.cpp | 232 - TAO/IIOP/tests/Cubit/VisiBroker/client/cubit.idl | 42 - TAO/IIOP/tests/Cubit/VisiBroker/client/stdmk | 36 - TAO/IIOP/tests/Cubit/results/Orbix | 133 - TAO/IIOP/tests/Cubit/results/TAO | 92 - TAO/IIOP/tests/Cubit/results/Visibroker | 79 - TAO/IIOP/tests/Cubit/results/orbs.xls | Bin 26624 -> 0 bytes TAO/IIOP/tests/Thruput_test/Makefile | 53 - TAO/IIOP/tests/Thruput_test/README | 50 - TAO/IIOP/tests/Thruput_test/client.cpp | 338 - TAO/IIOP/tests/Thruput_test/run | 1 - TAO/IIOP/tests/Thruput_test/run_client | 25 - TAO/IIOP/tests/Thruput_test/run_server | 10 - TAO/IIOP/tests/Thruput_test/run_test | 32 - TAO/IIOP/tests/Thruput_test/server.cpp | 226 - TAO/IIOP/tests/Thruput_test/ttcp.idl | 34 - TAO/IIOP/tests/Thruput_test/ttcpC.cpp | 1007 - TAO/IIOP/tests/Thruput_test/ttcpC.h | 229 - TAO/IIOP/tests/Thruput_test/ttcpS.cpp | 323 - TAO/IIOP/tests/Thruput_test/ttcpS.h | 70 - TAO/IIOP/tests/Thruput_test/ttcp_decl.h | 153 - TAO/IIOP/tests/Thruput_test/ttcp_i.cpp | 90 - TAO/IIOP/tests/Thruput_test/ttcp_i.h | 52 - TAO/IIOP/tests/Thruput_test/utils.cpp | 561 - TAO/LICENSE.sun | 64 - TAO/Makefile | 95 - TAO/README | 77 - TAO/README.sun | 256 - TAO/TAO-INSTALL.html | 198 - TAO/TAOACE.dsw | 80 - TAO/TAO_IDL/ANNOUNCEMENT | 131 - TAO/TAO_IDL/CHANGES | 122 - TAO/TAO_IDL/GenExportH.BAT | 48 - TAO/TAO_IDL/INSTALL | 229 - TAO/TAO_IDL/Makefile | 6238 ------ TAO/TAO_IDL/README | 233 - TAO/TAO_IDL/TAO_IDL4.mak | 17876 --------------- TAO/TAO_IDL/TAO_IDL4.mdp | Bin 73216 -> 0 bytes TAO/TAO_IDL/ast/Makefile | 1376 -- TAO/TAO_IDL/ast/ast_argument.cpp | 154 - TAO/TAO_IDL/ast/ast_array.cpp | 189 - TAO/TAO_IDL/ast/ast_attribute.cpp | 134 - TAO/TAO_IDL/ast/ast_check.cpp | 140 - TAO/TAO_IDL/ast/ast_concrete_type.cpp | 106 - TAO/TAO_IDL/ast/ast_constant.cpp | 212 - TAO/TAO_IDL/ast/ast_decl.cpp | 314 - TAO/TAO_IDL/ast/ast_enum.cpp | 255 - TAO/TAO_IDL/ast/ast_enum_val.cpp | 119 - TAO/TAO_IDL/ast/ast_exception.cpp | 306 - TAO/TAO_IDL/ast/ast_expression.cpp | 1599 -- TAO/TAO_IDL/ast/ast_field.cpp | 153 - TAO/TAO_IDL/ast/ast_generator.cpp | 414 - TAO/TAO_IDL/ast/ast_interface.cpp | 605 - TAO/TAO_IDL/ast/ast_interface_fwd.cpp | 147 - TAO/TAO_IDL/ast/ast_module.cpp | 592 - TAO/TAO_IDL/ast/ast_native.cpp | 33 - TAO/TAO_IDL/ast/ast_operation.cpp | 328 - TAO/TAO_IDL/ast/ast_predefined_type.cpp | 130 - TAO/TAO_IDL/ast/ast_recursive.cpp | 167 - TAO/TAO_IDL/ast/ast_redef.cpp | 108 - TAO/TAO_IDL/ast/ast_root.cpp | 166 - TAO/TAO_IDL/ast/ast_sequence.cpp | 143 - TAO/TAO_IDL/ast/ast_string.cpp | 153 - TAO/TAO_IDL/ast/ast_structure.cpp | 311 - TAO/TAO_IDL/ast/ast_type.cpp | 105 - TAO/TAO_IDL/ast/ast_typedef.cpp | 131 - TAO/TAO_IDL/ast/ast_union.cpp | 555 - TAO/TAO_IDL/ast/ast_union_branch.cpp | 131 - TAO/TAO_IDL/ast/ast_union_label.cpp | 135 - TAO/TAO_IDL/be/Makefile | 5005 ----- TAO/TAO_IDL/be/be_args.cpp | 107 - TAO/TAO_IDL/be/be_argument.cpp | 51 - TAO/TAO_IDL/be/be_array.cpp | 1113 - TAO/TAO_IDL/be/be_attribute.cpp | 49 - TAO/TAO_IDL/be/be_codegen.cpp | 676 - TAO/TAO_IDL/be/be_constant.cpp | 93 - TAO/TAO_IDL/be/be_decl.cpp | 575 - TAO/TAO_IDL/be/be_enum.cpp | 193 - TAO/TAO_IDL/be/be_enum_val.cpp | 81 - TAO/TAO_IDL/be/be_exception.cpp | 195 - TAO/TAO_IDL/be/be_expression.cpp | 82 - TAO/TAO_IDL/be/be_factory.cpp | 47 - TAO/TAO_IDL/be/be_field.cpp | 109 - TAO/TAO_IDL/be/be_generator.cpp | 413 - TAO/TAO_IDL/be/be_helper.cpp | 284 - TAO/TAO_IDL/be/be_init.cpp | 99 - TAO/TAO_IDL/be/be_interface.cpp | 1340 -- TAO/TAO_IDL/be/be_interface_fwd.cpp | 523 - TAO/TAO_IDL/be/be_interpretive.cpp | 373 - TAO/TAO_IDL/be/be_module.cpp | 55 - TAO/TAO_IDL/be/be_native.cpp | 68 - TAO/TAO_IDL/be/be_operation.cpp | 165 - TAO/TAO_IDL/be/be_predefined_type.cpp | 463 - TAO/TAO_IDL/be/be_produce.cpp | 215 - TAO/TAO_IDL/be/be_root.cpp | 94 - TAO/TAO_IDL/be/be_scope.cpp | 146 - TAO/TAO_IDL/be/be_sequence.cpp | 326 - TAO/TAO_IDL/be/be_state.cpp | 67 - TAO/TAO_IDL/be/be_state_argument.cpp | 2309 -- TAO/TAO_IDL/be/be_state_array.cpp | 120 - TAO/TAO_IDL/be/be_state_attribute.cpp | 1166 - TAO/TAO_IDL/be/be_state_exception.cpp | 409 - TAO/TAO_IDL/be/be_state_operation.cpp | 739 - TAO/TAO_IDL/be/be_state_sequence.cpp | 442 - TAO/TAO_IDL/be/be_state_structure.cpp | 280 - TAO/TAO_IDL/be/be_state_typedef.cpp | 370 - TAO/TAO_IDL/be/be_state_union.cpp | 1146 - TAO/TAO_IDL/be/be_string.cpp | 126 - TAO/TAO_IDL/be/be_structure.cpp | 731 - TAO/TAO_IDL/be/be_sunsoft.cpp | 110 - TAO/TAO_IDL/be/be_type.cpp | 287 - TAO/TAO_IDL/be/be_typedef.cpp | 194 - TAO/TAO_IDL/be/be_union.cpp | 799 - TAO/TAO_IDL/be/be_union_branch.cpp | 120 - TAO/TAO_IDL/be/be_union_label.cpp | 25 - TAO/TAO_IDL/be/be_visitor.cpp | 165 - TAO/TAO_IDL/be/be_visitor_args.cpp | 2805 --- TAO/TAO_IDL/be/be_visitor_array.cpp | 537 - TAO/TAO_IDL/be/be_visitor_attribute.cpp | 188 - TAO/TAO_IDL/be/be_visitor_constant.cpp | 181 - TAO/TAO_IDL/be/be_visitor_context.cpp | 478 - TAO/TAO_IDL/be/be_visitor_decl.cpp | 37 - TAO/TAO_IDL/be/be_visitor_enum.cpp | 241 - TAO/TAO_IDL/be/be_visitor_exception.cpp | 1178 - TAO/TAO_IDL/be/be_visitor_field.cpp | 784 - TAO/TAO_IDL/be/be_visitor_interface.cpp | 2288 -- TAO/TAO_IDL/be/be_visitor_interface_fwd.cpp | 146 - TAO/TAO_IDL/be/be_visitor_module.cpp | 723 - TAO/TAO_IDL/be/be_visitor_operation.cpp | 3430 --- TAO/TAO_IDL/be/be_visitor_root.cpp | 980 - TAO/TAO_IDL/be/be_visitor_scope.cpp | 98 - TAO/TAO_IDL/be/be_visitor_sequence.cpp | 1671 -- TAO/TAO_IDL/be/be_visitor_structure.cpp | 478 - TAO/TAO_IDL/be/be_visitor_typecode.cpp | 314 - TAO/TAO_IDL/be/be_visitor_typedef.cpp | 1804 -- TAO/TAO_IDL/be/be_visitor_union.cpp | 1036 - TAO/TAO_IDL/be/be_visitor_union_branch.cpp | 2110 -- TAO/TAO_IDL/be_include/be.h | 125 - TAO/TAO_IDL/be_include/be_argument.h | 49 - TAO/TAO_IDL/be_include/be_array.h | 104 - TAO/TAO_IDL/be_include/be_attribute.h | 48 - TAO/TAO_IDL/be_include/be_codegen.h | 505 - TAO/TAO_IDL/be_include/be_constant.h | 56 - TAO/TAO_IDL/be_include/be_decl.h | 169 - TAO/TAO_IDL/be_include/be_enum.h | 79 - TAO/TAO_IDL/be_include/be_enum_val.h | 55 - TAO/TAO_IDL/be_include/be_exception.h | 61 - TAO/TAO_IDL/be_include/be_expression.h | 48 - TAO/TAO_IDL/be_include/be_factory.h | 72 - TAO/TAO_IDL/be_include/be_field.h | 58 - TAO/TAO_IDL/be_include/be_generator.h | 166 - TAO/TAO_IDL/be_include/be_helper.h | 179 - TAO/TAO_IDL/be_include/be_interface.h | 165 - TAO/TAO_IDL/be_include/be_interface_fwd.h | 76 - TAO/TAO_IDL/be_include/be_interpretive.h | 40 - TAO/TAO_IDL/be_include/be_module.h | 56 - TAO/TAO_IDL/be_include/be_native.h | 59 - TAO/TAO_IDL/be_include/be_operation.h | 78 - TAO/TAO_IDL/be_include/be_predefined_type.h | 77 - TAO/TAO_IDL/be_include/be_root.h | 58 - TAO/TAO_IDL/be_include/be_scope.h | 76 - TAO/TAO_IDL/be_include/be_sequence.h | 108 - TAO/TAO_IDL/be_include/be_state.h | 296 - TAO/TAO_IDL/be_include/be_string.h | 71 - TAO/TAO_IDL/be_include/be_structure.h | 95 - TAO/TAO_IDL/be_include/be_sunsoft.h | 47 - TAO/TAO_IDL/be_include/be_type.h | 106 - TAO/TAO_IDL/be_include/be_typedef.h | 77 - TAO/TAO_IDL/be_include/be_union.h | 103 - TAO/TAO_IDL/be_include/be_union_branch.h | 58 - TAO/TAO_IDL/be_include/be_union_label.h | 19 - TAO/TAO_IDL/be_include/be_visitor.h | 157 - TAO/TAO_IDL/be_include/be_visitor_args.h | 606 - TAO/TAO_IDL/be_include/be_visitor_array.h | 156 - TAO/TAO_IDL/be_include/be_visitor_attribute.h | 56 - TAO/TAO_IDL/be_include/be_visitor_constant.h | 79 - TAO/TAO_IDL/be_include/be_visitor_context.h | 229 - TAO/TAO_IDL/be_include/be_visitor_decl.h | 52 - TAO/TAO_IDL/be_include/be_visitor_enum.h | 125 - TAO/TAO_IDL/be_include/be_visitor_exception.h | 281 - TAO/TAO_IDL/be_include/be_visitor_field.h | 162 - TAO/TAO_IDL/be_include/be_visitor_interface.h | 344 - TAO/TAO_IDL/be_include/be_visitor_interface_fwd.h | 72 - TAO/TAO_IDL/be_include/be_visitor_module.h | 145 - TAO/TAO_IDL/be_include/be_visitor_operation.h | 839 - TAO/TAO_IDL/be_include/be_visitor_root.h | 232 - TAO/TAO_IDL/be_include/be_visitor_scope.h | 53 - TAO/TAO_IDL/be_include/be_visitor_sequence.h | 258 - TAO/TAO_IDL/be_include/be_visitor_structure.h | 171 - TAO/TAO_IDL/be_include/be_visitor_typecode.h | 132 - TAO/TAO_IDL/be_include/be_visitor_typedef.h | 267 - TAO/TAO_IDL/be_include/be_visitor_union.h | 250 - TAO/TAO_IDL/be_include/be_visitor_union_branch.h | 254 - TAO/TAO_IDL/docs/ANNOUNCEMENT | 131 - TAO/TAO_IDL/docs/BUG_REPORT | 144 - TAO/TAO_IDL/docs/CHANGES | 122 - TAO/TAO_IDL/docs/CLI | 187 - TAO/TAO_IDL/docs/COPYRIGHT | 57 - TAO/TAO_IDL/docs/INSTALL | 229 - TAO/TAO_IDL/docs/PROBLEMS | 132 - TAO/TAO_IDL/docs/README | 233 - TAO/TAO_IDL/docs/ROADMAP | 126 - TAO/TAO_IDL/docs/WRITING_A_BE | 1350 -- TAO/TAO_IDL/driver/Makefile | 361 - TAO/TAO_IDL/driver/drv_args.cpp | 273 - TAO/TAO_IDL/driver/drv_fork.cpp | 127 - TAO/TAO_IDL/driver/drv_init.cpp | 121 - TAO/TAO_IDL/driver/drv_link.cpp | 138 - TAO/TAO_IDL/driver/drv_preproc.cpp | 356 - TAO/TAO_IDL/driver/drv_private.cpp | 81 - TAO/TAO_IDL/fe/Makefile | 403 - TAO/TAO_IDL/fe/fe_declarator.cpp | 159 - TAO/TAO_IDL/fe/fe_extern.cpp | 124 - TAO/TAO_IDL/fe/fe_init.cpp | 369 - TAO/TAO_IDL/fe/fe_interface_header.cpp | 284 - TAO/TAO_IDL/fe/fe_private.cpp | 80 - TAO/TAO_IDL/fe/idl.ll | 528 - TAO/TAO_IDL/fe/idl.yy | 2288 -- TAO/TAO_IDL/fe/lex.yy.cpp | 2197 -- TAO/TAO_IDL/fe/lex.yy.cpp.diff | 34 - TAO/TAO_IDL/fe/y.tab.cpp | 3300 --- TAO/TAO_IDL/fe/y.tab.cpp.diff | 127 - TAO/TAO_IDL/fe/y.tab.h | 77 - TAO/TAO_IDL/idl_make_vars | 62 - TAO/TAO_IDL/idl_specs/array.idl | 39 - TAO/TAO_IDL/idl_specs/constant.idl | 31 - TAO/TAO_IDL/idl_specs/dif2.idl | 50 - TAO/TAO_IDL/idl_specs/inherit.idl | 19 - TAO/TAO_IDL/idl_specs/module.idl | 22 - TAO/TAO_IDL/idl_specs/primtypes.idl | 25 - TAO/TAO_IDL/idl_specs/sequence.idl | 27 - TAO/TAO_IDL/idl_specs/simple.idl | 18 - TAO/TAO_IDL/idl_specs/simple2.idl | 28 - TAO/TAO_IDL/idl_specs/struct.idl | 54 - TAO/TAO_IDL/idl_specs/union.idl | 28 - TAO/TAO_IDL/idl_specs/union2.idl | 23 - TAO/TAO_IDL/include/ast.h | 120 - TAO/TAO_IDL/include/ast_argument.h | 115 - TAO/TAO_IDL/include/ast_array.h | 117 - TAO/TAO_IDL/include/ast_attribute.h | 109 - TAO/TAO_IDL/include/ast_concrete_type.h | 95 - TAO/TAO_IDL/include/ast_constant.h | 117 - TAO/TAO_IDL/include/ast_decl.h | 190 - TAO/TAO_IDL/include/ast_enum.h | 115 - TAO/TAO_IDL/include/ast_enum_val.h | 99 - TAO/TAO_IDL/include/ast_exception.h | 118 - TAO/TAO_IDL/include/ast_expression.h | 231 - TAO/TAO_IDL/include/ast_extern.h | 93 - TAO/TAO_IDL/include/ast_field.h | 119 - TAO/TAO_IDL/include/ast_generator.h | 219 - TAO/TAO_IDL/include/ast_interface.h | 147 - TAO/TAO_IDL/include/ast_interface_fwd.h | 106 - TAO/TAO_IDL/include/ast_module.h | 121 - TAO/TAO_IDL/include/ast_native.h | 38 - TAO/TAO_IDL/include/ast_operation.h | 139 - TAO/TAO_IDL/include/ast_predefined_type.h | 127 - TAO/TAO_IDL/include/ast_root.h | 107 - TAO/TAO_IDL/include/ast_sequence.h | 108 - TAO/TAO_IDL/include/ast_string.h | 108 - TAO/TAO_IDL/include/ast_structure.h | 118 - TAO/TAO_IDL/include/ast_type.h | 101 - TAO/TAO_IDL/include/ast_typedef.h | 105 - TAO/TAO_IDL/include/ast_union.h | 143 - TAO/TAO_IDL/include/ast_union_branch.h | 109 - TAO/TAO_IDL/include/ast_union_label.h | 110 - TAO/TAO_IDL/include/be_extern.h | 82 - TAO/TAO_IDL/include/drv_extern.h | 86 - TAO/TAO_IDL/include/drv_link.h | 124 - TAO/TAO_IDL/include/drv_private.h | 83 - TAO/TAO_IDL/include/fe_declarator.h | 113 - TAO/TAO_IDL/include/fe_extern.h | 109 - TAO/TAO_IDL/include/fe_interface_header.h | 109 - TAO/TAO_IDL/include/fe_private.h | 90 - TAO/TAO_IDL/include/global_extern.h | 80 - TAO/TAO_IDL/include/idl.h | 96 - TAO/TAO_IDL/include/idl_bool.h | 94 - TAO/TAO_IDL/include/idl_defines.h | 84 - TAO/TAO_IDL/include/idl_extern.h | 81 - TAO/TAO_IDL/include/idl_fwd.h | 148 - TAO/TAO_IDL/include/idl_global.h | 374 - TAO/TAO_IDL/include/idl_narrow.h | 264 - TAO/TAO_IDL/include/intlmacros.h | 87 - TAO/TAO_IDL/include/nr_extern.h | 76 - TAO/TAO_IDL/include/util.h | 87 - TAO/TAO_IDL/include/utl_decllist.h | 121 - TAO/TAO_IDL/include/utl_err.h | 183 - TAO/TAO_IDL/include/utl_error.h | 183 - TAO/TAO_IDL/include/utl_exceptlist.h | 121 - TAO/TAO_IDL/include/utl_exprlist.h | 121 - TAO/TAO_IDL/include/utl_identifier.h | 113 - TAO/TAO_IDL/include/utl_idlist.h | 147 - TAO/TAO_IDL/include/utl_indenter.h | 117 - TAO/TAO_IDL/include/utl_labellist.h | 121 - TAO/TAO_IDL/include/utl_list.h | 150 - TAO/TAO_IDL/include/utl_namelist.h | 121 - TAO/TAO_IDL/include/utl_scope.h | 292 - TAO/TAO_IDL/include/utl_scoped_name.h | 82 - TAO/TAO_IDL/include/utl_stack.h | 150 - TAO/TAO_IDL/include/utl_string.h | 143 - TAO/TAO_IDL/include/utl_strlist.h | 135 - TAO/TAO_IDL/include/utl_tmpl/utl_decllist.h | 100 - TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h | 108 - TAO/TAO_IDL/include/utl_tmpl/utl_exprlist.h | 101 - TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h | 100 - TAO/TAO_IDL/include/utl_tmpl/utl_labellist.h | 96 - TAO/TAO_IDL/include/utl_tmpl/utl_list.h | 140 - TAO/TAO_IDL/include/utl_tmpl/utl_namelist.h | 98 - TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h | 104 - TAO/TAO_IDL/narrow/Makefile | 100 - TAO/TAO_IDL/narrow/narrow.cpp | 139 - TAO/TAO_IDL/tao_idl.cpp | 258 - TAO/TAO_IDL/tao_idl.dsp | 1043 - TAO/TAO_IDL/tao_idl.dsw | 29 - TAO/TAO_IDL/util/Makefile | 719 - TAO/TAO_IDL/util/utl_decllist.cpp | 147 - TAO/TAO_IDL/util/utl_err.cpp | 702 - TAO/TAO_IDL/util/utl_error.cpp | 702 - TAO/TAO_IDL/util/utl_exceptlist.cpp | 145 - TAO/TAO_IDL/util/utl_exprlist.cpp | 145 - TAO/TAO_IDL/util/utl_global.cpp | 654 - TAO/TAO_IDL/util/utl_identifier.cpp | 122 - TAO/TAO_IDL/util/utl_idlist.cpp | 189 - TAO/TAO_IDL/util/utl_indenter.cpp | 133 - TAO/TAO_IDL/util/utl_labellist.cpp | 145 - TAO/TAO_IDL/util/utl_list.cpp | 197 - TAO/TAO_IDL/util/utl_namelist.cpp | 145 - TAO/TAO_IDL/util/utl_scope.cpp | 1206 -- TAO/TAO_IDL/util/utl_stack.cpp | 257 - TAO/TAO_IDL/util/utl_string.cpp | 212 - TAO/TAO_IDL/util/utl_strlist.cpp | 196 - TAO/TAO_IDL/util/utl_tmpl/utl_decllist.cpp | 105 - TAO/TAO_IDL/util/utl_tmpl/utl_exceptlist.cpp | 104 - TAO/TAO_IDL/util/utl_tmpl/utl_exprlist.cpp | 104 - TAO/TAO_IDL/util/utl_tmpl/utl_idlist.cpp | 137 - TAO/TAO_IDL/util/utl_tmpl/utl_labellist.cpp | 104 - TAO/TAO_IDL/util/utl_tmpl/utl_list.cpp | 211 - TAO/TAO_IDL/util/utl_tmpl/utl_namelist.cpp | 106 - TAO/TAO_IDL/util/utl_tmpl/utl_strlist.cpp | 139 - TAO/VERSION | 4 - TAO/announcement | 61 - TAO/docs/DIFFERENCES | 360 - TAO/docs/HISTORY | 44 - TAO/docs/Options.html | 231 - TAO/docs/REFERENCES | 91 - TAO/docs/compiler.html | 117 - TAO/docs/components.html | 39 - TAO/docs/configurations.html | 301 - TAO/docs/forwarding.html | 85 - TAO/docs/index.html | 49 - TAO/docs/orbsvcs.html | 181 - TAO/docs/poa_migration.html | 69 - TAO/docs/reactivator.html | 358 - TAO/docs/releasenotes.html | 26 - TAO/docs/releasenotes/ec.html | 182 - TAO/docs/releasenotes/index.html | 607 - TAO/docs/releasenotes/orbcore.html | 458 - .../Simulator/DOVEBrowser/AnswerEvent.java | 23 - .../Simulator/DOVEBrowser/AnswerListener.java | 18 - .../Simulator/DOVEBrowser/DOVEBrowser.html | 30 - .../Simulator/DOVEBrowser/DOVEBrowser.java | 47 - .../Simulator/DOVEBrowser/DOVEBrowserApplet.java | 49 - .../Simulator/DOVEBrowser/DataHandler.java | 34 - TAO/examples/Simulator/DOVEBrowser/DemoCore.java | 154 - .../Simulator/DOVEBrowser/DemoObservable.java | 19 - .../Simulator/DOVEBrowser/DoubleVisComp.java | 206 - TAO/examples/Simulator/DOVEBrowser/NS_Resolve.java | 112 - .../Simulator/DOVEBrowser/NavWeapDataHandler.java | 220 - .../Simulator/DOVEBrowser/NavigationVisComp.java | 350 - .../Simulator/DOVEBrowser/ObservablesDialog.java | 90 - TAO/examples/Simulator/DOVEBrowser/Properties.java | 22 - .../Simulator/DOVEBrowser/PushConsumer.java | 198 - .../Simulator/DOVEBrowser/PushConsumer.java.JDK1.2 | 190 - .../Simulator/DOVEBrowser/PushConsumerFactory.java | 181 - .../DOVEBrowser/PushConsumerFactory.java.JDK1.2 | 180 - TAO/examples/Simulator/DOVEBrowser/Queue.java | 190 - TAO/examples/Simulator/DOVEBrowser/VisComp.java | 19 - .../Simulator/DOVEBrowser/VisCompFactory.java | 48 - .../Simulator/DOVEBrowser/WeaponsVisComp.java | 144 - TAO/examples/Simulator/DOVEBrowser/make.bat | 45 - TAO/examples/Simulator/DOVEMIB/AnyAnalyser.cpp | 203 - TAO/examples/Simulator/DOVEMIB/AnyAnalyser.h | 57 - TAO/examples/Simulator/DOVEMIB/DOVEMIB.cpp | 407 - TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsp | 102 - TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsw | 53 - TAO/examples/Simulator/DOVEMIB/DOVEMIB.h | 62 - TAO/examples/Simulator/DOVEMIB/DOVEMIBx.dsp | 177 - TAO/examples/Simulator/DOVEMIB/Makefile | 978 - TAO/examples/Simulator/DOVEMIB/Node.cpp | 217 - TAO/examples/Simulator/DOVEMIB/Node.h | 185 - TAO/examples/Simulator/DOVEMIB/NodeVisitor.h | 39 - TAO/examples/Simulator/DOVEMIB/PrintVisitor.cpp | 128 - TAO/examples/Simulator/DOVEMIB/PrintVisitor.h | 45 - TAO/examples/Simulator/DOVEMIB/TestClient.dsp | 167 - TAO/examples/Simulator/DOVEMIB/any_test.idl | 11 - TAO/examples/Simulator/DOVEMIB/any_test_i.cpp | 63 - TAO/examples/Simulator/DOVEMIB/any_test_i.h | 42 - TAO/examples/Simulator/DOVEMIB/clnt.cpp | 183 - TAO/examples/Simulator/DOVEMIB/clnt.h | 62 - TAO/examples/Simulator/DOVEMIB/svc.conf | 49 - TAO/examples/Simulator/DOVEMIB/svr.cpp | 166 - TAO/examples/Simulator/Event_Supplier/EDF.dat | 72 - .../Simulator/Event_Supplier/Event_Con.cpp | 375 - TAO/examples/Simulator/Event_Supplier/Event_Con.h | 66 - .../Simulator/Event_Supplier/Event_Sup.cpp | 728 - .../Simulator/Event_Supplier/Event_Sup.dsp | 132 - .../Simulator/Event_Supplier/Event_Sup.dsw | 29 - TAO/examples/Simulator/Event_Supplier/Event_Sup.h | 134 - TAO/examples/Simulator/Event_Supplier/MLF.dat | 72 - TAO/examples/Simulator/Event_Supplier/MUF.dat | 72 - TAO/examples/Simulator/Event_Supplier/Makefile | 69 - TAO/examples/Simulator/Event_Supplier/RMS.dat | 72 - TAO/examples/Simulator/Event_Supplier/RMS_Dyn.dat | 72 - TAO/examples/Simulator/Event_Supplier/svc.conf | 49 - TAO/examples/Simulator/NavWeap.idl | 54 - TAO/examples/Simulator/README | 173 - TAO/examples/Simulator/ss | 85 - .../Concurrency_Service/Concurrency_Service.cpp | 220 - .../Concurrency_Service/Concurrency_Service.dsp | 104 - .../Concurrency_Service/Concurrency_Service.dsw | 29 - .../Concurrency_Service/Concurrency_Service.h | 101 - TAO/orbsvcs/Concurrency_Service/Makefile | 47 - TAO/orbsvcs/Concurrency_Service/README | 129 - TAO/orbsvcs/Concurrency_Service/svc.conf | 49 - TAO/orbsvcs/Dump_Schedule/Dump_Schedule.cpp | 91 - TAO/orbsvcs/Dump_Schedule/Dump_Schedule.dsp | 99 - TAO/orbsvcs/Dump_Schedule/Dump_Schedule.dsw | 29 - TAO/orbsvcs/Dump_Schedule/Makefile | 48 - TAO/orbsvcs/Dump_Schedule/svc.conf | 49 - TAO/orbsvcs/Event_Service/Event_Service.cpp | 117 - TAO/orbsvcs/Event_Service/Event_Service.dsp | 147 - TAO/orbsvcs/Event_Service/Event_Service.dsw | 29 - TAO/orbsvcs/Event_Service/Makefile | 45 - TAO/orbsvcs/Event_Service/svc.conf | 49 - .../LifeCycle_Service/Criteria_Evaluator.cpp | 87 - TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.h | 58 - TAO/orbsvcs/LifeCycle_Service/Factory_Trader.cpp | 281 - TAO/orbsvcs/LifeCycle_Service/Factory_Trader.h | 60 - .../LifeCycle_Service/LifeCycle_Service.dsp | 134 - .../LifeCycle_Service/LifeCycle_Service.dsw | 29 - .../LifeCycle_Service/Life_Cycle_Service.cpp | 222 - TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service.h | 64 - .../LifeCycle_Service/Life_Cycle_Service_Impl.cpp | 169 - .../LifeCycle_Service/Life_Cycle_Service_Impl.h | 63 - TAO/orbsvcs/LifeCycle_Service/Makefile | 303 - TAO/orbsvcs/LifeCycle_Service/svc.conf | 49 - TAO/orbsvcs/Makefile | 29 - TAO/orbsvcs/Naming_Service/Makefile | 47 - TAO/orbsvcs/Naming_Service/Naming_Service.cpp | 174 - TAO/orbsvcs/Naming_Service/Naming_Service.dsp | 111 - TAO/orbsvcs/Naming_Service/Naming_Service.dsw | 29 - TAO/orbsvcs/Naming_Service/Naming_Service.h | 67 - TAO/orbsvcs/Naming_Service/README | 76 - TAO/orbsvcs/Naming_Service/svc.conf | 49 - TAO/orbsvcs/Scheduling_Service/Makefile | 48 - .../Scheduling_Service/Scheduling_Service.cpp | 119 - .../Scheduling_Service/Scheduling_Service.dsp | 112 - .../Scheduling_Service/Scheduling_Service.dsw | 29 - TAO/orbsvcs/Scheduling_Service/svc.conf | 49 - TAO/orbsvcs/Trading_Service/Makefile | 45 - TAO/orbsvcs/Trading_Service/svc.conf | 49 - TAO/orbsvcs/Trading_Service/trader.cpp | 123 - TAO/orbsvcs/default.bld | 44 - TAO/orbsvcs/orbsvcs.dsw | 131 - TAO/orbsvcs/orbsvcs/AV/AVStreams_i.cpp | 801 - TAO/orbsvcs/orbsvcs/AV/AVStreams_i.h | 488 - TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.cpp | 891 - TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.h | 324 - TAO/orbsvcs/orbsvcs/AV/README | 28 - TAO/orbsvcs/orbsvcs/AVStreams.idl | 502 - TAO/orbsvcs/orbsvcs/AVStreams_Full.idl | 250 - TAO/orbsvcs/orbsvcs/Channel_Clients.cpp | 1 - TAO/orbsvcs/orbsvcs/Channel_Clients.h | 26 - TAO/orbsvcs/orbsvcs/Channel_Clients_T.cpp | 31 - TAO/orbsvcs/orbsvcs/Channel_Clients_T.h | 93 - TAO/orbsvcs/orbsvcs/Channel_Clients_T.i | 17 - TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp | 240 - TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.h | 135 - TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp | 359 - TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.h | 166 - .../orbsvcs/Concurrency/CC_LockSetFactory.cpp | 74 - .../orbsvcs/Concurrency/CC_LockSetFactory.h | 55 - .../orbsvcs/Concurrency/Concurrency_Utils.cpp | 94 - .../orbsvcs/Concurrency/Concurrency_Utils.h | 65 - TAO/orbsvcs/orbsvcs/CosConcurrencyControl.idl | 194 - TAO/orbsvcs/orbsvcs/CosLifeCycle.idl | 119 - TAO/orbsvcs/orbsvcs/CosNaming.idl | 207 - TAO/orbsvcs/orbsvcs/CosPropertyService.idl | 403 - TAO/orbsvcs/orbsvcs/CosTimeBase.idl | 62 - TAO/orbsvcs/orbsvcs/CosTrading.idl | 717 - TAO/orbsvcs/orbsvcs/Event/BCU.cpp | 31 - TAO/orbsvcs/orbsvcs/Event/BCU.h | 36 - TAO/orbsvcs/orbsvcs/Event/CORBA_Utils_T.cpp | 349 - TAO/orbsvcs/orbsvcs/Event/CORBA_Utils_T.h | 236 - TAO/orbsvcs/orbsvcs/Event/CORBA_Utils_T.i | 75 - TAO/orbsvcs/orbsvcs/Event/Channel_Clients.i | 2 - TAO/orbsvcs/orbsvcs/Event/Channel_Clients_T.i | 35 - TAO/orbsvcs/orbsvcs/Event/Debug_Macros.h | 13 - TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp | 645 - TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.h | 486 - TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.i | 265 - TAO/orbsvcs/orbsvcs/Event/EC_Gateway.cpp | 268 - TAO/orbsvcs/orbsvcs/Event/EC_Gateway.h | 182 - TAO/orbsvcs/orbsvcs/Event/Event_Channel.cpp | 3223 --- TAO/orbsvcs/orbsvcs/Event/Event_Channel.h | 1336 -- TAO/orbsvcs/orbsvcs/Event/Event_Channel.i | 676 - TAO/orbsvcs/orbsvcs/Event/Fast_Reactor.h | 53 - TAO/orbsvcs/orbsvcs/Event/GPlot_File.cpp | 179 - TAO/orbsvcs/orbsvcs/Event/GPlot_File.h | 97 - TAO/orbsvcs/orbsvcs/Event/GPlot_File.i | 70 - TAO/orbsvcs/orbsvcs/Event/Local_ESTypes.cpp | 9 - TAO/orbsvcs/orbsvcs/Event/Local_ESTypes.h | 49 - TAO/orbsvcs/orbsvcs/Event/Local_ESTypes.i | 5 - TAO/orbsvcs/orbsvcs/Event/Memory_Pools.cpp | 43 - TAO/orbsvcs/orbsvcs/Event/Memory_Pools.h | 107 - TAO/orbsvcs/orbsvcs/Event/Memory_Pools.i | 54 - TAO/orbsvcs/orbsvcs/Event/RT_Task.cpp | 472 - TAO/orbsvcs/orbsvcs/Event/RT_Task.h | 178 - TAO/orbsvcs/orbsvcs/Event/RT_Task.i | 8 - TAO/orbsvcs/orbsvcs/Event/ReactorTask.cpp | 133 - TAO/orbsvcs/orbsvcs/Event/ReactorTask.h | 76 - TAO/orbsvcs/orbsvcs/Event/Task_Manager.cpp | 45 - TAO/orbsvcs/orbsvcs/Event/Task_Manager.h | 56 - TAO/orbsvcs/orbsvcs/Event/Task_Manager.i | 30 - TAO/orbsvcs/orbsvcs/Event_Service_Constants.h | 98 - TAO/orbsvcs/orbsvcs/Event_Utilities.cpp | 129 - TAO/orbsvcs/orbsvcs/Event_Utilities.h | 224 - TAO/orbsvcs/orbsvcs/Event_Utilities.i | 100 - TAO/orbsvcs/orbsvcs/IOR_Multicast.cpp | 101 - TAO/orbsvcs/orbsvcs/IOR_Multicast.h | 85 - TAO/orbsvcs/orbsvcs/LifeCycleService.idl | 71 - TAO/orbsvcs/orbsvcs/Log/Logger_i.cpp | 38 - TAO/orbsvcs/orbsvcs/Log/Logger_i.h | 56 - TAO/orbsvcs/orbsvcs/Logger.idl | 23 - TAO/orbsvcs/orbsvcs/Makefile | 21496 ------------------- TAO/orbsvcs/orbsvcs/Naming/CosNaming_i.cpp | 787 - TAO/orbsvcs/orbsvcs/Naming/CosNaming_i.h | 188 - TAO/orbsvcs/orbsvcs/Naming/Entries.cpp | 108 - TAO/orbsvcs/orbsvcs/Naming/Entries.h | 110 - TAO/orbsvcs/orbsvcs/Naming/Naming_Utils.cpp | 267 - TAO/orbsvcs/orbsvcs/Naming/Naming_Utils.h | 93 - TAO/orbsvcs/orbsvcs/Null_MediaCtrl.idl | 5 - .../orbsvcs/Property/CosPropertyService_i.cpp | 1944 -- .../orbsvcs/Property/CosPropertyService_i.h | 500 - TAO/orbsvcs/orbsvcs/RtecEventChannelAdmin.idl | 72 - TAO/orbsvcs/orbsvcs/RtecEventComm.idl | 87 - TAO/orbsvcs/orbsvcs/RtecScheduler.idl | 267 - TAO/orbsvcs/orbsvcs/Runtime_Scheduler.cpp | 204 - TAO/orbsvcs/orbsvcs/Runtime_Scheduler.h | 98 - TAO/orbsvcs/orbsvcs/Runtime_Scheduler.i | 5 - TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp | 364 - TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.h | 162 - TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.i | 5 - TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp | 1777 -- TAO/orbsvcs/orbsvcs/Sched/DynSched.h | 483 - TAO/orbsvcs/orbsvcs/Sched/DynSched.i | 111 - TAO/orbsvcs/orbsvcs/Sched/SchedEntry.cpp | 875 - TAO/orbsvcs/orbsvcs/Sched/SchedEntry.h | 591 - TAO/orbsvcs/orbsvcs/Sched/SchedEntry.i | 402 - TAO/orbsvcs/orbsvcs/Sched/Scheduler.cpp | 279 - TAO/orbsvcs/orbsvcs/Sched/Scheduler.h | 276 - TAO/orbsvcs/orbsvcs/Sched/Scheduler.i | 20 - TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.cpp | 262 - TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.h | 129 - TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.i | 21 - TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp | 1399 -- TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.h | 571 - TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.i | 21 - TAO/orbsvcs/orbsvcs/Scheduler_Factory.cpp | 211 - TAO/orbsvcs/orbsvcs/Scheduler_Factory.h | 97 - TAO/orbsvcs/orbsvcs/Scheduler_Factory.i | 6 - TAO/orbsvcs/orbsvcs/Scheduler_Utilities.cpp | 14 - TAO/orbsvcs/orbsvcs/Scheduler_Utilities.h | 46 - TAO/orbsvcs/orbsvcs/Scheduler_Utilities.i | 32 - TAO/orbsvcs/orbsvcs/Sequences.idl | 26 - TAO/orbsvcs/orbsvcs/Time_Utilities.cpp | 10 - TAO/orbsvcs/orbsvcs/Time_Utilities.h | 74 - TAO/orbsvcs/orbsvcs/Time_Utilities.i | 106 - TAO/orbsvcs/orbsvcs/Trader/Admin.cpp | 328 - TAO/orbsvcs/orbsvcs/Trader/Admin.h | 195 - TAO/orbsvcs/orbsvcs/Trader/Attributes.cpp | 407 - TAO/orbsvcs/orbsvcs/Trader/Attributes.h | 269 - TAO/orbsvcs/orbsvcs/Trader/Attributes_T.cpp | 185 - TAO/orbsvcs/orbsvcs/Trader/Attributes_T.h | 165 - TAO/orbsvcs/orbsvcs/Trader/Constraint.cpp | 49 - TAO/orbsvcs/orbsvcs/Trader/Constraint.h | 66 - .../orbsvcs/Trader/Constraint_Evaluator.cpp | 643 - TAO/orbsvcs/orbsvcs/Trader/Constraint_Evaluator.h | 175 - .../orbsvcs/Trader/Constraint_Interpreter.cpp | 77 - .../orbsvcs/Trader/Constraint_Interpreter.h | 68 - TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.cpp | 917 - TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.h | 310 - TAO/orbsvcs/orbsvcs/Trader/Constraint_Tokens.h | 36 - .../orbsvcs/Trader/Constraint_Validator.cpp | 465 - TAO/orbsvcs/orbsvcs/Trader/Constraint_Validator.h | 135 - TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitor.h | 79 - TAO/orbsvcs/orbsvcs/Trader/Constraint_l.cpp | 1781 -- TAO/orbsvcs/orbsvcs/Trader/Constraint_y.cpp | 905 - TAO/orbsvcs/orbsvcs/Trader/Dynamic_Property.cpp | 130 - TAO/orbsvcs/orbsvcs/Trader/Dynamic_Property.h | 91 - TAO/orbsvcs/orbsvcs/Trader/Interpreter.cpp | 54 - TAO/orbsvcs/orbsvcs/Trader/Interpreter.h | 45 - TAO/orbsvcs/orbsvcs/Trader/Link.cpp | 190 - TAO/orbsvcs/orbsvcs/Trader/Link.h | 198 - TAO/orbsvcs/orbsvcs/Trader/Locking.h | 48 - TAO/orbsvcs/orbsvcs/Trader/Lookup.cpp | 790 - TAO/orbsvcs/orbsvcs/Trader/Lookup.h | 313 - TAO/orbsvcs/orbsvcs/Trader/Offer_Filter.cpp | 146 - TAO/orbsvcs/orbsvcs/Trader/Offer_Filter.h | 99 - TAO/orbsvcs/orbsvcs/Trader/Offer_Id_Iterator.cpp | 127 - TAO/orbsvcs/orbsvcs/Trader/Offer_Id_Iterator.h | 90 - TAO/orbsvcs/orbsvcs/Trader/Offer_Iterator.cpp | 60 - TAO/orbsvcs/orbsvcs/Trader/Offer_Iterator.h | 92 - .../orbsvcs/Trader/Offer_Iterator_Collection.cpp | 137 - .../orbsvcs/Trader/Offer_Iterator_Collection.h | 84 - TAO/orbsvcs/orbsvcs/Trader/Offer_Modifier.cpp | 143 - TAO/orbsvcs/orbsvcs/Trader/Offer_Modifier.h | 84 - TAO/orbsvcs/orbsvcs/Trader/Policies.cpp | 496 - TAO/orbsvcs/orbsvcs/Trader/Policies.h | 270 - TAO/orbsvcs/orbsvcs/Trader/Policy_Manager.cpp | 134 - TAO/orbsvcs/orbsvcs/Trader/Policy_Manager.h | 75 - .../orbsvcs/Trader/Preference_Interpreter.cpp | 164 - .../orbsvcs/Trader/Preference_Interpreter.h | 89 - TAO/orbsvcs/orbsvcs/Trader/Property_Evaluator.cpp | 222 - TAO/orbsvcs/orbsvcs/Trader/Property_Evaluator.h | 146 - TAO/orbsvcs/orbsvcs/Trader/Property_Filter.cpp | 103 - TAO/orbsvcs/orbsvcs/Trader/Property_Filter.h | 58 - TAO/orbsvcs/orbsvcs/Trader/Proxy.cpp | 93 - TAO/orbsvcs/orbsvcs/Trader/Proxy.h | 88 - .../orbsvcs/Trader/Query_Only_Offer_Iterator.cpp | 74 - .../orbsvcs/Trader/Query_Only_Offer_Iterator.h | 68 - TAO/orbsvcs/orbsvcs/Trader/Register.cpp | 367 - TAO/orbsvcs/orbsvcs/Trader/Register.h | 309 - .../orbsvcs/Trader/Register_Offer_Iterator.cpp | 116 - .../orbsvcs/Trader/Register_Offer_Iterator.h | 80 - TAO/orbsvcs/orbsvcs/Trader/Service_Type_Map.cpp | 338 - TAO/orbsvcs/orbsvcs/Trader/Service_Type_Map.h | 200 - .../orbsvcs/Trader/Service_Type_Repository.cpp | 526 - .../orbsvcs/Trader/Service_Type_Repository.h | 299 - TAO/orbsvcs/orbsvcs/Trader/Trader.cpp | 197 - TAO/orbsvcs/orbsvcs/Trader/Trader.h | 152 - TAO/orbsvcs/orbsvcs/Trader/Trader_T.cpp | 115 - TAO/orbsvcs/orbsvcs/Trader/Trader_T.h | 100 - TAO/orbsvcs/orbsvcs/Trader/constraint.l | 130 - TAO/orbsvcs/orbsvcs/Trader/constraint.y | 135 - TAO/orbsvcs/orbsvcs/orbsvcs.dsp | 1143 - TAO/orbsvcs/orbsvcs/orbsvcs.dsw | 41 - TAO/orbsvcs/orbsvcs/orbsvcs_export.h | 35 - TAO/orbsvcs/orbsvcs/orbsvcs_lib.dsp | 519 - TAO/orbsvcs/orbsvcs/sfp.idl | 86 - TAO/orbsvcs/orbsvcs/tmplinst-orbsvcs.cpp | 44 - TAO/orbsvcs/tests/AVStreams/Machine_Properties.cpp | 227 - TAO/orbsvcs/tests/AVStreams/Machine_Properties.h | 84 - TAO/orbsvcs/tests/AVStreams/Makefile | 96 - TAO/orbsvcs/tests/AVStreams/Property_Exporter.cpp | 411 - TAO/orbsvcs/tests/AVStreams/Property_Exporter.h | 196 - TAO/orbsvcs/tests/AVStreams/README | 27 - TAO/orbsvcs/tests/AVStreams/benchmark/Makefile | 271 - TAO/orbsvcs/tests/AVStreams/benchmark/child.cpp | 71 - TAO/orbsvcs/tests/AVStreams/benchmark/child.h | 49 - TAO/orbsvcs/tests/AVStreams/benchmark/client.cpp | 312 - TAO/orbsvcs/tests/AVStreams/benchmark/client.h | 118 - TAO/orbsvcs/tests/AVStreams/benchmark/clnt.conf | 49 - TAO/orbsvcs/tests/AVStreams/benchmark/server.cpp | 135 - TAO/orbsvcs/tests/AVStreams/benchmark/server.h | 49 - TAO/orbsvcs/tests/AVStreams/benchmark/svc.conf | 50 - TAO/orbsvcs/tests/AVStreams/client.cpp | 769 - TAO/orbsvcs/tests/AVStreams/client.h | 130 - TAO/orbsvcs/tests/AVStreams/mpeg/ANNOUNCE | 45 - TAO/orbsvcs/tests/AVStreams/mpeg/BUGS | 21 - TAO/orbsvcs/tests/AVStreams/mpeg/COPYING | 339 - TAO/orbsvcs/tests/AVStreams/mpeg/INSTALL | 231 - TAO/orbsvcs/tests/AVStreams/mpeg/INSTALL.UCB | 105 - TAO/orbsvcs/tests/AVStreams/mpeg/PatchLevel | 12 - TAO/orbsvcs/tests/AVStreams/mpeg/README | 142 - TAO/orbsvcs/tests/AVStreams/mpeg/README.MI | 39 - TAO/orbsvcs/tests/AVStreams/mpeg/README.UCB | 105 - TAO/orbsvcs/tests/AVStreams/mpeg/VERSION | 1 - TAO/orbsvcs/tests/AVStreams/mpeg/source/Makefile | 32 - TAO/orbsvcs/tests/AVStreams/mpeg/source/TODO | 50 - .../tests/AVStreams/mpeg/source/client/Makefile | 77 - .../tests/AVStreams/mpeg/source/client/svc.conf | 49 - .../tests/AVStreams/mpeg/source/client/vcr.cpp | 473 - .../tests/AVStreams/mpeg/source/include/common.h | 583 - .../AVStreams/mpeg/source/mpeg_client/24bit.cpp | 213 - .../AVStreams/mpeg/source/mpeg_client/2x2.cpp | 372 - .../mpeg/source/mpeg_client/Command_Handler.cpp | 2729 --- .../mpeg/source/mpeg_client/Command_Handler.h | 473 - .../AVStreams/mpeg/source/mpeg_client/Makefile | 526 - .../tests/AVStreams/mpeg/source/mpeg_client/ab.cpp | 482 - .../AVStreams/mpeg/source/mpeg_client/audio.cpp | 490 - .../AVStreams/mpeg/source/mpeg_client/ctr.cpp | 3019 --- .../AVStreams/mpeg/source/mpeg_client/decoders.cpp | 933 - .../AVStreams/mpeg/source/mpeg_client/decoders.h | 475 - .../AVStreams/mpeg/source/mpeg_client/dither.h | 36 - .../AVStreams/mpeg/source/mpeg_client/file.cpp | 146 - .../AVStreams/mpeg/source/mpeg_client/fs2.cpp | 394 - .../tests/AVStreams/mpeg/source/mpeg_client/fs2.h | 28 - .../AVStreams/mpeg/source/mpeg_client/fs2fast.cpp | 295 - .../AVStreams/mpeg/source/mpeg_client/fs4.cpp | 308 - .../tests/AVStreams/mpeg/source/mpeg_client/fs4.h | 30 - .../AVStreams/mpeg/source/mpeg_client/global.cpp | 92 - .../AVStreams/mpeg/source/mpeg_client/global.h | 67 - .../AVStreams/mpeg/source/mpeg_client/gray.cpp | 81 - .../AVStreams/mpeg/source/mpeg_client/hybrid.cpp | 231 - .../mpeg/source/mpeg_client/hybriderr.cpp | 355 - .../AVStreams/mpeg/source/mpeg_client/info.cpp | 79 - .../mpeg/source/mpeg_client/interface/Info.mib | 78 - .../mpeg/source/mpeg_client/interface/MW.mib | 229 - .../source/mpeg_client/interface/MainWindow.mib | 324 - .../mpeg/source/mpeg_client/interface/fb.xbm | 9 - .../mpeg/source/mpeg_client/interface/ff.xbm | 8 - .../mpeg/source/mpeg_client/interface/loop.xbm | 8 - .../mpeg_client/interface/old.MainWindow.mib | 305 - .../mpeg/source/mpeg_client/interface/play.xbm | 8 - .../mpeg/source/mpeg_client/interface/rewind.xbm | 8 - .../mpeg/source/mpeg_client/interface/step.xbm | 8 - .../mpeg/source/mpeg_client/interface/stop.xbm | 8 - .../AVStreams/mpeg/source/mpeg_client/jrevdct.cpp | 1457 -- .../mpeg/source/mpeg_client/mb_ordered.cpp | 512 - .../AVStreams/mpeg/source/mpeg_client/mibload.h | 155 - .../AVStreams/mpeg/source/mpeg_client/mono.cpp | 252 - .../mpeg/source/mpeg_client/motionvector.cpp | 192 - .../AVStreams/mpeg/source/mpeg_client/newproto.h | 110 - .../AVStreams/mpeg/source/mpeg_client/ordered.cpp | 285 - .../AVStreams/mpeg/source/mpeg_client/ordered2.cpp | 323 - .../AVStreams/mpeg/source/mpeg_client/para.cpp | 371 - .../mpeg/source/mpeg_client/parseblock.cpp | 456 - .../AVStreams/mpeg/source/mpeg_client/prog.cpp | 929 - .../AVStreams/mpeg/source/mpeg_client/proto.h | 128 - .../tests/AVStreams/mpeg/source/mpeg_client/ui.cpp | 1000 - .../tests/AVStreams/mpeg/source/mpeg_client/ui.h | 18 - .../AVStreams/mpeg/source/mpeg_client/util.cpp | 464 - .../tests/AVStreams/mpeg/source/mpeg_client/util.h | 368 - .../AVStreams/mpeg/source/mpeg_client/util32.cpp | 77 - .../tests/AVStreams/mpeg/source/mpeg_client/vb.cpp | 1804 -- .../tests/AVStreams/mpeg/source/mpeg_client/vd.cpp | 929 - .../AVStreams/mpeg/source/mpeg_client/video.cpp | 3756 ---- .../AVStreams/mpeg/source/mpeg_client/video.h | 285 - .../tests/AVStreams/mpeg/source/mpeg_client/vp.cpp | 916 - .../tests/AVStreams/mpeg/source/mpeg_mib/Makefile | 271 - .../AVStreams/mpeg/source/mpeg_mib/mibButton.cpp | 172 - .../AVStreams/mpeg/source/mpeg_mib/mibDrawArea.cpp | 118 - .../AVStreams/mpeg/source/mpeg_mib/mibFrame.cpp | 179 - .../AVStreams/mpeg/source/mpeg_mib/mibLabel.cpp | 163 - .../AVStreams/mpeg/source/mpeg_mib/mibList.cpp | 163 - .../AVStreams/mpeg/source/mpeg_mib/mibMenu.cpp | 247 - .../AVStreams/mpeg/source/mpeg_mib/mibRadioBox.cpp | 207 - .../AVStreams/mpeg/source/mpeg_mib/mibScale.cpp | 201 - .../mpeg/source/mpeg_mib/mibScrollBar.cpp | 161 - .../AVStreams/mpeg/source/mpeg_mib/mibTextBig.cpp | 144 - .../AVStreams/mpeg/source/mpeg_mib/mibTextBox.cpp | 130 - .../AVStreams/mpeg/source/mpeg_mib/mibToggle.cpp | 190 - .../AVStreams/mpeg/source/mpeg_mib/mibload.cpp | 801 - .../tests/AVStreams/mpeg/source/mpeg_mib/mibload.h | 168 - .../AVStreams/mpeg/source/mpeg_mib/mibwidgets.h | 225 - .../source/mpeg_server/Audio_Control_State.cpp | 156 - .../mpeg/source/mpeg_server/Audio_Control_State.h | 79 - .../mpeg/source/mpeg_server/Audio_Control_i.cpp | 256 - .../mpeg/source/mpeg_server/Audio_Control_i.h | 80 - .../mpeg/source/mpeg_server/Audio_Server.cpp | 299 - .../mpeg/source/mpeg_server/Audio_Server.h | 116 - .../AVStreams/mpeg/source/mpeg_server/Globals.cpp | 2932 --- .../AVStreams/mpeg/source/mpeg_server/Globals.h | 391 - .../AVStreams/mpeg/source/mpeg_server/Makefile | 2485 --- .../source/mpeg_server/Video_Control_State.cpp | 481 - .../mpeg/source/mpeg_server/Video_Control_State.h | 184 - .../mpeg/source/mpeg_server/Video_Control_i.cpp | 265 - .../mpeg/source/mpeg_server/Video_Control_i.h | 97 - .../mpeg/source/mpeg_server/Video_Server.cpp | 251 - .../mpeg/source/mpeg_server/Video_Server.h | 147 - .../tests/AVStreams/mpeg/source/mpeg_server/as.cpp | 705 - .../AVStreams/mpeg/source/mpeg_server/las.cpp | 249 - .../AVStreams/mpeg/source/mpeg_server/lvs.cpp | 410 - .../mpeg/source/mpeg_server/server_proto.h | 63 - .../tests/AVStreams/mpeg/source/mpeg_server/vs.cpp | 2205 -- .../mpeg/source/mpeg_shared/Audio_Control.idl | 78 - .../AVStreams/mpeg/source/mpeg_shared/Makefile | 134 - .../mpeg/source/mpeg_shared/Video_Control.idl | 112 - .../AVStreams/mpeg/source/mpeg_shared/com.cpp | 2133 -- .../tests/AVStreams/mpeg/source/mpeg_shared/com.h | 112 - .../AVStreams/mpeg/source/mpeg_shared/fileio.cpp | 406 - .../AVStreams/mpeg/source/mpeg_shared/fileio.h | 100 - .../AVStreams/mpeg/source/mpeg_shared/filters.cpp | 367 - .../AVStreams/mpeg/source/mpeg_shared/filters.h | 85 - .../AVStreams/mpeg/source/mpeg_shared/routine.cpp | 512 - .../AVStreams/mpeg/source/mpeg_shared/routine.h | 55 - .../AVStreams/mpeg/source/mpeg_shared/sendpt.cpp | 137 - .../AVStreams/mpeg/source/mpeg_shared/sendpt.h | 32 - .../mpeg/source/server/Machine_Properties.cpp | 271 - .../mpeg/source/server/Machine_Properties.h | 97 - .../tests/AVStreams/mpeg/source/server/Makefile | 1750 -- .../mpeg/source/server/Property_Exporter.cpp | 400 - .../mpeg/source/server/Property_Exporter.h | 216 - .../mpeg/source/server/Video_Repository.cpp | 180 - .../mpeg/source/server/Video_Repository.h | 87 - .../mpeg/source/server/Video_Repository.idl | 32 - .../tests/AVStreams/mpeg/source/server/as.cpp | 64 - .../tests/AVStreams/mpeg/source/server/as.h | 54 - .../mpeg/source/server/augmented_server.cpp | 606 - .../mpeg/source/server/augmented_server.h | 226 - .../tests/AVStreams/mpeg/source/server/server.cpp | 474 - .../tests/AVStreams/mpeg/source/server/server.h | 187 - .../tests/AVStreams/mpeg/source/server/svc.conf | 50 - .../tests/AVStreams/mpeg/source/server/vcrs.cpp | 261 - .../tests/AVStreams/mpeg/source/server/vs.cpp | 62 - .../tests/AVStreams/mpeg/source/server/vs.h | 55 - TAO/orbsvcs/tests/AVStreams/mpeg/vcr.1 | 610 - TAO/orbsvcs/tests/AVStreams/mpeg/vcrs.1 | 1 - TAO/orbsvcs/tests/AVStreams/server.cpp | 218 - TAO/orbsvcs/tests/AVStreams/server.h | 57 - TAO/orbsvcs/tests/AVStreams/sfp/Makefile | 66 - TAO/orbsvcs/tests/AVStreams/sfp/client.cpp | 48 - TAO/orbsvcs/tests/AVStreams/sfp/svc.conf | 49 - TAO/orbsvcs/tests/AVStreams/svc.conf | 49 - TAO/orbsvcs/tests/Concurrency/CC_client.cpp | 455 - TAO/orbsvcs/tests/Concurrency/CC_client.dsp | 112 - TAO/orbsvcs/tests/Concurrency/CC_client.h | 138 - TAO/orbsvcs/tests/Concurrency/CC_command.cpp | 667 - TAO/orbsvcs/tests/Concurrency/CC_command.h | 471 - TAO/orbsvcs/tests/Concurrency/CC_command.l | 58 - TAO/orbsvcs/tests/Concurrency/CC_command.tab.cpp | 1008 - TAO/orbsvcs/tests/Concurrency/CC_command.tab.h | 31 - TAO/orbsvcs/tests/Concurrency/CC_command.y | 123 - .../tests/Concurrency/CC_naming_service.cpp | 177 - TAO/orbsvcs/tests/Concurrency/CC_naming_service.h | 86 - TAO/orbsvcs/tests/Concurrency/CC_test_utils.cpp | 69 - TAO/orbsvcs/tests/Concurrency/CC_test_utils.h | 37 - TAO/orbsvcs/tests/Concurrency/CC_tests.cpp | 372 - TAO/orbsvcs/tests/Concurrency/CC_tests.h | 184 - TAO/orbsvcs/tests/Concurrency/Concurrency.dsw | 29 - TAO/orbsvcs/tests/Concurrency/Makefile | 1851 -- TAO/orbsvcs/tests/Concurrency/NS_client.cpp | 216 - TAO/orbsvcs/tests/Concurrency/NS_client.h | 88 - TAO/orbsvcs/tests/Concurrency/README | 111 - TAO/orbsvcs/tests/Concurrency/lex.CC_command.cpp | 1743 -- TAO/orbsvcs/tests/Concurrency/svc.conf | 49 - TAO/orbsvcs/tests/Concurrency/test.basic | 21 - TAO/orbsvcs/tests/Concurrency/test.dinphil | 12 - TAO/orbsvcs/tests/Concurrency/test.e1 | 2 - TAO/orbsvcs/tests/Concurrency/test.extended | 4 - TAO/orbsvcs/tests/Concurrency/test.phil1 | 6 - TAO/orbsvcs/tests/Concurrency/test.phil2 | 6 - TAO/orbsvcs/tests/Concurrency/test.phil3 | 6 - TAO/orbsvcs/tests/Concurrency/test.phil4 | 6 - TAO/orbsvcs/tests/Concurrency/test.phil5 | 6 - TAO/orbsvcs/tests/Concurrency/tmplinst.cpp | 12 - TAO/orbsvcs/tests/CosPropertyService/Makefile | 91 - TAO/orbsvcs/tests/CosPropertyService/client.cpp | 754 - TAO/orbsvcs/tests/CosPropertyService/client.h | 99 - TAO/orbsvcs/tests/CosPropertyService/main.cpp | 589 - TAO/orbsvcs/tests/CosPropertyService/server.cpp | 120 - TAO/orbsvcs/tests/CosPropertyService/server.h | 27 - TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp | 1499 -- TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.dsp | 110 - TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.dsw | 29 - TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.h | 363 - TAO/orbsvcs/tests/EC_Multiple/Makefile | 42 - TAO/orbsvcs/tests/EC_Multiple/README | 34 - TAO/orbsvcs/tests/EC_Multiple/Scheduler_Runtime1.h | 157 - TAO/orbsvcs/tests/EC_Multiple/Scheduler_Runtime2.h | 155 - TAO/orbsvcs/tests/EC_Multiple/gen_latency | 90 - TAO/orbsvcs/tests/EC_Multiple/gen_overhead | 114 - TAO/orbsvcs/tests/EC_Multiple/gen_throughput | 43 - TAO/orbsvcs/tests/EC_Multiple/gen_utilization | 80 - TAO/orbsvcs/tests/EC_Multiple/histo.pl | 76 - TAO/orbsvcs/tests/EC_Multiple/run_latency | 48 - TAO/orbsvcs/tests/EC_Multiple/run_overhead | 113 - TAO/orbsvcs/tests/EC_Multiple/run_schedule | 43 - TAO/orbsvcs/tests/EC_Multiple/run_throughput | 35 - TAO/orbsvcs/tests/EC_Multiple/run_utilization | 53 - TAO/orbsvcs/tests/EC_Multiple/svc.conf | 7 - TAO/orbsvcs/tests/Event_Latency/Event_Latency.cpp | 952 - TAO/orbsvcs/tests/Event_Latency/Event_Latency.dsp | 103 - TAO/orbsvcs/tests/Event_Latency/Event_Latency.dsw | 29 - TAO/orbsvcs/tests/Event_Latency/Event_Latency.h | 248 - TAO/orbsvcs/tests/Event_Latency/Makefile | 58 - TAO/orbsvcs/tests/Event_Latency/svc.conf | 49 - TAO/orbsvcs/tests/Logger/Logger.dsw | 41 - TAO/orbsvcs/tests/Logger/Makefile | 57 - TAO/orbsvcs/tests/Logger/client.dsp | 89 - TAO/orbsvcs/tests/Logger/clnt.cpp | 249 - TAO/orbsvcs/tests/Logger/clnt.h | 72 - TAO/orbsvcs/tests/Logger/server.dsp | 89 - TAO/orbsvcs/tests/Logger/svc.conf | 49 - TAO/orbsvcs/tests/Logger/svr.cpp | 108 - TAO/orbsvcs/tests/Makefile | 32 - TAO/orbsvcs/tests/Naming/Makefile | 51 - TAO/orbsvcs/tests/Naming/README | 16 - TAO/orbsvcs/tests/Naming/ns_tree.cpp | 114 - TAO/orbsvcs/tests/Naming/test_object.idl | 7 - TAO/orbsvcs/tests/Property/Makefile | 91 - TAO/orbsvcs/tests/Property/client.cpp | 809 - TAO/orbsvcs/tests/Property/client.h | 105 - TAO/orbsvcs/tests/Property/main.cpp | 589 - TAO/orbsvcs/tests/Property/server.cpp | 120 - TAO/orbsvcs/tests/Property/server.h | 27 - TAO/orbsvcs/tests/Sched/DynSched_Test.cpp | 286 - TAO/orbsvcs/tests/Sched/Makefile | 260 - TAO/orbsvcs/tests/Sched_Conf/Makefile | 244 - TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.cpp | 268 - TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.dsp | 91 - TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.dsw | 29 - TAO/orbsvcs/tests/Simple_Naming/Makefile | 233 - TAO/orbsvcs/tests/Simple_Naming/Simple_Naming.dsw | 29 - TAO/orbsvcs/tests/Simple_Naming/client.dsp | 88 - TAO/orbsvcs/tests/Simple_Naming/clnt.cpp | 128 - TAO/orbsvcs/tests/Simple_Naming/clnt.h | 58 - TAO/orbsvcs/tests/Simple_Naming/svc.conf | 49 - TAO/orbsvcs/tests/Trading/Makefile | 1157 - TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp | 420 - TAO/orbsvcs/tests/Trading/Offer_Exporter.h | 102 - TAO/orbsvcs/tests/Trading/Offer_Importer.cpp | 147 - TAO/orbsvcs/tests/Trading/Offer_Importer.h | 63 - .../tests/Trading/Service_Type_Exporter.cpp | 368 - TAO/orbsvcs/tests/Trading/Service_Type_Exporter.h | 70 - TAO/orbsvcs/tests/Trading/TT_Info.cpp | 182 - TAO/orbsvcs/tests/Trading/TT_Info.h | 137 - TAO/orbsvcs/tests/Trading/TTest.idl | 30 - TAO/orbsvcs/tests/Trading/colocated_test.cpp | 137 - TAO/orbsvcs/tests/Trading/export_test.cpp | 137 - TAO/orbsvcs/tests/Trading/import_test.cpp | 49 - TAO/orbsvcs/tests/Trading/svc.conf | 49 - TAO/orbsvcs/tests/tests.dsw | 41 - .../Cubit/TAO/MT_Cubit/MT_Cubit_Test | 61 - TAO/performance-tests/Cubit/TAO/MT_Cubit/Makefile | 102 - TAO/performance-tests/Cubit/TAO/MT_Cubit/README | 91 - .../Cubit/TAO/MT_Cubit/Task_Client.cpp | 1002 - .../Cubit/TAO/MT_Cubit/Task_Client.h | 268 - .../Cubit/TAO/MT_Cubit/Util_Thread.cpp | 103 - .../Cubit/TAO/MT_Cubit/Util_Thread.h | 56 - .../Cubit/TAO/MT_Cubit/client.cpp | 796 - TAO/performance-tests/Cubit/TAO/MT_Cubit/client.h | 35 - TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit.idl | 38 - .../Cubit/TAO/MT_Cubit/cubit_i.cpp | 80 - TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.h | 51 - .../Cubit/TAO/MT_Cubit/server.cpp | 902 - TAO/performance-tests/Cubit/TAO/MT_Cubit/server.h | 123 - TAO/performance-tests/Cubit/TAO/MT_Cubit/svc.conf | 49 - .../Cubit/TAO/MT_Cubit/tmplinst.cpp | 12 - TAO/release.chk | 124 - TAO/release.pl | 91 - TAO/rules.tao.GNU | 20 - TAO/tao/Align.h | 84 - TAO/tao/Any.cpp | 740 - TAO/tao/Any.h | 409 - TAO/tao/Any.i | 313 - TAO/tao/CDR.cpp | 941 - TAO/tao/CDR.h | 599 - TAO/tao/CDR.i | 902 - TAO/tao/CORBA.cpp | 177 - TAO/tao/Client_Strategy_Factory.cpp | 12 - TAO/tao/Client_Strategy_Factory.h | 34 - TAO/tao/Connect.cpp | 698 - TAO/tao/Connect.h | 168 - TAO/tao/Connect.i | 14 - TAO/tao/Current.IDL | 5 - TAO/tao/CurrentC.cpp | 104 - TAO/tao/CurrentC.h | 145 - TAO/tao/CurrentC.i | 195 - TAO/tao/CurrentS.cpp | 143 - TAO/tao/Exception.cpp | 550 - TAO/tao/Exception.h | 337 - TAO/tao/Exception.i | 61 - TAO/tao/Forwarding_Servant.cpp | 35 - TAO/tao/Forwarding_Servant.h | 56 - TAO/tao/GIOP.cpp | 1560 -- TAO/tao/GIOP.h | 418 - TAO/tao/GIOP.i | 46 - TAO/tao/IIOP_Interpreter.cpp | 999 - TAO/tao/IIOP_Interpreter.h | 253 - TAO/tao/IIOP_ORB.cpp | 397 - TAO/tao/IIOP_ORB.h | 82 - TAO/tao/IIOP_ORB.i | 38 - TAO/tao/IIOP_Object.cpp | 862 - TAO/tao/IIOP_Object.h | 239 - TAO/tao/IIOP_Object.i | 58 - TAO/tao/Makefile | 8690 -------- TAO/tao/Marshal.cpp | 106 - TAO/tao/Marshal.h | 686 - TAO/tao/Marshal.i | 290 - TAO/tao/NVList.cpp | 287 - TAO/tao/NVList.h | 161 - TAO/tao/NVList.i | 49 - TAO/tao/ORB.cpp | 809 - TAO/tao/ORB.h | 1038 - TAO/tao/ORB.i | 373 - TAO/tao/ORB_Core.cpp | 1263 -- TAO/tao/ORB_Core.h | 510 - TAO/tao/ORB_Core.i | 141 - TAO/tao/ORB_Strategies_T.cpp | 46 - TAO/tao/ORB_Strategies_T.h | 53 - TAO/tao/ORB_Strategies_T.i | 12 - TAO/tao/Object.cpp | 375 - TAO/tao/Object.h | 201 - TAO/tao/Object.i | 258 - TAO/tao/Object_Key.IDL | 9 - TAO/tao/Object_KeyC.cpp | 47 - TAO/tao/Object_KeyC.h | 97 - TAO/tao/Object_KeyC.i | 203 - TAO/tao/Object_Table.cpp | 660 - TAO/tao/Object_Table.h | 385 - TAO/tao/Operation_Table.cpp | 281 - TAO/tao/Operation_Table.h | 278 - TAO/tao/POA.IDL | 376 - TAO/tao/POA.cpp | 3280 --- TAO/tao/POA.h | 932 - TAO/tao/POA.i | 732 - TAO/tao/POAC.cpp | 2575 --- TAO/tao/POAC.h | 2119 -- TAO/tao/POAC.i | 3079 --- TAO/tao/POAS.cpp | 2910 --- TAO/tao/POAS.h | 1153 - TAO/tao/POAS.i | 184 - TAO/tao/POA_CORBA.h | 182 - TAO/tao/Policy.IDL | 15 - TAO/tao/PolicyC.cpp | 172 - TAO/tao/PolicyC.h | 218 - TAO/tao/PolicyC.i | 381 - TAO/tao/PolicyS.cpp | 279 - TAO/tao/Principal.cpp | 47 - TAO/tao/Principal.h | 60 - TAO/tao/Request.cpp | 119 - TAO/tao/Request.h | 109 - TAO/tao/Request.i | 46 - TAO/tao/Sequence.cpp | 422 - TAO/tao/Sequence.h | 449 - TAO/tao/Sequence.i | 293 - TAO/tao/Sequence_T.cpp | 643 - TAO/tao/Sequence_T.h | 571 - TAO/tao/Sequence_T.i | 339 - TAO/tao/Servant_Base.cpp | 184 - TAO/tao/Servant_Base.h | 138 - TAO/tao/Server_Request.cpp | 557 - TAO/tao/Server_Request.h | 330 - TAO/tao/Server_Request.i | 78 - TAO/tao/Server_Strategy_Factory.cpp | 91 - TAO/tao/Server_Strategy_Factory.h | 84 - TAO/tao/Stub.cpp | 7 - TAO/tao/Stub.h | 293 - TAO/tao/Stub.i | 13 - TAO/tao/TAO.cpp | 247 - TAO/tao/TAO.dsp | 608 - TAO/tao/TAO.dsw | 29 - TAO/tao/TAO.h | 111 - TAO/tao/TAO4.mak | 964 - TAO/tao/TAO4.mdp | Bin 44032 -> 0 bytes TAO/tao/TAO_Internal.cpp | 90 - TAO/tao/TAO_Internal.h | 63 - TAO/tao/TAO_Internal.i | 4 - TAO/tao/Timeprobe.h | 15 - TAO/tao/Typecode.cpp | 2343 -- TAO/tao/Typecode.h | 479 - TAO/tao/Typecode.i | 243 - TAO/tao/Typecode_Constants.cpp | 510 - TAO/tao/append.cpp | 743 - TAO/tao/compat/initguid.h | 18 - TAO/tao/compat/objbase.h | 196 - TAO/tao/corba.h | 340 - TAO/tao/debug.cpp | 369 - TAO/tao/debug.h | 115 - TAO/tao/decode.cpp | 1652 -- TAO/tao/deep_copy.cpp | 1253 -- TAO/tao/deep_free.cpp | 765 - TAO/tao/default.bld | 24 - TAO/tao/default_client.cpp | 31 - TAO/tao/default_client.h | 51 - TAO/tao/default_client.i | 4 - TAO/tao/default_server.cpp | 348 - TAO/tao/default_server.h | 153 - TAO/tao/default_server.i | 4 - TAO/tao/encode.cpp | 1293 -- TAO/tao/factories.h | 141 - TAO/tao/orbconf.h | 238 - TAO/tao/params.cpp | 112 - TAO/tao/params.h | 218 - TAO/tao/params.i | 103 - TAO/tao/poa_T.cpp | 96 - TAO/tao/poa_T.h | 75 - TAO/tao/poa_macros.h | 53 - TAO/tao/singletons.h | 41 - TAO/tao/skip.cpp | 791 - TAO/tao/t-sizes.cpp | 17 - TAO/tao/tao.bld | 86 - TAO/tao/varout.h | 626 - TAO/taoconfig.mk | 14 - TAO/tests/CDR/CDR.dsw | 53 - TAO/tests/CDR/Makefile | 621 - TAO/tests/CDR/README | 14 - TAO/tests/CDR/basic_types.cpp | 253 - TAO/tests/CDR/basic_types.dsp | 91 - TAO/tests/CDR/growth.cpp | 150 - TAO/tests/CDR/growth.dsp | 87 - TAO/tests/CDR/growth.dsw | 29 - TAO/tests/CDR/tc.cpp | 153 - TAO/tests/CDR/tc.dsp | 89 - TAO/tests/Cubit/COOL/IDL_Cubit/Makefile | 144 - TAO/tests/Cubit/COOL/IDL_Cubit/README | 34 - TAO/tests/Cubit/COOL/IDL_Cubit/client.cpp | 747 - TAO/tests/Cubit/COOL/IDL_Cubit/client.h | 128 - TAO/tests/Cubit/COOL/IDL_Cubit/cubit.idl | 71 - TAO/tests/Cubit/COOL/IDL_Cubit/cubit_i.cpp | 189 - TAO/tests/Cubit/COOL/IDL_Cubit/cubit_i.h | 109 - TAO/tests/Cubit/COOL/IDL_Cubit/server.cpp | 149 - TAO/tests/Cubit/COOL/IDL_Cubit/tmplinst.cpp | 15 - TAO/tests/Cubit/COOL/MT_Cubit/Makefile | 91 - TAO/tests/Cubit/COOL/MT_Cubit/README | 166 - TAO/tests/Cubit/COOL/MT_Cubit/Task_Client.cpp | 627 - TAO/tests/Cubit/COOL/MT_Cubit/Task_Client.h | 190 - TAO/tests/Cubit/COOL/MT_Cubit/Util_Thread.cpp | 60 - TAO/tests/Cubit/COOL/MT_Cubit/Util_Thread.h | 45 - TAO/tests/Cubit/COOL/MT_Cubit/client.cpp | 287 - TAO/tests/Cubit/COOL/MT_Cubit/client.h | 36 - TAO/tests/Cubit/COOL/MT_Cubit/cubit.idl | 42 - TAO/tests/Cubit/COOL/MT_Cubit/cubit_impl.cpp | 51 - TAO/tests/Cubit/COOL/MT_Cubit/cubit_impl.h | 21 - TAO/tests/Cubit/COOL/MT_Cubit/pccTimer.cpp | 277 - TAO/tests/Cubit/COOL/MT_Cubit/pccTimer.h | 56 - TAO/tests/Cubit/COOL/MT_Cubit/server.cpp | 158 - TAO/tests/Cubit/COOL/Makefile | 22 - TAO/tests/Cubit/CORBAplus/IDL_Cubit/Makefile | 89 - TAO/tests/Cubit/CORBAplus/IDL_Cubit/README | 54 - TAO/tests/Cubit/CORBAplus/IDL_Cubit/clnt.cpp | 725 - TAO/tests/Cubit/CORBAplus/IDL_Cubit/clnt.h | 135 - TAO/tests/Cubit/CORBAplus/IDL_Cubit/cubit.idl | 71 - TAO/tests/Cubit/CORBAplus/IDL_Cubit/cubit_i.cpp | 174 - TAO/tests/Cubit/CORBAplus/IDL_Cubit/cubit_i.h | 107 - TAO/tests/Cubit/CORBAplus/IDL_Cubit/svr.cpp | 141 - TAO/tests/Cubit/CORBAplus/MT_Cubit/Makefile | 23 - TAO/tests/Cubit/CORBAplus/MT_Cubit/README | 58 - TAO/tests/Cubit/CORBAplus/MT_Cubit/client/Makefile | 145 - .../CORBAplus/MT_Cubit/client/Task_Client.cpp | 357 - .../Cubit/CORBAplus/MT_Cubit/client/Task_Client.h | 52 - .../Cubit/CORBAplus/MT_Cubit/client/client.cpp | 61 - .../Cubit/CORBAplus/MT_Cubit/client/cubit.idl | 41 - TAO/tests/Cubit/CORBAplus/MT_Cubit/server/Makefile | 66 - .../Cubit/CORBAplus/MT_Cubit/server/cubit.idl | 41 - .../Cubit/CORBAplus/MT_Cubit/server/cubit_i.cpp | 80 - .../Cubit/CORBAplus/MT_Cubit/server/cubit_i.h | 52 - TAO/tests/Cubit/CORBAplus/MT_Cubit/server/svr.cpp | 286 - TAO/tests/Cubit/Makefile | 28 - TAO/tests/Cubit/Orbix/Makefile | 28 - TAO/tests/Cubit/Orbix/base_server/Makefile | 73 - TAO/tests/Cubit/Orbix/base_server/cubit.idl | 42 - TAO/tests/Cubit/Orbix/base_server/cubit_impl.cpp | 48 - TAO/tests/Cubit/Orbix/base_server/cubit_impl.h | 29 - TAO/tests/Cubit/Orbix/base_server/server.cpp | 43 - TAO/tests/Cubit/Orbix/client/Makefile | 89 - TAO/tests/Cubit/Orbix/client/client.cpp | 297 - TAO/tests/Cubit/Orbix/client/cubit.h | 729 - TAO/tests/Cubit/Orbix/client/cubit.idl | 42 - TAO/tests/Cubit/Orbix/client/cubitC.cpp | 559 - TAO/tests/Cubit/Orbix/factory_client/Makefile | 77 - TAO/tests/Cubit/Orbix/factory_client/client.cpp | 237 - TAO/tests/Cubit/Orbix/factory_client/cubit.h | 1113 - TAO/tests/Cubit/Orbix/factory_client/cubit.hh | 1111 - TAO/tests/Cubit/Orbix/factory_client/cubit.idl | 48 - TAO/tests/Cubit/Orbix/factory_client/cubitC.cpp | 712 - TAO/tests/Cubit/Orbix/factory_client/cubitS.cpp | 284 - TAO/tests/Cubit/Orbix/orb.mk | 146 - TAO/tests/Cubit/Orbix/tpool/Makefile | 89 - TAO/tests/Cubit/Orbix/tpool/cubit.h | 729 - TAO/tests/Cubit/Orbix/tpool/cubit.idl | 42 - TAO/tests/Cubit/Orbix/tpool/cubitC.cpp | 559 - TAO/tests/Cubit/Orbix/tpool/cubitS.cpp | 228 - TAO/tests/Cubit/Orbix/tpool/cubit_impl.cpp | 48 - TAO/tests/Cubit/Orbix/tpool/cubit_impl.h | 29 - TAO/tests/Cubit/Orbix/tpool/server.cpp | 48 - TAO/tests/Cubit/Orbix/tpool/tpool.cpp | 44 - TAO/tests/Cubit/Orbix/tpool/tpool.h | 17 - TAO/tests/Cubit/Orbix/tpr/Makefile | 89 - TAO/tests/Cubit/Orbix/tpr/cubit.h | 729 - TAO/tests/Cubit/Orbix/tpr/cubit.idl | 42 - TAO/tests/Cubit/Orbix/tpr/cubitC.cpp | 559 - TAO/tests/Cubit/Orbix/tpr/cubitC.h | 345 - TAO/tests/Cubit/Orbix/tpr/cubitS.cpp | 228 - TAO/tests/Cubit/Orbix/tpr/cubitS.h | 120 - TAO/tests/Cubit/Orbix/tpr/cubit_impl.cpp | 48 - TAO/tests/Cubit/Orbix/tpr/cubit_impl.h | 29 - TAO/tests/Cubit/Orbix/tpr/server.cpp | 42 - TAO/tests/Cubit/Orbix/tpr/tpr.cpp | 28 - TAO/tests/Cubit/Orbix/tpr/tpr.h | 12 - TAO/tests/Cubit/Orbix/tps/Makefile | 349 - TAO/tests/Cubit/Orbix/tps/cubit.h | 1113 - TAO/tests/Cubit/Orbix/tps/cubit.idl | 48 - TAO/tests/Cubit/Orbix/tps/cubitC.cpp | 712 - TAO/tests/Cubit/Orbix/tps/cubitS.cpp | 284 - TAO/tests/Cubit/Orbix/tps/cubit_impl.cpp | 83 - TAO/tests/Cubit/Orbix/tps/cubit_impl.h | 48 - TAO/tests/Cubit/Orbix/tps/tps.cpp | 28 - TAO/tests/Cubit/Orbix/tps/tps.h | 13 - TAO/tests/Cubit/README | 4 - TAO/tests/Cubit/TAO/DII_Cubit/DII_Cubit.dsw | 41 - TAO/tests/Cubit/TAO/DII_Cubit/Makefile | 1204 -- TAO/tests/Cubit/TAO/DII_Cubit/README | 30 - TAO/tests/Cubit/TAO/DII_Cubit/client.dsp | 109 - TAO/tests/Cubit/TAO/DII_Cubit/clnt.bld | 11 - TAO/tests/Cubit/TAO/DII_Cubit/clnt.cpp | 656 - TAO/tests/Cubit/TAO/DII_Cubit/clnt.h | 138 - TAO/tests/Cubit/TAO/DII_Cubit/cubit.cpp | 562 - TAO/tests/Cubit/TAO/DII_Cubit/cubit.h | 107 - TAO/tests/Cubit/TAO/DII_Cubit/cubit.idl | 44 - TAO/tests/Cubit/TAO/DII_Cubit/cubitC.cpp | 387 - TAO/tests/Cubit/TAO/DII_Cubit/cubitC.h | 103 - TAO/tests/Cubit/TAO/DII_Cubit/cubitS.cpp | 258 - TAO/tests/Cubit/TAO/DII_Cubit/cubitS.h | 93 - TAO/tests/Cubit/TAO/DII_Cubit/cubit_i.cpp | 89 - TAO/tests/Cubit/TAO/DII_Cubit/cubit_i.h | 56 - TAO/tests/Cubit/TAO/DII_Cubit/default.bld | 35 - TAO/tests/Cubit/TAO/DII_Cubit/method_db.i | 56 - TAO/tests/Cubit/TAO/DII_Cubit/server.dsp | 117 - TAO/tests/Cubit/TAO/DII_Cubit/svc.conf | 49 - TAO/tests/Cubit/TAO/DII_Cubit/svr.bld | 12 - TAO/tests/Cubit/TAO/DII_Cubit/svr.cpp | 153 - TAO/tests/Cubit/TAO/DII_Cubit/test.mak | 1596 -- TAO/tests/Cubit/TAO/DII_Cubit/test.mdp | Bin 71168 -> 0 bytes TAO/tests/Cubit/TAO/DII_Cubit/test1.cpp | 392 - TAO/tests/Cubit/TAO/DII_Cubit/test1.h | 124 - TAO/tests/Cubit/TAO/DII_Cubit/test1.idl | 80 - TAO/tests/Cubit/TAO/DII_Cubit/test1_clnt.cpp | 637 - TAO/tests/Cubit/TAO/DII_Cubit/test1_svr.cpp | 668 - TAO/tests/Cubit/TAO/IDL_Cubit/Cubit.mak | 2068 -- TAO/tests/Cubit/TAO/IDL_Cubit/Cubit.mdp | Bin 72192 -> 0 bytes TAO/tests/Cubit/TAO/IDL_Cubit/IDL_Cubit.dsp | 92 - TAO/tests/Cubit/TAO/IDL_Cubit/IDL_Cubit.dsw | 65 - TAO/tests/Cubit/TAO/IDL_Cubit/IDL_Cubit_Test.cpp | 69 - TAO/tests/Cubit/TAO/IDL_Cubit/Makefile | 101 - TAO/tests/Cubit/TAO/IDL_Cubit/README | 165 - TAO/tests/Cubit/TAO/IDL_Cubit/client.bld | 12 - TAO/tests/Cubit/TAO/IDL_Cubit/client.cpp | 20 - TAO/tests/Cubit/TAO/IDL_Cubit/client.dsp | 166 - TAO/tests/Cubit/TAO/IDL_Cubit/client_i.cpp | 1123 - TAO/tests/Cubit/TAO/IDL_Cubit/client_i.h | 138 - TAO/tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp | 67 - TAO/tests/Cubit/TAO/IDL_Cubit/collocation_test.dsp | 165 - TAO/tests/Cubit/TAO/IDL_Cubit/cubit.idl | 91 - TAO/tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp | 285 - TAO/tests/Cubit/TAO/IDL_Cubit/cubit_i.h | 117 - TAO/tests/Cubit/TAO/IDL_Cubit/default.bld | 32 - TAO/tests/Cubit/TAO/IDL_Cubit/run_test.pl | 39 - TAO/tests/Cubit/TAO/IDL_Cubit/server.bld | 12 - TAO/tests/Cubit/TAO/IDL_Cubit/server.cpp | 36 - TAO/tests/Cubit/TAO/IDL_Cubit/server.dsp | 192 - TAO/tests/Cubit/TAO/IDL_Cubit/server_i.cpp | 162 - TAO/tests/Cubit/TAO/IDL_Cubit/server_i.h | 106 - TAO/tests/Cubit/TAO/IDL_Cubit/svc.conf | 49 - TAO/tests/Cubit/TAO/IDL_Cubit/tmplinst.cpp | 12 - TAO/tests/Cubit/TAO/MT_Cubit/MT_Cubit.dsw | 41 - TAO/tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test | 61 - TAO/tests/Cubit/TAO/MT_Cubit/Makefile | 102 - TAO/tests/Cubit/TAO/MT_Cubit/README | 91 - TAO/tests/Cubit/TAO/MT_Cubit/Task_Client.cpp | 1002 - TAO/tests/Cubit/TAO/MT_Cubit/Task_Client.h | 268 - TAO/tests/Cubit/TAO/MT_Cubit/Util_Thread.cpp | 103 - TAO/tests/Cubit/TAO/MT_Cubit/Util_Thread.h | 56 - TAO/tests/Cubit/TAO/MT_Cubit/client.cpp | 796 - TAO/tests/Cubit/TAO/MT_Cubit/client.dsp | 167 - TAO/tests/Cubit/TAO/MT_Cubit/client.h | 35 - TAO/tests/Cubit/TAO/MT_Cubit/clnt.bld | 10 - TAO/tests/Cubit/TAO/MT_Cubit/cubit.idl | 38 - TAO/tests/Cubit/TAO/MT_Cubit/cubit_i.cpp | 80 - TAO/tests/Cubit/TAO/MT_Cubit/cubit_i.h | 51 - TAO/tests/Cubit/TAO/MT_Cubit/default.bld | 33 - TAO/tests/Cubit/TAO/MT_Cubit/pccTimer.cpp | 277 - TAO/tests/Cubit/TAO/MT_Cubit/pccTimer.h | 56 - TAO/tests/Cubit/TAO/MT_Cubit/server.cpp | 902 - TAO/tests/Cubit/TAO/MT_Cubit/server.dsp | 171 - TAO/tests/Cubit/TAO/MT_Cubit/server.h | 123 - TAO/tests/Cubit/TAO/MT_Cubit/svc.conf | 49 - TAO/tests/Cubit/TAO/MT_Cubit/svr.bld | 12 - TAO/tests/Cubit/TAO/MT_Cubit/tmplinst.cpp | 12 - TAO/tests/Cubit/TAO/Makefile | 27 - TAO/tests/Cubit/TAO/README | 20 - TAO/tests/Cubit/VisiBroker/base_server/Makefile | 19 - .../Cubit/VisiBroker/base_server/Profile_Timer.cpp | 129 - .../Cubit/VisiBroker/base_server/Profile_Timer.h | 62 - TAO/tests/Cubit/VisiBroker/base_server/cubit.idl | 42 - .../Cubit/VisiBroker/base_server/cubit_impl.cpp | 48 - .../Cubit/VisiBroker/base_server/cubit_impl.h | 35 - TAO/tests/Cubit/VisiBroker/base_server/server.cpp | 51 - TAO/tests/Cubit/VisiBroker/base_server/stdmk | 36 - TAO/tests/Cubit/VisiBroker/client/Makefile | 19 - .../Cubit/VisiBroker/client/Profile_Timer.cpp | 129 - TAO/tests/Cubit/VisiBroker/client/Profile_Timer.h | 62 - TAO/tests/Cubit/VisiBroker/client/client.cpp | 318 - TAO/tests/Cubit/VisiBroker/client/cubit.idl | 42 - TAO/tests/Cubit/VisiBroker/client/stdmk | 36 - TAO/tests/Cubit/results/Orbix | 133 - TAO/tests/Cubit/results/TAO | 92 - TAO/tests/Cubit/results/Visibroker | 79 - TAO/tests/Cubit/results/orbs.xls | Bin 26624 -> 0 bytes TAO/tests/Demux_Test/CodeGen/Makefile | 316 - TAO/tests/Demux_Test/CodeGen/README | 12 - TAO/tests/Demux_Test/CodeGen/client.cpp | 41 - TAO/tests/Demux_Test/CodeGen/gen.cpp | 175 - TAO/tests/Demux_Test/CodeGen/impl.cpp | 74 - TAO/tests/Demux_Test/CodeGen/objcreate.cpp | 53 - TAO/tests/Demux_Test/CodeGen/perf.cpp | 23 - TAO/tests/Demux_Test/CodeGen/skel.cpp | 219 - TAO/tests/Demux_Test/CodeGen/stub.cpp | 157 - TAO/tests/Demux_Test/CodeGen/tao.cpp | 98 - TAO/tests/Demux_Test/CodeGen/tao.h | 23 - TAO/tests/Demux_Test/Makefile | 65 - TAO/tests/Demux_Test/README | 20 - TAO/tests/Demux_Test/client.cpp | 310 - TAO/tests/Demux_Test/gen_bin | 6 - TAO/tests/Demux_Test/make_all | 19 - TAO/tests/Demux_Test/run_all_client | 37 - TAO/tests/Demux_Test/run_all_server | 20 - TAO/tests/Demux_Test/run_client | 17 - TAO/tests/Demux_Test/run_server | 10 - TAO/tests/Demux_Test/server.cpp | 315 - TAO/tests/Makefile | 34 - TAO/tests/NestedUpcall/Makefile | 69 - TAO/tests/NestedUpcall/NestedUpCalls_Test.cpp | 90 - TAO/tests/NestedUpcall/NestedUpCalls_i.h | 99 - TAO/tests/NestedUpcall/NestedUpcall.dsw | 41 - TAO/tests/NestedUpcall/README | 86 - TAO/tests/NestedUpcall/Reactor.idl | 52 - TAO/tests/NestedUpcall/client.cpp | 306 - TAO/tests/NestedUpcall/client.dsp | 138 - TAO/tests/NestedUpcall/client.h | 94 - TAO/tests/NestedUpcall/eh_i.cpp | 47 - TAO/tests/NestedUpcall/eh_i.h | 30 - TAO/tests/NestedUpcall/reactor_i.cpp | 78 - TAO/tests/NestedUpcall/reactor_i.h | 36 - TAO/tests/NestedUpcall/server.cpp | 175 - TAO/tests/NestedUpcall/server.dsp | 137 - TAO/tests/NestedUpcall/server.h | 98 - TAO/tests/NestedUpcall/svc.conf | 49 - TAO/tests/OctetSeq/Makefile | 63 - TAO/tests/OctetSeq/OctetSeq.cpp | 248 - TAO/tests/OctetSeq/OctetSeq.dsp | 141 - TAO/tests/OctetSeq/OctetSeq.dsw | 29 - TAO/tests/OctetSeq/svc.conf | 49 - TAO/tests/OctetSeq/test.idl | 24 - TAO/tests/POA/DSI/DSI.DSW | 41 - TAO/tests/POA/DSI/Database.idl | 73 - TAO/tests/POA/DSI/Database_i.cpp | 323 - TAO/tests/POA/DSI/Database_i.h | 116 - TAO/tests/POA/DSI/Makefile | 60 - TAO/tests/POA/DSI/client.cpp | 146 - TAO/tests/POA/DSI/client.dsp | 136 - TAO/tests/POA/DSI/server.cpp | 184 - TAO/tests/POA/DSI/server.dsp | 140 - TAO/tests/POA/Default_Servant/Default_Servant.dsw | 41 - TAO/tests/POA/Default_Servant/File.idl | 52 - TAO/tests/POA/Default_Servant/File_i.cpp | 221 - TAO/tests/POA/Default_Servant/File_i.h | 89 - TAO/tests/POA/Default_Servant/Makefile | 60 - TAO/tests/POA/Default_Servant/README | 45 - TAO/tests/POA/Default_Servant/client.cpp | 146 - TAO/tests/POA/Default_Servant/client.dsp | 160 - TAO/tests/POA/Default_Servant/server.cpp | 184 - TAO/tests/POA/Default_Servant/server.dsp | 164 - TAO/tests/POA/Default_Servant/svc.conf | 49 - .../Explicit_Activation/Explicit_Activation.dsw | 29 - TAO/tests/POA/Explicit_Activation/Makefile | 44 - TAO/tests/POA/Explicit_Activation/README | 34 - TAO/tests/POA/Explicit_Activation/server.cpp | 268 - TAO/tests/POA/Explicit_Activation/server.dsp | 91 - TAO/tests/POA/Explicit_Activation/svc.conf | 49 - TAO/tests/POA/FindPOA/FindPOA.cpp | 177 - TAO/tests/POA/FindPOA/FindPOA.dsp | 91 - TAO/tests/POA/FindPOA/FindPOA.dsw | 29 - TAO/tests/POA/FindPOA/Makefile | 229 - TAO/tests/POA/FindPOA/README | 39 - TAO/tests/POA/Forwarding/Foo.idl | 19 - TAO/tests/POA/Forwarding/Forwarding.dsw | 41 - TAO/tests/POA/Forwarding/Makefile | 60 - TAO/tests/POA/Forwarding/MyFooServant.cpp | 140 - TAO/tests/POA/Forwarding/MyFooServant.h | 84 - TAO/tests/POA/Forwarding/README | 55 - TAO/tests/POA/Forwarding/Servant_Locator.cpp | 115 - TAO/tests/POA/Forwarding/Servant_Locator.h | 74 - TAO/tests/POA/Forwarding/client.cpp | 198 - TAO/tests/POA/Forwarding/client.dsp | 163 - TAO/tests/POA/Forwarding/server.cpp | 558 - TAO/tests/POA/Forwarding/server.dsp | 171 - TAO/tests/POA/Forwarding/svc.conf | 49 - TAO/tests/POA/Generic_Servant/Foo.idl | 16 - TAO/tests/POA/Generic_Servant/Generic_Servant.dsw | 41 - TAO/tests/POA/Generic_Servant/Makefile | 77 - TAO/tests/POA/Generic_Servant/MyFooServant.cpp | 50 - TAO/tests/POA/Generic_Servant/MyFooServant.h | 46 - TAO/tests/POA/Generic_Servant/README | 24 - TAO/tests/POA/Generic_Servant/client.cpp | 184 - TAO/tests/POA/Generic_Servant/client.dsp | 165 - .../POA/Generic_Servant/generic_servant_export.h | 35 - TAO/tests/POA/Generic_Servant/server.dsp | 184 - TAO/tests/POA/Makefile | 35 - TAO/tests/POA/NewPOA/Makefile | 229 - TAO/tests/POA/NewPOA/NewPOA.cpp | 191 - TAO/tests/POA/NewPOA/NewPOA.dsp | 91 - TAO/tests/POA/NewPOA/NewPOA.dsw | 29 - TAO/tests/POA/NewPOA/README | 22 - TAO/tests/POA/On_Demand_Activation/Makefile | 48 - .../On_Demand_Activation/On_Demand_Activation.dsw | 29 - TAO/tests/POA/On_Demand_Activation/README | 97 - .../POA/On_Demand_Activation/Servant_Activator.cpp | 64 - .../POA/On_Demand_Activation/Servant_Activator.h | 39 - .../POA/On_Demand_Activation/Servant_Locator.cpp | 80 - .../POA/On_Demand_Activation/Servant_Locator.h | 51 - TAO/tests/POA/On_Demand_Activation/server.cpp | 281 - TAO/tests/POA/On_Demand_Activation/server.dsp | 99 - TAO/tests/POA/On_Demand_Activation/svc.conf | 49 - TAO/tests/POA/README | 58 - TAO/tests/POA/RootPOA/Makefile | 228 - TAO/tests/POA/RootPOA/README | 17 - TAO/tests/POA/RootPOA/RootPOA.cpp | 80 - TAO/tests/POA/RootPOA/RootPOA.dsp | 91 - TAO/tests/POA/RootPOA/RootPOA.dsw | 29 - TAO/tests/POA/TIE/Foo.idl | 30 - TAO/tests/POA/TIE/Foo_i.cpp | 97 - TAO/tests/POA/TIE/Foo_i.h | 108 - TAO/tests/POA/TIE/Makefile | 60 - TAO/tests/POA/TIE/TIE.dsw | 41 - TAO/tests/POA/TIE/client.cpp | 214 - TAO/tests/POA/TIE/client.dsp | 163 - TAO/tests/POA/TIE/server.cpp | 290 - TAO/tests/POA/TIE/server.dsp | 167 - TAO/tests/Param_Test/Makefile | 443 - TAO/tests/Param_Test/Param_Test.dsw | 41 - TAO/tests/Param_Test/README | 87 - TAO/tests/Param_Test/client.cpp | 226 - TAO/tests/Param_Test/client.dsp | 178 - TAO/tests/Param_Test/client.h | 76 - TAO/tests/Param_Test/driver.cpp | 417 - TAO/tests/Param_Test/driver.h | 52 - TAO/tests/Param_Test/helper.cpp | 79 - TAO/tests/Param_Test/helper.h | 51 - TAO/tests/Param_Test/options.cpp | 192 - TAO/tests/Param_Test/options.h | 107 - TAO/tests/Param_Test/param_test.idl | 236 - TAO/tests/Param_Test/param_test_i.cpp | 492 - TAO/tests/Param_Test/param_test_i.h | 195 - TAO/tests/Param_Test/results.cpp | 151 - TAO/tests/Param_Test/results.h | 77 - TAO/tests/Param_Test/run_test.pl | 41 - TAO/tests/Param_Test/run_test.sh | 37 - TAO/tests/Param_Test/server.cpp | 176 - TAO/tests/Param_Test/server.dsp | 162 - TAO/tests/Param_Test/svc.conf | 49 - TAO/tests/Param_Test/tests.cpp | 3416 --- TAO/tests/Param_Test/tests.h | 1097 - TAO/tests/Param_Test/tmplinst.cpp | 32 - TAO/tests/Quoter/Documentation | 69 - TAO/tests/Quoter/FactoryFinder.exe | Bin 463 -> 0 bytes TAO/tests/Quoter/Factory_Finder.cpp | 226 - TAO/tests/Quoter/Factory_Finder.dsp | 185 - TAO/tests/Quoter/Factory_Finder.h | 61 - TAO/tests/Quoter/Factory_Finder_Impl.cpp | 120 - TAO/tests/Quoter/Factory_Finder_Impl.h | 38 - TAO/tests/Quoter/Generic_Factory.cpp | 279 - TAO/tests/Quoter/Generic_Factory.dsp | 184 - TAO/tests/Quoter/Generic_Factory.h | 65 - TAO/tests/Quoter/Generic_Factory_Impl.cpp | 183 - TAO/tests/Quoter/Generic_Factory_Impl.h | 46 - TAO/tests/Quoter/Makefile | 144 - TAO/tests/Quoter/Quoter.dsw | 65 - TAO/tests/Quoter/Quoter.idl | 133 - TAO/tests/Quoter/Quoter_Impl.cpp | 347 - TAO/tests/Quoter/Quoter_Impl.h | 108 - TAO/tests/Quoter/README | 50 - TAO/tests/Quoter/client.conf | 49 - TAO/tests/Quoter/client.cpp | 413 - TAO/tests/Quoter/client.dsp | 175 - TAO/tests/Quoter/client.h | 112 - TAO/tests/Quoter/ns.btm | 4 - TAO/tests/Quoter/run_test.btm | 161 - TAO/tests/Quoter/run_test.pl | 244 - TAO/tests/Quoter/run_test.sh | 136 - TAO/tests/Quoter/server.conf | 49 - TAO/tests/Quoter/server.cpp | 269 - TAO/tests/Quoter/server.dsp | 187 - TAO/tests/Quoter/server.h | 83 - TAO/tests/Quoter/sv.btm | 7 - TAO/tests/Quoter/svc.conf | 49 - TAO/tests/README | 34 - TAO/tests/Thruput/COOL/Makefile | 133 - TAO/tests/Thruput/COOL/README | 117 - TAO/tests/Thruput/COOL/client.cpp | 290 - TAO/tests/Thruput/COOL/server.cpp | 223 - TAO/tests/Thruput/COOL/ttcp.idl | 36 - TAO/tests/Thruput/COOL/ttcp_decl.h | 78 - TAO/tests/Thruput/COOL/ttcp_i.cpp | 110 - TAO/tests/Thruput/COOL/ttcp_i.h | 49 - TAO/tests/Thruput/COOL/utils.cpp | 467 - TAO/tests/Thruput/CORBAplus/Makefile | 68 - TAO/tests/Thruput/CORBAplus/README | 47 - TAO/tests/Thruput/CORBAplus/client.cpp | 303 - TAO/tests/Thruput/CORBAplus/extract | 4 - TAO/tests/Thruput/CORBAplus/run | 1 - TAO/tests/Thruput/CORBAplus/run_client | 25 - TAO/tests/Thruput/CORBAplus/run_server | 10 - TAO/tests/Thruput/CORBAplus/run_test | 34 - TAO/tests/Thruput/CORBAplus/run_tests | 41 - TAO/tests/Thruput/CORBAplus/server.cpp | 176 - TAO/tests/Thruput/CORBAplus/ttcp.idl | 36 - TAO/tests/Thruput/CORBAplus/ttcp_decl.h | 78 - TAO/tests/Thruput/CORBAplus/ttcp_i.cpp | 105 - TAO/tests/Thruput/CORBAplus/ttcp_i.h | 61 - TAO/tests/Thruput/CORBAplus/utils.cpp | 467 - TAO/tests/Thruput/Makefile | 26 - TAO/tests/Thruput/Orbix/Client.cpp | 326 - TAO/tests/Thruput/Orbix/Makefile | 85 - TAO/tests/Thruput/Orbix/README | 40 - TAO/tests/Thruput/Orbix/Srv_Main.cpp | 180 - TAO/tests/Thruput/Orbix/extract | 4 - TAO/tests/Thruput/Orbix/loop64 | 24 - TAO/tests/Thruput/Orbix/orbixsol2s4.mk | 148 - TAO/tests/Thruput/Orbix/run | 1 - TAO/tests/Thruput/Orbix/run_client | 25 - TAO/tests/Thruput/Orbix/run_server | 4 - TAO/tests/Thruput/Orbix/run_test | 31 - TAO/tests/Thruput/Orbix/run_tests | 78 - TAO/tests/Thruput/Orbix/ttcp.idl | 40 - TAO/tests/Thruput/Orbix/ttcp_decl.h | 154 - TAO/tests/Thruput/Orbix/ttcp_i.cpp | 113 - TAO/tests/Thruput/Orbix/ttcp_i.h | 65 - TAO/tests/Thruput/Orbix/utils.cpp | 561 - TAO/tests/Thruput/TAO/Makefile | 70 - TAO/tests/Thruput/TAO/README | 47 - TAO/tests/Thruput/TAO/client.cpp | 281 - TAO/tests/Thruput/TAO/run | 1 - TAO/tests/Thruput/TAO/run_client | 34 - TAO/tests/Thruput/TAO/run_server | 11 - TAO/tests/Thruput/TAO/run_test | 52 - TAO/tests/Thruput/TAO/server.cpp | 217 - TAO/tests/Thruput/TAO/svc.conf | 49 - TAO/tests/Thruput/TAO/tmplinst.cpp | 20 - TAO/tests/Thruput/TAO/ttcp.idl | 36 - TAO/tests/Thruput/TAO/ttcp_decl.h | 78 - TAO/tests/Thruput/TAO/ttcp_i.cpp | 103 - TAO/tests/Thruput/TAO/ttcp_i.h | 48 - TAO/tests/Thruput/TAO/utils.cpp | 506 - ace/Makefile | 6969 ------ apps/Gateway/Gateway/Channel.cpp | 710 - apps/Gateway/Gateway/Channel.h | 280 - apps/Gateway/Gateway/Channel_Connector.cpp | 92 - apps/Gateway/Gateway/Channel_Connector.h | 41 - apps/Gateway/Gateway/Concurrency_Strategies.h | 74 - apps/Gateway/Gateway/Consumer_Entry.cpp | 31 - apps/Gateway/Gateway/Consumer_Entry.h | 45 - apps/Gateway/Gateway/Consumer_Map.cpp | 61 - apps/Gateway/Gateway/Consumer_Map.h | 62 - apps/Gateway/Gateway/Dispatch_Set.h | 28 - apps/Gateway/Gateway/IO_Handler.cpp | 710 - apps/Gateway/Gateway/IO_Handler.h | 224 - apps/Gateway/Gateway/IO_Handler_Connector.cpp | 92 - apps/Gateway/Gateway/IO_Handler_Connector.h | 40 - apps/Gateway/Gateway/Peer_Message.h | 89 - apps/Gateway/Gateway/Routing_Entry.cpp | 47 - apps/Gateway/Gateway/Routing_Entry.h | 53 - apps/Gateway/Gateway/Routing_Table.cpp | 69 - apps/Gateway/Gateway/Routing_Table.h | 67 - apps/Gateway/Gateway/Thr_Channel.cpp | 204 - apps/Gateway/Gateway/Thr_Channel.h | 65 - apps/Gateway/Gateway/Thr_IO_Handler.cpp | 204 - apps/Gateway/Gateway/Thr_IO_Handler.h | 64 - apps/Gateway/Gateway/Thr_Proxy_Handler.cpp | 211 - apps/Gateway/Gateway/Thr_Proxy_Handler.h | 66 - apps/Gateway/Gateway/cc_config | 10 - apps/Gateway/Gateway/rt_config | 7 - apps/Gateway/Peer/Event.h | 125 - apps/Gateway/Peer/Gateway_Handler.cpp | 652 - apps/Gateway/Peer/Gateway_Handler.h | 154 - apps/Gateway/Peer/Peer_Message.h | 44 - docs/ACE-inheritance.pdf.gz | Bin 17864 -> 0 bytes docs/ACE-inheritance.ps.gz | Bin 18594 -> 0 bytes docs/CE-status.txt | 888 - examples/Reactor/Misc/signal_tester.cpp | 221 - examples/Reactor/Misc/test_signals.cpp | 226 - .../SV_Semaphores/Semaphore_Client.cpp | 31 - .../SV_Semaphores/Semaphore_Server.cpp | 42 - .../System_V_IPC/SV_Semaphores/Semaphore_Test.h | 11 - examples/System_V_IPC/SV_Semaphores/Semaphores.cpp | 94 - examples/Threads/test_auto_event.cpp | 113 - examples/Threads/test_barrier1.cpp | 84 - examples/Threads/test_barrier2.cpp | 269 - examples/Threads/test_cancel.cpp | 72 - examples/Threads/test_future1.cpp | 420 - examples/Threads/test_future2.cpp | 524 - examples/Threads/test_manual_event.cpp | 108 - examples/Threads/test_process_mutex.cpp | 68 - examples/Threads/test_process_semaphore.cpp | 56 - examples/Threads/test_reader_writer.cpp | 187 - examples/Threads/test_recursive_mutex.cpp | 108 - examples/Threads/test_task.cpp | 104 - examples/Threads/test_task_four.cpp | 248 - examples/Threads/test_task_one.cpp | 104 - examples/Threads/test_task_three.cpp | 230 - examples/Threads/test_task_two.cpp | 156 - examples/Threads/test_thread_manager.cpp | 104 - examples/Threads/test_thread_pool.cpp | 214 - examples/Threads/test_thread_specific.cpp | 219 - examples/Threads/test_token.cpp | 76 - examples/Threads/test_tss.cpp | 235 - examples/Threads/test_tss1.cpp | 164 - examples/Threads/test_tss2.cpp | 252 - java/ChangeLog | 21 - java/ImageProcessing/ImageProcessing.dsp | 253 - java/ImageProcessing/ImageProcessing.dsw | 29 - java/ImageProcessing/filters/Assert.java | 33 - java/ImageProcessing/filters/BleachFilter.java | 65 - java/ImageProcessing/filters/BlurFilter.java | 95 - java/ImageProcessing/filters/DarkenFilter.java | 48 - java/ImageProcessing/filters/DeSpeckleFilter.java | 123 - java/ImageProcessing/filters/DissolveFilter.java | 52 - java/ImageProcessing/filters/EdgeDetectFilter.java | 250 - java/ImageProcessing/filters/EmbossFilter.java | 86 - java/ImageProcessing/filters/Makefile | 36 - java/ImageProcessing/filters/MedFilter.java | 6 - java/ImageProcessing/filters/OilPaintFilter.java | 97 - java/ImageProcessing/filters/PixelizeFilter.java | 117 - java/ImageProcessing/filters/RandomizeFilter.java | 36 - java/ImageProcessing/filters/RotateFilter.java | 358 - java/ImageProcessing/filters/SharpenFilter.java | 272 - java/ImageProcessing/filters/SpatialFilter.java | 213 - java/ImageProcessing/filters/SpreadFilter.java | 130 - java/ImageProcessing/filters/Timer.java | 23 - java/ImageProcessing/framework/BaseButton.java | 234 - .../ImageProcessing/framework/BenchmarkApplet.java | 622 - java/ImageProcessing/framework/DialogManager.java | 277 - java/ImageProcessing/framework/DialogType.java | 11 - java/ImageProcessing/framework/FileBrowser.java | 173 - java/ImageProcessing/framework/FilePanel.java | 161 - java/ImageProcessing/framework/FilterTest.java | 62 - java/ImageProcessing/framework/GIFHandler.java | 75 - java/ImageProcessing/framework/GifEncoder.java | 693 - java/ImageProcessing/framework/Hierarchy.java | 347 - .../framework/HierarchyAdapter.java | 34 - java/ImageProcessing/framework/Icon.java | 70 - java/ImageProcessing/framework/ImageApp.java | 303 - .../framework/ImageByteCounter.java | 94 - java/ImageProcessing/framework/ImageCanvas.java | 166 - java/ImageProcessing/framework/ImageEncoder.java | 271 - java/ImageProcessing/framework/ImageProcessor.java | 111 - java/ImageProcessing/framework/ImageSender.java | 128 - java/ImageProcessing/framework/IntHashtable.java | 396 - java/ImageProcessing/framework/ListFiles.java | 167 - java/ImageProcessing/framework/LoadURLFrame.java | 142 - java/ImageProcessing/framework/Makefile | 45 - java/ImageProcessing/framework/MedJava.html | 15 - java/ImageProcessing/framework/Options.java | 25 - java/ImageProcessing/framework/SaveURLFrame.java | 133 - java/ImageProcessing/framework/Separator.java | 90 - java/ImageProcessing/framework/ServerHandler.java | 50 - java/ImageProcessing/framework/ServerTest.java | 67 - java/ImageProcessing/framework/StatusDisplay.java | 23 - .../ImageProcessing/framework/StatusIndicator.java | 70 - java/ImageProcessing/framework/TestHandler.java | 149 - java/ImageProcessing/framework/Tester.java | 148 - java/ImageProcessing/framework/doc01.gif | Bin 223 -> 0 bytes java/ImageProcessing/framework/file03.gif | Bin 267 -> 0 bytes java/ImageProcessing/framework/filter.conf | 15 - java/ImageProcessing/framework/help.conf | 216 - java/ImageProcessing/framework/test.html | 19 - java/ImageProcessing/framework/testFilter.conf | 15 - java/VERSION | 5 - java/apps/NexusII/README | 58 - java/apps/NexusII/classes/ClientHandler.class | Bin 7017 -> 0 bytes java/apps/NexusII/classes/FrameHandler.class | Bin 851 -> 0 bytes java/apps/NexusII/classes/ImageCanvas.class | Bin 2771 -> 0 bytes java/apps/NexusII/classes/NexusClientApplet.class | Bin 9297 -> 0 bytes java/apps/NexusII/classes/NexusIIserver.class | Bin 1566 -> 0 bytes java/apps/NexusII/classes/Room.class | Bin 2138 -> 0 bytes java/apps/NexusII/classes/RoomFactory.class | Bin 1686 -> 0 bytes java/apps/NexusII/classes/RoomFrame.class | Bin 3878 -> 0 bytes java/apps/NexusII/classes/RoomThread.class | Bin 1076 -> 0 bytes java/apps/NexusII/classes/awtCommand/CApplet.class | Bin 2239 -> 0 bytes java/apps/NexusII/classes/awtCommand/CApplet.java | 199 - java/apps/NexusII/classes/awtCommand/CButton.class | Bin 698 -> 0 bytes java/apps/NexusII/classes/awtCommand/CButton.java | 41 - java/apps/NexusII/classes/awtCommand/CCanvas.class | Bin 4128 -> 0 bytes java/apps/NexusII/classes/awtCommand/CCanvas.java | 381 - java/apps/NexusII/classes/awtCommand/CFrame.class | Bin 5174 -> 0 bytes java/apps/NexusII/classes/awtCommand/CFrame.java | 486 - java/apps/NexusII/classes/awtCommand/CList.class | Bin 1236 -> 0 bytes java/apps/NexusII/classes/awtCommand/CList.java | 96 - java/apps/NexusII/classes/awtCommand/CPanel.class | Bin 4125 -> 0 bytes java/apps/NexusII/classes/awtCommand/CPanel.java | 381 - .../NexusII/classes/awtCommand/CTextArea.class | Bin 1048 -> 0 bytes .../apps/NexusII/classes/awtCommand/CTextArea.java | 93 - .../NexusII/classes/awtCommand/CTextField.class | Bin 1225 -> 0 bytes .../NexusII/classes/awtCommand/CTextField.java | 110 - java/apps/NexusII/classes/awtCommand/Command.class | Bin 253 -> 0 bytes java/apps/NexusII/classes/awtCommand/Command.java | 25 - java/apps/NexusII/classes/commandHandler.class | Bin 1310 -> 0 bytes java/apps/NexusII/classes/commandParser.class | Bin 1974 -> 0 bytes java/apps/NexusII/classes/connectionHandler.class | Bin 4632 -> 0 bytes java/apps/NexusII/classes/joinHandler.class | Bin 3229 -> 0 bytes java/apps/NexusII/classes/roomHandler.class | Bin 2371 -> 0 bytes java/apps/NexusII/classes/textHandler.class | Bin 2227 -> 0 bytes java/apps/NexusII/src/Consumer.java | 74 - java/apps/NexusII/src/MT_Bounded_Queue.java | 226 - java/apps/NexusII/src/MT_Bounded_Queue_Group.java | 79 - java/apps/NexusII/src/NexusClientApplet.java | 494 - java/apps/NexusII/src/NexusIIserver.java | 280 - java/apps/NexusII/src/Producer.java | 87 - java/apps/NexusII/src/Room.java | 97 - java/apps/NexusII/src/RoomFrame.java | 297 - java/apps/NexusII/src/RoomSpace.java | 110 - java/apps/NexusII/src/Timed_Wait.java | 86 - java/apps/NexusII/src/Timer.java | 31 - java/apps/NexusII/src/commandHandler.java | 44 - java/apps/NexusII/src/commandParser.java | 124 - java/apps/NexusII/src/connectionHandler.java | 236 - java/apps/NexusII/src/consts.java | 40 - java/apps/NexusII/src/dataPacket.java | 124 - java/apps/NexusII/src/joinHandler.java | 181 - java/apps/NexusII/src/makefile | 15 - java/apps/NexusII/src/nexusDemuxThread.java | 97 - java/apps/NexusII/src/roomHandler.java | 125 - java/apps/NexusII/src/socketReaderThread.java | 126 - java/apps/NexusII/src/socketWriterThread.java | 119 - java/apps/NexusII/src/url_to_url.java | 33 - java/apps/NexusII/start | 27 - java/apps/NexusII/start.html | 3 - java/classes/README.TXT | 2 - java/doc/images/GridBagEx.gif | Bin 2453 -> 0 bytes java/doc/images/OpenBookIcon.gif | Bin 2241 -> 0 bytes java/doc/images/blue-ball-small.gif | Bin 255 -> 0 bytes java/doc/images/blue-ball.gif | Bin 925 -> 0 bytes java/doc/images/class-index.gif | Bin 1497 -> 0 bytes java/doc/images/constructor-index.gif | Bin 1711 -> 0 bytes java/doc/images/constructors.gif | Bin 1565 -> 0 bytes java/doc/images/cyan-ball-small.gif | Bin 255 -> 0 bytes java/doc/images/cyan-ball.gif | Bin 925 -> 0 bytes java/doc/images/error-index.gif | Bin 1438 -> 0 bytes java/doc/images/exception-index.gif | Bin 1707 -> 0 bytes java/doc/images/green-ball-small.gif | Bin 102 -> 0 bytes java/doc/images/green-ball.gif | Bin 886 -> 0 bytes java/doc/images/interface-index.gif | Bin 1648 -> 0 bytes java/doc/images/magenta-ball-small.gif | Bin 104 -> 0 bytes java/doc/images/magenta-ball.gif | Bin 896 -> 0 bytes java/doc/images/method-index.gif | Bin 1588 -> 0 bytes java/doc/images/methods.gif | Bin 1403 -> 0 bytes java/doc/images/package-index.gif | Bin 1607 -> 0 bytes java/doc/images/red-ball-small.gif | Bin 255 -> 0 bytes java/doc/images/red-ball.gif | Bin 527 -> 0 bytes java/doc/images/variable-index.gif | Bin 1576 -> 0 bytes java/doc/images/variables.gif | Bin 1380 -> 0 bytes java/doc/images/yellow-ball-small.gif | Bin 255 -> 0 bytes java/doc/images/yellow-ball.gif | Bin 925 -> 0 bytes java/examples/Logger/README | 29 - java/examples/Logger/simple-server/LogRecord.java | 145 - .../Logger/simple-server/LoggerConstants.java | 7 - .../Logger/simple-server/LoggingAcceptor.java | 33 - .../Logger/simple-server/LoggingClient.java | 108 - .../Logger/simple-server/LoggingHandler.java | 121 - java/examples/Logger/simple-server/Makefile | 34 - java/examples/Logger/simple-server/README | 25 - .../Logger/simple-server/SimpleLogger.java | 44 - java/gjt/Assert.java | 33 - java/gjt/Bargauge.java | 80 - java/gjt/Border.java | 105 - java/gjt/Box.java | 81 - java/gjt/BulletinLayout.java | 100 - java/gjt/ButtonPanel.java | 51 - java/gjt/CardPanel.java | 48 - java/gjt/ChoiceCardPanel.java | 53 - java/gjt/ColumnLayout.java | 154 - java/gjt/ComponentScroller.java | 42 - java/gjt/DialogClient.java | 20 - java/gjt/DrawingPanel.java | 72 - java/gjt/DrawnRectangle.java | 136 - java/gjt/EtchedBorder.java | 59 - java/gjt/EtchedRectangle.java | 97 - java/gjt/Etching.java | 22 - java/gjt/ExclusiveImageButtonPanel.java | 47 - java/gjt/FontDialog.java | 362 - java/gjt/GJT.DSP | 456 - java/gjt/GJT.DSW | 29 - java/gjt/GJTDialog.java | 51 - java/gjt/IconCardPanel.java | 55 - java/gjt/ImageButton.java | 209 - java/gjt/ImageButtonController.java | 79 - java/gjt/ImageButtonEvent.java | 103 - java/gjt/ImageButtonPanel.java | 106 - java/gjt/ImageButtonPanelController.java | 47 - java/gjt/ImageCanvas.java | 31 - java/gjt/ImageScroller.java | 62 - java/gjt/LabelCanvas.java | 93 - java/gjt/Makefile | 67 - java/gjt/MessageDialog.java | 77 - java/gjt/MouseController.java | 32 - java/gjt/Orientation.java | 87 - java/gjt/ProgressDialog.java | 67 - java/gjt/QuestionDialog.java | 130 - java/gjt/RadioImageButtonPanelController.java | 45 - java/gjt/RowLayout.java | 153 - java/gjt/Scroller.java | 154 - java/gjt/ScrollerLayout.java | 160 - java/gjt/SelectionEvent.java | 82 - java/gjt/Separator.java | 90 - java/gjt/SpringyImageButtonController.java | 54 - java/gjt/StateButton.java | 45 - java/gjt/StateButtonController.java | 27 - java/gjt/StickyImageButtonController.java | 87 - java/gjt/Stopwatch.java | 94 - java/gjt/StopwatchClient.java | 14 - java/gjt/ThreeDBorder.java | 53 - java/gjt/ThreeDBorderStyle.java | 24 - java/gjt/ThreeDRectangle.java | 105 - java/gjt/Toolbar.java | 58 - java/gjt/Util.java | 69 - java/gjt/YesNoDialog.java | 80 - java/gjt/animation/CollisionArena.java | 39 - java/gjt/animation/CollisionDetector.java | 24 - java/gjt/animation/EdgeCollisionDetector.java | 53 - java/gjt/animation/Playfield.java | 140 - java/gjt/animation/Sequence.java | 119 - java/gjt/animation/Sprite.java | 191 - java/gjt/animation/SpriteCollisionDetector.java | 45 - java/gjt/image/BleachImageFilter.java | 53 - java/gjt/image/DissolveFilter.java | 48 - java/gjt/image/ImageDissolver.java | 132 - java/gjt/rubberband/Rubberband.java | 100 - java/gjt/rubberband/RubberbandEllipse.java | 32 - java/gjt/rubberband/RubberbandLine.java | 25 - java/gjt/rubberband/RubberbandPanel.java | 38 - java/gjt/rubberband/RubberbandRectangle.java | 29 - java/gjt/test/AttributesPanel.java | 78 - java/gjt/test/BargaugeTest.java | 130 - java/gjt/test/BleachImageFilterTest.java | 86 - java/gjt/test/BorderTest.java | 202 - java/gjt/test/BoxTest.java | 100 - java/gjt/test/BumpAnimationTest.java | 107 - java/gjt/test/ChoiceCardPanelTest.java | 34 - java/gjt/test/ColumnLayoutTest.java | 126 - java/gjt/test/ComponentScrollerTest.java | 205 - java/gjt/test/ConnectionsPanel.java | 9 - java/gjt/test/DialogTest.java | 140 - java/gjt/test/DrawnRectangleTest.java | 119 - java/gjt/test/FontDialogTest.java | 95 - java/gjt/test/IconCardPanelTest.java | 47 - java/gjt/test/ImageButtonTest.java | 130 - java/gjt/test/ImageDissolverTest.java | 69 - java/gjt/test/ImageScrollerTest.java | 55 - java/gjt/test/LabelCanvasTest.java | 75 - java/gjt/test/MessageDialogTest.java | 50 - java/gjt/test/OccupationOracle.java | 334 - java/gjt/test/RowLayoutTest.java | 124 - java/gjt/test/RubberbandTest.java | 112 - java/gjt/test/SeparatorTest.java | 64 - java/gjt/test/SimpleAnimationTest.java | 87 - java/gjt/test/SimpleBargaugeTest.java | 61 - java/gjt/test/StateButtonTest.java | 41 - java/gjt/test/TenPixelBorder.java | 44 - java/gjt/test/TitledPanel.java | 22 - java/gjt/test/ToolbarTest.java | 111 - java/gjt/test/TwoDrinkersAnimationTest.java | 130 - java/gjt/test/UnitTest.java | 46 - java/netsvcs/Logger/DefaultLMR.java | 36 - java/netsvcs/Logger/LogMessageReceiver.java | 33 - java/netsvcs/Logger/LogRecord.java | 188 - java/netsvcs/Logger/Makefile | 23 - java/netsvcs/Logger/ServerLoggingAcceptor.java | 171 - java/netsvcs/Logger/ServerLoggingHandler.java | 105 - java/netsvcs/Naming/Makefile | 24 - java/netsvcs/Naming/NameAcceptor.java | 306 - java/netsvcs/Naming/NameHandler.java | 521 - java/netsvcs/Naming/NameProxy.java | 351 - java/netsvcs/Naming/NameReply.java | 145 - java/netsvcs/Naming/NameRequest.java | 331 - java/netsvcs/Time/Clerk.java | 23 - java/netsvcs/Time/Makefile | 26 - java/netsvcs/Time/Server.java | 23 - java/netsvcs/Time/TSClerkHandler.java | 296 - java/netsvcs/Time/TSClerkProcessor.java | 267 - java/netsvcs/Time/TSRequestAcceptor.java | 142 - java/netsvcs/Time/TSRequestHandler.java | 106 - java/netsvcs/Time/TSServerAcceptor.java | 100 - java/netsvcs/Time/TSServerHandler.java | 99 - java/src/ACE.java | 164 - java/src/AcceptStrategy.java | 89 - java/src/Acceptor.java | 216 - java/src/ActivateStrategy.java | 43 - java/src/AddServiceObjectNode.java | 54 - java/src/Blob.java | 94 - java/src/BlobHandler.java | 35 - java/src/BlobReader.java | 104 - java/src/BlobWriter.java | 220 - java/src/ClassNameGenerator.java | 181 - java/src/ClassReader.java | 146 - java/src/Condition.java | 124 - java/src/Connector.java | 157 - java/src/CreationStrategy.java | 64 - java/src/EventHandler.java | 53 - java/src/GetOpt.java | 150 - java/src/HTTPHelper.java | 84 - java/src/INETAddr.java | 99 - java/src/IOCntlCmds.java | 34 - java/src/IOCntlMsg.java | 128 - java/src/JACE.DSP | 292 - java/src/JACE.DSW | 29 - java/src/Makefile | 153 - java/src/MessageBlock.java | 453 - java/src/MessageQueue.java | 636 - java/src/MessageType.java | 110 - java/src/Module.java | 253 - java/src/Mutex.java | 92 - java/src/OS.java | 72 - java/src/ParseNode.java | 69 - java/src/ProfileTimer.java | 48 - java/src/RWMutex.java | 174 - java/src/RemoveNode.java | 35 - java/src/ResumeNode.java | 34 - java/src/SOCKAcceptor.java | 115 - java/src/SOCKConnector.java | 75 - java/src/SOCKStream.java | 218 - java/src/Semaphore.java | 103 - java/src/ServiceConfig.java | 375 - java/src/ServiceLoader.java | 260 - java/src/ServiceObject.java | 80 - java/src/ServiceObjectRecord.java | 33 - java/src/ServiceRecord.java | 253 - java/src/ServiceRepository.java | 189 - java/src/StrategyAcceptor.java | 156 - java/src/Stream.java | 438 - java/src/StreamHead.java | 120 - java/src/StreamTail.java | 111 - java/src/SuspendNode.java | 34 - java/src/SvcHandler.java | 85 - java/src/Task.java | 418 - java/src/TaskFlags.java | 44 - java/src/ThreadManager.java | 109 - java/src/ThruTask.java | 48 - java/src/TimeValue.java | 256 - java/src/TimedWait.java | 137 - java/src/TimeoutException.java | 34 - java/src/TimerQueue.java | 433 - java/src/Token.java | 298 - java/tests/ASX/BufferStreamTest.dsp | 73 - java/tests/ASX/BufferStreamTest.java | 185 - java/tests/ASX/Makefile | 26 - java/tests/ASX/MessageQueueTest.dsp | 73 - java/tests/ASX/MessageQueueTest.java | 50 - java/tests/ASX/PriorityBufferTest.dsp | 73 - java/tests/ASX/PriorityBufferTest.java | 116 - java/tests/ASX/TaskTest.dsp | 72 - java/tests/ASX/TaskTest.java | 86 - java/tests/ASX/ThreadPoolTest.dsp | 73 - java/tests/ASX/ThreadPoolTest.java | 185 - java/tests/Concurrency/Condition/Condition.dsp | 88 - java/tests/Concurrency/Condition/Consumer.java | 73 - .../Concurrency/Condition/JoinableThreadGroup.java | 24 - java/tests/Concurrency/Condition/Makefile | 25 - java/tests/Concurrency/Condition/Producer.java | 67 - java/tests/Concurrency/Condition/QueueTest.java | 64 - .../Concurrency/Condition/SimpleMessageQueue.java | 86 - java/tests/Concurrency/Makefile | 23 - java/tests/Concurrency/MutexTest.dsp | 72 - java/tests/Concurrency/MutexTest.java | 154 - java/tests/Concurrency/RWMutexTest.dsp | 73 - java/tests/Concurrency/RWMutexTest.java | 93 - java/tests/Concurrency/SemaphoreTest.dsp | 73 - java/tests/Concurrency/SemaphoreTest.java | 102 - java/tests/Concurrency/TokenTest.dsp | 72 - java/tests/Concurrency/TokenTest.java | 73 - java/tests/Connection/AcceptorTest.dsp | 73 - java/tests/Connection/AcceptorTest.java | 79 - java/tests/Connection/ClientHandler.dsp | 73 - java/tests/Connection/ClientHandler.java | 77 - java/tests/Connection/ConnectorTest.dsp | 73 - java/tests/Connection/ConnectorTest.java | 76 - java/tests/Connection/HTTPHelperTest.java | 27 - java/tests/Connection/Makefile | 26 - java/tests/Connection/ServerHandler.dsp | 73 - java/tests/Connection/ServerHandler.java | 68 - java/tests/Misc/Makefile | 21 - java/tests/Misc/ParseArgsTest.dsp | 73 - java/tests/Misc/ParseArgsTest.java | 45 - java/tests/Reactor/Makefile | 22 - java/tests/Reactor/TimeValueTest.dsp | 73 - java/tests/Reactor/TimeValueTest.java | 50 - java/tests/Reactor/TimerQueueTest.dsp | 73 - java/tests/Reactor/TimerQueueTest.java | 80 - java/tests/SOCK_SAP/Makefile | 22 - java/tests/SOCK_SAP/SOCKAcceptorTest.dsp | 73 - java/tests/SOCK_SAP/SOCKAcceptorTest.java | 108 - java/tests/SOCK_SAP/SOCKConnectorTest.dsp | 73 - java/tests/SOCK_SAP/SOCKConnectorTest.java | 95 - java/tests/ServiceConfigurator/Makefile | 25 - .../ServiceConfigurator/ServiceConfigurator.dsp | 81 - java/tests/ServiceConfigurator/TestService.java | 52 - java/tests/ServiceConfigurator/reloadTest.java | 61 - java/tests/ServiceConfigurator/suspendTest.java | 80 - java/tests/ServiceConfigurator/suspendTest1.conf | 1 - java/tests/ServiceConfigurator/suspendTest2.conf | 1 - java/tests/ServiceConfigurator/suspendTest3.conf | 1 - java/tests/ServiceConfigurator/svc.conf | 1 - java/tests/Tests.dsw | 257 - java/tests/netsvcs/Logger/LoggerTest.java | 122 - java/tests/netsvcs/Logger/Makefile | 19 - java/tests/netsvcs/Naming/ClientTest.java | 117 - java/tests/netsvcs/Naming/Makefile | 21 - netsvcs/clients/Naming/Dump_Restore/nametest.cpp | 112 - netsvcs/clients/Naming/Dump_Restore/nametest.h | 15 - netsvcs/lib/Client_Logging_Handler.i | 4 - netsvcs/lib/Server_Logging_Handler.i | 4 - netsvcs/servers/cli.conf | 11 - netsvcs/servers/ntsvc.conf | 12 - os-patches/linux-patches.html | 207 - os-patches/lynxos-patches.html | 91 - psosim/Makefile | 76 - psosim/drv_conf.c | 79 - rpc++/.dependencies | 131 - rpc++/COPYING | 481 - rpc++/Makefile | 55 - rpc++/Proj.make | 68 - rpc++/README | 18 - rpc++/README.ORIG | 9 - rpc++/StdHdrs/Makefile | 13 - rpc++/StdHdrs/README | 3 - rpc++/StdHdrs/rpc/auth.h | 171 - rpc++/StdHdrs/rpc/c_types.h | 79 - rpc++/StdHdrs/rpc/clnt.h | 347 - rpc++/StdHdrs/rpc/pmap_clnt.h | 82 - rpc++/StdHdrs/rpc/svc.h | 286 - rpc++/StdHdrs/rpc/xdr.h | 275 - rpc++/callback.cc | 38 - rpc++/example/Makefile | 40 - rpc++/example/calcsvc.cc | 30 - rpc++/example/calcsvc.h | 34 - rpc++/example/client.cc | 64 - rpc++/example/server.cc | 112 - rpc++/gcc-2.2.fix | 252 - rpc++/request.cc | 165 - rpc++/rpc++.cp | 13 - rpc++/rpc++.fn | 63 - rpc++/rpc++.ky | 0 rpc++/rpc++.pg | 0 rpc++/rpc++.texi | 1519 -- rpc++/rpc++.toc | 23 - rpc++/rpc++.tp | 7 - rpc++/rpc++.vr | 13 - rpc++/rpc++/callback.h | 533 - rpc++/rpc++/request.h | 121 - rpc++/rpc++/service.h | 132 - rpc++/rpc++/stub.h | 145 - rpc++/rpc++/xdr++.h | 98 - rpc++/service.cc | 316 - rpc++/stub.cc | 207 - rpc++/version.h | 4 - rpc++/xdr++.cc | 75 - tests/CPP_Test.cpp | 261 - tests/Shared_Memory_SV_Test.cpp | 83 - tests/run_tests.ksh | 6 - 2376 files changed, 584430 deletions(-) delete mode 100644 ACE.DSW delete mode 100644 COPYING delete mode 100644 ChangeLog-97b delete mode 100644 ChangeLog-98a delete mode 100644 STL/ACE_Changes delete mode 100644 STL/readme2.stl delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/Makefile delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/client.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/marshal.h delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/marshal.idl delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.h delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.i delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.h delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.i delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.h delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.i delete mode 100755 TAO/Benchmark/Marshal_Test/Orbix/run_client delete mode 100755 TAO/Benchmark/Marshal_Test/Orbix/run_dsi delete mode 100755 TAO/Benchmark/Marshal_Test/Orbix/run_dsi_server delete mode 100755 TAO/Benchmark/Marshal_Test/Orbix/run_ssi delete mode 100755 TAO/Benchmark/Marshal_Test/Orbix/run_ssi_server delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/server.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/Makefile delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/client.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/marshal.idl delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/marshalC.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/marshalC.h delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/marshalS.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/marshalS.h delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/server.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.h delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.i delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.h delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.i delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.h delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.i delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/Makefile delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/client.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/marshal.idl delete mode 100755 TAO/Benchmark/Marshal_Test/VisiBroker/run_client delete mode 100755 TAO/Benchmark/Marshal_Test/VisiBroker/run_server delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/server.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.h delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.i delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.h delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.i delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.h delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.i delete mode 100644 TAO/Benchmark/benchmark/Makefile delete mode 100644 TAO/Benchmark/benchmark/driver.cpp delete mode 100644 TAO/Benchmark/benchmark/driver.h delete mode 100644 TAO/Benchmark/benchmark/marshal_options.cpp delete mode 100644 TAO/Benchmark/benchmark/marshal_options.h delete mode 100644 TAO/Benchmark/benchmark/marshal_options.i delete mode 100644 TAO/Benchmark/benchmark/marshal_proxy.cpp delete mode 100644 TAO/Benchmark/benchmark/marshal_proxy.h delete mode 100644 TAO/Benchmark/benchmark/marshal_proxy.i delete mode 100644 TAO/Benchmark/benchmark/marshal_results.cpp delete mode 100644 TAO/Benchmark/benchmark/marshal_results.h delete mode 100644 TAO/Benchmark/benchmark/marshal_results.i delete mode 100644 TAO/COPYING delete mode 100644 TAO/COPYING.sun delete mode 100644 TAO/ChangeLog-98c delete mode 100755 TAO/IIOP/Build/default.bld delete mode 100755 TAO/IIOP/Build/tao.bld delete mode 100644 TAO/IIOP/Makefile delete mode 100644 TAO/IIOP/docs/us/codecounts/align.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/any.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/any.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/cdr.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/cdr.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/connmgr.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/connmgr.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/corbacom.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/corbacom.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/debug.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/debug.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/except.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/except.hh.cccc delete mode 100755 TAO/IIOP/docs/us/codecounts/generate delete mode 100644 TAO/IIOP/docs/us/codecounts/giop.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/giop.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/iiopobj.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/iiopobj.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/iioporb.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/iioporb.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/initguid.h.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/interp.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/invoke.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/marshal.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/nvlist.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/nvlist.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/objbase.h.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/object.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/object.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/orb.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/orbconf.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/orbobj.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/orbobj.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/principa.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/principa.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/request.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/request.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/roa.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/roa.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/roa.i.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/sequence.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/stub.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/svrrqst.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/svrrqst.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/t-sizes.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/t-xdr.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/tc_const.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/tcpoa.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/tcpoa.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/thread.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/toa.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/toa.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/typecode.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/typecode.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/xdr.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/xdr.hh.cccc delete mode 100644 TAO/IIOP/docs/us/plan.html delete mode 100644 TAO/IIOP/docs/us/server delete mode 100755 TAO/IIOP/test/Build/clnt.bld delete mode 100755 TAO/IIOP/test/Build/default.bld delete mode 100755 TAO/IIOP/test/Build/svr.bld delete mode 100644 TAO/IIOP/test/Makefile delete mode 100644 TAO/IIOP/test/Orbeline/base_server/Makefile delete mode 100644 TAO/IIOP/test/Orbeline/base_server/Profile_Timer.cpp delete mode 100644 TAO/IIOP/test/Orbeline/base_server/Profile_Timer.h delete mode 100644 TAO/IIOP/test/Orbeline/base_server/cubit.idl delete mode 100644 TAO/IIOP/test/Orbeline/base_server/cubit_impl.cpp delete mode 100644 TAO/IIOP/test/Orbeline/base_server/cubit_impl.h delete mode 100644 TAO/IIOP/test/Orbeline/base_server/server.cpp delete mode 100644 TAO/IIOP/test/Orbeline/base_server/stdmk delete mode 100644 TAO/IIOP/test/Orbeline/client/Makefile delete mode 100644 TAO/IIOP/test/Orbeline/client/Profile_Timer.cpp delete mode 100644 TAO/IIOP/test/Orbeline/client/Profile_Timer.h delete mode 100644 TAO/IIOP/test/Orbeline/client/client.cpp delete mode 100644 TAO/IIOP/test/Orbeline/client/cubit.idl delete mode 100644 TAO/IIOP/test/Orbeline/client/stdmk delete mode 100644 TAO/IIOP/test/Orbix/Makefile delete mode 100644 TAO/IIOP/test/Orbix/base_server/Makefile delete mode 100644 TAO/IIOP/test/Orbix/base_server/cubit.h delete mode 100644 TAO/IIOP/test/Orbix/base_server/cubit.idl delete mode 100644 TAO/IIOP/test/Orbix/base_server/cubitC.cpp delete mode 100644 TAO/IIOP/test/Orbix/base_server/cubitC.h delete mode 100644 TAO/IIOP/test/Orbix/base_server/cubitS.cpp delete mode 100644 TAO/IIOP/test/Orbix/base_server/cubitS.h delete mode 100644 TAO/IIOP/test/Orbix/base_server/cubit_impl.cpp delete mode 100644 TAO/IIOP/test/Orbix/base_server/cubit_impl.h delete mode 100644 TAO/IIOP/test/Orbix/base_server/server.cpp delete mode 100644 TAO/IIOP/test/Orbix/base_server/tpr.cpp delete mode 100644 TAO/IIOP/test/Orbix/base_server/tpr.h delete mode 100644 TAO/IIOP/test/Orbix/client/Makefile delete mode 100644 TAO/IIOP/test/Orbix/client/client.cpp delete mode 100644 TAO/IIOP/test/Orbix/client/cubit.h delete mode 100644 TAO/IIOP/test/Orbix/client/cubit.idl delete mode 100644 TAO/IIOP/test/Orbix/client/cubitC.cpp delete mode 100644 TAO/IIOP/test/Orbix/factory_client/Makefile delete mode 100644 TAO/IIOP/test/Orbix/factory_client/client.cpp delete mode 100644 TAO/IIOP/test/Orbix/factory_client/cubit.h delete mode 100644 TAO/IIOP/test/Orbix/factory_client/cubit.hh delete mode 100644 TAO/IIOP/test/Orbix/factory_client/cubit.idl delete mode 100644 TAO/IIOP/test/Orbix/factory_client/cubitC.cpp delete mode 100644 TAO/IIOP/test/Orbix/factory_client/cubitS.cpp delete mode 100644 TAO/IIOP/test/Orbix/orb.mk delete mode 100644 TAO/IIOP/test/Orbix/tpool/Makefile delete mode 100644 TAO/IIOP/test/Orbix/tpool/cubit.h delete mode 100644 TAO/IIOP/test/Orbix/tpool/cubit.idl delete mode 100644 TAO/IIOP/test/Orbix/tpool/cubitC.cpp delete mode 100644 TAO/IIOP/test/Orbix/tpool/cubitS.cpp delete mode 100644 TAO/IIOP/test/Orbix/tpool/cubit_impl.cpp delete mode 100644 TAO/IIOP/test/Orbix/tpool/cubit_impl.h delete mode 100644 TAO/IIOP/test/Orbix/tpool/server.cpp delete mode 100644 TAO/IIOP/test/Orbix/tpool/tpool.cpp delete mode 100644 TAO/IIOP/test/Orbix/tpool/tpool.h delete mode 100644 TAO/IIOP/test/Orbix/tpr/Makefile delete mode 100644 TAO/IIOP/test/Orbix/tpr/cubit.h delete mode 100644 TAO/IIOP/test/Orbix/tpr/cubit.idl delete mode 100644 TAO/IIOP/test/Orbix/tpr/cubitC.cpp delete mode 100644 TAO/IIOP/test/Orbix/tpr/cubitC.h delete mode 100644 TAO/IIOP/test/Orbix/tpr/cubitS.cpp delete mode 100644 TAO/IIOP/test/Orbix/tpr/cubitS.h delete mode 100644 TAO/IIOP/test/Orbix/tpr/cubit_impl.cpp delete mode 100644 TAO/IIOP/test/Orbix/tpr/cubit_impl.h delete mode 100644 TAO/IIOP/test/Orbix/tpr/server.cpp delete mode 100644 TAO/IIOP/test/Orbix/tpr/tpr.cpp delete mode 100644 TAO/IIOP/test/Orbix/tpr/tpr.h delete mode 100644 TAO/IIOP/test/Orbix/tps/Makefile delete mode 100644 TAO/IIOP/test/Orbix/tps/cubit.h delete mode 100644 TAO/IIOP/test/Orbix/tps/cubit.idl delete mode 100644 TAO/IIOP/test/Orbix/tps/cubitC.cpp delete mode 100644 TAO/IIOP/test/Orbix/tps/cubitS.cpp delete mode 100644 TAO/IIOP/test/Orbix/tps/cubit_impl.cpp delete mode 100644 TAO/IIOP/test/Orbix/tps/cubit_impl.h delete mode 100644 TAO/IIOP/test/Orbix/tps/server.cpp delete mode 100644 TAO/IIOP/test/Orbix/tps/tps.cpp delete mode 100644 TAO/IIOP/test/Orbix/tps/tps.h delete mode 100644 TAO/IIOP/test/clnt.cpp delete mode 100644 TAO/IIOP/test/cubit.cpp delete mode 100644 TAO/IIOP/test/cubit.h delete mode 100644 TAO/IIOP/test/cubit.idl delete mode 100644 TAO/IIOP/test/cubitC.cpp delete mode 100644 TAO/IIOP/test/cubitC.h delete mode 100644 TAO/IIOP/test/cubitS.cpp delete mode 100644 TAO/IIOP/test/cubitS.h delete mode 100644 TAO/IIOP/test/cubit_i.cpp delete mode 100644 TAO/IIOP/test/cubit_i.h delete mode 100644 TAO/IIOP/test/method_db.i delete mode 100644 TAO/IIOP/test/results/Orbix delete mode 100644 TAO/IIOP/test/results/TAO delete mode 100644 TAO/IIOP/test/results/Visibroker delete mode 100644 TAO/IIOP/test/results/orbs.xls delete mode 100644 TAO/IIOP/test/svr.cpp delete mode 100644 TAO/IIOP/test/test.mak delete mode 100644 TAO/IIOP/test/test.mdp delete mode 100644 TAO/IIOP/test/test1.cpp delete mode 100644 TAO/IIOP/test/test1.h delete mode 100644 TAO/IIOP/test/test1.idl delete mode 100644 TAO/IIOP/test/test1_clnt.cpp delete mode 100644 TAO/IIOP/test/test1_svr.cpp delete mode 100644 TAO/IIOP/test/tnf/Orbix.svr.summary delete mode 100644 TAO/IIOP/test/tnf/clnt.summary delete mode 100644 TAO/IIOP/test/tnf/svr.summary delete mode 100755 TAO/IIOP/tests/Cubit/Build/clnt.bld delete mode 100755 TAO/IIOP/tests/Cubit/Build/default.bld delete mode 100755 TAO/IIOP/tests/Cubit/Build/svr.bld delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/Makefile delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/Makefile delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.idl delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/cubit_impl.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/cubit_impl.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/server.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/client/Makefile delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/client/client.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/client/cubit.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/client/cubit.idl delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/client/cubitC.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/factory_client/Makefile delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/factory_client/client.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.hh delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.idl delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/factory_client/cubitC.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/factory_client/cubitS.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/orb.mk delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpool/Makefile delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.idl delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpool/cubitC.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpool/cubitS.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpool/cubit_impl.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpool/cubit_impl.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpool/server.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/Makefile delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.idl delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/cubit_impl.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/cubit_impl.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/server.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tps/Makefile delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tps/cubit.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tps/cubit.idl delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tps/cubitC.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tps/cubitS.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tps/tps.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tps/tps.h delete mode 100644 TAO/IIOP/tests/Cubit/README delete mode 100644 TAO/IIOP/tests/Cubit/TAO/Makefile delete mode 100644 TAO/IIOP/tests/Cubit/TAO/clnt.cpp delete mode 100644 TAO/IIOP/tests/Cubit/TAO/cubit.cpp delete mode 100644 TAO/IIOP/tests/Cubit/TAO/cubit.h delete mode 100644 TAO/IIOP/tests/Cubit/TAO/cubit.idl delete mode 100644 TAO/IIOP/tests/Cubit/TAO/cubitC.cpp delete mode 100644 TAO/IIOP/tests/Cubit/TAO/cubitC.h delete mode 100644 TAO/IIOP/tests/Cubit/TAO/cubitS.cpp delete mode 100644 TAO/IIOP/tests/Cubit/TAO/cubitS.h delete mode 100644 TAO/IIOP/tests/Cubit/TAO/cubit_i.cpp delete mode 100644 TAO/IIOP/tests/Cubit/TAO/cubit_i.h delete mode 100644 TAO/IIOP/tests/Cubit/TAO/method_db.i delete mode 100644 TAO/IIOP/tests/Cubit/TAO/svr.cpp delete mode 100644 TAO/IIOP/tests/Cubit/TAO/test.mak delete mode 100644 TAO/IIOP/tests/Cubit/TAO/test.mdp delete mode 100644 TAO/IIOP/tests/Cubit/TAO/test1.cpp delete mode 100644 TAO/IIOP/tests/Cubit/TAO/test1.h delete mode 100644 TAO/IIOP/tests/Cubit/TAO/test1.idl delete mode 100644 TAO/IIOP/tests/Cubit/TAO/test1_clnt.cpp delete mode 100644 TAO/IIOP/tests/Cubit/TAO/test1_svr.cpp delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/base_server/Makefile delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.cpp delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.h delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit.idl delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit_impl.cpp delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit_impl.h delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/base_server/server.cpp delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/base_server/stdmk delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/client/Makefile delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.cpp delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.h delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/client/client.cpp delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/client/cubit.idl delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/client/stdmk delete mode 100644 TAO/IIOP/tests/Cubit/results/Orbix delete mode 100644 TAO/IIOP/tests/Cubit/results/TAO delete mode 100644 TAO/IIOP/tests/Cubit/results/Visibroker delete mode 100644 TAO/IIOP/tests/Cubit/results/orbs.xls delete mode 100644 TAO/IIOP/tests/Thruput_test/Makefile delete mode 100644 TAO/IIOP/tests/Thruput_test/README delete mode 100644 TAO/IIOP/tests/Thruput_test/client.cpp delete mode 100755 TAO/IIOP/tests/Thruput_test/run delete mode 100755 TAO/IIOP/tests/Thruput_test/run_client delete mode 100755 TAO/IIOP/tests/Thruput_test/run_server delete mode 100755 TAO/IIOP/tests/Thruput_test/run_test delete mode 100644 TAO/IIOP/tests/Thruput_test/server.cpp delete mode 100644 TAO/IIOP/tests/Thruput_test/ttcp.idl delete mode 100644 TAO/IIOP/tests/Thruput_test/ttcpC.cpp delete mode 100644 TAO/IIOP/tests/Thruput_test/ttcpC.h delete mode 100644 TAO/IIOP/tests/Thruput_test/ttcpS.cpp delete mode 100644 TAO/IIOP/tests/Thruput_test/ttcpS.h delete mode 100644 TAO/IIOP/tests/Thruput_test/ttcp_decl.h delete mode 100644 TAO/IIOP/tests/Thruput_test/ttcp_i.cpp delete mode 100644 TAO/IIOP/tests/Thruput_test/ttcp_i.h delete mode 100644 TAO/IIOP/tests/Thruput_test/utils.cpp delete mode 100644 TAO/LICENSE.sun delete mode 100644 TAO/Makefile delete mode 100644 TAO/README delete mode 100644 TAO/README.sun delete mode 100644 TAO/TAO-INSTALL.html delete mode 100644 TAO/TAOACE.dsw delete mode 100644 TAO/TAO_IDL/ANNOUNCEMENT delete mode 100644 TAO/TAO_IDL/CHANGES delete mode 100755 TAO/TAO_IDL/GenExportH.BAT delete mode 100644 TAO/TAO_IDL/INSTALL delete mode 100644 TAO/TAO_IDL/Makefile delete mode 100644 TAO/TAO_IDL/README delete mode 100644 TAO/TAO_IDL/TAO_IDL4.mak delete mode 100644 TAO/TAO_IDL/TAO_IDL4.mdp delete mode 100644 TAO/TAO_IDL/ast/Makefile delete mode 100644 TAO/TAO_IDL/ast/ast_argument.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_array.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_attribute.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_check.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_concrete_type.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_constant.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_decl.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_enum.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_enum_val.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_exception.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_expression.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_field.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_generator.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_interface.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_interface_fwd.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_module.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_native.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_operation.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_predefined_type.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_recursive.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_redef.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_root.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_sequence.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_string.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_structure.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_type.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_typedef.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_union.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_union_branch.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_union_label.cpp delete mode 100644 TAO/TAO_IDL/be/Makefile delete mode 100644 TAO/TAO_IDL/be/be_args.cpp delete mode 100644 TAO/TAO_IDL/be/be_argument.cpp delete mode 100644 TAO/TAO_IDL/be/be_array.cpp delete mode 100644 TAO/TAO_IDL/be/be_attribute.cpp delete mode 100644 TAO/TAO_IDL/be/be_codegen.cpp delete mode 100644 TAO/TAO_IDL/be/be_constant.cpp delete mode 100644 TAO/TAO_IDL/be/be_decl.cpp delete mode 100644 TAO/TAO_IDL/be/be_enum.cpp delete mode 100644 TAO/TAO_IDL/be/be_enum_val.cpp delete mode 100644 TAO/TAO_IDL/be/be_exception.cpp delete mode 100644 TAO/TAO_IDL/be/be_expression.cpp delete mode 100644 TAO/TAO_IDL/be/be_factory.cpp delete mode 100644 TAO/TAO_IDL/be/be_field.cpp delete mode 100644 TAO/TAO_IDL/be/be_generator.cpp delete mode 100644 TAO/TAO_IDL/be/be_helper.cpp delete mode 100644 TAO/TAO_IDL/be/be_init.cpp delete mode 100644 TAO/TAO_IDL/be/be_interface.cpp delete mode 100644 TAO/TAO_IDL/be/be_interface_fwd.cpp delete mode 100644 TAO/TAO_IDL/be/be_interpretive.cpp delete mode 100644 TAO/TAO_IDL/be/be_module.cpp delete mode 100644 TAO/TAO_IDL/be/be_native.cpp delete mode 100644 TAO/TAO_IDL/be/be_operation.cpp delete mode 100644 TAO/TAO_IDL/be/be_predefined_type.cpp delete mode 100644 TAO/TAO_IDL/be/be_produce.cpp delete mode 100644 TAO/TAO_IDL/be/be_root.cpp delete mode 100644 TAO/TAO_IDL/be/be_scope.cpp delete mode 100644 TAO/TAO_IDL/be/be_sequence.cpp delete mode 100644 TAO/TAO_IDL/be/be_state.cpp delete mode 100644 TAO/TAO_IDL/be/be_state_argument.cpp delete mode 100644 TAO/TAO_IDL/be/be_state_array.cpp delete mode 100644 TAO/TAO_IDL/be/be_state_attribute.cpp delete mode 100644 TAO/TAO_IDL/be/be_state_exception.cpp delete mode 100644 TAO/TAO_IDL/be/be_state_operation.cpp delete mode 100644 TAO/TAO_IDL/be/be_state_sequence.cpp delete mode 100644 TAO/TAO_IDL/be/be_state_structure.cpp delete mode 100644 TAO/TAO_IDL/be/be_state_typedef.cpp delete mode 100644 TAO/TAO_IDL/be/be_state_union.cpp delete mode 100644 TAO/TAO_IDL/be/be_string.cpp delete mode 100644 TAO/TAO_IDL/be/be_structure.cpp delete mode 100644 TAO/TAO_IDL/be/be_sunsoft.cpp delete mode 100644 TAO/TAO_IDL/be/be_type.cpp delete mode 100644 TAO/TAO_IDL/be/be_typedef.cpp delete mode 100644 TAO/TAO_IDL/be/be_union.cpp delete mode 100644 TAO/TAO_IDL/be/be_union_branch.cpp delete mode 100644 TAO/TAO_IDL/be/be_union_label.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_args.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_array.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_attribute.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_constant.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_context.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_decl.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_enum.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_exception.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_field.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_interface.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_interface_fwd.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_module.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_root.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_scope.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_sequence.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_structure.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_typecode.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_typedef.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union_branch.cpp delete mode 100644 TAO/TAO_IDL/be_include/be.h delete mode 100644 TAO/TAO_IDL/be_include/be_argument.h delete mode 100644 TAO/TAO_IDL/be_include/be_array.h delete mode 100644 TAO/TAO_IDL/be_include/be_attribute.h delete mode 100644 TAO/TAO_IDL/be_include/be_codegen.h delete mode 100644 TAO/TAO_IDL/be_include/be_constant.h delete mode 100644 TAO/TAO_IDL/be_include/be_decl.h delete mode 100644 TAO/TAO_IDL/be_include/be_enum.h delete mode 100644 TAO/TAO_IDL/be_include/be_enum_val.h delete mode 100644 TAO/TAO_IDL/be_include/be_exception.h delete mode 100644 TAO/TAO_IDL/be_include/be_expression.h delete mode 100644 TAO/TAO_IDL/be_include/be_factory.h delete mode 100644 TAO/TAO_IDL/be_include/be_field.h delete mode 100644 TAO/TAO_IDL/be_include/be_generator.h delete mode 100644 TAO/TAO_IDL/be_include/be_helper.h delete mode 100644 TAO/TAO_IDL/be_include/be_interface.h delete mode 100644 TAO/TAO_IDL/be_include/be_interface_fwd.h delete mode 100644 TAO/TAO_IDL/be_include/be_interpretive.h delete mode 100644 TAO/TAO_IDL/be_include/be_module.h delete mode 100644 TAO/TAO_IDL/be_include/be_native.h delete mode 100644 TAO/TAO_IDL/be_include/be_operation.h delete mode 100644 TAO/TAO_IDL/be_include/be_predefined_type.h delete mode 100644 TAO/TAO_IDL/be_include/be_root.h delete mode 100644 TAO/TAO_IDL/be_include/be_scope.h delete mode 100644 TAO/TAO_IDL/be_include/be_sequence.h delete mode 100644 TAO/TAO_IDL/be_include/be_state.h delete mode 100644 TAO/TAO_IDL/be_include/be_string.h delete mode 100644 TAO/TAO_IDL/be_include/be_structure.h delete mode 100644 TAO/TAO_IDL/be_include/be_sunsoft.h delete mode 100644 TAO/TAO_IDL/be_include/be_type.h delete mode 100644 TAO/TAO_IDL/be_include/be_typedef.h delete mode 100644 TAO/TAO_IDL/be_include/be_union.h delete mode 100644 TAO/TAO_IDL/be_include/be_union_branch.h delete mode 100644 TAO/TAO_IDL/be_include/be_union_label.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_args.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_array.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_attribute.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_constant.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_context.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_decl.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_enum.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_exception.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_field.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_interface.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_interface_fwd.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_module.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_root.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_scope.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_sequence.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_structure.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_typecode.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_typedef.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union_branch.h delete mode 100644 TAO/TAO_IDL/docs/ANNOUNCEMENT delete mode 100644 TAO/TAO_IDL/docs/BUG_REPORT delete mode 100644 TAO/TAO_IDL/docs/CHANGES delete mode 100644 TAO/TAO_IDL/docs/CLI delete mode 100644 TAO/TAO_IDL/docs/COPYRIGHT delete mode 100644 TAO/TAO_IDL/docs/INSTALL delete mode 100644 TAO/TAO_IDL/docs/PROBLEMS delete mode 100644 TAO/TAO_IDL/docs/README delete mode 100644 TAO/TAO_IDL/docs/ROADMAP delete mode 100644 TAO/TAO_IDL/docs/WRITING_A_BE delete mode 100644 TAO/TAO_IDL/driver/Makefile delete mode 100644 TAO/TAO_IDL/driver/drv_args.cpp delete mode 100644 TAO/TAO_IDL/driver/drv_fork.cpp delete mode 100644 TAO/TAO_IDL/driver/drv_init.cpp delete mode 100644 TAO/TAO_IDL/driver/drv_link.cpp delete mode 100644 TAO/TAO_IDL/driver/drv_preproc.cpp delete mode 100644 TAO/TAO_IDL/driver/drv_private.cpp delete mode 100644 TAO/TAO_IDL/fe/Makefile delete mode 100644 TAO/TAO_IDL/fe/fe_declarator.cpp delete mode 100644 TAO/TAO_IDL/fe/fe_extern.cpp delete mode 100644 TAO/TAO_IDL/fe/fe_init.cpp delete mode 100644 TAO/TAO_IDL/fe/fe_interface_header.cpp delete mode 100644 TAO/TAO_IDL/fe/fe_private.cpp delete mode 100644 TAO/TAO_IDL/fe/idl.ll delete mode 100644 TAO/TAO_IDL/fe/idl.yy delete mode 100644 TAO/TAO_IDL/fe/lex.yy.cpp delete mode 100644 TAO/TAO_IDL/fe/lex.yy.cpp.diff delete mode 100644 TAO/TAO_IDL/fe/y.tab.cpp delete mode 100644 TAO/TAO_IDL/fe/y.tab.cpp.diff delete mode 100644 TAO/TAO_IDL/fe/y.tab.h delete mode 100644 TAO/TAO_IDL/idl_make_vars delete mode 100644 TAO/TAO_IDL/idl_specs/array.idl delete mode 100644 TAO/TAO_IDL/idl_specs/constant.idl delete mode 100644 TAO/TAO_IDL/idl_specs/dif2.idl delete mode 100644 TAO/TAO_IDL/idl_specs/inherit.idl delete mode 100644 TAO/TAO_IDL/idl_specs/module.idl delete mode 100644 TAO/TAO_IDL/idl_specs/primtypes.idl delete mode 100644 TAO/TAO_IDL/idl_specs/sequence.idl delete mode 100644 TAO/TAO_IDL/idl_specs/simple.idl delete mode 100644 TAO/TAO_IDL/idl_specs/simple2.idl delete mode 100644 TAO/TAO_IDL/idl_specs/struct.idl delete mode 100644 TAO/TAO_IDL/idl_specs/union.idl delete mode 100644 TAO/TAO_IDL/idl_specs/union2.idl delete mode 100644 TAO/TAO_IDL/include/ast.h delete mode 100644 TAO/TAO_IDL/include/ast_argument.h delete mode 100644 TAO/TAO_IDL/include/ast_array.h delete mode 100644 TAO/TAO_IDL/include/ast_attribute.h delete mode 100644 TAO/TAO_IDL/include/ast_concrete_type.h delete mode 100644 TAO/TAO_IDL/include/ast_constant.h delete mode 100644 TAO/TAO_IDL/include/ast_decl.h delete mode 100644 TAO/TAO_IDL/include/ast_enum.h delete mode 100644 TAO/TAO_IDL/include/ast_enum_val.h delete mode 100644 TAO/TAO_IDL/include/ast_exception.h delete mode 100644 TAO/TAO_IDL/include/ast_expression.h delete mode 100644 TAO/TAO_IDL/include/ast_extern.h delete mode 100644 TAO/TAO_IDL/include/ast_field.h delete mode 100644 TAO/TAO_IDL/include/ast_generator.h delete mode 100644 TAO/TAO_IDL/include/ast_interface.h delete mode 100644 TAO/TAO_IDL/include/ast_interface_fwd.h delete mode 100644 TAO/TAO_IDL/include/ast_module.h delete mode 100644 TAO/TAO_IDL/include/ast_native.h delete mode 100644 TAO/TAO_IDL/include/ast_operation.h delete mode 100644 TAO/TAO_IDL/include/ast_predefined_type.h delete mode 100644 TAO/TAO_IDL/include/ast_root.h delete mode 100644 TAO/TAO_IDL/include/ast_sequence.h delete mode 100644 TAO/TAO_IDL/include/ast_string.h delete mode 100644 TAO/TAO_IDL/include/ast_structure.h delete mode 100644 TAO/TAO_IDL/include/ast_type.h delete mode 100644 TAO/TAO_IDL/include/ast_typedef.h delete mode 100644 TAO/TAO_IDL/include/ast_union.h delete mode 100644 TAO/TAO_IDL/include/ast_union_branch.h delete mode 100644 TAO/TAO_IDL/include/ast_union_label.h delete mode 100644 TAO/TAO_IDL/include/be_extern.h delete mode 100644 TAO/TAO_IDL/include/drv_extern.h delete mode 100644 TAO/TAO_IDL/include/drv_link.h delete mode 100644 TAO/TAO_IDL/include/drv_private.h delete mode 100644 TAO/TAO_IDL/include/fe_declarator.h delete mode 100644 TAO/TAO_IDL/include/fe_extern.h delete mode 100644 TAO/TAO_IDL/include/fe_interface_header.h delete mode 100644 TAO/TAO_IDL/include/fe_private.h delete mode 100644 TAO/TAO_IDL/include/global_extern.h delete mode 100644 TAO/TAO_IDL/include/idl.h delete mode 100644 TAO/TAO_IDL/include/idl_bool.h delete mode 100644 TAO/TAO_IDL/include/idl_defines.h delete mode 100644 TAO/TAO_IDL/include/idl_extern.h delete mode 100644 TAO/TAO_IDL/include/idl_fwd.h delete mode 100644 TAO/TAO_IDL/include/idl_global.h delete mode 100644 TAO/TAO_IDL/include/idl_narrow.h delete mode 100644 TAO/TAO_IDL/include/intlmacros.h delete mode 100644 TAO/TAO_IDL/include/nr_extern.h delete mode 100644 TAO/TAO_IDL/include/util.h delete mode 100644 TAO/TAO_IDL/include/utl_decllist.h delete mode 100644 TAO/TAO_IDL/include/utl_err.h delete mode 100644 TAO/TAO_IDL/include/utl_error.h delete mode 100644 TAO/TAO_IDL/include/utl_exceptlist.h delete mode 100644 TAO/TAO_IDL/include/utl_exprlist.h delete mode 100644 TAO/TAO_IDL/include/utl_identifier.h delete mode 100644 TAO/TAO_IDL/include/utl_idlist.h delete mode 100644 TAO/TAO_IDL/include/utl_indenter.h delete mode 100644 TAO/TAO_IDL/include/utl_labellist.h delete mode 100644 TAO/TAO_IDL/include/utl_list.h delete mode 100644 TAO/TAO_IDL/include/utl_namelist.h delete mode 100644 TAO/TAO_IDL/include/utl_scope.h delete mode 100644 TAO/TAO_IDL/include/utl_scoped_name.h delete mode 100644 TAO/TAO_IDL/include/utl_stack.h delete mode 100644 TAO/TAO_IDL/include/utl_string.h delete mode 100644 TAO/TAO_IDL/include/utl_strlist.h delete mode 100644 TAO/TAO_IDL/include/utl_tmpl/utl_decllist.h delete mode 100644 TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h delete mode 100644 TAO/TAO_IDL/include/utl_tmpl/utl_exprlist.h delete mode 100644 TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h delete mode 100644 TAO/TAO_IDL/include/utl_tmpl/utl_labellist.h delete mode 100644 TAO/TAO_IDL/include/utl_tmpl/utl_list.h delete mode 100644 TAO/TAO_IDL/include/utl_tmpl/utl_namelist.h delete mode 100644 TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h delete mode 100644 TAO/TAO_IDL/narrow/Makefile delete mode 100644 TAO/TAO_IDL/narrow/narrow.cpp delete mode 100644 TAO/TAO_IDL/tao_idl.cpp delete mode 100644 TAO/TAO_IDL/tao_idl.dsp delete mode 100644 TAO/TAO_IDL/tao_idl.dsw delete mode 100644 TAO/TAO_IDL/util/Makefile delete mode 100644 TAO/TAO_IDL/util/utl_decllist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_err.cpp delete mode 100644 TAO/TAO_IDL/util/utl_error.cpp delete mode 100644 TAO/TAO_IDL/util/utl_exceptlist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_exprlist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_global.cpp delete mode 100644 TAO/TAO_IDL/util/utl_identifier.cpp delete mode 100644 TAO/TAO_IDL/util/utl_idlist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_indenter.cpp delete mode 100644 TAO/TAO_IDL/util/utl_labellist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_list.cpp delete mode 100644 TAO/TAO_IDL/util/utl_namelist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_scope.cpp delete mode 100644 TAO/TAO_IDL/util/utl_stack.cpp delete mode 100644 TAO/TAO_IDL/util/utl_string.cpp delete mode 100644 TAO/TAO_IDL/util/utl_strlist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_tmpl/utl_decllist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_tmpl/utl_exceptlist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_tmpl/utl_exprlist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_tmpl/utl_idlist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_tmpl/utl_labellist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_tmpl/utl_list.cpp delete mode 100644 TAO/TAO_IDL/util/utl_tmpl/utl_namelist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_tmpl/utl_strlist.cpp delete mode 100644 TAO/VERSION delete mode 100755 TAO/announcement delete mode 100644 TAO/docs/DIFFERENCES delete mode 100644 TAO/docs/HISTORY delete mode 100644 TAO/docs/Options.html delete mode 100644 TAO/docs/REFERENCES delete mode 100644 TAO/docs/compiler.html delete mode 100644 TAO/docs/components.html delete mode 100644 TAO/docs/configurations.html delete mode 100644 TAO/docs/forwarding.html delete mode 100644 TAO/docs/index.html delete mode 100644 TAO/docs/orbsvcs.html delete mode 100644 TAO/docs/poa_migration.html delete mode 100644 TAO/docs/reactivator.html delete mode 100644 TAO/docs/releasenotes.html delete mode 100644 TAO/docs/releasenotes/ec.html delete mode 100644 TAO/docs/releasenotes/index.html delete mode 100644 TAO/docs/releasenotes/orbcore.html delete mode 100644 TAO/examples/Simulator/DOVEBrowser/AnswerEvent.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/AnswerListener.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.html delete mode 100644 TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/DOVEBrowserApplet.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/DataHandler.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/DemoCore.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/DemoObservable.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/DoubleVisComp.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/NS_Resolve.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/NavWeapDataHandler.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/NavigationVisComp.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/ObservablesDialog.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/Properties.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/PushConsumer.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/PushConsumer.java.JDK1.2 delete mode 100644 TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java.JDK1.2 delete mode 100644 TAO/examples/Simulator/DOVEBrowser/Queue.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/VisComp.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/VisCompFactory.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/WeaponsVisComp.java delete mode 100755 TAO/examples/Simulator/DOVEBrowser/make.bat delete mode 100644 TAO/examples/Simulator/DOVEMIB/AnyAnalyser.cpp delete mode 100644 TAO/examples/Simulator/DOVEMIB/AnyAnalyser.h delete mode 100644 TAO/examples/Simulator/DOVEMIB/DOVEMIB.cpp delete mode 100644 TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsp delete mode 100644 TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsw delete mode 100644 TAO/examples/Simulator/DOVEMIB/DOVEMIB.h delete mode 100644 TAO/examples/Simulator/DOVEMIB/DOVEMIBx.dsp delete mode 100644 TAO/examples/Simulator/DOVEMIB/Makefile delete mode 100644 TAO/examples/Simulator/DOVEMIB/Node.cpp delete mode 100644 TAO/examples/Simulator/DOVEMIB/Node.h delete mode 100644 TAO/examples/Simulator/DOVEMIB/NodeVisitor.h delete mode 100644 TAO/examples/Simulator/DOVEMIB/PrintVisitor.cpp delete mode 100644 TAO/examples/Simulator/DOVEMIB/PrintVisitor.h delete mode 100644 TAO/examples/Simulator/DOVEMIB/TestClient.dsp delete mode 100644 TAO/examples/Simulator/DOVEMIB/any_test.idl delete mode 100644 TAO/examples/Simulator/DOVEMIB/any_test_i.cpp delete mode 100644 TAO/examples/Simulator/DOVEMIB/any_test_i.h delete mode 100644 TAO/examples/Simulator/DOVEMIB/clnt.cpp delete mode 100644 TAO/examples/Simulator/DOVEMIB/clnt.h delete mode 100644 TAO/examples/Simulator/DOVEMIB/svc.conf delete mode 100644 TAO/examples/Simulator/DOVEMIB/svr.cpp delete mode 100644 TAO/examples/Simulator/Event_Supplier/EDF.dat delete mode 100644 TAO/examples/Simulator/Event_Supplier/Event_Con.cpp delete mode 100644 TAO/examples/Simulator/Event_Supplier/Event_Con.h delete mode 100644 TAO/examples/Simulator/Event_Supplier/Event_Sup.cpp delete mode 100644 TAO/examples/Simulator/Event_Supplier/Event_Sup.dsp delete mode 100644 TAO/examples/Simulator/Event_Supplier/Event_Sup.dsw delete mode 100644 TAO/examples/Simulator/Event_Supplier/Event_Sup.h delete mode 100644 TAO/examples/Simulator/Event_Supplier/MLF.dat delete mode 100644 TAO/examples/Simulator/Event_Supplier/MUF.dat delete mode 100644 TAO/examples/Simulator/Event_Supplier/Makefile delete mode 100644 TAO/examples/Simulator/Event_Supplier/RMS.dat delete mode 100644 TAO/examples/Simulator/Event_Supplier/RMS_Dyn.dat delete mode 100644 TAO/examples/Simulator/Event_Supplier/svc.conf delete mode 100644 TAO/examples/Simulator/NavWeap.idl delete mode 100644 TAO/examples/Simulator/README delete mode 100755 TAO/examples/Simulator/ss delete mode 100644 TAO/orbsvcs/Concurrency_Service/Concurrency_Service.cpp delete mode 100644 TAO/orbsvcs/Concurrency_Service/Concurrency_Service.dsp delete mode 100644 TAO/orbsvcs/Concurrency_Service/Concurrency_Service.dsw delete mode 100644 TAO/orbsvcs/Concurrency_Service/Concurrency_Service.h delete mode 100644 TAO/orbsvcs/Concurrency_Service/Makefile delete mode 100644 TAO/orbsvcs/Concurrency_Service/README delete mode 100644 TAO/orbsvcs/Concurrency_Service/svc.conf delete mode 100644 TAO/orbsvcs/Dump_Schedule/Dump_Schedule.cpp delete mode 100644 TAO/orbsvcs/Dump_Schedule/Dump_Schedule.dsp delete mode 100644 TAO/orbsvcs/Dump_Schedule/Dump_Schedule.dsw delete mode 100644 TAO/orbsvcs/Dump_Schedule/Makefile delete mode 100644 TAO/orbsvcs/Dump_Schedule/svc.conf delete mode 100644 TAO/orbsvcs/Event_Service/Event_Service.cpp delete mode 100644 TAO/orbsvcs/Event_Service/Event_Service.dsp delete mode 100644 TAO/orbsvcs/Event_Service/Event_Service.dsw delete mode 100644 TAO/orbsvcs/Event_Service/Makefile delete mode 100644 TAO/orbsvcs/Event_Service/svc.conf delete mode 100644 TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.cpp delete mode 100644 TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.h delete mode 100644 TAO/orbsvcs/LifeCycle_Service/Factory_Trader.cpp delete mode 100644 TAO/orbsvcs/LifeCycle_Service/Factory_Trader.h delete mode 100644 TAO/orbsvcs/LifeCycle_Service/LifeCycle_Service.dsp delete mode 100644 TAO/orbsvcs/LifeCycle_Service/LifeCycle_Service.dsw delete mode 100644 TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service.cpp delete mode 100644 TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service.h delete mode 100644 TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service_Impl.cpp delete mode 100644 TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service_Impl.h delete mode 100644 TAO/orbsvcs/LifeCycle_Service/Makefile delete mode 100644 TAO/orbsvcs/LifeCycle_Service/svc.conf delete mode 100644 TAO/orbsvcs/Makefile delete mode 100644 TAO/orbsvcs/Naming_Service/Makefile delete mode 100644 TAO/orbsvcs/Naming_Service/Naming_Service.cpp delete mode 100644 TAO/orbsvcs/Naming_Service/Naming_Service.dsp delete mode 100644 TAO/orbsvcs/Naming_Service/Naming_Service.dsw delete mode 100644 TAO/orbsvcs/Naming_Service/Naming_Service.h delete mode 100644 TAO/orbsvcs/Naming_Service/README delete mode 100644 TAO/orbsvcs/Naming_Service/svc.conf delete mode 100644 TAO/orbsvcs/Scheduling_Service/Makefile delete mode 100644 TAO/orbsvcs/Scheduling_Service/Scheduling_Service.cpp delete mode 100644 TAO/orbsvcs/Scheduling_Service/Scheduling_Service.dsp delete mode 100644 TAO/orbsvcs/Scheduling_Service/Scheduling_Service.dsw delete mode 100644 TAO/orbsvcs/Scheduling_Service/svc.conf delete mode 100644 TAO/orbsvcs/Trading_Service/Makefile delete mode 100644 TAO/orbsvcs/Trading_Service/svc.conf delete mode 100644 TAO/orbsvcs/Trading_Service/trader.cpp delete mode 100755 TAO/orbsvcs/default.bld delete mode 100644 TAO/orbsvcs/orbsvcs.dsw delete mode 100644 TAO/orbsvcs/orbsvcs/AV/AVStreams_i.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/AV/AVStreams_i.h delete mode 100644 TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.h delete mode 100644 TAO/orbsvcs/orbsvcs/AV/README delete mode 100644 TAO/orbsvcs/orbsvcs/AVStreams.idl delete mode 100644 TAO/orbsvcs/orbsvcs/AVStreams_Full.idl delete mode 100644 TAO/orbsvcs/orbsvcs/Channel_Clients.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Channel_Clients.h delete mode 100644 TAO/orbsvcs/orbsvcs/Channel_Clients_T.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Channel_Clients_T.h delete mode 100644 TAO/orbsvcs/orbsvcs/Channel_Clients_T.i delete mode 100644 TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.h delete mode 100644 TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.h delete mode 100644 TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h delete mode 100644 TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h delete mode 100644 TAO/orbsvcs/orbsvcs/CosConcurrencyControl.idl delete mode 100644 TAO/orbsvcs/orbsvcs/CosLifeCycle.idl delete mode 100644 TAO/orbsvcs/orbsvcs/CosNaming.idl delete mode 100644 TAO/orbsvcs/orbsvcs/CosPropertyService.idl delete mode 100644 TAO/orbsvcs/orbsvcs/CosTimeBase.idl delete mode 100644 TAO/orbsvcs/orbsvcs/CosTrading.idl delete mode 100644 TAO/orbsvcs/orbsvcs/Event/BCU.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/BCU.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/CORBA_Utils_T.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/CORBA_Utils_T.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/CORBA_Utils_T.i delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Channel_Clients.i delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Channel_Clients_T.i delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Debug_Macros.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.i delete mode 100644 TAO/orbsvcs/orbsvcs/Event/EC_Gateway.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/EC_Gateway.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Event_Channel.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Event_Channel.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Event_Channel.i delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Fast_Reactor.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/GPlot_File.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/GPlot_File.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/GPlot_File.i delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Local_ESTypes.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Local_ESTypes.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Local_ESTypes.i delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Memory_Pools.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Memory_Pools.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Memory_Pools.i delete mode 100644 TAO/orbsvcs/orbsvcs/Event/RT_Task.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/RT_Task.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/RT_Task.i delete mode 100644 TAO/orbsvcs/orbsvcs/Event/ReactorTask.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/ReactorTask.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Task_Manager.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Task_Manager.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Task_Manager.i delete mode 100644 TAO/orbsvcs/orbsvcs/Event_Service_Constants.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event_Utilities.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event_Utilities.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event_Utilities.i delete mode 100644 TAO/orbsvcs/orbsvcs/IOR_Multicast.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/IOR_Multicast.h delete mode 100644 TAO/orbsvcs/orbsvcs/LifeCycleService.idl delete mode 100644 TAO/orbsvcs/orbsvcs/Log/Logger_i.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Log/Logger_i.h delete mode 100644 TAO/orbsvcs/orbsvcs/Logger.idl delete mode 100644 TAO/orbsvcs/orbsvcs/Makefile delete mode 100644 TAO/orbsvcs/orbsvcs/Naming/CosNaming_i.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Naming/CosNaming_i.h delete mode 100644 TAO/orbsvcs/orbsvcs/Naming/Entries.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Naming/Entries.h delete mode 100644 TAO/orbsvcs/orbsvcs/Naming/Naming_Utils.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Naming/Naming_Utils.h delete mode 100644 TAO/orbsvcs/orbsvcs/Null_MediaCtrl.idl delete mode 100644 TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.h delete mode 100644 TAO/orbsvcs/orbsvcs/RtecEventChannelAdmin.idl delete mode 100644 TAO/orbsvcs/orbsvcs/RtecEventComm.idl delete mode 100644 TAO/orbsvcs/orbsvcs/RtecScheduler.idl delete mode 100644 TAO/orbsvcs/orbsvcs/Runtime_Scheduler.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Runtime_Scheduler.h delete mode 100644 TAO/orbsvcs/orbsvcs/Runtime_Scheduler.i delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.h delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.i delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/DynSched.h delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/DynSched.i delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/SchedEntry.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/SchedEntry.h delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/SchedEntry.i delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Scheduler.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Scheduler.h delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Scheduler.i delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.h delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.i delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.h delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.i delete mode 100644 TAO/orbsvcs/orbsvcs/Scheduler_Factory.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Scheduler_Factory.h delete mode 100644 TAO/orbsvcs/orbsvcs/Scheduler_Factory.i delete mode 100644 TAO/orbsvcs/orbsvcs/Scheduler_Utilities.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Scheduler_Utilities.h delete mode 100644 TAO/orbsvcs/orbsvcs/Scheduler_Utilities.i delete mode 100644 TAO/orbsvcs/orbsvcs/Sequences.idl delete mode 100644 TAO/orbsvcs/orbsvcs/Time_Utilities.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Time_Utilities.h delete mode 100644 TAO/orbsvcs/orbsvcs/Time_Utilities.i delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Admin.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Admin.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Attributes.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Attributes.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Attributes_T.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Attributes_T.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint_Evaluator.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint_Evaluator.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint_Tokens.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint_Validator.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint_Validator.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitor.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint_l.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint_y.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Dynamic_Property.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Dynamic_Property.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Interpreter.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Interpreter.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Link.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Link.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Locking.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Lookup.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Lookup.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Offer_Filter.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Offer_Filter.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Offer_Id_Iterator.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Offer_Id_Iterator.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Offer_Iterator.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Offer_Iterator.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Offer_Iterator_Collection.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Offer_Iterator_Collection.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Offer_Modifier.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Offer_Modifier.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Policies.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Policies.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Policy_Manager.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Policy_Manager.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Preference_Interpreter.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Preference_Interpreter.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Property_Evaluator.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Property_Evaluator.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Property_Filter.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Property_Filter.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Proxy.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Proxy.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Query_Only_Offer_Iterator.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Query_Only_Offer_Iterator.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Register.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Register.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Register_Offer_Iterator.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Register_Offer_Iterator.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Service_Type_Map.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Service_Type_Map.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Trader.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Trader.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Trader_T.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Trader_T.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/constraint.l delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/constraint.y delete mode 100644 TAO/orbsvcs/orbsvcs/orbsvcs.dsp delete mode 100644 TAO/orbsvcs/orbsvcs/orbsvcs.dsw delete mode 100644 TAO/orbsvcs/orbsvcs/orbsvcs_export.h delete mode 100644 TAO/orbsvcs/orbsvcs/orbsvcs_lib.dsp delete mode 100644 TAO/orbsvcs/orbsvcs/sfp.idl delete mode 100644 TAO/orbsvcs/orbsvcs/tmplinst-orbsvcs.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/Machine_Properties.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/Machine_Properties.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/Makefile delete mode 100644 TAO/orbsvcs/tests/AVStreams/Property_Exporter.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/Property_Exporter.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/README delete mode 100644 TAO/orbsvcs/tests/AVStreams/benchmark/Makefile delete mode 100644 TAO/orbsvcs/tests/AVStreams/benchmark/child.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/benchmark/child.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/benchmark/client.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/benchmark/client.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/benchmark/clnt.conf delete mode 100644 TAO/orbsvcs/tests/AVStreams/benchmark/server.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/benchmark/server.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/benchmark/svc.conf delete mode 100644 TAO/orbsvcs/tests/AVStreams/client.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/client.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/ANNOUNCE delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/BUGS delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/COPYING delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/INSTALL delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/INSTALL.UCB delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/PatchLevel delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/README delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/README.MI delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/README.UCB delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/VERSION delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/Makefile delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/TODO delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/client/Makefile delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/client/svc.conf delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/client/vcr.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/include/common.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/24bit.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/2x2.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/Command_Handler.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/Command_Handler.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/Makefile delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/ab.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/audio.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/ctr.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/decoders.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/decoders.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/dither.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/file.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/fs2.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/fs2.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/fs2fast.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/fs4.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/fs4.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/global.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/global.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/gray.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/hybrid.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/hybriderr.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/info.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/Info.mib delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/MW.mib delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/MainWindow.mib delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/fb.xbm delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/ff.xbm delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/loop.xbm delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/old.MainWindow.mib delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/play.xbm delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/rewind.xbm delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/step.xbm delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/stop.xbm delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/jrevdct.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/mb_ordered.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/mibload.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/mono.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/motionvector.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/newproto.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/ordered.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/ordered2.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/para.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/parseblock.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/prog.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/proto.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/ui.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/ui.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/util.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/util.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/util32.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/vb.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/vd.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/video.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/video.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/vp.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/Makefile delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibButton.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibDrawArea.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibFrame.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibLabel.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibList.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibMenu.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibRadioBox.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibScale.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibScrollBar.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibTextBig.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibTextBox.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibToggle.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibload.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibload.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibwidgets.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_State.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_State.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_i.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_i.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Server.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Server.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Globals.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Globals.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Makefile delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Control_State.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Control_State.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Control_i.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Control_i.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Server.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Server.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/as.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/las.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/lvs.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/server_proto.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/vs.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/Audio_Control.idl delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/Makefile delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/Video_Control.idl delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/com.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/com.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/fileio.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/fileio.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/filters.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/filters.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/routine.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/routine.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/sendpt.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/sendpt.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/Machine_Properties.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/Machine_Properties.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/Makefile delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/Property_Exporter.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/Property_Exporter.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/Video_Repository.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/Video_Repository.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/Video_Repository.idl delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/as.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/as.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/augmented_server.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/augmented_server.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/server.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/server.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/svc.conf delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/vcrs.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/vs.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/vs.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/vcr.1 delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/vcrs.1 delete mode 100644 TAO/orbsvcs/tests/AVStreams/server.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/server.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/sfp/Makefile delete mode 100644 TAO/orbsvcs/tests/AVStreams/sfp/client.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/sfp/svc.conf delete mode 100644 TAO/orbsvcs/tests/AVStreams/svc.conf delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_client.cpp delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_client.dsp delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_client.h delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_command.cpp delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_command.h delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_command.l delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_command.tab.cpp delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_command.tab.h delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_command.y delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_naming_service.cpp delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_naming_service.h delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_test_utils.cpp delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_test_utils.h delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_tests.cpp delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_tests.h delete mode 100644 TAO/orbsvcs/tests/Concurrency/Concurrency.dsw delete mode 100644 TAO/orbsvcs/tests/Concurrency/Makefile delete mode 100644 TAO/orbsvcs/tests/Concurrency/NS_client.cpp delete mode 100644 TAO/orbsvcs/tests/Concurrency/NS_client.h delete mode 100644 TAO/orbsvcs/tests/Concurrency/README delete mode 100644 TAO/orbsvcs/tests/Concurrency/lex.CC_command.cpp delete mode 100644 TAO/orbsvcs/tests/Concurrency/svc.conf delete mode 100644 TAO/orbsvcs/tests/Concurrency/test.basic delete mode 100644 TAO/orbsvcs/tests/Concurrency/test.dinphil delete mode 100644 TAO/orbsvcs/tests/Concurrency/test.e1 delete mode 100644 TAO/orbsvcs/tests/Concurrency/test.extended delete mode 100644 TAO/orbsvcs/tests/Concurrency/test.phil1 delete mode 100644 TAO/orbsvcs/tests/Concurrency/test.phil2 delete mode 100644 TAO/orbsvcs/tests/Concurrency/test.phil3 delete mode 100644 TAO/orbsvcs/tests/Concurrency/test.phil4 delete mode 100644 TAO/orbsvcs/tests/Concurrency/test.phil5 delete mode 100644 TAO/orbsvcs/tests/Concurrency/tmplinst.cpp delete mode 100644 TAO/orbsvcs/tests/CosPropertyService/Makefile delete mode 100644 TAO/orbsvcs/tests/CosPropertyService/client.cpp delete mode 100644 TAO/orbsvcs/tests/CosPropertyService/client.h delete mode 100644 TAO/orbsvcs/tests/CosPropertyService/main.cpp delete mode 100644 TAO/orbsvcs/tests/CosPropertyService/server.cpp delete mode 100644 TAO/orbsvcs/tests/CosPropertyService/server.h delete mode 100644 TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp delete mode 100644 TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.dsp delete mode 100644 TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.dsw delete mode 100644 TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.h delete mode 100644 TAO/orbsvcs/tests/EC_Multiple/Makefile delete mode 100644 TAO/orbsvcs/tests/EC_Multiple/README delete mode 100644 TAO/orbsvcs/tests/EC_Multiple/Scheduler_Runtime1.h delete mode 100644 TAO/orbsvcs/tests/EC_Multiple/Scheduler_Runtime2.h delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/gen_latency delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/gen_overhead delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/gen_throughput delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/gen_utilization delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/histo.pl delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/run_latency delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/run_overhead delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/run_schedule delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/run_throughput delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/run_utilization delete mode 100644 TAO/orbsvcs/tests/EC_Multiple/svc.conf delete mode 100644 TAO/orbsvcs/tests/Event_Latency/Event_Latency.cpp delete mode 100644 TAO/orbsvcs/tests/Event_Latency/Event_Latency.dsp delete mode 100644 TAO/orbsvcs/tests/Event_Latency/Event_Latency.dsw delete mode 100644 TAO/orbsvcs/tests/Event_Latency/Event_Latency.h delete mode 100644 TAO/orbsvcs/tests/Event_Latency/Makefile delete mode 100644 TAO/orbsvcs/tests/Event_Latency/svc.conf delete mode 100644 TAO/orbsvcs/tests/Logger/Logger.dsw delete mode 100644 TAO/orbsvcs/tests/Logger/Makefile delete mode 100644 TAO/orbsvcs/tests/Logger/client.dsp delete mode 100644 TAO/orbsvcs/tests/Logger/clnt.cpp delete mode 100644 TAO/orbsvcs/tests/Logger/clnt.h delete mode 100644 TAO/orbsvcs/tests/Logger/server.dsp delete mode 100644 TAO/orbsvcs/tests/Logger/svc.conf delete mode 100644 TAO/orbsvcs/tests/Logger/svr.cpp delete mode 100644 TAO/orbsvcs/tests/Makefile delete mode 100755 TAO/orbsvcs/tests/Naming/Makefile delete mode 100644 TAO/orbsvcs/tests/Naming/README delete mode 100644 TAO/orbsvcs/tests/Naming/ns_tree.cpp delete mode 100644 TAO/orbsvcs/tests/Naming/test_object.idl delete mode 100644 TAO/orbsvcs/tests/Property/Makefile delete mode 100644 TAO/orbsvcs/tests/Property/client.cpp delete mode 100644 TAO/orbsvcs/tests/Property/client.h delete mode 100644 TAO/orbsvcs/tests/Property/main.cpp delete mode 100644 TAO/orbsvcs/tests/Property/server.cpp delete mode 100644 TAO/orbsvcs/tests/Property/server.h delete mode 100644 TAO/orbsvcs/tests/Sched/DynSched_Test.cpp delete mode 100644 TAO/orbsvcs/tests/Sched/Makefile delete mode 100644 TAO/orbsvcs/tests/Sched_Conf/Makefile delete mode 100644 TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.cpp delete mode 100644 TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.dsp delete mode 100644 TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.dsw delete mode 100644 TAO/orbsvcs/tests/Simple_Naming/Makefile delete mode 100644 TAO/orbsvcs/tests/Simple_Naming/Simple_Naming.dsw delete mode 100644 TAO/orbsvcs/tests/Simple_Naming/client.dsp delete mode 100644 TAO/orbsvcs/tests/Simple_Naming/clnt.cpp delete mode 100644 TAO/orbsvcs/tests/Simple_Naming/clnt.h delete mode 100644 TAO/orbsvcs/tests/Simple_Naming/svc.conf delete mode 100644 TAO/orbsvcs/tests/Trading/Makefile delete mode 100644 TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp delete mode 100644 TAO/orbsvcs/tests/Trading/Offer_Exporter.h delete mode 100644 TAO/orbsvcs/tests/Trading/Offer_Importer.cpp delete mode 100644 TAO/orbsvcs/tests/Trading/Offer_Importer.h delete mode 100644 TAO/orbsvcs/tests/Trading/Service_Type_Exporter.cpp delete mode 100644 TAO/orbsvcs/tests/Trading/Service_Type_Exporter.h delete mode 100644 TAO/orbsvcs/tests/Trading/TT_Info.cpp delete mode 100644 TAO/orbsvcs/tests/Trading/TT_Info.h delete mode 100644 TAO/orbsvcs/tests/Trading/TTest.idl delete mode 100644 TAO/orbsvcs/tests/Trading/colocated_test.cpp delete mode 100644 TAO/orbsvcs/tests/Trading/export_test.cpp delete mode 100644 TAO/orbsvcs/tests/Trading/import_test.cpp delete mode 100644 TAO/orbsvcs/tests/Trading/svc.conf delete mode 100644 TAO/orbsvcs/tests/tests.dsw delete mode 100755 TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/Makefile delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/README delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/Task_Client.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/Task_Client.h delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/Util_Thread.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/Util_Thread.h delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/client.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/client.h delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit.idl delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.h delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/server.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/server.h delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/svc.conf delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/tmplinst.cpp delete mode 100644 TAO/release.chk delete mode 100755 TAO/release.pl delete mode 100644 TAO/rules.tao.GNU delete mode 100644 TAO/tao/Align.h delete mode 100644 TAO/tao/Any.cpp delete mode 100644 TAO/tao/Any.h delete mode 100644 TAO/tao/Any.i delete mode 100644 TAO/tao/CDR.cpp delete mode 100644 TAO/tao/CDR.h delete mode 100644 TAO/tao/CDR.i delete mode 100644 TAO/tao/CORBA.cpp delete mode 100644 TAO/tao/Client_Strategy_Factory.cpp delete mode 100644 TAO/tao/Client_Strategy_Factory.h delete mode 100644 TAO/tao/Connect.cpp delete mode 100644 TAO/tao/Connect.h delete mode 100644 TAO/tao/Connect.i delete mode 100644 TAO/tao/Current.IDL delete mode 100644 TAO/tao/CurrentC.cpp delete mode 100644 TAO/tao/CurrentC.h delete mode 100644 TAO/tao/CurrentC.i delete mode 100644 TAO/tao/CurrentS.cpp delete mode 100644 TAO/tao/Exception.cpp delete mode 100644 TAO/tao/Exception.h delete mode 100644 TAO/tao/Exception.i delete mode 100644 TAO/tao/Forwarding_Servant.cpp delete mode 100644 TAO/tao/Forwarding_Servant.h delete mode 100644 TAO/tao/GIOP.cpp delete mode 100644 TAO/tao/GIOP.h delete mode 100644 TAO/tao/GIOP.i delete mode 100644 TAO/tao/IIOP_Interpreter.cpp delete mode 100644 TAO/tao/IIOP_Interpreter.h delete mode 100644 TAO/tao/IIOP_ORB.cpp delete mode 100644 TAO/tao/IIOP_ORB.h delete mode 100644 TAO/tao/IIOP_ORB.i delete mode 100644 TAO/tao/IIOP_Object.cpp delete mode 100644 TAO/tao/IIOP_Object.h delete mode 100644 TAO/tao/IIOP_Object.i delete mode 100644 TAO/tao/Makefile delete mode 100644 TAO/tao/Marshal.cpp delete mode 100644 TAO/tao/Marshal.h delete mode 100644 TAO/tao/Marshal.i delete mode 100644 TAO/tao/NVList.cpp delete mode 100644 TAO/tao/NVList.h delete mode 100644 TAO/tao/NVList.i delete mode 100644 TAO/tao/ORB.cpp delete mode 100644 TAO/tao/ORB.h delete mode 100644 TAO/tao/ORB.i delete mode 100644 TAO/tao/ORB_Core.cpp delete mode 100644 TAO/tao/ORB_Core.h delete mode 100644 TAO/tao/ORB_Core.i delete mode 100644 TAO/tao/ORB_Strategies_T.cpp delete mode 100644 TAO/tao/ORB_Strategies_T.h delete mode 100644 TAO/tao/ORB_Strategies_T.i delete mode 100644 TAO/tao/Object.cpp delete mode 100644 TAO/tao/Object.h delete mode 100644 TAO/tao/Object.i delete mode 100644 TAO/tao/Object_Key.IDL delete mode 100644 TAO/tao/Object_KeyC.cpp delete mode 100644 TAO/tao/Object_KeyC.h delete mode 100644 TAO/tao/Object_KeyC.i delete mode 100644 TAO/tao/Object_Table.cpp delete mode 100644 TAO/tao/Object_Table.h delete mode 100644 TAO/tao/Operation_Table.cpp delete mode 100644 TAO/tao/Operation_Table.h delete mode 100644 TAO/tao/POA.IDL delete mode 100644 TAO/tao/POA.cpp delete mode 100644 TAO/tao/POA.h delete mode 100644 TAO/tao/POA.i delete mode 100644 TAO/tao/POAC.cpp delete mode 100644 TAO/tao/POAC.h delete mode 100644 TAO/tao/POAC.i delete mode 100644 TAO/tao/POAS.cpp delete mode 100644 TAO/tao/POAS.h delete mode 100644 TAO/tao/POAS.i delete mode 100644 TAO/tao/POA_CORBA.h delete mode 100644 TAO/tao/Policy.IDL delete mode 100644 TAO/tao/PolicyC.cpp delete mode 100644 TAO/tao/PolicyC.h delete mode 100644 TAO/tao/PolicyC.i delete mode 100644 TAO/tao/PolicyS.cpp delete mode 100644 TAO/tao/Principal.cpp delete mode 100644 TAO/tao/Principal.h delete mode 100644 TAO/tao/Request.cpp delete mode 100644 TAO/tao/Request.h delete mode 100644 TAO/tao/Request.i delete mode 100644 TAO/tao/Sequence.cpp delete mode 100644 TAO/tao/Sequence.h delete mode 100644 TAO/tao/Sequence.i delete mode 100644 TAO/tao/Sequence_T.cpp delete mode 100644 TAO/tao/Sequence_T.h delete mode 100644 TAO/tao/Sequence_T.i delete mode 100644 TAO/tao/Servant_Base.cpp delete mode 100644 TAO/tao/Servant_Base.h delete mode 100644 TAO/tao/Server_Request.cpp delete mode 100644 TAO/tao/Server_Request.h delete mode 100644 TAO/tao/Server_Request.i delete mode 100644 TAO/tao/Server_Strategy_Factory.cpp delete mode 100644 TAO/tao/Server_Strategy_Factory.h delete mode 100644 TAO/tao/Stub.cpp delete mode 100644 TAO/tao/Stub.h delete mode 100644 TAO/tao/Stub.i delete mode 100644 TAO/tao/TAO.cpp delete mode 100644 TAO/tao/TAO.dsp delete mode 100644 TAO/tao/TAO.dsw delete mode 100644 TAO/tao/TAO.h delete mode 100644 TAO/tao/TAO4.mak delete mode 100644 TAO/tao/TAO4.mdp delete mode 100644 TAO/tao/TAO_Internal.cpp delete mode 100644 TAO/tao/TAO_Internal.h delete mode 100644 TAO/tao/TAO_Internal.i delete mode 100644 TAO/tao/Timeprobe.h delete mode 100644 TAO/tao/Typecode.cpp delete mode 100644 TAO/tao/Typecode.h delete mode 100644 TAO/tao/Typecode.i delete mode 100644 TAO/tao/Typecode_Constants.cpp delete mode 100644 TAO/tao/append.cpp delete mode 100644 TAO/tao/compat/initguid.h delete mode 100644 TAO/tao/compat/objbase.h delete mode 100644 TAO/tao/corba.h delete mode 100644 TAO/tao/debug.cpp delete mode 100644 TAO/tao/debug.h delete mode 100644 TAO/tao/decode.cpp delete mode 100644 TAO/tao/deep_copy.cpp delete mode 100644 TAO/tao/deep_free.cpp delete mode 100644 TAO/tao/default.bld delete mode 100644 TAO/tao/default_client.cpp delete mode 100644 TAO/tao/default_client.h delete mode 100644 TAO/tao/default_client.i delete mode 100644 TAO/tao/default_server.cpp delete mode 100644 TAO/tao/default_server.h delete mode 100644 TAO/tao/default_server.i delete mode 100644 TAO/tao/encode.cpp delete mode 100644 TAO/tao/factories.h delete mode 100644 TAO/tao/orbconf.h delete mode 100644 TAO/tao/params.cpp delete mode 100644 TAO/tao/params.h delete mode 100644 TAO/tao/params.i delete mode 100644 TAO/tao/poa_T.cpp delete mode 100644 TAO/tao/poa_T.h delete mode 100644 TAO/tao/poa_macros.h delete mode 100644 TAO/tao/singletons.h delete mode 100644 TAO/tao/skip.cpp delete mode 100644 TAO/tao/t-sizes.cpp delete mode 100644 TAO/tao/tao.bld delete mode 100644 TAO/tao/varout.h delete mode 100644 TAO/taoconfig.mk delete mode 100644 TAO/tests/CDR/CDR.dsw delete mode 100644 TAO/tests/CDR/Makefile delete mode 100644 TAO/tests/CDR/README delete mode 100644 TAO/tests/CDR/basic_types.cpp delete mode 100644 TAO/tests/CDR/basic_types.dsp delete mode 100644 TAO/tests/CDR/growth.cpp delete mode 100644 TAO/tests/CDR/growth.dsp delete mode 100644 TAO/tests/CDR/growth.dsw delete mode 100644 TAO/tests/CDR/tc.cpp delete mode 100644 TAO/tests/CDR/tc.dsp delete mode 100644 TAO/tests/Cubit/COOL/IDL_Cubit/Makefile delete mode 100644 TAO/tests/Cubit/COOL/IDL_Cubit/README delete mode 100644 TAO/tests/Cubit/COOL/IDL_Cubit/client.cpp delete mode 100644 TAO/tests/Cubit/COOL/IDL_Cubit/client.h delete mode 100644 TAO/tests/Cubit/COOL/IDL_Cubit/cubit.idl delete mode 100644 TAO/tests/Cubit/COOL/IDL_Cubit/cubit_i.cpp delete mode 100644 TAO/tests/Cubit/COOL/IDL_Cubit/cubit_i.h delete mode 100644 TAO/tests/Cubit/COOL/IDL_Cubit/server.cpp delete mode 100644 TAO/tests/Cubit/COOL/IDL_Cubit/tmplinst.cpp delete mode 100644 TAO/tests/Cubit/COOL/MT_Cubit/Makefile delete mode 100644 TAO/tests/Cubit/COOL/MT_Cubit/README delete mode 100644 TAO/tests/Cubit/COOL/MT_Cubit/Task_Client.cpp delete mode 100644 TAO/tests/Cubit/COOL/MT_Cubit/Task_Client.h delete mode 100644 TAO/tests/Cubit/COOL/MT_Cubit/Util_Thread.cpp delete mode 100644 TAO/tests/Cubit/COOL/MT_Cubit/Util_Thread.h delete mode 100644 TAO/tests/Cubit/COOL/MT_Cubit/client.cpp delete mode 100644 TAO/tests/Cubit/COOL/MT_Cubit/client.h delete mode 100644 TAO/tests/Cubit/COOL/MT_Cubit/cubit.idl delete mode 100644 TAO/tests/Cubit/COOL/MT_Cubit/cubit_impl.cpp delete mode 100644 TAO/tests/Cubit/COOL/MT_Cubit/cubit_impl.h delete mode 100644 TAO/tests/Cubit/COOL/MT_Cubit/pccTimer.cpp delete mode 100644 TAO/tests/Cubit/COOL/MT_Cubit/pccTimer.h delete mode 100644 TAO/tests/Cubit/COOL/MT_Cubit/server.cpp delete mode 100644 TAO/tests/Cubit/COOL/Makefile delete mode 100644 TAO/tests/Cubit/CORBAplus/IDL_Cubit/Makefile delete mode 100644 TAO/tests/Cubit/CORBAplus/IDL_Cubit/README delete mode 100644 TAO/tests/Cubit/CORBAplus/IDL_Cubit/clnt.cpp delete mode 100644 TAO/tests/Cubit/CORBAplus/IDL_Cubit/clnt.h delete mode 100644 TAO/tests/Cubit/CORBAplus/IDL_Cubit/cubit.idl delete mode 100644 TAO/tests/Cubit/CORBAplus/IDL_Cubit/cubit_i.cpp delete mode 100644 TAO/tests/Cubit/CORBAplus/IDL_Cubit/cubit_i.h delete mode 100644 TAO/tests/Cubit/CORBAplus/IDL_Cubit/svr.cpp delete mode 100644 TAO/tests/Cubit/CORBAplus/MT_Cubit/Makefile delete mode 100644 TAO/tests/Cubit/CORBAplus/MT_Cubit/README delete mode 100644 TAO/tests/Cubit/CORBAplus/MT_Cubit/client/Makefile delete mode 100644 TAO/tests/Cubit/CORBAplus/MT_Cubit/client/Task_Client.cpp delete mode 100644 TAO/tests/Cubit/CORBAplus/MT_Cubit/client/Task_Client.h delete mode 100644 TAO/tests/Cubit/CORBAplus/MT_Cubit/client/client.cpp delete mode 100644 TAO/tests/Cubit/CORBAplus/MT_Cubit/client/cubit.idl delete mode 100644 TAO/tests/Cubit/CORBAplus/MT_Cubit/server/Makefile delete mode 100644 TAO/tests/Cubit/CORBAplus/MT_Cubit/server/cubit.idl delete mode 100644 TAO/tests/Cubit/CORBAplus/MT_Cubit/server/cubit_i.cpp delete mode 100644 TAO/tests/Cubit/CORBAplus/MT_Cubit/server/cubit_i.h delete mode 100644 TAO/tests/Cubit/CORBAplus/MT_Cubit/server/svr.cpp delete mode 100644 TAO/tests/Cubit/Makefile delete mode 100644 TAO/tests/Cubit/Orbix/Makefile delete mode 100644 TAO/tests/Cubit/Orbix/base_server/Makefile delete mode 100644 TAO/tests/Cubit/Orbix/base_server/cubit.idl delete mode 100644 TAO/tests/Cubit/Orbix/base_server/cubit_impl.cpp delete mode 100644 TAO/tests/Cubit/Orbix/base_server/cubit_impl.h delete mode 100644 TAO/tests/Cubit/Orbix/base_server/server.cpp delete mode 100644 TAO/tests/Cubit/Orbix/client/Makefile delete mode 100644 TAO/tests/Cubit/Orbix/client/client.cpp delete mode 100644 TAO/tests/Cubit/Orbix/client/cubit.h delete mode 100644 TAO/tests/Cubit/Orbix/client/cubit.idl delete mode 100644 TAO/tests/Cubit/Orbix/client/cubitC.cpp delete mode 100644 TAO/tests/Cubit/Orbix/factory_client/Makefile delete mode 100644 TAO/tests/Cubit/Orbix/factory_client/client.cpp delete mode 100644 TAO/tests/Cubit/Orbix/factory_client/cubit.h delete mode 100644 TAO/tests/Cubit/Orbix/factory_client/cubit.hh delete mode 100644 TAO/tests/Cubit/Orbix/factory_client/cubit.idl delete mode 100644 TAO/tests/Cubit/Orbix/factory_client/cubitC.cpp delete mode 100644 TAO/tests/Cubit/Orbix/factory_client/cubitS.cpp delete mode 100644 TAO/tests/Cubit/Orbix/orb.mk delete mode 100644 TAO/tests/Cubit/Orbix/tpool/Makefile delete mode 100644 TAO/tests/Cubit/Orbix/tpool/cubit.h delete mode 100644 TAO/tests/Cubit/Orbix/tpool/cubit.idl delete mode 100644 TAO/tests/Cubit/Orbix/tpool/cubitC.cpp delete mode 100644 TAO/tests/Cubit/Orbix/tpool/cubitS.cpp delete mode 100644 TAO/tests/Cubit/Orbix/tpool/cubit_impl.cpp delete mode 100644 TAO/tests/Cubit/Orbix/tpool/cubit_impl.h delete mode 100644 TAO/tests/Cubit/Orbix/tpool/server.cpp delete mode 100644 TAO/tests/Cubit/Orbix/tpool/tpool.cpp delete mode 100644 TAO/tests/Cubit/Orbix/tpool/tpool.h delete mode 100644 TAO/tests/Cubit/Orbix/tpr/Makefile delete mode 100644 TAO/tests/Cubit/Orbix/tpr/cubit.h delete mode 100644 TAO/tests/Cubit/Orbix/tpr/cubit.idl delete mode 100644 TAO/tests/Cubit/Orbix/tpr/cubitC.cpp delete mode 100644 TAO/tests/Cubit/Orbix/tpr/cubitC.h delete mode 100644 TAO/tests/Cubit/Orbix/tpr/cubitS.cpp delete mode 100644 TAO/tests/Cubit/Orbix/tpr/cubitS.h delete mode 100644 TAO/tests/Cubit/Orbix/tpr/cubit_impl.cpp delete mode 100644 TAO/tests/Cubit/Orbix/tpr/cubit_impl.h delete mode 100644 TAO/tests/Cubit/Orbix/tpr/server.cpp delete mode 100644 TAO/tests/Cubit/Orbix/tpr/tpr.cpp delete mode 100644 TAO/tests/Cubit/Orbix/tpr/tpr.h delete mode 100644 TAO/tests/Cubit/Orbix/tps/Makefile delete mode 100644 TAO/tests/Cubit/Orbix/tps/cubit.h delete mode 100644 TAO/tests/Cubit/Orbix/tps/cubit.idl delete mode 100644 TAO/tests/Cubit/Orbix/tps/cubitC.cpp delete mode 100644 TAO/tests/Cubit/Orbix/tps/cubitS.cpp delete mode 100644 TAO/tests/Cubit/Orbix/tps/cubit_impl.cpp delete mode 100644 TAO/tests/Cubit/Orbix/tps/cubit_impl.h delete mode 100644 TAO/tests/Cubit/Orbix/tps/tps.cpp delete mode 100644 TAO/tests/Cubit/Orbix/tps/tps.h delete mode 100644 TAO/tests/Cubit/README delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/DII_Cubit.dsw delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/Makefile delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/README delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/client.dsp delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/clnt.bld delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/clnt.cpp delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/clnt.h delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/cubit.cpp delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/cubit.h delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/cubit.idl delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/cubitC.cpp delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/cubitC.h delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/cubitS.cpp delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/cubitS.h delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/cubit_i.cpp delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/cubit_i.h delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/default.bld delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/method_db.i delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/server.dsp delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/svc.conf delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/svr.bld delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/svr.cpp delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/test.mak delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/test.mdp delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/test1.cpp delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/test1.h delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/test1.idl delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/test1_clnt.cpp delete mode 100644 TAO/tests/Cubit/TAO/DII_Cubit/test1_svr.cpp delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/Cubit.mak delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/Cubit.mdp delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/IDL_Cubit.dsp delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/IDL_Cubit.dsw delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/IDL_Cubit_Test.cpp delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/Makefile delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/README delete mode 100755 TAO/tests/Cubit/TAO/IDL_Cubit/client.bld delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/client.cpp delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/client.dsp delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/client_i.cpp delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/client_i.h delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/collocation_test.dsp delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/cubit.idl delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/cubit_i.h delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/default.bld delete mode 100755 TAO/tests/Cubit/TAO/IDL_Cubit/run_test.pl delete mode 100755 TAO/tests/Cubit/TAO/IDL_Cubit/server.bld delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/server.cpp delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/server.dsp delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/server_i.cpp delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/server_i.h delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/svc.conf delete mode 100644 TAO/tests/Cubit/TAO/IDL_Cubit/tmplinst.cpp delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/MT_Cubit.dsw delete mode 100755 TAO/tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/Makefile delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/README delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/Task_Client.cpp delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/Task_Client.h delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/Util_Thread.cpp delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/Util_Thread.h delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/client.cpp delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/client.dsp delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/client.h delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/clnt.bld delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/cubit.idl delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/cubit_i.cpp delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/cubit_i.h delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/default.bld delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/pccTimer.cpp delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/pccTimer.h delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/server.cpp delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/server.dsp delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/server.h delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/svc.conf delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/svr.bld delete mode 100644 TAO/tests/Cubit/TAO/MT_Cubit/tmplinst.cpp delete mode 100644 TAO/tests/Cubit/TAO/Makefile delete mode 100644 TAO/tests/Cubit/TAO/README delete mode 100644 TAO/tests/Cubit/VisiBroker/base_server/Makefile delete mode 100644 TAO/tests/Cubit/VisiBroker/base_server/Profile_Timer.cpp delete mode 100644 TAO/tests/Cubit/VisiBroker/base_server/Profile_Timer.h delete mode 100644 TAO/tests/Cubit/VisiBroker/base_server/cubit.idl delete mode 100644 TAO/tests/Cubit/VisiBroker/base_server/cubit_impl.cpp delete mode 100644 TAO/tests/Cubit/VisiBroker/base_server/cubit_impl.h delete mode 100644 TAO/tests/Cubit/VisiBroker/base_server/server.cpp delete mode 100644 TAO/tests/Cubit/VisiBroker/base_server/stdmk delete mode 100644 TAO/tests/Cubit/VisiBroker/client/Makefile delete mode 100644 TAO/tests/Cubit/VisiBroker/client/Profile_Timer.cpp delete mode 100644 TAO/tests/Cubit/VisiBroker/client/Profile_Timer.h delete mode 100644 TAO/tests/Cubit/VisiBroker/client/client.cpp delete mode 100644 TAO/tests/Cubit/VisiBroker/client/cubit.idl delete mode 100644 TAO/tests/Cubit/VisiBroker/client/stdmk delete mode 100644 TAO/tests/Cubit/results/Orbix delete mode 100644 TAO/tests/Cubit/results/TAO delete mode 100644 TAO/tests/Cubit/results/Visibroker delete mode 100644 TAO/tests/Cubit/results/orbs.xls delete mode 100644 TAO/tests/Demux_Test/CodeGen/Makefile delete mode 100644 TAO/tests/Demux_Test/CodeGen/README delete mode 100644 TAO/tests/Demux_Test/CodeGen/client.cpp delete mode 100644 TAO/tests/Demux_Test/CodeGen/gen.cpp delete mode 100644 TAO/tests/Demux_Test/CodeGen/impl.cpp delete mode 100644 TAO/tests/Demux_Test/CodeGen/objcreate.cpp delete mode 100644 TAO/tests/Demux_Test/CodeGen/perf.cpp delete mode 100644 TAO/tests/Demux_Test/CodeGen/skel.cpp delete mode 100644 TAO/tests/Demux_Test/CodeGen/stub.cpp delete mode 100644 TAO/tests/Demux_Test/CodeGen/tao.cpp delete mode 100644 TAO/tests/Demux_Test/CodeGen/tao.h delete mode 100755 TAO/tests/Demux_Test/Makefile delete mode 100644 TAO/tests/Demux_Test/README delete mode 100755 TAO/tests/Demux_Test/client.cpp delete mode 100755 TAO/tests/Demux_Test/gen_bin delete mode 100755 TAO/tests/Demux_Test/make_all delete mode 100755 TAO/tests/Demux_Test/run_all_client delete mode 100755 TAO/tests/Demux_Test/run_all_server delete mode 100755 TAO/tests/Demux_Test/run_client delete mode 100755 TAO/tests/Demux_Test/run_server delete mode 100755 TAO/tests/Demux_Test/server.cpp delete mode 100644 TAO/tests/Makefile delete mode 100644 TAO/tests/NestedUpcall/Makefile delete mode 100644 TAO/tests/NestedUpcall/NestedUpCalls_Test.cpp delete mode 100644 TAO/tests/NestedUpcall/NestedUpCalls_i.h delete mode 100644 TAO/tests/NestedUpcall/NestedUpcall.dsw delete mode 100644 TAO/tests/NestedUpcall/README delete mode 100644 TAO/tests/NestedUpcall/Reactor.idl delete mode 100644 TAO/tests/NestedUpcall/client.cpp delete mode 100644 TAO/tests/NestedUpcall/client.dsp delete mode 100644 TAO/tests/NestedUpcall/client.h delete mode 100644 TAO/tests/NestedUpcall/eh_i.cpp delete mode 100644 TAO/tests/NestedUpcall/eh_i.h delete mode 100644 TAO/tests/NestedUpcall/reactor_i.cpp delete mode 100644 TAO/tests/NestedUpcall/reactor_i.h delete mode 100644 TAO/tests/NestedUpcall/server.cpp delete mode 100644 TAO/tests/NestedUpcall/server.dsp delete mode 100644 TAO/tests/NestedUpcall/server.h delete mode 100644 TAO/tests/NestedUpcall/svc.conf delete mode 100644 TAO/tests/OctetSeq/Makefile delete mode 100644 TAO/tests/OctetSeq/OctetSeq.cpp delete mode 100644 TAO/tests/OctetSeq/OctetSeq.dsp delete mode 100644 TAO/tests/OctetSeq/OctetSeq.dsw delete mode 100644 TAO/tests/OctetSeq/svc.conf delete mode 100644 TAO/tests/OctetSeq/test.idl delete mode 100644 TAO/tests/POA/DSI/DSI.DSW delete mode 100644 TAO/tests/POA/DSI/Database.idl delete mode 100644 TAO/tests/POA/DSI/Database_i.cpp delete mode 100644 TAO/tests/POA/DSI/Database_i.h delete mode 100644 TAO/tests/POA/DSI/Makefile delete mode 100644 TAO/tests/POA/DSI/client.cpp delete mode 100644 TAO/tests/POA/DSI/client.dsp delete mode 100644 TAO/tests/POA/DSI/server.cpp delete mode 100644 TAO/tests/POA/DSI/server.dsp delete mode 100644 TAO/tests/POA/Default_Servant/Default_Servant.dsw delete mode 100644 TAO/tests/POA/Default_Servant/File.idl delete mode 100644 TAO/tests/POA/Default_Servant/File_i.cpp delete mode 100644 TAO/tests/POA/Default_Servant/File_i.h delete mode 100644 TAO/tests/POA/Default_Servant/Makefile delete mode 100644 TAO/tests/POA/Default_Servant/README delete mode 100644 TAO/tests/POA/Default_Servant/client.cpp delete mode 100644 TAO/tests/POA/Default_Servant/client.dsp delete mode 100644 TAO/tests/POA/Default_Servant/server.cpp delete mode 100644 TAO/tests/POA/Default_Servant/server.dsp delete mode 100644 TAO/tests/POA/Default_Servant/svc.conf delete mode 100644 TAO/tests/POA/Explicit_Activation/Explicit_Activation.dsw delete mode 100644 TAO/tests/POA/Explicit_Activation/Makefile delete mode 100644 TAO/tests/POA/Explicit_Activation/README delete mode 100644 TAO/tests/POA/Explicit_Activation/server.cpp delete mode 100644 TAO/tests/POA/Explicit_Activation/server.dsp delete mode 100644 TAO/tests/POA/Explicit_Activation/svc.conf delete mode 100644 TAO/tests/POA/FindPOA/FindPOA.cpp delete mode 100644 TAO/tests/POA/FindPOA/FindPOA.dsp delete mode 100644 TAO/tests/POA/FindPOA/FindPOA.dsw delete mode 100644 TAO/tests/POA/FindPOA/Makefile delete mode 100644 TAO/tests/POA/FindPOA/README delete mode 100644 TAO/tests/POA/Forwarding/Foo.idl delete mode 100644 TAO/tests/POA/Forwarding/Forwarding.dsw delete mode 100644 TAO/tests/POA/Forwarding/Makefile delete mode 100644 TAO/tests/POA/Forwarding/MyFooServant.cpp delete mode 100644 TAO/tests/POA/Forwarding/MyFooServant.h delete mode 100644 TAO/tests/POA/Forwarding/README delete mode 100644 TAO/tests/POA/Forwarding/Servant_Locator.cpp delete mode 100644 TAO/tests/POA/Forwarding/Servant_Locator.h delete mode 100644 TAO/tests/POA/Forwarding/client.cpp delete mode 100644 TAO/tests/POA/Forwarding/client.dsp delete mode 100644 TAO/tests/POA/Forwarding/server.cpp delete mode 100644 TAO/tests/POA/Forwarding/server.dsp delete mode 100644 TAO/tests/POA/Forwarding/svc.conf delete mode 100644 TAO/tests/POA/Generic_Servant/Foo.idl delete mode 100644 TAO/tests/POA/Generic_Servant/Generic_Servant.dsw delete mode 100644 TAO/tests/POA/Generic_Servant/Makefile delete mode 100644 TAO/tests/POA/Generic_Servant/MyFooServant.cpp delete mode 100644 TAO/tests/POA/Generic_Servant/MyFooServant.h delete mode 100644 TAO/tests/POA/Generic_Servant/README delete mode 100644 TAO/tests/POA/Generic_Servant/client.cpp delete mode 100644 TAO/tests/POA/Generic_Servant/client.dsp delete mode 100644 TAO/tests/POA/Generic_Servant/generic_servant_export.h delete mode 100644 TAO/tests/POA/Generic_Servant/server.dsp delete mode 100644 TAO/tests/POA/Makefile delete mode 100644 TAO/tests/POA/NewPOA/Makefile delete mode 100644 TAO/tests/POA/NewPOA/NewPOA.cpp delete mode 100644 TAO/tests/POA/NewPOA/NewPOA.dsp delete mode 100644 TAO/tests/POA/NewPOA/NewPOA.dsw delete mode 100644 TAO/tests/POA/NewPOA/README delete mode 100644 TAO/tests/POA/On_Demand_Activation/Makefile delete mode 100644 TAO/tests/POA/On_Demand_Activation/On_Demand_Activation.dsw delete mode 100644 TAO/tests/POA/On_Demand_Activation/README delete mode 100644 TAO/tests/POA/On_Demand_Activation/Servant_Activator.cpp delete mode 100644 TAO/tests/POA/On_Demand_Activation/Servant_Activator.h delete mode 100644 TAO/tests/POA/On_Demand_Activation/Servant_Locator.cpp delete mode 100644 TAO/tests/POA/On_Demand_Activation/Servant_Locator.h delete mode 100644 TAO/tests/POA/On_Demand_Activation/server.cpp delete mode 100644 TAO/tests/POA/On_Demand_Activation/server.dsp delete mode 100644 TAO/tests/POA/On_Demand_Activation/svc.conf delete mode 100644 TAO/tests/POA/README delete mode 100644 TAO/tests/POA/RootPOA/Makefile delete mode 100644 TAO/tests/POA/RootPOA/README delete mode 100644 TAO/tests/POA/RootPOA/RootPOA.cpp delete mode 100644 TAO/tests/POA/RootPOA/RootPOA.dsp delete mode 100644 TAO/tests/POA/RootPOA/RootPOA.dsw delete mode 100644 TAO/tests/POA/TIE/Foo.idl delete mode 100644 TAO/tests/POA/TIE/Foo_i.cpp delete mode 100644 TAO/tests/POA/TIE/Foo_i.h delete mode 100644 TAO/tests/POA/TIE/Makefile delete mode 100644 TAO/tests/POA/TIE/TIE.dsw delete mode 100644 TAO/tests/POA/TIE/client.cpp delete mode 100644 TAO/tests/POA/TIE/client.dsp delete mode 100644 TAO/tests/POA/TIE/server.cpp delete mode 100644 TAO/tests/POA/TIE/server.dsp delete mode 100644 TAO/tests/Param_Test/Makefile delete mode 100644 TAO/tests/Param_Test/Param_Test.dsw delete mode 100644 TAO/tests/Param_Test/README delete mode 100644 TAO/tests/Param_Test/client.cpp delete mode 100644 TAO/tests/Param_Test/client.dsp delete mode 100644 TAO/tests/Param_Test/client.h delete mode 100644 TAO/tests/Param_Test/driver.cpp delete mode 100644 TAO/tests/Param_Test/driver.h delete mode 100644 TAO/tests/Param_Test/helper.cpp delete mode 100644 TAO/tests/Param_Test/helper.h delete mode 100644 TAO/tests/Param_Test/options.cpp delete mode 100644 TAO/tests/Param_Test/options.h delete mode 100644 TAO/tests/Param_Test/param_test.idl delete mode 100644 TAO/tests/Param_Test/param_test_i.cpp delete mode 100644 TAO/tests/Param_Test/param_test_i.h delete mode 100644 TAO/tests/Param_Test/results.cpp delete mode 100644 TAO/tests/Param_Test/results.h delete mode 100755 TAO/tests/Param_Test/run_test.pl delete mode 100755 TAO/tests/Param_Test/run_test.sh delete mode 100644 TAO/tests/Param_Test/server.cpp delete mode 100644 TAO/tests/Param_Test/server.dsp delete mode 100644 TAO/tests/Param_Test/svc.conf delete mode 100644 TAO/tests/Param_Test/tests.cpp delete mode 100644 TAO/tests/Param_Test/tests.h delete mode 100644 TAO/tests/Param_Test/tmplinst.cpp delete mode 100644 TAO/tests/Quoter/Documentation delete mode 100755 TAO/tests/Quoter/FactoryFinder.exe delete mode 100644 TAO/tests/Quoter/Factory_Finder.cpp delete mode 100644 TAO/tests/Quoter/Factory_Finder.dsp delete mode 100644 TAO/tests/Quoter/Factory_Finder.h delete mode 100644 TAO/tests/Quoter/Factory_Finder_Impl.cpp delete mode 100644 TAO/tests/Quoter/Factory_Finder_Impl.h delete mode 100644 TAO/tests/Quoter/Generic_Factory.cpp delete mode 100644 TAO/tests/Quoter/Generic_Factory.dsp delete mode 100644 TAO/tests/Quoter/Generic_Factory.h delete mode 100644 TAO/tests/Quoter/Generic_Factory_Impl.cpp delete mode 100644 TAO/tests/Quoter/Generic_Factory_Impl.h delete mode 100644 TAO/tests/Quoter/Makefile delete mode 100644 TAO/tests/Quoter/Quoter.dsw delete mode 100644 TAO/tests/Quoter/Quoter.idl delete mode 100644 TAO/tests/Quoter/Quoter_Impl.cpp delete mode 100644 TAO/tests/Quoter/Quoter_Impl.h delete mode 100644 TAO/tests/Quoter/README delete mode 100644 TAO/tests/Quoter/client.conf delete mode 100644 TAO/tests/Quoter/client.cpp delete mode 100644 TAO/tests/Quoter/client.dsp delete mode 100644 TAO/tests/Quoter/client.h delete mode 100644 TAO/tests/Quoter/ns.btm delete mode 100644 TAO/tests/Quoter/run_test.btm delete mode 100755 TAO/tests/Quoter/run_test.pl delete mode 100755 TAO/tests/Quoter/run_test.sh delete mode 100644 TAO/tests/Quoter/server.conf delete mode 100644 TAO/tests/Quoter/server.cpp delete mode 100644 TAO/tests/Quoter/server.dsp delete mode 100644 TAO/tests/Quoter/server.h delete mode 100644 TAO/tests/Quoter/sv.btm delete mode 100644 TAO/tests/Quoter/svc.conf delete mode 100644 TAO/tests/README delete mode 100644 TAO/tests/Thruput/COOL/Makefile delete mode 100644 TAO/tests/Thruput/COOL/README delete mode 100644 TAO/tests/Thruput/COOL/client.cpp delete mode 100644 TAO/tests/Thruput/COOL/server.cpp delete mode 100644 TAO/tests/Thruput/COOL/ttcp.idl delete mode 100644 TAO/tests/Thruput/COOL/ttcp_decl.h delete mode 100644 TAO/tests/Thruput/COOL/ttcp_i.cpp delete mode 100644 TAO/tests/Thruput/COOL/ttcp_i.h delete mode 100644 TAO/tests/Thruput/COOL/utils.cpp delete mode 100644 TAO/tests/Thruput/CORBAplus/Makefile delete mode 100644 TAO/tests/Thruput/CORBAplus/README delete mode 100644 TAO/tests/Thruput/CORBAplus/client.cpp delete mode 100644 TAO/tests/Thruput/CORBAplus/extract delete mode 100644 TAO/tests/Thruput/CORBAplus/run delete mode 100644 TAO/tests/Thruput/CORBAplus/run_client delete mode 100644 TAO/tests/Thruput/CORBAplus/run_server delete mode 100644 TAO/tests/Thruput/CORBAplus/run_test delete mode 100644 TAO/tests/Thruput/CORBAplus/run_tests delete mode 100644 TAO/tests/Thruput/CORBAplus/server.cpp delete mode 100644 TAO/tests/Thruput/CORBAplus/ttcp.idl delete mode 100644 TAO/tests/Thruput/CORBAplus/ttcp_decl.h delete mode 100644 TAO/tests/Thruput/CORBAplus/ttcp_i.cpp delete mode 100644 TAO/tests/Thruput/CORBAplus/ttcp_i.h delete mode 100644 TAO/tests/Thruput/CORBAplus/utils.cpp delete mode 100644 TAO/tests/Thruput/Makefile delete mode 100644 TAO/tests/Thruput/Orbix/Client.cpp delete mode 100644 TAO/tests/Thruput/Orbix/Makefile delete mode 100644 TAO/tests/Thruput/Orbix/README delete mode 100644 TAO/tests/Thruput/Orbix/Srv_Main.cpp delete mode 100644 TAO/tests/Thruput/Orbix/extract delete mode 100644 TAO/tests/Thruput/Orbix/loop64 delete mode 100644 TAO/tests/Thruput/Orbix/orbixsol2s4.mk delete mode 100644 TAO/tests/Thruput/Orbix/run delete mode 100644 TAO/tests/Thruput/Orbix/run_client delete mode 100644 TAO/tests/Thruput/Orbix/run_server delete mode 100644 TAO/tests/Thruput/Orbix/run_test delete mode 100644 TAO/tests/Thruput/Orbix/run_tests delete mode 100644 TAO/tests/Thruput/Orbix/ttcp.idl delete mode 100644 TAO/tests/Thruput/Orbix/ttcp_decl.h delete mode 100644 TAO/tests/Thruput/Orbix/ttcp_i.cpp delete mode 100644 TAO/tests/Thruput/Orbix/ttcp_i.h delete mode 100644 TAO/tests/Thruput/Orbix/utils.cpp delete mode 100644 TAO/tests/Thruput/TAO/Makefile delete mode 100644 TAO/tests/Thruput/TAO/README delete mode 100644 TAO/tests/Thruput/TAO/client.cpp delete mode 100644 TAO/tests/Thruput/TAO/run delete mode 100644 TAO/tests/Thruput/TAO/run_client delete mode 100644 TAO/tests/Thruput/TAO/run_server delete mode 100644 TAO/tests/Thruput/TAO/run_test delete mode 100644 TAO/tests/Thruput/TAO/server.cpp delete mode 100644 TAO/tests/Thruput/TAO/svc.conf delete mode 100644 TAO/tests/Thruput/TAO/tmplinst.cpp delete mode 100644 TAO/tests/Thruput/TAO/ttcp.idl delete mode 100644 TAO/tests/Thruput/TAO/ttcp_decl.h delete mode 100644 TAO/tests/Thruput/TAO/ttcp_i.cpp delete mode 100644 TAO/tests/Thruput/TAO/ttcp_i.h delete mode 100644 TAO/tests/Thruput/TAO/utils.cpp delete mode 100644 ace/Makefile delete mode 100644 apps/Gateway/Gateway/Channel.cpp delete mode 100644 apps/Gateway/Gateway/Channel.h delete mode 100644 apps/Gateway/Gateway/Channel_Connector.cpp delete mode 100644 apps/Gateway/Gateway/Channel_Connector.h delete mode 100644 apps/Gateway/Gateway/Concurrency_Strategies.h delete mode 100644 apps/Gateway/Gateway/Consumer_Entry.cpp delete mode 100644 apps/Gateway/Gateway/Consumer_Entry.h delete mode 100644 apps/Gateway/Gateway/Consumer_Map.cpp delete mode 100644 apps/Gateway/Gateway/Consumer_Map.h delete mode 100644 apps/Gateway/Gateway/Dispatch_Set.h delete mode 100644 apps/Gateway/Gateway/IO_Handler.cpp delete mode 100644 apps/Gateway/Gateway/IO_Handler.h delete mode 100644 apps/Gateway/Gateway/IO_Handler_Connector.cpp delete mode 100644 apps/Gateway/Gateway/IO_Handler_Connector.h delete mode 100644 apps/Gateway/Gateway/Peer_Message.h delete mode 100644 apps/Gateway/Gateway/Routing_Entry.cpp delete mode 100644 apps/Gateway/Gateway/Routing_Entry.h delete mode 100644 apps/Gateway/Gateway/Routing_Table.cpp delete mode 100644 apps/Gateway/Gateway/Routing_Table.h delete mode 100644 apps/Gateway/Gateway/Thr_Channel.cpp delete mode 100644 apps/Gateway/Gateway/Thr_Channel.h delete mode 100644 apps/Gateway/Gateway/Thr_IO_Handler.cpp delete mode 100644 apps/Gateway/Gateway/Thr_IO_Handler.h delete mode 100644 apps/Gateway/Gateway/Thr_Proxy_Handler.cpp delete mode 100644 apps/Gateway/Gateway/Thr_Proxy_Handler.h delete mode 100644 apps/Gateway/Gateway/cc_config delete mode 100644 apps/Gateway/Gateway/rt_config delete mode 100644 apps/Gateway/Peer/Event.h delete mode 100644 apps/Gateway/Peer/Gateway_Handler.cpp delete mode 100644 apps/Gateway/Peer/Gateway_Handler.h delete mode 100644 apps/Gateway/Peer/Peer_Message.h delete mode 100644 docs/ACE-inheritance.pdf.gz delete mode 100644 docs/ACE-inheritance.ps.gz delete mode 100644 docs/CE-status.txt delete mode 100644 examples/Reactor/Misc/signal_tester.cpp delete mode 100644 examples/Reactor/Misc/test_signals.cpp delete mode 100644 examples/System_V_IPC/SV_Semaphores/Semaphore_Client.cpp delete mode 100644 examples/System_V_IPC/SV_Semaphores/Semaphore_Server.cpp delete mode 100644 examples/System_V_IPC/SV_Semaphores/Semaphore_Test.h delete mode 100644 examples/System_V_IPC/SV_Semaphores/Semaphores.cpp delete mode 100644 examples/Threads/test_auto_event.cpp delete mode 100644 examples/Threads/test_barrier1.cpp delete mode 100644 examples/Threads/test_barrier2.cpp delete mode 100644 examples/Threads/test_cancel.cpp delete mode 100644 examples/Threads/test_future1.cpp delete mode 100644 examples/Threads/test_future2.cpp delete mode 100644 examples/Threads/test_manual_event.cpp delete mode 100644 examples/Threads/test_process_mutex.cpp delete mode 100644 examples/Threads/test_process_semaphore.cpp delete mode 100644 examples/Threads/test_reader_writer.cpp delete mode 100644 examples/Threads/test_recursive_mutex.cpp delete mode 100644 examples/Threads/test_task.cpp delete mode 100644 examples/Threads/test_task_four.cpp delete mode 100644 examples/Threads/test_task_one.cpp delete mode 100644 examples/Threads/test_task_three.cpp delete mode 100644 examples/Threads/test_task_two.cpp delete mode 100644 examples/Threads/test_thread_manager.cpp delete mode 100644 examples/Threads/test_thread_pool.cpp delete mode 100644 examples/Threads/test_thread_specific.cpp delete mode 100644 examples/Threads/test_token.cpp delete mode 100644 examples/Threads/test_tss.cpp delete mode 100644 examples/Threads/test_tss1.cpp delete mode 100644 examples/Threads/test_tss2.cpp delete mode 100644 java/ChangeLog delete mode 100644 java/ImageProcessing/ImageProcessing.dsp delete mode 100644 java/ImageProcessing/ImageProcessing.dsw delete mode 100644 java/ImageProcessing/filters/Assert.java delete mode 100644 java/ImageProcessing/filters/BleachFilter.java delete mode 100644 java/ImageProcessing/filters/BlurFilter.java delete mode 100644 java/ImageProcessing/filters/DarkenFilter.java delete mode 100644 java/ImageProcessing/filters/DeSpeckleFilter.java delete mode 100644 java/ImageProcessing/filters/DissolveFilter.java delete mode 100644 java/ImageProcessing/filters/EdgeDetectFilter.java delete mode 100644 java/ImageProcessing/filters/EmbossFilter.java delete mode 100644 java/ImageProcessing/filters/Makefile delete mode 100644 java/ImageProcessing/filters/MedFilter.java delete mode 100644 java/ImageProcessing/filters/OilPaintFilter.java delete mode 100644 java/ImageProcessing/filters/PixelizeFilter.java delete mode 100644 java/ImageProcessing/filters/RandomizeFilter.java delete mode 100644 java/ImageProcessing/filters/RotateFilter.java delete mode 100644 java/ImageProcessing/filters/SharpenFilter.java delete mode 100644 java/ImageProcessing/filters/SpatialFilter.java delete mode 100644 java/ImageProcessing/filters/SpreadFilter.java delete mode 100644 java/ImageProcessing/filters/Timer.java delete mode 100644 java/ImageProcessing/framework/BaseButton.java delete mode 100644 java/ImageProcessing/framework/BenchmarkApplet.java delete mode 100644 java/ImageProcessing/framework/DialogManager.java delete mode 100644 java/ImageProcessing/framework/DialogType.java delete mode 100644 java/ImageProcessing/framework/FileBrowser.java delete mode 100644 java/ImageProcessing/framework/FilePanel.java delete mode 100644 java/ImageProcessing/framework/FilterTest.java delete mode 100644 java/ImageProcessing/framework/GIFHandler.java delete mode 100644 java/ImageProcessing/framework/GifEncoder.java delete mode 100644 java/ImageProcessing/framework/Hierarchy.java delete mode 100644 java/ImageProcessing/framework/HierarchyAdapter.java delete mode 100644 java/ImageProcessing/framework/Icon.java delete mode 100644 java/ImageProcessing/framework/ImageApp.java delete mode 100644 java/ImageProcessing/framework/ImageByteCounter.java delete mode 100644 java/ImageProcessing/framework/ImageCanvas.java delete mode 100644 java/ImageProcessing/framework/ImageEncoder.java delete mode 100644 java/ImageProcessing/framework/ImageProcessor.java delete mode 100644 java/ImageProcessing/framework/ImageSender.java delete mode 100644 java/ImageProcessing/framework/IntHashtable.java delete mode 100644 java/ImageProcessing/framework/ListFiles.java delete mode 100755 java/ImageProcessing/framework/LoadURLFrame.java delete mode 100644 java/ImageProcessing/framework/Makefile delete mode 100644 java/ImageProcessing/framework/MedJava.html delete mode 100644 java/ImageProcessing/framework/Options.java delete mode 100755 java/ImageProcessing/framework/SaveURLFrame.java delete mode 100644 java/ImageProcessing/framework/Separator.java delete mode 100644 java/ImageProcessing/framework/ServerHandler.java delete mode 100644 java/ImageProcessing/framework/ServerTest.java delete mode 100644 java/ImageProcessing/framework/StatusDisplay.java delete mode 100644 java/ImageProcessing/framework/StatusIndicator.java delete mode 100644 java/ImageProcessing/framework/TestHandler.java delete mode 100644 java/ImageProcessing/framework/Tester.java delete mode 100644 java/ImageProcessing/framework/doc01.gif delete mode 100644 java/ImageProcessing/framework/file03.gif delete mode 100644 java/ImageProcessing/framework/filter.conf delete mode 100644 java/ImageProcessing/framework/help.conf delete mode 100644 java/ImageProcessing/framework/test.html delete mode 100644 java/ImageProcessing/framework/testFilter.conf delete mode 100644 java/VERSION delete mode 100644 java/apps/NexusII/README delete mode 100644 java/apps/NexusII/classes/ClientHandler.class delete mode 100644 java/apps/NexusII/classes/FrameHandler.class delete mode 100644 java/apps/NexusII/classes/ImageCanvas.class delete mode 100644 java/apps/NexusII/classes/NexusClientApplet.class delete mode 100644 java/apps/NexusII/classes/NexusIIserver.class delete mode 100644 java/apps/NexusII/classes/Room.class delete mode 100644 java/apps/NexusII/classes/RoomFactory.class delete mode 100644 java/apps/NexusII/classes/RoomFrame.class delete mode 100644 java/apps/NexusII/classes/RoomThread.class delete mode 100644 java/apps/NexusII/classes/awtCommand/CApplet.class delete mode 100644 java/apps/NexusII/classes/awtCommand/CApplet.java delete mode 100644 java/apps/NexusII/classes/awtCommand/CButton.class delete mode 100644 java/apps/NexusII/classes/awtCommand/CButton.java delete mode 100644 java/apps/NexusII/classes/awtCommand/CCanvas.class delete mode 100644 java/apps/NexusII/classes/awtCommand/CCanvas.java delete mode 100644 java/apps/NexusII/classes/awtCommand/CFrame.class delete mode 100644 java/apps/NexusII/classes/awtCommand/CFrame.java delete mode 100644 java/apps/NexusII/classes/awtCommand/CList.class delete mode 100644 java/apps/NexusII/classes/awtCommand/CList.java delete mode 100644 java/apps/NexusII/classes/awtCommand/CPanel.class delete mode 100644 java/apps/NexusII/classes/awtCommand/CPanel.java delete mode 100644 java/apps/NexusII/classes/awtCommand/CTextArea.class delete mode 100644 java/apps/NexusII/classes/awtCommand/CTextArea.java delete mode 100644 java/apps/NexusII/classes/awtCommand/CTextField.class delete mode 100644 java/apps/NexusII/classes/awtCommand/CTextField.java delete mode 100644 java/apps/NexusII/classes/awtCommand/Command.class delete mode 100644 java/apps/NexusII/classes/awtCommand/Command.java delete mode 100644 java/apps/NexusII/classes/commandHandler.class delete mode 100644 java/apps/NexusII/classes/commandParser.class delete mode 100644 java/apps/NexusII/classes/connectionHandler.class delete mode 100644 java/apps/NexusII/classes/joinHandler.class delete mode 100644 java/apps/NexusII/classes/roomHandler.class delete mode 100644 java/apps/NexusII/classes/textHandler.class delete mode 100644 java/apps/NexusII/src/Consumer.java delete mode 100644 java/apps/NexusII/src/MT_Bounded_Queue.java delete mode 100644 java/apps/NexusII/src/MT_Bounded_Queue_Group.java delete mode 100644 java/apps/NexusII/src/NexusClientApplet.java delete mode 100644 java/apps/NexusII/src/NexusIIserver.java delete mode 100644 java/apps/NexusII/src/Producer.java delete mode 100644 java/apps/NexusII/src/Room.java delete mode 100644 java/apps/NexusII/src/RoomFrame.java delete mode 100644 java/apps/NexusII/src/RoomSpace.java delete mode 100644 java/apps/NexusII/src/Timed_Wait.java delete mode 100644 java/apps/NexusII/src/Timer.java delete mode 100644 java/apps/NexusII/src/commandHandler.java delete mode 100644 java/apps/NexusII/src/commandParser.java delete mode 100644 java/apps/NexusII/src/connectionHandler.java delete mode 100644 java/apps/NexusII/src/consts.java delete mode 100644 java/apps/NexusII/src/dataPacket.java delete mode 100644 java/apps/NexusII/src/joinHandler.java delete mode 100644 java/apps/NexusII/src/makefile delete mode 100644 java/apps/NexusII/src/nexusDemuxThread.java delete mode 100644 java/apps/NexusII/src/roomHandler.java delete mode 100644 java/apps/NexusII/src/socketReaderThread.java delete mode 100644 java/apps/NexusII/src/socketWriterThread.java delete mode 100644 java/apps/NexusII/src/url_to_url.java delete mode 100755 java/apps/NexusII/start delete mode 100644 java/apps/NexusII/start.html delete mode 100644 java/classes/README.TXT delete mode 100644 java/doc/images/GridBagEx.gif delete mode 100644 java/doc/images/OpenBookIcon.gif delete mode 100644 java/doc/images/blue-ball-small.gif delete mode 100644 java/doc/images/blue-ball.gif delete mode 100644 java/doc/images/class-index.gif delete mode 100644 java/doc/images/constructor-index.gif delete mode 100644 java/doc/images/constructors.gif delete mode 100644 java/doc/images/cyan-ball-small.gif delete mode 100644 java/doc/images/cyan-ball.gif delete mode 100644 java/doc/images/error-index.gif delete mode 100644 java/doc/images/exception-index.gif delete mode 100644 java/doc/images/green-ball-small.gif delete mode 100644 java/doc/images/green-ball.gif delete mode 100644 java/doc/images/interface-index.gif delete mode 100644 java/doc/images/magenta-ball-small.gif delete mode 100644 java/doc/images/magenta-ball.gif delete mode 100644 java/doc/images/method-index.gif delete mode 100644 java/doc/images/methods.gif delete mode 100644 java/doc/images/package-index.gif delete mode 100644 java/doc/images/red-ball-small.gif delete mode 100644 java/doc/images/red-ball.gif delete mode 100644 java/doc/images/variable-index.gif delete mode 100644 java/doc/images/variables.gif delete mode 100644 java/doc/images/yellow-ball-small.gif delete mode 100644 java/doc/images/yellow-ball.gif delete mode 100644 java/examples/Logger/README delete mode 100644 java/examples/Logger/simple-server/LogRecord.java delete mode 100644 java/examples/Logger/simple-server/LoggerConstants.java delete mode 100644 java/examples/Logger/simple-server/LoggingAcceptor.java delete mode 100644 java/examples/Logger/simple-server/LoggingClient.java delete mode 100644 java/examples/Logger/simple-server/LoggingHandler.java delete mode 100644 java/examples/Logger/simple-server/Makefile delete mode 100644 java/examples/Logger/simple-server/README delete mode 100644 java/examples/Logger/simple-server/SimpleLogger.java delete mode 100644 java/gjt/Assert.java delete mode 100644 java/gjt/Bargauge.java delete mode 100644 java/gjt/Border.java delete mode 100644 java/gjt/Box.java delete mode 100644 java/gjt/BulletinLayout.java delete mode 100644 java/gjt/ButtonPanel.java delete mode 100644 java/gjt/CardPanel.java delete mode 100644 java/gjt/ChoiceCardPanel.java delete mode 100644 java/gjt/ColumnLayout.java delete mode 100644 java/gjt/ComponentScroller.java delete mode 100644 java/gjt/DialogClient.java delete mode 100644 java/gjt/DrawingPanel.java delete mode 100644 java/gjt/DrawnRectangle.java delete mode 100644 java/gjt/EtchedBorder.java delete mode 100644 java/gjt/EtchedRectangle.java delete mode 100644 java/gjt/Etching.java delete mode 100644 java/gjt/ExclusiveImageButtonPanel.java delete mode 100644 java/gjt/FontDialog.java delete mode 100644 java/gjt/GJT.DSP delete mode 100644 java/gjt/GJT.DSW delete mode 100644 java/gjt/GJTDialog.java delete mode 100644 java/gjt/IconCardPanel.java delete mode 100644 java/gjt/ImageButton.java delete mode 100644 java/gjt/ImageButtonController.java delete mode 100644 java/gjt/ImageButtonEvent.java delete mode 100644 java/gjt/ImageButtonPanel.java delete mode 100644 java/gjt/ImageButtonPanelController.java delete mode 100644 java/gjt/ImageCanvas.java delete mode 100644 java/gjt/ImageScroller.java delete mode 100644 java/gjt/LabelCanvas.java delete mode 100644 java/gjt/Makefile delete mode 100644 java/gjt/MessageDialog.java delete mode 100644 java/gjt/MouseController.java delete mode 100644 java/gjt/Orientation.java delete mode 100644 java/gjt/ProgressDialog.java delete mode 100644 java/gjt/QuestionDialog.java delete mode 100644 java/gjt/RadioImageButtonPanelController.java delete mode 100644 java/gjt/RowLayout.java delete mode 100644 java/gjt/Scroller.java delete mode 100644 java/gjt/ScrollerLayout.java delete mode 100644 java/gjt/SelectionEvent.java delete mode 100644 java/gjt/Separator.java delete mode 100644 java/gjt/SpringyImageButtonController.java delete mode 100644 java/gjt/StateButton.java delete mode 100644 java/gjt/StateButtonController.java delete mode 100644 java/gjt/StickyImageButtonController.java delete mode 100644 java/gjt/Stopwatch.java delete mode 100644 java/gjt/StopwatchClient.java delete mode 100644 java/gjt/ThreeDBorder.java delete mode 100644 java/gjt/ThreeDBorderStyle.java delete mode 100644 java/gjt/ThreeDRectangle.java delete mode 100644 java/gjt/Toolbar.java delete mode 100644 java/gjt/Util.java delete mode 100644 java/gjt/YesNoDialog.java delete mode 100644 java/gjt/animation/CollisionArena.java delete mode 100644 java/gjt/animation/CollisionDetector.java delete mode 100644 java/gjt/animation/EdgeCollisionDetector.java delete mode 100644 java/gjt/animation/Playfield.java delete mode 100644 java/gjt/animation/Sequence.java delete mode 100644 java/gjt/animation/Sprite.java delete mode 100644 java/gjt/animation/SpriteCollisionDetector.java delete mode 100644 java/gjt/image/BleachImageFilter.java delete mode 100644 java/gjt/image/DissolveFilter.java delete mode 100644 java/gjt/image/ImageDissolver.java delete mode 100644 java/gjt/rubberband/Rubberband.java delete mode 100644 java/gjt/rubberband/RubberbandEllipse.java delete mode 100644 java/gjt/rubberband/RubberbandLine.java delete mode 100644 java/gjt/rubberband/RubberbandPanel.java delete mode 100644 java/gjt/rubberband/RubberbandRectangle.java delete mode 100644 java/gjt/test/AttributesPanel.java delete mode 100644 java/gjt/test/BargaugeTest.java delete mode 100644 java/gjt/test/BleachImageFilterTest.java delete mode 100644 java/gjt/test/BorderTest.java delete mode 100644 java/gjt/test/BoxTest.java delete mode 100644 java/gjt/test/BumpAnimationTest.java delete mode 100644 java/gjt/test/ChoiceCardPanelTest.java delete mode 100644 java/gjt/test/ColumnLayoutTest.java delete mode 100644 java/gjt/test/ComponentScrollerTest.java delete mode 100644 java/gjt/test/ConnectionsPanel.java delete mode 100644 java/gjt/test/DialogTest.java delete mode 100644 java/gjt/test/DrawnRectangleTest.java delete mode 100644 java/gjt/test/FontDialogTest.java delete mode 100644 java/gjt/test/IconCardPanelTest.java delete mode 100644 java/gjt/test/ImageButtonTest.java delete mode 100644 java/gjt/test/ImageDissolverTest.java delete mode 100644 java/gjt/test/ImageScrollerTest.java delete mode 100644 java/gjt/test/LabelCanvasTest.java delete mode 100644 java/gjt/test/MessageDialogTest.java delete mode 100644 java/gjt/test/OccupationOracle.java delete mode 100644 java/gjt/test/RowLayoutTest.java delete mode 100644 java/gjt/test/RubberbandTest.java delete mode 100644 java/gjt/test/SeparatorTest.java delete mode 100644 java/gjt/test/SimpleAnimationTest.java delete mode 100644 java/gjt/test/SimpleBargaugeTest.java delete mode 100644 java/gjt/test/StateButtonTest.java delete mode 100644 java/gjt/test/TenPixelBorder.java delete mode 100644 java/gjt/test/TitledPanel.java delete mode 100644 java/gjt/test/ToolbarTest.java delete mode 100644 java/gjt/test/TwoDrinkersAnimationTest.java delete mode 100644 java/gjt/test/UnitTest.java delete mode 100644 java/netsvcs/Logger/DefaultLMR.java delete mode 100644 java/netsvcs/Logger/LogMessageReceiver.java delete mode 100644 java/netsvcs/Logger/LogRecord.java delete mode 100644 java/netsvcs/Logger/Makefile delete mode 100644 java/netsvcs/Logger/ServerLoggingAcceptor.java delete mode 100644 java/netsvcs/Logger/ServerLoggingHandler.java delete mode 100644 java/netsvcs/Naming/Makefile delete mode 100644 java/netsvcs/Naming/NameAcceptor.java delete mode 100644 java/netsvcs/Naming/NameHandler.java delete mode 100644 java/netsvcs/Naming/NameProxy.java delete mode 100644 java/netsvcs/Naming/NameReply.java delete mode 100644 java/netsvcs/Naming/NameRequest.java delete mode 100755 java/netsvcs/Time/Clerk.java delete mode 100755 java/netsvcs/Time/Makefile delete mode 100755 java/netsvcs/Time/Server.java delete mode 100755 java/netsvcs/Time/TSClerkHandler.java delete mode 100755 java/netsvcs/Time/TSClerkProcessor.java delete mode 100755 java/netsvcs/Time/TSRequestAcceptor.java delete mode 100755 java/netsvcs/Time/TSRequestHandler.java delete mode 100755 java/netsvcs/Time/TSServerAcceptor.java delete mode 100755 java/netsvcs/Time/TSServerHandler.java delete mode 100644 java/src/ACE.java delete mode 100644 java/src/AcceptStrategy.java delete mode 100644 java/src/Acceptor.java delete mode 100644 java/src/ActivateStrategy.java delete mode 100644 java/src/AddServiceObjectNode.java delete mode 100644 java/src/Blob.java delete mode 100644 java/src/BlobHandler.java delete mode 100644 java/src/BlobReader.java delete mode 100644 java/src/BlobWriter.java delete mode 100644 java/src/ClassNameGenerator.java delete mode 100644 java/src/ClassReader.java delete mode 100644 java/src/Condition.java delete mode 100644 java/src/Connector.java delete mode 100644 java/src/CreationStrategy.java delete mode 100644 java/src/EventHandler.java delete mode 100644 java/src/GetOpt.java delete mode 100644 java/src/HTTPHelper.java delete mode 100644 java/src/INETAddr.java delete mode 100644 java/src/IOCntlCmds.java delete mode 100644 java/src/IOCntlMsg.java delete mode 100644 java/src/JACE.DSP delete mode 100644 java/src/JACE.DSW delete mode 100644 java/src/Makefile delete mode 100644 java/src/MessageBlock.java delete mode 100644 java/src/MessageQueue.java delete mode 100644 java/src/MessageType.java delete mode 100644 java/src/Module.java delete mode 100644 java/src/Mutex.java delete mode 100644 java/src/OS.java delete mode 100644 java/src/ParseNode.java delete mode 100644 java/src/ProfileTimer.java delete mode 100644 java/src/RWMutex.java delete mode 100644 java/src/RemoveNode.java delete mode 100644 java/src/ResumeNode.java delete mode 100644 java/src/SOCKAcceptor.java delete mode 100644 java/src/SOCKConnector.java delete mode 100644 java/src/SOCKStream.java delete mode 100644 java/src/Semaphore.java delete mode 100644 java/src/ServiceConfig.java delete mode 100644 java/src/ServiceLoader.java delete mode 100644 java/src/ServiceObject.java delete mode 100644 java/src/ServiceObjectRecord.java delete mode 100644 java/src/ServiceRecord.java delete mode 100644 java/src/ServiceRepository.java delete mode 100644 java/src/StrategyAcceptor.java delete mode 100644 java/src/Stream.java delete mode 100644 java/src/StreamHead.java delete mode 100644 java/src/StreamTail.java delete mode 100644 java/src/SuspendNode.java delete mode 100644 java/src/SvcHandler.java delete mode 100644 java/src/Task.java delete mode 100644 java/src/TaskFlags.java delete mode 100644 java/src/ThreadManager.java delete mode 100644 java/src/ThruTask.java delete mode 100644 java/src/TimeValue.java delete mode 100644 java/src/TimedWait.java delete mode 100644 java/src/TimeoutException.java delete mode 100644 java/src/TimerQueue.java delete mode 100644 java/src/Token.java delete mode 100644 java/tests/ASX/BufferStreamTest.dsp delete mode 100644 java/tests/ASX/BufferStreamTest.java delete mode 100644 java/tests/ASX/Makefile delete mode 100644 java/tests/ASX/MessageQueueTest.dsp delete mode 100644 java/tests/ASX/MessageQueueTest.java delete mode 100644 java/tests/ASX/PriorityBufferTest.dsp delete mode 100644 java/tests/ASX/PriorityBufferTest.java delete mode 100644 java/tests/ASX/TaskTest.dsp delete mode 100644 java/tests/ASX/TaskTest.java delete mode 100644 java/tests/ASX/ThreadPoolTest.dsp delete mode 100644 java/tests/ASX/ThreadPoolTest.java delete mode 100644 java/tests/Concurrency/Condition/Condition.dsp delete mode 100644 java/tests/Concurrency/Condition/Consumer.java delete mode 100644 java/tests/Concurrency/Condition/JoinableThreadGroup.java delete mode 100644 java/tests/Concurrency/Condition/Makefile delete mode 100644 java/tests/Concurrency/Condition/Producer.java delete mode 100644 java/tests/Concurrency/Condition/QueueTest.java delete mode 100644 java/tests/Concurrency/Condition/SimpleMessageQueue.java delete mode 100644 java/tests/Concurrency/Makefile delete mode 100644 java/tests/Concurrency/MutexTest.dsp delete mode 100644 java/tests/Concurrency/MutexTest.java delete mode 100644 java/tests/Concurrency/RWMutexTest.dsp delete mode 100644 java/tests/Concurrency/RWMutexTest.java delete mode 100644 java/tests/Concurrency/SemaphoreTest.dsp delete mode 100644 java/tests/Concurrency/SemaphoreTest.java delete mode 100644 java/tests/Concurrency/TokenTest.dsp delete mode 100644 java/tests/Concurrency/TokenTest.java delete mode 100644 java/tests/Connection/AcceptorTest.dsp delete mode 100644 java/tests/Connection/AcceptorTest.java delete mode 100644 java/tests/Connection/ClientHandler.dsp delete mode 100644 java/tests/Connection/ClientHandler.java delete mode 100644 java/tests/Connection/ConnectorTest.dsp delete mode 100644 java/tests/Connection/ConnectorTest.java delete mode 100644 java/tests/Connection/HTTPHelperTest.java delete mode 100644 java/tests/Connection/Makefile delete mode 100644 java/tests/Connection/ServerHandler.dsp delete mode 100644 java/tests/Connection/ServerHandler.java delete mode 100644 java/tests/Misc/Makefile delete mode 100644 java/tests/Misc/ParseArgsTest.dsp delete mode 100644 java/tests/Misc/ParseArgsTest.java delete mode 100644 java/tests/Reactor/Makefile delete mode 100644 java/tests/Reactor/TimeValueTest.dsp delete mode 100644 java/tests/Reactor/TimeValueTest.java delete mode 100644 java/tests/Reactor/TimerQueueTest.dsp delete mode 100644 java/tests/Reactor/TimerQueueTest.java delete mode 100644 java/tests/SOCK_SAP/Makefile delete mode 100644 java/tests/SOCK_SAP/SOCKAcceptorTest.dsp delete mode 100644 java/tests/SOCK_SAP/SOCKAcceptorTest.java delete mode 100644 java/tests/SOCK_SAP/SOCKConnectorTest.dsp delete mode 100644 java/tests/SOCK_SAP/SOCKConnectorTest.java delete mode 100644 java/tests/ServiceConfigurator/Makefile delete mode 100644 java/tests/ServiceConfigurator/ServiceConfigurator.dsp delete mode 100644 java/tests/ServiceConfigurator/TestService.java delete mode 100644 java/tests/ServiceConfigurator/reloadTest.java delete mode 100644 java/tests/ServiceConfigurator/suspendTest.java delete mode 100644 java/tests/ServiceConfigurator/suspendTest1.conf delete mode 100644 java/tests/ServiceConfigurator/suspendTest2.conf delete mode 100644 java/tests/ServiceConfigurator/suspendTest3.conf delete mode 100644 java/tests/ServiceConfigurator/svc.conf delete mode 100644 java/tests/Tests.dsw delete mode 100644 java/tests/netsvcs/Logger/LoggerTest.java delete mode 100644 java/tests/netsvcs/Logger/Makefile delete mode 100644 java/tests/netsvcs/Naming/ClientTest.java delete mode 100644 java/tests/netsvcs/Naming/Makefile delete mode 100644 netsvcs/clients/Naming/Dump_Restore/nametest.cpp delete mode 100644 netsvcs/clients/Naming/Dump_Restore/nametest.h delete mode 100644 netsvcs/lib/Client_Logging_Handler.i delete mode 100644 netsvcs/lib/Server_Logging_Handler.i delete mode 100644 netsvcs/servers/cli.conf delete mode 100644 netsvcs/servers/ntsvc.conf delete mode 100644 os-patches/linux-patches.html delete mode 100644 os-patches/lynxos-patches.html delete mode 100644 psosim/Makefile delete mode 100644 psosim/drv_conf.c delete mode 100644 rpc++/.dependencies delete mode 100644 rpc++/COPYING delete mode 100644 rpc++/Makefile delete mode 100644 rpc++/Proj.make delete mode 100644 rpc++/README delete mode 100644 rpc++/README.ORIG delete mode 100644 rpc++/StdHdrs/Makefile delete mode 100644 rpc++/StdHdrs/README delete mode 100644 rpc++/StdHdrs/rpc/auth.h delete mode 100644 rpc++/StdHdrs/rpc/c_types.h delete mode 100644 rpc++/StdHdrs/rpc/clnt.h delete mode 100644 rpc++/StdHdrs/rpc/pmap_clnt.h delete mode 100644 rpc++/StdHdrs/rpc/svc.h delete mode 100644 rpc++/StdHdrs/rpc/xdr.h delete mode 100644 rpc++/callback.cc delete mode 100644 rpc++/example/Makefile delete mode 100644 rpc++/example/calcsvc.cc delete mode 100644 rpc++/example/calcsvc.h delete mode 100644 rpc++/example/client.cc delete mode 100644 rpc++/example/server.cc delete mode 100644 rpc++/gcc-2.2.fix delete mode 100644 rpc++/request.cc delete mode 100644 rpc++/rpc++.cp delete mode 100644 rpc++/rpc++.fn delete mode 100644 rpc++/rpc++.ky delete mode 100644 rpc++/rpc++.pg delete mode 100644 rpc++/rpc++.texi delete mode 100644 rpc++/rpc++.toc delete mode 100644 rpc++/rpc++.tp delete mode 100644 rpc++/rpc++.vr delete mode 100644 rpc++/rpc++/callback.h delete mode 100644 rpc++/rpc++/request.h delete mode 100644 rpc++/rpc++/service.h delete mode 100644 rpc++/rpc++/stub.h delete mode 100644 rpc++/rpc++/xdr++.h delete mode 100644 rpc++/service.cc delete mode 100644 rpc++/stub.cc delete mode 100644 rpc++/version.h delete mode 100644 rpc++/xdr++.cc delete mode 100644 tests/CPP_Test.cpp delete mode 100644 tests/Shared_Memory_SV_Test.cpp delete mode 100755 tests/run_tests.ksh diff --git a/ACE.DSW b/ACE.DSW deleted file mode 100644 index bfdfb40ff40..00000000000 --- a/ACE.DSW +++ /dev/null @@ -1,1217 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 5.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "Atomic_Op_Test"=.\tests\Atomic_Op_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Barrier_Test"=.\tests\Barrier_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Buffer_Stream_Test"=.\tests\Buffer_Stream_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "CPP_inclient"=.\examples\IPC_SAP\SOCK_SAP\CPP_inclient.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "CPP_inserver"=.\examples\IPC_SAP\SOCK_SAP\CPP_inserver.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "C_inclient"=.\examples\IPC_SAP\SOCK_SAP\SOCK_SAP.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "C_inserver"=.\examples\IPC_SAP\SOCK_SAP\C_inserver.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Conn_Test"=.\tests\Conn_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Enum_Interfaces_Test"=.\tests\Enum_Interfaces_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Event_Server"=.\examples\ASX\Event_Server\Event_Server\Event_Server.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Exceptions"=.\examples\Reactor\ReactorEx\Exceptions.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Future_Test"=.\tests\Future_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Handle_Set_Test"=.\tests\Handle_Set_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Hash_Map_Manager_Test"=.\tests\Hash_Map_Manager_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "IOStream_Test"=.\tests\IOStream_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Log_Msg"=.\examples\Log_Msg\Log_Msg.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "MM_Shared_Memory_Test"=.\tests\MM_Shared_Memory_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Map_Manager_Test"=.\tests\Map_Manager_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Mem_Map_Test"=.\tests\Mem_Map_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Message_Block_Test"=.\tests\Message_Block_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Message_Queue_Notifications_Test"=.\tests\Message_Queue_Notifications_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Message_Queue_Test"=.\tests\Message_Queue_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Multithreading"=.\examples\Reactor\ReactorEx\Multithreading.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Mutex_Test"=.\tests\Mutex_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Naming_Test"=.\tests\Naming_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Network_Events"=.\examples\Reactor\ReactorEx\Network_Events.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Pipe_Test"=.\tests\Pipe_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Priority_Buffer_Test"=.\tests\Priority_Buffer_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Priority_Task_Test"=.\tests\Priority_Task_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Process"=.\examples\OS\Process\Process.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Process_Mutex_Test"=.\tests\Process_Mutex_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Process_Strategy_Test"=.\tests\Process_Strategy_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Reactor_Exceptions_Test"=.\tests\Reactor_Exceptions_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Reactor_Notify_Test"=.\tests\Reactor_Notify_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Reactor_Timer_Test"=.\tests\Reactor_Timer_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Reactors_Test"=.\tests\Reactors_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Reader_Writer_Test"=.\tests\Reader_Writer_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Recursive_Mutex_Test"=.\tests\Recursive_Mutex_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Registration"=.\examples\Reactor\ReactorEx\Registration.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Removals"=.\examples\Reactor\ReactorEx\Removals.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "SOCK_Test"=.\tests\SOCK_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "SPIPE_Test"=.\tests\SPIPE_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "SString_Test"=.\tests\SString_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "SV_Shared_Memory_Test"=.\tests\SV_Shared_Memory_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Semaphore_Test"=.\tests\Semaphore_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Service_Config_Test"=.\tests\Service_Config_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Sigset_Ops_Test"=.\tests\Sigset_Ops_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Simple_Message_Block_Test"=.\tests\Simple_Message_Block_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "TSS_Test"=.\tests\TSS_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Talker"=.\examples\Reactor\ReactorEx\Talker.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Task_Test"=.\tests\Task_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Thread_Manager_Test"=.\tests\Thread_Manager_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Thread_Pool_Test"=.\tests\Thread_Pool_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Time_Service_Test"=.\tests\Time_Service_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Time_Value_Test"=.\tests\Time_Value_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Timeouts"=.\examples\Reactor\ReactorEx\Timeouts.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Timer_Queue_Test"=.\tests\Timer_Queue_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Tokens_Test"=.\tests\Tokens_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Transceiver"=.\examples\ASX\Event_Server\Transceiver\transceiver.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "UPIPE_Event_Server"=.\examples\ASX\UPIPE_Event_Server\UPIPE_Event_Server.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "UPIPE_SAP_Test"=.\tests\UPIPE_SAP_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "acceptor"=.\examples\Connection\blocking\acceptor.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "auto_event"=.\examples\Threads\test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "barrier1"=.\examples\Threads\barrier1.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "barrier2"=.\examples\Threads\barrier2.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "cancel"=.\examples\Threads\cancel.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "client"=.\examples\Connection\non_blocking\non_blocking.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "connector"=.\examples\Connection\blocking\SPIPE.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "future1"=.\examples\Threads\future1.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "future2"=.\examples\Threads\future2.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "iterator"=.\examples\Registry\Registry.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "manual_event"=.\examples\Threads\manual_event.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "multiple_contexts"=.\examples\Naming\multiple_contexts.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "netsvcs"=.\netsvcs\lib\netsvcs.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "non_existent"=.\examples\Naming\non_existent.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "notification"=.\examples\Reactor\Misc\notification.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "ntalker"=.\examples\Reactor\Ntalker\ntalker.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "process_mutex"=.\examples\Threads\process_mutex.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "process_semaphore"=.\examples\Threads\process_semaphore.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "reader_writer"=.\examples\Threads\reader_writer.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "recursive_mutex"=.\examples\Threads\recursive_mutex.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "server"=.\examples\Connection\non_blocking\server.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "server_loggerd"=".\examples\Logger\Acceptor-server\server_loggerd.dsp" - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "servers"=.\netsvcs\servers\servers.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "task_four"=.\examples\Threads\task_four.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "task_one"=.\examples\Threads\task_one.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "task_three"=.\examples\Threads\task_three.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "task_two"=.\examples\Threads\task_two.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "test_multiple_loops"=.\examples\Reactor\Proactor\test_multiple_loops.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "test_proactor"=.\examples\Reactor\Proactor\test_proactor.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "test_timeout"=.\examples\Reactor\Proactor\test_timeout.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "thread_manager"=.\examples\Threads\thread_manager.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "thread_pool"=.\examples\Threads\thread_pool.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "thread_specific"=.\examples\Threads\thread_specific.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "timer_queue"=.\examples\Reactor\Misc\Misc.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "token"=.\examples\Threads\token.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "tss1"=.\examples\Threads\tss1.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "tss2"=.\examples\Threads\tss2.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "update"=.\examples\Registry\update.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "writers"=.\examples\Naming\Naming.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/COPYING b/COPYING deleted file mode 100644 index cc021e42434..00000000000 --- a/COPYING +++ /dev/null @@ -1,35 +0,0 @@ -COPYRIGHT INFORMATION FOR ACE - -ACE is copyrighted by Douglas C. Schmidt and his research group at -Washington University, Copyright (c) 1993-1997, all rights reserved. -You are free to do anything you like with the ACE source code (and -object code produced from the source). For instance, you can include -it in commercial software, as long as you include this copyright -statement along with code built using ACE. - -You are under no obligation to freely redistribute any of your source -code that is built using ACE. Please note, however, that you may not -do anything to the ACE code that will prevent it from being -distributed freely (such as copyrighting it yourself or claiming -authorship of the ACE code). - -ACE is provided as is with no warranties of any kind including the -warranties of design, merchantibility and fitness for a particular -purpose, noninfringement, or arising from a course of dealing, usage -or trade practice. - -ACE is provided with no support and without any obligation on the part -of Washington University, its employees, or students to assist in its -use, correction, modification or enhancement. - -Washington University, its employees, and students shall have no -liability with respect to the infringement of copyrights, trade -secrets or any patents by ACE or any part thereof. - -In no event will Washington University, its employees, or students be -liable for any lost revenue or profits or other special, indirect and -consequential damages. - - Douglas C. Schmidt - schmidt@cs.wustl.edu - diff --git a/ChangeLog-97b b/ChangeLog-97b deleted file mode 100644 index cb3e925925f..00000000000 --- a/ChangeLog-97b +++ /dev/null @@ -1,9182 +0,0 @@ -Tue Nov 25 16:18:49 1997 David L. Levine - - * ACE version 4.4, released Tue Nov 25 16:18:49 1997. - -Tue Nov 25 16:03:09 1997 David L. Levine - - * Makefile: fixed Version.h generation to work properly when - $$beta is undefined. - -Mon Nov 24 10:33:34 1997 Douglas C. Schmidt - - * ACE version 4.3.56, released Mon Nov 24 10:33:34 1997. - -Sun Nov 23 13:32:02 1997 David L. Levine - - * ace/IOStream.h: removed DIGITAL_UNIX from #include decision, - so now it just depends on DEC_CXX and its version. Thanks to - Dani Flexer for this fix. - - * netsvcs/lib/Server_Logging_Handler.cpp: updated template - instantiations to match recent change to Server_Logging_Handler_T.h. - -Sat Nov 22 19:16:35 1997 - - * tests/Process_Strategy_Test.cpp: - - main: Removed signal handling code. It is unnecessary since we - do not use kill() anymore. - - Process_Strategy: This subclass of ACE_Process_Strategy - overwrites the process creation method to include connection - counting. - - connection_completed: Made sure that the Reactor is woken up - after all the connections have completed. - - * ace/Priority_Reactor.cpp (init_bucket): Removed extra code. - - * ace/Acceptor.cpp (activate_svc_handler): open svc_handler only - if result is 0. Also removed extra tracing code. - - * ace/Handle_Set.i (reset): Purify is reporting a UMR - (uninitialized memory copy) when copying a Handle_Set. This - comes from the mask fd_set not being memset to 0 by FD_ZERO. - This is therefore a harmless error. - - * tests/Priority_Reactor_Test.cpp (main): The ordering of - auto_ptrs is very subtle.... "auto_ptr reactor" - should come before "auto_ptr impl", i.e., - the implementation should be destroyed *before* the forwarding - class. This is apparent when the implementation class is - removing registered event handlers that hold a pointer to the - forwarding class. - -Sat Nov 22 16:04:07 1997 Carlos O'Ryan - - * ace/Message_Queue.cpp: - Fixed some formating problems in the ACE_Message_Queue::dump - method, thanks to Arturo Montes for - finding this one. - -Sat Nov 22 14:38:22 1997 Steve Huston - - * ace/config-aix-4.2.x.h: Added ACE_TLI_TCP_DEVICE "/dev/xti/tcp". - This fixes Riverace problem ID P32; AIX now joins HP-UX in - supporting XTI/TLI, but not everything (problem P27). - - * ace/UPIPE_Connector.h: - * ace/TLI_Connector.h: Added meta-type information PEER_ADDR and - PEER_STREAM. Fixes Riverace problem ID P37. - - * apps/JAWS/server/HTTP_Server.cpp: Added 'const' to "char *prog". - Fixes Riverace problem P36. - - * examples/Connection/misc/test_upipe.cpp: - * examples/Connection/non_blocking/CPP-connector.cpp: - * examples/Threads/process_mutex.cpp: - * examples/Threads/process_semaphore.cpp: - Added 'const' to "char *" - can't initialize a char * with - a const string. Fixes Riverace problem ID P38, P40. - - * examples/Threads/thread_specific.cpp, tss1.cpp: Moved the Errno - class out to a new file, thread_specific.h. AIX xlC needs to have - the class in a .h file for template generation. Fixes Riverace - problem P42. - * examples/Threads/Makefile: Make sure that, on AIX, the tempinc - directory is cleared before building each new program. - - * performance-tests/Synch-Benchmarks/Makefile: Changed SHLIB to use - $(SOEXT) rather than .so. Fixes Riverace problem ID P41. - - * tests/Thread_Pool_Test.cpp: Moved 'this->getq(mb)' out of an - ACE_ASSERT. Thanks to Arturo Montes - for finding this. - -Sat Nov 22 05:44:10 1997 Nanbor Wang - - * tests/Process_Strategy_Test.cpp (main): Shuffled things around - in fork() block. This is fun. - - * ace/Strategies_T.cpp (activate_svc_handler): Added an - ACE_UNUSED_ARG macro to muffle g++. - - * tests/Process_Strategy_Test.cpp (handle_close): Added a return - type specifier. Without it, g++ laments. - - * ace/Acceptor.cpp (activate_svc_handler): Should be if (open (...) == - -1) then error, not if (open (...) != -1) then error. - - * ace/ACE.cpp (set_handle_limit): Removed a duplicated ACE_TRACE - macro. - -Sat Nov 22 00:26:11 1997 Nanbor Wang - - * ace/Thread_Manager.cpp (close): Activated automatic wait on - close functionality. I think I get it right this time. - -Fri Nov 21 19:59:37 1997 Carlos O'Ryan - - * ace/IPC_SAP.cpp: - Added a couple of ACE_NOTREACHED protections. Thanks to Brian - Mendel for reporting this. - -Fri Nov 21 17:12:48 1997 - - * ace/Thread_Manager.cpp (close): Deactivated automatic wait on - close for now. It doesn't seem to work on Solaris. - - * ace/Thread_Manager.{h,cpp} (wait): Added codes to remove detached - threads. This function can be activated selectively. I added - this so we can ignore detached threads when closing down the - default thread manager. - - (close): Activated the code to wait (join) all threads managed - by the thread manager. It will ask wait function to remove all - detached thread first (and so they won't be counted into threads - we are waiting for.) - -Fri Nov 21 13:22:25 1997 Douglas C. Schmidt - - * ACE version 4.3.55, released Fri Nov 21 13:22:25 1997. - -Fri Nov 21 12:18:28 1997 Douglas C. Schmidt - - * ace/Acceptor.cpp,Strategy_T.cpp: Removed the use of gotos. See - Dijkstra '67 for motivation... - - * tests/Process_Strategy_Test.cpp (open): Make sure that we set - the Reactor of the Svc_Handler to 0 if we're running the - threading test. - - * tests/Reactor_Notify_Test.cpp: Added back THR_BOUND to - make things work on Solaris. - -Fri Nov 21 02:23:47 1997 - - * tests/Process_Strategy_Test.cpp: - - - The event loop execution was based on a fragile timeout - mechanism. This was changed to a more robust mechanism that - counts the connections. - - - The unlinking of the file was moved from the server to the - client. This is necessary since there maybe multiple server - processes that cannot really coordinate when the file should - be removed. - - * ace/Strategies_T.cpp (ACE_Concurrency_Strategy): - ACE_Concurrency_Strategy and all three of the subclasses - (ACE_Reactive_Strategy, ACE_Process_Strategy, and - ACE_Thread_Strategy) were messed up. Only ACE_Reactive_Strategy - was (trying) to set the correct blocking mode of the socket. - Therefore, moved the socket mode setting code to the base class, - ACE_Concurrency_Strategy, so that all the classes can share it. - - This did create one problem though. If the implementation of - the reactor uses event associations (i.e., WFMO_Reactor), we - cannot try to set the socket mode since the registration of the - svc_handler caused an event association to be created for the - socket and by default (thanks Microslush) the socket is set to - non-blocking mode. If the user is excepting to have a socket in - blocking mode, he is in for a surprise. Maybe we should return - a failure if the user is expecting a socket in blocking mode. - This is probably too harsh for now. - - * tests/Future_Test.cpp (open): Added THR_DETACHED since we don't - wait for this thread. - - * tests/Reactor_Notify_Test.cpp (open): Changed THR_BOUND to - THR_DETACHED since we don't wait for this thread. - - * tests/IOStream_Test.cpp (server): Make sure to close the socket - in ACE_SOCK_Acceptor and ACE_SOCK_IOStream. - - * ace/WFMO_Reactor.cpp (open): When I changed open() last, I - ignored the order of the registeration of notify_handler_ and - wakeup_all_threads_handler_. Unfortunately, the order of the - two registrations is very important since the optimization for - owner thread takes advantage of this ordering. Therefore, - revert the order of registertion to notify_handler_ followed by - wakeup_all_threads_handler_. - - * tests/version_tests/run_all_tests.bat: Added new bat file to - make the running of all the different configurations easier. - - * tests/version_tests/version_tests.{mak,mdp}: Added a mammoth - testing scheme that is used to test all 8 configurations of the - tests under Win32. These 8 configurations are: - - DLL Debug - DLL Release - DLL Unicode Debug - DLL Unicode Release - static Debug - static Release - static Unicode Debug - static Unicode Release - - run_tests.bat from the test directory can then be used to run - these various configurations. run_tests.bat was also extended - to allow the user to purify the tests. Simply execute - run_tests.bat with the purify command line option. - -Thu Nov 20 17:43:15 1997 - - * ace/Thread_Manager.cpp (kill_thr): Changed to prevent thread - manager from "discard" a thread when a certain operation is not - supported by the operation system. Removed the mechanism that - preserves errno during "thread removal." We no longer remove - thread right after an error occured. - -Thu Nov 20 17:53:35 1997 Douglas C. Schmidt - - * examples/Shared_Malloc/test_multiple_mallocs.cpp (main): Make - sure make sure that the semaphores created by the program are - released as well as the storage files deleted. Thanks to Tom - Arbuckle for reporting - this. - - * ace: Added a new version of config-osf1-3.2.h. Thanks to Dani - Flexer for updating this. - -Thu Nov 20 18:22:24 1997 Steve Huston - - * ace/README - ace/TLI.h - ace/TLI_Acceptor.h - ace/TLI_Connector.h - Changed from using hardcoded "/dev/tcp" as the XTI device name to - a new config-related define, ACE_TLI_TCP_DEVICE. If the config - doesn't set one, it defaults to "/dev/tcp". Thanks to Steve Coy - for zeroing in on this problem in HP-UX. - - ace/config-hpux-10.x.h: ACE_TLI_TCP_DEVICE is "/dev/inet_cots". - Note that XTI won't work 100% well on HP still - this is Riverace - problem ID P27. - - * netsvcs/lib/Server_Logging_Handler_T.h: Hardcoded to always use - ACE_SOCK_Stream (and friends) rather than ACE_TLI_Stream and friends. - XTI doesn't work real well on some platforms (particularly HP-UX - and AIX). When they're fixed, this can be undone (Riverace problem - ID P28). - - * examples/IPC_SAP/TLI_SAP/CPP-client.cpp: Changed 'char *host' to - 'const char *host' so it can be initialized from a const char string. - -Thu Nov 20 14:19:57 1997 Carlos O'Ryan - - * tests/Priority_Reactor_Test.h: - * tests/Priority_Reactor_Test.cpp: - The test has a limited execution time now, and only reports a - warning if runs out of time. This may be due to some failed - connections, but it is hard to avoid that. On the other hand - the default time should be large enough, in our machines the - test only takes 14 seconds, so 60 seconds should be enough. - NOTE: this problem reveals a problem *only* in the test itself - not in ACE_Priority_Reactor. - -Thu Nov 20 11:29:51 1997 David L. Levine - - * ace/Timer_{Heap,List}_T.{h,cpp}: added - ACE_Timer_{Heap,List}::get_first () accessors. Thanks to - Stephen Henry for this suggestion. - -Thu Nov 20 11:27:44 1997 Douglas C. Schmidt - - * ACE version 4.3.54, released Thu Nov 20 11:27:44 1997. - -Thu Nov 20 10:45:08 1997 - - * tests/MT_SOCK_Test.cpp: Uncommented socket close call. - - * ace/WFMO_Reactor.cpp (open): Open the notification handler - *after* the timer queue has been created. - - * ace/ACE.cpp (get_ip_interfaces): Changed rep() to fast_rep() to - prevent memory leak. - - * ace/Reactor.cpp (ACE_Reactor): Fixed error of not creating any - Reactors on UNIX. - -Thu Nov 20 08:36:54 1997 Nanbor Wang - - * ace/Thread_Manager.{h,cpp}: Added a dummy argument to internal - thread functions. Without them, MSVC wrongly optimizes codes - and the stack were all clobbered when entering these functions. - -Wed Nov 19 23:24:03 1997 - - * ace/Reactor.cpp: Rearragned macros so we use Select_Reactor as - default if we don't have Winsock2. Irfan did it, not me. - -Wed Nov 19 22:11:20 1997 Douglas C. Schmidt - - * ACE version 4.3.53, released Wed Nov 19 22:11:20 1997. - -Wed Nov 19 15:55:52 1997 Sumedh Mungee - - * config-netbsd.h: NetBSD 1.3alpha has a better MSYNC. Commented out - ACE_HAS_BROKEN_NETBSD_MSYNC - -Wed Nov 19 14:26:36 1997 Nanbor Wang - - * stdcpp.h, OS.h: Changed ACE_CONFIG_H to ACE_USER_CONFIG_H. It - conflicts with the macro in various configuration files. - -Wed Nov 19 15:55:45 1997 Douglas C. Schmidt - - * ace/config-sunos5.*.h: Replaced all uses of ACE_HAS_UNICODE with - ACE_HAS_XPG4_MULTIBYTE_CHAR. At this point, I think only NT has - the UNICODE macro now. Thanks to Steve Huston for validating - this. - - * STL/bstring.h: Added a special-case for BorlandC++. However, I - think this can be generalized for all compilers. Thanks to - Valik Solorzano Barboza for reporting this. - - * ace/OS: Fixed strpbrk() to handle the const char * and char * - cases of ANSI C++. Thanks to Valik Solorzano Barboza - for reporting this. - - * ace/OS.h: Added a special case for _MSC_VER since BC++ doesn't - have wchar.h! Thanks to Valik Solorzano Barboza - for reporting this. - -Wed Nov 19 13:43:33 1997 Darrell Brunsch - - * Merged the purify testing into run_tests. Just use - - "run_tests purify ..." - - to purify instead of running the tests. If you thought this - batch file looked bad before.... - -Wed Nov 19 12:17:50 1997 Nanbor Wang - - * ace/{OS,stdcpp}.h (ACE_CONFIG_H): Added this macro to protect - config.h from getting included multiple times. - - * ace/stdcpp.h: Reverted include OS.h back to config.h. - -Wed Nov 19 09:20:05 1997 Douglas C. Schmidt - - * ACE version 4.3.52, released Wed Nov 19 09:20:05 1997. - -Wed Nov 19 07:54:44 1997 Douglas C. Schmidt - - * ace/ACE.cpp (crc32): Reverted the COMPUTE macro back to its - original value. For some reason, the version given by Valik was - failing. - - * ace/SV_Semaphore_Complex.cpp (open): Make sure initialize the - sem_number_ data member, though this isn't actually used for - anything. - - * ace/ACE.cpp: Added a #ifdef for __unix since this is the only - case where we'll actually have the ifreq autoptr. Thanks to - Valik Solorzano Barboza for reporting this. - - * ace/Log_Record.cpp (print): Added a work around for a really - lame bug with BORLANDC. Thanks to Valik Solorzano Barboza - for reporting this. - -Wed Nov 19 04:22:38 1997 Douglas C. Schmidt - - * ACE version 4.3.51, released Wed Nov 19 04:22:38 1997. - -Wed Nov 19 04:02:09 1997 Douglas C. Schmidt - - * include/makeinclude/rules.local.GNU (show_uninit): It seems - there was a missing '@' at the beginning of the line. Thanks to - Hans Rohnert for reporting this. - - * tests/Process_Strategy_Test.cpp (handle_input): Fixed Irfan's - code, which keeps breaking ACE ;-). - -Wed Nov 19 01:55:06 1997 - - * ace/WFMO_Reactor.cpp (resume_handler_i, suspend_handler_i, - unbind_i): Since things don't happen immediately in the - WFMO_Reactor world, we must make sure that this request is not a - duplicate. If so we must ignore it. - - * ace/Asynch_Acceptor.cpp (open): Fixed addr type mismatch problem. - - * tests/UPIPE_SAP_Test.cpp (main): Make sure to close the socket - in ACE_UPIPE_Acceptor. - - * tests/SPIPE_Test.cpp (server): Make sure to close the socket in - ACE_SPIPE_Acceptor. - - * tests/SOCK_Test.cpp (spawn): Make sure to close the socket in - ACE_SOCK_Acceptor. - - * tests/Reactor_Notify_Test.cpp (Supplier_Task): Make sure to - close the pipe down. - - * tests/Process_Strategy_Test.cpp (handle_input): Fixed ACE_DEBUG - statement to pass the correct number of arguments. - - * tests/MT_SOCK_Test.cpp (spawn): Make sure to close the socket in - ACE_SOCK_Acceptor. - - * tests/Reactor_Exceptions_Test.cpp (main): Make sure to close the - socket in ACE_SOCK_Dgram. - - * tests/run_purify_tests.bat: Added "mkdir purify_results". - - * tests/run_tests.bat, run_purify_tests.bat: Changed explicit name - of bat file (e.g., run_tests, run_purify_tests) to %0. This - will allow the bat file to be used from other directories. - - * ace/config-win32-common.h: Removed extraneous define of - ACE_HAS_TEMPLATE_INSTANTIATION. - -Wed Nov 19 00:37:22 1997 - - * ace/stdcpp.h: Changed to use "ace/OS.h" instead of using - "ace/config.h" directly to avoid redefinition of user defined - macros. - - * ace/Log_Msg.cpp (close): Disable Win32 to delete - ACE_Log_Msg::instance (). On Win32, this should be done by - ACE_TSS_Cleanup. - - * ace/OS.cpp (cleanup_tss): Enabled Win32 to call - ACE_Log_Msg::close. This is required to properly release - resourses held by ACE_Log_Msg_Manager. - -Tue Nov 18 19:28:36 1997 Douglas C. Schmidt - - * ace/Select_Reactor.cpp (unbind), - ace/WFMO_Reactor.cpp (handle_signal): Fixed a large number of - bugs with non-portable "scope of the for loop counter"... - Thanks to Valik Solorzano Barboza for - reporting this. - - * ace/Thread_Manager: Added == and != operators for - ACE_Thread_Descriptor to fix things with BORLANDC's template - mechanism. Thanks to Valik Solorzano Barboza - for reporting this. - - * ace/Select_Reactor: Added == and != operators for - ACE_Event_Tuple to fix things with BORLANDC's template - mechanism. Thanks to Valik Solorzano Barboza - for reporting this. - - * ace/OS.i (tempnam): Fixed a typo -- WIN32 should be ACE_WIN32. - Thanks to Valik Solorzano Barboza for - reporting this. - - * ace/OS.h: Reordered the ACE_SEH_* macros so they work correctly - with BORLANDC. Thanks to Valik Solorzano Barboza - for reporting this. - - * ace/OS: Added operator== and operator!= for ACE_Cleanup_Info so - that it will work correctly with BORLANDC's template mechanism. - Thanks to Valik Solorzano Barboza for - reporting this. - - * ace/config-win32-common.h: Added - ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION for BORLANDC. Thanks to - Valik Solorzano Barboza for reporting this. - - * ace/Filecache.cpp: Fixed a bug with BORLANDC. Thanks to Valik - Solorzano Barboza for reporting this. - - * ace/ACE.cpp (crc32): Added some parens to the COMPUTE macro to - make it easier to grok. Thanks to Valik Solorzano Barboza - for reporting this. - -Tue Nov 18 16:27:32 1997 - - * ace/Log_Msg.cpp (log): Added a %D option to Log_Msg for - "month/day/year hour:minute:second:microsecond". Thanks to John - Mulhern <9107@MN3.LAWSON.lawson.com> for suggesting this. - - * ace/config-win32-common.h: If __ACE_INLINE__ is defined to be 0, - we will undefine it. - -Tue Nov 18 15:59:37 1997 Steve Huston - - * ace/IOStream.cpp: In underflow() and overflow(), use base() to - check for buffer in use in every case - not just without - ACE_HAS_STANDARD_CPP_LIBRARY==1. Thanks to James CE Johnson - (jcej@lads.com) for this fix. - - * tests/MT_SOCK_Test.cpp: Allow the test to run even if not all of - the proceses can be forked. - -Tue Nov 18 15:27:37 1997 Nanbor Wang - - * ace/Timer_Queue_Adapters.cpp: Reordered include files. Thanks - to Torbjorn Lindgren for noticing the problem. - -Tue Nov 18 11:40:18 1997 Steve Huston - - * ace/IOStream.(cpp h): Added: &&(ACE_HAS_STANDARD_CPP_LIBRARY != 0) - to the #if defined (ACE_HAS_STANDARD_CPP_LIBRARY) lines to only use - the new iostreams things if that's been selected by the config file. - In ACE_Streambuf::overflow(), changed: - if (!eback()) to if (!pbase()) - -Tue Nov 18 08:23:53 1997 Douglas C. Schmidt - - * tests/Thread_Pool_Test.cpp (open): Moved the activate() method - from the Thread_Pool constructor to the open() hook since the - Thread_Pool class invoked ACE_Task::activate, indirectly invokes - Thread_Pool::svc. There existed a miniscule probability this - code would have crashed since on extremely broken C++ compilers - the virtual member function Thread_Pool::svc may not correctly - initialized in Thread_Pool constructor (i.e., it might point to - ACE_Task_Base::svc() at this point). The chance of this - happening is incredibly remote, but it's still a good ideal to - put the call in the open() method so we can check the return - value in the application. Thanks to Arturo for pointing this - out. - -Tue Nov 18 05:40:53 1997 David L. Levine - - * ace/OS.cpp (inet_aton): on Chorus only, use the native - ::inet_aton (). Thanks to Wei for pointing this out. - - * ace/OS.cpp (gethostby{addr,name}): on VxWorks only, don't htonl - the input address because it already should be in network byte - order. Store the output address in network byte order. Thanks - to Wei for noticing this error. - - * include/makeinclude/wrapper_macros.GNU: add -DACE_PURIFY to - CFLAGS if purify make flag is set, and -DACE_QUANTIFY if - quantify is set. Thanks to Chris Cleeland for this suggestion. - - * ace/Memory_Pool.cpp (ACE_Shared_Memory_Pool): reordered - initializers to match declaration order. - - * etc/purify.solaris2: added suppression of pthread_setcanceltype - BSW. - -Tue Nov 18 00:11:26 1997 Douglas C. Schmidt - - * ACE version 4.3.50, released Tue Nov 18 00:11:26 1997. - -Mon Nov 17 22:35:22 1997 Douglas C. Schmidt - - * examples/Shared_Malloc/test_malloc.cpp: Added some additional - calls to Malloc::instance ()->remove () to cleanup all the - semaphore locks. Thanks to Tom Arbuckle - for reporting this. - - * ace/Memory_Pool.cpp (init_acquire): Fixed a problem caused by - failing to initialize the minimum_bytes_ field in the - ACE_Shared_Memory_Pool class. Thanks to Tom Arbuckle - for reporting this. - - * examples/Shared_Malloc/test_malloc.cpp: Updated the Shared - Malloc test program to use the Singleton Thread Manager. - -Mon Nov 17 18:09:06 1997 - - * All eight different configurations of ACE passed all tests on - our Alpha/NT. - -Mon Nov 17 15:37:52 1997 David L. Levine - - * ace/INET_Addr.cpp (get_host_name): on VxWorks only, moved - ::hostGetByAddr code block to _after_ the check for the - address being INADDR_ANY. Without that check, get_host_name () - never returns the caller's own hostname. - - * netsvcs/lib/Makefile: the first line of the Local Target - (Server_Logging_Handler.*) override mysteriously disappeared. - -Mon Nov 17 02:09:57 1997 Douglas C. Schmidt - - * ACE version 4.3.49, released Mon Nov 17 02:09:57 1997. - -Mon Nov 17 02:03:21 1997 Douglas C. Schmidt - - * ace/IOStream_T.cpp: Added a few more fixes for KCC C++ and its - standard C++ library support. - -Mon Nov 17 01:34:34 1997 - - * netsvcs/servers/main.cpp (main): Removed daemon and changed to - use the singleton service configurator. Thanks to John Mulhern - and Stephen Coy for tracing this down and Irfan for coming out - with the fix. - -Sun Nov 16 21:58:51 1997 Darrell Brunsch - - * tests/*.dsp, ace/*.dsp: Added Release, Unicode Debug, and - Unicode Release versions for each of the tests. - - Also found out that precompiled headers take up insane - amounts of disk space when used with ACE and also slows - the compilation down. I turned it off for the tests and - for the ace libraries - -Sun Nov 16 13:34:29 1997 Douglas C. Schmidt - - * tests/SOCK_Connector_Test.cpp (fail_no_listener_nonblocking): - Changed the line - - status = con.complete (sock); - - to - - if (sock.get_handle () != ACE_INVALID_HANDLE) - status = con.complete (sock); - - The change worksaround a core dump due the the following - conditions: - - - the find_another_host function in SOCK_Connector_Test comes - up with the entry for an NT machine. - - - the ACE_OS::connect call at line 64 of SOCK_Connector.cpp - "successfully" fails returning -1 but in this case - errno is set to ECONNREFUSED. - - - Since errno is not EINPROGRESS or EWOULDBLOCK the - ACE_SOCK_Stream 'new_stream' close member function is called - which, besides closing the "handle", also sets it to - ACE_INVALID_HANDLE. - - - Since the errno was ECONNREFUSED the 'if' test at line 97 of - SOCK_Connector_Test.cpp is true and the next statement - - status = con.complete (sock); - - is called causing a core dump since sock.get_handle() is - ACE_INVALID_HANDLE (-1 on Solaris). - - Thanks to Jack Erickson for reporting this. - - * ace/OS: Cast away the constness of the parameters to _tempnam() - for Borland C++. Thanks to Valik Solrzano Barboza - for this. - - * ace/config-unixware-2.1.2-g++.h: Changed - ACE_HAS_OSF1_GETTIMEOFDAY to ACE_HAS_SVR4_GETTIMEOFDAY. Thanks - to John Connett for reporting this. - - * ace/SPIPE_Addr.cpp (set): Fixed a problem where we were - potentially writing into character constants. Thanks to Darrell - Brunsch for finding this. - - * ace/Get_Opt.cpp (operator): We need to make sure that all uses - of ACE_OS::strchr() are consistent with respect to const - correctness. Thanks to Darrell Brunsch for finding this. - - * ace/config-win32-common.h: Added a few minor changes for Borland - C++. Thanks to Valik Solrzano Barboza for - this. - - * ace/Log_Record.cpp (print): Changed the formal parameter from - "const char host_name[]" to "const char *hostname" so that we - can assign this in the function if necessary. Thanks to Valik - Solrzano Barboza for this. - - * ace/OS.cpp: Moved the constructor for ACE_Cleanup_Info into the - OS.cpp since it doesn't really need to be inline. - - * ace/WFMO_Reactor.cpp (notify): Replaced a "sizeof - ACE_Notification_Buffer" with "sizeof - (ACE_Notification_Buffer)". It's odd that the first approach - (which is incorrect) isn't flagged by MSVC++... Thanks to Valik - Solrzano Barboza for this. - - * ace/OS.i (sema_init): Added an ACE_ALLOCATOR_RETURN in the - appropriate spot. - - * ace/ACE.cpp: Moved the implementation of strsplit_r() into the - ACE.cpp file since it's rather long... - - * ace/OS: To be more conformant to the standard C++ library, - I've added a pair of methods for strstr(), strchr(), strrchr(), - etc. e.g., the function signature strstr(const char*, const - char*) is replaced by the two declarations: - - const char *strstr (const char* s1, const char* s2); - char *strstr (char* s1, const char* s2);" - - Thanks to Valik Solrzano Barboza for this. - - * ace: Added "ace.idl", which is a config file for Borland C++ - 5.x. Thanks to Valik Solrzano Barboza for - this. - - * include/makeinclude/platform_linux_kcc.GNU (SOFLAGS): Improved - this file a bit to work better with NULL pointers. Thanks to - Ben Eng for reporting this. - - * examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp (main): - Changed allocator to alloc to avoid conflicts with STL. Thanks - to Ben Eng for reporting this. - - * ace/config-linux-kcc.h: Added some fixes for the KCC compiler. - Thanks to Ben Eng for reporting this. - - * ace/IOStream: Added fixes for the standard C++ library. Thanks - to Ben Eng for reporting this. - -Sat Nov 15 17:31:58 1997 Douglas C. Schmidt - - * Ran "make depend" on all of ACE. - -Sat Nov 15 15:55:52 1997 Steve Huston - - * tests/Priority_Reactor_Test.cpp: Removed the writer->peer().close() - call from client() that I added yesterday. ACE_Svc_Handler::destroy - will end up doing the close - thanks to Irfan for pointing this out. - -Sat Nov 15 01:31:58 1997 Douglas C. Schmidt - - * ACE version 4.3.48, released Sat Nov 15 01:31:58 1997. - -Fri Nov 14 23:36:12 1997 Chris Cleeland - - * ace/{OS,ACE}.{h,i} (strsplit_r): Moved strsplit_r from ACE_OS to - ACE, which is where it should go. - - * ace/ACE.cpp (ldfind): Changed uses of strsplit_r to be scoped - under ACE rather than ACE_OS. - -Fri Nov 14 22:57:04 1997 David L. Levine - - * ace/config-vxworks*.h: added ACE_LACKS_NETDB_REENTRANT_FUNCTIONS. - This is necessary for the gethostby{addr,name}_r support added - yesterday. - -Fri Nov 14 18:42:23 1997 Steve Huston - - * tests/Priority_Reactor_Test.cpp: Fixed client to close its socket - before exiting from the thread/process. - -Fri Nov 14 17:41:40 1997 Douglas C. Schmidt - - * ace/OS.i: Fixed some typos in strsplit_r(). - - * ace/OS.h: Moved the ACE_ALLOCATOR* stuff from Malloc_T.h to - OS.h, which is where it belongs. - - * examples/Reactor/Dgram: Reformatted some of the example - code to make it more readable. - -Fri Nov 14 17:08:00 1997 Chris Cleeland - - * ace/OS.i (strsplit_r): Added fixes so that this properly returns - the last piece. Thanks to Scott Herscher for - submitting this! Also beefed up the comments. - - * ace/OS.h: Added definitions to work around VxWorks' lack of - proper ANSI C/C++ prototypes for the functions found in - . The definitions were taken from Solaris 2.5.1, but - appear to work just fine. For now this is only in effect when - compiling with the Green Hills (ghs) environment, but it should - probably be used for others (such as g++) as well. - -Fri Nov 14 01:10:33 1997 Douglas C. Schmidt - - * ACE version 4.3.47, released Fri Nov 14 01:10:33 1997. - -Fri Nov 14 00:14:21 1997 David L. Levine - - * ace/OS.* (gethostbyaddr_r,gethostbyname_r): added VxWorks - support. - -Thu Nov 13 20:29:18 1997 Douglas C. Schmidt - - * ACE version 4.3.46, released Thu Nov 13 20:29:18 1997. - -Thu Nov 13 19:11:36 1997 Douglas C. Schmidt - - * ace/config-sunos5.4.*: Solaris 2.4 doesn't support the ualarm() - call unless you use the (broken) /usr/ucb/cc compiler. Here's a - patch for $ACE_ROOT/ace/config-sunos5.4-sunc++-4.x.h to fix the - problem. Thanks to Caleb Epstein - for reporting this. - -Thu Nov 13 19:25:50 1997 Carlos O'Ryan - - * include/makeinclude/platform_irix6.x-sgic++.GNU: - Updated comment on when should the user disable the use of - -lpthread - -Thu Nov 13 18:18:16 1997 Steve Huston - - * ace/Containers.h, Containers.cpp, Hash_Map_Manager.cpp, Malloc_T.h: - Removed the conditional code for the macro - ACE_HAS_HPUX_ACC_BROKEN_TEMPLATE_DESTRUCTOR. The workaround for - this compiler bug is to remove "this->" from the object pointer - used in the ACE_DES_FREE_TEMPLATE macro invocation. This compiler - bug is HP case SR5003396259 for future reference. - - * ace/config-hpux-10.x-hpc++.h: Added ACE_HAS_ANSI_CASTS; removed - ACE_HAS_HPUX_ACC_BROKEN_TEMPLATE_DESTRUCTOR (both for aC++ only). - - * ace/README: Removed ACE_HAS_HPUX_ACC_BROKEN_TEMPLATE_DESTRUCTOR, as - it is no longer used. - -Thu Nov 13 16:51:40 1997 - - * ace/OS.h: Added two new macros ACE_FACTORY_DECLARE and - ACE_FACTORY_DEFINE. Changed definitions of - ACE_SVC_FACTORY_DECLARE AND ACE_SVC_FACTORY_DEFINE to use these - two macros. Refer to changes of the ACE_Export related macros - below, you can now declare/define your service factories as, - - ACE_FACTORY_DECLARE (FOOBAR, fac_class); - ACE_FACTORY_DEFINE (FOOBAR, fac_class); - - This will ensure they get define properly and proper decoration - will be added. - -Thu Nov 13 16:52:31 1997 Nanbor Wang - - * ace/Thread_Manager.cpp: Removed all ! defined - (ACE_HAS_FSU_PTHREAD). Thanks to ARTURO MONTES - for reporting this. - - * ace/config-gcc-2.7.2.h: Added ACE_HAS_TEMPLATE_SPECIALIZATION. - Thanks to ARTURO MONTES for reporting - this. - - * ace/config-fsu-pthread.h: added ACE_LACKS_THREAD_PROCESS_SCOPING. - Thanks to ARTURO MONTES for reporting - this. - - * ace/OS.h: Separate definition of proper export flag for - platforms from setting these flags for building/not building - DLL. I keep ACE_Export and ACE_Svc_Export to remain backward - compatibality but now, they are defined using the new "common" - definition. This changes is made in hope that it will simplify - codes generated by TAO_IDL compiler. - - Several new directives are added to these file. These common - directives will be set to proper values (macros) according to - the platform we use. They are: - - ACE_Proper_Export_Flag - ACE_Proper_Import_Flag - ACE_EXPORT_SINGLETON_DECLATATION(T) - ACE_IMPORT_SINGLETON_DECLARATION(T) - ACE_PROPER_SINGLETON_INSTANTIATION(T) - - I use them to define ACE_Export and ACE_Svc_Export. I hope it - is easier to define your own export decoration flag now. Here - is an example. Say you want to define an export flag for your - DLL file : foobar.dll. First, you need to add the following to - a common header file: - - // Here are definition for FOO_BAR library. - #if defined (FOOBAR_HAS_DLL) && (FOOBAR_HAS_DLL == 1) - # if defined (FOOBAR_BUILD_DLL) - # define FOOBAR_Export ACE_Proper_Export_Flag - # define FOOBAR_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) - # define FOOBAR_SINGLETON_INSTANTIATION(T) ACE_PROPER_SINGLETON_INSTANTIATION (T) - # else - # define FOOBAR_Export ACE_Proper_Import_Flag - # define FOOBAR_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) - # define FOOBAR_SINGLETON_INSTANTIATION(T) - # endif /* FOOBAR_BUILD_DLL */ - #else /* ! FOOBAR_HAS_DLL */ - # define FOOBAR_Export - # define FOOBAR_SINGLETON_DECLARATION(T) - # define FOOBAR_SINGLETON_INSTANTIATION(T) - #endif /* FOOBAR_HAS_DLL */ - - Be sure to include "ace/OS.h" before these definitions so that - the macros they use will be properly initialized. After you've - done this, on Win32, define "FOOBAR_HAS_DLL=1" if you want to - build DLL, define it as "FOOBAR_HAS_DLL=0" if you want to build - static library. In your library project file, you must define - the directives FOOBAR_BUILD_DLL and decorate classes/objects you - want to export with FOOBAR_Export so that they can be declared - automatically according whether you are building/linking with - static library or dynamic library. - -Thu Nov 13 05:47:42 1997 David L. Levine - - * ace/Thread_Manager.cpp: added ACE_TSS_Singleton instantiation, for the recent Svc_Handler - change. - - * ace/Object_Manager.h (default_mask): moved out of ACE_MT_SAFE - protection. - - * ace/OS.{h,i},config-vxworks-ghs-1.8.h,README (strlen,strcpy): - protect declarations of wchar versions with - ACE_HAS_WCHAR_TYPEDEFS_CHAR. GreenHills typedefs wchar to char. - - * ace/Singleton.cpp: register ACE_TSS_Singletons for cleanup with - Object_Manager. - - * ace/OS.{i,cpp} (gethostbyaddr): added VxWorks support. - -Thu Nov 13 02:06:58 1997 Chris Cleeland - - * ace/Signal.i: Changed to use new Object Manager member. - - * ace/Object_Manager.cpp: Added a new member to the Object - Manager--default_mask. This is the default signal mask employed - by ACE_Sig_Set. Moving the object into the OM saves cycles b/c we - only construct it once and just re-use every time. - - * ace/Handle_Set.cpp: Added two new macros--ACE_DIV_BY_WORDSIZE and - ACE_MULT_BY_WORDSIZE--which either divide or multiply the argument - by ACE_Handle_Set::WORDSIZE. The manner in which this is - accomplished is governed by the #define - ACE_USE_SHIFT_FOR_EFFICIENCY--when defined, ACE tries to use - shifts to implement multiplication and division rather than actual - multiply and divide operations. Currently this is disabled. - -Wed Nov 12 19:13:05 1997 - - * ace/Svc_Handler: Changed hand written tss singleton to - ACE_TSS_Singleton. Lot of (unnecessary) code disappeared. - Thanks to David Levine for suggesting this. - - * ace/Object_Manager: Removed ACE_SVC_HANDLER_LOCK. - -Wed Nov 12 16:29:15 1997 Sumedh Mungee - - * platform_netbsd.GNU: added /usr/lib/c++rtO.o to SOBUILD to - insure that static objects' ctors are called. - -Wed Nov 12 00:20:38 1997 David L. Levine - - * ace/OS.{i,cpp} (inet_ntoa): use VxWorks' native inet_ntoa. It's - not documented but it works. - - * ace/OS.cpp (gethostbyname): on VxWorks, load static first_addr on - every call, not just the first. - - * include/makeinclude/rules.local.GNU: removed extra "fi" in - install operation. - - * include/makeinclude/platform_sunos5_sunc++.GNU: removed +w from - CFLAGS because it generates too many spurious warnings. - - * ace/TTY_IO.cpp (control): commented out unused local variable - c_line. Thanks to Amos Shapira for - reporting this. - - * ace/OS.{h,i} (hostname): added Chorus support. Thanks to Wei - for the patches. - -Tue Nov 11 23:44:17 1997 Douglas C. Schmidt - - * ACE version 4.3.45, released Tue Nov 11 23:44:17 1997. - -Tue Nov 11 21:26:36 1997 Douglas C. Schmidt - - * platform_sunos5_sunc++.GNU, platform_irix6.x-sgic++.GNU, rules.local.GNU: - Added some minor fixes. - -Tue Nov 11 20:18:27 1997 Douglas C. Schmidt - - * Makefile: Added the tests and netsvcs directory to - RELEASE_LIB_FILES since this is pretty important to determine - whether ACE works. Thanks to Chuck Gehr and Steve Coy for this - suggestion. - - * tests/UNIXclerk.conf: Changed "merengue" to "localhost." - Thanks to Steve Coy for this suggestion. - - * ace/config-lynxos.h (getopt): Missing 't' from const => see - getopt prototype parameter list. Thanks to Manojkumar Acharya - . - -Tue Nov 11 08:09:16 1997 David L. Levine - - * ace/OS.cpp (inet_aton): declare local ip_addr as an ACE_UINT32 - instead of a long. Real programmers have 64-bit longs. - - * ace/INET_Addr.cpp (get_host_name): added ACE_UNUSED_ARG (len); - for VxWorks only. - -Tue Nov 11 13:19:46 1997 Torbjorn Lindgren - - * include/makeinclude/rules.local.GNU: Fixed so that the ACE - makefiles doesn't create circular symlinks (happens if - something fails when building libACE.* with "make -k", or when - doing parallel builds). It's now possible to do parallel - builds of libACE.* without having to clean up a mess afterwards. - - * include/makeinclude/platform_irix6.x-sgic++.GNU: Removed - .so build with links instead (ace/apps/examples/tests and my own - programs all work well with this, and the manual seems to suggest - that it hasn't ever been necessary on this platform) - - * ace/config-irix6.x-sgic++-nothreads.h: Added - ACE_HAS_XPG4_MULTIBYTE_CHAR for SGI IRIX 6.[2-5]. - -Tue Nov 11 04:50:06 1997 Nanbor Wang - - * examples/Reactor/Multicast/server.cpp (handle_timeout): Fixed a - typo. Thanks to Sandro Doro for - reporting this. - -Tue Nov 11 04:20:09 1997 Douglas C. Schmidt - - * ACE version 4.3.44, released Tue Nov 11 04:20:09 1997. - -Tue Nov 11 01:44:39 1997 - - * examples/Naming/test_open.cpp (main): Added a new naming test - that binds to the net_local server and tries to bind entries to - it. - - * netsvcs/lib/Name_Handler.cpp: Added a new class called - Naming_Context. This helper class adds the correct default - constructor to the ACE_Naming_Context class so that we can use - it in ACE_Singleton. - - Previously, each Name_Handler was getting its own - Naming_Context. This is obviously incorrect as the mapping - address in already occupied by the first Name_Handler. - Therefore, the Naming_Context was changed into a Singleton - accessable by all Name_Handlers. - - * ace/WFMO_Reactor.cpp (handle_additions && handle_deletions): - Changed code to make sure that we should not make the upcall - until all the internal data structures have been updated. This - is to protect against upcalls that try to deregister again. - -Tue Nov 11 01:28:50 1997 Douglas C. Schmidt - - * ACE version 4.3.43, released Tue Nov 11 01:28:50 1997. - -Mon Nov 10 21:30:04 1997 Aniruddha Gokhale - - * INET_Addr.cpp: In the ACE_INET_Addr::get_host_name (char - hostname[], size_t len) method, an unnecessary local variable - called "name" was being used and the actual parameter "hostname" - was never getting updated. The local variable is now removed and - we use the actual parameter everywhere. - -Mon Nov 10 20:44:43 1997 James C Hu - - * etc/ACE-guidelines.html: Added a section for ACE Design Rules, - and added a design rule about sentinels. - -Mon Nov 10 18:11:05 1997 Sumedh Mungee - - * ace/Singleton.h (ACE_TSS_Singleton): Changed ACE_TSS to - ACE_TSS_TYPE (TYPE), so that the ACE_TSS_TYPE macro (defined in - OS.h) gets used. (Irfan's suggestion.) - -Mon Nov 10 17:02:40 1997 Douglas C. Schmidt - - * ace/OS.h: Reformatted the #ifdef structure of the - ACE_HAS_XPG4_MULTIBYTE_CHAR to conform to ACE usage. - - * ace/Service_Repository.cpp: The close() method needed a '\n' in - one of the debug messages. Thanks to Steve Coy for reporting - this. - -Mon Nov 10 14:09:24 1997 Steve Huston - - * ace/OS.h, OS.i, README: Added new macro, ACE_HAS_XPG4_MULTIBYTE_CHAR - for platforms which supply wchar.h and wide character functions. - Added the use if it in OS.h, and use the functions in OS.i, - strlen and strcpy with wchar_t arguments. - - * ace/config-hpux-10.x.h, config-aix-4.2.x.h, config-mvs.h, - config-sunos5.5-sunc++-4.x.h: Added ACE_HAS_XPG4_MULTIBYTE_CHAR. - -Mon Nov 10 13:33:02 1997 - - * ace/OS.h (ACE_WRITE_GUARD): Added macros for ACE_WRITE_GUARD and - ACE_READ_GUARD. Thanks to Brian Raven - for suggesting this. - - * tests/Thread_Mutex_Test.cpp: Modified version of Mutex_Test that - exclusively works on a Thread_Mutex. - - * tests/Mutex_Test.cpp: Removed this test. It have been - superseded by Thread_Mutex_Test and Process_Mutex_Test. - - * ace/OS.i (thread_mutex_trylock): Fixed the return value and - errno for this system call such that it is consistent with other - trylock calls. - -Mon Nov 10 10:21:55 1997 David L. Levine - - * ace/INET_Addr.cpp: updated gethostbyname/addr support for - Chorus. Thanks to Wei Chiang for - the patches for this fix. - - * ace/config-chorus.h: disabled ACE_LACKS_SOCKETPAIR. Thanks - to Wei for this fix, also. - - * tests/Thread_Mutex_Test.cpp (test): don't compile this function - if ACE_HAS_THREADS is not defined. - - * tests/IOStream_Test.cpp (main): removed extra % at end of - ACE_ERROR_RETURN message. - - * etc/ace_ld,include/makeinclude/platform_vxworks5.x_g++.GNU: - added ace_ld, a drop-in replacement for ld that supports munching. - We need to munch for VxWorks/g++. - - * ACE-INSTALL.html: updated VxWorks info to mention requirement - for perl with VxWorks/g++. And, LD_LIBRARY_PATH must be set - to find the ACE libraries on the host if using TAO. - -Sun Nov 09 23:29:43 1997 Douglas C. Schmidt - - * ACE version 4.3.42, released Sun Nov 09 23:29:43 1997. - -Sun Nov 09 22:18:30 1997 - - * ace/config-win32-common.h (ACE_HAS_ANSI_CASTS): VC++ compilers - support ANSI style casts. - - * ace/OS.h (ACE_static_cast): Added ANSI style cast macros to ACE. - Thanks to Stephen Coy for suggesting this. - -Sun Nov 9 21:34:16 1997 Douglas C. Schmidt - - * ace/OS: Enhanced ACE_OS so that it *always* defines - implementations for the wchar_t versions of strlen() and - strcpy(), even if the platform doesn't explicitly support - UNICODE. This is necessary since TAO needs these functions. - - * ace/OS.h: Added a typedef for wchar_t to handle the case where - the OS doesn't support UNICODE. - - * ace/ACE.cpp: Added hex character routines from TAO since they - are generally useful. - - * ace/OS.h: Moved the TAO-specific #defines into TAO, where they - belong. Thanks to David Levine and Chris Cleeland for insisting - on this... - -Sun Nov 09 17:55:50 1997 - - * examples/ASX/Event_Server/Event_Server/Peer_Router.cpp (open): - Removed codes that reset a socket's non-blocking flag. This has - been taken care of by ACE_Acceptor::activate_svc_handler now and - resetting this flag twice on NT caused us grief. Thanks to - Georges Ata for reporting - the bug. - - * ace/ACE.i (hex2byte,nibble2hex): Replaced ACE_INLINE to inline - for these two functions. Functions in this file are always - inlined. - - * ace/config-win32-common.h (ACE_LACKS_RLIMIT): Added this flags - so we don't need to treat ACE_WIN32 specially. - - * ace/OS.i (getrlimit,setrlimit): Removed unnecessary conditional - flag ACE_WIN32. - - * ace/Thread_Manager.cpp (wait): Merged the two blocks within this - function so that we can avoid relase/acquire lock - unnecessarily. Thanks to Doug for his careful scrutiny. - -Sun Nov 09 09:27:24 1997 David L. Levine - - * ace/Thread_manager.cpp (wait): removed unused local, - threads_waited_on. - -Sat Nov 08 23:20:50 1997 Douglas C. Schmidt - - * ACE version 4.3.41, released Sat Nov 08 23:20:50 1997. - -Sat Nov 8 15:46:30 1997 Douglas C. Schmidt - - * ace/INET_Addr.cpp: Enhanced the get_host_name() functions so - that if the sin_addr.s_addr == INADDR_ANY we assume that we're a - server, and we return our "hostname". - - * Added a number of minor fixes for UNIXWARE with G++. Thanks to - Michael Rueger for reporting these. - - * ace/Thread_Manager.h: Both Irix5 and VxWorks have problems with - local typedefs with GCC. Thanks to Laura Paterno - for reporting this. - - * ace/Timer_Queue_Adapters.cpp: Changed some errant uses of lock_ - to mutex_. Thanks to David Levine for reporting this. - - * ace/ACE.cpp: set_handle_limit() was buggy because it never - increased the handle limit. With this change we do not need - special code in ACE_Select_Reactor with ACE_LACKS_RLIMIT because - this is managed in ACE::set_handle_limit. Thanks to Arturo for - this fix. - - * ace/Select_Reactor.cpp (open): We no longer need to - conditionally compile for ACE::set_handle_limit(). Thanks to - Arturo for this fix. - -Fri Nov 7 18:53:13 1997 Sumedh Mungee - - * ace/config-netbsd.h: Added file for NetBSD 1.2G. - - * tests/SOCK_Connector_Test.cpp (fail_no_listener_nonblocking): - Added ECONNREFUSED as a "valid failure", alongwith EWOULDBLOCK. - - * ace/OS.i (msync): msync on NetBSD takes only two parameters as - opposed to the usual three. (It doesnt have the "flags" - parameter.) The ACE_HAS_BROKEN_NETBSD_MSYNC flag works around - that. - -Fri Nov 7 16:04:35 1997 Douglas C. Schmidt - - * ace/Thread_Manager.cpp: Added a missing '>' for one of the - template specializations. Thanks to Torbjorn Lindgren - for reporting this. - - * ace/OS.cpp: ACE_OS::ACE_OS is defined in OS.cpp, which causes - the compiler to complain about multiple definitions. Other - ACE_CLASS_IS_NAMESPACE doesn't have constructors, which is why - they work. Thanks to Torbjorn Lindgren for - reporting this. - -Fri Nov 07 15:14:51 1997 David L. Levine - - * examples/Threads/tss1.cpp: replaced ACE_SYNCH_1 and _2 with - _DECL and _USE. - - * ace/config-linux{,-common}.h: created config-linux-common.h - and moved alpha-specific defines to it. - - * ace/FILE_Addr.cpp (set): explicitly declare int return type. - - * performance-tests/Misc/preempt.cpp (get_options): DEC CXX didn't - like conversion of -1 to u_int, so changed return type to int and - all ACE_ERROR_RETURNs to return -1. - -Fri Nov 07 10:05:12 1997 Douglas C. Schmidt - - * ACE version 4.3.40, released Fri Nov 07 10:05:12 1997. - -Fri Nov 7 09:58:09 1997 Douglas C. Schmidt - - * ace/Connector.cpp (fini): Added a call to - ACE_Map_Manager::close() in fini() since the destructor may not - be called. Thanks to Eric C. Newton for - reporting this. - - * ace/{FILE,SPIPE}_Addr.cpp (set): Added a return value. Thanks - to Marios Zikos for reporting this. - -Fri Nov 07 02:45:55 1997 Douglas C. Schmidt - - * ACE version 4.3.39, released Fri Nov 07 02:45:55 1997. - -Fri Nov 7 01:06:08 1997 Douglas C. Schmidt - - * ace/Message_Queue: Added a new method called deactivated(), - which returns true if the queue has been deactivated. Thanks to - Wei Chiang for reporting this. - - * ace/{config-chorus.h,OS.cpp}: Added a new macro called - ACE_CHORUS_DEFAULT_MIN_STACK_SIZE. Thanks to Wei Chiang - for reporting this. - - * ace/DEV_Addr.cpp, - ace/FILE_Addr.cpp, - ace/SPIPE_Addr.cpp, - ace/INET_Addr.cpp, - ace/UNIX_Addr.cpp: Fixed the set(const Foo &) method so that - it correctly detects cases where we're passed in a - ACE_Addr::sap_any. This is a total hack... - - * ace/{OS.h,Addr.cpp}: Added a new AF_ANY flag, which is set to -1. - -Thu Nov 6 23:05:14 1997 Douglas C. Schmidt - - * Changed the obtusely named ACE_SYNCH_1 and ACE_SYNCH_2 macros to - ACE_SYNCH_DECL and ACE_SYNCH_USE, respectively. Thanks to Mike - Kamrad for suggesting this. - - * ace/Select_Reactor.cpp, ace/ACE.cpp: Broaded the comparison so - that we only try to use {set|get}rlimit() if ACE_LACKS_RLIMIT is - *false*. Thanks to Arturo Montes for - reporting this. - - * ace/Object_Manager: Added support for - get_singleton_lock(ACE_Mutex *). Thanks to Arturo Montes - for reporting this. - - * ace/Connector.cpp: If connect_n() fails make sure to return -1. - Thanks to Stephen Coy for pointing out the - problem. - - * ace/config-sco-5.0.0.h: Removed the ACE_LACKS_RLIMIT flag. - Thanks to Arturo Montes for reporting - this. - - * tests: Changed all uses of "localhost" to - ACE_DEFAULT_SERVER_HOST. This solves some problems with MVS. - Thanks to Chuck Gehr for reporting - this. - - * examples/Timer_Queue: Changed COMMAND to CMD so it won't - conflict with the HP/YUX compiler. Thanks to Sandro Doro - for reporting this. - -Thu Nov 06 22:13:01 1997 - - * examples/Connection/blocking/SPIPE-connector.cpp (init): Fixed - odd looking typecast. - - * ace: Changed the comparison &local_sap == &ACE_Addr::sap_any to - local_sap == ACE_Addr::sap_any. Thanks to Steve Coy - for pointing out that the default - parameter const ACE_Addr &local_sap = ACE_Addr::sap_any will - cause a copy of sap_any to be made and passed to the method, - invalidating the memory address comparison. - - The following files were effected: - - Asynch_Acceptor.cpp - SOCK_Acceptor.cpp - SOCK_CODgram.cpp - SOCK_Dgram.cpp - TLI_Acceptor.cpp - TLI_Connector.cpp - - * ace/Addr.cpp: Made sure that the type and size of - ACE_Addr::sap_any does not match the type and size of any other - Addr type. This is necessary for local_addr==ACE_Addr::sap_any - to return 0 when local_addr is anything other than - ACE_Addr::sap_any. - - * ace/Synch_T.h: Fixed all the ACE_SYNCH_* defines. Thanks to - Matthias Kerkhoff for pointing the - problems. - -Thu Nov 06 18:30:42 1997 Steve Huston - - * ace/Addr.(h i), DEV_Addr.(h i), FILE_Addr.(h i), INET_Addr.(h - cpp), SPIPE_Addr.(h i), UNIX_Addr.(h i): Changed the operators - == and != to be non-virtual, and to accept the 'sap' argument as - its own type (not ACE_Addr for all of them). The - implementations of the operators compare type-specific data - without having to check the inherited type member. Thanks to - Steve Coy and Irfan and Nanbor for a huge - amount of work on these changes. *** NOTE - there is still some - SOCK_Connector problems related to these changes on HP-UX. The - hunt continues. - - * ace/Connector.cpp (connect_n): return -1 if any of the connect - attempts fail. - - * tests/Reactor_Performance_Test.cpp: Don't crash if any of the - client's connect attempts fail. - - * ace/Reactor.h: Added #include "ace/Handle_Set.h" - AIX needs the - class definition when generating templates in programs. - - * tests/Map_Manager_Test.cpp: Don't even try if the compiler doesn't - have template specialization working correctly. - - * tests/Priority_Reactor_Test.h: Added #include "ace/SOCK_Stream.h" - so AIX could generate template code correctly. - - * tests/Reactor_Performance_Test.cpp: Moved class definitions out to - Reactor_Performance_Test.h (new file) to allow AIX to generate - templates. - - * tests/SOCK_Connector_Test.cpp: Added a couple more checks to make - sure the local host is not the test target, and changed from using - port 4242 to 42000 (there is actually a program on AIX which listens - at port 4242). - - * tests/Thread_Manager_Test.cpp: Moved a class definition out to - Thread_Manager_Test.h (new file) to allow AIX to use it in template - generation. - - * tests/Timer_Queue_Test.cpp: Limit the number of iterations to 2000. - -Thu Nov 6 16:51:36 1997 Sumedh Mungee - - * tests/SOCK_Connector_Test.cpp (find_another_host): Added - ACE_NETBSD to the #if define around gethostent. - -Thu Nov 06 00:08:01 1997 Douglas C. Schmidt - - * ACE version 4.3.38, released Thu Nov 06 00:08:01 1997. - -Wed Nov 5 21:32:36 1997 Douglas C. Schmidt - - * ace/Service_Repository.cpp (close): Looking in the - Service_Repository while shutting it down does really bad - things. Some careful changes to the loop in - Service_Repository::close() fixed this. Thanks to Eric - C. Newton for reporting this. - - * Added new support for SCO UNIX with no threads. Thanks to - Arturo Montes for reporting this. - -Wed Nov 05 20:31:36 1997 - - * ace/Connector.cpp (close): Added an explicit close() method for - the Strategy_Connector. This closes down all Strategy_Connector - specific things and then calls close() on the base class. Also - modified the destructor to call this routine. - -Wed Nov 5 17:09:05 1997 Nanbor Wang - - * ace/OS.cpp (cleanup_tss): Rearranged how TSS'es get cleanup on - Win32. This was causing a tiny memory leak on NT. - -Wed Nov 5 15:03:31 1997 Nanbor Wang - - * ace/Thread_Manager.{h,cpp}: Changed the data type of - terminated_thr_queue_ back to - ACE_Unbounded_Queue. - -Wed Nov 05 14:16:27 1997 Steve Huston - - * ace/OS.i (mutex_trylock): Fixed code for ACE_HAS_DCE_DRAFT4_THREADS - (HP-UX) to process the returned status correctly. Thanks to - Robert Head for reporting this. - -Wed Nov 05 13:01:49 1997 David L. Levine - - * ace/ACE.cpp (daemonize): added ACE_UNUSED_ARG (close_all_handles) - if ACE_LACKS_FORK. - -Wed Nov 05 01:06:53 1997 Douglas C. Schmidt - - * ACE version 4.3.37, released Wed Nov 05 01:06:53 1997. - -Tue Nov 04 23:11:41 1997 - - * ace/Thread_Manager.h: Added an ACE_Unbounded_Queue to - collect threads that need to be removed. We can no longer - remove thread descriptors directly from because that - would clobber the integrity of the double-linked list. Changed - the data type of from - ACE_Unbounded_Queue to - ACE_Unbounded_Queue to reduce the codes - generated. - - * ace/Thread_Manager.cpp: Reordered several thread operations so they - won't remove thread descriptor directly while traversing the - . Removed #ifdef from template - instantiation section because now VxWorks needs it too. - - * ace/Container.{h,cpp}: Added more check on validities of passed in - node to ACE_Double_Linked_List::remove_element. Also changed - the function to reset a node's and to prevent - double removal of a node, which messes up the list structure. - - * ace/ace_{dll,lib}.dsp: Excluded Acceptor.cpp from make - explicitly. Moving this file to "template file folder" was not - enough. - -Tue Nov 4 18:03:51 1997 Douglas C. Schmidt - - * ace/config-sco*.h: Added #define ACE_DEFAULT_CLOSE_ALL_FILES 0 - to the SCO Unix config files. - - * ace/ACE.cpp: Added a new macro called - ACE_DEFAULT_CLOSE_ALL_FILES to workaround a bug with SCO Unix. - Thanks to Arturo Montes for reporting - this. - - * The ACE developer's drinking song: - - 100 little bugs in the code, - 100 bugs in the code, - fix one bug, compile it again, - 101 little bugs in the code. - 101 little bugs in the code..... - - Thanks to Steve Huston for appreciating the humor in this ;-). - - * ace/Containers.cpp (insert_head): Added some minor stylistic - fixes. - - * apps/Gateway/Gateway/Event_Channel.cpp (initiate_acceptor): - Changed - - if (ACE_Reactor::instance ()->register_handler - (&this->acceptor_, ACE_Event_Handler::ACCEPT_MASK) == -1) - - to: - - if (this->acceptor_.open(this->options ().acceptor_port_, - ACE_Reactor::instance (), this->options ().blocking_semantics_) == -1) - - Thanks to Ganesh Pai for reporting this. - - * apps/Gateway/Gateway/Gateway.cpp (parse_args): Changed - - ACE_Get_Opt get_opt (argc, argv, "abC:cdP:pq:t:vw:", 0); - - to: - - ACE_Get_Opt get_opt (argc, argv, "abC:cdP:p:q:t:vw:", 0); - - Thanks to Ganesh Pai for reporting this. - -Tue Nov 4 18:13:52 1997 Sergio Flores - - * examples/Timer_Queue/Async_Timer_Queue_Test.cpp (cancel): - Initialized act pointer variable to 0, which was causing - core dump in linux. In general, all pointers should be - initialized. This should have been warned by the compiler. - Thanks to Sandro Doro for - pointing this out. - -Tue Nov 4 11:14:35 1997 Nanbor Wang - - * ace/Containers.cpp: Fixed some stylistic ambiguities. - -Tue Nov 04 10:12:21 1997 David L. Levine - - * include/makeinclude/platform_hpux.GNU: added +a1 to CFLAGS - to select ANSI C, instead of the default K+R C. This is - required with the current ace/Object_Manager.cpp, because - it initialized autos using aggregates (via the - ACE_STATIC_SVC_DEFINE macro). Thanks to Neil B. Cohen - for helping to sort this out. - - * examples/Timer_Queue/Thread_Timer_Queue_Test.cpp: changed - another lock () to mutex (). - - * tests/run_tests.vxworks: added MT_SOCK_Test. - -Tue Nov 04 04:13:23 1997 Douglas C. Schmidt - - * ACE version 4.3.36, released Tue Nov 04 04:13:23 1997. - -Tue Nov 04 03:50:57 1997 - - * ace/Addr.i (operator == && operator !=): Comparison of - sap.addr_type_ should be with this->addr_type_ and not with 0. - -Mon Nov 3 23:18:33 1997 Sergio Flores - - * ace/Synch_T.cpp (dump): change the field lock_ to mutex_. - -Mon Nov 3 22:37:58 1997 Nanbor Wang - - * ace/Timer_Wheel_T.cpp: - * ace/Timer_List_T.cpp: - * ace/Timer_Hash_T.cpp: Changed the use of lock_ to mutex_. - - * ace/OS.cpp (cleanup_tss): Added TSS cleanup codes for Win32 when - non-main threads are exiting. Without them, Thread_Manager won't - cleanup its thread table correctly. - - * ace/SV_Semaphore_Complex.cpp (close): Changed to return 0 - only when this->key_ == -1 instead of <= -1. This was causing - semaphore leaks on Solaris. - - * ace/UNIX_Addr.i (operator ==): - * ace/SPIPE_Addr.i (operator ==): - * ace/FILE_Addr.i (operator ==): - * ace/DEV_Addr.i (operator ==): - * ace/INET_Addr.cpp (operator ==): Added checking for the same - Addr types for addresses under comparison. Thanks to Stephen - Coy for pointing out the problem. - -Mon Nov 03 18:32:42 1997 Carlos O'Ryan - - * ace/Proactor.cpp: - * ace/Timer_Queue_T.h: - * ace/Timer_Queue_T.cpp: - * ace/Timer_Heap_T.cpp: - * ace/Synch_T.h: - * ace/Synch_T.cpp: - * ace/Atomic_Op.i: - Changed the method name from lock() to mutex(), otherwise the - lame HP/C++ compiler gets completely confused. Also changed the - field from lock_ to mutex_ - -Mon Nov 3 17:15:17 1997 Steve Huston - - * ace/OS.h: Removed "class ace_dewarn_gplusplus;" from the - ACE_CLASS_IS_NAMESPACE macro. Produces warnings on AIX and - shouldn't be needed. - -Mon Nov 3 15:49:18 1997 Chris Cleeland - - * ace/Connector.cpp (connect): "Fixed" so that the service handler - pointer passed in by the caller doesn't change until the connect - completes without errors. - -Mon Nov 03 08:15:21 1997 David L. Levine - - * ace/Managed_Object.[hi] (get_preallocated_{object,array}): - inlined function definitions into the class header so that - it compiles on AIX 4.1 w/ xlC 3.01. Thanks to Bob Lyng - for reporting this problem, - at to Steve H. for testing the fix. - - * include/makeinclude/{platform_linux*.GNU,wrapper_macros.GNU}, - netsvcs/lib/Makefile: suppress -g when compiling ace/Timer_Hash.cpp - and netsvcs/lib/Server_Logging_Handler.cpp on Linux only. - (It really only needs to be suppressed on Linux/Alpha.) - - * apps/Gateway/Gateway: protect instantiation of - ACE_Svc_Handler - with ACE_HAS_THREADS. - - * ace/{Naming_Context.cpp,Service_Config.cpp,Object_Manager.cpp}: - moved ACE_Naming_Service and ACE_Service_Manager static service - objects to ACE_Object_Manager. - - With this change, the ACE library no longer has any static - objects that require destruction. - - * ace/Object_Manager.h: added documenation of - ACE_HAS_NONSTATIC_OBJECT_MANAGER config #define. - - * performance-tests/Misc/preempt.cpp: cleaned up cleanup so that - it compiles cleanly. - -Sun Nov 02 18:09:14 1997 Douglas C. Schmidt - - * ACE version 4.3.35, released Sun Nov 02 18:09:14 1997. - -Sun Nov 2 15:31:45 1997 Douglas C. Schmidt - - * ace/Select_Reactor.i (cancel_timer): Make sure that we don't try - to call cancel() through a NULL this->timer_queue_. Thanks to - Stephen Coy for reporting this. - - * ace/ACE.cpp (set_handle_limit): Fixed a subtle bug that occurs - if the OS doesn't like non-initialized rlimit structs. Thanks - to Stephen Coy for reporting this. - - * examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp (main): - Renamed allocator to my_alloc to work around wonderful STL and - GCC problems... Thanks to Ben Eng for - reporting this. - - * examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp: Removed - unused constant SHMSZ. Thanks to Ben Eng for - reporting this. - - * examples/Reactor/Misc/test_time_value.cpp (operator<<): Removed - the "dec" stream manipulator since it isn't portable. Thanks to - Ben Eng for reporting this. - - * performance-tests/Misc/preempt.cpp (main): Cleaned up this test - so it compiles on non-threaded platforms. Thanks to Ben Eng - for reporting this. - - * examples/Timer_Queue/main_*.cpp (main): std::auto_ptr does not - have an operator= that accepts a raw pointer. Therefore, we - must assign raw pointers to an auto_ptr via the constructor. - Thanks to Ben Eng for reporting this. - - * apps/Gateway/Gateway/Proxy_Handler.cpp: Make sure we distinguish - between ACE_NULL_SYNCH and ACE_MT_SYNCH since these will be - different on all platforms, whereas ACE_SYNCH will be the same - as ACE_NULL_SYNCH on platforms without threads. Thanks to Ben - Eng for reporting this. - - * ace: Removed lots of uses of NULL and replaced them with 0. - This works around bugs with lame C++ compilers that treat NULL - as (void *). Thanks to Ben Eng for reporting - this. - - * ace/Thread.i (spawn): Replaced "stack" with "thr_stack" to work - around bugs with lame C++ compilers and STL. Thanks to Evgeny - Beskrovny for reporting this. - -Sat Nov 1 11:55:05 1997 Douglas C. Schmidt - - * ace/config-irix5.3-g++.h, - ace/config-irix5.3-sgic++.h: Removed the ACE_HAS_SYS_SIGLIST - macro since it doesn't seem to be working. Thanks to Laura - Paterno for reporting this. - - * include/makeinclude/platform_chorus.GNU: Tidied up - platform_chorus.GNU a bit. Thanks to Wei Chiang - for this. - -Fri Oct 31 14:35:37 1997 David L. Levine - - * ace/OS.cpp (thr_create): on Chorus, double the stack size to - avoid bad problems. Thanks to Wei Chang - for diagnosting this. - - * ace/Hash_Map_Manager.cpp (unbind_i): set the int_id - reference argument instead of ignoring it. Thanks to - Wei Chang for providing the patch. - - * ace/OS.h,README: wrapped #include of dlfcn.h with - ACE_HAS_DLFCN_H_BROKEN_EXTERN_C to support RedHat 4.2 - Linux 2.0.30/Alpha. - - * ace/OS.i,README: added ACE_HAS_GETRUSAGE_PROTO support, for - platforms that have a getrusage () prototype that is - different from the one in OS.i. - - * ace/config-linux.h: added added some #defines to enable - builds on RedHat 4.2/Linux 2.0.30/Alpha. - - * include/makeinclude/platform-linux.GNU: added -pipe and - bumped optimization level up to -O3. - - * ace/Thread_Manager.cpp (wait_task): no-op if thr_list_ - size is 0. wait_task () can be called under that condition - (after Thread_Manager::wait () has returned) from an - ACE_Stream destructor, through ACE_Module::close () and - ACE_Task_Base.wait (). Without this change, wait_task () - allocated a copy_table array of size 0. Sun C++ leaked - that array, according to Purify. - - * ace/Service_Config.*,Object_Manager.cpp: moved static - ACE_Service_Config::signal_handler_ to Object_Manager. - - * include/makeinclude/rules.local.GNU (show_statics,show_uninit): - added $(TOOLENV) to allow specification of full path to nm. - Thanks to Wei Chiang for this suggestion. - - * include/makeinclude/platform_chorus.GNU: added trailing "/" - to TOOLENV definition, so that it can be empty when not used. - - * ACE-INSTALL.html,include/makeinclude/wrapper_macros.GNU: - added documentation for ACE show_statics and show_uninit targets. - These are only supported with g++. - -Fri Oct 31 00:53:52 1997 - - * The following five changes were suggested by Stephen Coy - . Thanks Stephen. - - * ace/OS.h (ACE_CLASS_IS_NAMESPACE): Changed friend - ace_dewarn_gplusplus to friend class ace_dewarn_gplusplus. - - * ace/Malloc_T.h: Move the #include files to just after the - declaration of the macros, otherwise Containers.cpp will be - #included before the definition of the various allocator macros - (such as ACE_ALLOCATOR_RETURN) have been seen (when - ACE_TEMPLATES_REQUIRE_SOURCE is defined). - - * ace/Hash_Map_Manager.cpp (close_i): Changed &table[i] to - &table_[i]. - - * ace/Containers.h: The ACE_Node destructor needs to be publicly - accessible in order to support the - ACE_HAS_HPUX_ACC_BROKEN_TEMPLATE_DESTRUCTOR fix. Unfortunately, - making the template function - ACE_Destructor_Template_For_HPUX_aCC_Only a friend does not seem - to work (although it should). - - * ace/ACE.cpp (ldfind): Changed path_entry from char* to - const char*. - - * tests/Priority_Reactor_Test.cpp (main): Fixed auto_ptr usage. - Thanks to Jack Erickson (jack@pinion.com) for pointing this out. - - * ace/OS.h (ACE_CLASS_IS_NAMESPACE): Changed the macro to not - include the destructor. This causes undefined destructor - problems on Win32. Also added ACE_UNIMPLEMENTED_FUNC macros - around the remain functions. - -Thu Oct 30 21:22:47 1997 David L. Levine - - * ace/Makefile: added auto Svc_Conf_[ly].cpp patches. - - * etc/Svc_Conf_[ly].cpp.diff,README: the ace/Svc_Conf_[ly].cpp - patches, and instructions for updating them. - -Thu Oct 30 19:54:50 1997 Douglas C. Schmidt - - * ACE version 4.3.34, released Thu Oct 30 19:54:50 1997. - -Thu Oct 30 17:49:56 1997 Douglas C. Schmidt - - * tests/Priority_Task_Test.cpp (main): Moved "int status" out of - the #if defined (ACE_HAS_THREADS) so that it will compile when - the platform *doesn't* have threads. - - * ace/Synch_T.i (ACE_TSS): Added a missing ':' that was causing - problems on platforms that lack threads. Thanks to Laura - Paterno for helping to track this - down. - - * ace/Signal.cpp (register_handler): Make sure not to use - SA_SIGINFO if we're running on LynxOS. At some point, we'll - want to generalize this, once enough OS platforms support POSIX - real-time signals. Thanks to Kirill.Rybaltchenko - for reporting this. - - * include/makeinclude/platform_chorus.GNU (CXX): Replaced - DCFLAGS += -g with DCFLAGS += -gstabs+. Thanks to - Wei Chiang for this. - - * ace/OS.cpp: It's not valid to set the NULL_key to anything other - than implicit initialization. In particular, if we set it to -1 - it breaks on pthreads systems... Thanks to Check Gehr for - reporting this. - - * ace/config-irix5.3*++.h: Added ACE_NEEDS_SYSTIME_H. Thanks to - Laura Paterno for reporting the - problem. - - * ace/OS.h: Moved the unistd.h files back down to where - they originally were defined since this was unnecessary. - - * include/makeinclude/platform_chorus.GNU (CXX): Replaced - DCFLAGS += -g with DCFLAGS += -gstabs+. Thanks to - Wei Chiang for this. - -Thu Oct 30 17:41:19 1997 James C Hu - - * ace/OS.h: Stray semi-colon removed from ACE_CLASS_IS_NAMESPACE - macro. - -Thu Oct 30 17:04:52 1997 - - * ace/OS.h (ACE_CLASS_IS_NAMESPACE): Changed the macro to not - include the destructor. This causes undefined destructor - problems on Win32. Also added ACE_UNIMPLEMENTED_FUNC macros - around the remain functions. - -Thu Oct 30 10:50:21 1997 Chris Cleeland - - * ace/OS.h: Added new macro--ACE_CLASS_IS_NAMESPACE ()--to - designate that a class is being used as a pseudo-namespace. It - declares private CTOR, Copy CTOR, and DTOR, as well as a friend - declaration in order to de-warn on g++. Typical usage would be - something like: - - class FooBarNamespace - { - ACE_CLASS_IS_NAMESPACE (FooBarNamespace); - - public: - static ... - }; - - The ACE_OS class has been updated to use this. - - * ace/ACE.h: Updated class ACE to use the new - ACE_CLASS_IS_NAMESPACE (). - - * ace/OS.i (getopt): Changed ACE_LACKS_SOME_POSIX_PROTOTYPES back - to ACE_LACKS_POSIX_PROTOTYPES so that a clean build on Linux is - achievable now. - (msgsnd): Corrected errant spelling from - ACE_LACKS_POSIX_SOME_PROTOTYPES to - ACE_LACKS_SOME_POSIX_PROTOTYPES. - -Thu Oct 30 06:14:58 1997 David L. Levine - - * Makefile,ACE-INSTALL: removed ACE-INSTALL from CVS control. - It will only be created when a release is made in - /project/adaptive/ACE_wrappers, and not put under CVS control. - - * ace/Manager_Object.h: added ACE_INLINE specifier to - get_preallocated_object/array declarations. Thanks to - Torbjorn Lindgren for reporting this. - - * ace/Synch.cpp: removed duplicate - ACE_Write_Guard instantiation. Thanks to - Torbjorn Lindgren for reporting this. - - * tests/Conn_Test.cpp: fixed template instantiation pragmas. - Thanks to Torbjorn Lindgren , again. - - * tests/SPIPE_Test.cpp: replaced ACE_UNUSED_ARG of client and server - with conditional compilation of those functions. Thanks to - Torbjorn Lindgren for snagging this. - - * ace/OS.{h,cpp},Object_Manager.cpp (tss_open,tss_close): removed - tss_open () dynamic allocation option because it wasn't used. - Removed tss_close() because it was a no-op without tss_open () - dynamic allocation. - - * ace/OS.cpp (tss_open): On VxWorks, don't check for 0 tss_base (). - It's not always 0 on program startup, especially if a program - has been previously run by the shell directly, without spawning - a new task to run it. - - * ace/OS.*: added ACE_TSS_EMULATION support for non-scalar - ACE_thread_key_t. Thanks to Chuck Gehr - for motivating this. - - * ace/config-mvs.h: added ACE_HAS_NONSCALAR_THREAD_KEY_T. It - is only used with ACE_HAS_TSS_EMULATION, which currently is - not supported on MVS. - - * ace/OS.cpp (ACE_Thread_Adapter::invoke): cleaned up this function. - -Thu Oct 30 03:25:13 1997 Nanbor Wang - - * ace/Hash_Map_Manager.cpp (close_i): Can't use ACE_DES* - template. Have I been here before? - -Thu Oct 30 03:03:41 1997 Nanbor Wang - - * ace/Hash_Map_Manager.cpp (close_i): Changed to use ACE_DES* macros. - - * ace/OS.h: Moved ACE_Allocator related macros to Malloc_T.h - - * ace/Malloc_T.h: Moved ACE_Allocator related macros from OS.h. - Added two macros ACE_DES_NOFREE and ACE_DES_NOFREE_TEMPLATE to - call objects' destructors explicitly. This is required to - take care of some "broken" compilers. Thanks to Stephen Coy - for providing the fix for HP-UX aCC. - - * ace/README: - * ace/config-hpux-10.x-hpc++.h: Added flag - ACE_HAS_HPUX_ACC_BROKEN_TEMPLATE_DESTRUCTOR. - -Thu Oct 30 02:56:25 1997 Douglas C. Schmidt - - * ACE version 4.3.33, released Thu Oct 30 02:56:25 1997. - -Thu Oct 30 01:03:21 1997 Douglas C. Schmidt - - * ace/LOCK_SOCK_Acceptor.cpp: Added a #include of "ace/Synch.h" so - that the Conn_Test.cpp will compile on HP/UX. Thanks to Stephen - Coy for reporting this. - -Wed Oct 29 22:55:15 1997 Nanbor Wang - - * ace/config-vxworks5.x-g++.h: - * ace/config-unixware-2.1.2-g++.h: - * ace/config-unixware-2.01-g++.h: - * ace/config-sunos5.5-g++.h: - * ace/config-sunos5.4-g++.h: - * ace/config-sunos4-g++.h: - * ace/config-osf1-4.0.h: - * ace/config-osf1-4.0-g++.h: - * ace/config-linux.h: - * ace/config-linux-pthread.h: - * ace/config-linux-lxpthreads.h: - * ace/config-irix6.x-g++.h: - * ace/config-irix5.3-g++.h: - * ace/config-hpux-10.x-g++.h: - * ace/config-gcc-2.7.2.h: - * ace/config-freebsd.h: - * ace/config-freebsd-pthread.h: - * ace/config-chorus.h: - * ace/config-aix-4.1.x.h: - * ace/README: Removed ACE_HAS_BROKEN_EXPLICIT_TEMPLATE_DESTRUCTOR. - It is no longer in use. - -Wed Oct 29 21:12:55 1997 Douglas C. Schmidt - - * ace/README: Added a new macro called ACE_LACKS_SOCKET_BUFSIZ, - which is enabled on VxWorks. - - * ace/OS.h: Added a new macro called - ACE_DEFAULT_MAX_SOCKET_BUFSIZ, which is set to 65536. - - * ace/OS: Changed the tolower() method to to_lower() so that it - won't conflict if there's a macro with the same name. - - * ace/OS.h: #include before ACE_Time_Value as long as - ACE_LACKS_UNISTD_H is false. Added this flag to the VxWorks and - Win32 config.h files. - - * ace/OS.h: Added a special #define for IRIX5, which seems to put - timeval in a strange file... Also, moved this #include to - *before* ACE_Time_Value. Thanks to Carlos O'Ryan for suggesting - this and to Laura Paterno for - reporting the problem in the first place. - - * ace: Changes all uses of the overly long - ACE_LACKS_POSIX_PROTOTYPES_FOR_SOME_FUNCS to - ACE_LACKS_SOME_POSIX_PROTOTYPES. However, I'm not really sure - how this relates to the ACE_LACKS_POSIX_PROTOTYPES macro. I - suspect we probably only need one of these... - - * ace/OS.h: Added a new ACE_HAS_STDARG_THR_DEST to handle - weirdness with LynxOS. Thanks to Kirill.Rybaltchenko - for reporting this. - - * ace: OS.h,config-lynxos.h: Added a new ACE_LACKS_GETOPT_PROTO - for LynxOS. Thanks to Kirill.Rybaltchenko - for reporting this. - - * ace/config-lynxos.h: Replaced - ACE_LACKS_POSIX_PROTO_FOR_SOME_FUNCS with - ACE_LACKS_POSIX_PROTOTYPES_FOR_SOME_FUNCTIONS. Thanks to - Kirill.Rybaltchenko for reporting - this. - -Wed Oct 29 22:17:03 1997 Nanbor Wang - - * ace/config-hpux-10.x-hpc++.h (ACE_HAS_TEMPLATE_SPECIALIZATION): - Moved to C++ section. Restored ACE_TEMPLATE_REQUIRE_SOURCE in - C++ section. Thanks to Stephen Coy for - providing the fix (patiently.) - -Wed Oct 29 20:30:55 1997 James C Hu - - * ace/OS.i (strlen): Moved it earlier so that it would be declared - inline before use. - - * ace/OS.i (strcasecmp): Removed spurious semi-colons (how did - they get in there?). - -Wed Oct 29 18:51:12 1997 Darrell Brunsch - - * ace/OS.{h,i}: Added strcasecmp functionality for NT - -Wed Oct 29 15:56:01 1997 David L. Levine - - * ace/OS.cpp: replaced ACE_TSS_REF_TABLE with a reference count to - remove dynamic allocation from ACE_TSS_Info. Also, enabled call - of ACE_Task close hook before calling TSS destructors. - - * ace/OS.cpp: changed a few TSS 0 keys to ACE_OS::NULL_key. - - * ace/Thread_Manager.cpp (ace_thread_manager_adapter): with - TSS_EMULATION, moved the call of tss_close () from here to - ACE_Thread_Adapter::invoke () so that it can be called after - the task's close hook, if any. - - * ace/{OS.h,Log_Msg.h,Object_Manager.cpp} (cleanup_tss): added - an argument to indicate whether the main thread is calling or not. - - * ace/OS.i (ACE_TSS_Emulation::next_key): start key values at - 0 instead of 1, because it's easier to deal with arrays of - keys then. That also corresponds with the starting key value - on Windows NT. - - * ace/IOStream.h: DEC_CXX #includes now depend on compiler version. - Thanks to James Johnson for providing the fix. - -Wed Oct 29 10:32:16 1997 David L. Levine - - * ace/config-lynxos.h: fixed ACE_LACKS_POSIX_PROTOTYPES_FOR_SOME_FUNCS - and added getopt () declaration. - - * include/makeinclude/platform_lynxos.GNU: updated LIBS. - - Thanks to Kirill Rybaltchenko for - the above fixes. - - * etc/purify.solaris2: added another _thrp_exit UMR. - - * include/makeinclude/wrapper_macros.GNU: added login (LOGNAME) - and compiler (CXX) to Purify/Quantify cache names. - -Wed Oct 29 08:40:38 1997 Douglas C. Schmidt - - * ACE version 4.3.32, released Wed Oct 29 08:40:38 1997. - -Wed Oct 29 07:39:38 1997 Douglas C. Schmidt - - * ace/Synch.cpp: Added an explicit template instantiations for - ACE_Guard. - - * ace/LOCK_SOCK_Acceptor.h: Removed the typedef of - ACE_SOCK_Acceptor with a full expansion of the name to fix a G++ - bug. - - * tests/Conn_Test.cpp: Fixed a template instantiation problem. - - * ACE-INSTALL.html: Pointed out that ACE is ported to LynxOS and - Chorus. - - * ACE-INSTALL.html: Added information about cloning that explains - how you must to build a config.h and platform_macros.GNU in - cloned directory. Thanks to Arturo for this. - - * bin/Makefile: Added - $(ACE_ROOT)/include/makeinclude/platform_macros.GNU to Makefile - so we can compile clone on any ACE platform. Thanks to Arturo - for this. - - * include/makefiles: Added new platform file for SCO UNIX with - nothreads. Thanks to Arturo for this. - - * ace: Added new config files for SCO UNIX with nothreads. - Thanks to Arturo for this. - - * apps/JAWS/server/HTTP_Server.cpp: Fixed the typedef for - ACE_LOCK_SOCK_Acceptor. Thanks to Hans Rohnert for reporting - this. - - * tests/Conn_Test.cpp: Changed template instantiations from - SOCK_ACCEPTOR to LOCK_SOCK_ACCEPTOR. Thanks to Han Rohnert for - reporting this. - -Wed Oct 29 02:10:37 1997 Douglas C. Schmidt - - * ACE version 4.3.31, released Wed Oct 29 02:10:37 1997. - -Wed Oct 29 01:25:54 1997 Douglas C. Schmidt - - * tests/Conn_Test.cpp: Modified Conn_Test to fully integrate - Irfan's new LOCK_SOCK_Acceptor. This new implementation is - truly the "mother of all Conn_Tests" ;-). - - * ace/LOCK_SOCK_Acceptor.cpp (lock): Added a lock() accessor - method to the new ACE_LOCK_SOCK_Acceptor so that we can remove - the lock (somehow). - -Wed Oct 29 00:29:52 1997 - - * apps/JAWS/server: Fixed Win32 related compilation errors. - - * ace/OS.h (SIGUSR1 and SIGUSR2): Added new defines for these two - signals. - - * ace/LOCK_SOCK_Acceptor: New class added to ACE (it was - originally a class in JAWS). It specialize ACE_SOCK_Acceptor to - lock around . This class is particular useful if you - want to have multiple threads accepting on the same endpoint and - the system does not support have thread safe accept. Thanks to - James Hu who initially wrote this class for JAWS. Thanks also - to Johannes Gutleber who decided to - use this in the Conn_Test. - - * tests/Conn_Test.cpp: Updated to use the new LOCK_SOCK_Acceptor. - - * apps/JAWS/server/HTTP_Server.h: Updated to use the new - LOCK_SOCK_Acceptor. - - * apps/JAWS/server/HTTP_Server_T.*: These files are no longer - necessary since this class has been absorbed into ACE. - - * tests: Fixed auto_ptr use in: - - Notify_Performance_Test.cpp - Priority_Reactor_Test.cpp - Reactor_Performance_Test.cpp - - Thanks to Jack Erickson (jack@pinion.com) for pointing this out. - -Tue Oct 28 11:26:39 1997 Nanbor Wang - - * ace/ace_{dll,lib}.dsp: Moved Acceptor.cpp from Source file - folders to Template file folders. Thanks to Satheesh Kumar - for pointing this out. - -Tue Oct 28 05:44:56 1997 David L. Levine - - * ace/OS.cpp (thr_create): use pthread_attr_setprio instead of - *_setsched with DCETHREADS, and check return values of - ACE_OS::thr_[gs]etconcurrency (). Thanks to Stephen Coy - for tracking these problems down. - - * tests/Priority_Task_Test.cpp (svc): removed ACE_ASSERT and - replaced with setting of error flag. This allows the test - to continue and gather more possibly useful information. - - * tests/Conn_Test.cpp: 1) Added template instantiations. - 2) Re-enabled with DEC_CXX. 3) Removed THR_DETACHED flags. - - * include/makeinclude/platform_osf1_4.0.GNU: suppress warnings - about unreachable statments. - - * ACE-INSTALL.html: Conn_Test now runs with DEC_CXX 6.0. - -Tue Oct 28 00:38:58 1997 - - * ace/Strategies_T: - - ACE_Recycling_Strategy - Added new class ACE_Recycling_Strategy. - It defines the interface (and default implementation) for - specifying a recycling strategy for a SVC_HANDLER. This - strategy acts as a consular to the Svc_Handler, preparing it for - the tough times ahead when the Svc_Handler will be recycled. - - ACE_NOOP_Concurrency_Strategy - Added new class - ACE_NOOP_Concurrency_Strategy. It implements a no-op activation - strategy in order to avoid calling open on a recycled - svc_handler multiple times. - - ACE_Cached_Connect_Strategy - Added a ACE_Creation_Strategy, - ACE_Concurrency_Strategy, and ACE_Recycling_Strategy to the - cached connector. This gives it more flexibility than by simply - providing template methods. This is similar to the Strategy - Connector. - - ACE_Cached_Connect_Strategy - Added new template methods for - certain key occasions in the cached connector: make_svc_handler, - activate_svc_handler, assign_recycler, and - prepare_for_recycling. - - * tests/Conn_Test.cpp (client): Updated the tests such that it - uses a null activation strategy. - -Mon Oct 27 22:17:54 1997 Aniruddha Gokhale - - * OS.h: Added the ACE_NESTED_CLASS macro to deal with those - compilers that do not allow a fully scoped type name appearing - inside a scope in which it was defined. - -Mon Oct 27 22:17:32 1997 David L. Levine - - * ace/Thread_Manager.cpp (exit): don't use the cache when finding - the thread ID. The cache is in the ACE_Log_Msg instance, and - it might have been deleted already. - -Mon Oct 27 20:33:07 1997 Douglas C. Schmidt - - * ACE version 4.3.30, released Mon Oct 27 20:33:07 1997. - -Mon Oct 27 18:03:06 1997 Nanbor Wang - - * ACE-INSTALL.html (HREF): Added NT/Alpha to supporting platforms - list. Added hyperlink to ACE newsgroup. Added hyperlink to - FreeBSD homepage. Minor changes to Win32 intstallation guide. - -Mon Oct 27 17:50:16 1997 Douglas C. Schmidt - - * include/makeinclude/platform_sco5.0.0-fsu-pthread.GNU (PRELIB): - Changed PRELIB in platform_sco5.0.0-mit-pthread.GNU, - platform_sco5.0.0-fsu-pthread.GNU to @true, so we can generate - the TAO_IDL compiler. Thanks to Arturo Montes - for reporting this. - -Mon Oct 27 14:26:10 1997 - - * ace/Synch_T (ACE_TSS): When ACE does not have thread specific - storage, ACE_TSS will be a simple pointer holder. Previously, it - had a instance as a member, now it has a pointer to an instance. - - * ace/WFMO_Reactor.cpp (update_state): Fixed a bug in the - WFMO_Reactor. wakeup_all_threads() used to be an internal - method that was called when changes were made to the state of - the reactor. When wakeup_all_threads() became public, there was - no code in place to handle explicit user wakeups. In - particular, the wakeup_all_threads event was never reset. - Thanks to Evgeny Beskrovny for - pointing out this bug. - - * ace/OS.i (ACE_FAIL_RETURN): Added mapping from - ERROR_PATH_NOT_FOUND to ENOENT. Thanks to David Brackman - for suggesting this. - -Mon Oct 27 11:36:39 1997 David L. Levine - - * ace/OS.cpp (exit_cleanup_i): removed protection against recursive - calls. This protection no longer is necessary, because - ACE_TSS_Cleanup () is only called by ACE_Thread_Adapter::invoke (). - It was problematic because it used the ACE_Allocator instance. - - * ace/config-vxworks*.h,README: added ACE_LACKS_FCNTL. - - * ace/OS.i,ACE.cpp: replaced #ifdef VXWORKS with #ifdef - ACE_LACKS_FCNTL. - - * ace/ACE.i (get_flags): return 0 if ACE_LACKS_FCNTL. It would - be better to store ACE's notion of the flags associated with - the handle so that they could be returned, but this works for now. - - * tests/run_tests.vxworks: re-enabled Reactors_Test, because it - works with the ACE_LACKS_FCNTL mods. - - * include/makeinclude/platform_osf1_4.0.GNU: -pthread instead of - -lpthread in LIBS. Thanks to James Johnson for - pointing this out. - - * ACE-INSTALL.html: added info on bin/create_ace_build. - -Mon Oct 27 11:11:33 1997 Nanbor Wang - - * netsvcs/servers/servers.dsp - * netsvcs/lib/netsvcs.dsp: - * tests/*.dsp: - * ace/ace_{dll,lib}.dsp: Added project configurations for Alpha - machines. Configurations are named by adding "Alpha" in front - of the original config names, e.g., "Win32 Alpha Unicode Debug. - -Mon Oct 27 06:40:18 1997 Douglas C. Schmidt - - * include/makeinclude/rules.local.GNU (show_uninit): Added a - missing semi-colon for one of the install rules. Thanks to - Manojkumar Acharya for reporting this. - - * ace/Synch_T.h: Make sure that ACE_Guard::remove() calls - this->lock_->remove() rather than this->lock_->release(). - Thanks to Johannes Gutleber for - reporting this. - -Mon Oct 27 00:20:13 1997 Nanbor Wang - - * ace/config-hpux-10.x-hpc++.h: Added directive - ACE_HAS_TEMPLATE_SPECIALIZATION. Thanks to Stephen Coy - for reporting this. - -Sun Oct 26 22:17:57 1997 Douglas C. Schmidt - - * ACE version 4.3.29, released Sun Oct 26 22:17:57 1997. - -Sun Oct 26 20:03:57 1997 Douglas C. Schmidt - - * ace/IPC_SAP.cpp, - ace/IO_SAP.cpp: Make sure that we don't use fcntl() when - we're compiling on VXWORKS since it's not defined... - - * examples/Connection/non_blocking/CPP-connector.cpp: Changed the - method named idle() to uninitialized() since idle() is now - defined on ACE_Svc_Handler. - - * ace/OS.h: Added the TAO_DEFAULT_SERVER_PORT to OS.h. - - * tests/Conn_Test.cpp (cached_connect): Added a new variable - called "n_client_iterations" to control how many times each - client thread tries to connect with the Cached_Connector. - -Sun Oct 26 16:56:32 1997 Chris Cleeland - - * include/makeinclude/platform_linux_lxpthread.GNU (CFLAGS): Added - -pipe to the compile options. - -Sun Oct 26 11:04:21 1997 David L. Levine - - * ace/Hash_Map_Manager.cpp (unbind): added ACE_UNUSED_ARG (int_id). - - * tests/Conn_Test.cpp (server): added ACE_UNUSED_ARG (options). - And, added template instantations. - - * tests/Conn_Test.cpp (cached_connect): changed type of loop index i - to int to avoid signed/unsigned comparison. - - * ace/Strategies_T.h: added #include of ace/Strategies.h. Thanks to - James Johnson for reporting this. - -Sun Oct 26 10:01:01 1997 Nanbor Wang - - * ace/Connector.cpp (open): The original fix failed to replace - strategies under some circumstances. - - * ace/OS.{h,cpp} (sprintf): Removed ACE_OS::sprintf (wchat_t, char). - It didn't ever work. - - * ace/Connector.cpp (open): Added check if we had previously - allocated various strategies and deleted these objects before - allocating new objects. The original codes caused memory leaks - and possible segmentation faults if it got called twice. We - probably need a do-nothing constructor (the current constructor - calls open.) However, this may break other codes. - -Sun Oct 26 01:00:07 1997 Douglas C. Schmidt - - * ACE version 4.3.28, released Sun Oct 26 01:00:07 1997. - -Sun Oct 26 00:50:00 1997 Douglas C. Schmidt - - * tests/Conn_Test.cpp (close): Since the connect() method on - ACE_Connector closes the svc_handler if failure occurs, we - shouldn't do that again unless we succeed in connecting. - - * ace/OS.h: Moved the CORBA portability macros from - CORBA_Handler.h into OS.h so they will be accessible from TAO. - - * ace/Filecache.cpp (finish): Replaced filename_ with filename() - so that "const correctness" would work with template - specialization. Go figure! - - * TAO/tests/IDL_Cubit/Makefile: Enhanced the "realclean" target to - remove the generated IDL stubs and skeletons. - - * ace/OS.cpp (ace_sysconf_dump): Made a minor change to OS.cpp - to fix some typos. Thanks to Wei Chiang - for reporting this. - -Sun Oct 26 00:06:17 1997 - - * ace/Strategies_T.cpp (~ACE_Cached_Connect_Strategy): Must set - recycler to 0 before calling close, else the svc_handler will - try to purge itself from the cache. - - * tests/Conn_Test.cpp (client): Updated to use the new connection - recycling scheme. - - * ace/Hash_Map_Manager: - - - ACE_Hash_Map_Reverse_Iterator: Added reverse iterator. - - - ACE_Hash_Map_Entry: Added a prev pointer to the entry. Thus - changing the bucket chains into doubly linked lists. Because of - this, it was necessary to change the way the list was being - managed. Sentinels were created for each bucket. - - This also changed (a) the way the iterators worked, (b) made it - easy to delete entries when you have one (this scheme allows the - entries to be easily used as ACTs). - - - New methods (bind, trybind, rebind, find): These methods allow - the users to get access to ACE_Hash_Map_Entry of the node in - question. This allows the user to treat the entry as an ACT and - get access to the key (in case the user is interested in - changing the key). These methods are only valid since the - implementation of Hash_Map_Manager uses linked lists where nodes - are never copied. These methods cannot be added to Map_Manager - since it uses an array of nodes, where the your data may get - copied to another node when the size of the Map_Manager changes. - - * ace/Strategies (ACE_Connection_Recycling_Strategy): Added a new - abstract strategy for recycling connections. - - * ace/Strategies_T: - - - ACE_Cached_Connect_Strategy: ACE_Cached_Connect_Strategy now - implements the ACE_Connection_Recycling_Strategy interface. - This allows Svc_Handlers to cache themselves with - ACE_Cached_Connect_Strategy when they become idle. It also - allows them to purge themselves from the connection cache when - the Svc_Handlers close down. - - Also added ~ACE_Cached_Connect_Strategy that will cleanup up the - connection cache. - - - ACE_Hash_Addr: ACE_Hash_Addr is the key for the hash map used by - ACE_Cached_Connect_Strategy. Previously it kept the Svc_Handler - pointer in the key in order to find out if it was busy or not. - Now the flag has been moved from the Svc_Handler into - the key. The also saves the Hash_Addr from requiring - Svc_Handler as a template parameter. - - Also updated ACE_Hash_Addr::operator== such that if the - Svc_Handler is busy, it does not bother to check compare the - addresses but simply returns false. - - * ace/Svc_Handler.cpp: Added the ability for a Svc_Handler to - recycle itself. idle() can be called when the Svc_Handler is - done serving a particular connection and can how be recycled. - The Svc_Handler now also has a pointer to a recycler that is - responsible for managing the connections. The recycler is - usually a Cached_Connector. - - * ace/Filecache.cpp (ACE_Hash_Map_Entry): Added a new constructor - specialization as the ACE_Hash_Map_Entry now has two - constructors. - - * tests/Hash_Map_Manager_Test.cpp (ACE_Hash_Map_Entry): Added a - new constructor specialization as the ACE_Hash_Map_Entry now has - two constructors. - - * tests/Reactor_Exceptions_Test.cpp (class My_Reactor): Added the - other handle_events method. Thanks to Stephen Coy - (coys@mail.ns.wsa.com.au) for pointing this out. - - * ace/Strategies_T.cpp (hash_i): This default routine is no good. - It uses a complicated scheme that calculate a hash value. - Unfortunately, there is no guarantee that this hash algorithm - will produce the same hash value for the same address. - Therefore, it is better just to return a consistent hash value - rather than an erroneous one. I have choosen 0 of the return - value. Even though this will cause all the entries to be hashed - to the 0 bucket, atleast they will be found. Users should - override this to provide better hashing. - - (compare_i): Memcmp is not the correct default action. - !(b1==b2) is the correct comparison, though this will assume - that the addresses will have a comparison operation. - - * ace/Mem_Map.cpp (close and close_handle): close() is doing too - much. It is closing the handle and unmapping the file. - Changing this method might effect code that depends on this - behavior. Therefore, we create a seperated method - close_handle() that only closes down the handle, and does not - unmap the file. Thanks to Jeff Richards (jrichard@OhioEE.com) - for pointing this out. - - * ace/Strategies_T.cpp (connect_svc_handler): If connect() failed - because of timeouts, we have to reject the connection entirely. - This is necessary since currently there is no way for the - non-blocking connects to complete and for the to - notify the cache of the completion of connect(). Therefore if - errno is EWOULDBLOCK, it is changed to ENOTSUP and -1 is - returned. - -Sat Oct 25 17:41:57 1997 Sergio Flores - - * examples/Timer_Queue/Thread_Timer_Queue_Test.cpp: - * examples/Timer_Queue/Async_Timer_Queue_Test.cpp: - * examples/Timer_Queue/Reactor_Timer_Queue_Test.cpp: - * examples/Timer_Queue/main_async.cpp: - * examples/Timer_Queue/main_reactor.cpp: - * examples/Timer_Queue/main_thread.cpp: - Added "#pragma instantiate" for template instantiations on - platforms that use pragmas instead, like SGI. - -Sat Oct 25 4:44:00 1997 Carlos O'Ryan - - * Today at 06:44 hours (Santiago, 04:44 St. Louis) Fernanda O'Ryan - has joined the ACE family. She was born 3040 gr in weight and - 50 cm length. She has absolutely no experience in CORBA, C++ or - programming in general. Therefore, she is the ultimate Java - programmer. - -Sat Oct 25 10:13:56 1997 David L. Levine - - * ace/Singleton.h: added comment about best ACE_LOCK types to use. - - * Makefile (TIMESTAMP): replace tab with spaces in ChangeLog entry. - - * tests/Conn_Test.cpp (main): fixed typo, spawn_threads instead of - spawn_thread. Also, protected definitions of spawn_processes () - and spawn_threads () to avoid compiler warnings about unused static - functions. - -Sat Oct 25 01:02:34 1997 Douglas C. Schmidt - - * ACE version 4.3.27, released Sat Oct 25 01:02:34 1997. - -Fri Oct 24 17:39:08 1997 Douglas C. Schmidt - - * ace/ACE.cpp: Changed all the ACE_BIT_ENABLED () == 0 macros to - ACE_BIT_DISABLED() since the logic is clearer. - - * ace/SOCK_Acceptor.cpp (shared_accept): Improved the handling of - timed accepts. The original implementation was prone to race - conditions if there were multiple processes all doing timed - connects on the *same acceptor socket*! That's because select() - and accept() are not performed atomically. Now, we're smarted - about handling this... - - * tests/Conn_Test.cpp: Simplified the shutdown logic, which - appeared to have race conditions. - - * tests/Conn_Test.cpp: Modified this test to spawn off a number of - server processes, all of which will listen for connections on - the same acceptor port. This demonstrates a useful idiom for - writing connection-oriented concurrent server pools. - - * netsvcs/lib/Server_Logging_Handler_T: Fixed this code so that if - we're on an HP/UX that has broken templates we don't use the - Base_Optimizer. Thanks to Per Andersson for providing this fix. - - * ace/Thread_Manager: Added a destructor for ACE_Thread_Descriptor - to keep some compilers happy. Thanks to Chuck Gehr - for reporting this. - - * ace/Task.cpp (ACE_Task_Base_cleanup): Changed - ACE_Task_Base::cleanup (object); - - to: - - ACE_Task_Base::cleanup (object, 0); - - Thanks to Chuck Gehr for reporting - this. - - * ace/Thread_Manager.cpp (find_thread): Fixed another problem with - == being used to compare threads rather than - ACE_OS::thr_equal(). Thanks to Chuck Gehr - for reporting this. - -Fri Oct 24 17:11:14 1997 Sergio Flores - - * Thread_Timer_Queue_Test.cpp (shutdown_timer): added logic to - cancel preemptively or voluntarily, the dispatching thread, - depending on whether the platoform supports pthread_cancel(). - - * Timer_Queue_Adapters.cpp (ACE_Thread_Timer_Queue_Adapter): Added - initialization of flag to 1, active mode. We assume - we start in active mode. Added an internal variable - that stores the thread id of the currently running thread. The - motivation behind this is to be able to cancel this thread - whenever we are shutting down. It is initialized to - ACE_OS::NULL_thread. - - * Timer_Queue_Adapters.cpp (svc): Assign the with the - current running thread ID, using ACE_Thread::self (). - - * Timer_Queue_Adapters.h (ACE_Thread_Timer_Queue_Adapter): Added - default to be - ACE_Thread_Manager::instance() - - * Timer_Queue_Adapters.h (activate): Override the default - method to be able to enforce one thread of execution - per timer queue. Does make much sense to have more than one - managing the timer queue, and like Doug said too many weird - things can happen... - - * Timer_Queue_Adapters.i (thr_id): Added this method to access the - thread ID of this task. - - * Timer_Queue_Adapters.i (activate): Call - ACE_Task_Base::activate() with n_threads = 1 to ensure that a - single thread is spawned. - -Fri Oct 24 10:00:02 1997 Nanbor Wang - - * ace/Thread_Manager.cpp (wait_grp): Fixed a bug. Should wait on - threads with same grp_id, not task. - -Fri Oct 24 09:24:14 1997 David L. Levine - - * ace/Select_Reactor.cpp (open): cast return value of - ACE_::max_handles () to size_t to avoid signed/unsigned comparison. - - * ace/Singleton.cpp,Object_Manager.{h,cpp}: (get_singleton_lock): - dynamically allocate ACE_Thread_Mutex and ACE_RW_Thread_Mutex locks, - so we end up with one lock per ACE_Singleton instantiation. - - * ace/OS.cpp (ACE_TSS_Info, Win32 and VxWorks only): changed type - of ACE_TSS_TABLE from ACE_Unbounded_Stack to fixed-size ACE_Array. - With this change, we avoid some use of ACE_Allocator when - destroying TSS objects. There are two more changes required to - completely remove the ACE_Allocator use. - - * tests/TSS_Test.cpp (worker): added printout of iteration count. - -Fri Oct 24 01:53:58 1997 Douglas C. Schmidt - - * ACE version 4.3.26, released Fri Oct 24 01:53:58 1997. - -Thu Oct 23 19:05:08 1997 Douglas C. Schmidt - - * netsvcs/clients/Naming/Client/Makefile - netsvcs/clients/Naming/Dump_Restore/Makefile - - The lines: - - SHLIB = libClient_Test.so - SHLIB = libDump_Restore.so - - need to be - - SHLIB = libClient_Test.$(SOEXT) - SHLIB = libDump_Restore.$(SOEXT) - - Thanks to Stephen Coy for reporting this. - - * ace/Thread_Manager.cpp (find_hthread): Replaced the call - - if (iter.next ()->thr_handle_ == h_id) - - to - - if (ACE_OS::thr_equal (iter.next ()->thr_handle_, h_id)) - - since the other one isn't portable to Pthreads. Thanks to - Stephen Coy for reporting this. - - * ace/Hash_Map_Manager.cpp: Removed the sentinel in the - Hash_Map_Manager. Sentinels are evil since they require us to - hold write locks, even when we're doing finds! - - * ace/ACE.cpp (max_handles): By default, we now try to use the - getrlimit() function before sysconf() since sysconf() doesn't - work "correctly" for NO _SC_OPEN_MAX (i.e., it just returns the - original value, which might have been changed by setrlimit(). - What a pain... - - * ace/ACE.cpp (max_handles): If FD_SETSIZE is enabled return - this as the number of handles. This isn't perfect, but it's - probably better than returning -1. - - * ace/Select_Reactor.cpp (open): Added a call to - ACE::set_handle_limit() if the requested size for the Reactor is - greater than the current max number of descriptors in the - process. Also check to make sure that the user isn't ask for - more than the FD_SETSIZE. Thanks to Neil Lavelle - for motivating this. - - * ace/Thread_Manager: Changed the name THR_FUNC to - ACE_THR_MEMBER_FUNC since it's now a global typedef on VxWorks - and we don't have to have clashes with other names. - - * ace/Thread_Manager.h: There are mutually incompatible bugs with - VxWorks and MVS. Therefore, we have to conditionally compile - the THR_FUNC differently for these two platforms. Thanks to - Chuck Gehr for reporting this. - - * ace/OS.cpp (thr_create): Added a fix to set the Chorus stack - size correctly. Thanks to Wei Chiang for - reporting this. - - * ace/OS.cpp: Added a new method ace_sysconf_dump() to dump the - state of the configuration. Thanks to Wei Chiang - for reporting this. - - * ace/Singleton.cpp (dump): There was a typo in the dump() method - for ACE_TSS_Singleton, it should be - ACE_TSS_Singleton::instance_i(). I've fixed this. - -Thu Oct 23 23:19:24 1997 James C Hu - - * ace/Filecache.cpp: Removed template method specialization of - shared_find. No longer needed since Hash_Map_Manager has been - changed to no longer rely on sentinel_. - - * ace/Thread_Manager.cpp (various): - Hacked 'til it compiled. (Chased down syntax errors.) - -Thu Oct 23 22:52:17 1997 Sergio Flores - - * examples/Timer_Queue/Thread_Timer_Queue_Test.cpp (shutdown_timer): - Added a line to call the cancel method on the timer queue task - when we are shutting down; this is wrapped around #if's to only - include this only when the platformm supports pthread_cancel(). - - * ace/Timer_Queue_Adapters.cpp (svc): Added some POSIX thread - cancellation points to make sure the mutex that the condition - variable uses is unlocked before the thread is cancelled. - - * examples/Timer_Queue/Thread_Timer_Queue_Test.cpp (list_timer): - Deleted unnecessary cancellation points. Since we are not - blocking on a condition variable, we don't need to guard the - code. - -Thu Oct 23 22:07:03 1997 Nanbor Wang - - * ace/Thread_Manager.cpp (wait_task,wait_grp): We should also - check for thread creation flags when collection information for - threads belong to this group and don't try to join those threads - created with THR_DETACHED or THR_DAEMON. - -Thu Oct 23 21:22:16 1997 Darrell Brunsch - - * ACE-INSTALL.html: Copied some documentation about makefile flags - from include/makeinclude/wrapper_macros.GNU and added a section - for this. - -Thu Oct 23 20:37:44 1997 David L. Levine - - * ace/Array.*: added ACE_Array_Iterator. - -Thu Oct 23 17:28:11 1997 Chris Cleeland - - * ace/Mem_Map.i (close_filemapping_handle): Moved this above its - uses in the file so that g++ would de-warn. - -Thu Oct 23 15:30:17 1997 Steve Huston - - * ace/Timer_Hash_T.h, Timer_Hash.cpp, Timer_Heap_T.h, Timer_Heap.cpp, - Timer_List_T.h, Timer_List.cpp, Timer_Queue_T.h, Timer_Queue.cpp, - Timer_Wheel_T.h, Timer_Wheel.cpp: Replaced all occurences of - ACE_HPUX_BROKEN_TEMPLATES with ACE_HAS_BROKEN_HPUX_TEMPLATES. - -Wed Oct 22 23:23:29 1997 Nanbor Wang - - * ace/ACE_Library.*, ace_lib.dsp: Made naming convention uniform - for some less used ACE library. They are called: aced.dll, - ace.dll, aceud.dll, aceu.dll, acesd.lib, aces.lib, aceusd.lib - and aceus.lib. If you are using ACE on NT, you know what they - mean. ;-) - -Wed Oct 22 21:22:35 1997 David L. Levine - - * ace/Object_Manager.{h,cpp}: Added support for ACE_RW_Thread_Mutex - ACE_Singleton lock type. Thanks to Nanbor for suggesting this, - because TAO needs it. - - Also, removed at_exit registration of dynamically allocated - ACE_Static_Object_Lock because Object_Manager instance isn't - available for registration when it's created. Instead, handle - this lock as a special case in the Object_Manager destructor. - - * ace/Singleton.cpp,Object_Manager.cpp: check for shutting_down () - as well as starting_up () when deciding whether to use a - preallocated lock. Preallocated locks are not available at those - times. - - * tests/Reactor_Performance_Test.cpp (client): removed declaration - of loop index "i" because it shadowed a local. Also, the loop - index declaration caused a signed/unsigned comparison. - - * ace/Singleton.cpp: temporarily disabled ACE_Guards until - the lock acquistion is fixed. - -Wed Oct 22 17:53:26 1997 Steve Huston - - * ace/SOCK_Connector.cpp: In connect(), changed the - (local != ACE_Addr::sap_any) to be value comparison, - not pointer comparison. Works on compilers which construct - temporaries when a const reference is passed (like HP aC++), and - also when a user passes an ACE_Addr which they construct to look - just like an ACE_Addr::sap_any. Thanks to Stephen Coy - for finding this. - -Wed Oct 22 16:43:25 1997 Chris Cleeland - - * tests/Reactor_Performance_Test.cpp (client): Corrected some code - that wasn't logical (but compiled!) in the connect_n() test. - -Wed Oct 22 13:27:47 1997 Douglas C. Schmidt - - * tests/Reactor_Performance_Test.cpp (client): Revised the - connection portion of this test to use the newly revised - connect_n() method on Connector. - - * ace/Connector.cpp (connect_n): Revised the connect_n() method so - that it keeps track of which connections succeeded and which - failed. - -Wed Oct 22 07:23:21 1997 David L. Levine - - * ace/OS.i (getpgid): fixed (commented) ACE_TRACE identifer. - Thanks to Eric Newton for reporting this. - - * ace/Singleton.{h,cpp},Object_Manager.{h,cpp}: moved - ace_singleton_lock_ to Object_Manager. ace_singleton_lock_ - was a static data member: in addition to the usual troubles - associated with being a static, it was a static member of a - template class. g++ can't handle those, so we used a local - static; initialization of that static was not thread safe. - - The fix relies on knowledge from the Object_Manager about - whether the program is in static construction phase or not. - A critical assumption is that construction of static objects - does not spawn threads. With that assumption, we know that - there is only one (main) thread in the program prior to the - Object_Manager instance being constructed. At that time, - locking is not needed. The ACE_{TSS_}Singleton::instance () - methods rely on the state of the Object_Manager: if it has - not been constructed yet, then they don't guard allocation - of their singleton instance. - - The Object_Manager constructs four locks (of types ACE_Null_Mutex, - ACE_Thread_Mutex, ACE_Recursive_Thread_Mutex, and - ACE_RW_Thread_Mutex) for use only by ACE_Singleton classes. - After the Object_Manager has been constructed, ACE_{TSS_}Singleton - instantiations use one of those locks to guard their allocation of - a new instance, via double-checked locking. - - This change has one impact, then: - ACE_{TSS_}Singleton users are limited to the following types - for their ACE_LOCK instantiation parameters: ACE_Null_Mutex, - ACE_Thread_Mutex, ACE_Recursive_Thread_Mutex, and - ACE_RW_Thread_Mutex. If another type is needed, it can be - easily added to the ACE_Object_Manager: another overloaded - get_singleton_lock () function and preallocated lock would - have to be added. - - As noted in Singleton.h, the best types of ACE_LOCKs to use - for instantiating ACE_Singleton are ACE_Recursive_Thread_Mutex - and ACE_Null_Mutex. - - In addition to the above change, I made these two other - changes: - 1) ACE_Static_Object_Lock::instance (): dynamically allocate - a lock if the Object_Manager has not been constructed yet. - This approach replaces the static lock that was necessary - to allow the static services to be constructed. - - 2) Consolidated the singleton_ access in ACE_TSS_Singleton - via a singleton_i () internal accessor function. Now, - ACE_TSS_Singleton looks just like ACE_Singleton. - - * ACE-INSTALL.html: updated DEC CXX 6.0 build/test status. - - * examples/Service_Configurator/IPC-tests/server/Handle_Timeout.i - (handle_timeout): convert arg to long if ACE_HAS_64BIT_LONGS. - - * examples/Shared_Malloc/test_malloc.cpp (worker): convert arg to - long if ACE_HAS_64BIT_LONGS. - - * examples/Timer_Queue/Driver.cpp (run_test,parse_commands): - added ACE_NOTREACHED. - - * examples/Logger/simple-server/Logging_Handler.cpp (handle_close): - removed declaration of unused arg "mask". - - * include/makeinclude/rules.local.GNU: added show_statics and - show_uninit targets. They show the statics (that have static - destructor calls) and uninitialized data in the object files - in the current directory. They work best (or at all) on object - files compiled by g++. - -Wed Oct 22 05:04:07 1997 Douglas C. Schmidt - - * ACE version 4.3.25, released Wed Oct 22 05:04:07 1997. - -Tue Oct 21 22:55:36 1997 - - * ace/WFMO_Reactor: Removed ACE_Event_Handler::CLOSE_MASK and the - explicit registration for the closing of sockets from - WFMO_Reactor. This is essentially for compatibility with UNIX - programs. UNIX does not have a CLOSE_MASK and the notification - of the closing of a socket is implicit in the socket becoming - read ready. Therefore when you register for - ACE_Event_Handler::READ_MASK with WFMO_Reactor, you will - register for FD_READ and FD_CLOSE. When FD_CLOSE is triggered, - handle_input() will be called on the Event_Handler. As on UNIX, - read() will return 0 and the programmer will be able to tell - that the socket has actually closed down. - - Arguably, this is lame for Win32 programmers as they have the - explicit close notification, but portability and existing code - base wins in this case. - - One other change. When an event_handler returns -1 from the - callback, unbind() is called with ALL_EVENTS_MASK rather than - the NULL_MASK. - - The upcall routine still needs to threat the two masks - separately. (FD_CLOSE | FD_READ) will not work as both maybe - simultaneously enabled. Therefore handle_input() maybe be called - twice (once for FD_READ and once for FD_CLOSE) unless the user - returns -1 from the first callback. - - * ace/Event_Handler: Removed the CLOSE_MASK. - - * examples/Logger/simple-server/Logging_Handler.cpp: Minor fixes. - - * examples/Logger/Acceptor-server/server_loggerd.cpp: Minor - changes. No need to register the acceptor with the - Reactor. Acceptor::open() does that. - - * examples/Reactor/ReactorEx/test_network_events: Removed the use - of CLOSE_MASK. - - * tests/Reactor_Performance_Test: Removed the use of CLOSE_MASK. - -Tue Oct 21 21:48:54 1997 David L. Levine - - * ace/OS.[hi]: moved ACE_PTHREAD_CLEANUP_PUSH/POP definitions from - OS.i to OS.h. Also, added #ifdef ACE_HAS_PTHREADS protection - before ! defined ACE_LACKS_PTHREAD_CLEANUP so that only PThreads - platforms need add ACE_LACS_PTHREAD_CLEANUP. - - * tests/Notify_Performance_Test.cpp: added #include of - ace/Thread_Manager.h. It's needed on OSF-1. - -Tue Oct 21 21:09:35 1997 Nanbor Wang - - * ace/Memory_Pool.cpp (ACE_MMAP_Memory_Pool): Oops. Souldn't - access options when it is 0. - -Tue Oct 21 12:58:30 1997 Nanbor Wang - - * ace/Log_Msg.{h,cpp}: (thr_desc): Modified the method so it take - an extra argument of type ACE_Thread_Manager* and uses it to - block execution until thread manager release its lock. - - * ace/Thread_Manager.{h,cpp} (acquire_release): Added this new - method whose only function is to grab the thread manager's - lock. This function ensure that a newly spawned thread won't - try to access its thread descriptor before it is fully built. - - * ace/OS.cpp (inherit_log_msg): Modified to cache the thread - descriptor of spawned thread in TSS Log_Msg after it has been - created and block the execution of new thread until thread - manager releases the lock (i.e., fills in all the information.) - - * ace/OS.h (ACE_Thread_Adapter): Added one more argument of type - ACE_Thread_Descriptor* to the constructor with default value 0. - - * ace/OS.cpp (invoke): If the thread descriptor ptr is not zero - in thread arguemnt, then, we'll wait till the thread manger - fills in the formation and cache the value in TSS Log_Meg. - - * ace/Thread_Manager (spawn_i): Changed to pass in the thread - descriptor of the newly spawned thread to thread adapter so it - can cache it in TSS Log_Msg. This must be created before - spawning the thread. If all goes well, we'll need to append the - thread descriptor into the double-linked list in the thread - manager. - (append_thr): Added a new argument of type Thread_Descriptor* - with default value 0. If we pass in a thread descriptor, - append_thr won't try to create on itself. - -Tue Oct 21 21:34:35 1997 Douglas C. Schmidt - - * ACE version 4.3.24, released Tue Oct 21 21:34:35 1997. - -Tue Oct 21 14:14:33 1997 Carlos O'Ryan - - * examples/Timer_Queue/Thread_Timer_Queue_Test.h: - * examples/Timer_Queue/Thread_Timer_Queue_Test.cpp: - Use the typedef for Upcall to define the base Timer_Queue. - Input_Task inherits from ACE_Task_Base, no need for ACE_Task<> - here. - -Tue Oct 21 13:45:53 1997 Douglas C. Schmidt - - * ace/config-irix6.x-sgic++-nothreads.h: Added ACE_HAS_TERM_IOCTLS - for SGI. Thanks to Jeffrey Peterson - for reporting htis. - - * TAO/tests/Thruput_test/server.cpp (main): Changed BOA_init() - to POA_init(). - -Tue Oct 21 12:58:30 1997 - - * ace/OS.h (ACE_SINGLETON_DECLARATION): - (ACE_SINGLETON_INSTANTIATION): - (ACE_SVC_SINGLETON_DECLARATION): - (ACE_SVC_SINGLETON_INSTANTIATION): Added these new macros. Each - of them takes one argument which is the ACE_Singleton class. - All these craps are needed because MSVCs very kindly instantiate - the template codes for you. This ends up producing two - ACE_Singleton objects, one in DLL and one in user program. What - these macros do is to supress the template code instantiation in - user program and force compilers to instantiate these codes in - DLL. On other platforms, these macros simply expand to empty - strings. Here is a simple use case. Say we have a class - called which we want to make it a singleton using - ACE_Singleton template in our own DLL. In file , add - a line like this, - - ACE_SVC_SINGLETON_DECLARATION (ACE_Singleton); - - and it will be expanded to suitabe code to export the class or - supress another template instantiation outside DLL depending on - whether ACE_BUILD_SVC_DLL is defined or not. In file - , add a line, - - ACE_SVC_SINGLETON_INSTANTIATION (ACE_Singleton); - - at the end of the file to instantiate the template object in - DLL. Notice that there is a bug in MSVC 4.2 and you'll have to - write up a DEF file to export the template interface - explicitly. - - These macros should be integrated with the case when - ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION but because of the VC - 4.2's bug, it will cause too much trouble to export all these - symbols for external access. Therefore, I'll leave them as they - are now. - - BTW, these is no templatized singleton object within ACE that - needs to be exported at this moment. - -Tue Oct 21 07:14:24 1997 David L. Levine - - * ace/Svc_Conf_l.cpp: fixed compile warnings on g++. - - * ace/Timer_{Heap,List,Wheel}_T.cpp: replaced NULL with 0 because - some compilers, such as GHS, define NULL as (void *) 0. So, it - sometimes needs to be cast to be used. Thanks to Brian Mendel - for reporting this. - - * ace/Thread_Manager.cpp (wait): removed thr_yield () hack because - it's not needed with Nanbor's Thread_Manager fix. - - * tests/test_config.h (ACE_END_TEST): removed sleep hack with - threading because it's not needed with Nanbor's Thread_Manager fix. - - * include/makeinclude/platform_vxworks*.GNU: added VXWORKS=1 macro, - for use by individual Makefiles to suppress VxWorks builds. - - * examples/System_V_IPC: suppress VxWorks builds because the builds - fail, and the examples wouldn't run anyways. - - * netsvcs/lib/TS_Server_Handler.cpp: only instantiate - ACE_Svc_Handler if ! ACE_HAS_TLI - because without TLI, the instantiation is in - Client_Logging_Handler.cpp. - - * examples/Shared_Malloc/test_persistence.cpp: added #include of - iostream.h with ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION. - - * examples/ASX/UPIPE_Event_Server/Supplier_Router.cpp: removed - instantiation of ACE_TSS because it is in - ace/Thread_Manager.cpp. - -Tue Oct 21 02:23:26 1997 Douglas C. Schmidt - - * ACE version 4.3.23, released Tue Oct 21 02:23:26 1997. - -Tue Oct 21 02:18:56 1997 Douglas C. Schmidt - - * examples/Makefile: Things are happier now, so we've added back - the Timer_Queue directory to the Makefile. - - * examples/Timer_Queue: Added lots of annoying template - specializations so that the timer queue tests now work with GCC. - - * ace/Svc_Conf.l: Changed the regular expression for a - {string} so that it maches the null string (i.e., ""). - -Tue Oct 21 01:07:58 1997 Sergio Flores - - * examples/Timer_Queue: - Added documentation and fixed some warnings from the unused - arguments in some member functions. Cleaned up some .h files of - unnecessary template instantiations. - -Tue Oct 21 01:01:12 1997 Nanbor Wang - - * ace/Thread_Manager.h: Added more comments. - - * ace/Thread_Manager.{h,cpp}: Added a parameter to - Thread_Manager's constructor with default value 0. This - parameter is currently unused and put in for backward - compatibility. - (open): Putting back this method for backward compatibility. - This is currently a no-op. Thanks to David for reporting this. - Also modify some mis-inform comments. - -Mon Oct 20 22:34:46 1997 - - * ace/OS.i (open): Moved Win32 specific errno mappings from open() - to ACE_FAIL_RETURN. Also updated the wide-character version of - open(). - -Mon Oct 20 14:07:37 1997 Douglas C. Schmidt - - * ace/config-hpux-10.x.h: Added #define ACE_DEFAULT_BASE_ADDR - ((char *) 0x80000000) so that the various mmap() tests - will work on HP/UX. Thanks to Stephen Coy - for reporting this. - - * ace/OS.i: Fixed the implementation of ACE_OS::cond_timedwait() - so that it will work on VxWorks. Thanks to David Levine for - chasing this down and doing most of the changes. - - * ace/OS.h: Added a new special case for _KCC so that its - ACE_UNUSED_ARG will work properly. Thanks to Torbjorn Lindgren - for reporting this. - -Mon Oct 20 22:23:42 1997 Nanbor Wang - - * tests/Sigset_Ops_Test.cpp (main): It is not legal too for - sigismember to return 0 if we pass an invalid signal to it. - Thanks to Stephen Coy for fixing this. - - * Thread_Manager.*: Replace the thr_table_ with a double-linked - list thr_list_. With this change, we can cache the thread - descriptor entries in TSS area. Then, when accessing thread - descriptor from a spawned thread's context, we don't have to - search thru the whole list in order to find the corresponding - thread descriptor. Double-linked list and caching also make - adding/removing thread descriptor entries very fast. At this - moment, we need to do a linear search when we try to access the - cached pointer the first time. This overhead is expected to - removed shortly. The will be some memory leaks at this moment - because I haven't implemented the code to clean up the list when - a thread manager gets deleted. Will fix it soon. - - * Log_Msg.{h,cpp}: Removed thr_state methods, variable, and thr_id - methods and variable and replace them with thr_desc which cache - the pointer to the thread descriptor structure. - - * Containers.*: Added two new template classes - ACE_Double_Linked_List and ACE_Double_Linked_List_Iterator. - These two classes implement the very fundamental data structure - of double-linked list. Although this is not actually a - container class, I couldn't find a better place to put these - classes. - - * ace/Filecache.* - * ace/FIFO.* - * ace/FIFO_Send.* - * ace/FIFO_Recv.* - * ace/FIFO_Send_Msg.* - * ace/FIFO_Recv_Msg.* - * ace/Memory_Pool.* (ACE_MMAP_Memory_Pool_Options, - ACE_MMAP_Memory_Pool): Added one member variable to these class - so users can specify the LPSECURITY_ATTRIBUTES object they want - to use with them. - (map_file, init_inquire): Pass the security attribute to - underlying memory map object. - - * ace/Mem_Map.* (ACE_Mem_Map, map, open, map_it): Added a new - function parameter LPSECURITY_ATTRIBUTES. It will be passed - down to ACE_OS::mmap or ACE_OS::open. This is only used on - Win32. - -Mon Oct 20 08:48:28 1997 Steve Huston - - * ace/OS.h, config-hpux-10.x.h: Added a new definition, - ACE_HAS_TIUSER_H_BROKEN_EXTERN_C - HP-UX's tiuser.h has - def for t_errno/_terrno() outside of an extern "C" block, - so in this case, wrap #include in our own - extern "C" block. HP support call W3711856. - -Mon Oct 20 07:49:54 1997 David L. Levine - - * Makefile (TIMESTAMP): moved chmod after cvs commit. - - * include/makeinclude/platform_sunos{4,5}_sunc++*.GNU: don't - create Templates.DB/Modules.DB, because that should have been - Module.DB, and it's not needed anyways. - - * ace/config-vxworks-ghs-1.8.h: removed ACE_HAS_VERBOSE_NOTSUP. - - * tests/run_tests.vxworks: re-enabled Buffer_Stream_Test now that - ACE_OS::cond_timedwait () is supported on VxWorks. - - * examples/IPC_SAP/TLI_SAP/ftp-server.cpp (main): removed call - to ACE_Thread_Manager::open () because it no longer is available. - -Mon Oct 20 02:04:19 1997 Douglas C. Schmidt - - * ACE version 4.3.22, released Mon Oct 20 02:04:19 1997. - -Mon Oct 20 02:01:43 1997 Douglas C. Schmidt - - * examples/Makefile: Removed the Timer_Queue directory from the - Makefile until Sergio has fixed all the examples for GCC. - -Sun Oct 19 21:15:10 1997 Sergio Flores - - * examples/Timer_Queue: Added a new testing framework for - various types of ACE_Time_Queue usecases, e.g., threaded, - reactive, and asynchronous. - The new classes are: - which factors out the common code for - different type of Timer queue implementations, for example the parsing, - the input reading, and leaves the implementation of display_menu() for - example, to subclasses. - the asynchronous version of the timer - queue, uses signals. - implements the reactive timer queue - test driver using - the threaded implementation of the - timer queue. - this class is used to specify operations on the timer queue - independently of their implementation. Thsi allows different - implementations of the timer queue to have different ways of - doing the operations without the base class having to know that. - See the Command pattern. - Added some helper functions into the class. - - -Sun Oct 19 18:07:31 1997 Douglas C. Schmidt - - * ace: Added new config files for SCO OpenServer with a new initial scheme - to make config files: - - - The config to SCO OpenServer has been changed to separate OS - specific flags, threads and compiler flags. - - - For SCO OpenServer the base config file is config-sco-5.0.0.h - - - Pthreads base files are config-fsu-pthread.h and - config-mit-pthread for FSU and MIT pthreads. - - - The compiler file has been named config-gcc-2.7.2.h, this is - base config file for GNU gcc 2.7.2 - - To build a config file for SCO using GNU gcc 2.7.2 would be: - - #include "ace/config-gcc-2.7.2.h" - #include "ace/config-sco-5.0.0.h" - - We would obtain ACE config file for SCO OpenServer with GNU gcc - 2.7.2 with no threads. To build a config file for SCO using GNU - gcc 2.7.2 with FSU pthread would be: - - #include "ace/config-gcc-2.7.2.h" - #include "ace/config-sco-5.0.0.h" - #include "ace/config-fsu-pthread.h" - - Thanks to Arturo Montes for these - changes. - - * ace/OS.i (open): Modified ACE_OS::open() so that it sets errno - to EACCES when the requested file is in use. Thanks to Edan - Ayal for reporting this. - -Sun Oct 19 17:55:34 1997 David L. Levine - - * etc/purify.solaris2: the contents of my ~/.purify file - for Solaris 2.x. The ACE tests purify cleanly with it. - -Sun Oct 19 13:49:17 1997 Carlos O'Ryan - - * ace/Proactor.cpp: - The mutex vs lock name change strikes back, this time under NT. - - * tests/Conn_Test.h: - * tests/Conn_Test.cpp: - The Svc_Handler was cached, but it had the default - handle_close() method, which destroys the object. The new - version leaks a bit of memory, but it seems that it never - crashes. - -Sat Oct 18 09:13:29 1997 Douglas C. Schmidt - - * ace/Synch_T.cpp (lock): Moved the frigging lock method of - Atomic_Op into the *.cpp file to work around bugs with earlier - versions of the horribleHP/UX C++ compiler. Thanks to Neil - Cohen for reporting this. - -Sat Oct 18 07:43:29 1997 David L. Levine - - * Makefile (release): oops, removed "echo" that was used to - disable CVS commit, for testing. - - * ace/Thread_Manager.{h,cpp},Object_Manager.{h,cpp}: moved - ace_thread_exit_lock_ to Object_Manager. - - * include/makeinclude/rules.local.GNU: added $(TEMPLATE_REPOSITORY) - to OBJDIRS, so that individual platforms can add template - repository directories for creation. - - * include/makeinclude/platform_sunos{4,5}_sunc++*.GNU: added - TEMPLATE_REPOSITORY with Templates.DB and Templates.DB/Modules.DB. - We can build without any warnings with Sun C++ now. - -Sat Oct 18 00:17:26 1997 Douglas C. Schmidt - - * ACE version 4.3.21, released Sat Oct 18 00:17:26 1997. - -Fri Oct 17 22:51:46 1997 Carlos O'Ryan - - * ace/Timer_Queue_Adapters.h: - * ace/Timer_Queue_Adapters.i: - * ace/Timer_Queue_Adapters.cpp: - * ace/Timer_Queue_T.h: - * ace/Timer_Queue_T.i: - * ace/Timer_Queue_T.cpp: - * ace/Timer_List_T.cpp: - * ace/Timer_Wheel_T.cpp: - * ace/Timer_Hash_T.cpp: - Changed the accessor name for the lock_ field from mutex() to - lock(), we know this can cause trouble on HP-UX, but only if the - function is inline; so it was moved to the .cpp file. - - * ace/Timer_Queue_Adapters.h: - * ace/Timer_Queue_Adapters.i: - Changed the method name from lock() to mutex(), this should - workaround a bug in the HP/C++ compiler. - - * ace/Timer_Hash.cpp: - * ace/Timer_Hash_T.h: - * ace/Timer_Heap.cpp: - * ace/Timer_Heap_T.h: - * ace/Timer_List.cpp: - * ace/Timer_List_T.h: - * ace/Timer_Queue.cpp: - * ace/Timer_Queue_T.h: - * ace/Timer_Wheel.cpp: - * ace/Timer_Wheel_T.h: - Workaround HP/C++ compiler bug, we cannot include the .cpp file - from the header file, but it must be included in the point of - instantiation. - -Fri Oct 17 18:34:00 1997 Douglas C. Schmidt - - * ace/Atomic_Op.i (lock): Added an accessor to ACE_Atomic_Op to - return a reference to the underlying lock. Thanks to Janusz - Stopa for suggesting this. - -Fri Oct 17 15:36:26 1997 - - * ACE/config-win32-common.h: Added a directive to disable warning - of using Microsoft template instantiation control extension. - -Fri Oct 17 06:31:20 1997 David L. Levine - - * ace/Atomic_Op.i (operator=): rsh.value () instead of just rhs. - - * Makefile (release): added ACE_VERSION string to ace/Version.h. - The MS Resource-Compiler doesn't implement the preprocessor - # operator, so ACE_VERSION supplies the concatenated version - string. Thanks to Matthias for suggesting this. - - * ace/Svc_Handler.{h,cpp},Object_Manager.{h,cpp}: moved - ace_svc_handler_lock_ to Object_Manager. This lock was - created once per Svc_Handler instantiation. It has been - replaced by a single lock for all instantiations. That - shouldn't be a problem because there are so few Svc_Handler - instantiations, and the lock is only used for singleton - creation using double-checked locking. - -Fri Oct 17 01:19:35 1997 Douglas C. Schmidt - - * ACE version 4.3.20, released Fri Oct 17 01:19:35 1997. - -Fri Oct 17 00:05:55 1997 - - * ace/OS: Added ACE_Export to declarations to: - ace_mutex_lock_cleanup_adapter, ftruncate, ace_thread_adapter - - * ace/OS.cpp (readv, writev): Moved ACE_Export directive from - OS.cpp to OS.i. - - * ace/Atomic_Op (operator TYPE): operator TYPE() of Atomic_Op has - been deprecated and removed. Because both user-defined - conversions and user-defined operators were defined on - Atomic_Op, it was possible to get ambiguities between the - user-defined operators and the built-in operators. Therefore, - operator TYPE() has been removed and explicit accessor value() - has been added. Thanks to Stephen Coy for - suggesting this. - - * ace/Atomic_Op (operator!=): Add new operator. - - * tests/Atomic_Op_Test.cpp: Previously we had foo.operator== (5). - It was necessary to resolve the ambiguities between the - user-defined operators and the built-in operators. Since we have - removed the automagic type conversion, we can go back to writing - foo == 5. - - * ACE: Atomic Op related minor changes: - - ace/Malloc.cpp (dump): - tests/Future_Test.cpp (main): - tests/Reactors_Test.cpp (handle_input): - example/Threads/{future1.cpp future2.cpp manual_event.cpp task_two.cpp tss2.cpp}: - examples/Reactor/Misc/test_reactors.cpp: - - * tests/Notify_Performance_Test.cpp: - * tests/Reactor_Performance_Test.cpp: - - Moved explicit template instantiation code to ACE_HAS_THREADS - part for the test. Thanks to Stephen Coy - for pointing this out. - -Thu Oct 16 20:44:40 1997 James C Hu - - * ace/Message_Block.cpp: Changed how continuations are released in - the Message_Block::release_i() method to use an iteration rather - than recursion. This is to avoid a stack overflow problem - encountered by Janusz Stopa. - - * ace/OS.cpp: Added ACE_Export to the declarations of ::writev and - ::readv. These are emulation implementations for systems that - don't support them natively. Was not being resolved correctly - on NT. Hopefully this will fix it. Fix suggested by Rob Head - (rhead@virtc.com). - -Thu Oct 16 14:21:34 1997 Nanbor Wang - - * ace/Proactor.cpp: Replaced #include "ace/Servie_Config.h" with - #include "ace/Object_Manager.h" for declaration of - ACE_Static_Object_Lock. - -Thu Oct 16 10:22:48 1997 Carlos O'Ryan - - * ace/Timer_Heap_T.h: - Fixed comment on the Heap_Iterator, it said "Iterates over an - "). - -Thu Oct 16 08:43:50 1997 David L. Levine - - * ace/OS.i (sema_trywait): on VxWorks only, fixed to set errno to - EBUSY if the semaphore couldn't be taken. Thanks to Doug for - suggesting this fix. - - * performance-tests/Misc/preempt.cpp (main): fixed program name. - - * include/makeinclude/platform_osf1_4.0.GNU: OCFLAGS instead of OFLAGS. - - * tests/test_config.h (VxWorks): restored the removal of the log - file, because it again appears to be necessary. - - * tests/run_tests.vxworks: updated VxWorks tests status. - - * ace/OS.cpp,Token_Invariants.{h,cpp},Object_Manager.{h,cpp}: - moved ace_os_monitor_lock and ACE_Token_Invariants_Creation_Lock - to Object_Manager. - -Thu Oct 16 02:26:12 1997 Douglas C. Schmidt - - * ACE version 4.3.19, released Thu Oct 16 02:26:12 1997. - -Thu Oct 16 02:07:54 1997 Douglas C. Schmidt - - * tests/Priority_Reactor_Test.cpp: Added a "max_retries" flag to - keep the test from hanging forever... Thanks to Stephen Coy - for motivating this. - - * tests/Priority_Reactor_Test.h: Changed - - class Read_Handler : public ACE_Svc_Handler< - - to - - class Read_Handler : public ACE_Svc_Handler< - - and the same for the Write_Handler. Thanks to the ever vigilant - Stephen Coy for reporting this. - -Thu Oct 16 01:18:48 1997 Nanbor Wang - - * ace/OS.cpp (socket_init): Changed to use ACE_UNUSED_ARG. - - * ace/SV_Semaphore_Simple.cpp (name_2_key): Explicitly cast the - return value to (key_t). It was causing problem on Win32. - -Wed Oct 15 22:47:30 1997 Carlos O'Ryan - - * ace/ACE.h: - * ace/ACE.cpp: - Added an implementation of the ISO 8802-3 standard 32 bits CRC, - but for strings only. The implementation was taken from the - FreeBSD code. - - * ace/SV_Semaphore_Simple.cpp: Improved the hashing algorithm to - assign a "unique" key for semaphore keys using an string. This - solves a problem detected by Mark L. Boriack - (Mark.L.Boriack@cpmx.saic.com): under OSF/1 the were too many - collitions with the default arguments for ACE_Process_Mutex. - Note that this is only a problem if no name is given to it. - - * ace/Log_Msg.cpp: ACE_Log_Msg_message_queue_ was not initialized - in platforms without threads. - - * ace/Containers.h: Added a duplicate ACE_Ubounded_Stack_Iterator - to the NANBOR_EXP_CHANGES block. - - * ace/OS.h (ACE_DES_FREE_TEMPLATE): Removed unneeded concatenation - that was getting the HP/aCC compiler a bit confused. Thanks to - Stephen Coy for pointing out the problem - and then reminding me of actually adding the solution to ACE. - -Wed Oct 15 11:07:47 1997 Douglas C. Schmidt - - * ace/OS.i: Fixed the flock_trywrlock() and flock_tryrdlock() so - that they both set errno = EBUSY if they lock is already held. - - * ace/OS.i (mutex_trylock): Make the VxWorks version consistent - with the other versions by returning -1 and setting errno to - EBUSY. Thanks to David Levine for reporting this. - - * ace/Synch.h: Updated the documentation to clarify what the - return value is from the tryacquire() methods. - - * ace/OS.i (mutex_trylock): On NT, if we try to acquire a mutex - that's already locked we'll return -1 and set errno to EBUSY - rather than ETIME to be consistent with Pthreads. Please see - the following entry to understand why this doesn't break - existing code ;-). - - * ace/OS.h: Added a #define for EBUSY on NT. We'll make it the - same as ETIME to avoid breaking existing code! - - * tests/Process_Strategy_Test.cpp (main): Ignore SIGCHLD in the - child. - -Wed Oct 15 14:59:41 1997 - - * tests/run_tests.bat: Added Reactor_Performance_Test and - Notify_Performance_Test to one button test script. - - * tests/tests.dsw: Added Reactor_Performance_Test.dsp and - Notify_Performance_Test.dsp. - -Wed Oct 15 07:21:05 1997 David L. Levine - - * ace/ACE.{h,i},Version.h: added ACE version macros, and static - functions to access them in class ACE. - - * Makefile (release): updates ace/Version.h based on contents of - VERSION. - - * tests/Time_Value_Test.cpp: added test of ACE version accessors. - - * ace/OS.cpp,Object_Manager.cpp: changed ACE_TSS_CLEANUP_LOCK - from an ACE_Thread_Mutex to an ACE_Recursive_Thread_Mutex. - - * ace/OS.h: define ACE_NOTREACHED as empty on DEC_CXX (and - on ghs instead of VXWORKS). - - * tests/TSS_Test.cpp (worker): convert void *c to long if - ACE_HAS_64BIT_LONGS to avoid DEC cxx compiler warning. - - * examples/Threads/thread_specific.cpp (worker): convert void *c - to long if ACE_HAS_64BIT_LONGS. Changed name of "lock" to - "printf_lock" to avoid collision with lock () in DEC cxx - iostream.hxx. - - * examples/threads/tss1.cpp: removed unused static "lock". - - * examples/IPC_SAP/TLI_SAP/ftp-server.cpp (read_file): convert - void *fd to long if ACE_HAS_64BIT_LONGS. And, put "n" in - ACE_UNUSED_ARG. (main): put "return 0" in ACE_NOTREACHED. - - * include/makeinclude/platform_osf1_4.0.GNU: minor cleanup, incl. - addition of -use_ld_input to SOFLAGS. - - * include/makeinclude/platform_osf1_4.0_g++.GNU: added "c" to - ARFLAGS. - - * tests/Future_Test.cpp,examples/Threads/future[12].cpp - (Method_Object_Name): removed extraneous ";" after function - definition. - - * netsvcs/lib/Base_Optimizer.h: adding missing, default "public" - access specifier. - - * apps/JAWS/Server/HTTP_Config.h: added "class" to friend HTTP_Config - declaration in HTTP_Config_Info. - - * examples/IPC_SAP/TLI_SAP/ftp-client.cpp: removed unused variable - "MAXLINE". - - * examples/IPC_SAP/TLI_SAP/db-server.cpp (main): wrapped "return 0" - with ACE_NOTREACHED. - - * examples/Reactor/Misc/test_timer_queue.cpp (handle_timeout): - convert void *arg to long if ACE_HAS_64BIT_LONGS. - - * examples/Service_Configurator/IPC-tests/client/ - local_fifo_client_test.cpp: removed unused variable BUF_LEN. - - * examples/Shared_Malloc/test_persistence.cpp: - removed unused Employee ostream << operator. - - * tests/Conn_Test.cpp: neutered Conn_Test on DEC_CXX. It - doesn't build on DEC cxx 5.5 due to apparent template - instantiation problems. Thanks to James Johnson for - reporting that. And it doesn't terminate when built with - DEC cxx (beta) 6.0. - - * ace/Thread_Manager.h: removed parens from (???) because - g++ got upset about encountering a trigraph. - - * tests/{Notify,Reactor}_Performance_Test.cpp: added - ACE_UNUSED_ARG (handle). - - * tests/Makefile,run_tests.sh: added Reactor_Performance_Test and - Notify_Performance_Test. - - * tests/run_tests.vxworks: added test status of - Reactor_Performance_Test (doesn't appear to do anything, - but doesn't return) and Notify_Performance_Test (fcntl - not supported). - -Wed Oct 15 01:48:36 1997 Nanbor Wang - - * ace/Containers.{h,i,cpp}: - * ace/Thread_Manager.{h,i,cpp}: Start modifying these files. - Will work on them for a day or two. You guys shouldn't worry - about these changes affecting anything because I surround my - changes with #ifdef (NANBOR_EXP_CHANGES) my changes #else - original codes #endif. More details change log will be added - once I get them all working. - -Tue Oct 14 23:54:21 1997 Douglas C. Schmidt - - * ACE version 4.3.18, released Tue Oct 14 23:54:21 1997. - -Tue Oct 14 20:27:28 1997 Carlos O'Ryan - - * tests/Priority_Reactor_Test.cpp: - Added a debug message to find out who terminates the reactor - thread. - - * tests/Priority_Reactor_Test.cpp: - The children could not connect sometimes, this will cause the - test to hang, waiting for those failed connections. - I added a simple exponential backoff strategy to retry - connections until they succeed. - -Tue Oct 14 17:48:28 1997 Steve Huston - - * ace/config-hpux-10.x-hpc++.h: Set ACE_LACKS_SIGNED_CHAR for - both C++ and aC++, not just C++. Thanks to Stephen Coy and - David Levine for finding this. - -Tue Oct 14 03:26:17 1997 Douglas C. Schmidt - - * ace/OS.h: Moved to earlier in the file so that - u_int will be defined. Thanks to Neil B. Cohen - for reporting this. - - * ace/OS.cpp (uname): Added a workaround for the fact that - Chorus doesn't support uname(). Thanks to Wei Chiang for - this fix. - -Tue Oct 14 08:02:20 1997 David L. Levine - - * ace/Managed_Object.{h,cpp} (ACE_Cleanup_Adapter): added virtual - destructor, needed by some compilers for vtable placement. - Thanks to Stephen Coy for this patch. - - * ace/Svc_Conf_y.cpp: commented out unused args and wrapped - assignments in "if" conditionals to avoid g++ warnings. - - * ace/Object_Manager.{h,cpp},Synch.{h,cpp}: moved - ACE_Static_Object_Lock from Synch.{h,cpp} to Object_Manager.{h,cpp}. - This allows it to be absorbed into the ACE_Object_Manager's - preallocated locks. The ACE_Static_Object_Lock interface - isn't really needed any more, but has been kept for backward - compatibility. - - * ace/Object_Manager.cpp: use a static ACE_Static_Object_Lock, - temporarily, because the ACE static services needs it. - - * ace/Malloc.cpp,Reactor.cpp,Service_Repository.cpp: added - #include "ace/Object_Manager.h" for ACE_Static_Object_Lock. - - * ace/Thread_Manager.h: moved ACE_Thread_Manager::THR_FUNC typedef - outside the class declaration to avoid compilation problems on - g++/VxWorks/i960 with -g. THR_FUNC is only used by protected - ACE_Thread_Manager methods so this doesn't widen the public - interface. Thanks to Aaron Valdivia for - reporting this and verifying the fix. - - * tests/IOStream_Test.cpp (client): multiply floats by 1.0 instead - of 1 to avoid bad code generation on g++/VxWorks/i960. Thanks to - Aaron Valdivia for reporting this. - - * tests/Buffer_Stream_Test.cpp: removed unused static thread_manager. - It caused core dump during destruction of static objects with - ACE_HAS_NONSTATIC_OBJECT_MANAGER. - - * examples/Timer_Queue/Reactor_Timer_Queue_Test.cpp (handle_timeout): - removed declaration of unused arg "tv". - - * examples/Timer_Queue/Thread_Timer_Queue_Test.cpp (main): - removed declarations of unused args "argc" and "argv". And, - updated template instantiations. - - * ace/OS.h: use "complex" ACE_UNUSED_ARG for DEC_CXX. - - * ace/Reactor.i (implementation): moved definition to top of - file to prevent use before definition. - - * ace/ARGV.cpp (ACE_ARGV): removed extraneous ; function definition. - - * ace/config-osf1-4.0.h: removed ACE_NEEDS_DEV_IO_CONVERSION. - - * tests/Time_Value_Test.cpp: ACE_HAS_64BIT_LONGS instead of - ACE_HAS_64BIT_LONG. - -Tue Oct 14 03:13:38 1997 Douglas C. Schmidt - - * ACE version 4.3.17, released Tue Oct 14 03:13:38 1997. - -Tue Oct 14 03:10:00 1997 Douglas C. Schmidt - - * ace/Service_Types.cpp (fini): Backed out the following change - until we figure out how to keep existing Svc_Handler code from - dying... Thanks to Nanbor for reporting this. - - * ace/Service_Types.cpp: Changed the implementation so that we - bypass the default cleanup originally done in - ACE_Service_Type_Impl::fini() and instead perform the cleanup in - ACE_Service_Object_Type::fini (void). Thanks to Alex Chan - for reporting this. - - * ace/Svc_Conf.y: Make sure that the Module has the same name as - the Module_Type object from the svc.conf file. We need to do - this because the Stream_Type::fini() method removes each module - by the name given in the configuration file (stored in the - Module_Type object). But the Stream::remove() method compares - this name against the name stored in the Module. So the object - is deleted, but never removed from the list. Another traversal - of the list causes a crash... Thanks to Eric Newton for - suggesting this fix. - - * ace/OS.cpp (invoke): Added call to AfxEndThread insides - ACE_TSS_Cleanup::exit() such that the same cleanup would not be - executed again when threads exit in ace_thread_adapter() in - OS.cpp. Thanks to Alex Chan for - reporting this. - - * ace/Service_Config.cpp (process_directives): Avoid reporting - lex/yacc leakage since there is nothing we could do about it. - Thanks to Alex Chan for reporting this. - - * ace/Svc_Conf.y: Removed duplicate call to symbol() to avoid the - problem that dynamic service objects are created twice. Thanks - to Alex Chan for reporting this. - - * examples/Reactor/FIFO/client.cpp (main): Fixed the call to - fifo_sender.send () so that it passes msg rather than &msg. - Thanks to Sandro Doro for reporting this. - -Tue Oct 14 02:49:02 1997 - - * tests/Notify_Performance_Test.cpp: New performance test. This - test is used to time the notification mechanisms of the - ACE_Reactors. Both the WFMO_Reactor and Select_Reactor can be - tested. The notify() mechanism can also be tested with or - without data. - - * tests/Reactor_Performance_Test.cpp: New performance test. This - test is used to time the dispatching mechanisms of the - ACE_Reactors. Both the WFMO_Reactor and Select_Reactor can be - tested. - - * ace/Svc_Handler.cpp (shutdown): Change READ_MASK | WRITE_MASK to - ALL_EVENTS_MASK. - - * ace/Atomic_Op (value): Added an explicit value accessor. - -Mon Oct 13 23:07:15 1997 Douglas C. Schmidt - - * tests/Process_Strategy_Test.cpp (handle_signal): Removed the - ACE_DEBUG calls in the child reader signal handler. This was - causing all sorts of random problems due to the asynchronous - nature of signals. Thanks to David Levine for pointing this - out. - -Mon Oct 13 16:27:46 1997 Carlos O'Ryan - - * tests/Priority_Reactor_Test.h: - * tests/Priority_Reactor_Test.cpp: - Fixed wrong header file, thanks to Irfan (irfan@cs.wustl.edu) - - * examples/Shared_Malloc/test_persistence.cpp: - * examples/Timer_Queue/Thread_Timer_Queue_Test.cpp: - Added a couple of ACE_NOTREACHED, thanks to Torbjorn Lindgren - for pointing out this one. - - * ace/Priority_Reactor.cpp: - Added some more template specializations. - - * tests/Priority_Reactor_Test.cpp: - Fixed a number of bugs: hostname not initialized when creating - the server address. - The Svc_Handler base class should be instantiated using the - ACE_*_STREAM macros. - The code for non-threaded platforms was broken. - Thanks to Irfan - - * tests/Priority_Task_Test.cpp: - We use the new ACE_Sched_Priority_Iterator. - - * include/makeinclude/platform_irix6.x-32_sgic++.GNU: - * include/makeinclude/platform_irix6.x-n32_sgic++.GNU: - Removed this old config files, they have been superseeded by - platform_irix6.x_sgic++.GNU. - -Mon Oct 13 15:41:32 1997 Steve Huston - - * ace/Select_Reactor.i, Priority_Reactor.i: Moved code for the - ACE_Event_Tuple struct from Priority_Reactor.i to Select_Reactor.i. - - * ace/Priority_Reactor.cpp: added #include Malloc_T.h to build on AIX. - - * ace/Synch_T.h, Timer_Queue_Adapters.h - added a template argument - to the non-ACE_HAS_TEMPLATE_TYPEDEFS, multi-threaded version of - the ACE_SYNCH_CONDITION macro - of the 3 possibilities for its - definition, this is the only case which requires a template - argument. Timer_Queue_Adapters.h is the only user of the definition, - and it was changed to not supply the template argument. - - * tests/Conn_Test.h: - * tests/Process_Strategy_Test.h: Added #include "ace/SOCK_Stream.h" - -Mon Oct 13 13:42:05 1997 Nanbor Wang - - * examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp (svc): - Added a macro to define L_cuserid on Win32. - -Mon Oct 13 13:44:40 1997 - - * ace/Priority_Reactor: Fixed a gross violation of ACE coding - standard. Changed bucket to bucket_. - -Mon Oct 13 12:58:01 1997 David L. Levine - - * ace/OS.i: moved ACE_OS::strcasecmp () definition after - ACE_OS::strlen () to prevent use before definition. - - * ace/Priority_Reactor.i: reordered initializers to match - declaration order. - - * ace/Sched_Params.i: reordered function definitions to prevent - uses before definitions. - - * ace/Thread_Manager.cpp (ACE_Thread_Descriptor ctor): reordered - initializers to match declaration order. (spawn_i): added - ACE_UNUSED_ARG (t_handle) without WTHREADS. - - * ace/Thread_Manager.cpp (wait): moved all of the "join" block - inside the #ifndef VXWORKS so that it compiles on VxWorks. - - * ace/Strategies_T.cpp (ACE_NOOP_Creation_Strategy:: - make_svc_handler): removed unused arg declaration to avoid - compiler warning. - - * ace/Svc_Conf_y.cpp: commented out unused args and wrapped - assignments in "if" conditionals to avoid g++ warnings. - - * tests/Priority_Reactor_Test.cpp (handle_input): added - ACE_UNUSED_ARG (h). - - * examples/Connection/non_blocking/CPP-connector.cpp (handle_signal): - added ACE_UNUSED_ARG (signum). - -Mon Oct 13 03:25:45 1997 Douglas C. Schmidt - - * ACE version 4.3.16, released Mon Oct 13 03:25:45 1997. - -Mon Oct 13 03:18:33 1997 Douglas C. Schmidt - - * ace/Thread_Manager.h: Removed the following code from - ACE_Thread_Control: - - #if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0) - static ACE_Thread_Mutex ace_thread_lock_; - // Lock the creation of the Singleton. - #endif /* defined (ACE_MT_SAFE) */ - - What on earth was this doing here?! Thanks to Stephen Coy - for reporting this. - -Mon Oct 13 00:10:00 1997 - - * tests/Atomic_Op_Test.cpp (main): Changed "foo == 5L" to - "foo.operator== (5L)" because the former was breaking some - compilers (e.g., HP/UX aCC). - - * ace/Connector.h (open): Removed the defaults arguments since - some compilers complain about the two open()s being - indistinguishable. - -Sun Oct 12 23:51:57 1997 Douglas C. Schmidt - - * ace/{Synch_T,Atomic_Op}: All the relational operators should - return int (really return bool) rather than TYPE. - -Sun Oct 12 18:41:01 1997 Carlos O'Ryan - - * tests/Priority_Reactor_Test.cpp: - Added several missing template specializations. - - * ace/Priority_Reactor.cpp: - Fixed typo (#pragme for #pragma). - Added several missing template instantiation. - - * ace/Timer_Queue_Adapters.cpp: - The includes were missing and there was a minor syntax error. - -Sun Oct 12 16:16:15 1997 Nanbor Wang - - * ace/ace_{dll,lib}.dsp: Added Timer_Queue_Adapters.cpp into - project files. - - * tests: Added a new test Priority_Reactor_Test. - - * ace/Timer_Queue_Adapters.{h,i}: Added or moved the line that - instructs edit mode to use on emace to the first line. Also - added ACE_Export to classes in this file. - - * ace/Timer_Queue_Adapters.cpp: Added proper inclusion of the - header file. Corrected a syntax error. - - * examples/Timer_Queue/Timer_Queue.dsw: Added a new project - Thread_Timer_Queue_Test.dsp. - - * tests/run_tests.{bat,sh}: Added MT_SOCK_Test and - Priority_Reactor_Test into one-buttoned test set. - -Sun Oct 12 16:53:32 1997 Douglas C. Schmidt - - * ace/examples/Service_Configurator/IPC-tests/server: Reformatted - and recommented the code a bit. - - * ace/OS: Added 3 new ACE #defines: - - #define ACE_ONE_SECOND_IN_MSECS 1000L - #define ACE_ONE_SECOND_IN_USECS 1000000L - #define ACE_ONE_SECOND_IN_NSECS 1000000000L - - This is much easier to read than trying to keep track of the - 000s! Then, replaced all uses of the original values with the - new symbolic constants. - - * ace/Timer_List.cpp: Removed an explicit template instantiation - of ACE_Async_Timer_Queue_Adapter<>. Why was it here in the - first place? - - * ace: Created a new group of Timer_Queue_Adapters files and moved - the Async and Thread adapters into this file. This reduces the - amount of coupling in the ACE library and removes problems with - circular includes. - - * ace/Timer_Queue_T: Added a new ACE_Thread_Timer_Queue_Adapter, - which makes it possible to use a timer queue in a thread - automagically. Thanks to Carlos O'Ryan for writing this. - - * examples/Timer_Queue: Began to integrate Carlo's new thread - timer queue test. - - * examples/Timer_Queue/Async_Timer_Queue_Test.cpp: Changed the - timer queue from a Timer_List to a Timer_Heap. - - * examples/Makefile (DIRS): Added Timer_Queue to the list of DIRS - to build. - -Sun Oct 12 16:45:47 1997 Carlos O'Ryan - - * ace/Sched_Params.h: - Added some comments. - - * examples/Timer_Queue/Thread_Timer_Queue_Test.cpp: - Added some comments and template specializations. - - * examples/Naming/Makefile: - There is no need to set LDLIBS to add local object files - anymore, using FILES is enough. - -Sun Oct 12 03:35:37 1997 Nanbor Wang - - * examples/Timer_Queue: Added a new directory for testing of - various usages of timer queue. - - * tests/Async_Timer_Queue_Test: Moved to examples/Timer_Queue. - It doesn't really belong to tests/ directory. - - * ace/ACE.cpp (register_stdin_handler): Must register the reactor - we are using to the event handler. - (read_adapter): Must notify the reactor when we are done with - handling stdin event. - -Sun Oct 12 00:26:56 1997 Carlos O'Ryan - - * ace/Makefile: - * ace/Priority_Reactor.h: - * ace/Priority_Reactor.i: - * ace/Priority_Reactor.cpp: - Augmentes Select_Reactor, adding priority based dispatching for - the I/O Event_Handlers, the only feature supported is - dispatching in the order defined by the priorities. - Each Event_Handler defines its priority, if the priority is out - of range the culprit is "punished" by dispatching at the lowest - priority. - Care has been exercised to avoid dynamic memory allocation. - - * tests/Makefile: - * tests/Priority_Reactor_Test.h: - * tests/Priority_Reactor_Test.cpp: - Added small tests of the Priority_Reactor, the test runs an - Acceptor on the main thread and creates several threads (or - processes if the plaform does not support threads) that connect - to this Acceptor. The writing threads send several short - messages, the main thread receives them using one Svc_Handler - per writer, dispatched at different priorities. - The test itself is interesting, it shows how to write very - simple Svc_Handler, Connectors and Acceptors. - - * ace/Select_Reactor.h: - * ace/Select_Reactor.cpp: - The dispatching of all the handles in a "group" (READ, WRITE or - EXCEPT) was encapsulated in a single routine. - - * ace/Malloc_T.cpp: - In the Cached_Allocator memory was allocated as an arrays of - char, it must be released the same way. - - * ace/Sched_Params.h: - * ace/Sched_Params.i: - Added a new class (ACE_Sched_Priority_Iterator) to iterate over - the priorities. - - * tests/Priority_Task_Test.cpp: - Added some comments. - -Sat Oct 10 16:23:49 1997 Steve Huston - - * tests/SOCK_Connector_Test.cpp: Passes the test if the should-fail - non-blocking test fails for any reason - not limited to ECONNREFUSED - or ENOTCONN. - -Sat Oct 11 16:02:33 1997 Douglas C. Schmidt - - * ACE version 4.3.15, released Sat Oct 11 16:02:33 1997. - -Sat Oct 11 14:38:16 1997 Douglas C. Schmidt - - * ace/SOCK_Connector.cpp (complete): Fixed a typo with - ACE_NON_BLOCKING_BUG_DELAY. Thanks to John Zeb Dhom" - for reporting this. - - * tests/MT_SOCK_Test.cpp (client): Slightly revised the client - function so that it doesn't try to use non-blocking connects if - it's on a Win32 platform that has bugs with non-blocking - connects. - - * ace/SOCK_Connector.cpp: It appears that connect() can set the - ETIMEDOUT errno if the connection times out (whatever that - means). Therefore, I need to check for that errno, rather than - ETIME after calling connect(). - - * tests/SOCK_Connector_Test.cpp: Added a check for ETIMEDOUT - since this appears to be set by some platforms (e.g., - SGI). - -Sat Oct 11 02:52:10 1997 Douglas C. Schmidt - - * ACE version 4.3.14, released Sat Oct 11 02:52:10 1997. - -Sat Oct 11 02:10:29 1997 Carlos O'Ryan - - * examples/Logger/simple-server/Makefile: - * examples/Mem_Map/IO-tests/Makefile: - * examples/Reactor/Multicast/Makefile: - * examples/Service_Configurator/Misc/Makefile: - Fixed some more problems with the Makefiles for binaries; I took - the chance and added RCS ids on the Makefiles - -Fri Oct 10 18:39:39 1997 Douglas C. Schmidt - - * tests/Service_Config_Test.cpp: Moved the static member function - called cleanup() out into a stand-alone extern "C" function - called test_singleton_cleanup() to workaround MVS C++ compiler - bugs. Thanks to Chuck Gehr for reporting this. - - * ace/Task.cpp: Solved the age old MVS C++ problem where we can't - register C++ static member functions as C callback functions. - The solution here was to create a C wrapper to do the callback. - Thanks to Chuck Gehr for reporting this. - - * tests/Service_Config_Test.cpp: Made the destructor of - Test_Singleton public to work around bugs with the MVS C++ - compiler. Thanks to Chuck Gehr for reporting this. - - * ace/ACE, - ace/Proactor, - ace/SOCK_Connector, - ace/SPIPE_Connector, - ace/Acceptor, - tests/Conn_Test: Changed ETIMEDOUT errno to ETIME errno to be - consistent throughout ACE. There should be no uses of - ETIMEDOUT in ACE or the test apps and examples. - - * ace/ACE.cpp (handle_timed_complete): Only assume that we've - timed out if the return value from select() == 0 *and* the - timeout value isn't NULL... - - * ace/Object_Manager.h: Replaced the use of ACE_MT() in the header - file with a #ifdef. This solves problems that arise when ACE_MT - is defined as "nothing" when MT_SAFE is not defined. As a code - which has "ACE_MT();" becomes just ";" and fail to compile. - Thanks to Avraham Nash for reporting - this. - -Fri Oct 10 19:55:50 1997 Carlos O'Ryan - - * examples/ASX/CCM_App/Makefile: - * include/makeinclude/rules.bin.GNU: - I have re-applied Steve Huston changes from Oct 01, the change - was (IMHO) useful and made compilation cleaner. - - * examples/ASX/Event_Server/Event_Server/Makefile: - Fixed problem that made compilation fail. - -Fri Oct 10 19:52:44 1997 - - * ace/OS.h: - * ace/Connector.cpp: - * ace/SOCK_Connector.cpp: Added new #define - ACE_NON_BLOCKING_BUG_DELAY and replace their uses from some - magic numbers to this constant. - -Fri Oct 10 19:27:28 1997 Steve Huston - - * include/makeinclude/rules.bin.GNU - examples/ASX/CCM_App/Makefile - Removed the changes to these files added Oct 01. - -Fri Oct 10 15:21:07 1997 - - * examples/Connection/non_blocking/CPP-connector.cpp - (disconnecting): Remove this method. It was not being used. Also - rewrote some parts of handle_close to make the code simple. - - * ace/Connector.cpp (create_AST): The register_handler() method - now needs to explicitly be given the handle to wait on. This is - because the get_handle() method of Connector has been - depricated. - - * examples/Connection/non_blocking/test_sock_connector.cpp (main): - Since this test waits on the STDIN handle to become ready, we - have to make sure that the WFMO_Reactor is used on Win32. This - is necessary since select() on NT does not support waiting on - STDIN. - - * examples/Connection/non_blocking/CPP-connector.cpp (open): On - Win32, the std handle must be registered directly (and not as a - socket). On non-Win32, the std handle must be registered as a - normal handle with the READ mask. Since on Win32, STDIN is used - directly as an waitable handle, handle_signal will be called - instead of handle_input. Therefore, we had to add handle_signal - to the event_handler. - -Fri Oct 10 15:16:47 1997 Nanbor Wang - - * ace/WFMO_Reactor.{h,cpp}: - * ace/Select_Reactor.{h,cpp}: - * ace/Reactor_Impl.h: - * ace/Reactor.h: Added 2 new functions in ACE_Reactor class so we - can replace the signal handler and timer queue the reactor is - using. Notice that you should do this before you start the - reactor, otherwise, you may loose your scheduled timed events. - -Fri Oct 10 14:49:40 1997 Douglas C. Schmidt - - * bin/man2html: Added a new set rul -e 's/^$/

/g', which - correctly preserves paragraph boundaries. Regenerated all of - the ACE html documentation so that it is much better formatted. - -Fri Oct 10 11:08:02 1997 Carlos O'Ryan - - * tests/run_tests.sh: - We remove the log file before running a test, we also check for - the log file existance before running run_test.check on - it. Thanks to Dean Clamons for - helping us with this. - - * tests/run_tests.check: - IRIX egrep does not support -q, we redirect the output the - /dev/null instead. - -Fri Oct 10 01:46:07 1997 Douglas C. Schmidt - - * ACE version 4.3.13, released Fri Oct 10 01:46:07 1997. - -Thu Oct 9 22:23:56 1997 Douglas C. Schmidt - - * ace/Thread_Manager.cpp: Moved the explicit template - instantiations for ACE_Unbounded_Queue out of the complicated - #ifdef since we also want this to compile even if we don't have - threads. - - * tests/MT_SOCK_Test.cpp: Revised the code so that it uses - processes on UNIX rather than threads. - - * tests/SOCK_Test.cpp (spawn): Cleaned up the code to make it - correct. - - * ace/Get_Opt.cpp (ACE_Get_Opt): Changed the third argument to the - ACE_Get_Opt constructor be changed from `char *' to `const char - *'. Thanks to Eric Newton for suggesting this. - -Thu Oct 09 18:43:14 1997 - - * ace/Strategies_T.cpp (connect_svc_handler): Added - synchronization to the method as the setting of the in_use bit - in the service handler must be done atomically with the finding - and binding of the service handler in the cache. - - * tests/Conn_Test.cpp (client_connections): Added multithreading - to the test in order to test out the new MT features of the - Connector. - - * ace/OS.cpp (invoke): Somehow there was a bug introduced in - ACE_Thread_Adapter::invoke where the user entry point was being - called twice! - -Thu Oct 09 17:54:31 1997 Douglas C. Schmidt - - * ACE version 4.3.12, released Thu Oct 09 17:54:31 1997. - -Thu Oct 9 17:46:59 1997 Carlos O'Ryan - - * ace/Thread_Manager.cpp: - Added explicit instantiation of - ACE_Unbounded_Queue_Iterator, it seems to - be needed on Linux and other platforms; thanks to Huiying Shen - for pointing out this one. - - * ace/OS.h: - * ace/OS.i: - Reverted the change that added support for - pthread_setconcurrency on IRIX, the function was supposed to be - undocumented, but present on the libraries, I could not find it - in any of the SGI machines we have access to.; not even - - * ace/Thread_Manager.cpp: - On IRIX/SGIC++ we need to instantiate ACE_Node too. - - * ace/SOCK.h: - Moved the open() method to the public interface, it is used by - ACE_SOCK_Connector. - -Wed Oct 8 20:01:35 1997 Douglas C. Schmidt - - * ace/SOCK_Connector: Modified the ACE_SOCK_Connector so that it - doesn't maintain state and doesn't inherit from ACE_SOCK. - Therefore, we can have multiple threads using the same - ACE_SOCK_Connector simultaneously without any reentrancy - problems. - - * ace/SOCK.h: Moved the open() method into the public part of the - class so it can be used in ACE_SOCK_Connector::connect(). - - * ace/Connector.h: Removed the this->connector_ from the - ACE_Connector class in order to make this pattern work correctly - with multi-threaded programs. Also removed the connector() - accessor (which was never useful anyway). - - * ace/SOCK.cpp (open): Explicitly test setsockopt() for -1 in case - of failure. - - * tests/SOCK_Test.cpp (server): Revised this test to reflect the - fact that it doesn't iterate, but only runs one client and one - server. - - * tests: Added a new test for multi-threaded sockets called - MT_SOCK_Test.cpp. Thanks to Bob Laferriere - for motivating this test. - -Wed Oct 8 12:09:46 1997 Nanbor Wang - - * ace/OS.i (strcasecmp): Oops, we forgot to compare the strlen - first. Thanks to Murphy Ivan for - fixing the bug. - - * ace/OS.h: Added THR_DAEMON macro definition for Win32 (et. al.?) - to avoid compilation error. - Removed ACE_HAS_BROKEN_TEMPLATE_DESTRUCTOR and related macros. - -Wed Oct 8 09:52:20 1997 Carlos O'Ryan - - * ace/Parse_Node.cpp: - Fixed the minor syntax error *again*. - -Tue Oct 7 17:10:51 1997 Carlos O'Ryan - - * ace/Token_Manager.cpp: - Added a defined(ACE_MT_SAFE) protection around the lock creation - on ACE_Token_Manager::instance(), otherwise it would not work on - platforms without threads. Thanks to "Neil B. Cohen" - for pointing this one out. - -Tue Oct 7 07:07:45 1997 Douglas C. Schmidt - - * ace/Parse_Node.cpp (symbol): Added an ACE_ERROR_RETURN instead - of an ACE_RETURN to bail out if an error occurs. Thanks to Eric - Newton for reporting this. - -Tue Oct 7 10:57:48 1997 Carlos O'Ryan - - * ace/OS.h: - Added a prototype for pthread_setconcurrency when - ACE_HAS_IRIX62_THREADS is defined. This function is undocumented - but was needed by some users. - - * ace/Parse_Node.cpp: - Fixed a minor syntax error. - -Tue Oct 07 06:58:40 1997 Douglas C. Schmidt - - * ACE version 4.3.11, released Tue Oct 07 06:58:40 1997. - -Tue Oct 7 02:51:55 1997 Nanbor Wang - - * tests/TSS_Test.cpp (main): - * tests/Task_Test.cpp (main): - * tests/Barrier_Test.cpp (main): Removed thread_handles[] since we - don't need to join the thread explicitly anymore. - - * ace/Thread_Manager.{h,cpp}: Added an ACE_Unbounded_Quque to - collect terminated threads so that we can later join the threads - automatically by issuing a ACE_Thread_Manager::wait(). Some - typos are also fixed. Next step will be to replace current - thr_table_ with a hash table and store an index to this table - in TSS. - -Mon Oct 6 22:16:45 1997 Douglas C. Schmidt - - * ace/Thread_Manager: Added a new task() method to - ACE_Thread_Manager that returns a pointer to the current - ACE_Task_Base we're executing in if this thread is indeed - running in an ACE_Task_Base, else return 0. Thanks to Ari Erev - and John Neystadt for suggesting this. - - * ace/Thread_Manager: Moved the task_ pointer from the public part - of the ACE_Thread_Descriptor class into the private part of the - class and added an inline accessor instead. - - * ace/{Parse_Node.{h,cpp},Svc_Conf.y}: Added support to enable - dynamically allocate objects from factory functions that have - been pre-registered with the Service Configurator instead of - relying on dynamic loading. The new config file syntax would be - (note the colons): - - dynamic joe Service_Object * : make_queue() active - dynamic bob Service_Object * : make_queue() active - - Functions are found in the list of statically defined functions - for static services. Thanks to Eric C. Newton - for this fix. - -Mon Oct 6 13:00:19 1997 Carlos O'Ryan - - * ace/CORBA_Handler.cpp: Removed the use of reactor_ in the .cpp - file too; we are using the ACE_Event_Handler reactor_ (which is - a base class). - -Sat Oct 04 17:40:30 1997 Douglas C. Schmidt - - * ACE version 4.3.10, released Sat Oct 04 17:40:30 1997. - -Sat Oct 4 11:57:25 1997 Douglas C. Schmidt - - * apps/Orbix-Examples/Event_Comm/{Supplier,Consumer}/Makefile: - Changed a typo where /src/ was being used instead of /libsrc/. - Thanks to Jean-Marc STRAUSS for reporting - this. - - * examples/Connection/non_blocking/CPP-connector.cpp (init): - Removed the initialization of the local address. This is - error-prone and confusing to use. Thanks to Huiying Shen - for reporting this. - - * ace/SV_Semaphore_Simple: Added support for IPC_EXCL in order to - determine, upon creating the semaphore, if it already exists - (which means a bad key was selected), another daemon is still - running or the previous daemon didn't remove its resources. I - have this implemented now by first opening the semaphore and if - that fails then creating it. To support this, added another - enum, ACE_EXCL = IPC_EXCL, to the class header. - Also, changed the ACE_SV_Semaphore_Simple::open( key_t, ... ) - method to use - - if (ACE_BIT_ENABLED (flags, IPC_CREAT)) - - rather than - - if (flags == IPC_CREAT) - - Thanks to Michael McKnight for - reporting this. - - * ace: Replaced all uses of the template param LOCK with ACE_LOCK - to avoid conflicts with some systems that have a macro named - LOCK. - - * ace/IOStream_T.h: Added ACE_LACKS_ACE_IOSTREAM to the - IOStream_T.* files. Thanks to Torbjorn Lindgren - for reporting this. - - * ace/{Proactor,Service_Config,ACE_Sig_Handler}: Removed the use - of sig_atomic_t as a return type. Thanks to Torbjorn Lindgren - for reporting this. - -Sat Oct 04 03:14:46 1997 - - * ace/WFMO_Reactor.cpp (add_network_events_i): While looking - through all entries in the current (and suspended) handles for a - matching handle, we need to skip those that have been scheduled - for deletion). Also changed ACE_BIT_STRICTLY_ENABLED to - ACE_BIT_ENABLED. - - * ace/Select_Reactor.cpp (bit_ops): Since CONNECT is no longer a - logical OR of READ and WRITE, we have to explicitly make sure - that enable the handle in the correct wait sets. - - * ace/Event_Handler.h: Changed the values of the event - masks. CONNECT is no longer a logical OR of READ and WRITE. It - was its own unique value. - - * ace/OS.h: Removed ACE_BIT_STRICTLY_ENABLED. It did not do what I - thought it would do. - - * ace/Connector.cpp (handle_output): Added code that tries to find - out if the reactor uses event associations for the handles it - waits on. If so we need to reset it. This is necessary for - asynchronous connects. - - * ace/SOCK_Connector.i (reset_new_handle): Added new method on all - connectors to reset event associations of handles. - -Fri Oct 03 21:20:26 1997 David L. Levine - - * ace/Makefile: disable INSTALL in $(ACE_ROOT)/ace Makefile, - because it's not needed and it creates circular symlinks when - the library build fails. - -Fri Oct 3 11:39:45 1997 Douglas C. Schmidt - - * ace/Thread_Manager: Added a new flags_ field to - ACE_Thread_Descriptor and changed the insert_thr() and - append_thr() methods to update this flag so that we can keep - track of whether the thread was created "detached" or not. - - * ace/Reactor.cpp (event_loop_done): Replaced the use of - sig_atomic_t with int to workaround bugs with KAI C++. Thanks - to Torbjorn Lindgren for reporting this. - - * ace/CORBA_Handler: Removed the reactor() accessors since they - are subsumed by the methods in ACE_Event_Handler. Thanks to - Jean-Marc STRAUSS for reporting this. - -Thu Oct 02 15:38:34 1997 - - * Reactor: Renamed reset_new_handle to uses_event_associations. - - * ace/FIFO_Recv.cpp (ACE_FIFO_Recv): aux_handle_ must correctly be - initialized to ACE_INVALID_HANDLE. Thanks to Sandro Doro - for reporting this. - -Thu Oct 02 11:21:37 1997 Steve Huston - - * include/makeinclude/platform_{aix aix4.2}.GNU: added the - shared_libs_only = 0 and static_libs = 1 settings since C Set++ - builds the shared libs from the static. - - * ace/OS.h: Removed spaces around '##' in ACE_DES_FREE_TEMPLATE macro. - - * ace/Strategies_T.cpp: added #include "ace/Thread_Manager.h" - - * ace/Managed_Object.h: Added template arg in the "unimplemented - function" section. - -Thu Oct 02 10:46:18 1997 Steve Huston - - * ace/Malloc.h: added some comments on rationale and use of - ACE_MALLOC_ALIGN. - -Wed Oct 01 19:08:26 1997 Steve Huston - - * include/makeinclude/rules.bin.GNU: correctly builds programs - with multiple object modules. - - * examples/ASX/CCM_App/Makefile: needed some adjustment to work with - new rules.bin.GNU, above. - -Wed Oct 01 14:11:03 1997 - - * ace/Remote_Name_Space.cpp (resolve): We need to allocate one more - space than what strlen reports. - -Wed Oct 01 12:45:51 1997 David L. Levine - - * ace/ACE.cpp (count_interfaces, get_handle): changed "unix" to - "__unix" because DEC CXX doesn't #define "unix". Thanks to - Billy Quinn for reporting this. - - * ace/High_Res_Timer.h: added comment from Gabe - about ACE_OS::gethrtime () drift on MP - machines. - - * ace/OS.i (gethrtime, Solaris only): removed ACE_OSCALL_RETURN - wrapper around ::gethrtime () because it was broken (the type - was int) and not necessary (::gethrtime () should never fail), - so we can remove its overhead. - - * tests/Time_Value_Test.cpp: undef ACE_NO_INLINE in the - ACE_U_LongLong test hacks. - - * tests/SV_Shared_Memory_Test.cpp: delay construction of allocator - until first needed because it needs something that the - ACE_Object_Manager constructs. - - * tests/run_tests.vxworks: added console printout before each test. - -Tue Sep 30 21:42:58 1997 Douglas C. Schmidt - - * ACE version 4.3.9, released Tue Sep 30 21:42:58 1997. - -Tue Sep 30 17:15:14 1997 James C Hu - - * ace/Filecache.{h,cpp}: I removed the static locks in the - Filecache and made them local member objects. Since Filecache - is usually a singleton, no more memory is required this way. - - * tests/Hash_Map_Manager_Test.cpp: Added some code to test the - Hash_Map_Manager_Iterator. This is to show Bob Laferriere that - it works. - -Tue Sep 30 13:41:14 1997 Nanbor Wang - - * examples/Service_Configurator/IPC-tests/server/Handle_R_Stream.i - (handle_input): - * examples/Reactor/ReactorEx/test_network_events.cpp (handle_input): - * examples/Logger/simple-server/Logging_Acceptor.cpp - (handle_input): Changed to use reset_new_handle () for querying - whether we need to reset handles or not. - -Tue Sep 30 08:35:15 1997 David L. Levine - - * ace/Atomic_Op.i: added CVS header. - - * ace/Object_Manager.{h,cpp}: removed Filecache arrays, because - Filecache no longer needs them. - - * ace/Filecache.{h,cpp}: removed unused static Filecache::lock_. - - * tests/test_config.h: Added 1 second sleep to ACE_END_TEST to - allow all threads to terminate gracefully. - VxWorks only: removed the hack removal of the log file, because - it no longer appears to be necessary. - - * tests/TSS_Test_Errno.h,TSS_Test.cpp: dynamically allocate - Errno::lock_ to try to avoid problem with cleanup of statics - on VxWorks. It doesn't solve the problem, all of the time. - There are still statics in the ACE library, which could be - causing it. - -Tue Sep 30 01:35:28 1997 Nanbor Wang - - * ace/Naming_Context.cpp (close, close_down): Separated these two - functions calls. Close now only release the name_space_ - resource and close_down release all resources. Close should be - use when changing the name_space. - -Mon Sep 29 22:29:46 1997 Nanbor Wang - - * ace/Strategies_T.cpp (accept_svc_handler ): - * ace/Service_Manager.cpp (handle_input): - * ace/Acceptor.cpp (handle_input, accept_svc_handler): Changed to - use reset_new_handle () for querying whether we need to reset - handles or not. - - * ace/Reactor.{h,i} (reset_new_handle): - * ace/Reactor_Impl.h (reset_new_handle): - * ace/Select_Reactor.{h,i} (reset_new_handle): - * ace/WFMO_Reactor.{h,i} (reset_new_handle): Added this new method - so we can determine whether the implementation of the reactor - requires us to decouple the event a handle inherit from accept. - This scheme doesn't depend on the RTTI support of compilers. - Thanks to Irfan for the tips. - -Mon Sep 29 21:28:02 1997 - - * ace/Synch (ACE_Recursive_Thread_Mutex): Methods were added to - ACE_Recursive_Thread_Mutex so that it has a consistent interface - with other locking mechanisms. Thanks to Phil Logan - for submitting these changes. - -Mon Sep 29 13:28:05 1997 David L. Levine - - * ace/OS.i (thr_setconcurrency): added support on Irix 6.x, using - its ::pthread_setconcurrency (). Thanks to Felix Popp - for letting us know - about this Irix 6.2/3 system function, and for testing it out. - - * ace/ACE.cpp (handle_timed_complete) force recv check on VxWorks - because its read handle is always not set. Thanks to Steve for - helping track down the problem. We might want to consider doing - it this way on Unix platforms, as well, according to Steve. - - * apps/JAWS/server/HTTP_Server_T.cpp (accept): fixed typo, - "remote_address" instead of "remote_adrress". - - * tests/Time_Value_Test.cpp (test_ace_u_longlong): replaced - ACE_ASSERTs with calls to a static function that prints out - why the test failed. Also, disabled test of ACE_U_LongLong - if ACE_HAS_64BIT_LONG. - - * ace/OS.h: 1) Use u_long for ACE_hrtime_t if ACE_HAS_64BIT_LONGS. - 2) Added ACE_NO_INLINE support to allow wrapper_macros.GNU to - disable inlining from the command line. 3) Added - ACE_HAS_VERBOSE_NOTSUP support. - - * include/makeinclude/wrapper_macros.GNU: added "inline" flag to - allow enabling/disabling of inlining from the command line or - platform_macros.GNU. - - * ace/config-vxworks*.h: added ACE_HAS_VERBOSE_NOTSUP. - -Mon Sep 29 11:15:10 1997 Nanbor Wang - - * ace/OS.h (ace_cleanup_destroyer): Made this an export function. - -Sat Sep 27 17:04:48 1997 - - * ace/Reactor: Added new methods to be able to set and get the - implementation class being used by the reactor. The set method - is protected and should be used with care, specially while - changing the implementation class midway through an - application. Also both the methods are virtual, and user can - subclass to change their behavior. The internal code of the - reactor also changed to now use these methods exclusively rather - than the the raw data variables. - - * ace/Acceptor.cpp (handle_input): When using the WFMO_Reactor, we - need to reset the event association for the newly created - handle. This is because the newly created handle will inherit - the properties of the listen handle, including its event - associations. Therefore two changes were made: - - - A new directive (flag) was added to all the acceptors - (LSOCK_Acceptor, SOCK_Acceptor, SPIPE_Acceptor, TLI_Acceptor, - and UPIPE_Acceptor) to reset the event associations of the - newly created handle. Currently only the SOCK_Acceptor pays - attentions to this directive, others just ignore it. This flag - had to be added to all the acceptors for interface - compatibility and also to make sure that the Acceptor template - code works correctly. - - - A dynamic_cast was necessary to determine at run-time which - implementation of the Reactor we are using. But because this - code is limited to Win32, there should be no problems doing - the dynamic_cast. - - The same thing as above needed to be done to: - - - ACE_Accept_Strategy::accept_svc_handler (ace/Strategies_T.cpp) - - - ACE_Service_Manager::handle_input (ace/Service_Manager.cpp) - - - LOCK_SOCK_Acceptor::accept (apps/JAWS/server/HTTP_Server_T.h) - - - Logging_Acceptor.cpp::handle_input (examples/Logger/simple-server/Logging_Acceptor.cpp) - - - Network_Listener::handle_input (examples/Reactor/ReactorEx/test_network_events.cpp) - - - Handle_R_Stream::handle_input (examples/Service_Configurator/IPC-tests/server/Handle_R_Stream.i) - -Sat Sep 27 20:03:29 1997 Carlos O'Ryan - - * include/makeinclude/platform_sunos5_sunc++_orbix.GNU: - Activated exceptions by default too, since they are used by - Orbix anyway. - - * include/makeinclude/platform_sunos5_sunc++.GNU: - Some libraries were missing and the locations were not - completely accurate. - - * ace/config-sunos5.5-sunc++-4.x-orbix.h: - I let the MT Orbix as the default, since that is the - configuration here and that was implicit in the platform*.GNU - files. - - * include/makeinclude/wrapper_macros.GNU: - Added flags to the IDL compiler to emit support for both - CORBA::Any (-A) and the BOAImpl (-B) approach for the server - side implementations. - - * ace/CORBA_Handler.cpp: - The full definition for Thread_Manager was missing, I added an - include for it. - -Sat Sep 27 07:59:18 1997 David L. Levine - - * include/makeinclude/wrapper_macros.GNU, - platform_{chorus,lynxos,vxworks*}.GNU: - default to building shared libs only, except on Chorus, - LynxOS, and VxWorks. While the "shared_libs_only=1" make - flag is still supported, it is no longer necessary because - it is the default. - - To revert to the prior behavior of building both shared and - static libraries, add "static_libs=1" to either your make - command invocation or your include/makeinclude/platform_macros.GNU. - -Sat Sep 27 00:45:10 1997 Nanbor Wang - - * examples/OS/Process/README (imore): - * examples/OS/Process/Makefile: - * examples/OS/Process/imore.cpp: Added a new example: imore. - - * ace/SOCK_Stream.cpp (close, close_reader, close_writer): Moved - invalid handlers checking from close to close_reader and - close_writer. - -Fri Sep 26 14:28:36 1997 Nanbor Wang - - * tests/SPIPE_Test.cpp: - * tests/Process_Strategy_Test: Changed the macro "ACE_LACKS_EXEC" - to "ACE_LACKS_FORK". - - * ace/SOCK_Stream.cpp (close): Added checking for invalid handle - before shutting down the write end. - -Fri Sep 26 11:55:27 1997 Steve Huston - - * ace/Malloc.h: Use signed math in the preprocessor calculations - for ACE_CONTROL_BLOCK_ALIGN_LONGS (and all of its contributing - factors). - - * ace/ACE.cpp: Fixed the TLI/BSD checks in handle_timed_complete. - - * tests/SOCK_Connector_Test.cpp: Added ENOTCONN as a valid fail - condition (in addition to ECONNREFUSED). - -Fri Sep 26 05:11:40 1997 Nanbor Wang - - * ace/SOCK_Acceptor.cpp (shared_accept): Made the newly added - WSAEventSelect code unreachable. It caused several test program - hung when performing socket recieving. Don't know why this is - happening. According to the online manual, this should be the - right thing to do. Some more Access Violations to be fix - tomorrow. Oh, I mean, today. - -Fri Sep 26 01:22:28 1997 Douglas C. Schmidt - - * ace/OS: Made a few changes to OS.h and OS.i to stop compiler - warnings. Thanks to Wei Chiang for - reporting this. - - * ace/config-chorus.h: Added ACE_LACKS_RLIMIT and removed - ACE_LACKS_SIGACTION. Thanks to Wei Chiang - for reporting this. - - * ace/TLI_Connector.cpp (complete): Changed the call to - ACE::handle_timed_complete() to use the new parameter. - - * ace/ACE: Added an extra parameter to the call to - ACE::handle_timed_complete() to indicate (at run-time) that this - is being called via a TLI interface. Thanks to the - ever-vigilant Steve Huston for suggesting this. - - * tests/SOCK_Connector_Test.cpp: "ACEified" the new test program. - -Thu Sep 25 23:27:38 1997 - - * ace/config-win32.h: Error in directives: it should be "Define - ACE_HAS_WINSOCK2 to 0 in your config.h file if you do *not* want - to compile with WinSock 2.0.". The typo was a 1 instead of the - 0. Thanks to Gonzalo A. Diethelm for pointing - this out. - -Thu Sep 25 20:33:09 1997 Douglas C. Schmidt - - * ace/Message_Queue.h: Changed the *_i() methods to be virtual so - that we can change the queueing mechanism by subclassing from - ACE_Message_Queue. Thanks to Eric Newton for - this suggestion. - - * ace/Timer_List_T.cpp (ACE_Timer_List_Iterator_T): Changed - listParam to timer_list to keep programming style consistent... - -Thu Sep 25 17:06:42 1997 Steve Huston - - * ace/OS.i - ACE_OS::cond_timedwait - HP's threads return - EAGAIN on timeout from pthread_cond_timedwait, so adjust that - to ETIME. - - * tests/SOCK_Connector_Test.cpp - will now try to find another - host to run the connect to. Won't try on Win32 or VxWorks - though. - -Thu Sep 25 15:25:53 1997 David L. Levine - - * ace/Object_Manager.cpp,OS.cpp: moved socket_init to Object_Manager - ctor and socket_fini to Object_Manager dtor, to be sure that - WinSock gets initialized early and closed late. - - * ace/SOCK.{h,cpp}: removed dummy_ static now that the - Object_Manager initializes WinSock. - - No, I'm not a Win32 wizard all of the sudden. Thanks to - Irfan and Nanbor for directing these changes. - - * tests/run_tests.vxworks: commented out tests that don't run - productively on VxWorks: SV_Shared_Memory_Test, - Reactor_Exceptions_Test, SPIPE_Test, and UPIPE_SAP_Test. - -Thu Sep 25 03:50:27 1997 - - * ace/OS.i (thr_getspecific): Must restore errno if no errors have - occured. - - * ace/Log_Msg.cpp (close): Must close the message queue *before* - destruction since there is no destructor for the queue. - - * netsvcs/lib/Client_Logging_Handler.cpp (fini): fini must close - and unregister the acceptor. Closing the socket is simply not - enough. - -Thu Sep 25 01:39:47 1997 Nanbor Wang - - * ace/Containers.{i,cpp}: Commented out all ACE_TRACE macros in - ACE_Unbounded_Queue so that they won't cause SIGSEGV when we - turn the tracing on. Unbounded_Queue is used in Object_Manager - which must be initialize before most of other objects. - -Wed Sep 24 23:37:19 1997 Nanbor Wang - - * ace/OS.i (thr_getspecific): On NT, added check whether - ::GetLastError() is NO_ERROR when ::TlsGetValue() return 0. - -Wed Sep 24 13:37:02 1997 - - * ace/config-win32-common.h (ACE_LACKS_FORK): Added in macro to - distinguish between ACE_LACKS_FORK and ACE_LACKS_EXEC. Also - updated config-chorus.h, config-vxworks-ghs-1.8.h, and - config-vxworks5.x-g++.h. - - * ace/OS.h (ACE_WIN32CALL_RETURN && ACE_WIN32CALL): Added new - macros to distinguish between Win32 calls that set GetLastError - and those that set errno. Also updated ACE_OSCALL_RETURN and - ACE_OSCALL such that they do not set errno to GetLastError. This - is because these calls automatically set errno. - - Updates OS.* files to reflect these changes. - - * ace/SOCK_Acceptor.cpp (shared_accept): Make sure to reset the - event association inherited by the new handle. - - * ace/WFMO_Reactor.i (unbind): Added a check for invalid handles - being passed in for removals. - -Wed Sep 24 10:34:29 1997 Carlos O'Ryan - - * ace/OS.h: - Under HP-UX and g++ must be included for dynamic loading, - not ; thanks to Warren Thompson (wthompson@altaira.com) - for helping us with this one. - -Wed Sep 24 09:36:21 1997 David L. Levine - - * ace/Managed_Object.{h,i},Object_Manager.{h,cpp}: removed - ACE_Managed_Object get_object () interface. It wasn't - used anywhere; it was originally intended to support preallocated - objects but turned out to not be necessary. I think that it would - be more useful to make it possible to instantiate - ACE_Managed_Object instead, and have it implicitly register - with the ACE_Object_Manager. - - * ace/Timer_List_T.cpp (ACE_Timer_List_Iterator_T): - changed name of "list" argument ot "listParam" to resolve name - conflict with STL. Thanks to Brian Mendel for reporting this. - - * tests/run_tests.check: print out filename with error messages. - -Tue Sep 23 17:11:44 1997 Carlos O'Ryan - - * ace/config-hpux-10.x-g++.h: - Added A ACE_LACKS_TIMESPEC_T, thanks to Warren Thompson - (wthompson@altaira.com) for this one. - - * include/makeinclude/platform_hpux_gcc.GNU: - Added a -D_REENTRANT define, to enable reentrant methods, thanks - to Warren Thompson (wthompson@altaira.com) and Steve Huston - (shuston@riverace.com) for pointing out this. - - * ace/config-hpux-10.x.h: - Added an small comment to clarify that DCE/threads must be - installed if threading is wanted, they are an optional product - for HP-UX. - -Tue Sep 23 10:13:57 1997 David L. Levine - - * ace/Select_Reactor.cpp: added #include of ace/Thread.h. - Thanks to Vladimir Schipunov for - reporting this. - - * ace/Object_Manager.cpp: added #include of ace/Malloc.h. - Thanks to Vladimir Schipunov for - reporting this. - - * ace/config-aix-4.1.x.h: added ACE_HAS_PTHREAD_T and - ACE_HAS_BROKEN_EXPLICIT_TEMPLATE_DESTRUCTOR #defines. - Thanks to Vladimir Schipunov for - reporting the build problem on AIX 4.1, and to - Torbjorn Lindgren for providing these fixes. - - * ace/Token_Manager.{h,cpp},Object_Manager.{h,cpp}: - preallocate ACE_Token_Manager creation lock. - - * ace/Object_Manager.cpp: use ACE_Cleanup_Adapter - for preallocated arrays. - -Mon Sep 22 16:51:44 1997 - - * ace/OS.i (open): Changed code so that (_O_CREAT | _O_TRUNC) - means CREATE_ALWAYS. Thanks to Dave Brackman - (dbrackma@OhioEE.com) for pointing this out. - -Mon Sep 22 11:01:28 1997 Steve Huston - - * tests/SOCK_Connector_Test.cpp, Makefile, run_tests.sh - added new - test to exercise ACE_SOCK_Connector focusing on fail conditions. - -Mon Sep 22 07:11:21 1997 David L. Levine - - * ace/Message_Block.cpp (clone): check this block's cont () - instead of the new block's cont_ when cloning the continuation - messages. Thanks to Eric Newton for tracking - down this problem with failing to clone continuation blocks, - and for providing the fix. - - * ace/OS.{h,i} (ACE_U_LongLong): added operator!=, and made args - const to ctor, operator/, hi, and lo member functions. - - * ace/Managed_Object.[hi]: renamed ACE_Managed_Cleanup to - ACE_Cleanup_Adapter because it doesn't implicitly register - itself with the ACE_Object_Manager. - - * ace/ACE.cpp: moved ACE_Object_Manager_Destroyer to - Object_Manager.cpp because the ACE_Object_Manager should - always be linked into executables now, even if libACE is - statically linked. - - * ace/Filecache.{h,cpp},Signal.{h,cpp} preallocate locks for - Filecache and Signal in ACE_Object_Manager. - - * ace/Object_Manager.{h,cpp}: 1) renamed ACE_Managed_Cleanup to - ACE_Cleanup_Adapter. 2) Moved ACE_Object_Manager_Destroyer from - ACE.cpp to Object_Manager.cpp. 3) Added Filecache and Signal locks. - - * ace/Singleton.*: removed instance (TYPE *) member function because - it wasn't being used. And, it allows us to store the contained - instance_ as an object instead of a pointer, saving a dynamic - memory allocation on construction. - - * include/makeinclude/platform_vxworks5.x_g++.GNU: added $(MUNCHED) - to PRELINK, to allow applications to add libraries or object - files to be munched. - - * ace/stdcpp.h: stdarg.h must be #included before stdio.h on LynxOS. - -Sat Sep 20 17:32:23 1997 David L. Levine - - * ace/Object_Manager.{h,cpp},Managed_Object.*, - CORBA_Handler.{h,cpp},Dump.{h,cpp},Log_Msg.cpp,OS.cpp - revised ACE_Object_Manager interface for preallocated objects. - - Also, added documentation of ACE_Object_Manager interface to - Object_Manager.h and Managed_Object.h. - - * ace/CORBA_Handler.cpp,Dump.cpp,OS.cpp: use ACE_MT with - preallocated locks. - - * include/makeinclude/platform_*.GNU,wrapper_macros.GNU: - moved -O out of wrapper_macros.GNU and into each platform - file's OC[C]FLAGS to support "optimize" make flag. - - I moved -O and similar compile flags out of CFLAGS and/or - CCFLAGS and into OCFLAGS and/or OCCFLAGS. This allows the - ACE make system to support the "optimize" flag. It operates - similar to the "debug" flag, i.e., you can set "optimize=1" - or "optimize=0" in your platform_macros.GNU file to enable - or disable optimization. You can use the same syntax to - get the same effect from the "make" command line, e.g., - "make optimize=1 debug=0". - - I added optimize=1 to platform_*.GNU files that had -O, etc., - in their C[C]FLAGS. Therefore, there should be no net effect - from this change on any platform. - - * include/makeinclude/wrapper_macros.GNU: - I _removed_ the disabling of "debug" when "optimize=1" is - enabled. This _will_ have a net effect: if you were relying - on "debug" to be disabled when you enabled "optimize=1", - you'll be surprised. The change supports platforms that - allow "debug" and "optimize" simultaneously. - - Because I had added the disabling of "debug" recently, - and because "optimize=1" wasn't supported well, if at all, - I'd be suprised if any is actually affected by this change. - -Sat Sep 20 11:47:14 1997 Carlos O'Ryan - - * ace/Timer_Queue_T.cpp: - Changed the return type to , to match its declaration. The - intent was to error error values, which are declared as - throughout ACE. - -Sat Sep 20 08:07:36 1997 David L. Levine - - * ace/OS.i (gethrtime): on Linux only, removed "volatile" qualifier - from declaration of local variable "now". I don't think that - it's necessary. It causes compilation failure with g++ because - the ACE_U_LongLong copy constructor won't take a volatile - argument. Thanks to Sandro Doro for - tracking down this problem. - - * tests/Time_Value_Test.cpp: reverted to test ACE_U_LongLong on - all platforms except WIN32. It works properly on Linux with - the removal of volatile from ACE_OS::gethrtime's "now". Thanks - to Sandro Doro for figuring this one - out. - -Fri Sep 19 18:49:50 1997 Carlos O'Ryan - - * ace/config-irix6.x-g++.h: - * include/makeinclude/platform_irix6.x_g++.GNU: - Added support for IRIX 6.x w/gcc, thanks to Celeste E. Copeland - (celeste@altaira.com) for this. - -Thu Sep 18 19:33:02 1997 Carlos O'Ryan - - * Douglas added the following changes while going through the - Async_Timer_Queue. - - * ace/Timer_Queue_T.h: Factored out the code for handling - ualarm(). - - * ace/Timer_Queue_T.cpp (handle_signal): Cleanedup the logic - for rescheduling a ualarm() after expiring a timer. - - * tests/Async_Timer_Queue_Test.cpp (signal_handler): Changed the - use of ACE_DEBUG to ACE_ERROR to ensure that the call doesn't - magically disappear if ACE_NDEBUG is enabled. - -Fri Sep 19 18:05:48 1997 Douglas C. Schmidt - - * ace/Log_Msg.cpp (log): Changed the send() to a send_n() so that - all the data gets written... - -Fri Sep 19 14:52:53 1997 Nanbor Wang - - * netsvcs/lib/Client_Logging_Handler.cpp (get_handle): Can't use - ACE_ERROR_RETURN here because ACE_HANDLE is a void* on NT, not - int. - - * examples/Reactor/Misc: Added reactors.dsp signals_1.dsp - signals_2.dsp. - - * ace/OS.cpp (thr_exit): Commented out the call to - ACE_TSS_Cleanup::exit () because ACE_OS::thr_exit is actually - called from ACE_TSS_Cleanup::exit (). - -Fri Sep 19 12:50:37 1997 David L. Levine - - * ACE-INSTALL*,ace/README: added more documentation of requirement - for explicit main (int, char *[]) arguments and int return type - with ACE_HAS_NONSTATIC_OBJECT_MANAGER (on VxWorks). - -Thu Sep 18 22:45:09 1997 Douglas C. Schmidt - - * netsvcs/lib/Client_Logging_Handler.cpp (close): Fixed a - typo: it's output_ not outout_. Thanks to David for - pointing this out. - - * netsvcs/lib/Client_Logging_Handler.cpp: Make sure to clean up - all our resources (e.g., acceptor-mode and data-mode sockets) - when we close down. - - * netsvcs/servers/main.cpp (main): Restored the entire contents of - main(). - - * tests/Semaphore_Test.cpp: Updated the test to use a temporary - ACE_Time_Value variable that is passed to - ACE_Semaphore::acquire() so that we don't have problems with - reference anachronisms... Thanks to David Levine for reporting - this. - - * ace/Log_Msg.cpp: Changed over to using ACE_SPIPEs for the - logging mechanism rather than ACE_FIFOs to conform to the - changes to Client_Logging_Handler. - - * netsvcs/lib/Client_Logging_Handler.cpp: - Completely rewrote the Client Logging Daemon so that it uses - ACE_SPIPEs by default, rather than ACE_FIFOs. This is more - portable and makes it easier to write a generic client logging - daemon... If a platform doesn't support ACE_SPIPEs, then we - revert to using sockets. - -Thu Sep 18 21:56:33 1997 Nanbor Wang - - * ace/OS.cpp (ACE_TSS_Cleanup::exit): Masked out codes that relate - to freeing TSS keys and remove key entries from TSS cleanup - table. I removed it here to avoid race condition. - (ACE_TSS_Cleanup::free_all_key_left): Added this function to - free all left over TSS keys and remove them from TSS cleanup - table when the program exits. It is only called from - ACE_OS::cleanup_tss. - (ACE_OS::cleanup_tss): Added call to - ACE_TSS_Cleanup::free_all_key_left when ACE_WIN32 or - ACE_HAS_TSS_EMULATION are defined. - -Thu Sep 18 16:30:24 1997 David L. Levine - - * ace/Semaphore_Test: protected declarations of test_timeout_count - and timeouts because they're not used on Solaris. - - * netsvcs/lib/Client_Logging_Handler.cpp: added template - instantiations. - -Thu Sep 18 09:04:40 1997 - - * ace/Dynamic: Changed the way ACE_Dynamic worked. Instead of - keeping the "this" pointer of the object in question, we are now - simply keeping a flag that indicates whether the object was - dynamically created. The trick to this approach is to make sure - to reset the flag in the constructor. The "this" pointer - approach was broken when used with multiple inheritance, because - of "shearing" of the "this" pointer to get to the base - Svc_Handler class. - -Thu Sep 18 01:12:36 1997 Douglas C. Schmidt - - * ACE version 4.3.8, released Thu Sep 18 01:12:36 1997. - -Wed Sep 17 22:47:20 1997 Douglas C. Schmidt - - * ace/ACE: Added two new varargs methods for send() and recv(). - These are modeled after the ones that are in, e.g., ACE_SOCK_IO. - - * ace/Log_Msg.cpp (open): In the UNICODE version the compiler - complains about mixed wchar/char usage in Log_Msg.cpp: - - Log_Msg.cpp(468) : error C2665: 'ACE_INET_Addr::ACE_INET_Addr' : - none of the 8 overloads can convert parameter 1 - from type 'const unsigned short *' - - I fixed it modifing the connect() call from - - status = con.connect (*ACE_Log_Msg_message_queue, - ACE_INET_Addr (logger_key)); - - to - - status = con.connect (*ACE_Log_Msg_message_queue, - ACE_INET_Addr - (ACE_MULTIBYTE_STRING(logger_key))); - - Thanks to Dieter Quehl for - reporting this. - - * ace/SV_Semaphore_Simple.h: By default, we want the flags to - perform a SEM_UNDO. Thanks to Sandro Doro - for reporting this. - - * tests/Makefile (BIN): Added Semaphore_Test.cpp to the Makefile. - Thanks to Sandro Doro for reporting - this. - - * tests/Async_Timer_Queue_Test.cpp: If you want to print a '\', - you need to make it a \\... Thanks to David for noticing this. - - * apps/JAWS/clients/Blobby/Blob_Handler.h: There was a missing - #include for "ace/SOCK_Stream.h". - - * netsvcs/lib/Client_Logging_Handler: Reimplemented this service - so that it uses sockets on Win32 to receive logging messages - from clients. - - * ace/Log_Msg.cpp: Enhanced ACE_Log_Msg::log() so that it now uses - sockets on Win32 platforms to work around the lack of FIFOs. - - * ace/Log_Record.h: Revised the field layout of the ACE_Log_Record - so that the length field comes first. This is necessary for the - framing mechanisms used throughout ACE in various - configurations. - -Wed Sep 17 15:17:38 1997 James C Hu - - * ace/Filecache.cpp: ACE_Filecache::finish should check to see if - the file passed in is NULL before attempting to grab the - associated hash lock. Reported by Samuel Melamed - . - -Wed Sep 17 13:51:25 1997 Carlos O'Ryan - - * bin/auto_compile: - I setup autoflush on the logfile, it makes debugging and non - crontab usage a bit easier. - -Wed Sep 17 12:59:34 1997 - - * ace/Local_Name_Space_T.cpp: Fixed warnings caused by SEH macros. - -Wed Sep 17 01:07:40 1997 Douglas C. Schmidt - - * ACE version 4.3.7, released Wed Sep 17 01:07:40 1997. - -Tue Sep 16 23:34:36 1997 Douglas C. Schmidt - - * netsvcs/servers/main.cpp (main): The use of braces was incorrect - so that some services were being prematurely closed... - - * ace: Added a new flag called ACE_LACKS_FIFO to distinguish the - (lack of) features on Win32... - - * ace/Timer_Queue_T: Added an expire() wrapper for the - Async_Timer_Queue_Adapter. - - * ace/OS: Added a wrapper for strpbrk() and wcspbrk(). Thanks to - Bob Olson and Irfan for pointing out - the need for this. - -Tue Sep 16 18:03:58 1997 Carlos O'Ryan - - * bin/auto_compile: - It wouldn't report an error when run_tests.sh scream "FAILED", - now it does. - -Tue Sep 16 08:30:28 1997 Steve Huston - - * ace/OS.i: Changed a couple of ACE_UNUSED(arg) to ACE_UNUSED_ARG(arg) - -Mon Sep 15 12:08:38 1997 - - * ace/Reactor (register_handler): Originally this interface was - available for all platforms, but because ACE_HANDLE is an int on - non-Win32 platforms, compilers are not able to tell the - difference between - register_handler(ACE_Event_Handler*,ACE_Reactor_Mask) and - register_handler(ACE_Event_Handler*,ACE_HANDLE). Therefore, we - have restricted this method to Win32 only. - - * ace/WFMO_Reactor.h: Removed non-Win32 version of the - WFMO_Reactor. This is no longer required in the new scheme. - - * ace/XtReactor: - - Added remove_handler_i(const ACE_Handle_Set &,ACE_Reactor_Mask) - to make the compiler happy. - - Also changed ACE_Reactor_Handle_Set to ACE_Select_Reactor_Handle_Set. - - * ace/Select_Reactor.cpp (ACE_Select_Reactor_Token): Added set/get - select_reactor methods. - - * ace/OS.h (ACE_SEH_TRY): Changed ACE_SEH_TRY from nothing to - "if(1)" on non-Win32 platforms. This should stop some compilers - from complaining about unreachable code. - -Mon Sep 15 11:37:49 1997 Carlos O'Ryan - - * include/makeinclude/platform_hpux.GNU: - Added -D_REENTRANT to enable the _r functions. - -Mon Sep 15 09:40:57 1997 Carlos O'Ryan - - * bin/auto_compile: - Enabled the shared_libs_only flags to speed up compilations (and - reduce disk space usage). - -Sun Sep 14 22:36:17 1997 - - * ace/Select_Reactor.h: Added a no-op constructor for - ACE_Select_Reactor_Token to make the compiler happy. - -Sun Sep 14 21:02:31 1997 David L. Levine - - * all Makefiles: ran "make depend" to update all ACE Makefiles. - - * include/makeinclude/platform_irix6.x-32_sgic++.GNU, - platform_tandem.GNU: added debug = 1, to disable ACE_NDEBUG. - - * ace/Acceptor.cpp: added #include of ace/Handle_Set.h so that - it will compile on g++/Solaris. - - * ace/Managed_Object.h: added #include of ace/OS.h because - ACE_Cleanup class is used. - - * ace/Managed_Object.cpp: only #include ace/Synch.h if - ACE_TEMPLATES_REQUIRE_SOURCE is not defined. The #include - appears to be necessary with Digital Unix. But, it causes - inline functions warnings with g++, both with inlining - enabled and disabled. Circular #includes are evil :-) - - * ace/Select_Reactor.h: removed "," at end of DEFAULT_SIZE - enum definition. - - * ace/Select_Reactor.i (register_handler): added ACE_UNUSED_ARGS. - - * ace/Select_Reactor.i: moved ACE_Select_Reactor::size () after - ACE_Select_Reactor_Handler_Repository::size () to prevent use - before definition. - - * ace/Select_Reactor.cpp: added template instantiation. - - * ace/Svc_Conf_y.cpp: commented out unused args and wrapped - assignments in "if" conditionals to avoid g++ warnings. - - * ace/Token_Manager.h: inserting missing "public" access control - specifier for ACE_Cleanup. - - * ace/OS.{h,cpp} (gethrtime, Linux only): inlined and added Alpha - support. - - * ace/config-linux*.h: only define ACE_HAS_PENTIUM if i386 is defined. - -Sun Sep 14 10:35:57 1997 - - * ace/Reactor: The Reactor classes (ACE_Reactor and ACE_ReactorEx) - have changed. The motivation for this change was to allow users - to program abstractly and use the most efficient implementation - available on their platform. At the same time, we wanted to - make the changes required by the users kept to a minimal. - - Here is a layout of the new Reactor hierarchy in ACE (an example - of the GOF Bridge Pattern). Thanks to Thomas Jordan - (Thomas_Jordan@deluxedata.com) for suggesting this new design. - - - Reactor -----> Reactor_Impl - ^ - | - -------------------- - ^ ^ - | | - Select_Reactor WFMO_Reactor - - Reactor: - - The Reactor class now becomes an interface class that contains - a pointer to an implementation class. All methods of the - Reactor class forward all calls to the appropriate - implementation class. Users can pass in their own - implementation class. If an implementation class is not - supplied at creation time, the following default rules apply: - - On non-Win32 platforms: An instance of the Select_Reactor - class will be created and used as the implementation. - - On Win32 platforms: An instance of the WFMO_Reactor class will - be created and used as the implementation. This default - behavior can be overwritten at compile-time by setting the - ACE_USE_SELECT_REACTOR_FOR_REACTOR_IMPL flag. In this case, an - instance of the Select_Reactor class will be created and used - as the implementation. - - Reactor_Impl: - - Reactor_Impl is an abstract class (i.e., the Bridge). - Select_Reactor and WFMO_Reactor inherit from this class. - - Select_Reactor: - - Previously known as the Reactor class. This class implements - the Reactor_Impl interface by using the select() system - call. This implementation is available on all platforms - (including Win32). - - WFMO_Reactor: - - WFMO (Wait For Multiple Objects) Reactor, previously known as - the ReactorEx class. This class implements the Reactor_Impl - interface by using the WaitForMultipleObjects() system call. - This implementation is currently only available on Win32 - platforms. - - Code changes for users: - - The higher authorities of ACE have decided that ReactorEx was - a "goofy" name and made little sense in the new hierarchy. - Therefore users using the old ReactorEx will have to change - over to start using the Reactor class (and make sure that the - implementation class being used is WFMO_Reactor). - - Also users that have extended Reactor or ReactorEx must - now subclass from Select_Reactor or WFMO_Reactor, - respectively. - - * ace/ReactorEx: - - The ReactorEx interface has been extended to be identical to the - Reactor interface. Some of these new operations will not be - supported in this version. However, we will have interface - compatability at this point. This allows the creation of the new - Reactor hierarchy in ACE. - - Removed all static (singleton) methods from ReactorEx. These are - not necessary anymore since ReactorEx will become an - implementation class. Reactor will take over this functionality. - - Changed methods names from resume_all to resume_handlers and - suspend_all to suspend_handlers. This increases the similarity - between ReactorEx and Reactor. - - Add a lock_adapter so that we can return an ACE_Lock form of our - internal lock. - - Added signal handling capabilities to ReactorEx. - - Added handler, requeue_position, mask_ops, and ready_ops - operations. However, they are not supported in this - version. They are mostly here for interface compatibility with - Reactor. - - Added a size() accessor that returns the current size of the - ReactorEx's internal descriptor table. - - Added an initialized() accessor that returns true if ReactorEx - has been successfully initialized, else false. - - * ace/Reactor: - - The Reactor interface has been extended to be identical to the - ReactorEx interface. Some of these new operations will not be - supported in this version. However, we will have interface - compatability at this point. This allows the creation of the new - Reactor hierarchy in ACE. - - Added resume_handler(ACE_Handle_Set &) and - suspend_handler(ACE_Handle_Set &) to the Reactor. This - increases the similarity between ReactorEx and Reactor. - - Add a lock_adapter so that we can return an ACE_Lock form of our - internal lock. This changes the signature of the return type - from ACE_Reactor_Lock to ACE_Lock. - - Added a size() accessor that returns the current size of the - Reactor's internal descriptor table. - - Added wakeup_all_thread() operation. Currently it just does a - notify. - - Added alertable_handle_events() operation. Currently it just - calls handle_events(). - - Added register_handler (that take event handles) operations. - However, they are not supported in this version. They are mostly - here for interface compatibility with ReactorEx. - - * ace/XtReactor: Now inherits from Select_Reactor instead of - Reactor. - - * ace/Timer_Queue_T.h: Removed the inclusion of Time_Value.h. This - file does not exist anymore - - * ace/Synch_T (ACE_Lock_Adapter): Changed the implementation of - the adapter such that the user is allowed to (optionally) pass - in the locking mechanism. - - * ace/Strategies: Removed ACE_ReactorEx_Notification_Strategy. - - * ace/Service_Config: Updated Service_Config so that all ReactorEx - and Proactor methods are removed. ReactorEx does not exist any - longer and Proactor methods are available as statics methods on - the Proactor class. - - * ace/OS.h (ACE_DEFAULT_SELECT_REACTOR_SIZE): Changed - ACE_DEFAULT_REACTOR_SIZE to ACE_DEFAULT_SELECT_REACTOR_SIZE. - There is no default size dictated by the Reactor class anymore. - - * ace/Local_Tokens,Token: Added new methods: acquire_read, - acquire_write, tryacquire_read, tryacquire_write. These methods - allow the Tokens to be used by the ACE_Lock_Adapter class. - - * ace/Handle_Set.h (MAXSIZE): Changed ACE_DEFAULT_REACTOR_SIZE to - ACE_DEFAULT_SELECT_REACTOR_SIZE. There is no default size - dictated by the Reactor class anymore. - - * ace/Event_Handler: Removed the Proactor and ReactorEx pointers - from Event_Handler. The Proactor has its own event handler - (ACE_Handler), and the ReactorEx does not exist anymore. - - * ace/Proactor: - - Changed Proactor to work with the new Reactor. - - Updated Proactor to bring it upto date with the recent changes - to the Timer_Queue. - - * tests: - - Removed the ACE_NEW_THREAD macro. With the new thread adapter, - the log stream for the new thread will automatically be set to - the creator thread's stream. Therefore, this macro is not - needed. - - Removed the inclusion of Service_Config.h. All tests are now - accessing the singletons that are supported by the class directly. - - * examples/Reactor/Proactor: Updated examples to use and access - the new Reactor class instead of the old ReactorEx. - - * examples/Reactor/ReactorEx: Updated examples to use and access - the new Reactor class instead of the old ReactorEx. - -Sun Sep 14 09:50:22 1997 Douglas C. Schmidt - - * ace/Singleton.i (ACE_Singleton): Moved the definition of the - ACE_Singleton default constructor into the *.i file. In - general, it's not a good idea to put definitions in *.h files. - - * tests/test_config.h: Improved the #undef scheme for ACE_NDEBUG. - -Sat Sep 13 23:51:55 1997 Nanbor Wang - - * ace/ACE_Library.{mak,mdp}: Removed Service_Record.cpp and added - Service_Type.cpp in project file. - - * ace/: Removed ace.{mak,mdp} and replaced them with - ACE_Library.{mak,mdp}. MSVC 4.2 insists to change the release - version DLL from our original setting "ace.{dll,lib}" to "ACE - dynamic Library.{dll,lib}". This is so far the only known - method to get around this. - - * netsvcs/servers/servers.{dsw,dsp}: Changed the output filenames - of debug version from maind.exe to main.exe. - - * netsvcs/lib/netsvcs.{dsw,dsp}: Changed the output filenames of - debug version from netsvcsd.{dll,lib} to netsvcs.{dll,lib}. - - * ace/ace.dsw: - * ace/ace_{dll,lib}.dsp: Removed Service_Record.cpp and added - Service_Type.cpp. - - * ace/Log_Msg.cpp (open): Fixed a typo. - - * ace/Reactor.cpp: Fixed a typo. - -Sat Sep 13 17:23:22 1997 Douglas C. Schmidt - - * ACE version 4.3.6, released Sat Sep 13 17:23:22 1997. - -Sat Sep 13 12:11:50 1997 Douglas C. Schmidt - - * tests: #include "test_config.h" before all the other files so - that we always have the ACE_ASSERT enabled... Thanks to Carlos - for noticing this. - - * ace/Reactor.cpp: Added Arturo's improvements for suspending and - resuming Event_Handlers. - - * tests/Reactors_Test.cpp: As a result of the new changes to - ACE_Thread_Manager, the Reactors_Test now seems to be working - fine. - - * ace/Thread_Manager.cpp (append_thr): When we append a new - Thr_Descriptor make sure to zero-out the cleanup_info_ fields - since otherwise horrible things will happen... - - * ace/Reactor: Added a new ACE_Reactor_Handle_Set called - suspend_set_ and updated the suspend_i() and resume_i() method - to use this set to store the ready bits that are enabled when we - suspend and resume and Event_Handler, respectively. Thanks to - Arturo for this suggestion. - - * tests/TSS_Test.cpp (main): Had to move the allocation and - deletion of TSS_Error into the ACE_HAS_THREADS section since - otherwise this test doesn't work when threading is disabled. - - * tests/Thread_Manager_Test.cpp: Move the template specialization - inside of the ACE_HAS_THREADS macro since otherwise this test - doesn't work when threading is disabled. - - * ace/Thread_Manager.cpp: Arrgh! Must initialize the cleanup_info - fields to 0 in the constructor for ACE_Thread_Descriptor! This - should fix a nasty bug... - - * tests/Async_Timer_Queue_Test.cpp: Continued to improve the - documentation in the test of the ACE_Async_Timer_Queue_Adapter. - - * ace/Timer_Queue_T.cpp (schedule): Oops, must pass &this->mask_ - to ACE_Sig_Set rather than this->mask_. - - * ace/Object_Manager.cpp: Changed #include - "ace/Service_Repository.h" to #include "ace/Service_Config.h" - since we now call ACE_Service_Config::close(). - - * ace/Service_Types: Removed a nasty circular dependency by simply - having each of the ACE_Service_Type_Impl subclasses take const - void *'s rather than their specific type (i.e., ACE_Stream or - ACE_Module, etc.). This turns out not to be a problem since we - treated them as const void *'s internally anyhow... - - * ace/Strategies_T.cpp: Fixed a bug in ACE_DLL_Strategy: - - ACE_Service_Type_Impl stp = new ACE_Service_Object_Type (svc_handler, this->svc_name_); - - should be - - ACE_Service_Type_Impl *stp = new ACE_Service_Object_Type (svc_handler, this->svc_name_) - - I wonder how this ever compiled?! - -Fri Sep 12 13:26:50 1997 Douglas C. Schmidt - - * ace/Mem_Map.cpp (close): Removed the following code in the - close() method that appears to be redundant with the code in - unmap(): - - if (this->file_mapping_ != this->handle_ - && this->file_mapping_ != ACE_INVALID_HANDLE) - ACE_OS::close (this->file_mapping_); - - Also cleaned up the close() code so that it doesn't try to close - the handle multiple times, even if close() is called more than - once. Thanks to Beged-Dov for reporting - this. - - * tests/Async_Timer_Queue_Test.cpp: Improved the structure of the - program and finished implementing the new feature that makes it - possible to avoid blocking SIGQUIT. - - * ace/Timer_Queue_T: Added support for an ACE_Sig_Set that can be - passed into the constructor of ACE_Async_Timer_Queue_Adapter. - This will enable us to selectively block only certain signals. - - * ace/Signal: Added a new constructor for ACE_Sig_Set that takes - ACE_Sig_Set * and also improved the documentation of the - constructor interfaces. - -Fri Sep 12 13:46:04 1997 David L. Levine - - * ace/OS.[hi],Log_Msg.h,config-lynxos.h, - include/makeinclude/platform_lynxos.GNU: added LynxOS port, - provided by Dave Mayerhoefer . Note how few - files were affected. What's even more amazing is the very small - number, 8, of very minor code changes to OS.[hi] and Log_Msg.h. - This is a tribute to the maturity of - - - * ace/Service_Object.h: Moved the ACE_Service_Type class into the - Service_Object.h file since this is "publically" visible to - applications. - - * ace/Service_Types.h: Improved the documentation of the - ACE_Service_Type subclass implementations. - - * ace/Service_Types: Changed the name next_ to link_ to be - consistent with the accessor name. - - * ace: Renamed Service_Record.{h,i,cpp} to Service_Types.{h,i,cpp} - to reflect the recent change in names. - - * ace/Service_Object.h: Renamed ACE_Service_Type to - ACE_Service_Type_Impl and ACE_Service_Record to ACE_Service_Type - in order to emphasize the use of the Bridge pattern. Thanks to - Eric Newton for motivating this. - - * ace/Svc_Conf.y: Removed the warning about Service name being - different from Module name. I'm not sure why this was - complaining in the first place. Thanks to Eric Newton for - pointing this out. - - * netsvcs/lib/README: The entry point for the time service client - is _make_ACE_TS_Clerk_Processor and not - _make_ACE_TS_Clerk_Connector. Thanks to Ivan for pointing this - out. - -Thu Sep 11 10:59:12 1997 - - * ace/Connector.cpp (handle_output): Increased the idle time - before we check the status of a non-blocking connection from 1 - ms to 35 ms when ACE_HAS_BROKEN_NON_BLOCKING_CONNECTS is - defined (i.e., Win32.) This is very odd but wait a whole lot - longer seems to solve the problem. - - * ace/Log_Msg.cpp (close): On Win32, ACE_Log_Msg_Manager needs to - delete main thread's ACE_Log_Msg instance also. - -Thu Sep 11 10:37:00 1997 Carlos O'Ryan - - * ace/ACE.cpp: - * ace/INET_Addr.cpp: - * ace/Log_Msg.h: - * ace/Memory_Pool.h: - * ace/OS.h: - * ace/OS.i: - * ace/Parse_Node.cpp: - * ace/Strategies_T.h: - * bin/clone.cpp: - * netsvcs/clients/Naming/Dump_Restore/Dump_Restore.h: - I checked the use of MAXNAMELEN vs. MAXPATHLEN; all buffers - intended to keep full filenames should have at least - MAXPATHLEN+1 chars. - Only buffers that will keep basenames (without any directories) - should have MAXNAMELEN+1 bytes. - I also added a new macro ACE_MAX_FULLY_QUALIFIED_NAME_LEN which - is the maximum number of characters for a fully qualified - internet hostname. - There remain one obscure usage of these macros in ace/Malloc.h - and Local_Naming_Space_T.{h,cpp}, but a quick fix broke - something, I will try again soon. - -Thu Sep 11 08:52:36 1997 David L. Levine - - * ace/OS.cpp (thr_key_detach): check to see if the - ACE_TSS_Cleanup lock has been constructed, and not - destructed, before attempting to use it. Statics are evil. - - * ace/Log_Msg.cpp (~ACE_Log_Msg): release guard before calling - ACE_Log_Msg_Manager::close (), because that deletes the lock. - - * ace/Managed_Object.{h,cpp} (get_object): changed type of "id" - to int because it will often be passed an enum. Pass "id" by - value to get_object (int id), for preallocated objects. - - * ace/Object_Manager.{h,cpp}: added ACE_LOG_MSG_INSTANCE_LOCK, - and ACE_PREALLOCATE_OBJECT macro. - - * include/makeinclude/wrapper_macros.GNU: ignore shared_libs_only - in modules that only build a static lib. Fixed shared_libs_only - by removing OBJDIRS, unless BIN is undefined, and VDIR. Removed - SHOBJ from both shared_libs_only and static_libs_only because - they're unused. - - * include/makeinclude/rules.local.GNU: added lib*.*_pure* to - clean.local target, to remove Purified libraries. - - * examples/Connection/non_blocking/Makefile, - examples/Service_Configurator/IPC-tests/server/Makefile: - removed -L./ from LDFLAGS because it's redundant: - wrapper_macros.GNU adds it. - -Wed Sep 10 22:58:10 1997 Douglas C. Schmidt - - * ace/Thread_Manager.cpp (exit): Reordered the code so that it - will keep the lock held long enough to copy out the thread exit - hook but will release the lock before calling this hook. - -Wed Sep 10 11:04:08 1997 David L. Levine - - * ace/config-sunos5.5-g++.h: added - ACE_HAS_RECURSIVE_THR_EXIT_SEMANTICS. - - * include/makeinclude/wrapper_macros.GNU: added PIC= with - static_libs_only, and added list of supported make flags. - - * include/makeinclude/wrapper_macros.GNU: added support for - debug=0, etc. Also, made debug, optimize, and profile - flags independent instead of exclusive. Thanks to Per - Andersson for suggesting this. - - * include/makeinclude/platform_*.GNU: replaced "CFLAGS += - $(DCFLAGS) with debug=1 so that debugging can easily be - disabled. Thanks to Per Andersson and James CE Johnson - for noticing this deficiency. - - * include/makeinclude/platform_vxworks5.x_g++.GNU: removed - "-I. -I$(ACE_ROOT)" from CFLAGS because it duplicates the - INCLDIRS set in wrapper_root.GNU. - -Wed Sep 10 10:35:06 1997 David L. Levine - - * ACE version 4.3.5, released Wed Sep 10 10:35:06 1997. - -Wed Sep 10 10:25:41 1997 David L. Levine - - * ace/Thread_Manager.cpp (exit): copy the thread exit hook before - releasing the guard, and call it after releasing the guard. - - * examples/Shared_Malloc/test_malloc.cpp (spawn): added (char *) - cast of slave_name () to avoid compilation warnings on Solaris. - -Wed Sep 10 00:43:04 1997 Nanbor Wang - - * ace/Makefile: Added Managed_Object to template sources. - - * ace/Object_Manager.{h,cpp}: * ace/Managed_Object.{h,cpp}: - Separate ACE_Managed_Object to a new set of file. - -Tue Sep 9 23:41:56 1997 Douglas C. Schmidt - - * tests/Reactors_Test.cpp (main): Check to see if wait() returns - -1 and then test to see what's gone wrong! - - * ace/OS.h: Added a "fake" #define for SIGALRM so that programs - will *compile* on platforms like Chorus. Thanks to Wei Chiang - for reporting this. - - * examples/Shared_Malloc/test_malloc.cpp (spawn): HP/UX doesn't - seem to like const char *const argv[] being given an initializer - list. I've fixed this to be just plain ol' char *argv[]. - Thanks to Sandro Doro for reporting this. - - * ace/Handle_Set.i (clr_bit): Replaced SOCKET with ACE_SOCKET so - this will compile on UNIX. - -Tue Sep 09 17:16:21 1997 - - * ace/Proactor: Updated Proactor to bring it upto date with the - recent changes to the Timer_Queue. - - * ace/Handle_Set.i (clr_bit and set_bit): These methods now change - the size_ member of the class on Win32. This is necessary since - the ACE_Handle_Set::operator fd_set *() accessor has been - optimized for size_ == 0. - -Tue Sep 09 09:14:07 1997 David L. Levine - - * ace/OS.cpp (cleanup_tss): On WIN32 and with ACE_HAS_TSS_EMULATION, - delete the ACE_TSS_Cleanup instance instead of registering it for - cleanup via the ACE_Object_Manager's at_exit (). This should allow - applications to use ACE_Log_Msg in their at_exit () hooks. Thanks - to Wei Chiang for reporting this problem. - - * ace/Object_Manager.{h,cpp}: added guard of internal structures. - (dtor): call at_exit hooks before calling cleanup_tss, now that - the ACE_TSS_Cleanup instance is no longer registered for an at_exit - call. (at_exit): set errno instead of returning different values - on error. Added ACE_Managed_Object template class, intended for - use in replacing static instances. - - * ace/Thread_Manager.cpp (exit): release guard before running the - thread exit hooks. This should help avoid deadlocks, in case - one of those hooks needs to operate on the Thread_Manager. - - * ace/CORBA_Handler.{h,cpp},Dump.{h,cpp},Object_Manager.{h,cpp}: - preallocate locks for CORBA_Handler and Dump in ACE_Object_Manager. - Statics are evil. - - * ace/Synch.{h,cpp},OS.cpp,Object_Manager.{h,cpp}: removed - ACE_TSS_Cleanup_Lock and replaced it with a preallocated mutex - in OS.cpp. Thanks to Nanbor for reporting problems at shutdown - with the old ACE_TSS_Cleanup_Lock static instance. - - * include/makeinclude/platform_sunos5_sunc++.GNU: when building - libraries only, don't use CC to create individual .shobj/*.so - files. The .so files are not needed to build libraries, because - libraries are built with -G. (They are needed to avoid upsetting - the ACE make rules, so they're created as links to their - corresponding .o files.) The .so files are still needed when - building executables in order to get all template instantiations. - - * include/makeinclude/platform_sunos5_g++.GNU: removed unused - SOLINK definitions. - -Mon Sep 8 18:38:22 1997 Douglas C. Schmidt - - * tests/Handle_Set_Test.cpp: It is possible for the order to get - the handles (using the iterator) will not agree with insert - order in ACE_Unbounded_Queue. It's best to use - ACE_Unbounded_Set. Thanks to Arturo for this fix. - -Mon Sep 8 17:43:43 1997 Darrell Brunsch - - * ace/Timer_{List,Wheel,Hash,Heap}_T.cpp: The iter() method now - returns a pointer to an iterator that is in a reset state - instead of an unknown one. - -Mon Sep 8 14:05:15 1997 Nanbor Wang - - * ace/ACE.cpp (read_adapter): Removed ACE_Thread_Control object in - this function. This is now taken care of by ACE_Thread_Manager. - (register_stdin_handler): This function no longer uses - ACE_Stdin_Args to pass in thread manager into read_adapter. - - * ace/ACE.h (ACE): Removed class ACE_Stdin_Args, because it is no - longer needed. - -Mon Sep 08 11:49:02 1997 David L. Levine - - * tests/run_tests.sh: moved log file checks out to separate file, - run_tests.check. - - * tests/run_tests.vxworks: added one-button test for VxWorks. - Check it out, Darrell. - - * ace/Filecache.cpp: commented out unused constants [RW]COPY_FLAGS. - -Mon Sep 08 08:26:52 1997 David L. Levine - - * ACE version 4.3.4, released Mon Sep 08 08:26:52 1997. - -Sat Sep 6 10:41:17 1997 Carlos O'Ryan - - * ace/Malloc.h: - sizeof() must be casted to int in ACE_CONTROL_BLOCK_ALIGN_LONGS - otherwise unsigned int arithmetic is used, thus obtaining - unexpected results. - -Sat Sep 06 09:07:02 1997 David L. Levine - - * OS.{h,cpp}: added ACE_Cleanup base class and - ace_cleanup_destroyer adapter. - - * Object_Manager.*: added at_exit () interface for ACE_Cleanup objects. - - * Singleton.{h,cpp},Token_Invariants.{h,cpp},Token_Manager.{h,cpp}: - base on ACE_Cleanup, so that simpler ACE_Object_Manager::at_exit () - can be used. - - * performance-tests/Misc/Makefile: moved $(BIN) files from FILES - to SRC so that they don't get put into libPerf. - -Sat Sep 6 02:36:31 1997 Nanbor Wang - - * tests/test_config.h (set_output): Added openning flag ios::trunc - explicitly if we are not appending to the opening ofstream. - This is required by standard CPP iostream libraries on NT (i.e., - we can't use ios::out alone when ofstream.open a file.) - -Sat Sep 6 00:21:33 1997 Douglas C. Schmidt - - * ace/Synch_T.h: Added new constructors: - - ACE_Guard(ACE_LOCK& l) : lock_(&l) - { this->owner_ = this->acquire(); } - - ACE_Read_Guard(ACE_LOCK& m) : ACE_Guard(&m) - { this->owner_ = this->acquire_read(); } - - ACE_Write_Guard(ACE_LOCK& m) : ACE_Guard(&m) - { this->owner_ = this->acquire_write(); } - - Remove default argument to current Guard classes. - - ACE_Guard(ACE_LOCK&l, int block) - ACE_Read_Guard(ACE_LOCK& m, int block) - ACE_Write_Guard(ACE_LOCK&m, int block) - with the current semantic. - - This change allows OS platforms with - ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION or ACE_HAS ??? PRAGMA - ???, to> invoke common case constructor in a more efficient - way. Thanks to Arturo for this. - - * ace/Synch_T.h: ACE_Guard's destructor should be: - - ~ACE_Guard() { this->release(); } - - and not - - ~ACE_Guard() { if (this->owner_ != -1) this->release(); } - - because ACE_Guard::release has this test. Thanks to Arturo for - reporting this. - - * ace/ARGV.cpp: Declared the char* parameters for the ACE_ARGV - class constructors as const. Since they are copied in the - constructors, this is a safe thing to do. This makes it easier - to pass the result of string::c_str() to it. Thanks to Stephen - Coy for this suggestion. - - * ace/Thread_Manager.cpp: We were missing a Guard in the - ACE_Thread_Manager::at_exit() method. - - * ace/config-sunos5.5-sunc++-4.x.h: It appears that we need to set - ACE_HAS_RECURSIVE_THR_EXIT_SEMANTICS for Solaris 2.5 since otherwise - wierd things happen randomly. This is based on the following man - page entry for pthread_exit(): - - Do not call pthread_exit() from a cancellation cleanup handler - or destructor function that will be invoked as a result of - either an implicit or explicit call to pthread_exit(). - - * ace/Thread_Manager.cpp (run_thread_exit_hooks): Once the cleanup - hook(s) are called we set the value of the cleanup hook variable - to 0 to avoid false matches later on. - -Fri Sep 5 21:57:44 1997 Nanbor Wang - - * ace/Containers.i (is_empty): - * ace/Malloc.cpp (instance): Commented out ACE_TRACE in these - routines. They were causing recursive call if we used TRACE. - Thanks to Craig Perras for solving - this. - - * ace/Handle_Set.i (fd_set *): Added conditional compilation code - for Win32 platforms. This is because we don't maintain - on Win32 and, therefore, can't depend on it. - -Fri Sep 5 19:05:02 1997 Douglas C. Schmidt - - * tests/Thread_Manager_Test.cpp (main): moved delete - signal_catcher into the ACE_HAS_THREADS part of the main() - function. - - * ace/Reactor.cpp (check_handles): When handle_error was optimized - with fstat we put NULL value to second argument. It requires a - value to SCO OpenServer to work. Therefore, I added struct stat - temp and changed ACE_OS::fstat(handle, NULL) by - ACE_OS::fstat(handle, &temp); Thanks to Arturo for fixing this. - - * examples/Threads/process_manager.cpp (sig_handler): Fixed a bug - where the thread was exiting if no more children existed. - Thanks to Avraham Nash for reporting - this. - - * ace/Handle_Set: Added the following performance enhancements: - - . Assignment operator to optimize size == 0. - - . min_handle to manage the case when the Handle_Set start in - handle different of zero. - - . A new iterator algorithm tuned for select function calls. - - Thank to Arturo for these enhancements. - - * ace/config-aix-4.1.x.h: Added ACE_LACKS_TIMESPEC_T. Thanks to - Rob Head (rhead@virtc.com) for reporting this. - - * ace/OS.cpp (fork_exec): Changed the logic so that we don't - create a new console window on Win32. This isn't done on UNIX, - so there's no point in doing it here. Thanks to Jeff Richard - for pointing this out. - - * ace/Reactor.cpp: The call to - ACE_Reactor_Handler_Repository::open() in the constructor of - ACE_Reactor should check for == -1! Thanks to Brian Mendel for - reporting this. - - * ace/Reactor.cpp (remove_handler): Fixed a braino where the - conditional compile for NSIG should have been > 0 rather than == - 0. Thanks to fixing this codeKaren Amestoy - for reporting this fix. - -Fri Sep 05 16:17:50 1997 David L. Levine - - * performance-tests/Misc/preempt.cpp: added command line options, - and explanation on how to interpret the results. - -Thu Sep 04 10:26:11 1997 David L. Levine - - * ace/OS.cpp: (tss_open): removed paren from around type in "new" - statement, because GHS (and ANSI C++) compilers will choke on it. - Thanks to Brian Mendel for reporting - this. - - * ace/Thread_Manager.cpp: (ACE_Thread_Descriptor ctor): zero out - cleanup_hook_ in cleanup_info_ because we read it later on. - (dump): added guard because thr_table_ is accessed. (wait): - hacked in thr_yield () to give waited threads a chance to clean - up before continuing. - - * ace/OS.h (ACE_Cleanup_Info): added default ctor. - - * ace/Log_Msg.cpp (close): delete main thread's Log_Msg instance, - on Solaris if ACE_HAS_EXCEPTIONS is not defined, because main - thread TSS dtors apparently don't get called. - - * ace/Token_Manager.{h,cpp}: register ACE_Token_Manager singleton - for deletion with ACE_Object_Manager. - - * ace/Token_Invariants.{h,cpp}: register ACE_Token_Invariant_Manager - singleton for deletion with ACE_Object_Manager. - - * ace/Naming_Context.cpp (close) moved deletion of "name_options_" - from dtor to close (), because when Service_Repository is closed, - it calls close () instead of deleting the service. - - * ace/Process_Strategy.cpp (handle_signal): suppress printouts during - shutdown, to prevent using ACE_Log_Msg while it's being deleted. - - * ace/Timer_List.cpp: replace ACE_Recursive_Thread_Mutex with - ACE_SYNCH_RECURSIVE_MUTEX, for non-threaded platforms. - - * tests/Reactors_Test (~Test_Task): moved ASSERT after the printout, - so we can see why it failed. (svc): added printout with thread ID. - (main): deleted reactor at end of test to prevent leak. - - * tests/SPIPE_Test (client): increased sleep time to 10 sec, - because a long delay is needed with Purify. - - * tests/UPIPE_Test (connector): added 5 second sleep to give - acceptor a chance to start up. - - * include/makeinclude/wrapper_macros.GNU: added -max_threads=100 to - Quantify options. - - * include/makeinclude/rules.local.GNU: added *.sym to clean target. - -Thu Sep 04 09:39:08 1997 David L. Levine - - * ACE version 4.3.3, released Thu Sep 04 09:39:08 1997. - -Thu Sep 04 08:48:13 1997 David L. Levine - - * include/makeinclude/wrapper_macros.GNU: added shared_libs_only - and static_libs_only build options. Only static_libs_only - has been tested successfully. - - * include/makeinclude/rules.lib.GNU: added INSTALL support for - shared_libs_only and static_libs_only. - - * include/makeinclude/platform_vxworks*.GNU: use static_libs_only. - - * ace/OS.cpp: moved tss_open ()/tss_close () calls from invoke () - to ace_thread_adapter. - - * examples/Threads/auto_event.cpp,manual_event.cpp, - process_manager.cpp,reader_writer.cpp,tss2.cpp: - cast spawn entry point to ACE_THR_FUNC. - - * examples/Threads/task_four.cpp (Invoker_Task): rearranged - initializers to match declaration order. - - * examples/Threads/thread_specific.cpp (worker): use - ACE_OS::printf () instead of printf (), and print out the - ACE_hthread_t instead of the ACE_thread_t. - - * examples/IPC_SAP/SPIPE_SAP/client.cpp,consumer_msg.cpp, - consumer_read.cpp,producer_msg.cpp,producer_read.cpp,server.cpp: - moved #include of shared.h inside ACE_HAS_STREAM_PIPES protection - to avoid compilation warnings on unsupported platforms. - - * examples/Reactor/Ntalker/ntalker.cpp (main): removed unused "argc". - - * examples/*/*.cpp,netsvcs/clients/Tokens/mutex/test_mutex.cpp: - added args to main (). - -Wed Sep 3 21:38:18 1997 Carlos O'Ryan - - * ace/config-irix6.x-sgic++.h: - IRIX uses pthread_sigmask to manage per-thread signal mask, - thanks to Gonzalo Diethelm (gonzo@ing.puc.cl) for pointing out - this one. - - * ace/OS.h: - Removed an initial '#' for a comment line, thanks to Gonzalo - Diethelm (gonzo@ing.puc.cl) for pointing out this one. - - * ace/Timer_Hash_T.cpp: - * ace/Timer_Hash_T.h: - * ace/Timer_Heap_T.cpp: - * ace/Timer_Heap_T.h: - * ace/Timer_List.cpp: - * ace/Timer_List_T.cpp: - * ace/Timer_List_T.h: - * ace/Timer_Queue_T.cpp: - * ace/Timer_Queue_T.h: - * ace/Timer_Wheel_T.cpp: - * ace/Timer_Wheel_T.h: - In the word of its author: Modified the iterators kept in each - of these classes so that they are constructed dynamically on the - heap after the Queue has been properly initialized. Otherwise, - the iterators try to iterate over a non-initialized queue, and - fail miserably (usually dumping core). - Once more thanks to Gonzalo Diethelm (gonzo@ing.puc.cl) for this - changes. - - * tests/UPIPE_SAP_Test.cpp: - Gonzalo improved the error message. - - * ace/README: - Gonzalo updated the documentation for some macros. - -Wed Sep 03 15:21:46 1997 David L. Levine - - * ace/OS.h: define ACE_TSS macros with ACE_HAS_TSS_EMULATION, - and renamed some ACE_TSS_Emulation methods. - - * ace/OS.i: allow TSS_Emulation storage to be on thread stack, - instead of always dynamically allocating it. - - * ace/OS.cpp (ACE_Thread_Adapter::invoke): allocate TSS_Emulation - storage on thread stack. (ACE_TSS_Cleanup::exit): only call - a TSS destructor if the thread's value is non-zero. - - * ace/Thread_Manager.cpp: support TSS_Emulation. - - * ace/Thread_Manager.cpp (resize): zero out unused cleanup_hooks - in thr_table_; (run_thread_exit_hooks): check for zero cleanup - hook before calling. - - * ace/Synch_T.*: allow ACE_HAS_TSS_EMULATION _or_ - ACE_HAS_THREAD_SPECIFIC_STORAGE. - - * ace/Object_Manager.{h,cpp}: allocate main thread's TSS_Emulation - storage in the ACE_Object_Manager instance. - - * ace/Log_Msg.h: befriend ACE_OS::cleanup_tss () instead of - ACE_Object_Manager, because the cleanup path is now indirect - from the ACE_Object_Manager. - - * ace/Log_Msg.cpp: use TSS_Emulation on VxWorks, so - VxWorks-specific code was removed. - - * ace/Task.cpp: removed unused #include of ace/Dynamic.h. (It had - been used for template instantiations, but they were moved.) - Also, removed unused #include of ace/Object_Manager.h. - - * ace/Svc_Handler.{h,cpp}: register Svc_Handler singleton for - deletion with the ACE_Object_Manager. - - * tests/Process_Strategy_Test (Options): added a destructor so that - the dynamically allocated concurrency_strategy_ can be deleted. - -Wed Sep 3 08:05:26 1997 Steve Huston - - * ace/Message_Block.h: Corrected comment on release(void) - the - underlying ACE_Data_Block's refcount is decremented; the - ACE_Message_Block is always deleted. - -Tue Sep 2 18:26:22 1997 Douglas C. Schmidt - - * ace/Task: Revised the ACE_Task_Base::svc_run() method to - register a thread exit hook (ACE_Task_Base::cleanup()) - - * ace/Task: Added a static method called cleanup() that can serve - as a thread exit hook to ensure that close() is always called - when a task exits a thread. - - * ace/Thread_Manager: Added the first-cut implementation of the - thread exit hooks. This one is butt-simple -- just allowing a - single hook per-thread, but that should be enough to get us over - the hump... - - * ace/OS.h: Moved the object_info_t type from Object_Manager.h and - renamed it to ACE_Cleanup_Info since we will use it with the - Thread_Manager and the Object_Manager. - - * ChangeLog-97b: Emptied out the ChangeLog-97b file until - we move the ChangeLog to this file... - - * ace/OS.h: Moved the typedef from the - ACE_Object_Manager into global scope so that it can also be used - by the ACE_Thread_Manager. - - * ace/DEV_IO: Moved the get_remote_addr() and get_local_addr() - from the DEV class to the DEV_IO class, which seems to be more - consistent with how they should be used. - - * ace/FILE_IO: Added the get_remote_addr() and get_local_addr() - methods to FILE_IO. Now we should be able to use this with the - Connector pattern. Thanks to Stephen Coy - for reporting this. - - * ace/DEV_Connector*h, ace/FILE*.h: Added "traits" for PEER_ADDR - and PEER_STREAM. Now we should be able to use this with the - Connector pattern. Thanks to Stephen Coy - for reporting this. - - * tests/Async_Timer_Queue_Test.cpp (main): Replaced the use of - fputs() with read() so that it will be signal-safe. Thanks to - Carlos for pointing out the need for this. - - * ace/Task: All the complex ACE_Task_Exit logic has been moved out - of the Task file and into the Thread_Manager file. This will - both simplify and generalize the behavior of cleanups on thread - exit. - -Tue Sep 2 14:42:52 1997 Nanbor Wang - - * ace/config-chorus.h (ACE_HAS_BROKEN_EXPLICIT_TEMPLATE_DESTRUCTOR): - Added this directive for Chorus uses g++. Thanks to David - Levine for pointing this out. - -Mon Sep 01 21:31:25 1997 David L. Levine - - * ChangeLog-97b,Makefile,bin/create_ace_build: ChangeLog is no longer - a symbolic link, but instead is the most recent ChangeLog file. - ChangeLog-97b was moved to ChangeLog. - - * ace/Timer_Queue_T.cpp (schedule): added ACE_UNUSED_ARGs for act - and interval. - - * ace/OS.h: changed ACE_SEH_EXCEPT and ACE_SEH_FINALLY from null - to "while (0)" on all platforms except ACE_WIN32. Thanks to - Nanbor for this bit of macro wizardry. - - * ace/OS.i (tss_base): cast VxWorks TCB spare field to a void **& - instead of a void **, because the function returns a reference - to it. - - * ace/OS.cpp: protected definition of - ACE_TSS_Emulation::tss_collection_ on VxWorks, where it's not used. - - * ace/OS.cpp (ACE_Thread_Adapter::invoke) don't exit the thread - with TSS_EMULATION, except on WIN32. (thr_create) On VxWorks, - use thread adapter as entry point instead of func (via macros). - - * ace/config-vxworks*.h: added ACE_HAS_TSS_EMULATION, with - ACE_DEFAULT_THREAD_KEYS set to 16, and ACE_LACKS_UNIX_SIGNALS. - - * tests/Async_Timer_Queue_Test.cpp: added template instantiations. - - * tests/IOStream_Test.cpp: no longer need to dynamically allocate - the ACE_SOCK_IOStreams with the recent ACE_Thread_Manager changes. - That was causing occasional problems with unsafe deletion of the - underlying ostreams. Thanks to James Johnson for consulting on - this intermittent (nasty) problem. - - * tests/SPIPE_Test.cpp: (main) added ACE_UNUSED_ARG of client - and server. - - * tests/Thread_Manager_Test (worker): added ACE_UNUSED_ARG (thr_mgr) - if ACE_LACKS_UNIX_SIGNALS, and added template instantiations. - - * tests/Thread_Manager_Test.cpp: dynamically allocate the - signal_catcher so that we can destroy it before the main - thread's TSS is cleaned up. - - * tests/TSS_Test.cpp: dynamically allocate TSS_Error so that we - can ensure its deletion before that of ACE_Object_Manager. - Also, makde the code a little easier to change the number of threads. - - * include/makeinclude/wrapper_macros.GNU: added Purify options to - ignore SIGINT and set max threads to 100. - -Mon Sep 1 10:53:39 1997 Douglas C. Schmidt - - * ace/Handle_Set: Added an assignment operator that is optimized - for the case when the right-hand side is 0. - - * ace/OS: The ACE_THR_C_FUNC macro was confusing for Win32. We've - replaced this with the original UNIX typedef and will just use - LPTHREAD_START_ROUTINE for Win32. - - * tests/Thread_Manager_Test.cpp (main): Revised this test so that - we don't have race conditions for suspend() and resume(). - - * tests/Tokens_Test.cpp (run_test): Removed the use of - THR_SUSPENDED and resume_all() since this is broken due to race - conditions and other hazards implicit in using suspend() and - resume() on threads. - - * ace/Handle_Set.cpp: There were several ACE_INLINE methods in the - Handle_Set.cpp file. I've removed the ACE_INLINE flag. - - * tests/SPIPE_Test.cpp: If ACE doesn't have STREAM pipes on a - platform (or we aren't on NT) then don't try to run this test. - Thanks to James CE Johnson for reporting - this. - - * ace/config-sunos5.[45]-g++.h: ACE defines _REENTRANT in - config.h. Application using classes of ACE can conflict by - using compilation option as -D_REENTRANT. I fixed this by - surrounding the define as: - - #if !defined (_REENTRANT) - #define _REENTRANT - #endif /* _REENTRANT */ - - Thanks to Jean-Marc Strauss for - reporting this. - - * ace/Timer_Queue_T.h: We need to #include "ace/Signal.h" since - our Async_Timer_Queue_Adapter needs it. Thanks to Neil Cohen - for reporting this. - - * ace/Reactor.cpp (check_handles): Optimized the check for invalid - handles by using fstat() rather than select() on non-Win32 - platforms. Thanks to Arturo for suggesting this optimization. - -Mon Sep 1 17:52:10 1997 Darrell Brunsch - - * ace/Timer_Heap_T.cpp: Changed cancel (id ...) to check for - previously expired/cancelled timers - -Mon Sep 01 08:43:37 1997 David L. Levine - - * ace/Synch.cpp: added #include of Object_Manager.h. - Thanks to Edan Ayal for reporting this. - -Mon Sep 1 00:46:05 1997 Nanbor Wang - - * ace/README: Added explanation for ACE_HAS_STL_MAP_CONFILICT. - - * ace/OS.h: Added conditional compilation directive - ACE_HAS_STL_MAP_CONFLICT. This is used when users want to - compile ACE with STL library and the STL map class conflicts - with map structure in . - - * ace/config-unixware-2.1.2-g++.h: - * ace/config-unixware-2.01-g++.h: - * ace/config-osf1-4.0-g++.h: - * ace/config-irix5.3-g++.h: - * ace/config-hpux-10.x-g++.h: - * ace/config-linux-pthread.h: - * ace/config-linux-lxpthreads.h: - * ace/config-linux.h: - * ace/config-freebsd.h: - * ace/config-freebsd-pthread.h: - Added ACE_HAS_BROKEN_EXPLICIT_TEMPLATE_DESTRUCTOR flag for all - config files which apparently use g++. - - * ace/config-vxworks-g++.h: - * ace/config-vxworks5.x-g++.h: - * ace/config-sunos4-g++.h: - * ace/config-sunos5.4-g++.h: - * ace/config-sunos5.5-g++.h: - Moved ACE_HAS_BROKEN_EXPLICIT_TEMPLATE_DESTRUCTOR closer to - other template-related directives. - -Sun Aug 31 22:56:30 1997 Douglas C. Schmidt - - * ACE version 4.3.2, released Sun Aug 31 22:56:30 1997. - -Sun Aug 31 22:36:08 1997 Douglas C. Schmidt - - * tests/Async_Timer_Queue_Test.cpp: Need to #include "Timer_List.h" - rather than "Timer_Queue.h". - - * ace: Added ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT for all - config.h files. - - * ace/Handle_Set.cpp (count_bits): Continued to optimize this - method. Now, if ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT enabled - it will use a very fast loop that only runs for as many bits - that are enabled in the bitset. This approach also doesn't have - to access the Global Offset Table in shared libraries, which is - a win. Thanks to Arturo for contributing this. - - * tests/Async_Timer_Queue_Test.cpp: Generalized this test to use - the new ACE_Async_Timer_Queue_Adapter. - - * ace/Timer_Queue_T: Added the new ACE_Async_Timer_Queue_Adapter, - which makes it possible to encapsulate any of the ACE Timer - Queue mechanisms into a asynchronous signal-handling context. - - * ace/OS.i: If the platform doesn't support ualarm() (and it - doesn't lack UNIX signals) then we'll use alarm() rather - than ualarm(). Clearly, this isn't as good as ualarm(), - but it's better than nothing. - - * ace/OS.i: I'd missed replacing - - ACE_LACKS_POSIX_PROTO_FOR_SOME_FUNCS - - with - - ACE_LACKS_POSIX_PROTOTYPES_FOR_SOME_FUNCS - - in OS.i. Thanks to James CE Johnson for - pointing this out. - -Sun Aug 31 09:58:35 1997 Douglas C. Schmidt - - * Princess Diana was killed today in a senseless auto accident in - Paris, France. This is a very tragic ending to a very promising - life ahead of her. - -Sun Aug 31 15:08:00 1997 David L. Levine - - * tests/Async_Timer_Queue_Test.cpp: fixed and added some - ACE_UNUSED_ARG's. - - * netsvcs/clients/Tokens/invariant/invariant.cpp (run_mutex, - run_reader_writer), - netsvcs/clients/Tokens/mutex/test_mutex.cpp (run_test), - netsvcs/clients/Tokens/rw_lock/rw_locks.cpp (run_thread): - removed unused argument "vp". - - * ace/ACE.i (log2): moved "log" declaration outside of the - for loop because its used after the loop. - - * ace/Task.cpp (instance) only register for destruction with - ACE_Object_Manager when creating a new instance_. - - * ace/Thread_Manager.cpp (ACE_Thread_Control::exit) with TSS - emulation, don't exit the thread. Instead, - ACE_Thread_Adpater::invoke () will do it after cleaning up TSS. - - * ace/Synch{h,cpp}: (ACE_TSS_Cleanup_Lock) register for - destruction with ACE_Object_Manager. - - * ace/OS.*: major cleanup of ACE_TSS_Emulation, esp. how it - interacts with ACE_TSS_Cleanup::exit (). - -Sat Aug 30 17:30:24 1997 Steve Huston - - * Removed these config files: - config-hpux-10.x-aCC.h - config-hpux-10.x-decthreads.h - config-hpux-10.x-nothread.h - config-hpux-10.x-hpc++.h should be used with HP compilers on - HP-UX 10.x. - -Sat Aug 30 14:58:42 1997 Douglas C. Schmidt - - * ace/Signal.cpp (ACE_Sig_Action): Added a new constructor that - also takes an ACE_Sig_Set & *and* registers the handler... - - * ace/Handle_Set.cpp (count_bits): Added a newly optimized - algorithm for cases where - ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT. Thanks to Arturo for - this suggestion. - - * ace/config-sco-5.0.0*.h: Added ACE_HAS_LONG_FDMASK for all the - SCO files. Thanks to Arturo for suggesting this. - - * ace/Signal: Added a new mutator method to reassign an - ACE_Sig_Set to an ACE_Sig_Action. - - * ace/Handle_Set.i: If the size of the fd_set is 0 then operator - fd_set *() just returns 0. This will help to optimize the - performance of the Reactor. Thanks to Arturo for suggesting - this. - - * ace/Handle_Set.cpp (count_bits): Added yet another improvement - to remove the "i" iterator. Thanks to Arturo for this! - - * ace/Log_Msg.cpp (log): Used the new ACE_Log_Record::priority() - method in place of the type() method so that the priorities are - handled correctly. - - * ace/Log_Record: Added two new methods that get/set the - "priority" of an ACE_Log_Record. This value computed as the - base 2 log of the value of the corresponding ACE_Log_Priority - enumeral (which are all powers of two). We need this mapping - function so that we can use the priorities as parameters to the - putpmsg() function (which can only map between 0-255). Thanks - to Per Andersson for finding this stuff! - - * ace/ACE: Added a new method to compute the base2 logarithm of a - number. - - * Replaced all uses of ACE_Thread_Control since this is now - handled by the ACE_Thread_Manager. - - * ace/Thread_Manager.cpp (spawn_i): Make sure to pass "this" to - the ACE_Thread_Adapter if we're constructing it in the - ACE_Thread_Manager::spawn_i() method. - - * ace/OS.i (cond_timedwait): Added a special check to see if - timeout != 0, in which case we just call ACE_OS::cond_wait(). - Therefore, VxWorks can now use ACE_OS::cond_timedwait(), as long - as the timeout == 0! This simplifies certain internal ACE code. - Thanks to David Levine for pointing this out. - - * ace/Handle_Set.cpp (count_bits): Changed the code from - - for (int i = 0; i < sizeof (u_long); i++) - { - rval += ACE_Handle_Set::nbits_[n & 0xff]; - n >>= 8; - } - - to - - for (int i = 0; n != 0; i++) - { - rval += ACE_Handle_Set::nbits_[n & 0xff]; - n >>= 8; - } - - in order to speed it up in the "best case." Thanks to Arturo - Montes for reporting this. - - * ace/Thread.cpp (spawn_n): Added a test to make sure that the - thread_ids is != 0 before we assign into this. - -Fri Aug 29 22:45:21 1997 Nanbor Wang - - * ace/config-vxworks-g++.h: - * ace/config-vxworks5.x-g++.h: - * ace/config-sunos4-g++.h: - * ace/config-sunos5.4-g++.h: - * ace/config-sunos5.5-g++.h: - Added flag ACE_HAS_BROKEN_EXPLICIT_TEMPLATE_DESTRUCTOR to these - config files. - - * ace/README: Added explanation of flag - "ACE_HAS_BROKEN_EXPLICIT_TEMPLATE_DESTRUCTOR." - When calling a template class'es destructor explicitly, if you - must use "ptr->FOO::~FOO ();" but not - "ptr->FOO::~FOO ();" then, you must add this flag to - your config file. - - * ace/OS.h (ACE_DES_FREE_TEMPLATE): Added this new macro to cope - with the fact that compilers require different syntax when - calling destructor of template classes explicitly. This macro - takes four arguments, POINTER, DEALLOCATOR, CLASS, and - TEMPLATE_PARAMETER. To deallocate a pointer allocated by - ACE_NEW_MALLOC and you need to call FOO class'es - destructor, you'll write: - - ACE_DES_FREE_TEMPLATE (ptr, alloc->free, FOO, ); - - * ace/Containers.cpp: Changed to use ACE_DES_FREE_TEMPLATE to iron - out differences among compilers. - -Fri Aug 29 15:31:50 1997 David L. Levine - - * ace/OS.*,Synch.{h,cpp},Object_Manager.cpp: started adding - support for TSS emulation. - - * ace/OS.h: declare class ostream if - ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION. - - * tests/Async_Timer_Queue_Test.cpp (parse_commands): fixed - sscanf format specifiers to match argument types; (main): - fixed ACE_ERROR_RETURN parens; protected bulk of code with - ACE_HAS_UALARM so that the test will build cleanly on - platforms without it. - -Fri Aug 29 00:43:27 1997 Douglas C. Schmidt - - * ace/Synch.cpp (wait): Simpified the call to - ACE_OS::cond_timedwait() to avoid an extra test. Thanks to - Arturo for pointing this out. - - * ace/TTY_IO: Added native support for TSETA. Thanks to Arturo for - this. - - * ace/Strategies_T.cpp: Finished integrating the ACE_DLL_Strategy - implementation, which is used in TAO. Thanks to Satheesh Kumar - MG for motivating this. - - * ace/Synch_T.h: Clarified the constructor for ACE_TSS that takes - a TYPE * as an argument. Note that this only initializes the - TSS value in the *calling* thread, but not any other threads - that may come along later on. Thanks to Bob Laferriere - for helping to clarify this. - - * ace/Synch_T.h: Removed stray semi-colons from some of the - ACE_SYNCH_* macros. Thanks for Wei Chiang for reporting this. - -Fri Aug 29 11:40:10 1997 Darrell Brunsch - - * ace/OS.cpp: Added cast for ace_thread_adapter. - - * ace/OS.h: Changed name of ACE_Thread_Adapter's constructor's - fourth parameter from tm to tmgr since tm conflicted with - another tm. - - * ace/Thread_Manager.cpp: In spawn_i, changed the last parameter - given to spawn to thread_args. Also had to add a cast for - ace_thread_adapter. - -Fri Aug 29 06:44:05 1997 Nanbor Wang - - * ace/OS.h (ACE_DES_FREE): Added this macro which will call - designate destructor before freeing the memory. This is a - matching macro that should go with ACE_NEW_MALLOC and - ACE_NEW_MALLOC_RETURN which allocate memory using designate - allocator then call the user specified constructor explicitly. - - * ace/Containers.cpp: Many memory deallocations of container's - nodes were changed to use the new macro which deletes objects - correctly. - - Thanks very, very much to Ivan Murphy for torturing various - test programs and reporting those tests which fail the - excruciation. - -Fri Aug 29 01:26:38 1997 - - * ace/ReactorEx.cpp: Added two new methods to ReactorEx - - schedule_wakeup() and cancel_wakeup(). Also fixed some bugs - related to our local copy of network_events_ not getting updated - properly. Thanks to Edan Ayal for pointing out - the two missing functions. - -Thu Aug 28 20:12:23 1997 Douglas C. Schmidt - - * ace/Thread_Manager.cpp: Added a new ace_thread_manager_adapter() - function, which is similar to the ace_thread_adapter function - used in ACE_OS::thr_create(). However, the new function ensures - that threads spawned by an ACE_Thread_Manager are automatically - registered and deregistered from the Thread Manager. - - * ace/ACE.h (inherit_log_msg): Factored out the functionality to - inherit the logging features if the parent thread has an - ACE_Log_Msg instance in thread-specific storage. This function - is called in several places (e.g., OS.cpp and - Thread_Manager.cpp), so it pays to factor it out. - - * ace/OS.h (ACE_Thread_Adapter): Added a new data member that - keeps track of which thread entry point function we will pass to - the underlying OS thread creation routine. The default value is - ace_thread_adapter, but this can be overridden to do different - things... - - * ace/OS, - ace/Thread: Extended thr_create() so that if an - ACE_Thread_Adapter is passed to it this is used in lieu of the - func and arg parameters. This reduces the amount of dynamic - allocation and indirection required with the new - ACE_Thread_Manager. - - * ace/Task.h: Removed the ACE_Thread_Control data member from the - ACE_Task_Exit class since it now belongs to the - ACE_Thread_Manager instead... - - * ace/OS.cpp: Move the ACE_Thread_Adapter out of the OS.cpp file - and made it a first-class citizen of ACE. We can put this - to good use in the new ACE_Thread_Manager. - - * ace/OS.cpp: The ACE_Thread_Adapter is now the default behavior - in ACE. If you don't want to use it for whatever reason, - you'll need to set the ACE_NO_THREAD_ADAPTER macro. - - * ace/config-sco-5.0.0-fsu-pthread.h: Added - ACE_LACKS_CONST_TIMESPEC_PTR. Thanks to Arturo for this. - - * ace/Synch.cpp (wait): Removed the reference assignment and just - take the address of this->mutex_.lock_. Also, removed the - additional check for abstime == 0 in order to speed up the - common case. Thanks to Arturo for these suggestions. - -Thu Aug 28 20:02:03 1997 Douglas C. Schmidt - - * ACE version 4.3.1, released Thu Aug 28 20:02:03 1997. - -Thu Aug 28 00:21:09 1997 Douglas C. Schmidt - - * ace/Strategies_T.cpp (ACE_Thread_Strategy): Added reasonable - values to the default constructor. Thanks to Stephen Coy - for reporting this. - - * ace/config-irix6.x-sgic++-*.h: Added ACE_HAS_UALARM. Thanks to - Amos Shapira for reporting this. - - * ace/config-aix-4.*.h: Added ACE_HAS_UALARM. Thanks to Cary - Clark for reporting this. - - * ace/config-hpux-10.x*.h: Added ACE_HAS_UALARM. Thanks to Cary - Clark for reporting this. - - * ace/config-osf1*.h: Added ACE_HAS_UALARM. Thanks to Thilo - for reporting this. - - * ace/config-mvs.h: Added ACE_HAS_UALARM. Thanks to Chuck Gehr - for reporting this. - - * tests/Async_Timer_Queue_Test.cpp: Added a new test that will - illustrate how to implement an asynchronously invoked - Timer_Queue using UNIX SIGALRM signals. - -Thu Aug 28 19:32:07 1997 - - * examples/Reactor/ReactorEx: Added two new applications - (test_registry_changes.cpp and test_console_input.cpp) to show - some more features of ReactorEx. test_registry_changes.cpp shows - how to monitor the Registry using ReactorEx. - test_console_input.cpp shows how to use ReactorEx to get - notified when input shows up on the console. - -Thu Aug 28 18:07:37 1997 Darrell Brunsch - - * ace/Timer_{List,Heap,Wheel,Hash}_T.cpp: Changed the behavior - of the iterator to automatically initialize when the iterator - is constructed. - -Thu Aug 28 10:43:35 1997 David L. Levine - - * ace/Task.{h,cpp} (ACE_Task_Exit::instance) added call to - ACE_Object_Manager::at_exit () to clean up the singleton at - program termination. - -Thu Aug 28 03:25:52 1997 Nanbor Wang - - * tests/Task_Test.cpp (Barrier_Task): - * tests/TSS_Test.cpp (main): Added an array to collect thread - handles in order to clean them up. Thanks to Ivan Murphy - for pointing this out. - - * ace/Thread_Manager.{h,cpp} (spawn_n): - * ace/Task.{h,cpp} (activate): - Added an extra argument ACE_hthread_t thread_handles[] with - default value 0. We need this argument to collect handles of - spwaned/activated threads. On NT, we have to join terminated - threads explicitly to prevent handles leak. Thanks to Ivan - Murphy for digging this out. - -Wed Aug 27 10:48:25 1997 Douglas C. Schmidt - - * ace: Changed all occurrences of ACE_LACKS_RLIMIT_PROTO to - ACE_LACKS_RLIMIT_PROTOTYPE, ACE_LACKS_POSIX_PROTO to - ACE_LACKS_POSIX_PROTOTYPES, and ACE_LACKS_SYSV_MSQ_PROTOS to - ACE_LACKS_SYSV_MSQ_PROTOTYPES to be more consistent. - - * ace/config-sunos5.x*.h: Added ACE_HAS_UALARM to all the Solaris - config files. However, also had to add ACE_LACKS_UALARM_PROTOTYPE - since Solaris strangely doesn't provide this prototype. - - * ace/OS.h: Added an ACE_Time_Value version of ACE_OS::ualarm(). - - * ace/Signal: Added a new constructor for ACE_Sig_Action that - takes an ACE_Sig_Set parameter. - - * ace/Signal: Added a sigset() accessor method. - - * ace/config-unixware-2.1.2-g++.h: Added ACE_HAS_UALARM. Thanks - to Ganesh Pai for reporting this. - - * ace/OS.h: Added a default value of 0 to ACE_OS::time(). - - * ace/Synch.i (ACE_Thread_Mutex_Guard): Rearranged the code so - that we can inline the acquire(), tryacquire(), and release() - methods properly. Thanks to David Levine for pointing this out. - - * ace/OS.h: Added ACE_OS support for the ualarm() method. If your - platform supports ualarm() please send me email so I can set the - ACE_HAS_UALARM flag in your config.h file. - - * tests/Makefile: Added an asynchronous timer queue test. - - * examples/IOStream/server/iostream_server.cpp: Added a new macro - to work around the fact that some C++ compiles don't grok - template typedefs. Thanks to Oleg Krivosheev - for pointing this out. - - * ace/OS, - ace/Task.cpp: - Installed a bunch of patches for FSU pthreads. Thanks to Arturo - Montes for sending this. - - * Makefile: Added a line to the release script that will - automatically generate an ACE-INSTALL text file from the - ACE-INSTALL.html file. Thanks to Oleg Krivosheev - for suggesting this. - - * performance-tests/Misc/Makefile: Added $(BIN) to the FILE target - so that "make depend" will work. Thanks to David Levine for - pointing this out. - - * ace/Synch.i: Eliminated unnecessary assignment to this->owner_. - Thanks to Chris for pointing this out. - - * ace/OS.i (msgctl): Added a "struct" to the definition of - msqid_ds. Thanks to Steve Hickman for - reporting this. - -Thu Aug 28 01:07:21 1997 - - * examples/Reactor/ReactorEx/test_directory_changes.cpp: Added a - new example application. This application tests the working of - ReactorEx when users are interested in changes in the - filesystem. - -Wed Aug 27 22:06:23 1997 Nanbor Wang - - * *.{mak,mdp,dsw,dsp}: Updated ACE's library names on Win32 as - below. Only Microsoft's Win95 and Windows NT are effected. - - Version Dynamic Library Static Livrary - ------------------ -------------------- ----------------- - Debug aced.lib, aced.dll acesd.lib - Release ace.lib, ace.dll aces.lib - Debug w/ UNICODE aceud.lib, aceud.dll acesud.lib - Release w/ UNICODE aceu.lib, aceu.dll acesu.lib - - Thanks to John Morey for suggesting this and - Darrell for updating VC 5.0's makefiles. - - * ace/config-freebsd[-pthread].h (ACE_HAS_UALARM): FreeBSD does has - ualarm. - -Wed Aug 27 10:52:59 1997 Chris Cleeland - - * ace/Synch_T.h (CTOR): Eliminated unnecessary assignment to - this->owner_. - -Wed Aug 27 09:32:57 1997 David L. Levine - - * ace/Singleton.cpp (instance): removed full qualification of - "instance_" in ACE_NEW_RETURN macro, because it confused - the Sun C++ 4.2 preprocessor. - - * ace/Singleton.cpp: added support for ACE_HAS_SIG_C_FUNC platforms, - e.g., on MVS. At least I tried to. The cleanup function, - on ACE_HAS_SIG_C_FUNC platforms only, doesn't call the object's - destructor. It just deallocates the storage. That should be - good enough; I don't think it's worth trying to do more than that. - - * ace/Synch.cpp (close_singleton): removed call to - ACE_Allocator::close_singleton (), because this method is - only called if ACE_HAS_THREADS. - - * ace/Object_Manager.cpp (dtor): added call to - ACE_Allocater::close_singleton (), and protected call to - ACE_Static_Object_Lock::close_singleton () with ACE_HAS_THREADS. - - * tests/Time_Value_Test.cpp: disabled ACE_U_LongLong test - on ACE_WIN32 platforms, because that class is never used - there. Thanks to Nanbor for finding this. - - * performance-tests/Misc/preempt.cpp,Makefile: added preempt - test, which tests for thread preemption. - -Tue Aug 26 13:59:01 1997 Douglas C. Schmidt - - * netsvcs/lib/Server_Logging_Handler_T.cpp: Changed the symbol - "SS" to "SST" to avoid a namespace collision with UnixWare. - Thanks to Ganesh Pai for pointing this out. - - * ace: Added a new config file to sco using FSU pthreads. Thanks - to Arturo Montes for sending this. - - * include/makeinclude: Added a new platform macros file to sco - using FSU pthreads. Thanks to Arturo Montes - for sending this. - -Tue Aug 26 22:06:14 1997 - - * examples/Reactor/ReactorEx: Added two new applications for - testing some of the new features of ReactorEx. Added - documentation and renamed some of the older test files to make - it easier to comprehend the examples. - -Tue Aug 26 11:47:29 1997 - - * ace/OS.i (mutex_trylock): Changed this method to make it deal - correctly with abandoned mutexes. Also added a new mutex_trylock - method that allows the user to know if the mutex was abandoned - (through an extra out parameter). Also fixed - ACE_OS::cond_timedwait(), ACE_OS::cond_wait(), - ACE_OS::event_wait(), ACE_OS::event_timedwait() and - ACE_OS::sema_wait() to remove extra checks for WAIT_ABANDONED, - since we are not dealing with mutexes in these methods. Thanks - to Ivan Murphy for pointing this - out. - -Tue Aug 26 11:06:45 1997 David L. Levine - - * ace/OS.h,config-vxworks5.x-g++.h: - split ACE_HAS_RENAMED_MAIN into ACE_MAIN and - ACE_HAS_NONSTATIC_OBJECT_MANAGER. - - * ace/ACE.cpp: only create the ACE_Object_Manager_Destroyer - if not ACE_HAS_NONSTATIC_OBJECT_MANAGER. - - * ace/Object_Manager.{h,cpp}: dynamically allocated the - contained ACE_Unbounded_Queue to so that it can be deallocated - before the ACE_Allocator is destroyed. - - * ace/Singleton.{h,cpp}: register all ACE_Singletons for - cleanup with the ACE_Object_Manager. - - * ace/Synch.{h,cpp}: renamed ACE_Static_Object_Lock::atexit () to - close_singleton (), and removed the unused atexit hook. - - * ace/Log_Msg.cpp (ACE_Log_Msg_Manager::close): delete the - main thread's Log_Msg. - - * ace/config-vxworks-ghs-1.8.h: added ACE_HAS_NONSTATIC_OBJECT_MANAGER. - - * tests/Time_Value_Test.cpp: added tests of ACE_U_LongLong. - - * tests/Atomic_Op_Test.cpp (main): added arguments to main (). - - * tests/Barrier_Test.cpp (main): delete thread_handles array - to prevent memory leak. - - * examples/Reactor/Misc/test_signals_2.cpp (main): changed - type of second arg from "char *" to "char *[]". - -Mon Aug 25 14:13:57 1997 Carlos O'Ryan - - * ace/OS.h: - Changed the return type of sendmsg_timedwait from sszie_t to - ssize_t, this should only affect platforms where - ACE_LACKS_TIMEDWAIT_PROTOTYPES, further it was definitely wrong - before. - Thanks to ARTURO MONTES for pointing - out this one. - -Mon Aug 25 10:15:06 1997 David L. Levine - - * ace/Message_Queue.cpp (notify): fixed ACE_TRACE message. - - * examples/ASX/UPIPE_Event_Server/event_server.cpp, - examples/Connection/misc/test_upipe.cpp, - examples/Connection/non_blocking/test_*.cpp, - examples/IPC_SAP/SOCK_SAP/CPP-inserver-poll.cpp, - examples/IPC_SAP/SOCK_SAP/FD-unserver.cpp, - examples/Misc/test_dump.cpp, - examples/Reactor/FIFO/client.cpp, - examples/Reactor/Misc/test_*.cpp, - examples/Reactor/Proactor/test_multiple_loops.cpp, - examples/Reactor/Proactor/test_timeout.cpp, - examples/Reactor/ReactorEx/test_timeout.cpp, - examples/Reactor/ReactorEx/test_exceptions.cpp, - examples/Service_Configurator/IPC-tests/client/local_spipe_client_test.cpp, - examples/Service_Configurator/IPC-tests/client/remote_thr_stream_client_test.cpp, - examples/Shared_Malloc/test_multiple_mallocs.cpp, - examples/System_V_IPC/SV_Message_Queues/*MQ_*.cpp, - examples/System_V_IPC/SV_Semaphores/Semaphores_?.cpp, - examples/Threads/process_mutex.cpp, - examples/Threads/recursive_mutex.cpp, - examples/Threads/tss1.cpp, - examples/Threads/thread_specific.cpp, - examples/Threads/token.cpp, - examples/Threads/wfmo.cpp, - tests/Simple_Message_Block_Test.cpp, - tests/Hash_Map_Manager_Test.cpp: - added arguments to main () to support redeclaring it on VxWorks. - - From now on, we should always declare main () with arguments, e.g., - int - main (int, char *[]) - -Sun Aug 24 10:27:33 1997 Douglas C. Schmidt - - * tests/Future_Test.cpp (Scheduler): Removed the non-existent - friend class Method_ObjectWork. Thanks to Sandro Doro - for reporting this problem. - - * ace/Message_Block.h: Clarified in the comments that the length() - of a Message_Block is 0 until the wr_ptr() is explicitly set. - Thanks to Amos Shapira for pointing out - the need for this. - -Sat Aug 23 14:43:27 1997 Douglas C. Schmidt - - * ACE version 4.3, released Sat Aug 23 14:43:27 1997. - -Sat Aug 23 14:40:32 1997 Douglas C. Schmidt - - * Released the long-awaited ACE 4.3. Good night sweet prince: - And flights of angels sing thee to thy rest. - -Sat Aug 23 00:44:09 1997 Douglas C. Schmidt - - * netsvcs/lib/Server_Logging_Handler.cpp: Make sure that we - explicitly instantiate ACE_Svc_Handler whether or not we're building with threads - since otherwise we get link errors. - -Fri Aug 22 20:58:49 1997 Nanbor Wang - - * ace/OS.cpp (ACE_TSS_Cleanup): Changed the lock for - ACE_TSS_Cleanup from a static object to a singleton to avoid the - nasty detruction order problem. This only effects Win32. - - * ace/Synch.{h,cpp}: Added a new singleton lock - "ACE_TSS_Cleanup_Lock" for Win32 platform. This object is - expect to be put under ACE_Object_Manager's control and will - probably gone/changed in the near future. - -Fri Aug 22 18:48:17 1997 Carlos O'Ryan - - * ACE-install.sh: - I updated the information on IRIX. Now we know for a fact it - compiles on IRIX 6.x, but we are not certain on IRIX 5.X. - - * bin/auto_compile_wrapper: - I have tried to make it clear that auto_compile_wrapper must be - tailored on each site. The email address is invalid and the - script should just crash the - - * ace/OS.i (cond_timedwait): - It used to always dereference the timeout parameter, which could - be 0 (heading for a - Sthreads use timestruc_t instead of timespec_t, thanks to - Ganesh Pai for pointing out this one and to - Steve Huston for explaining to us what - was going on. - -Fri Aug 22 08:46:39 1997 David L. Levine - - * include/makeinclude/platform_vxworks*.GNU: - unset SHLIB to fix builds without PRELIB. - - * netsvcs/lib/Logging_Strategy.cpp, - examples/Threads/task_three.cpp: include fstream.h and - iostream.h if ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION. - - * examples/ASX/UPIPE_Event_Server/event_server.cpp, - examples/Log_Msg/test_log_msg.cpp, - examples/Reactor/Misc/test_time_value.cpp, - examples/Logger/Accepter-server/server_loggerd.cpp: - #include iostream.h if ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION. - - * examples/ASX/UPIPE_Event_Server/Peer_Router.cpp (svc): - replaced an iostream printout with an ACE_DEBUG call. - - * examples/Misc/test_read_buffer.cpp, - test_dump.cpp, - Mem_Map/IO-tests/test_io.cpp: - replaced bare OS calls with ACE_OS calls. - - * examples/Reactor/Misc/notification.cpp (Thread_Handler): - added cast of svc_run to ACE_THR_FUNC. - -Thu Aug 21 22:38:19 1997 Carlos O'Ryan - - * bin/auto_compile: - This tool will checkout ACE_wrapper from CVS, use - bin/create_ace_build to update a clone directory, compile ace - and tests in that clone directory and then run run_tests.sh. - If there is any problem it will report it to email. - - * bin/auto_compile_wrapper: - The former needs some configuration information and a proper - enviroment, hence it may not be invoked directly from your - crontab. This tool is used for that purpose. - - * apps/Gateway/Gateway/Makefile: - * apps/JAWS/server/Makefile: - * examples/Connection/non_blocking/Makefile: - * examples/IPC_SAP/DEV_SAP/reader/Makefile: - * examples/IPC_SAP/DEV_SAP/writer/Makefile: - * examples/Service_Configurator/IPC-tests/server/Makefile: - * netsvcs/clients/Naming/Client/Makefile: - * netsvcs/clients/Naming/Dump_Restore/Makefile: - * performance-tests/Synch-Benchmarks/Makefile: - No need to defines LIBS=-lACE here, it is already done in - wrapper_macros.GNU. Thanks to Cary Clark for - pointing out this one. - - * bin/create_ace_build: - New flag -a to create all symlinks using absolute paths, it - helps when the build directory is a symlink too. - - * include/makeinclude/platform_irix6.x-sgic++.GNU: - ACE now compiles with little or no warnings, I kept the linker - warnings deactivated though. - -ptall does not work any more. I added a comment on that. - - * ace/OS.h: - * apps/Gateway/Gateway/Concrete_Proxy_Handlers.cpp: - * apps/JAWS/clients/Blobby/Blob_Handler.cpp: - * apps/JAWS/server/HTTP_Server.cpp: - * examples/ASX/UPIPE_Event_Server/Peer_Router.cpp: - * examples/IPC_SAP/SPIPE_SAP/NPServer.cpp: - * examples/IPC_SAP/SPIPE_SAP/producer_read.cpp: - * examples/Reactor/Dgram/CODgram.cpp: - * examples/Reactor/Dgram/Dgram.cpp: - * examples/Reactor/Misc/test_demuxing.cpp: - * examples/Reactor/Misc/test_reactors.cpp: - * examples/Reactor/Misc/test_signals_2.cpp: - * examples/Threads/barrier2.cpp: - * examples/Threads/process_manager.cpp: - * examples/Threads/task_three.cpp: - * netsvcs/clients/Naming/Dump_Restore/Dump_Restore.cpp: - * netsvcs/clients/Tokens/collection/collection.cpp: - * netsvcs/clients/Tokens/mutex/test_mutex.cpp: - * performance-tests/Misc/childbirth_time.cpp: - * tests/Reactor_Exceptions_Test.cpp: - * tests/Reactors_Test.cpp: - * tests/SOCK_Test.cpp: - New macro ACE_NOTREACHED. Some compilers will issue warnings on - unreached statements with things like: - int foo() - { - if (bar) { - return 0; - } else { - return 1; - } - return 0; // warning here - } - but if we remove the last return some other compiler will issue - warnings on leaving the function with no return value. - This macro tries to deal with that, all we have to do is to - write the last line like: - int foo() - { - if (bar) { - return 0; - } else { - return 1; - } - ACE_NOTREACHED(return 0); // No warning now!!! - } - IMHO it also serves as a form of documentation. - -Thu Aug 21 21:00:35 1997 - - * ace/Auto_Ptr: Changed auto_ptr implementation to be as close - to the C++ specification as possible. Things that are still - missing are: - (a) std namespace - (b) member templates implementations - (c) making the constructors explicit - - * ace/OS.h (ACE_BIT_STRICTLY_ENABLED): Added new macro to check if - a bit is strictly enabled in a word. This is necessary when the - bit would be a combination of bits, and therefore, just - comparing against != 0 (like ACE_BIT_ENABLED does) is not enough - and comparing == BIT is necessary. - -Thu Aug 21 19:28:28 1997 James C Hu - - * include/makeinclude/rules.local.GNU (depend.local): If TAO_ROOT - is not set, don't try using it in sed. - - * bin/g++dep: Check the existence of the TAO_ROOT environment - variable before adding it to the relative pathname replacement - strategy. - -Thu Aug 21 16:29:02 1997 David L. Levine - - * ace/OS.h: added THR_JOINABLE and THR_SCHED_FIFO/RR/DEFAULT - to STHREADS, WTHREADS, and non-threaded platforms. On VxWorks - only, set NSIG to _NSIGS + 1. - - * ace/config-vxworks*.h: removed ACE_HAS_POSIX_SEM now that we - emulate it for VxWorks. - - * tests/Priority_Task_Test.cpp: use THR_SCHED_FIFO unconditionally - now that it's defined on all platforms. - - * include/makeinclude/platform_chorus.GNU, - platform_hpux_gcc.GNU, - platform_linux*.GNU, - platform_m88k.GNU, - platform_osf1_4.0_g++.GNU, - platform_sco*.GNU, - platform_sunos*_g++.GNU, - platform_unixware_g++.GNU, - g++ only: replaced PRELIB with "true" because it's not - needed for template instantiation. The old PRELIB no longer - worked without -lACE being added to LIBS in individual Makfiles. - The only reason to leave PRELIB defined to something is so that - the shared object definitions will be correct in rules.lib.GNU. - That should be fixed after 4.3 is released. - - * include/makeinclude/platform_vxworks5.x_ghs.GNU: - PRELIB no longer needed with explicit template instantiation. - -Thu Aug 21 12:38:26 1997 Steve Huston - - * ace/config-hpux-10.x.h: Removed extraneous #endif - -Thu Aug 21 12:21:16 1997 Nanbor Wang - - * ace/OS.h (THR_JOINABLE): Defined this macro for Win32 as 0. - -Wed Aug 20 22:36:52 1997 Douglas C. Schmidt - - * ACE version 4.2.44, released Wed Aug 20 22:36:52 1997. - -Wed Aug 20 18:28:28 1997 Steve Huston - - * ace/config-hpux-10.x.h: Made some definitions dependent on the - HP-UX version that is compiling the code. - - * ace/Filecache.(cpp h): Moved the definition of ACE_Filecache_Object - from .cpp to .h to help AIX xlC's template instantiator along. - - * apps/Gateway/Peer/Peer.(cpp h): Moved the definition of Peer_Handler - from .cpp to .h to help AIX xlC's template instantiator along. - - * include/makeinclude/platform_(hpux hpux_aCC hpux_gcc).GNU: Added - a compiler option to define HPUX_VERS with the current OS version. - Used in the config-hpux-10.x.h file. - -Wed Aug 20 13:44:16 1997 Carlos O'Ryan - - * ace/config-unixware-2.1.2-g++.h: - Unixware does not define timespec_t. Thanks to Ganesh Pai - for pointing out this one. - -Wed Aug 20 11:37:44 1997 David L. Levine - - * include/makeinclude/rules.bin.GNU,platform_vxworks5.x_g++.GNU: - added POSTLINK to build symbol table. - -Wed Aug 20 07:43:14 1997 Douglas C. Schmidt - - * ACE version 4.2.43, released Wed Aug 20 07:43:14 1997. - -Tue Aug 19 08:25:28 1997 Steve Huston - - * tests/Barrier_Test.cpp: Added THR_JOINABLE to the flags for - creating threads - allows join to work on platforms that create - threads detached by default (i.e. AIX). - - * tests/Process_Strategy_Test.cpp: If the final ACE_OS::kill() fails, - don't ACE_OS::wait() for the process. - - * ace/config-aix-4.2.x.h: Added ACE_HAS_BROKEN_POSIX_TIME. Commented - out ACE_HAS_AIX_BROKEN_SOCKET_HEADER. Added ACE_HAS_PTHREAD_T, - and will now not use tid_t for any ACE types. Rearranged things - to start clarifying items. - - * ace/config-hpux-10.x.h: Removed ACE_HAS_SETKIND_NP and adjusted - other, more meaningful, threads-related definitions to match what - HP 10.10 and 10.20 have for threads. This matches changes to OS.* - - * ace/OS.(h i cpp): Removed use of ACE_SETKIND_NP in an effort to - simplify the variety of threads-capability definitions. The only - platforms which used ACE_HAS_SETKIND_NP were HP-UX (see above) and - OSF/1 V3.2 (which has the same threads package as HP-UX). OSF/1 - V3.2 may require some adjustments per this change - it probably - should be changed to match HP-UX. OSF/1 V4 (aka Digital UNIX) - is not affected by this change. - - * ace/Log_Msg.cpp: Changed the 't' format (thread ID) to call - thread_self() directly on AIX. - -Mon Aug 18 21:39:33 1997 Douglas C. Schmidt - - * ACE version 4.2.42, released Mon Aug 18 21:39:33 1997. - -Mon Aug 18 20:22:14 1997 Carlos O'Ryan - - * apps/Gateway/Peer/Makefile: - No need to define LIBS=-lACE here, its already done in - wrapper_macros.GNU. Thanks to Cary Clark - for helping in this effort. - -Mon Aug 18 19:54:36 1997 Nanbor Wang - - * ace/OS.{h,i} (open, mutex_init, sema_init, event_init, mmap): - Added an extra argument LPSECURITY_ATTRIBUTE with default value - 0 to all these methods so that we can modify objects' security - attributes when needed. Thanks to Ivan Murphy for pointing this - out. - -Mon Aug 18 19:50:13 1997 Carlos O'Ryan - - * examples/Service_Configurator/Makefile: - * examples/Service_Configurator/IPC-tests/server/Makefile: - * apps/Gateway/Gateway/Makefile: - * examples/Connection/non_blocking/Makefile: - $(SOEXT) must be used instead of just .so, the former does not - work on all platforms, notably HP-UX. Thanks to Cary Clark - for helping in this effort. - -Mon Aug 18 19:46:27 1997 Carlos O'Ryan - - * ace/OS.i: - Added support for the missing netdb reentrant functions, even - under IRIX 6.2 with no threads. Thanks Paul Roman - for reporting this. - -Mon Aug 18 12:53:16 1997 David Levine - - * tests/Barrier_Test.cpp (tester): VxWorks doesn't support - thr_join(). Therefore, we need to work around it for now. - Maybe Wind River will fix it at some point. - -Mon Aug 18 12:38:52 1997 Steve Huston - - * ace/config-aix-4.2.x.h: Removed ACE_HAS_SVR4_TIME, added - ACE_LACKS_TIMESPEC_T. - -Mon Aug 18 12:00:31 1997 Carlos O'Ryan - - * ace/config-mvs.h: - MVS does not define timespec_t either. Thanks to Chuck - Gehr for reporting this. - -Mon Aug 18 10:41:05 1997 Carlos O'Ryan - - * ace/OS.h: - * ace/README: - On some platforms timespec_t is not defined. We added a new - config macro (ACE_LACKS_TIMESPEC_T) to handle that and we do a - typedef to solve the problem. - - * ace/config-freebsd-pthread.h: - * ace/config-freebsd.h: - * ace/config-linux-lxpthreads.h: - * ace/config-linux-pthread.h: - * ace/config-linux.h: - These are *some* config files that needed changes due to the new - timespec_t stuff. - -Mon Aug 18 09:34:11 1997 David L. Levine - - * ace/OS.cpp (ACE_Thread_Adapter): rearranged initializers to - match declaration order. - - * ace/Log_Record.h: declare "class ostream" if - ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION Log_Record.h. - - * ace/IOStream.h,Log_Msg.cpp,Log_Record.cpp, - tests/test_config.h: include iostream.h instead of ace/stdcpp.h - if ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION. - - * ace/config-vxworks*.h: added ACE_LACKS_TIMESPEC_T. - -Sun Aug 17 20:58:56 1997 Douglas C. Schmidt - - * ACE version 4.2.41, released Sun Aug 17 20:58:56 1997. - -Sun Aug 17 17:02:53 1997 Carlos O'Ryan - - * ace/config-irix6.x-sgic++-nothreads.h: - * ace/config-irix6.x-sgic++.h: - * include/makeinclude/platform_irix6.x-sgic++.GNU: - Finally a single config.h and platform_macros.GNU file can be use - for all the IRIX 6.X versions. - On SGI machines we need a higher value for - ACE_DEFAULT_BASE_ADDR, we used 1024*1024*1024, which works on - our site, but your mileage may vary. - - * include/makeinclude/platform_irix6.2_sgic++.GNU: - * include/makeinclude/platform_irix6.4_sgic++.GNU: - * ace/config-irix6.2-sgic++-nothreads.h: - * ace/config-irix6.2-sgic++.h: - * ace/config-irix6.4-sgic++-nothreads.h: - * ace/config-irix6.4-sgic++.h: - These files are no longer needed, see above. - - * ace/README: - * ace/ACE.cpp: - * ace/OS.h: - * ace/OS.i: - * ace/Profile_Timer.cpp: - * ace/Profile_Timer.h: - We no longer use timestruct_t in ACE, it is a SYSVism; we use - timespec_t instead. Hence we have no need for the config - macro ACE_HAS_SVR4_TIME, but we keep it there for future - reference. - - * tests/Reader_Writer_Test.cpp: - On IRIX using ACE_Thread::yield() degraded performance for - multiprocessor machines, but worse, the test will not behave as - expected: instead of interleaving read/write locks over the - RW_Mutex it will make all the write locks first and then the read - locks. The test uses ACE_OS::sleep() for yielding the CPU, - and it uses different pauses for each thread (see code for - details). Further, it yields the CPU *before* taking the - lock, to give other threads a chance. - -Sat Aug 16 18:17:10 1997 Douglas C. Schmidt - - * ACE version 4.2.40, released Sat Aug 16 18:17:10 1997. - -Sat Aug 16 18:13:22 1997 Douglas C. Schmidt - - * ace/ReactorEx.cpp (add_network_events_i): Revised the code to - use the ACE_BIT_CMP_MASK and ACE_SET_BITS macros to simplify the - code. - - * ace/OS.h: Added a new macro called ACE_BIT_CMP_MASK which checks - if a "bit-wise" & with a word == a particular mask. - - * ace/OS.cpp (thr_create): If we're in the Pthreads implementation - then we assume that ACE_thread_t and ACE_hthread_t are the same. - If this *isn't* correct on some platform, please let us know. - Thanks to Carlos O'Ryan . - - * ace/Auto_Ptr.cpp: Reverted the changes of ACE_Auto_Ptr to - auto_ptr since we want to be Standard C++ Library compliant. - However, we only define auto_ptr if ACE_HAS_STANDARD_CPP_LIBRARY - is *not* enabled. - - * Removed the INSTALL file since this is redundant with the HTML - version of this file (ACE-INSTALL.html). Thanks to David Levine - for doing the legwork to merge this. - -Sat Aug 16 15:11:24 1997 Darrell Brunsch - - * ace/Auto_Ptr.h: Put in an #include (for auto_ptr) if - the standard C++ library is being used. - - * ace/Auto_Ptr.*: Changed the checks for ACE_HAS_STANDARD_CPP_LIBRARY - to also check to see if it is defined to 0 (which means the same - as it not being defined). - - * ace/ReactorEx.cpp: Changed the use of auto_ptr to work with - the one in the Standard C++ library. - - * ace/config-win32-common.h: Added ACE_HAS_BROKEN_NESTED_TEMPLATES - and ACE_LACKS_STL_DEFAULT_TEMPLATE_PARAMETER for the MSVC versions - that need them. - - * ace/Registry.cpp: changed some variable names from iterator to - iter to prevent conflicts with another variable - - * ace/Registry.cpp: - STL/bstring.h: - - Changed references of NPOS to Istring::npos - -Sat Aug 16 14:17:07 1997 Carlos O'Ryan - - * ace/Auto_Ptr.i: - * ace/Auto_Ptr.cpp: - Some code was only included if ACE_HAS_STANDARD_CPP_LIBRARY was - defined; but the intention was exactly the opposite. - -Sat Aug 16 14:33:26 1997 David L. Levine - - * README,FAQ,Makefile: changed references from INSTALL file - to ACE-INSTALL.html. - -Fri Aug 15 19:51:52 1997 - - * ace/Auto_Ptr.h: A rarely used piece of ACE code has changed - names because of name conflicts with the Microsoft Standard C++ - Library. The change is from auto_ptr to ACE_Auto_Ptr. A perl - script ($ACE_ROOT/bin/auto_ptr.perl) is provided for users to - change their code accordingly. - - The following files were effected: - - ace: ACE.cpp Auto_Ptr.cpp Auto_Ptr.h Auto_Ptr.i OS.h - ReactorEx.cpp Service_Config.cpp Service_Object.h - - examples/Threads: future1.cpp future2.cpp test_future1.cpp - test_future2.cpp - - tests: Future_Test.cpp - -Fri Aug 15 17:41:28 1997 Douglas C. Schmidt - - * ACE version 4.2.39, released Fri Aug 15 17:41:28 1997. - -Fri Aug 15 13:33:04 1997 Nanbor Wang - - * ace/OS.h (ACE_DEFAULT_GLOBALNAME_W): Moved pathname delimiter - from ACE_DEFAULT_{LOCAL|GLOBAL}NAME_* to - ACE_DEFUALT_NAMESPACE_DIR on NT. We need to append local/global - name to get a unique mutex name for naming service. NT won't - let us put a backslash in lock name. ;( - -Fri Aug 15 14:50:26 1997 Steve Huston - - * ace/Makefile: Moved ARGV from the TEMPLATES section to the FILES - section; now builds on AIX. - - * ace/config-hpux-10.x.h: Don't redefine _HPUX_SOURCE. Move the - ACE_HAS_REENTRANT_FUNCTIONS and ACE_CTIME_R_RETURNS_INT to the - build-with-threads section. Thanks to Neil Cohen - for helping to flush these problems out. - - * tests/Makefile: If building on AIX, wipe out the tempinc directory - before each compilation to keep the driver from compiling all - prior programs' template instantiations in every link step. - -Fri Aug 15 13:07:26 1997 Douglas C. Schmidt - - * ace/Signal.cpp (remove_handler): Added some additional - parameters to ACE_Sig_Action usages in order to get this stuff - to compile with G++ on SunOS 4.1.4. Thanks to Kumar Neelakantan - for reporting this. - - * ACE version 4.2.38, released Thu Aug 14 23:07:26 1997. - -Fri Aug 15 13:33:04 1997 Nanbor Wang - - * ace/Naming_Context.cpp (ACE_Naming_Context): Moved the deletion - of name_options_ from close to dtor of this class so that we can - reconfigure the naming context. - -Fri Aug 15 10:28:14 1997 Darrell Brunsch - - * ace/OS.cpp: Changed uname() for Win32 so it returns information - for Windows 95 and NT. - -Thu Aug 14 18:06:37 1997 Chris Cleeland - - * ace/OS.[hi] (strsplit_r): Added a new method which splits a - string separated by tokens, similar to the way that perl's - split() works. This is different from the strtok() family b/c - for the string ":/foo:/bar::boo", strtok() would return "/foo", - "/bar", "boo", while strsplit_r() returns "", "/foo", "/bar", - "", "boo". This method is also properly re-entrant, and thus - safe to use among multiple threads. - - * ace/ACE.cpp (ldfind): Fixed this so that it now properly deals - with paths containing empty components intended to indicate - 'current directory'. - -Thu Aug 14 17:30:36 1997 Steve Huston - - * ace/config-hpux-10.x.h - Add ACE_LACKS_CONST_STRBUF_PTR, remove - ACE_HAS_POSIX_SEM, clarify comments regarding setting of - _CMA_NOWRAPPERS_ - thanks to Cary Clark for - helping in this effort. - -Thu Aug 14 16:14:47 1997 David L. Levine - - * ace/High_Res_Timer.cpp (print_ave,print_total): fixed format - specification for total_secs to be lu instead of lld. - -Thu Aug 14 14:06:37 1997 Chris Cleeland - - * ace/ARGV.cpp: Completed the explicit template instantiations for - this component. - -Thu Aug 14 11:27:03 1997 Edward Everett Anderson - - * ace/ARGV.* (argv): - - * Added another behavior to ACE_ARGV -- a user can iteratively - build the parameter set with add(). Made the class more - consistent so that accessors work no matter which constructor is - used. - -Thu Aug 14 10:14:37 1997 Darrell Brunsch - - * Made several changes to allow ACE to work with the new standard - C++ header files, such as and the built in STL. Thanks - to Matthias Kerkhoff for these changes. - The default is to use the old headers, unless the - ACE_HAS_STANDARD_CPP_LIBRARY is defined as 1. - - * ace/config-win32-common.h: - ace/config-win32.h: - - - Added ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB flag to - distinguish compilers who have the standard C++ library - declared in the namespace std and those who use the global - namespace for it - - - Enabled ACE_HAS_SIG_ATOMIC_T and ACE_HAS_TYPENAME_KEYWORD for - MSVC 5 - - - Changed the semantics of ACE_HAS_STANDARD_CPP_LIBRARY from - [defined/undefined] to [(undefined or defined as 0)/defined != 0] - to allow the choice between the old iostream and standard C++ - library for those platforms that support both - - - Don't define the ACE_LACKS_IOSTREAM_FX when building with MSVC - 5.0 and the standard C++ library. - - - If __ACE_INLINE__ is defined as 0, config-win32-common.h - undefines __ACE_INLINE__ to decrease the size of libraries and - executables. - - * ace/IOStream.cpp: Moved the #ifdef ACE_LACKS_ACE_IOSTREAM up to the - proper place - - * ace/IOStream.h: - ace/IOStream_T.h: - ace/Log_Msg.cpp: - ace/Log_Msg.h: - ace/Log_Record.cpp: - ace/Log_Record.h: - examples/ASX/Message_Queue/*.dsp: - examples/OS/Process/*.dsp: - examples/Threads/*.dsp: - examples/Threads/barrier2.cpp: - examples/Threads/task_three.cpp: - netsvcs/lib/Logging_Strategy.cpp: - - Updated to including stdcpp.h instead of , - , , etc. - - * ace/OS.h: Updated to use stdcpp.h instead of including the - normal C headers. Moved the includes into stdcpp.h to allow - switching between the old and new versions - - * ace/Registry.h: Changed to use the standard C++ headers for STL - and added a typedef Name_Component and Binding to - ACE_Registry::* to help some unresolved problems. - - * tests/Hash_Map_Manager_Test.cpp: - tests/test_config.h: - - Updated to #include ace/stdcpp.h instead of and - - - * ace/stdcpp.h: Updated to include more of the new standard C++ - header files, and also promote some of the iostream classes to - the global namespace. - - * ace/ace.dsp: - - - Added some folders like Templates and Documentation - - Added some files that were missing to the project - - Enabled function level linking for debug projects - - Set it to "Not using MFC" - - Removed wsock32.lib from the project settings (since - config-win32-common.h will tell the linker to use the correct - winsock library) - - Removed some other unnecessary libraries (OLE) from the - project. - -Wed Aug 13 23:02:45 1997 Douglas C. Schmidt - - * ACE version 4.2.37, released Wed Aug 13 23:02:45 1997. - -Wed Aug 13 13:26:27 1997 Douglas C. Schmidt - - * tests/Barrier_Test.cpp (main): Fixed the test of the ACE_Barrier - class so that it doesn't leak handles. This also illustrates - the use of the ACE_Thread::join() and - ACE_Thread_Manager::spawn_n() methods. Thanks to Ivan Murphy - for pointing this out. - - * ace/Thread_Manager.cpp (spawn_n): Note that if we get a null - thread_ids parameter we shouldn't try to index into it! - - * include/makeinclude/rules.local.GNU (OBJDIRS): Added - so_locations to the list of directories cleaned up during a make - clean/realclean. Thanks to Amos Shapira for reporting this. - - * ACE version 4.2.36, released Wed Aug 13 07:30:10 1997. - - * include/makeinclude/platform_irix6.[x-]32_sgic++.GNU: Added a - -Wl,-woff,133 to LDFLAGS to make the linker shutup about branch - instructions that might degrade performance - (what does this mean?). Thanks to Amos for this. - - * tests/test_config.h: Fixed a typo (ourput_file() should be - output_file()). How on earth did this ever work?! Thanks to - Amos Shapira for reporting this. - - * ace/Message_Queue.cpp: Added a couple of new ACE_UNUSED_ARGs - Thanks to Amos Shapira for reporting this. - - * ace/OS.cpp (gethrtime): ACE_OS::gethrtime should cast its return - value to ACE_hrtime_t instead of (u_long long). Thanks to - Amos Shapira for reporting this. - -Wed Aug 13 14:51:47 1997 Darrell Brunsch - - * ace/SString.[i,cpp]: moved some inline methods from the .i into - the .cpp so the Win32 Unicode Release compiles with inlining. - -Wed Aug 13 01:14:08 1997 Nanbor Wang - - * tests/test_config.h (ACE_NEW_THREAD): Removed - ACE_Log_Msg::set_flags/clr_flags from this macro because - ACE_Log_Msg::flags is a static variable. We really don't need - to reset them when creating new threads. Once VxWorks can also - inherit ACE_Log_Msg's properties, we no longer need this macro. - - * ace/Log_Msg.h: Added trace_depth() functions. They are required - for inheriting ACE_Log_Msg's properties. - - * ace/OS.cpp: Changed ACE_Thread_Adapter implementation so that - newly created threads will inherit properties from their parent - threads. This is the default behavior and is valid on all - platform except VxWorks. If you don't want it and would like to - arrange the properties propagation yourself, you must define - ACE_THREADS_DONT_INHERIT_LOG_MSG in your ace/config.h file. Now, - creating a new thread will go thru ace_thread_adapter on all - platform except VxWorks. If ACE_THREADS_DONT_INHERIT_LOG_MSG is - defined but your platform defines ACE_HAS_THR_C_FUNC or - ACE_WIN32, creating new threads still need to use - ace_thread_adapter. This change also fixes a previous problem - which let threads access another thread's TSS. - -Tue Aug 12 21:57:30 1997 David L. Levine - - * etc/ACE-guidelines.html: added. - -Tue Aug 12 16:54:33 1997 Douglas C. Schmidt - - * Added Chuck Gehr's explanation of how to build ACE for MVS to - the ACE-INSTALL.html file at http://www.cs.wustl.edu/~schmidt/. - - * ace/OS.i: changed the name of ACE_U_LongLong::dump() to - ACE_U_LongLong::output(). Also moved some of the code that was - inlined in the class definition into the *.i file. - - * netsvcs/lib/Server_Logging_Handler.cpp: Added a template - specialization for ACE_Atomic_Op to - make things link with SGI and other systems that have long - different than int. Thanks to Amos Shapira for reporting this. - - * ace/Reactor.cpp (close): Removed the #ifdefs around - notify_handler_.open () and notify_handler_.close() since this - is now supposed to be available on all build configurations. - Thansk to Stefan Ericsson for reporting this. - - * examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp: - Removed a static variable that seemed to be causing problems for - SGI C++. Also, removed the now unnecessary "inherited" from - Handle_Thr_Acceptor. - - * examples/ASX/UPIPE_Event_Server/Peer_Router.h, - * netsvcs/lib/Log_Message_Receiver.h: Added an - ACE_UNIMPLEMENTED_FUNC macro for the assignment operator to work - around silly "features" of SGI C++... - - * include/makeinclude/platform_irix6.[x-]32_sgic++.GNU: Added some - additional patches to suppress warning code. Thanks to Torbjorn - Lindgren for this fix. - - * include/makeinclude/platform_mvs.GNU: Changed all occurrences of - "MVSLIB" to "ACELIB". Thanks to Chuck Gehr for reporting this. - -Tue Aug 12 15:03:42 1997 Steve Huston - - * ace/Timer_Hash_T.cpp, Timer_Wheel_T.cpp: Replaced references to - ACE_High_Res_Timer::gettimeofday with ACE_OS::gettimeofday. - The High Res version is deprecated, and doesn't work correctly - on HP-UX. - -Tue Aug 12 07:51:02 1997 Douglas C. Schmidt - - * ACE version 4.2.35, released Tue Aug 12 07:51:02 1997. - -Mon Aug 11 22:30:39 1997 David L. Levine - - * include/makeinclude/platform_vxworks5.x_ghs.GNU: disabled - automatic template instantiation, because we use explicit - template instantiation, via a #pragma, with Green Hills. - Thanks to Brian Mendel for - finding the compiler options. - -Mon Aug 11 17:45:44 1997 Nanbor Wang - - * ace/OS.cpp (ace_thread_adapter): Changed the code so that TSS - ACE_Log_Msg will get created and put into cleanup stack first no - matter there is other ACE_Log_Msg instances or not. This fixed - the "order of destruction" problem on Win32 platform. Thanks to - Irfan for digging this out and helping solving it. - -Mon Aug 11 07:25:29 1997 - - * examples/Reactor/ReactorEx/test_reactorEx.cpp: Updated this - example to use the new Proactor and Asynch IO interfaces. - - * ace/Connector.cpp (activate_svc_handler): Fixed the "leak" of - svc_handler in case of error. Thanks to Wei Chiang - for reporting this. - -Mon Aug 11 01:11:26 1997 Douglas C. Schmidt - - * ACE version 4.2.34, released Mon Aug 11 01:11:26 1997. - -Mon Aug 11 01:06:02 1997 Douglas C. Schmidt - - * ace/Message_Queue.cpp (enqueue_tail_i): Inadvertantly - added "signal_dequeue_waiters()" where I meant - "signal_enqueue_waiters()." - - * include/makeinclude/wrapper_macros.GNU: Fixed a typo in the - wrapper_macros.GNU file that was causing link errors. - -Sun Aug 10 11:35:06 1997 Douglas C. Schmidt - - * ace/Message_Queue.cpp: To make sure that we have correctly - signaled waiters the signal_enqueue_waiters() and - signal_dequeue_waiters() methods now check the return value from - the semaphore release if ACE_HAS_OPTIMIZED_MESSAGE_QUEUE is - enabled. - - * include/makeinclude/wrapper_macros.GNU (VLDLIBS): Added a - new macro called ACELIB that can be used to make it easier - to enable static linking for ACE, i.e.: - - ACELIB = -Bstatic -lACE -Bdynamic - - or - - ACELIB = $(ACE_ROOT)/ace/libACE.a - - Can be added to the individual platform_macros.GNU file. This - allowed us to remove special code for MVS in wrapper_macros.GNU. - Thanks to Chuck Gehr for this fix. - - * netsvcs/lib: Added some comments after the #endifs. - - * ace/Filecache.cpp (insert_i): Updated the code so that we use - ACE_NEW_RETURN rather than operator new. This macro will - protect against failed allocations. - -Sat Aug 9 22:08:50 1997 Douglas C. Schmidt - - * ace: Added two new config files: - - config-irix6.x-sgic++.h - config-irix6.x-sgic++-nothreads.h - - This should hopefully consolidate the SGI platform - configuration. Thanks to Torbjorn Lindgren for - this fix. - - * include/makeinclude: Added two new platform macro files: - - platform_irix6.x-n32_sgic++.GNU: - platform_irix6.x-32_sgic++.GNU - - This should hopefully consolidate the SGI platform macros. - Thanks to Torbjorn Lindgren for this fix. - - * ace/Filecache.cpp: Fixed the syntax of the SGI pragma stuff. - Thanks to Torbjorn Lindgren for reporting this. - - * ace/Name_Request_Reply.h: Changed MAX_NAME_LEN to MAX_NAME_LENGTH - to avoid problems with Solaris 2.6. Thanks to Thanh Ma - for reporting this. - -Sat Aug 9 12:10:35 1997 Nanbor Wang - - * ace/config-win32-common.h (ACE_HAS_WINSOCK2): - * ace/config-win32.h (ACE_HAS_WINSOCK2): Rearranged definition of - this so that users can overwrite the default setting and choose - older Winsock if they want. No action needed for most NT - useres. Thanks to jmorey@tbi.com (John Morey) for pointing this - out. - -Sat Aug 09 11:28:36 1997 Steve Huston - - * ace/Profile_Timer.i: ACE_HAS_GETRUSAGE and !ACE_HAS_PRUSAGE - platforms now use ACE_OS::gettimeofday rather than - ACE_High_Res_Timer::gettimeofday in start() and stop() methods. - - * tests/Sigset_Ops_Test.cpp: adjusted test for sigismember() with - out-of-range signum to separately test return value and errno. - Also, returns non-zero from program on failed test. - -Fri Aug 08 17:39:43 1997 Douglas C. Schmidt - - * ACE version 4.2.33, released Fri Aug 08 17:39:43 1997. - -Fri Aug 08 02:50:31 1997 Douglas C. Schmidt - - * ace/Message_Queue: Factored out the code that differs depending - on whether we are using the optimized ACE_Message_Queue - implementation (i.e., VxWorks and NT). This change makes it - easier to maintain the code. Thanks to Darrell for helping with - this. - - * ace/Log_Msg.cpp (close): Fixed a couple of typos in this code, - in particular, we need to make sure that we don't call - ACE_Log_Msg_Manager::close() if we aren't multi-threaded. - - * ACE version 4.2.32, released Fri Aug 08 02:50:31 1997. - -Fri Aug 8 13:17:21 1997 Chris Cleeland - - * ace/OS.* (strtoul): Added the OS function strtoul() to turn - strings into unsigned longs. - -Fri Aug 8 12:26:54 1997 Steve Huston - - * ace/Log_Msg.cpp: Fixed some comments and removed unused code - I erroneously added August 6. - - * ace/config-hpux-10.x.h: Fixed to not always compile tracing code. - - * tests/test_config.h: ACE_END_TEST and ACE_END_LOG macros direct - log output back to stderr when shutting off the file output. - - * tests/TSS_Test.cpp: Removed ACE_Thread_Control object from the main - thread - it served no purpose and didn't work on HP-UX (due to - a documented pthread_exit restriction). Also changed a 'delete - ptr' to a call on operator delete (void *). - -Fri Aug 8 09:17:21 1997 Chris Cleeland - - * ace/Service_Repository.h (operations.): Improved documentation - on find(). - -Fri Aug 8 00:01:43 1997 Nanbor Wang - - * ace/Log_Msg.cpp (close): Moved ACE_Log_Msg::close() out of - ACE_MT_SAFE block so it always exists. This function only takes - care of non-VxWorks platforms. - - (instance): Removed at_exit() call since the instances will be - taken of by TSS_Cleanup. - - * ace/Object_Manager.cpp (~ACE_Object_Manager): Removed condition - compilation so it always calls ACE_Log_Msg::close(). - -Thu Aug 7 23:36:26 1997 Douglas C. Schmidt - - * ace/Reactor.h: Added the renew() method and the notify_handler_ - data member to all compilation cases, not just for - multi-threading. - - * ace/Service_Config.h: Clarified the fact that argv[0] is the - program name. Thanks to Chris Cleeland for pointing this out. - - * ace/config-mvs.h: Added the ACE_HAS_TEMPLATE_SPECIALIZATION flag - thanks to Chuck Gehr. - - * include/makeinclude/platform_irix6.2_sgic++.GNU: Turned on - exceptions and turned off implicit template instantiation. - Thanks to Amos Shapira for reporting the - former. - - * ace/config-irix6.2-sgic++.h: Also added the - ACE_HAS_TEMPLATE_SPECIALIZATION flag and changed the - platform_irix6.2.GNU file to not implicitly initialize - templates. If this breaks something, please let me know. - - * ace/config-irix6.2-sgic++.h: Added the ACE_HAS_EXCEPTIONS flag. - Thanks to Amos Shapira for reporting this. - However, there is some question as to whether this will work. - If it doesn't, please let me know. - - * ace/Reactor: Moved the ACE_Reactory_Notify class out from the - ACE_MT_SAFE section into the main code since this should work - for non-threaded builds, as well. Thanks to Stefan Ericsson - for reporting this. - - * ace/config-chorus.h: Added the ACE_HAS_TEMPLATE_SPECIALIZATION - flag. Thanks to Wei Chiang for this. - -Thu Aug 7 19:09:35 1997 Steve Huston - - * tests/Hash_Map_Manager_Test.cpp - split definition of Dumb_String - class to a new header, Hash_Map_Manager_Test.h. This makes AIX - C Set ++ happy. - - * tests/Process_Strategy_Test.cpp - split definitions of Options - and Counting_Service classes to Process_Strategy_Test.h for AIX - C Set ++'s benefit. - -Thu Aug 7 15:27:28 1997 Darrell Brunsch - - * ace/OS.h: Fixed typo in the definition of ACE_SYNCH_1 and - ACE_SYNCH_2 for ACE_HAS_OPTIMIZED_MESSAGE_QUEUE - -Thu Aug 7 13:05:20 1997 Chris Cleeland - - * ace/Strategies_T.h: Changed the argument to ACE_DLL_Strategy - from ACE_Service_Config to ACE_Service_Repository, which is more - concrete. - - * bin/g++dep (REL): Added sed rule so that TAO's dependencies are - set relative to $TAO_ROOT as well as $ACE_ROOT when the '-r' - option is utilized. - - * include/makeinclude/platform_linux_lxpthread.GNU (CCFLAGS): The - -Wall option can now be used. It only generates two warnings - throughout all of ACE! - - * include/makeinclude/rules.local.GNU (depend.local): Modified - this target so that TAO's dependencies are set relative to - $TAO_ROOT as well as $ACE_ROOT. - -Thu Aug 7 12:03:48 1997 James C Hu - - * ace/Filecache.{h,cpp}: Fixed unused variable found by Amos - Shapira. Fixed TEMPLATE_SPECIALIZATION dependency, sort of. Do - not attempt to use Filecache if you do not support - TEMPLATE_SPECIALIZATION. - -Thu Aug 07 00:19:12 1997 Douglas C. Schmidt - - * ACE version 4.2.31, released Thu Aug 07 00:19:12 1997. - -Wed Aug 6 22:20:54 1997 Douglas C. Schmidt - - * ace/Synch_T.h: Replaced all uses of ACE_Null_Condition_Mutex - with ACE_Null_Condition, which is much more straightforward... - - * ASNMP: Added Mike MacFaden's changes for IRIX. - -Wed Aug 6 16:37:51 1997 James C Hu - - * ace/Hash_Map_Manager.cpp: Changed implementation back to use a - single sentinel_ rather than an array of them. - - * ace/Filecache.{h,cpp}: Total re-implementations. Fewer locks - acquired and released when there is a cache hit. - -Wed Aug 06 12:55:26 1997 Steve Huston - - * ace/Log_Msg.(h cpp): - (ACE_Log_Msg_Manager) - Removed most of the non-VxWorks - pieces - there's just a lock left; the instances_ was removed - (ACE_Log_Msg) - Use ACE_Object_Manager to remove per-thread - instances of ACE_Log_Msg rather than using ACE_Log_Msg_Manager. - The use of an ACE_Unbounded_Set to hold the ACE_Log_Msg pointers - in previous versions caused some non-tail recursion problems when - tracing was enabled. - Uses an instance count to know when it's safe to free the dynamically - allocated class-static memory. - - * ace/Trace.(h cpp): Added new static member function: - int is_tracing(void) - returns 1 if tracing is enabled, else 0. - - * ace/Object_Manager.(h cpp): Added a flag to indicate the object is - being destroyed - during destruction, ACE_Object_Manager now refuses - to register any new memory pointers. Also turns tracing off during - destruction - ACE_Log_Msg makes use of ACE_Object_Manager, so we - don't want ACE_Log_Msg instance being deleted, then created for a - ACE_TRACE, then deleted, then created,... - -Wed Aug 06 03:35:41 1997 Douglas C. Schmidt - - * ACE version 4.2.30, released Wed Aug 06 03:35:41 1997. - -Wed Aug 6 00:13:27 1997 Nanbor Wang - - * netsvcs/lib/Server_Logging_Handler.cpp: We only need to - instantiate ACE_Svc_Handler when - ACE_HAS_THREADS. Otherwise, we'll have duplicate symbols - defined on platforms that do not support threads. - -Tue Aug 5 19:52:36 1997 Douglas C. Schmidt - - * ace/Containers: Added a new reset method for ACE_Unbounded_Set. - Thanks to Arturo Montes for - reporting this. - - * ace: Changed most uses of ACE_LACKS_COND_T to - ACE_HAS_OPTIMIZED_MESSAGE_QUEUE to make it possible to toggle - between the emulated condition variable implementation of - ACE_Message_Queue and the semaphore implementation. We need - this until we fully test out the semaphore implementation of - ACE_Message_Queue. - - * ace/Object_Manager.cpp (ACE_Object_Manager): Only call the - ACE_Log_Msg::close() method if ACE_MT_SAFE is enabled! Thanks - to Satoshi Ueno for reporting this. - - * ace/Malloc.h: Added a fix for misalignment of data in the - ACE_CONTROL_BLOCK_ALIGN_LONGS macro. Thanks to Fred LaBar - for this fix. - - * ace/ACE.cpp: (enter_recv_timedwait,enter_send_timedwait): Always - give val a default value of 0 to make Purify happy. Thanks to - David Levine for reporting this. - - * netsvcs/clients/Tokens/rw_lock/rw_locks.cpp, - netsvcs/clients/Tokens/manual/manual.cpp, - netsvcs/clients/Tokens/deadlock/deadlock_detection_test.cpp: - Removed unreachable statements. Thanks to Cherif Sleiman - for reporting this deficiency and - testing the fix. - -Tue Aug 5 16:41:06 1997 Darrell Brunsch - - * ace/Synch_T.h: Added some more ACE_LACKS_COND_T changes for compilers - without template typdefs. - -Tue Aug 5 11:50:43 1997 Nanbor Wang - - * ace/Message_Queue.h: Fixed typos for the case when - ACE_LACKS_COND_T. - -Tue Aug 05 11:02:11 1997 - - * tests/Atomic_Op_Test.cpp (main): Made sure that on platforms - without threads, we don't try to run this test. - -Tue Aug 05 09:15:40 1997 David L. Levine - - * include/makeinclude/platform_vxworks5.x_ghs.GNU: removed - -no_prelink from LDFLAGS because ghs 1.8.8 doesn't support it. - Thanks to Cherif Sleiman for - reporting this. - - * ace/Service_Record.cpp: added #include "ace/Stream_Modules.h" - to support template instantiation on GreenHills, at least. - Thanks to Cherif Sleiman for - reporting this deficiency and testing the fix. - - * ace/config-vxworks-ghs-1.8.h: added - ACE_LACKS_LINEBUFFERED_STREAMBUF. Thanks to Cherif Sleiman - for reporting this. - -Mon Aug 4 22:47:54 1997 Douglas C. Schmidt - - * ace/Message_Queue: Fixed consistency problems in naming notfull - vs. not_full. Thanks to David Levine for finding this. - - * ace/Message_Queue: Added specialized support for cases where - ACE_LACKS_COND_T (e.g., VxWorks and NT). This scheme uses - ACE_Thread_Semaphores in this case, which should be more - efficient). - - * ace/Synch_T.h: Added a new set of macros and typedefs for - ACE_SYNCH_SEMAPHORE. - - * examples/ASX/Message_Queue: Cleaned up all the Message_Queue - examples. - - * examples/ASX/Message_Queue/buffer_stream.cpp: Added a - NUL-terminator to the program so that it won't break. Thanks to - Darrell for finding this. - - * ace/Reactor.cpp (wait_for_multiple_events): Fixed some - stylistic problems in the Reactor. - - * ace/Synch.cpp (ace_static_object_lock_atexit): Changed from: - - extern "C" static void - - to: - - extern "C" void - - Thanks to Chuck Gehr for this. - -Mon Aug 4 14:03:22 1997 Steve Huston - - * tests/Enum_Interfaces_Test.cpp: return non-zero if test fails. - -Mon Aug 4 12:03:29 1997 Darrell Brunsch - - * tests/Semaphore_Test: Redid to test timed waits in a more - reasonably fashion. - -Mon Aug 4 11:43:09 1997 Douglas C. Schmidt - - * ace/OS: Continued to cleanup the problems with inconsistent - variants of sendmsg() and writev() on VxWorks. Thanks to Cherif - Sleiman for reporting this. - - * ace/OS.i (sema_wait): Fixed the implementation on NT so that - errno = ETIME. - - * tests/Semaphore_Test.cpp: Cleaned up the programming style a - bit. - - * ace/OS (writev): Removed the ACE_WRITEV_TYPE from the - ACE_OS::writev() method and instead put this as a cast on the - internal call to ::writev(). This is much cleaner and should - fix a bug introduced last night. Thanks Cherif Sleiman - for reporting this. - - * ace/Synch: Added a new release() method to ACE_Semaphore that - enables a caller to release multiple waiters. Thanks to Darrell - Brunsch for noticing this. - -Mon Aug 4 12:03:29 1997 Darrell Brunsch - - * tests/Semaphore_Test: Redid to test timed waits in a more - reasonably fashion. - -Sun Aug 03 23:47:13 1997 Douglas C. Schmidt - - * ACE version 4.2.29, released Sun Aug 03 23:47:13 1997. - -Sun Aug 3 22:18:33 1997 Douglas C. Schmidt - - * tests/Atomic_Op_Test.cpp: Added template specialization so that - David won't have to ;-) - - * ace/ACE: Added a new, complete set of send/recv operations with - timeouts. These implement the following methods: - - read, readv, write, writev, recv, recvfrom, recvmsg, send, sendto, sendmsg. - - The implementation provides two flavors: MIT pthread support, an - ACE portable support. To use MIT pthread support, you must to - define ACE_HAS_READ_TIMEDWAIT, ACE_HAS_READV_TIMEDWAIT, - ACE_HAS_WRITE_TIMEDWAIT, ACE_HAS_RECV_TIMEDWAIT, - ACE_HAS_RECVFROM_TIMEDWAIT, ACE_HAS_RECVMSG_TIMEDWAIT, - ACE_HAS_SEND_TIMEDWAIT, ACE_HAS_SENDTO_TIMEDWAIT and - ACE_HAS_SENDMSG_TIMEDWAIT respectively. See the config.h file - for SCO UNIX for an example. - - This new approach is not only more powerful (since it takes - advantage of OS-level mechanisms when they exist), but it also - greatly improves the modularity of the code and provides a - wider range of supported functionality. Thanks to Arturo - Montes for this new feature. - - * ace/ACE.cpp: Added comments to the ACE_Object_Manager_Destroyer - class. - - * ace/OS.h: Redid all the function prototypes for class ACE_OS so - that it's easier to read the arguments. - - * ace/config-sco-5.0.0-mit-pthread.h: Added the new macros that - enable timed reads and writes. Thanks to Arturo Montes - for this new feature. - - * ace: Added a corresponding #endif /* FOO */ for all #if defined - (FOO) in ACE. - - * ace: Changed all uses of ACE_IOStream_T to ACE_IOStream to - be more consistent with other uses of templates in ACE. - Thanks to Thilo for reporting this (and thanks to David - for not being offended ;-)). - - * ace/OS.i (operator/): Removed "const" from both the OS.h and - OS.i files for ACE_U_LongLong::operator/. It is redundant, - potentially confusing, and gives warnings on some compilers! - -Sun Aug 03 21:20:12 1997 - - * tests/Atomic_Op_Test.cpp: Added new test to test the Atomic - Operations Class in ACE. On platforms like Win32, ACE uses - template specialization to use native implementations provided - by the OS to accelarate these operations. - - * ace/config-win32-common.h (ACE_HAS_INTERLOCKED_EXCHANGEADD): - Added macro to config file. This macro is automatically set true - for NT4.0 systems or greater. - - * ace/Atomic_Op.i: On Win32 platforms, this code will be included - as template source code and will not be inlined. Therefore, we - first turn off ACE_INLINE, set it to be nothing, include this - code, and then turn ACE_INLINE back to its original setting. All - this nonsense is necessary since the generic template code that - needs to be specialized cannot be inlined, else the compiler - will ignore the specialization code. Also, the specialization - code *must* be inlined or the compiler will ignore the - specializations. - - The creation of this new file is necessary for non-Win32 - platforms to continue to inline the code as before. - - * ace/Synch_T.cpp: This file must include Atomic_Op.i if - ACE_INLINE has not be turned on. If it is, this file must be - included by Synch_T.h. - - * ace/Synch.cpp: Moved the specialization code from Synch.cpp to - Atomic_Op.i. This is necessary, otherwise the compiler will - ignore the specialization. - -Sun Aug 03 10:51:34 1997 David L. Levine - - * ace/config-osf1-4.0*.h: added #define ACE_HAS_LONGLONG_T. - Thanks to Thilo for reporting that OSF1-4.0 does. - -Sat Aug 02 23:51:19 1997 Douglas C. Schmidt - - * ACE version 4.2.28, released Sat Aug 02 23:51:19 1997. - - * ace/TTY_IO.cpp (control): Fixed a bug when using 8 bits for - character due to ISTRIP flag setting for device. Thanks to - Arturo Montes for reporting this bug. - - * ACE-categories: Updated the list of ACE classes to reflect - recent changes. - - * ASNMP: Added the new ACE+SNMP release courtesy of Mike - MacFaden . This builds cleanly on Solaris, - but it looks like there are a bunch of non-portable features - that won't compile cleanly on all the other platforms. - Therefore, until Mike or others get this stuff fully portable, - it won't be build by default in the top-level ACE Makefile. - - * ace/OS.h (class ACE_U_LongLong): Reformatted this a bit. - - * ace/SV_Semaphore_Simple.i: Removed the #include of - SV_Semaphore_Simple.h since it seems unnecessary and is causing - problems for TAO. - - * ace/IOStream_T.h (ACE_IOStream_T): Removed the unneeded ';' at - the end of the ACE_UNIMPLEMENTED_FUNC macros since this was - causing compiler errors. - -Sat Aug 02 13:11:22 1997 David L. Levine - - * ace/Synch.cpp (ACE_Static_Object_Lock::instance): commented - out call to ::atexit () because it causes shutdown problems - on DEC CXX, HP/UX, and AIX. Many thanks to James Johnson - for tenaciously tracking this one down, to Thilo and Steve - for assisting, and to all who reported the problem. - - * ace/Log_Msg.cpp (ACE_Log_Msg_Manager::open,close): neutered - on VxWorks, only, so that it will compile. - -Fri Aug 1 21:33:18 1997 Nanbor Wang - - * netsvcs/lib/netsvcs.mak: Added post compilation command that - copies DLL to ace/ directory because netsvcs/main.exe must have - this file in search path. - - * ace/Read_Buffer.cpp (ACE_Read_Buffer): Used ACE_OS::fdopen - instead of ::fdopen because it caused compilation error on NT. - -Fri Aug 1 17:25:04 1997 Chris Cleeland - - * include/makeinclude/platform_irix6.4_sgic++.GNU (CCFLAGS): Used - -ptnone and -no_prelink in order to get SGI to compile properly. - - * ace/config-irix6.4-sgic++.h (ACE_HAS_EXCEPTIONS): Added - ACE_HAS_EXCEPTIONS to this config. - - * ace/IOStream_T.h (ACE_IOStream_T): Wrapped send, recv, send_n, - and recv_n with the ACE_UNIMPLEMENTED_FUNC macro. - -Fri Aug 1 17:08:32 1997 Nanbor Wang - - * ace/ace.mak: Put OS.cpp back into the makefile. - - * ace/config-win32-common.h: Commented out checking of - ACE_HAS_WINSOCK2 when we are using NT 4.0 and above. The - original check prevented us from using winsock2. - - * ace/Thread_Manager.cpp: - * ace/Service_Repository.cpp: - * ace/ReactorEx.cpp: - * ace/Reactor.cpp: - * ace/Proactor.cpp: - * ace/Malloc.cpp: - * ace/Synch.{h,cpp}: Changed the lock held by - ACE_Static_Object_Lock from ACE_Thread_Mutex to - ACE_Recurssive_Thread_Mutex. - - * ace/Timer_Heap_T.cpp (ACE_Timer_Heap_T): Something was missing - here..... - -Fri Aug 1 13:39:13 1997 Douglas C. Schmidt - - * ace/TTY_IO.cpp (control): Removed the special M_UNIX code for - SCO_OpenServer. Thanks to Arturo Montes - for reporting this. - - * ace/Read_Buffer.cpp (ACE_Read_Buffer): Mistakenly used int - rather than ACE_HANDLE for one of the constructors in - ACE_Read_Buffer. - - * ace/OS.cpp (readv): Fixed a braino that manifests itself on - Chorus because I put the ACE_READV_TYPE in the wrong place. - Thanks to Wei Chiang for reporting this. - -Fri Aug 1 14:31:22 1997 Darrell Brunsch - - * tests/Timer_Queue_Test.cpp: removed casts from pointers to ints - (when a act was compared with a number) and instead used a cast - on the integer values. This gets rid of warnings on platforms - where the sizeof a pointer is larger than the sizeof an int. - -Fri Aug 01 12:10:28 1997 - - * ace/Synch_T: Changed parameter passing for ACE_Atomic_Op from - const TYPE to const TYPE &. - - * ace/Synch.cpp: These specializations have been added to - ACE_Atomic_Op to make the implementation faster on Win32 that - has OS support for doing this quickly through methods like - InterlockedIncrement and InterlockedDecrement. - - * ace/SV_Semaphore_Complex.cpp (open): Fixed more compiler - warnings: - - IOStream.cpp Naming_Context.cpp Read_Buffer.cpp - SV_Semaphore_Complex.cpp SV_Semaphore_Complex.i - -Fri Aug 1 11:57:45 1997 Chris Cleeland - - * ace/Containers.h (ACE_Fixed_Set): Eliminated declaration for - unnecessary ACE_Fixed_Set(size_t) CTOR. - - * ace/OS.h: Simplified the typedef of ACE_hrtime_t so that it's an - unsigned long long whenever ACE_HAS_LONG_LONG_T is defined. - -Fri Aug 01 10:12:26 1997 David L. Levine - - * ace/config-osf1-4.0.h: added ACE_HAS_TEMPLATE_SPECIALIZATION. - Thanks to Thilo for verifying that this is supported with DEC CXX. - - * ace/config-irix6.4-sgic++*.h: added ACE_TEMPLATES_REQUIRE_SOURCE - and ACE_REQUIRES_FUNC_DEFINITIONS. - - * ace/OS.h,README: added ACE_REQUIRES_FUNC_DEFINITIONS support. - - * ace/{Free_List.h,Remote_Tokens.h,Synch_T.h,Timer_*_T.h}: - wrapped unimplemented template class copy constructors and - assignment operators with ACE_UNIMPLEMENTED_FUNC. - - * tests/Service_Config_Test.cpp: removed templates to avoid - problems with finicky compilers, and added check of destruction - ordering. - - * include/makeinclude/platform_vxworks5.x_ghs.GNU: added - -no_prelink to LDFLAGS. - -Fri Aug 01 00:14:46 1997 Douglas C. Schmidt - - * ACE version 4.2.27, released Fri Aug 01 00:14:46 1997. - -Thu Jul 31 21:51:01 1997 David L. Levine - - * ace/Log_Msg.cpp (open): fixed memory leak. - -Thu Jul 31 21:41:10 1997 Douglas C. Schmidt - - * tests/Service_Config_Test.cpp (run_test): You won't shout as I... - - * ace/Object_Manager.cpp (instance): ... fiddle about ;-) - -Thu Jul 31 17:39:56 1997 - - * ace: The following files were modified to avoid the - "unreferenced formal parameter" and other warnings from the - compiler: - - ACE.cpp Asynch_IO.cpp Asynch_IO.h INET_Addr.cpp OS.cpp OS.h OS.i - Proactor.cpp Reactor.cpp ReactorEx.cpp ReactorEx.i - SOCK_Dgram_Bcast.cpp Service_Config.cpp - -Thu Jul 31 16:46:44 1997 David L. Levine - - * ace/config*.h: replaced "ACE_REQUIRES_TEMPLATE_SPECIALIZATION" - with "ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION". - - * ace/config-vxworks-ghs-1.8.h,config-irix6.4-sgic++*.h: added - ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA. - - * all .cpp files that had "ACE_REQUIRES_TEMPLATE_SPECIALIZATION": - replaced with "ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION" and - added #pragma instantiate for Edision Design Group compilers, - e.g., SGI and Green Hills. - -Thu Jul 31 16:25:33 1997 Douglas C. Schmidt - - * ace/Synch.i (acquire): Added the timed acquire() interface to - ACE_Semaphore. - -Thu Jul 31 11:10:17 1997 Darrell Brunsch - - * tests/run_tests.bat: Redid this file completely making it - much smarter about running tests. Instead of just blindly - executing the tests, it checks the return values to see if - an error occured and also outputs relevant errors from the - log file if the test was unsuccessful. - - It's a remarkable example of batch programming wizardry. - -Thu Jul 31 10:39:04 1997 Darrell Brunsch - - * ace/INET_Addr.cpp: initialized error variable in - gethostname to stop warnings when inlining is on. - -Thu Jul 31 09:46:50 1997 Darrell Brunsch - - * ace/Timer_Heap_T.cpp: changed cancel(id) to check the timer - id to make sure it is in range (not negative and not larger - than the current size of the heap) - -Thu Jul 31 07:32:26 1997 David L. Levine - - * Malloc_T.{i,cpp},Timer_Queue_T.i: replaced LOCK with ACE_LOCK. - Thanks to Thilo for supplying patches. - - * ace/config-sunos5.5-g++.h: #define ACE_MALLOC_ALIGN to be 8. - - * ace/Object_Manager.*: renamed cleanup () to at_exit (). - - * Log_Msg.{h,cpp},Object_Manager.cpp: let ACE_Object_Manager - clean up the global ACE_Log_Msg_Manager. - - * Service_Config_Test.cpp: added test of - ACE_Object_Manager::at_exit (). - -Wed Jul 30 20:30:25 1997 Douglas C. Schmidt - - * ace/SOCK_Dgram.h: Added an = 0 to the flags parameter to recv(). - Thanks to Michael MacFaden for pointing out the inconsistency. - - * ace/OS.cpp (thr_create): Added support for the SCHED_IO policy, - which is supported by MIT Pthreads. Thanks to Arturo Montes - for this fix. - - * ace/SOCK_Dgram.h: Added a comment to clarify how to delete the - elements of the iovec array. Thanks to Mike MacFaden for - clarifying this. - - * ace/Reactor.h: Changed the comment for schedule_timer() to use - delta_timer rather than delay. - - * ace/Connector: Updated the timer cancellation id to be long - rather than int. - - * examples/Reactor/Misc/notification.cpp: Timers are now working - happily on Chorus, so we can revert the Chorus-specific patches. - Thanks to Wei Chiang for reporting this. - - * ace/SOCK_Dgram.cpp (recv): The timed recv() method must return - -1 on a timeout to meet its documented specification. Thanks to - Joseph Cross for reporting this - problem. - - * ace/OS.i (readv): Added a fix for Chorus, which has a different - readv() prototype than normal operating systems. Thanks to Wei - Chiang for reporting this. - -Wed Jul 30 20:02:21 1997 James C Hu - - * ace/Hash_Map_Manager.{h,cpp}: changed the *_i methods to use - shared_find() method to ease template specialization efforts. - Also, added a new shared_find() method. Added a parameter to - each to allow the passing in of the calculated hash value. - -Wed Jul 30 16:43:34 1997 - - * ace/config-win32-common.h: If _DEBUG is not set (that is, we are - building the Release version), we will turn on __ACE_INLINE__. - Thanks to Matthias Kerkhoff for - suggesting this. - -Wed Jul 30 06:53:30 1997 Matthias Kerkhoff - - * The use of the following configuration #defines in the entire - ACE distribution has been changed: - - - ACE_HAS_WINNT4 - - ACE_HAS_MFC - - ACE_HAS_STRICT - - ACE_MT_SAFE - - ACE_HAS_DLL - - ACE_HAS_SVC_DLL - - ACE_HAS_WINSOCK2 - - ACE_HAS_ORBIX - - ACE_HAS_MT_ORBIX - - In previous ACE-versions, code blocks depending on one of these - defines have been guarded by an #if defined(ACE_XXX_OPTION). - Therefore it has been necessary to define the default - configuration unconditionally in config-win32.h. - - The #if statements in the source files have been changed to - - #if defined(ACE_XXX_OPTION) && (ACE_XXX_OPTION != 0) - - while the default configuration in config-win32.h will only be used, - if it has not been overridden from the compilers command line (i.e.) : - - #if !defined(ACE_XXX_OPTION) - #define ACE_XXX_OPTION 1 - #endif - -Wed Jul 30 14:46:33 1997 Nanbor Wang - - * ace/Malloc.cpp: - * ace/Proactor.cpp: - * ace/ReactorEx.cpp: - * ace/Reactor.cpp: - * ace/Service_Repository.cpp: - * ace/Thread_Manager.cpp: - * ace/Synch.{h,cpp}: Changed ACE_Static_Object_Lock::get_lock () - to instance () to emphasize that it's a singleton. - - * ace/Containers.cpp: Fixed the problem caused by - ACE_Unbounded_Stacknotkeeping its size currectly. Thanks for - Matthias Kerkhoff for sending us the - patch. - - * ace/OS.cpp (exit): Corrected a bug in ACE_TSS_Cleanup::exit (). - It innocently uses default ctor to copy info_arr. And things - get out of hand when info_arr[] gets destructed. Thanks very - much for Matthias Kerkhoff for digging - this out and sending us the patch. - -Wed Jul 30 13:36:55 1997 David L. Levine - - * ace/config-vxworks-ghs-1.8.h: added #ifdef ppc wrapper around - #define of ACE_HAS_POWERPC, because GreenHills #defines that. - - * include/makeinclude/platform_vxworks5.x_ghs.GNU: replaced - indlib.o LIBS with newer ghsbltin.o and ghsmath.o. - - * ace/OS.h: use the same ACE_UNUSED_ARG definition with ghs as - with other compilers. - - * ace/Object_Manager.*: revised interface, but still in flux. - cleanup () should work for process-wide registration, but is - untested. - -Wed Jul 30 11:13:57 1997 Chris Cleeland - - * ace/config-linux*.h (ACE_HAS_LONGLONG_T): These configs - file incorrectly had ACE_HAS_LONGLONG rather than - ACE_HAS_LONGLONG_T. - - * ace/OS.cpp (gethrtime): Added 'volatile' keyword to insure that - the automatic variables 'most' and 'least' don't get put into - registers. Putting this in stopped the SIGSEGV that was occurring - in Linux. - -Wed Jul 30 06:53:30 1997 Douglas C. Schmidt - - * ACE version 4.2.26, released Wed Jul 30 06:53:30 1997. - -Wed Jul 30 04:36:39 1997 Nanbor Wang - - * ace/Containers.{h,cpp}: Added back new parameterized allocation - strategy version. Finally. - - * ace/Synch.cpp (atexit): Moved ACE_Allocator here because only - here, we can be sure that no other user defined memory - activities are going on. This is becoming even more - interesting now.... Perhaps we should move all - close_singleton's here? - - * ace/Service_Config.cpp (close_singletons): Removed - ACE_Allocator::close_singleton () from this function because we - still need ACE_Allocator to "free" static objects' memory. - - * ace/Synch.{h,cpp}: Added a new class ACE_Static_Object_Lock - which provides a lock when instantiating static objects. - - * ace/Thread_Manager.cpp: Removed ace_thread_manager_lock_, - * ace/Service_Repository.cpp: Removed ace_service_repository_lock_, - * ace/ReactorEx.cpp: Removed ace_reactorex_lock_, - * ace/Reactor.cpp: Removed ace_reactor_lock_, - * ace/Proactor.cpp: Removed ace_proactor_lock_, - * ace/Malloc.cpp: Removed ace_malloc_lock_, - and replace them with a global single lock - ACE_Static_Object_Lock::get_lock (). - -Tue Jul 29 16:25:48 1997 Chris Cleeland - - * ace/OS.cpp (thr_create): Explicitly flagged 'stack' and 'size' - as unused arguments. - - * ace/Memory_Pool.cpp (handle_signal): Explicitly flagged siginfo - as an unused argument, and moved the decl of offset into the - conditional block in which it's used. - - * ace/OS.i (dlerror): Added explicit cast of the return value to - (char*) because on Linux dlerror() returns const char*, while on - Solaris it's char*. - - * ace/config-linux-lxpthreads.h: Created new flag - ACE_LACKS_POSIX_PROTO_FOR_SOME_FUNCS that can be used when only - certain functions are missing POSIX prototypes. This eliminates - more warnings with -Wall - - * ace/ACE.cpp (max_handles): Added return statement for the - RLIMIT_NOFILE case. - (count_interfaces): Removed unused variables. - -Tue Jul 29 15:10:35 1997 Darrell Brunsch - - * ace/OS.i: Changed sema_wait to take in a const ACE_Time_Value - -Tue Jul 29 12:41:27 1997 Douglas C. Schmidt - - * ace/config-sco-5.0.0-mit-pthread.h: Added the - ACE_LACKS_PWD_FUNCTIONS macro. Thanks to Arturo Montes - for reporting this. - -Tue Jul 29 13:10:00 1997 Nanbor Wang - - * ace/Signal.h: Moved inclusion of "Containers.h" to the bottom of - this file so everything is defined properly before use. - -Tue Jul 29 12:36:24 1997 - - * tests/Message_Queue_Test.cpp (main): Removed dynamic allocation - of the string array. - -Tue Jul 29 12:15:49 1997 Darrell Brunsch - - * ace/Proactor.cpp - * ace/Reactor.cpp: - * ace/ReactorEx.cpp: Changed the default Timer Queue to - Timer Heap instead of Timer List. - -Tue Jul 29 07:59:04 1997 David L. Levine - - * Makefile,TAO/Makefile: change mode of updated ChangeLog-* - file to 644 after updating it, when building a release - with TIMESTAMP enabled. - - * ace/OS.cpp (sched_params): added some more initializations - to 0 to avoid Purify warnings about unitialized memory reads. - - * ace/Object_Manager.cpp (~ACE_Object_Manager): removed unused - variable "i". Thanks to Amos Shapira - for reporting this. - - * ace/Service_Record.{h,i} Parse_Node.{h,cpp} (handle,open_handle): - removed "const" from ACE_SHLIB_HANDLE return value. Thanks - to the several people who noted compiler warnings from this. - - * ace/Naming_Context.cpp: added delete of this->name_options_; - (dtor,fini): call this->close (). - - * tests/IOStream_Test.cpp (client,server): use ACE_NEW_RETURN - instead of new. - -Tue Jul 29 01:53:18 1997 Nanbor Wang - - * ace/OS.h: Added two new macros ACE_NEW_MALLOC_RETURN and - ACE_NEW_MALLOC. Theses are similiar to ACE_ALLOCATOR_RETURN and - ACE_ALLOCATOR that allow memory allocation using user defined - functions. However, these two macros will call specified - constructor after memory is being allocated. - - * ace/Containers.{h,cpp}: Decoupled memory allocation strategy for - ACE_Unbounded_Stack, ACE_Unbounded_Set, ACE_Unbounded_Queue. - Users can now specified their own memory allocation strategies - if needed. If not specified, the default ACE_Allocator will be - used. - -Tue Jul 29 00:56:54 1997 Douglas C. Schmidt - - * ACE version 4.2.25, released Tue Jul 29 00:56:54 1997. - -Mon Jul 28 16:23:26 1997 David L. Levine - - * include/makeinclude/rules.nested.GNU: added missing - semicolon at end of last statement. Thanks to Amos - Shapira for providing this fix. - - * ace/OS.h (VxWorks only): only #include before - for GreenHills. Thanks to Dave Moore - for reporting a problem without this - fix with g++/VxWorks 5.3.1 for PowerPC target. - Also, commented out g++ string.h hack. It no longer appears - to be necessary. - - * tests/README: added VxWorks 5.3.1 test status. - - * tests/SPIPE_Test.cpp (main): fixed #ifdefs so that it compiles. - - * ace/OS.i: (strtok_r): replaced NULL with 0. NULL is #defined - as (void *) 0 on VxWorks, so it causes compile warnings. - Thanks to Dave Mayerhoefer for reporting - this problem. - - * ace/Object_Manager.{h,cpp},Makefile: added this class to - shutdown ACE library services, and reclaim their storage, - at program termination. - - * ace/ACE.cpp: added hook to call ACE_Object_Manager destructor - in this file. It's in this file so that it's sure to be - linked in to executables that statically link libACE.a. - - * ace/Service_Config.{h,cpp}: (close): delete ACE_STATIC_SVCS - instance, which is now saved in static_svcs_. Also, removed - LM_SHUTDOWN call, because the logger apparently gets shutdown - now with everything else (with ACE_Object_Manager). - - * ace/Object_Manager.* (delete_at_exit,delete_array_at_exit): - made these (inline) static functions, with return values. - - * tests/IOStream_Test.cpp (client,server): explicitly destroy - (and create) ACE_SOCK_IOStream instances, because they don't - get destroyed on Solaris. They're on the stack of separate - threads, so maybe the problem is related to not cleaning up - TSS on Solaris. Thanks to James CE Johnson - for some efficient debugging work, and for verifying that the - original code works properly on Linux. - -Mon Jul 28 21:59:09 1997 Nanbor Wang - - * ace/ace.mak: Added file Object_Manager.cpp. - - * ace/OS.h: Added #define RTLD_LAZY when - ACE_HAS_SVR4_DYNAMIC_LINKING and RTLD_LAZY is not defined. - FreeBSD 2.2.1 "forgot" to put in this definition. Thanks to - Satoshi Ueno for reporting this. - -Mon Jul 28 13:27:21 1997 Douglas C. Schmidt - - * ace/Object_Manager: Made a few minor stylistic updates. - - * netsvcs/servers/main.cpp (main): Updated this test program to - utilize the new ACE_Service_Object_Ptr class. - - * ace/Service_Object.h: Added a new smart pointer call - ACE_Service_Object_Ptr, which generalizes functionality that was - previously in the ./netsvcs/server/main.cpp file. Thanks to Wei - Chiang for this suggestion. - - * examples/Threads/process_manager.cpp (parse_args): Removed the - unused n_processes global variable. Thanks to Amos Shapira for - reporting this. - - * tests/SPIPE_Test.cpp (main): Cleaned up the #ifdef structure - to remove compiler warnings. Thanks to Amos Shapira for - this. - - * tests/Handle_Set_Test.cpp (test_performance): Removed an unused - ACE_HANDLE handle definition. Thanks to Amos Shapira for - reporting this. - - * ace/OS.i (sema_init): Swapped else and #endif to avoid - a compile error when ACE_LACKS_NAMED_POSIX_SEM is false. - Thanks to Wei Chiang for reporting this. - - * ace/OS.cpp (rwlock_init): Added a cast to (const void *) to keep - certain compilers from complaining. Thanks to Thilo and - Amos Shapira for reporting this. - - * ace/OS.i (sema_wait): *tv should have been &tv. Thanks to Thilo - for reporting this. - -Mon Jul 28 13:57:21 1997 James C Hu - - * ace/config-irix6.4-sgic++.h: Added template specialization #def. - -Sun Jul 27 20:47:01 1997 David L. Levine - - * tests/Handle_Set_Test.cpp: Instantiate templates with - ACE_HANDLE instead of int. - - * examples/IPC_SAP/SPIPE_SAP/NPServer.cpp (main): use - ACE_OS::fprintf () instead of cerr. - -Sun Jul 27 20:10:26 1997 Douglas C. Schmidt - - * ACE version 4.2.24, released Sun Jul 27 20:10:26 1997. - -Sun Jul 27 16:03:30 1997 Nanbor Wang - - * tests/Handle_Set_Test.cpp (test_boundaries): Changed class of - queue from ACE_Unbounded_Queue to - ACE_Unbounded_Queue so it declares the right data - type. - - * ace/Synch.cpp (ACE_Process_Mutex): - * ace/OS.cpp (rwlock_init): - * ace/ACE.cpp (unique_name): Memories for placing unique_name are - now declared using ACE_UNIQUE_NAME_LEN. When calling - ACE::unique_name, the length is also specified using - ACE_UNIQUE_NAME_LEN because using "sizeof (buffer)" also caused - problem if we are using UNICODE. - - * ace/OS.h: Added a new directive ACE_UNIQUE_NAME_LEN to specified - the maximum length of an "unique name." - -Sun Jul 27 15:32:08 1997 David L. Levine - - * tests/Handle_Set_Test.cpp (main): uncommented - test_duplicates () and test_performance () calls, and added - ACE_Unbounded_Queue_Iterator specialization. - -Sun Jul 27 14:25:33 1997 Douglas C. Schmidt - - * tests/Handle_Set_Test.cpp (test_boundaries): Added a better test - to ensure that the ACE_Handle_Set_Iterators are working - correctly. This works by inserting the handles in a queue and - then making sure that they are the same values we receive from - the iterator. - - * ace/Handle_Set.i (operator): Fixed a subtle bug in the - ACE_Handle_Set_Iterator implementation. We need to make - sure that we increment the handle_index_ to the beginning - of the next word whenever we've examined all the bits in - the current word. Thanks to David Levine for noticing this - problem. - -Sun Jul 27 09:06:29 1997 David L. Levine - - * include/makeinclude/rules.lib.GNU: replaced hard-coded ".so" - with "$(SOEXT)". - - * include/makeinclude/rules.local.GNU: added/completed support - for "$(SOEXT)", and "$(VSHDIR)" instead of always hard-coding - them as ".so" and ".shobj/". - - * include/makeinclude/wrapper_macros.GNU: added support for - override of "$(VSHDIR)" in platform_macros.GNU. - - * apps/JAWS/clients/{Blobby,Caching}/Makefile, - apps/JAWS/stress_testing/Makefile, - apps/Orbix-Examples/Event_Comm/{Consumer,Supplier}/Makefile, - examples/ASX/Event_Server/Event_Server/Makefile, - examples/ASX/UPIPE_Event_Server/Makefile, - examples/Logger/simple-server/Makefile, - examples/Mem_Map/IO-tests/Makefile, - examples/Naming/Makefile, - examples/Reactor/Multicast/Makefile, - examples/Service_Configurator/Misc/Makefile, - examples/Shared_Malloc/Makefile: - replaced hard-coded ".shobj" with "$(VSHDIR)" in LDLIBS definitions. - - * include/makeinclude/platform_vxworks5.x_{g++,ghs}.GNU: - added overrides of .so build rules to change them .o builds. - - The above changes allow builds of modules that specify .shobj/*.so - on VxWorks, by mapping those objects to .obj/*.o. - -Sun Jul 27 03:07:35 1997 Nanbor Wang - - * ace/ACE.cpp (unique_name): Added __TEXT macro to the format - string in sprintf to avoid a nasty problem when using UNICODE on - NT. - -Sat Jul 26 21:12:07 1997 David L. Levine - - * ace/ReactorEx.cpp: added a couple of ACE_UNUSED_ARG's. - - * examples/Logger/simple-server/Logging_Handler.cpp (handle_input): - replace use of cerr with stderr (by using default arg of - ACE_Log_Record::print ()). - - * examples/Shared_Malloc/test_multiple_mallocs.cpp (main): use - ACE_OS::printf () instead of cout. - - * examples/Shared_Malloc/test_persistence.cpp: added #include - of iostream.h with ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION. - -Sat Jul 26 15:55:43 1997 - - * ace/Malloc_T.cpp (ACE_Cached_Allocator): Changed (T *) to - (T*). VC++ did not like the former. - - * The entire ACE distribution was updated to use the new singleton - methods. The old singleton methods in Service_Config have been - deprecated and users are encouraged not to use these methods - anymore. It may not be supported in future releases. The - replacement is the instance() methods in the individual classes. - For example, ACE_Service_Config::reactor() is replaced by - ACE_Reactor::instance(). A perl script has been added - (ACE_wrappers/bin/Service_Config.perl) to allow users to change - their code over to the new methods. - - These changes will hopefully help in reducing the compile-time - dependencies in ACE source files and allow smaller custom ACE - libraries to be compiled. - - Thanks to Matthias Kerkhoff for making - these changes. - -Sat Jul 26 15:44:45 1997 Douglas C. Schmidt - - * ace/Malloc_T.cpp (ACE_Cached_Allocator): I think we want to - say "sizeof (T)" rather than "sizeof (T *)". - - * ace/FILE_IO.i (recv_n): There is a minor bug fix to be made in - FILE_IO.i. The method ACE_FILE_IO::recv_n() should call - ACE::read_n(), not ACE::recv_n(). Similarly, the method - ACE_FILE_IO::send_n() should call ACE::write_n(), not - ACE::send_n(). The functions ::recv() and ::send() are intended - only for *socket* I/O, and return failure conditions when - applied to *file* I/O. Thanks to David Brackman - for reporting this. - - * ace: Changed all LOCK names to ACE_LOCK to avoid clashes - with macros in the KAI C++ compiler. Thanks to Jeff - R. Hayes for pointing this out. - - * ace/Malloc_T.i: Added ACE_INLINE to some methods that weren't - getting inlined. - - * ace/OS.i: Added an implementation of timed semaphores for the - POSIX threading APIs. Also cleaned up the return values from - sema_wait() so that it always returns -1 if an error occurs - (originally, it was returning -2, which is confusing). Also - cleaned up the rd_lock() and wr_lock() methods in the same way. - -Sat Jul 26 16:00:05 1997 David L. Levine - - * Malloc_T.cpp (ACE_Cached_Allocator): fixed typo, sizeof (T*) - instead of sizeof (*T). - - * Proactor.cpp (instance): fixed signature in non-WIN32 - version. (run_event_loop): added ACE_UNUSED_ARG (tv). - -Fri Jul 25 12:08:47 1997 David L. Levine - - * ace/OS.[hi]: finished VxWorks (non-POSIX) semaphore implementation. - - * ace/Process.cpp (spawn): with GreenHills compiler only (for - VxWorks), call ACE_NOTSUP_RETURN instead of spawning via execve. - GreenHills 1.8.8 loses its lunch on the ACE_OS::execve () call. - Thanks to Dave Mayerhoefer for reporting - this problem. - - * tests/Mem_Map_Test.cpp (create_test_file): delete array "mybuf" - to prevent memory leak. - - * tests/Message_Queue_Test.cpp (main): delete "buffer" - elements at end of test to prevent memory leaks. - - * performance-tests/Misc/context_switch_time.cpp: use - ACE_Sched_Params for platform-independent thread priority - assignment. Also, modified Yield_Test so that only one thread - writes the test's timer. - - * examples/ASX/UPIPE_Event_Server/Peer_Router.cpp (svc): - replaced an iostream printout with an ACE_DEBUG call. - - * examples/ASX/UPIPE_Event_Server/event_server.cpp: added - #include of iostream.h with ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION. - - * examples/IPC_SAP/FILE_SAP/client.cpp: require 2 args instead - of 1; mask file mode with 0777 (octal); and use - ACE_OS::printf () instead of cout. - -Fri Jul 25 00:46:22 1997 - - * ace/Synch: Added documentation for Condition variables. Thanks - to Jeff for pointing out the lack of - documentation. - -Thu Jul 24 11:48:05 1997 David L. Levine - - * Makefile,TAO/Makefile: added a filter to exclude backup and - [.]#* files from releases. Thanks to Carlos O'Ryan - for reporting this problem. - - * include/makeinclude/platform_*.GNU: inserted CVS/RCS - keyword string. - - * performance-tests/Misc/basic_perf.cpp (per_iteration): - added support for ACE_U_LongLong. - - * performance-tests/Misc/childbirth_time.cpp: - (prof_fork,prof_native_thread): added ACE_UNUSED_ARGs - for unsupported platforms. (prof_ace_os_thread): added - (ACE_THR_FUNC) cast of first arg to ACE_OS::thr_create () call. - - * performance-tests/Misc/test_naming.cpp (find): replaced cerr - statement with an ACE_DEBUG. - - * examples/Misc/test_read_buffer.cpp: replaced bare OS calls - with ACE_OS calls. - -Thu Jul 24 11:35:37 1997 Darrell Brunsch - - * ace/Timer_Heap_T.cpp: Fixed a problem with reschedule() - corrupting the free list in Timer Heap. Thanks to - James Crawford , Silvano Peruzzi - , and Stuart Powell - for the fix. - -Wed Jul 23 23:29:15 1997 - - * ace/Message_Block.cpp (size): Changed the comparison from - (length < this->max_size_) to (length <= this->max_size_). - Thanks to Paul for suggesting this change. - -Wed Jul 23 21:54:23 1997 David L. Levine - - * examples/Shared_Malloc/test_malloc.cpp (spawn): cast argv - argument to (char *const *) for call to ACE_OS::execv (). - -Wed Jul 23 16:40:39 1997 Nanbor Wang - - * ace/ACE.cpp (get_ip_interfaces): ACE'ified codes for NT. UNIX - part will come later. - - * ace/Malloc_T.cpp (ACE_Cached_Allocator): Changed to use raw - memory allocation method for memory pool. - - * ace/OS.h (ACE_TEXT_STRING): Added this #define macro to switch - between ACE_WString and ACE_CString according to the usage of - UNICODE. - -Wed Jul 23 14:43:11 1997 David L. Levine - - * tests/Timer_Queue_Test.cpp(main): delete timer_id array at - the end of the test to avoid a memory leak. - -Wed Jul 23 13:40:39 1997 Nanbor Wang - - * ace/Process.cpp (ACE_Tokenizer::next): Moved checking of string - termination after checking delimiter and preserve_designator so - that we can use this class to tokenize multiple null terminated - strings cascaded together (using \0 as delimitor.) Notice tne - combined strings must be terminated with two null chars. I need - to use this class in ACE::get_ip_interfaces. - - * ace/Malloc_T.{h,i}: Changed the implementation of - ACE_Cached_Mem_Pool_Node from using union to a plain pointer. - This is because some C++ compilers don't allow union member to - have copy constructor. Thanks to Tim to dig this out. - -Wed Jul 23 12:58:04 1997 Steve Huston - - * ace/CORBA_Ref.cpp: Added #include "ace/Log_Msg.h" to catch the - ACE_DEBUG macro. diff --git a/ChangeLog-98a b/ChangeLog-98a deleted file mode 100644 index 8d598a29741..00000000000 --- a/ChangeLog-98a +++ /dev/null @@ -1,6588 +0,0 @@ -Wed Apr 29 18:55:13 1998 David L. Levine - - * ACE version 4.5 released. - -Wed Apr 29 12:25:05 1998 David L. Levine - - * ace/config-lynxos.h: added ACE_POLL_IS_BROKEN so that - ACE_OS::sleep () uses select () instead of poll (). - - * tests/Map_Manager_Test.cpp: added a ssize_t loop index that's - used to avoid signed/unsigned comparisons. - -Tue Apr 28 23:08:10 1998 Nanbor Wang - - * ace/Hash_Map_Manager.cpp: Bugs fixed. - - * tests/Map_Manager_Test.cpp: Added assertion tests on the number - of iterations to ensure the test does run correctly. - - * tests/Map_Manager_Test.cpp (main): Disabled the VERBOSE_LITE - Log_Msg flag before starting the real test and reenabled it - after the tests. - -Tue Apr 28 06:49:50 1998 David L. Levine - - * ACE-INSTALL.html,os-patches/linux-patches.html: updated - Linux glibc-2 info. ACE works with glib-2.0.7-7, unmodified. - - * ace/config-g++-common.h: added - ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES with egcs. egcs 1.0.2 - won't compile netsvcs/lib without it. - - * include/makeinclude/platform_vxworks5.x_ghs.GNU: fixed location - of parenthesis in ppc check. Thanks to Brian Mendel - for reporting this. - - * ace/High_Res_Timer.cpp: initialize global_scale_factor_ to 1000 - on Linux. - -Mon Apr 27 07:18:54 1998 Nanbor Wang - - * ace/Service_Types.cpp: Changes to use typedef - ACE_Service_Object_Exterminator to define . Thanks to - Chuck Gehr for reminding this. - - * ace/Service_Object.h (ACE_Service_Object_Ptr): - * netsvcs/servers/main.cpp (main): Added more comments on how to - use ACE_Service_Object_Ptr with ACE_SVC_INVOKE correctly. - - * ace/OS.h (ACE_Service_Object_Exterminator): Define the type as - extern "C" function pointer to make MVS happy. Thanks to Chuck - Gehr for pointing this out. - - * ace/Service_Object.i (ACE_Service_Object_Ptr): Delete the - underlying Service_Object after calling its fini() method. - Thanks to Tom Arbuckle - for pointing this out. - -Sun Apr 26 21:50:07 1998 David L. Levine - - * ace/Svc_Conf_l.cpp,etc/Svc_Conf_[ly].cpp.diff,etc/README: - updated the patch files. Thanks to J. Russell Noseworthy - for reporting problems with - them. - -Sun Apr 26 01:05:20 1998 Douglas C. Schmidt - - * ACE version 4.4.43 released. - -Sat Apr 25 17:47:31 1998 Nanbor Wang - - * ace/OS.h (ACE_FACTORY_DECLARE): Added explicit casting for - gobbler to prevent some weird compiler from complaining too - much. - - * netsvcs/lib/Server_Logging_Handler_T.cpp - (ACE_Server_Logging_Acceptor_T): We can't initialize the - with a temporary object. Its content gets deleted - right after the constructor exits. - -Sat Apr 25 11:55:01 1998 Alexander Babu Arulanthu - - * ace/Containers.h (class ACE_Double_Linked_List): Added - comments.(, the parameter for this class should have - T* next_ and T* prev_ fields in it. - - * ace/Containers.h (class ACE_Double_Linked_List): Corrected the - documentation for the insert_head and insert_tail functions. - -Fri Apr 24 22:36:37 1998 David L. Levine - - * ace/Service_Config.cpp (process_directive): added - ACE_UNUSED_ARG (directive). - -Fri Apr 24 18:40:08 1998 Irfan Pyarali - - * ace/Asynch_Acceptor.cpp (handle_accept): Fixed this method so - that it has better flexibility and error checking. Also, added - hooks so that users can do validation of remote connections. - Also, a flag is checked before accept is reissued. Thanks to - Jason Katz for reporting these upgrades. - -Fri Apr 24 16:33:14 1998 Steve Huston - - * ace/OS.h: ACE_FACTORY_DEFINE - in the generated gobble function, - use the indicated object type to do the delete so 1) the aC++ - compiler won't complain, and 2) so the service object is - destructed properly. - - * tests/Env_Value_Test.cpp: Made it compile on Solaris. - -Fri Apr 24 15:45:38 1998 David L. Levine - - * ace/config-sunos5.5-*.h: set ACE_THR_PRI_FIFO_DEF to 30, because - sched_get_priority_min is not implemented on Solaris 2.5.x. - -Fri Apr 24 09:12:39 1998 Nanbor Wang - - * tests/Env_Value_Test.cpp: Made it UNICODE safe. - - * tests/version_tests/version_tests.dsw: - * tests/version_tests/OrdMultiSet_Test.dsp: Added new project - file. - -Fri Apr 24 09:09:49 1998 David L. Levine - - * ace/config-linux-common.h: added ACE_HAS_4_4BSD_SENDMSG_RECVMSG. - Thanks to Sandro Doro for recommending - this. - -Fri Apr 24 04:12:39 1998 Nanbor Wang - - * tests/version_tests/version_tests.dsw: - * tests/version_tests/OrdMultiSet_Test.dsp: Added new project - file. - -Thu Apr 23 22:52:20 1998 Nanbor Wang - - * tests/tests.dsw: Somehow, Thread_Mutex_Test.dsp got removed from - the workspace. - - * tests/Thread_Mutex_Test.dsp: Update include/lib path. - -Fri Apr 24 00:12:32 1998 Douglas C. Schmidt - - * ACE version 4.4.42 released. - -Thu Apr 23 22:28:02 1998 Douglas C. Schmidt - - * ace/Service_Config: Began adding support for the new service - configurator feature that will make it possible to dynamically - configure services that are read in from the command-line. - Thanks to Karlheinz for requesting this. - - * ace/Parse_Node.cpp (open_handle), - ace/Svc_Conf.l: The line for the service object for the service - configurator contains the DLL specifications. Previously, it - was possible to specify either the absolute path name of the DLL - or only the name of the DLL itself. For the latter, the service - configurator is searching for the DLL using the PATH environment - variable. If we used the absolute path name it was not - possible to use environment variables in the string. It is now - possible to do this for Win32 using their %foo% notation. - Thanks to Andreas Schuelke for - providing these fixes. - - * etc/Svc_Conf_y.cpp.diff, - etc/Svc_Conf_l.cpp.diff, - ace/Makefile: Change the YY* symbols to ACE_YY* symbols to - avoid clashes if we link with other flex/yacc generated code. - - * apps/Gateway/Gateway/gatewayd.cpp, - apps/Gateway/Peer/peerd.cpp: Added a check to see if the - svc.conf file exists before trying to parse the arguments. - Thanks to Dani Flexer for reporting this. - - * apps/Gateway/Peer/Options.cpp (parse_args): Added the "C:" - qualifier to the get_opt string. Thanks to Dani Flexer - for reporting this. - - * ace/Activation_Queue.h: Extended ACE_Activation_Queue so that it - can be a proper base class by making the destructor virtual and - putting the methods into the protected section. Thanks to Garry - Brother for this. - - * ace/XtReactor.cpp: Commented out most of the logic if we're - running on Win32 because (1) it doesn't work correctly since - HANDLEs are not ints and (2) there's no X windows on Win32 - anyhow... - - * ace/XtReactor.h: Made ACE_XtReactor be ACE_Export'd. Thanks to - Kirill Rybaltchenko for reporting - this. - -Thu Apr 23 13:54:33 1998 David L. Levine - - * ace/Malloc.i (free): added ACE_UNUSED_ARG (ptr) if ACE_NDEBUG. - - * include/makeinclude/platform_chorus.GNU: include dtool/htgt-cf.rf - from $(MERGEDIR) instead of $(CLASSIXDIR). Thanks to - Wei Chiang for this update. - -Wed Apr 22 22:13:57 1998 Douglas C. Schmidt - - * ace/ace_bcc.ide: Added a new IDE for the Borland C++ compiler. - Thanks to Valik Solorzano Barboza for - this. - - * ace/Msg_WFMO_Reactor.cpp (wait_for_multiple_events): Fixed a - missing semi-colon. Thanks to Jorn Jensen - for reporting this. - -Wed Apr 22 21:53:12 1998 David L. Levine - - * config-linux-kcc.h: added #define ACE_SIZEOF_LONG_DOUBLE - to 12 on i386. Thanks to Ben Eng for - reporting this. - -Tue Apr 21 18:38:22 1998 Nanbor Wang - - * ace/ace_ce_dll.dsp: Removing a deprecated /windowsce:noconvert - linker flag. - -Mon Apr 20 15:39:42 1998 Steve Huston - - * ace/Handle_Set.cpp: Access fds_bits elements using an fd_mask - pointer rather than array indexing of the fds_bits array itself. - HP-UX 11 plays some games with the fd_mask type - fd_mask is defined - as an int32_t, but the fds_bits is an array of longs. This makes - plainly indexing through the array by hand tricky, since the FD_* - macros treat the array as int32_t. So the bits are in the right - place for int32_t, even though the array is long. This, they say, - is to preserve the same in-memory layout for 32-bit and 64-bit - processes. So, we play the same game as the FD_* macros to get - the bits right. See /usr/include/sys/_fd_macros.h. - On all other systems, this amounts to practically a NOP, since this - is what would have been done anyway, without all this type jazz. - -Sat Apr 18 13:59:55 1998 David L. Levine - - * ace/Naming_Context.h: removed trailing ';' at end of - ACE_FACTORY_DECLARE. - - * ace/OS.*,Sched_Params.{h,cpp}: added support on Solaris - for setting the LWP priority. It is necessary to set the - LWP priority for bound threads in the Real-Time scheduing - class. Thread priority is essentially ignored. See the - pthread_setschedparam man page for more info. Thanks to - Fred Kuhns for helping track this problem - down. - - There is one drawback: to set the LWP priority, in ACE, - a thread must set its own priority. There are examples - in performance-tests/Misc/preempt.cpp: - - High_Priority_Task::svc (void) - { - // On Solaris 2.5.x, the LWP priority needs to be set. - // This is the ACE way to do that . . . - ACE_OS::thr_setprio (priority_); - - I don't know of a way to set the LWP priority for another - thread. The problem is that there is no way that I know of - to find the LWP ID of another (bound) thread. A thread can - find the ID of its own LWP using _lwp_self (). - - * ace/config-sunos5*,README: added ACE_HAS_PRIOCNTL and - ACE_NEEDS_LWP_PRIO_SET. - - * ace/config-osf1-4.0.h: added ACE_HAS_PRIOCNTL and - ACE_LACKS_PRI_T. - - * performance-tests/Misc/preempt.cpp (svc): set LWP priority - (on Solaris) by having the thread set its own priority. - This test now passes on Solaris 2.5.1! - - * ace/High_Res_Timer.cpp (reset): initialize by assignment with - 0 instead of using memset. Thanks to Carlos for noticing this. - - * ace/Object_Manager.cpp (ACE_Object_Manager ctor): allocate - registered_objects_ after the allocation of ACE_STATIC_OBJECT_LOCK, - just to be safe. - -Sat Apr 18 01:28:36 1998 Irfan Pyarali - - * ace/Timeprobe.h (class ACE_Timeprobe): Changed ACE_Timeprobe to - use ACE_OS::gethrtime(). - -Sat Apr 18 01:14:30 1998 Irfan Pyarali - - * ace/OS.cpp (start and stop): start and stop should only be done - when ACE_Countdown_Time::max_wait_time_ is non-zero. - - * ace/Acceptor.cpp (open): Only set the reactor if calls to open() - and register_handler() succeeds. - -Fri Apr 17 21:00:21 1998 Steve Huston - - * ace/config-hpux11.h: Changes and comments around the - ACE_DEFAULT_BASE_ADDR definition for 64-bit HP-UX 11. - - * ace/Naming_Context.cpp - * ace/Malloc_T.cpp - * ace/Memory_Pool.cpp: Hacks to work around bugs in HP-UX aC++ in - 64-bit mode on HP-UX 11. - - * ace/OS.i: Addition of a facility that allows config.h to specify - additional flags for ACE_OS::mmap, above what's set by the caller. - It's done using a new definition, ACE_OS_EXTRA_MMAP_FLAGS. - This was added primarily to allow setting of the MAP_ADDR32 flag - on HP-UX 11 if the ACE_DEFAULT_BASE_ADDR is set in the 32-bit range - to allow 32-bit and 64-bit programs to map the same region. - -Fri Apr 17 11:40:38 1998 Nanbor Wang - - * ace/OS.cpp (invoke): Should check against null thr_desc, not - thr_desc->flag (). Thanks to "Erickson, Jack (CICG - NY GFX)" - for reporting this. - - * ace/OS.h (ACE_Service_Object_Exterminator): Typedef of ACE - factory cleanup funciton. - (ACE_FACTORY_{DECLARE,DEFINE}): Added an extra argument to pass - back destructor for the object created by the factory. Changed - the ACE_FACTORY_DEFINE to generate this destructor function to - pair with factory function so that we can deallocate the object - in the same heap it was created. - (ACE_SVC_INVOKE): This will now pass in 0, which means we don't - want to use the destructor function. - - * ace/Parse_Node.{h,cpp} (symbol): Added an extra argument to get - back the destructor function from ACE_FACTORY. Only - Function_Node actually uses it. - (ACE_Function_Node::symbol): Initialize the Service_Object with - added destructor function ptr so it will get destructed in the - "right place". - - * ace/Service_Config.{h,cpp} (load_static_svcs): Invoke the - factory method with added argument to get back the destructor - function and then, pass it in to ace_create_service_type - function. - (ACE_Service_Manager): Changed to use the more generic - ACE_FACTORY_DEFINE than using ACE_SVC_FACTORY_DEFINE. - (ACE_SERVICE_ALLOCATOR): Must match with signature of the - new factory method. - - * ace/Service_Type.{h,cpp} - (ACE_Service_Object_Type,ACE_Service_Type_Impl): Keep the - destruction function in these object, if use provides one, then - use it to destruct the object, otherwise, just use delete. - - * ace/Naming_Context.{h,cpp}: Changed to use - ACE_FACTORY_{DEFINE,DECLARE}. - - * ace/Object_Manager.cpp: Changed the signature of - Service_Manager. - - * ace/Svc_Conf.h: Changed the signature of - ace_create_service_type. - - * ace/Svc_Conf_y.cpp: - * ace/Svc_Conf.y: Try to get the destruction function from - factories in svc_location. - (ace_create_service_type): Pass in the destruction function if - provided one. - -Fri Apr 17 08:31:38 1998 Douglas C. Schmidt - - * ace/Signal.cpp (dispatch): Fixed a typo. Thanks for David - Levine's help pointing this out. - -Thu Apr 16 21:12:48 1998 Douglas C. Schmidt - - * ace/Signal.cpp: There was a major portability violation in the - ACE_Sig_Handler::dispatch() method, which was previously - acquiring a mutex lock. This is NOT permitted in the POSIX - signal handler spec. In addition, the implementation had other - nasty consequences related to dynamic allocation of memory in - the signal handler, which has a bad habit of breaking - non-reentrant uses of "new". The consequence of all this is - that you really shouldn't be modifying signal handlers via the - Reactor in multiple threads of control. In general, threads and - signals are just plain evil, so they are best addressed via - sigwait() anyhow... - - Thanks to Sumedh and Naga for first tracking this down. - -Thu Apr 16 20:51:42 1998 David L. Levine - - * ace/config-linux-pthread.h: added ACE_HAS_THREADS. - ace/config-irix6.x-g++.h: added ACE_HAS_THREADS and ACE_MT_SAFE. - Thanks to Dave Tallman for reporting these. - -Thu Apr 16 04:14:53 1998 Irfan Pyarali - - * ace/Timeprobe: - - This class is used to instrument code. This is accomplished by - inserting time probes at different location in the code. - ACE_Timeprobe then measures the time difference between two time - probes. - - This class provides a lightweight implementation for measuring - the time required to execute code between two time probes. When - a time probe executes, it records the time, the id of the - calling thread, and an event description. The event description - can either be an unsigned long or a string (char *). If string - are used, care must be taken cause only pointer copies are done - and the string data is *not* copied. - - The recorded time probes can then be printed by calling - print_times(). If you have used unsigned longs as event - descriptions in any of your time probes, you must provide an - event description table that maps the unsigned longs to readable - strings. This map is a simple array of strings, and the event - number is used as the index into the array when looking for the - event description. If you have only used strings for the event - description, this map is not necessary. - -Wed Apr 15 23:01:08 1998 Nanbor Wang - - * ace/Thread_Manager.cpp (exit): Don't delete the ACE_Thread_Exit - object of the thread here. ACE_Thread_Manager::exit will be - called back again when performing TSS cleanup. Thanks to Dave - Tallman for the bug report. - -Wed Apr 15 17:12:14 1998 Steve Huston - - * ace/config-hpux-11.x-hpc++.h: Explicitly set ACE_SIZEOF_LONG based - on compiler switch for processor/memory model. - -Wed Apr 15 16:25:38 1998 Irfan Pyarali - - * ace/WFMO_Reactor.cpp (handle_signal): Changed break to return 0. - - * ace/OS.cpp (uname): We have to make sure that the size of - (processor + subtype) is not greater than the size of - name->machine. So we give half the space to the processor and - half the space to subtype. The -1 is necessary for because of - the space between processor and subtype in the machine name. - - Thanks to Andrew Marchewka - (Andrew_Marchewka@SRT.CCMAIL.compuserve.com) for suggesting - these changes. - -Wed Apr 15 08:52:52 1998 David L. Levine - - * tests/Reactor_Exceptions_Test (handle_input): removed - ACE_NOTREACHED wrapper around return statement at end. - Now that the previous statement is a function call, the - compiler (cxx) doesn't detect that the statement can't - be reached. - -Wed Apr 15 01:03:42 1998 Douglas C. Schmidt - - * ace/OS.i (ACE_SOCKCALL_RETURN): Added a work-around for a - Borland 5.02 compiler bug. The key turns out to be the - throw-away intermediate assignment statement to correctly keep - the value of WSAGetLastError(). Thanks to Dave Tallman - for reporting this. - -Tue Apr 14 23:35:19 1998 Nanbor Wang - - * ace/Profile_Timer.cpp (elapsed_rusage): The differences of user - time and system time for GETRUSAGE were not calculated. - - * performance-tests/Synch-Benchmarks/Options.cpp (print_results): - Added dump code for ACE_HAS_GETRUSAGE. - - * ace/ace_{dll,lib}.dsp: Removed Service_Main.cpp from the - projects. We don't really need them in ACE DLL. - - * ace/Service_Main.cpp: Removed the file from CVS. Lots of - Service_Config examples can be found all round ACE directories - so we really don't need it here anymore. - -Tue Apr 14 20:30:53 1998 Steve Huston - - * ace/OS.i (mutex_init, cond_init): Added sections to properly - handle error conditions on platforms which claim - ACE_HAS_PTHREADS_1003_DOT_1C. - -Tue Apr 14 16:39:42 1998 Nanbor Wang - - * ace/ACE.cpp (ldfind): Fixed a miscalculated string size. - Thanks to Jason Katz for reporting the - bug. - -Tue Apr 14 14:33:33 1998 David L. Levine - - * tests/Thread_Manager_Test.cpp (main): don't try to suspend/resume - DCE threads, because they don't support it. Added a start barrier, - to ensure that worker threads set up their signal handlers before - the main thread tries to signal them. Drop DEFAULT_ITERATIONS from - 100000 to 10000 because 100000 takes a long time on a 200 MHz - Pentium. - -Tue Apr 14 12:59:04 1998 Douglas C. Schmidt - - * tests/Hash_Map_Manager_Test.cpp: Changed the consts to - size_t, as well... - -Tue Apr 14 11:40:23 1998 David L. Levine - - * tests/Hash_Map_Manager.cpp: made type, size_t, of String_Table_size - explicit, instead of using the default type of int. - -Tue Apr 14 10:10:46 1998 Douglas C. Schmidt - - * ACE version 4.4.41 released. - -Tue Apr 14 07:19:25 1998 David L. Levine - - * bin/make_release (create_kit): ACE+TAO instead of ACE_TAO. - Thanks to Doug for reporting this. - - * ace/OS.h (ACE_Thread_Adapter): added friend class declaration - to avoid g++ warning: only defines a private destructor and - has no friends. - - * ace/OS.cpp (ACE_Thread_Adapter::invoke): only declare local - thr_desc if ACE_HAS_WIN32 and ACE_HAS_MFC. - -Tue Apr 14 00:46:05 1998 Douglas C. Schmidt - - * ACE version 4.4.40 released. - -Mon Apr 13 19:19:13 1998 Douglas C. Schmidt - - * ace/OS: Made the destructor of ACE_Thread_Adapter private to - keep people like Russ from abusing this class... ;-) - - * ace/OS.cpp (invoke): We were incorrectly deleting this and then - using one of its fields! Thanks to the ever-vigilant Russ - Noseworthy for reporting this. - - * ace/Log_Record.cpp (print): Added VERBOSE_LITE support to the - code so we don't spew out quite so much information. - - * ace/Log_Msg.cpp (log): Replaced all calls to - ACE_Log_Record::print() so that they pass the - ACE_Log_Msg::flags_ parameter. - - * ace/Log_Record.h: Changed the 'int verbose' parameter to 'u_long - verbose_flag' parameter so that we can pass in the - ACE_Log_Msg::flags_ and check to see what they are enabled with! - - * tests/test_config.h: Changed VERBOSE to VERBOSE_LITE so we don't - have quite so much junk printed out for the tests! - - * ace/Log_{Priority,Record}: Added a new flag called VERBOSE_LITE - that isn't quite as verbose as VERBOSE (it only prints things - that can change between calls to the ACE_Log_Msg::log() method). - In addition, also changed the ACE_Log_Record::print() method so - it prints the string format for the ACE_Log_Priority types. - This is a lot more legible than printing the numbers. - - * ace: Removed all uses of ACE_HAS_WILDCARD_BIND. This is now the - default behavior. If there's some weird platform that DOESN'T - have this behavior, we'll deal with that by setting the - ACE_LACKS_WILDCARD_BIND flag. - - * ace/OS.cpp (invoke): Removed the (void *) cast on delete this. - It wasn't necessary. Thanks to Steve Huston and David Levine - for reporting this. - -Mon Apr 13 19:12:49 1998 Nanbor Wang - - * ace/DEV_Connector.i (ACE_DEV_Connector): - * ace/Asynch_IO.cpp (accept,addresses): UNICODE changes. - -Mon Apr 13 18:05:26 1998 Steve Huston - - * tests/Thread_Manager_Test.cpp: Disabled the suspend/resume action - for Pthreads platforms. - -Mon Apr 13 10:18:59 1998 David L. Levine - - * ace/High_Res_Timer.i (hrtime_to_tv): in tv.usec calculation, - moved the cast to long to after the division by global_scale_factor_. - This is necessary for compatibility with ACE_U_LongLong. - - * bin/make_release (get_versions): use $KIT instead of hard-coded - ACE, so that it works with TAO. (tag): translate dots to - underscores, because CVS doesn't allow dots in tags. Thanks to - Doug and Hans Rohnert for reporting these. - -Sun Apr 12 21:11:53 1998 Nanbor Wang - - * ace/OS.h: Prevent using ACE_HAS_MOSTLY_UNICODE_APIS without UNICODE. - - * ace/OS.cpp (thr_create): - * ace/Thread_Manager.cpp (spawn_i): Removed directive - ACE_NO_THREAD_ADAPTER and its related code. - -Sat Apr 11 22:20:51 1998 Nanbor Wang - - * tests/Thread_Manager_Test.cpp (main): Don't check execute result - of kill_grp statement if we are running on Win32 platforms. - thr_kill is not supported there. - -Sat Apr 11 20:00:12 1998 Douglas C. Schmidt - - * ACE version 4.4.39, released Sat Apr 11 20:00:12 1998. - -Sat Apr 11 19:58:56 1998 Douglas C. Schmidt - - * Nanbor removed a bunch of *.MAK files, which were quite large - and taking up lots of space. - -Sat Apr 11 18:58:24 1998 Steve Huston - - * ace/INET_Addr.cpp: Fixed missing paren. - - * netsvcs/servers/servers4.mdp: Added ..\lib to include directories - for Release build. - -Sat Apr 11 13:28:19 1998 Douglas C. Schmidt - - * ACE version 4.4.38, released Sat Apr 11 13:28:19 1998. - -Sat Apr 11 12:46:08 1998 Douglas C. Schmidt - - * ace/config-mvs.h: Added some ACE_SIZEOF_* macros for MVS. - Thanks to Chuck Gehr for reporting - this. - - * ace/INET_Addr.cpp: Added a newline and a better explanation of - what went wrong if an error occurs. Thanks to Luca for - reporting this. - -Fri Apr 10 02:42:35 1998 Nanbor Wang - - * ace/Log_Msg.{h,cpp} (log_hexdump): - * ace/ACE.{h,cpp} (format_hexdump): The buffer to be hex-dumped should - always be of type (const char *) no matter we have UNICODE - system strings or not. - - * ace/OS.{h,cpp} (ACE_CE_Bridge): This new class bridges - a text-based ACE programs with a default window that prints out - the default ACE_Log_Msg output. - - CE always uses non-static object manager and we replace the - original main function with a well know entry that the main - window program can call back from to invoke the ACE program in a - separate thread. - - * ace/Log_Record.{h,cpp}: Added support for passing strings as - windows messages. - - * ace/Log_Msg.cpp (log): Specialized CE support. - - * windoezCE: The template windows program that receives ACE - messages. See CE-Status or README file for more info. - -Fri Apr 10 00:41:23 1998 Douglas C. Schmidt - - * tests/Reactor_Exception_Test: Tidied the test up a bit. Thanks - to Bob Laferriere for suggesting - this. - - * tests/test_config.h: Enabled ACE_Log_Msg::VERBOSE since it gives - more information that can be useful for debugging. - -Fri Apr 10 00:04:03 1998 Irfan Pyarali - - * ace/Proactor.cpp (post_completion): Added a new method to the - Proactor. It can be used to post a result to the completion port - of the Proactor. If errors occur, the result will be deleted by - this method. If successful, the result will be deleted by the - Proactor when the result is removed from the completion port. - Therefore, the result should have been dynamically allocated and - should be orphaned by the user once this method is called. - - Changed the timer mechanism to use this new method rather than - posting to the completion port directly. - - Thanks to Jason Katz for the - improvements. - -Thu Apr 9 17:31:47 1998 Douglas C. Schmidt - - * Updated all the Makefile dependencies and also added the - appropriate CVS strings to all Makefiles. - - * examples/IPC_SAP/SOCK_SAP: Improved both the CPP-unserver.cpp - and CPP-inserver.cpp programs so they work identically wrt - concurrency and logic. - - * ace/LSOCK_Stream.cpp: Fixed the get_remote_addr() and - get_local_addr() methods to work correctly. Apparently, - getpeername() doesn't work appropriately for UNIX domain - sockets, so we simply have both methods call getsockname(). - Thanks to Chuck Gehr for pointing out this problem. - - * ace/FILE_IO.cpp (get_local_addr): The RHS has an additional - field that is the FILE name, which did not get copied. Added an - ACE_dynamic_cast() to do the right thing here. Thanks to Ganesh - Pai for reporting this. - - * ace/Malloc*: Factored out all the code in ACE_Static_Allocator - into a new non-templatized base class called - ACE_Static_Base_Allocator so that we don't trigger multiply - defined symbols when we use this in TAO. Thanks to Carlos for - this very insightful trick! - - * tests/Thread_Manager_Test.cpp (main): Added ACE_ASSERT - statements so that we bailout if things go awry. Thanks to - Robert J. Laferriere for reporting - this. - -Thu Apr 09 18:06:53 1998 Nanbor Wang - - * ace/High_Res_Timer.i (hrtime_to_tv): Cast the parameter for usec - to long. It can be fixed because of Darrell's vigilance. - -Thu Apr 09 17:55:21 1998 Steve Huston - - * ace/config-hpux-10.x.h, config-hpux11.h, config-aix-4.2.x.h: - Added ACE_HAS_WILDCARD_BIND. - -Thu Apr 09 16:43:26 1998 Irfan Pyarali - - * ace/ACE.*: Changed *_version() functions to be non-inlined. - After this change, inclusion of ace/Version.h can be moved into - ACE.cpp. This change helps as all of ACE doesn't have to be - compiled after Version.h changes (Version.h changes every time a - new beta is produced). - -Thu Apr 9 12:27:23 1998 Carlos O'Ryan - - * tests/Hash_Map_Manager_Test.cpp: POOL_SIZE was simple "const - POOL_SIZE" I changed that to "const int POOL_SIZE". Added - missing template instantiation for Static_Allocator. - -Thu Apr 09 10:50:18 1998 Nanbor Wang - - * ace/WFMO_Reactor.cpp (dump): Fixed signed/unsigned mismatched - warnings on NT. Thanks to Darrell for noticing the bug. - -Thu Apr 9 09:37:08 1998 Douglas C. Schmidt - - * ace/Malloc_T: Moved the ACE_Static_Allocator::dump() method into - the Malloc_T.cpp file so we'd get a vtable... Thanks to David - Levine for reporting this. - - * tests/Hash_Map_Manager_Test.cpp (run_test): Added a return - value to make G++ and David Levine happy ;-). - -Thu Apr 09 10:50:18 1998 Nanbor Wang - - * ace/WFMO_Reactor.cpp (dump): Fixed signed/unsigned mismatched - warnings on NT. Thanks to Darrell for noticing the bug. - -Wed Apr 08 17:29:01 1998 Irfan Pyarali - - * ace/SOCK_Acceptor.cpp (open): There was a boo-boo in open() as - we were only calling bind_port() and ignoring the port supplied - by the user. Call bind_port only if port == 0. - -Wed Apr 8 01:09:52 1998 Douglas C. Schmidt - - * ace/Malloc_T: Added a new ACE_Static_Allocator class, which is - highly optimized for allocations where (1) all the memory size - is known in advance and (2) no deletions are done. This class - will ultimately be used in TAO to improve it's startup - performance for operation tables initialization. - - * tests/Hash_Map_Manager_Test.cpp: Enhanced the test so that it - uses the new ACE_Static_Allocator feature. - - * ace/OS: Added support for the rename() method. Thanks to Ganesh - Pai for suggesting this. - - * ace/config-win32-common.h, - config-sunos*.h: - config-irix-6*.h: - Enable the ACE_HAS_WILDCARD_BIND macro. - - * ace/ACE.cpp: Modified the bind_port() method so that it is more - efficient on platforms that interpret a 0 port to bind() as a - request for the kernel to select the port. Thanks to Chris - Cleeland for pointing this out. - - * ace/Hash_Map_Manager: Made a bunch of minor changes to fix some - subtle deadlocks with intra-class locking. - - * tests/Map_Manager_Test.cpp: Restructured the tests so that we - don't keep recomputing end() and rend() of the map in each loop - iteration! - -Wed Apr 08 10:02:16 1998 David L. Levine - - * bin/make_release: added this script that creates ACE and/or - TAO releases. - - * Makefile: added support for make_release. See comments at - the top of the Makefile. The old release mechanism has - been retained; to use it: make release-old or - make releaseall-old. - -Wed Apr 08 00:37:33 1998 Irfan Pyarali - - * ace/ACE.cpp (bind_port): This call was not flexible enough as it - always assumed that the user wanted INADDR_ANY. Added an extra - parameter to this function where the user can pass in the addr - that she is interested in. This extra parameter defaults to - INADDR_ANY, so no existing should break. - - * ace/SOCK_Acceptor.cpp (open): Not enough information was being - passed to the new ACE::bind_port() call. Changed open() so that - the sin_addr part of the address is passed along to - ACE::bind_port(). - -Tue Apr 07 15:25:08 1998 David L. Levine - - * ace/config-irix*.h: fixed determination of ACE_SIZEOF_LONG_DOUBLE, - depending on system release and ABI. Thanks to Robert J. - Laferriere for figuring it all out. - -Mon Apr 06 01:29:35 1998 Nanbor Wang - - * ace/ace_ce_dll.dsp: Update project files. Rearrange dll filenames a - bit so that it's eaier to have various ACE libraries for various - CE supported CPUs. Files for every supported CPU are generated - under CPU specific directory as follow: - - CPU Directory Name - Sh3 series ace/WCE/SH aced.{lib,dll} ace.{lib,dll} - MIPS series ace/WCE/MIPS aced.{lib,dll} ace.{lib,dll} - x86 emulation ace/WCE/x86em aced.{lib,dll} ace.{lib,dll} - - * ace/config-win32-common.h: Prevent CE from using wsock32.lib. - -Sun Apr 05 16:44:31 1998 Nanbor Wang - - * ace/OS.h (ASYS_ONLY_MULTIBYTE_STRING): New macro. Used to - activate wchar string to char string conversion only under CE, - under other cases, the argument to this macro is treated as - a regular char string. - - * ace/INET_Addr.cpp (set): Changed to use - ASYS_ONLY_MULTIBYTE_STRING. This has gotten out of control - now. I need to think of a better name for these macros. - -Tue Apr 07 09:30:28 1998 David L. Levine - - * include/makeinclude/platform_lynxos.GNU: set up PATH when - cross-compiling. With this change, users don't need to - do anything special to their platform_macros.GNU or - environment to cross-compile for LynxOS (assuming that - the default platform_lynxos.GNU configuration is suitable). - -Mon Apr 06 16:28:32 1998 Steve Huston - - * examples/Service_Configurator/IPC-tests/server/svc.conf: Corrected - library name to load tests from. Thanks to Sandro Doro - for noticing there was a problem here. - -Sun Apr 05 10:20:26 1998 David L. Levine - - * include/makeinclude/platform_lynxos.GNU: only define - CROSS-COMPILE if not building on LynxOS. - - * ace/OS.h: fixed ACE_CAST_CONST definition with Sun CC. - -Sun Apr 05 00:20:52 1998 Nanbor Wang - - * ace/ACE.h: Moved "#include "ace/OS.h" out of _ACE_H_ block to - resolve the circular inclusion that occured when building ACE - Unicode Release version. - -Sat Apr 04 21:19:32 1998 Douglas C. Schmidt - - * ACE version 4.4.37, released Sat Apr 04 21:19:32 1998. - -Sat Apr 04 19:41:03 1998 Nanbor Wang - - * ace/OS.cpp (thr_exit): Forgot to access creation flags thru - the access function. - -Sat Apr 04 14:01:53 1998 Steve Huston - - * performance-tests/Makefile: Put UDP back in dir list. - -Sat Apr 04 07:45:33 1998 David L. Levine - - * ace/Basic_Types.h,config-sunos4*.h,README: don't use - u_longlong_t on Suns if ACE_LACKS_U_LONGLONG_T is defined. - Define ACE_LACKS_U_LONGLONG_T in all SunOS4 config files. - Thanks to John Lindal for reporting - this. - -Sat Apr 4 02:06:57 1998 Nanbor Wang - - * ace/OS.cpp (invoke,thr_exit): (*Win32*) We also need to consider - threads that are not spawned by ACE_Thread_Manager by checking - the validity of cached ACE_Thread_Descriptor. In any rate, - please avoid using thread functions in ACE_Thread::* and - ACE_OS::thr_* directly. - -Sat Apr 4 01:03:17 1998 Alexander Babu Arulanthu - - * ace/Map_Manager.cpp (map): Added map method for the iterator interface. - -Sat Apr 4 00:55:30 1998 Douglas C. Schmidt - - * netsvcs/clients/Naming/{Client,Dump_Restore}/Makefile: - Moved all program source names to PSRC, not SRC, for - 'make depend'. - -Fri Apr 3 21:18:51 1998 Douglas C. Schmidt - - * ace/OS.cpp (cleanup): Moved ACE_Cleanup::cleanup() back into the - *.cpp file so that we have at least one non-inline virtual - function. - - * ace/OS (cleanup): Created a dummy ACE_Cleanup constructor since - the lack of this may be causing a bug with CC and the linker for - TAO's IDL compiler. Also moved the constructor and destructor of - ACE_Cleanup into the OS.i file and made them inline. We'll fix - this bug yet!!!! - -Fri Apr 03 18:45:35 1998 Steve Huston - - * apps/JAWS/clients/Blobby/Makefile - * apps/JAWS/clients/Caching/Makefile - * examples/ASX/Event_Server/Event_Server/Makefile - * examples/ASX/UPIPE_Event_Server/Makefile - * examples/Logger/simple-server/Makefile - * examples/Mem_Map/IO-tests/Makefile - * examples/Reactor/Multicast/Makefile - * examples/Service_Configurator/Misc/Makefile - * examples/Shared_Malloc/Makefile - * performance-tests/Synch-Benchmarks/Makefile - Adjusted for corresponding changes to rules.bin.GNU and/or - rules.lib.GNU, below. - - * examples/Connection/non_blocking/Makefile - * examples/Service_Configurator/IPC-tests/server/Makefile - * examples/Timer_Queue/Makefile - * performance-tests/Misc/Makefile - Moved all program source names to PSRC, not SRC, for - 'make depend'. - - * performance-tests/Makefile: Removed UDP from list of dirs to build. - - * include/makeinclude/rules.bin.GNU: Set OBJEXT and VOBJS from the - SRC files in the Makefile (LSRC sets VLOBJS in rules.lib.GNU; - SRC sets VOBJS in rules.bin.GNU). - - * include/makeinclude/rules.local.GNU: depend rule will also operate - on $(PSRC) in addition to $(SRC). PSRC is new - if you have more - than one program to build in a makefile, set PSRC to the source - files for make depend. - - * include/makeinclude/rules.lib.GNU: Use VLOBJS for archive lib object - files; using VOBJS gets it confused with VOBJS in rules.bin.GNU and - makes it very difficult to build lib and exe from same Makefile. - -Fri Apr 3 10:40:10 1998 Nanbor Wang - - * ace/OS.cpp (invoke): We were using AfxGetThread to determine - whether a thread was created with AfxBeginThread or - _beginthreadex. This seemed to cause some subtle problem with - MSVC 4.2. Since we always cached the Thread_Descriptor in TSS - now, we can just check how a thread was created and use the - appropriate thread exiting method. Thanks to Detlef Becker - for tracing down this obscure - bug. - - * ace/Thread_Manager.{h,i} (flags): Added this new access function - into ACE_Thread_Descriptor to get the creation flags for a - thread. - -Fri Apr 03 10:01:32 1998 Steve Huston - - * ace/ACE.cpp (handle_timed_complete): On AIX, always check a - completed non-blocking connect() because AIX sets only the write - handle from select regardless of whether the connect succeeded - or not. - - * netsvcs/clients/Naming/Dump_Restore/Dump_Restore.cpp: Removed - the #include - this is taken care of via ace/OS.h. - Having the #include in Dump_Restore.cpp caused some very weird - compile errors on DG/UX. - - * netsvcs/lib/Server_Logging_Handler.cpp: Fixed template instantiations - for Base_Optimizer, non-static logging cases. - -Fri Apr 03 09:16:24 1998 David L. Levine - - * ace/OS.cpp (ACE_TSS_Info::key_in_use): return true if - thread_count_ > 0, not if it is != -1. Thanks to Chris - Lahey for finding and reporting this. - - * ace/OS.i (thr_yield): on VxWorks, changed argument of - ::taskDelay () from 0 to 1. With an argument of 0, - ::taskDelay () doesn't appear to yield the current thread. - - * tests/run_tests.vxworks: Reactor_Notify_Test is OK on - VxWorks now. - - * ace/OS.h,config-sunos5.5-sunc++-4.x.h: added ACE_CAST_CONST, - so that we can work around broken cast constness requirements - with Sun CC 4.2. It requires, for example, that a reinterpret - cast to a local pointer variable in a const member function be - const. Wrong. - - * ace/Basic_Types.i (operator/ and %): fixed comments: former - instead of latter. - -Thu Apr 02 16:23:12 1998 Irfan Pyarali - - * ace/WFMO_Reactor.i (dump): Also changed the method from HANDLE - to ACE_HANDLE. - -Thu Apr 2 15:36:20 1998 Douglas C. Schmidt - - * ace: Added - - #define ACE_HAS_STL_QUEUE_CONFLICT - - to the config files which had ACE_HAS_STL_MAP_CONFLICT defined, - i.e., - config-sunos5.5-g++.h - config-sunos5.5-sunc++-4.x.h - - Thanks to Russ Noseworthy for - reporting this. - -Thu Apr 2 15:14:35 1998 Sumedh Mungee - - * ace/WFMO_Reactor.h (dump): Renamed HANDLE to ACE_HANDLE. - -Thu Apr 02 14:23:11 1998 David L. Levine - - * tests/Reactor_Notify_Test.cpp (Supplier_Task::handle_output): - added a thr_yield () so that the Supplier_Task always gets a - chance to run. - - * tests/run_tests.sh: Reactor_Notify_Test is OK on Chorus now. - -Wed Apr 01 18:59:42 1998 Irfan Pyarali - - * ace/WFMO_Reactor.cpp (dump): Added dump() methods. - - * ace/Msg_WFMO_Reactor.cpp (wait_for_multiple_events): Reverted - Nanbor's change. The flag is properly set in - ACE_Msg_WFMO_Reactor::alertable_handle_events(). - -Wed Apr 1 15:40:01 1998 Douglas C. Schmidt - - * ace: Made the WMFO_Reactor and Select_Reactor's dump() methods - virtual to underscore the fact that the Reactor_Impl's new - dump() method is also virtual. - - * ace/OS.h: Changed ACE_HAS_STL_MAP_CONFLICT to - ACE_HAS_STL_QUEUE_CONFLICT for the appropriate cases in ACE. - Thanks to Russ Noseworthy for - reporting this. - - * ace/CORBA_Handler.cpp (ACE_CORBA_Handler): The reference_count_ - data member wasn't being initialized correctly. Thanks to - Mahesh Chandwani for reporting this. - - * ace: Renamed config-sunos5.5-sunc++-4.x-orbix.h to - config-sunos5.x-sunc++-4.x-orbix.h since this config file works - with SunOS 5.5 and 5.6. Thanks to Mahesh Chandwani - for reporting this. - -Wed Apr 01 16:28:30 1998 David L. Levine - - * ace/Reactor.{h,cpp},Reactor_Impl.h (dump): added dump () - method, which calls the (existing) dump () in the reactor - implementation. - - * ace/High_Res_Timer.* (hrtime_to_tv): fixed conversion of - ACE_hrtime_t to ACE_Time_Value to be compatible with - ACE_U_LongLong. - -Wed Apr 01 09:32:27 1998 Nanbor Wang - - * ace/Msg_WFMO_Reactor.cpp (wait_for_multiple_events): Should not - wait for all objects in this function. - -Tue Mar 31 15:27:25 1998 Steve Huston - - * apps/JAWS/server/JAWS_Pipeline_Handler.cpp: Defined 'status' in - the put() function. - - * ace/config-dgux-4.x-ghs.h: Removed settings for ACE_SIZEOF_LONG_LONG - since the compiler doesn't really support a long long that ACE - is looking for (64-bit). Use the ACE-supplied ACE_ULongLong type. - -Tue Mar 31 10:46:23 1998 Nanbor Wang - - * ace/Msg_WFMO_Reactor.cpp: Changed to use - MsgWaitForMultipleObjects if we are not under NT. Also in - MsgWaitForMultipleObjectsEx, we should use NT defined flags - instead of the boolean "alertable" directly. - -Tue Mar 31 07:22:09 1998 David L. Levine - - * ace/OS.i (cond_timedwait): restored ACE_HAS_DCE_DRAFT4_THREADS - behavior to use absolute time. Special-case only on LynxOS, - which requires a relative time. Thanks to Steve Coy - for reporting this on HP-UX. - - * tests/Thread_Manager_Test.cpp (worker): cache the thread's - Signal_Catcher on entry. That way, we don't have to - dereference it in the worker's loop. It seems that a worker - thread can continue to run after main exits (and cleans up - TSS). That shouldn't happen, but it looks like it does on - Linux, LynxOS, and Digital Unix. Thanks to James CE Johnson - for verifying that the fix works on Linux/ - Intel and DU 4.0. - - * examples/Threads/task_five.cpp (main): wrapped return statement - at end with ACE_NOTREACHED. This will prevent compiler warnings - from Green Hills and DEC CXX, and maybe SGI cc. - -Fri Mar 27 23:04:08 1998 David L. Levine - - * ace/config-linux-common.h: added ACE_DEFAULT_MAX_SOCKET_BUFSIZ - 65535, because some Linux 2.1.x kernels fail setsockopts if - bigger than that. Thanks to Ravi Nagabhyru - for reporting that. Also changed hard-code ACE_PAGESIZE to - ACE_HAS_GETPAGESIZE, even though getpagesize () doesn't get - used. ACE_OS::getpagesize () uses sysconf on Linux. - - * performance-tests/UDP/udp_test.cpp (main): getopt.optarg instead - of optarg, for -f option. - - * ace/IPC_SAP.cpp (enable,disable): removed the ACE_NOTREACHED - wrappers around the return statements. Seems that some versions - of Green Hills complain about an unreachable statement, but - we'll live with it. This change is only visible with SGI, - DEC CXX, and Green Hills. - - * include/makeinclude/platform_vxworks5.x_ghs.GNU: added missing - close paren after ppc conditional. Thanks to Brian Mendel for - reporting this. - -Fri Mar 27 16:47:26 1998 Steve Huston - - * tests/tests.mdp: Made settings for Env_Value_Test consistent with - other tests, so that run_tests.bat can find it. - - * netsvcs/servers/servers4.mdp: Added ..\lib to Include directories - when building in Release mode. - -Fri Mar 27 13:55:13 1998 Nanbor Wang - - * ace/High_Res_Timer.i (gettime): ACE_OS::gettimeofday doesn't - take any argument. - -Fri Mar 27 09:50:52 1998 Steve Huston - - * ace/Strategies_T.cpp: Added #include "ace/Service_Repository.h" for - compile on HP. Thanks to Steve Coy for this. - -Fri Mar 27 09:21:21 1998 David L. Levine - - * tests/test_config.h: with Green Hills on VxWorks, rename - main to ace_main for compatibility with run_tests.vxworks. - - * ace/OS.{h,i},High_Res_Timer.* (gethrtime): added an optional - argument to allow specifying start/increment/stop to a timer. - It is currently only used on Chorus. On Chorus, using - the default ACE_HRTIMER_GETTIME will use clock_gettime () - instead of sysBench (). sysBench () disables interrupts, - so it must be used with care. - -Thu Mar 26 21:18:57 1998 David L. Levine - - * ace/Basic_Types.h,config-g++-common.h,config-freebsd*.h, - config-netbsd.h: moved setting of ACE_SIZEOF_LONG_DOUBLE to 12 - from Basic_Types.h to config-g++-common.h and the FreeBSD/NetBSD - config files. - -Thu Mar 26 20:53:30 1998 Nanbor Wang - - * ace/Containers.{h,i,cpp}: Changed the template parameter name - to to avoid namespace polution. Thank to John - Mulhern <9107@MN3.LAWSON.lawson.com> for suggestion this. - -Thu Mar 26 17:23:38 1998 Douglas C. Schmidt - - * ACE version 4.4.36, released Thu Mar 26 17:23:38 1998. - -Thu Mar 26 12:54:57 1998 David L. Levine - - * ace/IPC_SAP.cpp (enable,disable): wrapped return statement - at end with ACE_NOTREACHED. - - * include/makeinclude/platform_vxworks5.x_ghs.GNU: added support - for x86 targets. - - * ace/Basic_Types.h: sizeof (long double) is 8 on ghs/VxWorks/i386, - not 12. - -Wed Mar 25 10:10:04 1998 David L. Levine - - * include/makeinclude/platform_{chorus,vxworks5.x}_ghs.GNU: - change OFLAGS to OCFLAGS. - - * include/makeinclude/platform_chorus_ghs.GNU: if debug is enabled, - link with crth_d.s.o instead of crth.s.o. - - * ace/config-g++common.h: don't #define - ACE_HAS_TEMPLATE_SPECIALIZATION with egcs 2.91. Thanks to - Sudish Joseph and - Loren Rittle for reporting this - apparent bug with egcs 2.91. (egcs 2.90 builds ACE cleanly - with ACE_HAS_TEMPLATE_SPECIALIZATION.) - - * include/makeinclude/platform_vxworks5.x_g++.GNU: add VxWorks - host bin directory to PATH if its not already there. - -Tue Mar 24 19:48:44 1998 Irfan Pyarali - - * ace/Proactor.cpp (timeout): Changed comparison from || to - &&. Thanks to Jason Katz for reporting - this. - -Tue Mar 24 18:14:18 1998 Steve Huston - - * ace/Env_Value_T.h: added #include "ace/OS.h" to get the definition - for ACE_static_cast - AIX xlC needs it for auto template generation. - -Tue Mar 24 09:00:36 1998 Carlos O'Ryan - - * bin/auto_compile: - Missing newline after the "DISABLED" message. - -Tue Mar 24 07:38:44 1998 David L. Levine - - * ace/config-sunos5.5-g++.h: replaced ACE_PAGE_SIZE with - ACE_HAS_GETPAGESIZE, and added ACE_HAS_STL_MAP_CONFLICT. - Thanks to Loren Rittle for reporting - these. - -Mon Mar 23 12:06:30 1998 David L. Levine - - * performance_tests/UDP/udp_test.cpp: made use of the Reactor - optional. With this change, the performance is comparable - to the original C version. - - * ace/OS.{h,i} (wslen,wscpy): added these, and WChar typedef, - for TAO. - - * include/makeinclude/platform_chorus_ghs.GNU: moved directories - to /project/doc/mvme/. - - * ace/config-vxworks5.x.h: protected #define of ACE_MAIN so that - it can be #defined on the command line. - -Mon Mar 23 11:38:43 1998 Nanbor Wang - - * ace/OS.h (MAXPATHLEN): Guard the MAXPATHLEN definition with - #ifndef in case if has already been defined. Thanks to "Patrick - J. McNerthney" for reporting this. - -Mon Mar 23 03:18:50 1998 Douglas C. Schmidt - - * ACE version 4.4.35, released Mon Mar 23 03:18:50 1998. - -Mon Mar 23 00:03:37 1998 Irfan Pyarali - - * examples/Reactor/ReactorEx/test_abandoned.cpp: Tests the - WFMO_Reactor's ability to handle abandoned mutexes. - - * examples/Reactor/ReactorEx/test_apc.cpp: Tests the - WFMO_Reactor's ability to handle regular APC notifications. - -Sun Mar 22 23:47:00 1998 Irfan Pyarali - - * ace/WFMO_Reactor.cpp: Added code to the Reactor to make it more - resilient when the wait() function returns WAIT_IO_COMPLETION - and WAIT_ABANDONED. - - ok_to_wait: Keep waiting if wait() returns WAIT_IO_COMPLETION. - - dispatch: Return if wait() returns - WAIT_IO_COMPLETION. - - dispatch_handles: Added code to correctly handle WAIT_ABANDONED - and to correctly figure out the index of the handler to be - dispatched. - - Thanks to Beskrovny Evgeny (evgeny_beskrovny@icomverse.com) of - Comverse Network Systems for pointing out the problem with - WAIT_IO_COMPLETION. - - * ace/Reactor.cpp (run_alertable_event_loop): Added new function - that runs the Reactor using alertable_handle_events() instead of - handle_events(). - -Sat Mar 21 19:58:42 1998 Nanbor Wang - - * ace/OS.i (flock_destroy): lock->lockname_ should be cast to - LPTSTR instead of char*. Thanks to Goran Lowkrantz - for reporting this. - - * examples/Threads/task_five.cpp: Allow users to set thread stack - size from command lines. If a user doesn't give one, it will be - set to 8k on non-Windows platforms. - -Fri Mar 20 22:07:15 1998 Nanbor Wang - - * ace/ACE_Library.{mak,mdp}: Added Msg_WFMO_Reactor. - - * ace/Asynch_IO.cpp (cancel): Added version check because MSVC 4.2 - doesn't support CancelIo. - -Fri Mar 20 21:46:16 1998 Douglas C. Schmidt - - * ACE version 4.4.34, released Fri Mar 20 21:46:16 1998. - -Fri Mar 20 20:53:27 1998 Nanbor Wang - - * ace/Parse_Node.cpp: Fixed typos. - -Fri Mar 20 14:18:53 1998 Douglas C. Schmidt - - * performance-tests/UDP/udp_test.cpp: Completed the ACE'ification - of this test. - -Fri Mar 20 09:31:22 1998 David L. Levine - - * ace/OS.h: with ACE_LACKS_WCHAR_T, changed wchar_t typedef - from long to ACE_UINT32 to ensure that it is 4 bytes on - any platform. - - * performance-tests/UDP/udp_test.cpp: added this test, which - provides UDP performance statistics. Thanks to Fred Kuhns - for contributing the test. - -Thu Mar 19 10:15:27 1998 Steve Huston - - * ace/OS.i: Changed the dynamic library load/unload code so that - on HP-UX, g++ does the same thing as aC++ (not like HP C++), using - and shl_(un)load. Thanks to Kirill Rybaltchenko - for this change. - -Thu Mar 19 10:13:35 1998 David L. Levine - - * performance-tests/Misc/preempt.cpp: 1) Added -f option to fork - instead of spawning new threads. 2) Added -l option for - specifying number of iterations of low priority thread/process. - 3) On Solaris, print LWP ID. - -Thu Mar 19 02:47:42 1998 Nanbor Wang - - * ace/ace_dll.dsp: Link against user32.lib for all configurations - for we now use Msg_WFMO and related APIs in ACE. (We should do - the same to ace_lib.dsp.) - - * ace/config-WinCE.h: Added dummy definition of stdin and stdout. - They don't have any real effect. - - * ace/ACE.{h,cpp} (ldopen,ldfind): Made these functions visible - under CE. Modified them to work under CE. - - * ace/OS.cpp: Added scope name to day_of_week_name and - month_name. They are used only on CE. - - * ace/OS.{h,i}: Added some dummy C methods for CE. Yacc and Lex - generated codes use these functions, although we don't really - use them in ACE. - - * ace/OS.i (exit): Added implementation of ACE_OS::exit under CE. Since - there's no ExitProcess available, I use TerminateProcess, which - is not exactly the same as using ExitProcess but that's the - closest thing I can think of. - (open): Made the char version unsupported under CE. - (fread,fwrite,...): Added dummy C methods definition for CE. - - * ace/Parse_Node.cpp: Regular CE stuff. There's a boundary - of char/wchar functions somewhere in this file. Most Svc_Conf - stuff uses char functions but the information gets converted to - wchar later. - - * ace/Service_Config.{h,i}: Added char version function for - Service_Type under CE. Service_Type (and its subclasses) are - the boundary of char/wchar functions. - - * ace/Service_Object.{h,i}: Added the chname method which always - returns char value of a Service_Object under all platforms. - - * ace/Svc_Conf.y: - * ace/Svc_Conf_y.cpp: - * ace/Object_Manager.{cpp}: Regular CE stuff. - - * ace/Svc_Conf_l.cpp: Regular CE stuff. Haven't figure out a way - to modify this from Svc_Conf.l yet. - - * ace/Service_Config.cpp - * ace/Object_Manager.{cpp}: Ifdef'ed inclusion of Naming Context - related header files out. Naming context uses Registry which - uses iostream and STL, both are not available on CE (yet?). - - * ace/WFMO_Reactor.{h,cpp}: - * ace/Proactor.{h,i,cpp}: - * ace/Asynch_IO.{h,cpp}: Ifdef'ed the body so they are not visible - under CE. CE doesn't have asynchronous IO. - -Wed Mar 18 21:30:39 1998 Douglas C. Schmidt - - * ACE version 4.4.33, released Wed Mar 18 21:30:39 1998. - -Wed Mar 18 16:36:17 1998 Douglas C. Schmidt - - * Makefile (releaseall): There is no more TAO.tar.gz. There are - now two tar files, ACE.tar.gz and ACE+TAO.tar.gz. - ACE+TAO.tar.gz contains ALL of ACE. In particular, it will - always have the same version number and same ACE contents as - ACE.tar.gz. The intent here is that people who just want to use - ACE will use ACE.tar.gz and people who want to use ACE and TAO - will use ACE+TAO.tar.gz. Thanks to David Levine and Irfan for - helping with this. - -Wed Mar 18 15:50:30 1998 Nanbor Wang - - * ace/Log_Msg.cpp (ACE_Log_Msg): Added codes to grab - ACE_Log_Msg_Manager's lock while updating the instance_count_. - There was a race condition without the change. Thanks to Detlef - Becker's thread creation stress - test to reveal the bug. - -Tue Mar 17 17:20:00 1998 Nanbor Wang - - * examples/Threads/test.dsw: - * examples/Threads/task_five.cpp: - * examples/Threads/task_five.dsp: - * examples/Threads/Makefile: Added a new ACE_Task testing - program. Thanks to Detlef Becker - for providing the source. - -Wed Mar 18 11:00:11 1998 Alexander Babu Arulanthu - - * ace/Hash_Map_Manager.cpp (map): This method has been added to - the ACE_Hash_Map_Iterator_Base class. - -Wed Mar 18 09:25:30 1998 Chris Gill - - * ace/ace.dsw: added user32.lib to link for dynamic library on NT - for all builds. - -Wed Mar 18 09:22:13 1998 David L. Levine - - * ace/Containers.cpp,Hash_Map_Manager.cpp,Map_Manager.cpp - (operator *): initialize retv to 0 to avoid warning about - using it before setting its value. - - * tests/Thread_Mutex_Test.cpp (test): added no-op statement to - suppress GHS warning about unused local variable "mutex". - - * tests/Priority_Buffer_Test.cpp (consumer): added no-op statement - to suppress GHS warning about unused local variable "cur_priority". - - * ace/README: removed ACE_HAS_BOOL. It was unused. - - * performance-tests/Misc/basic_func.{h,cpp},basic_perf.cpp: - With MSVC 5.0, do something in the empty iteration because - otherwise it gets completely optimized away. Thanks to - Alexander Ovsiankin for providing - this fix. - -Tue Mar 17 23:53:56 1998 Douglas C. Schmidt - - * examples/Threads/task_five.cpp (main): Reformatted Detlef's new - torture test so that it conforms to ACE programming conventions. - -Tue Mar 17 23:22:20 1998 Irfan Pyarali - - * ace/Reactor.cpp (ACE_Reactor): If - ACE_USE_MSG_WFMO_REACTOR_FOR_REACTOR_IMPL is defined, use - ACE_Msg_WFMO_Reactor for ACE_Reactor::instance(). - - * examples/Reactor/ReactorEx/test_window_messages.cpp: Tests - Msg_WFMO_Reactor's ability to handle regular events and window - messages. - -Tue Mar 17 21:41:57 1998 David L. Levine - - * examples/Threads/task_five.cpp (svc): use ACE_OS::sleepq - instead of ::Sleep. (main): declare "ii" outside of the - first loop because it is used in other loops. - -Tue Mar 17 16:02:26 1998 Irfan Pyarali - - * ace/WFMO_Reactor: Changes were made to WFMO_Reactor to make it - easier to extend it to handle window messages: - - - dispatch_handler() checks if there are window messages that - need to be dispatched if the matches . - If there are, they are dispatched by calling - dispatch_window_messages(). - - - dispatch_window_messages() is a noop for WFMO_Reactor. - - - Checking the return values from Wait*() functions was changed - as (WAIT_OBJECT_0 + nCount) is now a valid index. - - - Checking for remaining handles was abstracted into - poll_remaining_handles(). - - - Expiring of timer was abstracted out into expire_timers(). - Only the owner thread expires the timers. - - - calculate_timeout() was removed from - wait_for_multiple_events(). - - * ace/Msg_WFMO_Reactor: A new Reactor that specializes the - WFMO_Reactor. WFMO_Reactor uses WaitForMultipleObjects while - Msg_WFMO_Reactor uses MsgWaitForMultipleObjects. This allows - the Msg_WFMO_Reactor to react to Windows and COM/DCOM messages - in addition to the regular WFMO_Reactor events. - - Thanks to Beskrovny Evgeny (evgeny_beskrovny@icomverse.com) of - Comverse Network Systems for contributing this to ACE. - -Tue Mar 17 13:15:11 1998 Douglas C. Schmidt - - * ace/Future.cpp: Added missing ACE_MT macros so that we now - compile correctly if we don't have threads. Thanks to Laura - Paterno for reporting this. - -Tue Mar 17 15:13:17 1998 David L. Levine - - * ace/High_Res_Timer.cpp (dump): fleshed out the implementation. - - * ace/Profile_Timer.{h,cpp} (dump): implemented for platforms - w/o ACE_HAS_PRUSAGE_T and ACE_HAS_GETRUSAGE. - - * ace/OS.i (gethrtime): with ACE_HAS_CLOCK_GETTIME, carefully - construct return value to avoid arithmetic overflow if - ACE_LACKS_LONGLONG_T. - -Mon Mar 16 22:18:07 1998 Douglas C. Schmidt - - * ace/IPC_SAP.cpp: Moved return values outside of the #ifdefs to - quiet warning messages with KAI C++. Thanks to Laura Paterno - for reporting this. - -Tue Mar 17 00:04:53 1998 Nanbor Wang - - * ace/Svc_Conf.y: - * ace/Svc_Conf_y.cpp: Applied "Regular CE Tricks [TM]". - -Mon Mar 16 23:34:39 1998 Nanbor Wang - - * ace/README: - * ace/config-WinCE.h: Added ACE_LACKS_STRRCHR. - - * ace/OS.i: Added implementation of ACE_OS::strrchr () when - platforms don't provide one. - -Mon Mar 16 16:08:45 1998 David L. Levine - - * ace/High_Res_Timer.cpp: set global_scale_factor_ to 1000 with - ACE_HAS_CLOCK_GETTIME, because clock_gettime has nanosecond - resolution, and with PSOS. - - * ace/Profile_Timer.{h,cpp},tests/Handle_Set_Test.cpp: use units - of microseconds instead of seconds if ACE_LACKS_FLOATING_POINT. - - * ace/OS.i (hostname): on Chorus, try the HOST environment variable - if ::gethostname () returns an empty string. - -Mon Mar 16 13:04:58 1998 Seth Benjamin Widoff - - * ace/OS.h: - Extended the ACE_HAS_STL_MAP_CONFLICT to include 'queue' as well - as 'map.' 'queue' is defined in sys/stream.h, which is included in - OS.h by netinet/in.h and sys/timod.h. - -Mon Mar 16 00:22:40 1998 Nanbor Wang - - * CE-status: Updated CE port status. - - * ace/config-WinCE.h: Added macro definitions for EOF and BUFSIZ. - - * ace/OS.{h,i} (ace_isspace): Added both char and wchar version - functions. Notice that this can't be called isspace because - most compilers implement isspace as a macro. - (dlerror,dlsym): Added wchar version of these functions under CE. - - * ace/OS.cpp (fork_exec): Modified parameters passed to - CreateProcess under CE. - - * ace/ARGV.{h,i,cpp}: Unicodize this class under CE. Notice that - under CE, you won't be able to use environment variable - substitution since there's no environment variable at all. - - * ace/Reactor.cpp: Don't include Service_Config.h and - WFMO_Reactor.h under CE for now. Prevent Reactor from - reconfigure the service configurator. - - * ace/Task.cpp: Don't include Service_Config.h under CE for now. - Prevent Task_Base from reconfigure the service configurator. - - * ace/SString.cpp: Don't include Service_Config.h under CE for - now. - - * ace/Svc_Conf.h: - * ace/Shared_Object.{h,cpp}: - * ace/Service_Type.{h,i,cpp}: - * ace/Service_Repository.{h,cpp}: - * ace/Service_Object.{h,i,cpp}: - * ace/Service_Manager.{h,cpp}: - * ace/Service_Config.{h,i,cpp}: Unicodize service configurator - related classes. I still need to find a point which breaks the - usage of char functions that flex and yacc use and wchar - functions that most CE functions use. - - * ace/Get_Opt.{h,cpp}: - * ace/Local_Token.{h,i,cpp}: - * ace/Map_Manager.cpp: - * ace/Message_Queue.cpp: - * ace/Module.{h,i,cpp}: - * ace/Parse_Node.cpp: - * ace/Pipe.cpp: - * ace/Stream.{h,cpp}: - * ace/Stream_Module.{h,cpp}: - * ace/Token_Manager.{h,cpp}: - * ace/Activation_Queue.cpp: Unicodize classes. Regular CE stuff. - -Sat Mar 14 06:43:32 1998 David L. Levine - - * ace/Basic_Types.h,config-win32-common.h,config-irix*.h: - moved WIN32 and SGI-specific code out of Basic_Types.h and - into their respective config files. - - * ace/Object_Manager.h: changed ACE_HAS_NON_STATIC_OBJECT_MANAGER - to ACE_HAS_NONSTATIC_OBJECT_MANAGER in comments. Thanks to - Kirill Rybaltchenko for reporting - this. - - * include/makeinclude/platform_chorus_ghs.GNU: set PATH, and - remove /tmp/gh_*.[os] files that GreenHills leaves. - - * ace/INET_ADDR.cpp (get_host_name): on Chorus, save errno in - error so that it gets propagated back to the caller. - -Sat Mar 14 00:13:22 1998 Douglas C. Schmidt - - * ace/Task.h (ACE_Task_Base): Give a default value of 0 for the - Thread Manager so we can use this as a base class. - - * tests/Future_Test.cpp: Since the Scheduler provides its own - activation queue it doesn't make sense to inherit from ACE_Task - (which provides its own queue) but instead ACE_Task_Base - (which doesn't define its own queue). Thanks to Loren Rittle - for reporting this. - - * examples/Threads/future[12].cpp: Since the Scheduler provides - its own activation queue it doesn't make sense to inherit from - ACE_Task (which provides its own queue) but instead - ACE_Task_Base (which doesn't define its own queue). Thanks to - Loren Rittle for reporting this. - - * examples/Threads/future[12].cpp: Removed the explicit call to - scheduler_->close() to avoid closing the scheduler down twice. - Thanks to Loren Rittle for reporting this. - -Fri Mar 13 23:41:44 1998 Nanbor Wang - - * ace/Process.cpp (ACE_Process_Options): Moved column out of - ifdef'ed area. - -Fri Mar 13 21:17:51 1998 David L. Levine - - * ace/Process.cpp (ACE_Process_Options): reordered initializers - to match declaration order. - -Fri Mar 13 17:30:16 1998 Nanbor Wang - - * ace/Process.{h,i,cpp}: As CE's CreateProcess is basically - broken, you can only start a new process using ACE_Process. You - cannot set any of environment, process attributes, thread - attributes, current directory, stratup info, and security - attributes. I have modified these files so that most attribute - access functions just do nothing. Some of "do nothing" - functions were defined as ACE_INLINE on CE. - - * ace/Memory_Pool.cpp: Regular CE stuff. - -Fri Mar 13 17:42:17 1998 Irfan Pyarali - - * ace/WFMO_Reactor.cpp (handle_signal): If there are still - notification in the queue, we need to wake up again. - -Fri Mar 13 09:09:08 1998 David L. Levine - - * ace/Profile_Timer.*,config-chorus.GNU,README, - tests/Handle_Set_Test.cpp (test_performance): added - ACE_LACKS_FLOATING_POINT support. - - * include/makeinclude/platform_chorus_ghs.GNU: removed - -X445 from CFLAGS. I don't know what it does. - -Fri Mar 13 01:10:36 1998 Irfan Pyarali - - * ace/WFMO_Reactor: The following changes were made to make the - registration and removal of event_handlers from WFMO_Reactor - more robust. Thanks to Jonathan Biggar for - helping out. - - - ACE_WFMO_Reactor_Handler_Repository::Common_Info now contains - the delete_entry_ and close_masks_ fields as these were now - common to all three structures. - - - handle_additions() and handle_deletions() were changed to - make_changes_in_current_infos(), - make_changes_in_suspension_infos(), and - make_changes_in_to_be_added_infos() - - - Correct range for suspend_handlers() is 0 to max_handlep1_ - rather than (max_handlep1_ - 1) - - - suspend_handlers(), - resume_handlers(), - add_network_events_i(), - unbind_i(), - suspend_handler_i(), - resume_handler_i(), - unbind_all(), - - now go through the to_be_add_info_ array when making changes. - - * examples/Reactor/ReactorEx/test_prerun_state_changes.cpp: New - test added to check the Reactor's ability to handle state - changes before getting a chance to run. - - * examples/Reactor/ReactorEx/test_talker.cpp (main): Remove the - Procator from the Reactor so that the Proactor is not called - after it has been destroyed. - -Thu Mar 12 19:36:43 1998 Douglas C. Schmidt - - * ACE-INSTALL.html: Tidied up a bunch of things in this file. - Also, created a new $ACE_ROOT/os-patches/ directory and moved - the patches for Linux and LynxOS into this in order to - consolidate the patches into one location. - - * ace/WFMO_Reactor.cpp (upcall): Cleaned up a bunch of code to (1) - avoid a nasty "dangling else" bug and (2) simplify a bunch of - if/if statements. Thanks to Jonathan Biggar - for pointing this out. - -Thu Mar 12 18:21:15 1998 James C Hu - - * ace/config-linux-common.h: Incorporated changes that were - suggested by Robert Hanzlik to get ACE to - compile on Linux using glibc 2.1 and libg++/gcc 2.8. - -Thu Mar 12 17:25:28 1998 James C Hu - - * ACE-INSTALL.html: Added a table to Supported Platforms and - Compilers. - -Thu Mar 12 16:28:32 1998 Nanbor Wang - - * Apply regular string manipulation for CE to following files: - ACE.cpp ARGV.cpp Acceptor.cpp Activation_Queue.cpp - Asynch_Acceptor.cpp Asynch_IO.cpp CORBA_Handler.cpp - Connector.cpp Containers.cpp DEV_Addr.cpp Dynamic_Service.cpp - FIFO.cpp FIFO_Recv.cpp FIFO_Recv_Msg.cpp FIFO_Send.cpp - FIFO_Send_Msg.cpp FILE_Addr.cpp FILE_Connector.cpp Filecache.cpp - Future.cpp Get_Opt.cpp Hash_Map_Manager.cpp LSOCK.cpp - LSOCK_CODgram.cpp LSOCK_Connector.cpp LSOCK_Dgram.cpp - Local_Name_Space_T.cpp Local_Tokens.cpp Local_Tokens.i - Malloc_T.cpp Map_Manager.cpp Mem_Map.cpp Memory_Pool.cpp - Message_Queue.cpp Module.cpp Name_Proxy.cpp - Name_Request_Reply.cpp Naming_Context.cpp Obstack.cpp - Parse_Node.cpp Pipe.cpp Priority_Reactor.cpp Proactor.cpp - Process_Manager.cpp Read_Buffer.cpp Registry_Name_Space.cpp - Remote_Name_Space.cpp Remote_Tokens.cpp SPIPE_Acceptor.cpp - SV_Semaphore_Complex.cpp SV_Semaphore_Simple.cpp - Select_Reactor.cpp Service_Config.cpp Service_Main.cpp - Service_Manager.cpp Service_Repository.cpp Service_Types.cpp - Singleton.cpp Strategies_T.cpp Stream.cpp Svc_Handler.cpp - TLI.cpp TLI_Acceptor.cpp TLI_Connector.i Task_T.cpp - Time_Request_Reply.cpp Timer_Queue_Adapters.cpp - Token_Collection.cpp Token_Invariants.cpp Token_Manager.cpp - Token_Request_Reply.cpp WFMO_Reactor.cpp WFMO_Reactor.i - XtReactor.cpp. - -Thu Mar 12 15:37:14 1998 David L. Levine - - * ace/Read_Buffer.* (read): null terminate the result buffer. - Also, changed "inline" to "ACE_INLINE" and updated #includes - so that ACE inlining works. - -Thu Mar 12 02:19:53 1998 Irfan Pyarali - - * ace/WFMO_Reactor.cpp (upcall): In the Select_Reactor, when it - upcalls to an event_handler which returns a -1, the - Select_Reactor only clears the specific mask bit for the - handler. For example, for a call to - Event_Handler::handle_input() which returns -1, the - Select_Reactor clears the READ_MASK bit. - - In the WFMO_Reactor, if any handler returns a -1, then it clears - ALL of the mask bits for the event handler. - - So, fixed WFMO_Reactor so that it works like Select_Reactor in - this regard. - - Thanks to Jonathan Biggar for pointing this - discrepancy out. - - * ace/WFMO_Reactor.cpp (dispatch_handles): The correct range check is - {WAIT_OBJECT_0,WAIT_OBJECT_0 + this->handler_rep_.max_handlep1 () - index} - and not - {WAIT_OBJECT_0,WAIT_OBJECT_0 + this->handler_rep_.max_handlep1 ()} - - Thanks to Evgeny Beskrovny evgeny_beskrovny@icomverse.com for - pointing this out. - -Wed Mar 11 15:20:09 1998 Douglas C. Schmidt - - * ace/OS.i (thr_getspecific): Added comments to the code to - explain the unusual step of saving errno across calls to - TlsGetValue() on Win32. Thanks to Tim Harrison for clarifying - this. - -Wed Mar 11 00:39:29 1998 Nanbor Wang - - * CE-status: A temporary file to trace the progress of the CE - port. - - * ace/ace_ce_dll.dsp: Added more .cpp files. - - * ace/High_Res_Timer.{h,cpp}: Undefined functions print_ave and - print_total. These two function use STDOUT which is not - supported on CE. We should probably modify the functions so - they write results to Log_Msg. - (get_register_scale_factor): This function always returns 1 on - CE to prevent the use of High_Res_Timer. - (get_env_global_scale_factor): Always returns -1 on CE because - environment variables are not supported. - - * ace/Thread_Manager.cpp (spawn_i): WinCE doesn't support - DuplicateHandle, therefore the best we can do now is just pass - back the handle to the spawned thread. Notice that you *can't* - close the handle by yourself under CE. Perhaps we shouldn't - even try to pass this info back. ??? - Applied regular CE porting tricks. - - * ace/SOCK_Dgram_Mcast.{h,cpp}: - * ace/SOCK_Dgram_Bcast.{h,cpp}: Changed some function signatures - to use wchar on CE. Applied regular CE porting tricks. - - * ace/IO_SAP.cpp: - * ace/SOCK_CODgram.cpp: - * ace/SOCK_Dgram.cpp: - * ace/Select_Reactor.cpp: - * ace/Timer_{Hash,Heap,List,Queue,Wheel}_T.cpp: Applied regular CE - porting tricks. Erm, I'm running out of tricks. - -Tue Mar 10 20:27:57 1998 Nanbor Wang - - * ace/Reactor.h (reset_event_loop): Made the signature match with - its definition in .cpp file. - -Tue Mar 10 15:07:00 1998 Douglas C. Schmidt - - * ace/Svc_Handler.cpp, - ace/Module.cpp: - Fixed some problems where Svc_Handlers in Modules were being - deleted prematurely. Thanks to Steve Coy - for reporting this. - - * ace/Reactor.h (ACE_Reactor): Added a "reset_event_loop" method - so that it's possible to reset the loop again once the - end_event_loop() method is called. Thanks to Eric Hopper - for reporting this. - - * ace/IOStream_T.cpp (ACE_IOStream): Moved some code to work - around some bugs with MSVC++ 5.0. Thanks to James CE Johnson - for reporting this. - -Tue Mar 10 15:57:54 1998 Nanbor Wang - - * ace/Handle_Set.cpp (dump): Cast mask_.fd_count to size_t. - Depend on whether you are using standard C++ library, the type - of fd_count count be size_t or ssize_t. Thanks to Darrell for - discovering this. - -Tue Mar 10 13:22:24 1998 Irfan Pyarali - - * ace/Asynch_IO.cpp (cancel): CancelIo is not supported on Win95. - - * ace/SString.cpp (set): Use ACE_WString::wstrlen(). - -Tue Mar 10 06:59:42 1998 David L. Levine - - * ace/SString.cpp (WString::set): added support for platforms - that don't have wchar_t, or that treat wchar_t and ACE_USHORT16 - as different types. - - * ace/OS.h,Basic_Types.h: moved ACE_USHORT16 typedef from OS.h to - Basic_Types.h. - - * ace/High_Res_Timer.h: fixed comment: timer.start () instead of - timer.stop () (twice). - -Mon Mar 09 22:15:43 1998 Irfan Pyarali - - * ace/SString.cpp (ACE_CString::operator=): Special cases have to - considered carefully so that memory is managed properly. This - is specially true when the ACE_CString::NULL_CString_ is used. - - * ace/SString.h (ACE_CString and ACE_WString): Added set methods - that allows the user to set the strings without having to use - the assignment operator. - -Mon Mar 09 16:11:16 1998 David L. Levine - - * examples/Map_Manager/test_hash_map_manager.cpp: added #include - of ace/SString.h and template instantiations. Replaced gets - with ACE_OS::fgets. - - * examples/Makefile,examples/Map_Manager/Makefile: added - Map_Manager to examples DIRS and added RCS keyword string. - -Mon Mar 9 14:59:20 1998 Carlos O'Ryan - - * include/makeinclude/platform_irix6.x-sgic++.GNU: - Added the definition for MATHLIB. - -Mon Mar 09 01:23:49 1998 Nanbor Wang - - * ace/ace_ce.dsw: - * ace/ace_ce_dll.dsp: New project/workspace files for WinCE. This - is a temporary workspace only and should be merged into ACE mail - Win32 project/workspace when the port is stable enough. - - * ace/config-WinCE.h: Added ACE_LACKS_GETS. - - * ace/Synch.i (get_nesting_level): Defined it as not supported on - CE. CE's CriticalSections don't have RecursionCount defined. - We should be able to simulate this, however. - - * ace/Process.{h,cpp}: - * ace/SString.{h,cpp}: Moved class ACE_Tokenizer from Process.* to - SString.*. Although ACE_Tokenizer is used in - ACE_Process[_Options], it really is a more general utility - class. - (operator<<): Conditionally compile these functions only when we - are not running ACE on CE. - - * ace/OS.i (atoi): Added inline implementation for wchar version. - (gets): Remove condition !defined (ACE_HAS_WINCE). This should - be taken care of by ACE_LACKS_GETS. - - * ace/OS.h (atoi): Added wchar version of this function. - (ASYS_WIDE_STRING): This macro converts char strings to - wchar strings when ACE_HAS_MOSTLY_UNICODE_APIS is defined. - (ASYS_MULTIBYTE_STRING): This macro converts wchar strings back - to char strings *only* when ACE_HAS_MOSTLY_UNICODE_APIS is - defined. - - * ace/INET_Addr.{h,cpp}: Redefined interface signatures on WinCE - using ASYS_* macros. The principle here is to pass wide char - strings in and get char strings out. That's because we will use - mostly wchar strings in CE but most winsock APIs return (or uses - char strings.) Doing so should reduce conversion between them - to minimum. - Converting debug messages with ASYS_TEXT. - - * ace/Log_Msg.cpp (open): - * ace/ACE.cpp (get_ip_interfaces): Only convert the wide character - string to a char string when ACE_HAS_MOSTLY_UNICODE_APIS flag is - not set using the ASYS_MULTIBYTE_STRING macro. - - * ace/SOCK.cpp: - * ace/SOCK_Acceptor.cpp: - * ace/Malloc.cpp: - * ace/Malloc_T.cpp: - * ace/Synch.cpp: - * ace/Message_Block.cpp: - * ace/IPC_SAP.cpp: - * ace/Handle_Set.cpp: - * ace/Addr.cpp: Converting debugging messages to wchar strings for - CE using the ASYS_TEXT macro. - -Sun Mar 08 14:29:30 1998 David L. Levine - - * apps/Gateway/Gateway/Event_Channel.cpp (initiate_acceptors): - changed SUPPLIER_CONNECTOR to SUPPLIER_ACCEPTOR. Thanks - to Dani Flexer for reporting this. - - * ace/OS.i (cond_timedwait): removed "struct" from declaration - of local timespec_t relative_time, because timespec_t can - be a typedef. Thanks to Steve Coy for - reporting this. - - * Makefile: tag from ACE_wrappers, not its parent directory, - to avoid confusing CVS. - -Sat Mar 07 16:46:58 1998 David L. Levine - - * ACE version 4.4.32, released Sat Mar 07 16:46:58 1998. - -Fri Mar 06 08:37:44 1998 David L. Levine - - * bin/ace_ld: made perl4-compatible. Thanks to - Jerry Bickle for reporting this. - - * ace/os.i: (sigwait): removed "::" from before sigwait () call - with ACE_HAS_ONEARG_SIGWAIT, in case it's a macro. Thanks - to Kirill Rybaltchenko for - reporting this. - - * bin/create_ace_build: made perl4-compatible. Thanks to - Carlos for noticing this. - - * include/makeinclude/platform_vxworks5.x_g++.GNU: added - WIN32 host support. Thanks to Paul von Behren - for providing the patches. - - * ACE-INSTALL.html: added information from Paul von Behren - on building on NT hosts for - VxWorks targets. - - * tests/Recursive_Mutex_Test.cpp: 50 iterations instead of 100 - on Chorus. - - * include/makeinclude/platform_chorus_ghs.GNU: added -G to - LDFLAGS. - - * tests/run_tests.sh: added capability for executing the tests - on a remote (Chorus) target. - - * examples/System_V_IPC/Makefile: added clean and realclean targets - for VXWORKS. - - * Makefile: cd .. before tagging. - -Thu Mar 05 12:36:52 1998 Nanbor Wang - - * ace/OS.h (ACE_TRACE): Added a missing right paren. - -Thu Mar 05 10:04:06 1998 David L. Levine - - * include/makeinclude/platform_chorus_ghs.GNU: this works, - though it may not be optimum. - -Thu Mar 05 01:33:08 1998 Nanbor Wang - - * ace/config-WinCE.h: Added more CE stuff. Ostream is now - redefined as FILE on CE. - - * ace/OS.{i,cpp}: - * ace/Synch_T.cpp - * ace/Message_Queue.cpp: - * ace/SOCK_Connector.i: Added ASYS_TEXT to numerous - ACE_DEBUG/ACE_ERROR macros. We must use wide char strings in - CE. - - * ace/ACE.{h,cpp}: Redefined sock_error to return wchar string on - CE. Added ASYS_TEXT to debugging messages. - - * ace/Trace.{h,cpp}: - * ace/Log_Msg.{h,cpp}: Made it UNICODE compatible. - - * ace/Log_Record.cpp: Changed how ostream is used on CE. Although - the code here become some how platform dependent, fortunately, - it can be shielded out from the users thru various macros. - Added ASYS_TEXT. - - * ace/SString.h: Undefined friend relations of ACE_?String with - ostream on CE. CE doesn't support . - - * ace/OS.h: Changed the definition of ASYS_TEXT to use _TEXT. - This macro can be used with other compiler defined macros - (e.g. __FILE__.) Added ASYS_TEXT to adorn parameters of - ACE_TRACE so we don't need to modify our codes to make it - portable to CE. - - * ace/Log_Msg.cpp: Removed macro definition of ACE_WSPRINTF. It - didn't appear to be used anywhere. - -Wed Mar 04 09:32:32 1998 David L. Levine - - * ace/OS.cpp (readv,writev): added static cast of iov_len to int, - to avoid unsigned comparison < 0. - - * ace/Containers.cpp (ACE_Fixed_Set_Iterator::done), - ace/Map_Manager.cpp (ACE_Map_Iterator_Base::done): - removed const from static cast to avoid warnings about - meaningless type qualifier from GreenHills. - - * ace/Basic_Types.i (ACE_U_LongLong): added missing ACE_INLINE's. - - * ace/Svc_Conf.y,Svc_Conf_y.cpp, etc/Svc_Conf_y.cpp.diff - (svc_location): delete svc_initializer after initializing - svc_location. Thanks to Tom Arbuckle - for reporting this. - - * include/makeinclude/platform_linux_lxpthreads.GNU: separated - SOBUILD into compile and link steps because the - Service_Configurator/server/* examples are unable to - use files compiled with -fPIC and just labeled as .so as shared - ELF objects. Thanks to Tom Arbuckle - for reporting this. - - * include/makeinclude/platform_chorus_ghs.GNU: explicitly link - in ioassign.o to resolve _cerr. - - * tests//SOCK_Connector_Test.cpp, - ace/config-{chorus,lynxos,netbsd,psosim-g++,vxworks5.x, - win32-common}.h: - added ACE_LACKS_GETHOSTENT, so that SOCK_Connector_Test doesn't - have to enumerate the platforms that don't have ::gethostent (). - - * tests/Basic_Types_Test.cpp (main): if ACE_LACKS_LONGLONG_T, use - ACE_U_LongLong instead of long long. - -Tue Mar 03 22:15:16 1998 Nanbor Wang - - * ace/Remote_Name_Space.cpp: Replaced a bunch of usages of - ACE_WString::rep (). They were passed to ACE_Name_Request which - creates another copy for itself and nobody ever cleans up these - memories. Thanks to John Mulhern <9107@MN3.LAWSON.lawson.com> - for reporting this. - - * ace/OS.h (THR_DETACHED): Defined this macro so that we can - simulate detached threads on NT (Hi Irfan! ;-). Thanks to Andre - Arpin for prividing the use case of - detached threads. - - * ace/Thread_Manager.cpp (exit): Added detached threads - manipulating codes here. We now can simulate behaviros of UNIX - detached threads on NT (no one cares about their return status.) - -Tue Mar 03 15:05:42 1998 David L. Levine - - * ace/Basic_Types.{h,i} (ACE_U_LongLong::operator *=): updated - with James Hu's implementation. Now it's fast :-) - - * tests/Time_Value_Test.cpp (test_ace_u_longlong): added another - test of operator *=. - -Mon Mar 2 19:21:36 1998 Douglas C. Schmidt - - * ace/OS.h: Changed all uses of "/localname" and "/globalname" to - "localname" and "globalname" to avoid problems on UNIX. Thanks - to John Mulhern <9107@MN3.LAWSON.lawson.com> for reporting this. - - * ace/OS.h: Changed "C:\\temp\\" to "C:\\temp" to avoid some minor - problems on NT. Thanks to John Mulhern - <9107@MN3.LAWSON.lawson.com> for reporting this. - - * netsvcs/lib/Log_Message_Receiver.cpp - (Log_Message_Receiver_Impl): Removed some stray inline keywords. - Thanks to Russ Noseworthy for - reporting this. - - * ace/OS.i (sigwait): Added support for POSIX sigwait(). Thanks - to Russ Noseworthy for reporting - this. - - * ace/Containers.cpp (done): - ace/Map_Manager.cpp (done): Corrected some misplaced "consts" in - the ACE_static_cast macro. Thanks to Russ Noseworthy - for reporting this. - - * include/makeinclude/platform_sunos5_sunc++.GNU (CXX): Commented - out the -pta option since it might not be necessary. If this - breaks code then we'll need to reevaluate this change. Thanks - to Russ Noseworthy for suggesting - this. - -Mon Mar 02 17:06:46 1998 Nanbor Wang - - * ace/Thread_Manager.cpp (exit): Added Win32 thread exit - functionality. When a thread function falls out of scope, this - functions is called by ACE_Thread_Control::exit and it will not - call ACE_OS::thr_exit from here. Under this scenario, the - ACE_Thread_Manager::exit simply falls thru the end. If a user - call this function directly, this function will delete - ACE_Thread_Exit::instance() first, which simulate the cleanup - routine executed when a thread fall out of end by calling - ACE_Thread_Manager::exit recursively. After this is done - (returned from the second call,) this function will then call - ACE_OS::exit, which clean up the TSS objects and then really - exit the thread. Thanks to Gordon Watts for - pointing this out. - - * ace/OS.cpp (thr_exit): Added Win32 thread exit functionality. - ACE_OS::thr_exit now will try to clean up TSS objects by calling - ACE_OS::cleanup_tss. You really should _not_ calling this - function directly. Esp. from the main thread because I don't - know how to tell if you are calling it from main thread thread - or not and thus memory leak might occur. - -Mon Mar 02 09:13:26 1998 David L. Levine - - * ace/config-sunos5.5-sunc++-4.x.h: replaced ACE_PAGE_SIZE with - ACE_HAS_GETPAGESIZE, and added ACE_HAS_STL_MAP_CONFLICT. - Thanks to J. Russell Noseworthy - for these recommendations. - - * ace/config-sunos5.6-sunc++-4.x.h: just #include - config-sunos5.5-sunc++-4.x.h. There's no difference between - the two at this point. - - * include/makeinclude/platform_sunos5_sunc++.GNU: added -R./ and - -mt to LDFLAGS. Added -fast to LDFLAGS if "fast" flag is - enabled. Thanks to J. Russell Noseworthy - for these recommendations. - - * include/makeinclude/platform_sunos5.6_sparc_sunc++.GNU: just - include platform_sunos5_sunc++.GNU. There's no difference between - the two at this point. There is one significant net change to - the 5.6 platform: -s is no longer included in LDFLAGS. - - * ace/config-chorus.h: added ACE_LACKS_ACE_IOSTREAM with ghs, because - its iostream doesn't have separate operators for signed/unsigned - char. - -Sun Mar 1 13:54:02 1998 Nanbor Wang - - * Makefile: Added cvs commands to automatically tag the CVS - repository with version number 'ACE_9_9_99' tag and 'Current' - tag. - -Sun Mar 1 12:26:13 1998 Alexander Babu Arulanthu - - * ace/Hash_Map_Manager.cpp (reset_i): - * ace/Hash_Map_Manager.h: - Added reset () method for the Hash_Map_Iterator. - -Sun Mar 01 10:59:27 1998 Irfan Pyarali - - * ace/Asynch_IO.cpp (cancel): Changed CancelIO to CancelIo. - - * ace/Synch.h (ACE_Lock): Added a virtual destructor to ACE_Lock. - -Sun Mar 01 08:38:00 1998 David L. Levine - - * ace/OS.h: use the new ACE_DEFAULT_SYNCH_TYPE for the default - mutex, etc., type, so that it can be set VxWorks. The ACE default - type on VxWorks is SEM_Q_FIFO, the same as VxWorks' default. - The ACE default can be easily overridden in config.h by - defining ACE_DEFAULT_SYNCH_TYPE. - - * ace/OS.i (sema_init): on VxWorks, use the type argument for the - sema type, instead of hard-coding to SEM_Q_FIFO. - - * ACE-INSTALL.html: updated Linux/alpha "as" patch. - -Sat Feb 28 12:20:57 1998 Douglas C. Schmidt - - * ace/Message_Queue.cpp: Fixed the implementation of - wait_not_{full,empty}_cond() so that they utilize the - ACE_Time_Value it's passed. In addition, revised the - implementation of peek_dequeue_head() so that it uses the new - wait_not_empty_cond() implementation. Thanks to Tom Venturella - for reporting this. - -Fri Feb 27 15:47:15 1998 David L. Levine - - * ACE-INSTALL.html: added very useful information from - Chris Ryan about build ACE with - NT/Tornado for VxWorks. - - * ace/config-chorus.h: use ACE_NEEDS_READV/WRITEV with GHS as well - as with g++. - - * ace/Basic_Types.{h,i} (ACE_U_LongLong): added a bunch of arithmetic - operators for Carlos :-) The operator *= is _very_ slow, until we - come up with the right way to do it. - - * tests/Time_Value_Test.cpp (test_ace_u_longlong): added some tests - of the new operators. - -Fri Feb 27 13:42:09 1998 Douglas C. Schmidt - - * ace/ACE.cpp (recv_n): Removed the MSG_PEEK flag since it didn't - seem to work correctly. - -Fri Feb 27 11:18:28 1998 Chris Cleeland - - * ace/Log_Msg.cpp: Added three new conversion operators: "%{" - calls inc() to increase the trace_depth, "%}" calls dec() to - decrease the trace_depth, and "%$" is used in place of "\n" to - insert a newline followed by appropriate current indentation. - -Thu Feb 26 21:36:27 1998 Douglas C. Schmidt - - * ACE version 4.4.31, released Thu Feb 26 21:36:27 1998. - -Thu Feb 26 16:48:53 1998 Douglas C. Schmidt - - * ace/OS.h: Added new macros for ACE_FILE_STREAM and - ACE_FILE_CONNECTOR to be consistent with the ACE_SOCK_* stuff, - etc. Thanks to Ganesh Pai for reporting - this. - -Thu Feb 26 11:14:21 1998 David L. Levine - - * ace/Parse_Node.cpp (ACE_Location_Node): reordered initializers - to match declaration order. - -Thu Feb 26 02:42:57 1998 Nanbor Wang - - * ace/Service_Config.cpp (load_static_svcs): Removed explicit - constness cast from the allocation function. - -Wed Feb 25 23:08:44 1998 Douglas C. Schmidt - - * tests/MT_Reactor_Timer_Test.cpp: Made this test compile on - platforms that lack threads and also updated the programming - style to be consistent with other parts of ACE. - - * tests/Priority_Task_Test.cpp: Made this test compile on - platforms that lack threads. - - * ace/Svc_Conf.h: Fixed the prototype for - ace_create_service_type() to reflect the elimination of "const - void *". - - * ace/Parse_Node: Eliminated more uses of "const void *" and - changed them to plain ol' "void *". - - * ace/Service_Types.cpp (fini): Changed the "const void *" to be - simply "void *" since it didn't seem to make any sense they way - it was! Thanks to Stephen Coy for - insisting on this... - - * ace/config-sunos5.*.h: Moved the ACE_HAS_REENTRANT_FUNCTIONS - into the section of #defines that should be commented out if - we're not building a multi-threaded library. - - * ace/Service_Config.cpp (open): Tightened up the comparison of - the key with the ACE_DEFAULT_LOGGER_KEY to use string equality - rather than pointer equality. Thanks to Stephen Coy - for reporting this. - -Wed Feb 25 10:50:17 1998 David L. Levine - - * include/makeinclude/platform_osf1_4.0.GNU: added suppression of - "no corresponding delete" warning, until that is fixed in libTAO. - Added -lm to LIBS for MT_Cubit client. - - * include/makeinclude/platform_chorus_ghs.GNU: we can link now. - - * ACE-INSTALL.html: added information on Linux v. 2.0.x - getsockname () bug. - -Tue Feb 24 15:07:50 1998 Nanbor Wang - - * tests/test.{mdp,mak}: Added Env_Value_Test and OrdMultiSet_Test - into the workspace. - - Removed all odbc libraries from all projects. We don't really - need them to run ACE. Thanks to gonzo@ing.puc.cl (Gonzalo - A. Diethelm) for pointing this out. - -Tue Feb 24 07:14:16 1998 Douglas C. Schmidt - - * ace/Asynch_Acceptor.cpp (handle_accept): Update the - event_handler's proactor pointer once it is accepted. Thanks to - Jason Katz for reporting this. - - * apps/Gateway/Gateway/Event.h (class Subscription): Moved the - htonl of total_consumers_ to *after* the loop that uses it! - Thanks to Jorn Jensen for reporting this. - -Tue Feb 24 05:08:31 1998 Nanbor Wang - - * ace/Asynch_Acceptor.i: Filled in some missing keywords. - - * ace/Log_Record.h (ACE_Log_Record): Hacked it to work for CE. - Undefined the ostream version of print (). I'm planning to drop - iostream support on WinCE. (Then, I don't have to write my - own. ;-) - - * ace/ACE.{h,i} (timestamp, format_hexdump): Removed UNICODE_ONLY version. - Changed to use ASYS_TCHAR to differentiate this condition. - - * ace/OS.h (ACE_OS): Undefined shm_{open,unlink} if - ACE_HAS_MOSTLY_UNICODE_APIS. - - * ace/OS.cpp (ctime,ctime_r): Added CE implementation. - - * ace/streams.h: Added /**/ between #include and <..> in several - places. - - * ace/*: Changed ACE_HAS_UNICODE_ONLY to - ACE_HAS_MOSTLY_UNICODE_APIS. - -Mon Feb 23 19:41:53 1998 Douglas C. Schmidt - - * ace/Asynch_Acceptor.i (bytes_to_read): Added an inline accessor - for the bytes_to_read_ field. Thanks to Jason Katz - for suggesting this. - -Mon Feb 23 12:26:06 1998 David L. Levine - - * ace/OS.cpp (sched_params): removed ACE_ADAPT_RETVAL from PTHREADS - ::sched_setscheduler () call, because it returns the old scheduling - policy, not 0, on success. - - * ace/config-osf1-4.0.h: removed ACE_HAS_EXCEPTIONS because that is - enabled by platform_osf1_4.0{,_rcc}.GNU. - - * include/makeinclude/platform_osf1_4.0.GNU: added suppression of - warning 835 because /usr/include/cxx/memory, line 505, triggers - a warning about an unreferenced parameter. - - * include/makeinclude/platform_osf1_4.0{,_rcc}.GNU: added - "exceptions = 1" so that ACE exception handling can be - disabled on the make command line. - -Mon Feb 23 11:27:10 1998 David L. Levine - - * ACE version 4.4.30, released Mon Feb 23 11:27:10 1998. - -Mon Feb 23 11:11:18 1998 Nanbor Wang - - * ace/Process.h: Define ACE_Process_Options::NO_EXEC as 0 on - Win32. It has no effect on NT anyway. - -Sun Feb 22 21:37:43 1998 David L. Levine - - * include/makeinclude/platform_vxworks5.x_g++.GNU: updated - comments to reflect that WIND_BASE and WIND_HOST_TYPE - environment variables must be set. Thanks to Nanbor for - reporting that. Also, set CROSS-COMPILE flag. - - * include/makeinclude/rules.lib.GNU: updated VOBJS so that it - will build the fancy new TAO/orbsvcs hierarchy. - - * include/makeinclude/platform_{chorus*,lynxos,vxworks5.x_g*}.GNU: - set CROSS-COMPILE flag. It's only used by TAO at this point. - - * ace/Svc_Conf_y.cpp: updated based on new Svc_Conf.y. - - * etc/Svc_Conf_y.cpp.diff: regenerated for latest Svc_Conf_y.cpp. - - * ACE-INSTALL.html,include/makeinclude/platform_lynxos.GNU: moved - LynxOS installation info from its platform file to ACE-INSTALL.html. - -Sun Feb 22 21:26:19 1998 James CE Johnson - - * tests/IOStream_Test.cpp (server): break out of while loop if - read from client_handler fails. - -Sun Feb 22 13:06:20 1998 Douglas C. Schmidt - - * ace/Asynch_Acceptor.h (class ACE_Asynch_Acceptor): Made the - accept method virtual so that users can override it and do - things like enforce limits on the maximum number of simultaneous - connections. Thanks to Jason Katz for - suggesting this. - -Sun Feb 22 13:22:30 1998 Nanbor Wang - - * ace/OS.h: Moved definition of ACE_MAP_{PRIVATE,SHARED,FIXED} - down to where every platform can see. - -Sun Feb 22 13:06:20 1998 Douglas C. Schmidt - - * ace/Svc_Conf.y: Fixed a couple of places where we were - potentially dereferencing NULL pointers when services failed to - load. Thanks to Eric C. Newton for reporting - this. - -Sat Feb 21 12:44:51 1998 David L. Levine - - * ACE version 4.4.29, released Sat Feb 21 12:44:51 1998. - -Sat Feb 21 11:53:45 1998 Nanbor Wang - - * ace/Hash_Map_Manager.cpp (close_i): Remember to reset the - current size to 0 after deallocating all entries in the map. - Thanks to Alex for noticing this. - -Fri Feb 20 06:36:04 1998 David L. Levine - - * ace/Timer_Queue_Adapters (activate): added thread_names argument. - - * ace/OS.{h,i} (cond_timedwait): fixed on LynxOS (DCE_DRAFT4_THREADS), - where pthread_cond_timedwait () expects a relative instead of - absolute time. - - * tests/Buffer_Stream_Test (Consumer::svc): removed thr_yield for - LynxOS, now that ACE_OS::cond_timedwait () is fixed. - - * ace/OS.i (mmap): use ACE_DEFAULT_FILE_PERMS on LynxOS for the - shared memory object. - - * ace/Mem_Map.* (unmap): on LynxOS, write back the shared object to - the plain file, if the mmap () protection included PROT_WRITE. - - * ace/README: added ACE_HAS_BOOL, which can be used by TAO. - -Thu Feb 19 17:59:53 1998 Nanbor Wang - - * apps/JAWS/clients/Caching/*: Reworked and cleaned up these files a - bit. Added a test_URL.cpp file. Notice that these file will - finally be moved to other directory. - -Thu Feb 19 15:52:50 1998 Stanley D Leeson - - * ace/Task.{h,cpp} (activate): added optional thread_names array - argument. - -Thu Feb 19 12:55:00 1998 Nanbor Wang - - * ace/OS.h: Added /**/ between #include and '<', Thanks to - gonzo@ing.puc.cl (Gonzalo A. Diethelm) for providing the - patches. - -Thu Feb 19 11:18:08 1998 David L. Levine - - * ace/OS.h: added ACE_MAP_{PRIVATE,SHARED,FIXED}, and - ACE_OS::shm_{open,unlink}. - - * ace/OS.i: added ACE_OS::shm_{open,unlink}, and mmap support on - LynxOS. - - * ace/Mem_Map.*,Shared_Memory_MM.h,Filecache.cpp: default share - value to ACE_MAP_PRIVATE instead of MAP_PRIVATE, to allow easy - overriding in config files. - - * ace/config-lynxos.h: added ACE_HAS_SHM_OPEN, and map - ACE_MAP_PRIVATE to ACE_MAP_SHARED because MAP_PRIVATE is - not supported on LynxOS 2.5.0. - - * tests/Mem_Map_Test.cpp: replace file_size with line_length because - that's more accurate. - - * tests/SOCK_Connector_Test.cpp: use ACE_DEFAULT_SERVER_HOST on - LynxOS, and removed #include of sys/utsname.h because it's in OS.h. - - * include/makeinclude/platform_lynxos.GNU: added LYNXOS so that - other Makefiles can easily know if where building for LynxOS. - - * ace/ACE.cpp (recv_n): commented out the MSG_PEEK flag check because - it caused IOStream_Test to not terminate. - - * ace/Env_Value_T.{h,i}: moved ACE_Convert specializations from .i - file to .h file, because the resulted in multiple instantiations - with ACE_INLINE disabled, and missing specializations without - ACE_HAS_TEMPLATES_REQUIRE_SOURCE and inlining enabled. - - * tests/TSS_Test.cpp: weakened to work with LynxOS. It has a very - limited number of keys, maybe 16, and can't free them. And, the - test always core dumps if we try to request more keys than it has - available. - - * tests/run_tests.sh: disabled some tests on LynxOS. - -Thu Feb 19 10:41:05 1998 Douglas C. Schmidt - - * ace/SOCK.cpp (open): It appears that we don't need to do - SO_REUSEADDR if protocol_family != PF_UNIX. Thanks to Chuck - Gehr for reporting this. - -Wed Feb 18 22:34:40 1998 Nanbor Wang - - * examples/Reactor/Dgram/Dgram.dsw: - * examples/Reactor/Dgram/Dgram.dsp: - * examples/Reactor/Dgram/CODgram.dsp: Newly added files for NT. - - * examples/Reactor/Dgram/Dgram.cpp: - * examples/Reactor/Dgram/CODgram.cpp: Made them runnable on NT. - - * ace/Process.h (ACE_Process_Options): Changed the definition of - ACE_Process_Options::NO_EXEC to 0 for Win32 because it doesn't - mean anything on NT (you must exec a new program on NT, no fork - syntax available.) With this, we can simulate the fork effect - more or less (still not portable thou. See - examples/Reactor/Dgram/ for some examples.) - -Wed Feb 18 16:07:14 1998 Douglas C. Schmidt - - * netsvcs/lib/Log_Message_Receiver.cpp (log_output): There was a - problem where "outputfile" can be NULL, which causes problems - when it is dereferenced. Thanks to Stephen Coy - for reporting this. - - * ace/ACE.cpp (ldfind): modified the code to allow it to - consistently return a status indicating whether or not a - potential shared library file was found. Thanks to Patrick - J. McNerthney for reporting this. - -Wed Feb 18 15:30:48 1998 Carlos O'Ryan - - * include/makeinclude/rules.lib.GNU: - Now we can create libraries with some files in - subdirectories. Though the Makefile still needs to set VPATH. - -Wed Feb 18 12:22:48 1998 David L. Levine - - * tests/Buffer_Stream_Test.cpp (Consumer::svc): added a - thr_yield so that the test magically works on LynxOS. - ACE_OS::cond_timedwait is busted on LynxOS, we're investigating it. - -Wed Feb 18 11:53:00 1998 Carlos O'Ryan - - * bin/auto_compile: - Added netsvcs to auto_compile list. - -Tue Feb 17 18:27:15 1998 Douglas C. Schmidt - - * ACE version 4.4.28, released Tue Feb 17 18:27:15 1998. - -Tue Feb 17 17:59:32 1998 Nanbor Wang - - * examples/Reactor/Multicast/Multicast.dsw: - * examples/Reactor/Multicast/client.dsp: - * examples/reactor/multicast/server.dsp: New project files. - -Tue Feb 17 15:53:41 1998 Douglas C. Schmidt - - * ace/ACE.cpp (recv_n): Added a check to drop out if the MSG_PEEK - flag is set! Thanks to Keith Brown for - reporting this. - -Tue Feb 17 12:56:24 1998 Chris Cleeland - - * include/makeinclude/wrapper_macros.GNU: Broke the "purify" - command out of PRELINK into its own variable: PURELINK. This was - done to quiet purify when building shared libraries. It wasn't - possible simply to remove the PRELINK reference from SOLINK.cc - because PRELINK is also used for specifying quantify. - - Also added two new variables: PURE_CACHE_DIR and - PURE_CACHE_BASE_DIR. PURE_CACHE_DIR is the value of the - purify/quantify '-cache-dir=' option, and PURE_CACHE_BASE_DIR is - used as the base directory to build a user/compiler-specific cache - directory. In general, you probably want to use them like this: - "make PURE_CACHE_BASE_DIR=~/mypurecache", which will end up - creating the directory ~/mypurecache--. - -Tue Feb 17 09:23:05 1998 David L. Levine - - * ace/OS.h: there were two SIGCHLD #defines, if it was not - already #defined. I changed the second one to be SIGCLD instead. - - * ace/config-linux-common.h: removed ACE_LACKS_TCP_H on alpha because - it's not necessary with glibc-2.0.6. - -Tue Feb 17 08:41:06 1998 Douglas C. Schmidt - - * ace/OS.h (ACE_PROPER_SINGLETON_INSTANTIATION): Changed spelling - of SINGLETONE to SINGLETON. Thanks to Mark Maris - for reporting this. - -Tue Feb 17 07:41:32 1998 Douglas C. Schmidt - - * ACE version 4.4.27, released Tue Feb 17 07:41:32 1998. - -Tue Feb 17 03:32:30 1998 Nanbor Wang - - * ace/ACE.*: Changes for Windows CE just keeps going and going and - going... All following functions are member functions of class - ACE. - - This member funcion has wchar version _only_ when - ACE_HAS_UNICODE_ONLY is defined: - - timestamp - - I've added wchar version of the following member functions: - - strecpy - strsplit_r - strrepl - basename - execname - format_hexdump - - These functions are not defined on CE because they make no sense - on CE. - - strenvdup - daemonize - - There is no stdin defined on CE. Before we implement a stdin - for CE, these functions don't make any sense. - - read_adapter - register_stdin_handler - remove_stdin_handler - - Changing these functions to UNICODE will need to change the - svc.conf parser. Therefore, I'll leave them to a later point. - - ldopen - ldfind - - * ace/README: Added a new directive ACE_HAS_UNICODE_ONLY which - indicates that most APIs must use wchar instead of char. (Note - that on WinCE, only WinSock functions use the traditional char - interfaces. Most other functions only support wchar - interfaces, include str* functions.) - -Mon Feb 16 14:57:26 1998 David L. Levine - - * tests/Priority_Task_Test.cpp (open): fallback to minimum - ACE_SCHED_OTHER priority instead of 0. - - * tests/Priority_Task_Test.cpp (open): suppress warning message - about retrying task activation with fallback priority unless -d - option is specified. - - * ace/High_Res_Timer.cpp: initialize global_scale_factor_ to 1 if - ACE_HAS_{,AIX_}HI_RES_TIMER and ACE_WIN32 are not defined. - Thanks to Robert Olson for reporting a - problem with bad hires time values on Irix. - -Mon Feb 16 10:51:28 1998 Oliver Kellogg - - * include/makeinclude/platform_osf1_4.0_rcc.GNU: added this - new platform file for Rational rcc (2.4.1) on DU 4.0. - - * ace/config-osf1-4.0.h: added ACE_LACKS_SIGNED_CHAR to - RATIONAL section. - - * ace/OS.h: added __rational__ to list of users of long - ACE_UNUSED_ARG. - - * ace/OS.i (gethostbyname_r): added some ACE_UNUSED_ARGs for - Digital Unix. - -Sun Feb 15 16:32:52 1998 Nanbor Wang - - * netsvcs/clients/Naming/Client/svc.conf: Removed "-s" flag, which - set the database name for local namespce. This was causing - grief if users forgot to set this environment variable. Thanks - to Johannes Gutleber for reporting - this. - -Sun Feb 15 15:55:47 1998 Darrell Brunsch - - * ace/Timer_Hash_T.{cpp,h}: Timer Hash wasn't keeping the earliest - node pointer up to date with cancels. - -Sat Feb 14 21:12:52 1998 Douglas C. Schmidt - - * ace/Synch_T.h (class ACE_Guard): this->acquire() already sets - the owner, so we don't need to do it in the constructor. - -Sat Feb 14 20:57:59 1998 Nanbor Wang - - * netsvcs/lib/Log_Message_Receiver.{h,cpp} (log_output): Added this to - all receiver classes. It allows writing messages to a user - specified ostream. - - * netsvcs/lib/Server_Logging_Handler_T.cpp - (handle_logging_record): * netsvcs/lib/Client_Logging_Handler.cpp - (send): Use the above change to avoid missing data on NT. Thanks - to Greg White for providing the fix. - -Sat Feb 14 18:34:37 1998 Darrell Brunsch - - * ace/Timer_{Wheel,Hash}_T.cpp: Fixed a bug with earliest time - pointers not being set correctly. Thanks to Mark Evans - for reporting this. - - * tests/Timer_Queue_Test.cpp: Added a quick test to check to - make sure the earliest time is reported correctly. - -Sat Feb 14 18:28:19 1998 Douglas C. Schmidt - - * ace/SOCK_Dgram_Mcast.cpp (subscribe): Fixed a problem with the - ACE_SOCK_Dgram_Mcast subscription method. Originally, each time - the ACE_SOCK_Dgram_Mcast subscribe() method was invoked, it - created a new socket, did appropriate setsockopt calls - (e.g. SO_USEPORT), did a bind() to that socket, and then did the - setsockopt call that actually joins the mcast group. The - problem with this was that is wasn't possible to a single socket - to subscribe to more than one multicast group. Multiple calls - to ACE_SOCK_Dgram_Mcast.subscribe() didn't work because the new - socket descriptor that was issued didn't listen to the old - multicast group(s). The fix was to change the subscribe() - method to only create, set up, and bind the socket if - get_handle() == ACE_INVALID_HANDLE. Thanks to Dave Meyer - for reporting this. - -Sat Feb 14 03:29:50 1998 Sergio Flores - - * ace/ACE.cpp (set_handle_limit): Fixed a couple of bugs setting - the maximum number of file descriptors. If we use setrlimit, we - should first get the hard limit before calling it, or we get an - EINVAL for trying to set a hard limit of 0 and a soft limit - greater than that. Also, for -1 the call was not setting the - limit to the maximum allowable. - - * ace/OS.h (ACE_MAX_DGRAM_SIZE): Moved the #define - ACE_MAX_DGRAM_SIZE from the PSOS specific part of OS.h. - -Fri Feb 13 19:25:55 1998 Douglas C. Schmidt - - * ace/Log_Record.cpp (ACE_Log_Record): Changed the "set" method - for priority() so that it doesn't convert the priority into the - base two logarithm of the parameter. Instead, this is handled - by the "get" method of priority(). Thanks to Eric C. Newton - for reporting this. - - * ace/OS.h: Added a new #define called ACE_MAX_DGRAM_SIZE, which - is set to 8k by default. Naturally, this can be overwritten in - platform-specific config.h files. - -Fri Feb 13 10:40:36 1998 David L. Levine - - * ACE version 4.4.26, released Fri Feb 13 10:40:36 1998. - -Thu Feb 12 14:33:12 1998 Nanbor Wang - - * ace/OS.i (mktemp): I missed this one in Win32 section. - -Fri Feb 13 09:04:13 1998 Oliver Kellogg - - * ace/config-osf1-4.0.h: added Rational RCC support. - -Wed Feb 11 09:50:27 1998 Steve Huston - - * ace/config-dgux-4.x-ghs.h - * include/makeinclude/platform_dgux4_ghs.GNU: Configs for ACE on - DG/UX 4 using Green Hills Multi C++ compiler, and draft 10 pthreads. - - * ace/README - * ace/OS.h: New macro ACE_NEEDS_SCHED_H for platforms which needs to - #include to get complete defs for thread scheduling. - - * ace/OS.cpp: Added a DG/UX-specific pthread_wait function for use with - draft 10 pthreads on DG/UX. - -Wed Feb 11 09:32:10 1998 David L. Levine - - * ACE-INSTALL.html: updated DU CXX and Linux info. - - * ace/Makefile: moved INSTALL= to before include of rules.local.GNU, - so that the (unused) install command doesn't show up with make -n. - - * include/makeinclude/platform_chorus_ghs.GNU: put posix -I before - stdc -I. - - * ace/OS.h: removed include of stdfileio.h on ghs/Chorus. It's not - necessary with the above change to platform_chorus_ghs.GNU. - -Wed Feb 11 09:24:51 1998 David L. Levine - - * ACE version 4.4.25, released Wed Feb 11 09:24:51 1998. - -Tue Feb 10 14:58:00 1998 Chris Gill - - * ace/Containers.cpp : removed unreachable break; - -Tue Feb 10 09:34:27 1998 David L. Levine - - * ace/INET_Addr.cpp (get_host_name): moved declaration of local - "hentry" so that it's not seen on Chorus. - - * ace/OS.i (getprotoby{name,number}{,_r}): not supported on Chorus. - - * ace/Makefile: build Select_Reactor.o without -g on ghs/Chorus, - because it causes GreenHills 1.8.8 to core dump. - - * ace/config-chorus.h: adjusted to work with GreenHills 1.8.8. - - * include/makeinclude/platform_chorus_ghs.GNU: use Gnu ar instead - of ax, because we don't have a license for ax. - - * Timer_Queue_Adapters.{h,i} (activate): added stack and stack_size - parameters to match declaration in ACE_Task_Base. - - * include/platform_linux{,_lxpthread}.GNU: removed - -fno-strict-prototypes from CFLAGS because it is no longer needed. - - * include/makeinclude/platform_sunos5_g++.GNU: added -lposix4, to - be consistent with the Sun C++ platform file. Some of the TAO - tests need it. - -Mon Feb 09 18:10:37 1998 Chris Gill - - * ace/Containers.{cpp,h} : made next () a const member function in - ACE_Ordered_MultiSet_Iterator - -Mon Feb 09 14:52:25 1998 David L. Levine - - * include/makeinclude/platform_chorus_ghs.GNU: added include path. - - * ace/config-chorus.h: with GreenHills, removed - ACE_HAS_WCHAR_TYPEDEFS_CHAR and ACE_LACKS_UNISTD_H. We'll - see if --multibyte_chars --wchar_t_keyword work. - - * ace/OS.h: added #include with GreenHills/Chorus. - - * netsvcs/clients/Naming/Client/Client_Test.cpp (handle_input): - get input from stdin, not ACE_STDIN. Thanks to Jack Erickson - for reporting this. - -Sun Feb 8 15:33:33 1998 Nanbor Wang - - * include/makeinclude/wrapper_macros.GNU: - * include/makeinclude/rules.lib.GNU: - * include/makeinclude/rules.local.GNU: Rename - ACE_LDSO_Major_Minor_Version_Number to ACE_LDSO_Version_Number. - - * include/makeinclude/rules.local.GNU: Put back checking of - current directory into library installation rules but with an - extra check for null ACE_LDSO_Version_Number. - -Sun Feb 08 12:06:30 1998 David L. Levine - - * ACE-INSTALL.html: added Scott Snyder's egcs 1.0.1 patch, which - allows netsvcs/lib/Server_Logging_Handler.cpp to build on - Linux/RedHat 5.0. - - * include/makeinclude/wrapper_macros.GNU: protected ACE_ROOT... - additions to INCLDIRS and LDFLAGS so they're only added once. - Thanks to James CE Johnson for this addition. - - * ace/config-linux-common.h: added ACE_HAS_TERM_IOCTLS. Thanks - to James CE Johnson for this addition. - - * examples/Naming/test_multiple_contexts.cpp,test_non_existent.cpp, - test_writers.cpp: - replaced uses of cout with ACE_DEBUG. - - * examples/performance-tests/Misc/basic_perf.cpp, - context_switch_time.cpp,preempt.cpp: - divide ACE_hrtime_t by ACE_UINT32, to prevent ambiguity with - ACE_U_LongLong operator / overloading. - -Sun Feb 8 01:45:59 1998 Nanbor Wang - - * include/makeinclude/wrapper_macros.GNU (versioned_so): Added - a new directive to allow automatic installing of so libraries - with version number. This flag is default to 0. Put this line, - - versioned_so = 1 - - in your platform_*.GNU file to enable this feature. - - (ACE_LDSO_Major_Minor_Version_Number): Define the version number - to be appended to versioned so libraries (Notice: it include a - dot at the beginning.) If versioned_so == 0, this macro expand - to nothing. - - * include/makeinclude/rules.lib.GNU (INSTALL): - * include/makeinclude/rules.local.GNU (INSTALL rules): Modified - installation rules to allow installing so libraries with version - numbers. - - * include/makeinclude/platform_netbsd.GNU: - * include/makeinclude/platform_freebsd[_pthread].GNU: Enabled - new versioned_so feature. - -Sat Feb 07 05:51:15 1998 Nanbor Wang - - * ace/Synch_T.cpp (ACE_TSS): Changed to use MessageBox on WinCE. - Because there's no console in WinCE, we can't output warning - messages to stderr. - - * ace/README (ACE_HAS_UNICODE_ONLY): This new directive is used to - removed some char version function definitions because it - doesn't make too much sense to support these function when most, - if not all, strings in the system are wchar strings. - - * ace/OS.{h,i} (ACE_DEFAULT_LOGGER_KEY): Added wchar definition if - we are using UNICODE. - (ACE_SHE_{TRY,FINALLY,EXCEPT}): WinCE doesn't support Win32 - structual exception, so these macros should be defined as on - UNIX platforms. - (mktime): Removed this function from WinCE. Don't even think - about using them. - (ACE_HAS_UNICODE_ONLY): If this directive is defined, the char - version of the following functions are not defined in ACE_OS: - - chdir - mkdir - mkfifo - mktemp - getcwd - unlink - tempnam - - Some of them has wchar version. - - (chdir,mkdir,getcwd): Added wchar version. Unfortunately, getcwd - still doesn't work for WinCE. - - * ace/OS.cpp (mktemp): Added wchar version of this function. - Other changes added. Please refer to the entry above. If - platform/compiler supports this function, then both char and - wchar versions are defined as inline functions in OS.i. - (socket_{init,fini}): Removed leading :: from WSAStartup and - WSACleanup because these two are implemented as macros on - WinCE. Changed to use MessageBox instead of cerr for outputing - error messages. - - * ace/config-win32-common.h: Don't defined ACE_HAD_P_READ_WRITE on - WinCE. - - * ace/config-WinCE.h: Defined directive ACE_HAS_UNICODE_ONLY. - - * ace/ace_dll.dsp: Adjusted CE project settings. - -Fri Feb 06 15:28:11 1998 David L. Levine - - * ace/config-sunos5.5-sunc++-4.x.h: disable explicit template - instantiations with CC 4.2, because it still does implicit - instantiation. We need to figure out how to disable that. - Then, we can enable -instances=global to get the real - benefits of explicit template instantiation with CC. - - * tests/Barrier_Test.cpp: updated a comment re. the VxWorks - task names test. - -Fri Feb 06 10:42:22 1998 David L. Levine - - * ACE version 4.4.24, released Fri Feb 06 10:42:22 1998. - -Fri Feb 06 10:30:00 1998 Chris Gill - - * ace/Containers.cpp: fixed error in - ACE_Doubly_Linked_List_Iterator::first (void); - -Fri Feb 06 08:27:32 1998 Chris Gill - - * ace/Containers.{cpp,h} : added "first" methods to all container - iterators: each positions the iterator at the first element - in the container and returns 1, or if the container is empty - positions the iterator at a well defined "null" position for - that container and returns 0: - - template int - ACE_Unbounded_Set_Iterator::first (void); - - template int - ACE_Unbounded_Queue_Iterator::first (void); - - template int - ACE_Unbounded_Stack_Iterator::first (void); - - template int - ACE_Bounded_Set_Iterator::first (void); - - template int - ACE_Fixed_Set_Iterator::first (void); - - template int - ACE_Doubly_Linked_List_Iterator::first (void); - -Wed Feb 04 22:23:24 1998 David L. Levine - - * include/makeinclude/platform_linux*.GNU: commented out or - removed SUPPRESS_DASH_G, because it's not needed with hacked - gas on Linux/Alpha. - - * ACE-INSTALL.html: added some comments on Linux/RedHat 5.0, - for both Intel and Alpha. Thanks to James CE Johnson - , Torbjorn Lindgren , - and Oleg Krivosheev for this information. - - * ace/config-linux-common.h: replaced #define of ACE_HAS_EXCEPTIONS - with a compile time check for egcs, which supports exceptions. - Exceptions can now be enabled on the make command line. Also, - moved some comments on Linux system configuration up to - ACE-INSTALL.html. - - * ace/config-linux-common.h,config-g++-common.h: moved - ACE_HAS_EXCEPTIONS #define from config-linux-common.h to - config-g++-common.h. - - * include/makeinclude/wrapper_macros.GNU: disabled exception handling, - the default, on g++ >= 2.8.0. On both Linux/alpha and - Solaris 2.5.1/sparc, exception handling increased the size of - libACE.so by about 25 percent. Exception handling can easily - be enabled on the make command line or by editing your - include/makeinclude/platform_macros.GNU. - - * netsvcs/lib/TS_Server_Handler.cpp: instantiate - ACE_Svc_Handler if - ACE_HAS_STREAM_PIPES, not if ACE_HAS_TLI. Thanks to Oliver - Kellogg for reporting this problem. - - * Makefile: made ACE-INSTALL a dependency of release and - cleanrelease so that it is only updated when necessary. - - * ace/OS.{h,i},README (gets): wrapped with !ACE_LACKS_GETS. - - * ace/config-g++-common.h: added ACE_LACKS_GETS for egcs. It - supports ::gets (), but warns about it at link time on Linux. - The Solaris gets () man pages recommends using fgets () instead. - - * netsvcs/clients/Naming/Client/Client_Test.cpp: replaced use of - ACE_OS::gets () with ACE_OS::fgets (). - -Wed Feb 04 11:07:46 1998 Chris Gill - - * ace/Containers.cpp : fixed my "fix" to new_position pointer in - ACE_Ordered_MultiSet::find_from () - now checks the pointer - before assigning something to it. - -Tue Feb 03 15:11:00 1998 Chris Gill - - * ace/Containers.cpp : fixed order of member initialization list - in ACE_DNode ctor, added update of new_position pointer in - ACE_Ordered_MultiSet::find_from () - -Mon Feb 02 21:26:30 1998 David L. Levine - - * tests/Map_Manager_Test.cpp (test_map_manager): print out - item.int_id_ instead of local i so that item gets used (CXX - warned that it wasn't). - - * include/makeinclude/platform_osf1_4.0.GNU: added suppression of - warning 610, nonoverriding_function_decl. - - * ace/config-chorus.h,config-freebsd*.h,,config-hpux-10.x-g++.h, - config-irix{5.3,6.x}-g++.h,config-osf1-4.0.h,config-m88k.h, - config-netbsd.h,config-psosim-g++.h,config-sco-4.2-nothread.h, - config-sco-5.0.0-mit-pthread.h,config-sunos4-g++.h, - config-sunos5.4-g++.h,config-unixware-2.*.h: - migrated to config-g++-common.h. - - * ace/config-sunos5.5-egcs*.h: removed. config-sunos5.5-g++.h - now supports egcs, via config-g++-common.h. - - * ace/config-sco-5.0.0*.h: added RCS keyword string. - - * include/makeinclude/wrapper_macros.GNU: support "exceptions" - make flag on all platform. If enabled, it adds - -DACE_HAS_EXCEPTIONS to CCFLAGS. Not all platforms support - exception handling, of course, and that is noted in the - description of the "exceptions" make flag. - - * include/makeinclude/platform_sunos5_sunc++.GNU, - platform_sunos5.6_sparc_sunc++_4.2.GNU: - removed -DACE_HAS_EXCEPTIONS, because it's now done in - wrapper_macros.GNU. - - * examples/Reactor/Misc/test_event_handler_t.cpp: renamed - ACE_Sig_Handler to ACE_Test_Sig_Handler to avoid collision - with ACE_Sig_Handler in ACE library. - - * tests/Env_Value_Test.cpp (main): print out signed instead of - unsigned values. - -Mon Feb 02 14:40:00 1998 Chris Gill - - * tests/OrdMultiSet_Test.cpp: added explicit template instantiation - for ACE_DNode - - * tests/OrdMultiSet_Test.dsp: new MSVC++ project for the test - - * tests/tests.dsw: added OrdMultiSet_Test.dsp project to workspace - - * tests/run_tests.{bat,sh,psosim,vxworks} : added OrdMultiSet_Test - - * tests/Makefile : added OrdMultiSet_Test - -Mon Feb 02 02:42:30 1998 Nanbor Wang - - * ace/OS.h (ACE_NOTSUP_RETURN): Moved its definition to the end of - this file where __TEXT has already been defined. WinCE needs to - use wchar. - - (struct utsname): Moved this definition after all datatypes are - filled in. Reverted my previous changed on it. - - Win32 only: Added wchar version of ACE_OS::{perror,fprintf, - vsprintf,sprintf}. - - Windows CE only: Undefined some char version function in class - ACE_OS. They are of no use on CE anyway. - - * ace/OS.i (fdopen): Added wchar version of ACE_OS::fdopen, it is - only available on Win32. - - Windows CE only: Added implementation for c-styled file - functions. Type FILE * is mapped to Win32 HANLDE under the hood - and Win32 API's are used to emulate these functions. - - * ace/OS.cpp: Removed some char version functions and added some - wchar functions. - -Sun Feb 01 15:12:49 1998 Chris Gill - - * tests/OrdMultiSet_Test.cpp: added an ACE test for the - ACE_Ordered_MultiSet and ACE_Ordered_MultiSet_Iterator - class templates. - - * ace/Containers.i (ACE_Ordered_MultiSet::is_empty ()): - changed to return 1 rather than cause a SEGV when the - container is in fact empty (the above test discovered the bug). - -1998-02-01 Nanbor Wang - - * ace/OS.h (struct utsname): Separated WCE's definition from - ACE_LACKS_UTSNAME_T bacause VxWorks doesn't have TCHAR type. - -Sun Feb 01 12:09:11 1998 David L. Levine - - * ace/Containers.cpp (ACE_Ordered_MultiSet::insert and find): - expanded ITERATOR type of second argument, because g++ couldn't - deal with it. It can in the class declaration in Containers.h, - so I didn't change that. - - * ace/config-sunos5.5-g++.h,config-lynxos.h,config-vxworks5.x.h: - migrated to config-g++-common.h. - - * tests/run_tests.vxworks: disabled Message_Queue_Test because - it sometimes page faults or hangs the target. - -Fri Jan 30 15:35:30 1998 Chris Gill - - * ace/Containers.{cpp,h,i} : added class templates - ACE_Ordered_MultiSet and ACE_Ordered_MultiSet_Iterator - which respectively implement abstractions for containment - of and iteration over an ordered set that allows multiple - identical instances of a given item. - -Fri Jan 30 02:42:30 1998 Nanbor Wang - - * ace/OS.cpp (uname): Made it comform with Unicode. - - * ace/OS.h (struct utsname): Changed the internal string type to - TCHAR. - - * ace/OS.i (gettimeofday): Added Windows CE implementation. - -Thu Jan 29 21:02:24 1998 David L. Levine - - * ace/config-sunos5.5-g++.h: revert so that ACE_HAS_STRING_CLASS - is #defined, regardless of g++ version. - - * ace/config-g++-common.h,config-gcc-2.7.2.h: replaced - config-gcc-2.7.2.h with config-g++-common.h, which will support - all g++ versions, including egcs. - - * ace/config-linux-common.h,config-sco-5.0.0-{fsu-pthread,nothread}.h: - migrated to config-g++-common.h. - -Thu Jan 29 20:28:30 1998 Douglas C. Schmidt - - * ACE version 4.4.23, released Thu Jan 29 20:28:30 1998. - -Thu Jan 29 16:17:28 1998 Nanbor Wang - - * ace/Log_Msg.cpp (open): Always close down the logger connection - before changing the setting. Added codes to allow resetting - logging endpoint back to STDERR from LOGGER. - - * ace/OS.h (ACE_DEFAULT_LOGGER_KEY): Changed to localhost:10012 - so it can be used in both netsvcs/lib/ and netsvcs/client/. - - * netsvcs/client/Logger/indirect_logger.cpp: Added code to reset - logging endpoint back to stderr. - - * netsvcs/lib/Client_Logging_Handler.cpp - (ACE_Client_Logging_Acceptor): Changed to initialize - logger_key_ with ACE_DEFAULT_LOGGER_KEY. - - * netsvcs/lib/Client_Logging_Handler.h: Removed DEFAULT_LOGGER_KEY - definition. - -Thu Jan 29 12:32:32 1998 Carlos O'Ryan - - * include/makeinclude/platform_irix6.x-sgic++.GNU: - Added support for debugging, somehow the DCCFLAGS were missing. - -Thu Jan 29 10:52:34 1998 David L. Levine - - * ace/config-lynxos.h: added putenv () declaration. - - * include/makeinclude/platform_sunos5_g++.GNU: added comment - about disabling optimization with g++ 2.8.0. - - * ace/config-sunos5.5-g++.h: don't #define ACE_HAS_STRING_CLASS - with g++ 2.8.0. - - * include/makeinclude/platform_sunos5_egcs.GNU: include - the g++ platform file, it works just fine. The net effect - on egcs is these three changes: - - 1) -fno-implicit-templates is included in CPPFLAGS. That - option is necessary with the egcs (egcs-2.90.23 980102 - (egcs-1.0.1 release)) that we use to save _much_ text - space. - - 2) Use -G instead of -shared in SOFLAGS. That way, - libstc++.so, etc., need not be built. - - 3) The compiler is called g++ instead of c++. I don't - think this hurts anything. And Purify knows about g++, - but not g++. - - These (and any other) options can be overridden in - platform_sunos5_egcs.GNU if necessary. See the commented - example there. - - * ace/config-sunos5.5-egcs.h: added - ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION to match - -fno-implicit-templates in the platform_sunos5_egcs.GNU. - - * tests/Env_Value_Test.cpp: updated comment to explain why we - can't use spawn with ACE_HAS_NONSTATIC_OBJECT_MANAGER. We - can, in general, but we can't on VxWorks because it doesn't - have fork (). - -Thu Jan 29 10:32:28 1998 Carlos O'Ryan - - * include/makeinclude/platform_sunos5_sunc++.GNU: - The posix4 library is needed in some TAO examples. - - * ace/Module.h: - * ace/Message_Queue.h: - Workaround HP/C++ compiler bug, it does not support enums inside - templates so we move them into base classes. Thanks to Sundar - T.J for reporting this problem. - -Thu Jan 29 10:14:03 1998 Douglas C. Schmidt - - * ace/FIFO.h: Revised the comment at the beginning of ACE_FIFO to - clearly indicate that it doesn't work portably to Win32. Thanks - to Thomas Hampson for suggesting this. - -Wed Jan 28 15:36:55 1998 Carlos O'Ryan - - * bin/auto_compile: - We can use the top level Makefile on TAO now. - -Wed Jan 28 11:59:41 1998 Nanbor Wang - - * ace/OS.i (isatty): Added conversion from a Win32 HANDLE to a C - file handle. It works correctly now. Thanks to Chuck R. Gehr - for noticing the problem. - -Tue Jan 27 20:32:07 1998 Douglas C. Schmidt - - * ace/Message_Block: Added an accessor to retrieve the reference - count on an ACE_Data_Block. Thanks to Dave Meyer - for contributing this. - -Tue Jan 27 15:09:08 1998 Douglas C. Schmidt - - * ace/OS.i, - * ace/Timer_Queue_Adapters.cpp: - When using ACE_CLEANUP_???_POP macros, it was being called with - argument 1, which should be 0 (don't execute the cleanup). - Thanks to Arturo Montes for reporting - argument 1, which should be 0 (don't execute the cleanup).this. - -Tue Jan 27 14:56:49 1998 David L. Levine - - * ace/Basic_Types.*: more cleanup: got rid of ACE_USES_ACE_U_LONGLONG, - replaced VXWORKS && ghs with ACE_HAS_WCHAR_TYPEDEFS_CHAR, and - factored out some common #defines. Rearranged ACE_SIZEOF_LONG_LONG - and ACE_UINT64 logic so that it works on NT. - -Tue Jan 27 08:28:34 1998 Steve Huston - - * ace/Basic_Types.h: Simplified and changed so that the config.h file - can pre-specify the ACE_SIZEOF_* macros in case the preprocessor - has trouble calculating them. - -Tue Jan 27 06:45:07 1998 David L. Levine - - * examples/IOStream/server/iostream_server.cpp: for egcs, use - ACE_SOCK_IOSTREAM instead of its expansion in the ACE_Svc_Handler - template instantiation. - - * ace/Event_Handler_T.h,examples/Reactor/Misc/test_event_handler_t.cpp: - removed special-case support for ACE_HAS_SIGNFO_T, because ace/OS.h - declares a siginfo_t without it. - - * tests/run_tests.vxworks: enabled Priority_Reactor_Test and - Message_Queue_Test, because they appear to run successfully now. - Most of the time, anyways. Message_Queue_Test occasionally - pages faults; there appears to be a memory management problem. - -Tue Jan 27 02:38:16 1998 Nanbor Wang - - * ace/OS.{i,cpp}: - * ace/config-WinCE.h: More Windows CE insanities. - -Mon Jan 26 13:20:58 1998 David L. Levine - - * include/makeinclude/platform_osf1_4.0_g++.GNU: added $(ACELIB) - to SOFLAGS. Thanks to Oliver Kellogg - for reporting the problem with building shared libraries on - g++/DU 4.0. - - * ace/config-linux-common.h: moved ACE_LACKS_TCP_H so that it is - only seen on alphas (with glibc2). Thanks to Edgar Villanueva - for reporting this. - - * performance-tests/Misc/childbirth_time.cpp (prof_native_thread, - prof_ace_os_thread): changed type of local j to int to avoid - signed/unsigned comparison. - - * tests/Reactors_Test (Test_Task): changed type of member - handled_ from int to size_t to avoid signed/unsigned comparison - in Test_Task::handle_input (). - -Mon Jan 26 11:35:54 1998 Carlos O'Ryan - - * bin/auto_compile: - Added TAO_ROOT to the environment. - -Mon Jan 26 10:28:57 1998 Douglas C. Schmidt - - * ACE version 4.4.22, released Mon Jan 26 10:28:57 1998. - -Mon Jan 26 02:53:10 1998 Nanbor Wang - - * ace/OS.h: Namespace related macros are now ifdef'ed by - ACE_HAS_BROKEN_NAMESPACES instead of ACE_ORBIX_HAS_NAMESPACES. - - * ace/README - * ace/config-win32-common.h: Added a new flag - ACE_HAS_BROKEN_NAMESPACES to deal with MSVC's broken namespace - support. - - * ace/config-win32.h: Re-enable defining ACE_ORBIX_HAS_NAMESPACES - for Win32. - - * ace/config-WinCE.h: Temporary file to hold WinCE specific - configurations. It will probably be merged with - config-win32-common.h in some point. - - * ace/ace_dll.dsp: Added WinCE x86 emulation mode project - definition. - - * ace/OS.{h.i} (ACE_OS): Added Windows CE macros madness. - - * ace/config-win32-common.h: Ifdef'ed out ACE_HAS_SIG_ATOMIC_T for - WinCE. Prevent repeat definition of STRICT. - -Sun Jan 25 17:31:49 1998 Nanbor Wang - - * ace/config-win32.h: Disabled setting ACE_ORBIX_HAS_NAMESPACES by - default on NT. MSVC's namespace support is buggy. - -1998-01-25 Nanbor Wang - - * tests/Conn_Test.cpp: Rearranged explicit template instantiations - order to avoid errors from egcs. Thanks to Gonzo for reporting - the bug. - -Fri Jan 23 12:24:05 1998 Douglas C. Schmidt - - * ace/OS.i (sleep): Fixed a typo where tv_sec was being set rather - than tv_usec. Thanks to Gonzo for pointing this out. - -Fri Jan 23 06:27:51 1998 David L. Levine - - * ace/IOStream.h: use std::string if - ACE_USES_STD_NAMESPACE_FORSTDCPP_LIB IOStream.h. Thanks - to Gonzo for the patch. Also, changed - DEC_CXX to __DECCXX_VER because that's more accurate. - - * tests/Barrier_Test.cpp: specify thread name and stack size - on VxWorks. Thanks to Stan Leeson - for suggesting this. - - * tests/Env_Value_Test.cpp (TEST_THIS): cast val to (type) - before casting to (u_int), to try to avoid DEC CXX compiler - warning about integer overflow. Thanks to Frederic Andres - for reporting this. - - * ace/config-osf1-4.0.h: added ACE_HAS_EXCEPTIONS, etc., with - CXX 6.0. Thanks to Torbjorn Lindgren for - the patch. - - * ace/OS.i (thr_kill): removed ACE_ADAPT_RETVAL because - ::taskNameToID returns the task ID, not success/fail. - Thanks to Richard Keizer for - diagnosing the problem and providing the fix. - - * tests/run_tests.vxworks: enabled Thread_Manager_Test and - Message_Block_Test now that they succeed. Thanks to Richard Keizer - for the ACE_OS::thr_kill fix. - - * ace/OS.cpp (thr_create), ace/Thread_Manager.cpp (kill_thr): - on VxWorks, use strncmp instead of strcmp to check for allocated - thread ID. - -Thu Jan 22 16:34:18 1998 Douglas C. Schmidt - - * examples/Connection/misc/Connection_Handler.cpp (svc): Fixed a - bug in the example where the global Singleton Reactor was being - used rather than the object's Reactor. Thanks to Peter Gross - for reporting this. - -Thu Jan 22 09:04:13 1998 David L. Levine <@cs.wustl.edu> - - * ace/Hash_Map_Manager.cpp (ACE_Hash_Map_Iterator_Base ctor): - added a cast of mm.total_size_ to ssize_t, to try to avoid - a compiler warning. Thanks to Brian Mendel - for reporting this. - - * ace/config-osf1-4.0.h: updated g++ support. Thanks to - Oliver Kellogg for the patch. - - Thanks to Tom Venturella and Dave Mayerhoefer - (!) for requesting the following three changes: - - * ace/Thread_Manager.cpp: added support for a user-supplied - thread (VxWorks task) name. By itself, that means just passing - the ACE_thread_t along to ACE_OS::thr_create (). The tricky - part was then handling the case where the user doesn't supply - a name. It would be cleaner if the ACE_thread_t and ACE_hthread_t - typedefs were swapped on VxWorks, because the ACE_Thread_Manager - keys off of the ACE_thread_t. And in addition to being cleaner, - it would be safer because ACE_thread_t's currently aren't - guaranteed to be unique on VxWorks. - - * ace/OS.cpp (thr_create): on VxWorks only, use the t_id (task - name) and stack_size if supplied. Also added support for setting - the stack, but commented it out because it doesn't seem to work. - - * tests/Conn_Test.cpp: on VxWorks, assign thread (VxWorks task) - names to server and client threads, to test that feature. - - * ace/OS.cpp (spa [VxWorks only]): use ::taskSpawn () instead - of ::sp () so that the task name, ace_main, can be specified. - - * ACE-INSTALL.html: added note about not linked the ACE library - into every VxWorks executable. It should work when running - multiple ACE executables on a target, though I haven't tried it. - - * include/makeinclude/rules.local.GNU: set SOEXT if it was not set, - so that it's always non-null for make depend. - - * ace/OS.h: #define ACE_THR_PRI_FIFO_DEF on all threaded platforms, - if not already defined in OS.h or in the individual platform config - file. It should be used by applications for a default real-time - thread priority. - - * ace/config-chorus.GNU: added GreenHills support. - - * include/makeinclude/platform_chorus_ghs.GNU: added platform file. - -Wed Jan 21 21:37:03 1998 Nanbor Wang - - * ace/Hash_Map_Manager.cpp (close_i): Removed the HPUX_11 - destructor madness by saving the location to be destructed in a - temporary reference instead of calling the destructor from the - array directly. Thanks to Istvan Buki for - providing the patch. - -Wed Jan 21 20:36:43 1998 Chris Cleeland - - * ACE version 4.4.21, released Wed Jan 21 20:36:43 1998. - -Wed Jan 21 10:39:12 1998 David L. Levine - - * ace/Task.cpp (activate): for builds without threads only, - added ACE_UNUSED_ARG of stack and stack_size. - - * ace/High_Res_Timer.cpp: used unsigned constants instead of - signed, to allow resolution of overloaded - ACE_U_LongLong::operator/ (). - -Tue Jan 20 21:15:01 1998 Douglas C. Schmidt - - * ACE version 4.4.20, released Tue Jan 20 21:15:01 1998. - -Tue Jan 20 20:31:27 1998 Carlos O'Ryan - - * tests/test_config.h: - Changed several buffer sizes from BUFSIZ to MAXPATHLEN, they - were used for storing pathnames, so the later is a proper size - for them. - -Tue Jan 20 15:54:44 1998 Darrell Brunsch - - * ace/Timer_Heap_T.cpp: Fixed a bug that was introduced on - Sunday because of the non-use of position 0 (we have to - grow the heap one node early). - - * ace/Timer_Queue_T.{h,cpp}: Added a return_node () method - which is used to return a ACE_Timer_Node back into the - control of the Timer Queue after it leaves via - remove_first (). - -Tue Jan 20 15:52:31 1998 Douglas C. Schmidt - - * ACE version 4.4.19, released Tue Jan 20 15:52:31 1998. - -Tue Jan 20 12:49:05 1998 Nanbor Wang - - * ace/Hash_Map_Manager.cpp (ACE_Hash_Map_Manager): Member table_ - needs to be initialized to prevent deleting invalid memories. - -Tue Jan 20 11:57:24 1998 Carlos O'Ryan - - * bin/auto_compile: - Added several TAO components to the compile list. - The regular expression for make errors was missing several of - them. - -Tue Jan 20 03:36:54 1998 Nanbor Wang - - * ace/Hash_Map_Manager.cpp (open): We should call close_i () to - ensure previously allocated memory gets release before we - allocate new one. - -Mon Jan 19 22:21:34 1998 Nanbor Wang - - * tests/Env_Value_Test.cpp (main): Added test codes for unsigned - short. - - * ace/Env_Value_T.i (ACE_Convert): Added conversion function for - unsigned short. - -Mon Jan 19 15:13:47 1998 Douglas C. Schmidt - - * bin/Makefile: Fixed a problem with the CCFLAGS definition that - was causing circular macro expansion. Thanks to Philippe - O'Reilly for reporting this. - -Sun Jan 18 14:32:42 1998 Darrell Brunsch - - * ace/Timer_Heap_T.cpp: Problems were arising because of the - use of negative numbers in the timer_id array of the timer - heap for the free list. When the 0th index is in the free - list, pointers to it will show up as 0 (because 0 == -0). - This will look the same as a timer_id for the top of the - heap, and if cancel () was attempted on this invalid - timer_id, bad things would happen. To prevent this, index - 0 is now ignored so it doesn't show up in the free list. - -Sun Jan 18 18:12:52 1998 Nanbor Wang - - * examples/Service_Configurator/Misc/*.ds?: Added new project - files for this example. - -Sun Jan 18 17:27:52 1998 Darrell Brunsch - - * ace/Timer_Wheel_T.cpp: Fixed a problem with Timer Wheel's - expire(). The problem occured when the handle_timeout() method - of the event handler used would return a 0. This causes the - Timer Queue to cancel all timers using that event handler. - Because Timer Wheel's expire caches the position of some timers - that will be expired, it was trying to expire timers that were - already cancelled. Now it checks the timer before it expires. - -Sun Jan 18 16:08:36 1998 Douglas C. Schmidt - - * ace/Thread_Manager: Modified the signature to the spawn_n() - method so that it's possible to pass in an array of stack - pointers and stack sizes. Thanks to Thomas Venturella - for requesting this. - - * ace/Task: Modified the signature to the activate() method so - that it's possible to pass in an array of stack pointers and - stack sizes. Thanks to Thomas Venturella - for requesting this. - -Sun Jan 18 15:54:16 1998 Darrell Brunsch - - * ace/Timer_Wheel_T.h: - ace/Timer_Hash_T.h: - ace/Timer_Queue_T.h: - ace/Timer_Wheel_T.cpp: - ace/Timer_Hash_T.cpp: Added pure virtual get_first() method to - Timer_Queue_T. Added implementations to Timer_Wheel and Timer_Hash. - Timer_Heap and Timer_List already had implementations. - -Sat Jan 17 23:40:02 1998 Nanbor Wang - - * netsvcs/VCAUTO.MAK: - * netsvcs/lib/VCAUTO.MAK: Added directory information for easier - debugging. - -Sat Jan 17 16:10:04 1998 Douglas C. Schmidt - - * examples/Service_Configurator/Misc/main.cpp (main): Replaced the - buggy use of ACE_Service_Config daemon; with - ACE_Service_Config::open(). We'll have to fix this properly - some day, but for now this is the best solution. Thanks to - Pawel Roman for reporting this. - -Sat Jan 17 00:42:13 1998 Irfan Pyarali - - * ace/SString.cpp (substring): Fixed bug. count should be - initialized to length and not len_. - -Fri Jan 16 15:52:34 1998 Nanbor Wang - - * ace/IOStream.h (ACE_Streambuf): - * ace/config-win32-common.h: - * ace/iosfwd.h: - * ace/streams.h: Applied IOStream patches from James CE Johnson - . - -Fri Jan 16 01:42:52 1998 Irfan Pyarali - - * ace/OS.h: Changed the definition of ACE_CORBA_* macros so that - on non-Win32 platforms, they will be expand to the nested - classes. Thanks to Jonathan Reis - for reporting this. - - * ace/SString.h: Added the correct export macros. - -Thu Jan 15 15:45:48 1998 Douglas C. Schmidt - - * etc/ACE-guidelines.html: Reformatted this page a bit. - - * ace/Message_Queue.cpp (open): The fix from Slawomir Kuzniar was - incorrect. I reverted the change. - -Thu Jan 15 12:43:23 1998 Nanbor Wang - - * /: Added a bunch of makefiles (*.MAK) for one button - make-and-test on NT. - - * Makefile (FILTER): Added filter to remove VC one button related - makefile from ACE release. - - * ace/ACE_Library.{mdp,mak}: Added Shared_Memory.cpp file into the - project makefile. - -Thu Jan 15 09:12:26 1998 David L. Levine - - * tests/Barrier_Test.cpp,Message_Block_Test.cpp,Priority_Task_Test.cpp, - Reactor_Exceptions_Test.cpp,Reactors_Test.cpp,Thread_Mutex_Test.cpp: - (main): changed some local variables from int to size_t to avoid - signed/unsigned comparison. - - * ace/OS.i,config-linux-common.h,README: aded ACE_HAS_SOCKLEN_T - support for Linux/glibc2, which has a socklen_t type. - - * include/makeinclude/rules.local.GNU (depend.local): produce all 4 - combinations of .obj, .shobj, .o, and .so dependency targets. This - should take care of the problem of not rebuilding when a dependency - has changed, after we regenerate all the Makefiles. - - * include/makeinclude/rules.local.GNU (depend.local): removed the sed - rule that wiped out each Makefile line ending with :. I don't know - why that rule was there. With it, if a Makefile had a target such - as clean:, it got deleted. Not any more. - - * many Makefiles: updated dependences with revised depend.local. - - * bin/g++dep: added lib/g++-include path to gcc -MM invocation, so - that gcc can find all of its headers. (It didn't help to replace - gcc with g++, though I would have expected that to solve the - problem.) - - * ace/Timer_Heap_T.cpp (get_first): fixed ACE_TRACE id string. - - * apps/Gateway/Gateway/Concrete_Connection_Handlers.cpp, - * apps/Gateway/Peer/Peer.cpp (recv): - changed type of HEADER_SIZE to size_t to avoid signed/unsigned - comparison. - -Wed Jan 14 20:41:35 1998 Carlos O'Ryan - - * ace/Signal.i (is_member): - Fixed typo in new cast, the type is sigset_t not sigset. - -Wed Jan 14 20:27:44 1998 - - * ace/OS.h: - The new location for AF_ANY and AF_FILE was in the middle of a - big #if !ACE_WIN32, hence it was not working for NT, I moved it - further down and now NT is happy. - -Wed Jan 14 19:01:59 1998 Douglas C. Schmidt - - * ace/Message_Queue.cpp (open): In Message_Queue::open - deactivated_ flag is being set to 0 instead of - WAS_INACTIVE. This is causing incorrect return value from - first-time call to activate(). Thanks to Slawomir Kuzniar - for reporting this. - - * ace/Signal.i (is_member): Added an ACE_const_cast(). Thanks to - Oleg Krivosheev for reporting this. - -Wed Jan 14 06:45:52 1998 David L. Levine - - * ace/OS.i: Fixed typo in ACE_Time_Value::operator const timeval * - definition. (select's): cast the ACE_Time_Value to a - const timeval * and then to a timeval * so that they will - compile. - - * tests/Time_Value_Test.cpp (test_ace_u_longlong): made divisors of - operator/ tests explicitly unsigned, to avoid overloading problems - now that there are two division operators. - -Tue Jan 13 16:31:48 1998 Douglas C. Schmidt - - * ace/OS.i: Changed the signature of ACE_Time_Value::operator - timeval *() to return operator const timeval *(). Thanks to - Oleg Krivosheev for reporting this. Changed - several other unsafe casts to use the ACE_const_cast() macro. - -Tue Jan 13 13:30:23 1998 David L. Levine - - * ace/Profile_Timer.cpp (elapsed_time): use floating point - arithmetic for real_time calculation, in case delta_t is - less than ACE_ONE_SECOND_IN_NSECS (and for more precision - otherwise). Thanks to Brian Mendel for tripping over this. - - * ace/Basic_Types.{h,i} (ACE_U_LongLong): added - operator/ (const double). - - * ace/OS.h: moved definition of AF_FILE, etc., to _after_ the - #include of sys/socket.h. That way, the #ifndef AF_FILE - protection will work properly on Linux/glib2. Thanks to - Amos Shapira for breaking silence and - reporting this. - -Mon Jan 12 20:19:54 1998 Douglas C. Schmidt - - * ace/SString.i: Replaced all uses of NULL with 0 since NULL - causes problems with some lame C++ compilers. - - * ace/SString.i: Moved one of the inline find() methods down - so that GCC doesn't complain anymore. - - * tests/Reactor_Timer_Test.cpp (main): Changed long i to size_t i - to be consistent. - - * ace/Select_Reactor.h: Updated the explanation of how the - ACE_Select_Reactor_Token works. Thanks to Detlef Becker for - explaining this in great detail. - - * tests/test_config.h: Changed the type of all the consts to - size_t rather than int. This may cause a bit of upheaval at - first since we'll need to fix some other types. But it's the - "Right Thing"[TM] to do. - -Mon Jan 12 18:31:23 1998 Nanbor Wang - - * Start renaming MSVC 4.2 workspace/makefile names. - - * apps/Gateway/Peer/Peer4.{mdp,mak}: - * apps/Gateway/Gateway/Gateway4.{mdp,mak}: Made them in synch with - VC 5.0's status. - -Mon Jan 12 12:30:34 1998 David L. Levine - - * ace/config-linux-common.h: moved - ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES so that it isn't used - with egcs. Thanks to Gonzo for testing this. - - * tests/Service_Config.test: changed type of VARIETIES to u_int to - avoid signed/unsigned comparison in main. Thanks to Gonzo for - reporting this. - - * ace/config-linux-common.h: added ACE_HAS_TEMPLATE_TYPEDEFS and - ACE_HAS_TYPENAME_KEYWORD. Thanks to Oleg Krivosheev - for reporting these. - - * ace/config-vxworks5.x.h: merged the two VxWorks configs (g++ and - ghs) into this new config for easier maintenance. Added - ACE_THR_PRI_FIFO_DEF, set to 6. - - * tests/Reactor_Timer_Test.cpp (main): cast i to u_long to avoid - signed/unsigned comparison. - -Sun Jan 11 23:02:07 1998 Irfan Pyarali - - * tests/SString_Test.cpp (main): Removed the "silly" strings from - the tests. They are annoying and cause memory leaks. - -Sun Jan 11 22:16:28 1998 Nanbor Wang - - * apps/Gateway/Peer/Peer.{h,cpp} (transmit): Changed the function - to return the result of transmission. - (transmit_stdin): Make sure the function returns proper results - of transmission. - -Sun Jan 11 16:18:15 1998 Douglas C. Schmidt - - * ACE version 4.4.18, released Sun Jan 11 16:18:15 1998. - -Sun Jan 11 00:00:26 1998 Douglas C. Schmidt - - * apps/Gateway/Gateway/Gateway.cpp (parse_connection_config_file): - Fixed a typo, == should be =. Thanks to David Levine for - reporting this. - - * apps/Gateway/Peer/Peer.cpp (recv), - apps/Gateway/Gateway/Concrete_Connection_Handlers.cpp (recv): - Added a cast to remove a GCC warning about signed/unsigned - comparisons. Thanks to David Levine for reporting this. - - * ace/Log_Msg.cpp (log): Made a minor change to move where the - message is copied from thread-specific storage into the transfer - buffer. Thanks to Patrick J. McNerthney - for reporting this. - - * apps/Gateway/Peer/Peer: Added new logic to transmit subscription - requests to the Gateway. - - * apps/Gateway/Gateway/Event.h (class Event_Header): Make sure - that we correctly encode/decode the connection_id. - -Sat Jan 10 18:17:06 1998 Douglas C. Schmidt - - * apps/Gateway/Gateway/Event.h: Added the event priority_ field to - the Event_Key. We don't currently use this, but we may some - day. - - * apps/Gateway/Gateway/Concrete_Connection_Handlers.cpp (put): - Changed the forward() method to process() since our new scheme - will need to do more than just forward, e.g., it will need to - handle subscriptions. - - * apps/Gateway/Gateway/Connection_Handler: Made the accessors - const member functions and also added accessors for the - Event_Channel * so this can be set by the - Connection_Handler_Acceptor::accept_svc_handler() method. - - * apps/Gateway/Gateway/Connection_Handler: Added mutators so that - we can set the local and remote addresses outside of the - constructor. - - * apps/Gateway/Gateway/Options: Added a connection_id() accessor - to set/get the connection id. This makes it possible to allow - Peers to connection with the Gateway. - - * apps/Gateway/Gateway/Gateway.cpp (parse_connection_config_file): - Added a sanity check to ensure that the connection ids start at - 1 and increment by 1. - -Sat Jan 10 22:37:37 1998 David L. Levine - - * ace/SString.i (find): changed type of local i to size_t to - avoid signed/unsigned comparison. - -Sat Jan 10 14:57:01 1998 - - * ace/Env_Value_T.h: - The return value for the assignment operator had no template - parameter, ditto for the arguments of the copy constructor and - the already mentioned operator. - -Sat Jan 10 13:20:08 1998 Nanbor Wang - - * tests/Conn_Test.cpp: Moved template instantiation codes around - to avoid warnings. - -Sat Jan 10 01:36:08 1998 Irfan Pyarali - - * ace/SString: Made the following changes to make the ACE string - class look more like the STL string class: - - - Added npos to all classes. - - - Added non-const reference operator[]. - - - Changed operator= and operator+= to return *this. - - - Added STL like find and rfind routines - - - Made the three classes be a similar as possible. - - - Changed the implementation of strstr to use the C library - strstr function. - - - Added constructors from single characters. - - - Made substring a const method. - -Fri Jan 9 19:11:39 1998 Nanbor Wang - - * tests/Map_Manager_Test.cpp (test_hash_map_manager): Added - ACE_UNUSED_ARG to eliminate warnings. - - * ace/Hash_Map_Manager.cpp (rbegin): Added more static cast to - eliminate warning messages. - -Fri Jan 9 11:35:53 1998 Douglas C. Schmidt - - * examples/Service_Configurator/IPC-tests/server/server_test.cpp: - Fixed a syntax error. Thanks to John Mulhern - <9107@MN3.LAWSON.lawson.com> for reporting this. - - * ace/Log_Msg.cpp (log): Changed abort_prog == 0 to abort_prog so - that STDERR would be printed correctly. - - * ACE-categories: Added all the ACE files into the ACE-categories - listing. Thanks to Andres Kruse for motivating this. - - * include/makeinclude/platform_sunos5_egcs.GNU (CXX): Removed - -pipe from CC and CXX. It was already in CCFLAGS. - -Fri Jan 09 11:56:44 1998 Irfan Pyarali - - * ace/config-win32.h (ACE_ORBIX_HAS_NAMESPACES): By default, you - will get the proper namespace usage for Orbix. If you don't - like this, comment out the #define ACE_ORBIX_HAS_NAMESPACES line - or #undef ACE_ORBIX_HAS_NAMESPACES in your config.h file after - including this config-win32.h. - -Fri Jan 09 07:04:47 1998 David L. Levine - - * include/makeinclude/platform_sunos5_g++.GNU: removed - -pipe from CC and CXX. It was already in CCFLAGS. - - * include/makeinclude/platform_vxworks5.x_g++.GNU: added - target-dependent support for symbol table extractor, and - disabled symbol table extraction (POSTLINK) by default. - Thanks to Keith Nicewarner for - reporting problems with this on PPC604 targets. - - * ace/config-linux-common.h: added ACE_HAS_STDCPP_STL_INCLUDES - and removed ACE_LACKS_ACE_IOSTREAM. Thanks to James CE Johnson - for reporting these. - - * tests/run_tests.vxworks: added Env_Value_Test. - -Fri Jan 09 00:14:20 1998 Nanbor Wang - - * apps/Gateway/Gateway/Connection_Handler_Acceptor.cpp: - * apps/Gateway/Gateway/Config_Files.cpp: Defined - ACE_BUILD_SVC_DLL flag. All declarations of an exported class - must be declared with the same exporting flag. - - * apps/Gateway/Peer/Options.h: Updated the path of include file - Event.h. - -Thu Jan 08 22:11:57 1998 Nanbor Wang - - * ace/Env_Value_T.i (ACE_Convert): Added static cast for int and - short conversion funcions. - -Thu Jan 08 21:37:30 1998 Douglas C. Schmidt - - * ACE version 4.4.17, released Thu Jan 08 21:37:30 1998. - -Thu Jan 8 19:50:43 1998 Douglas C. Schmidt - - * ace/Task: Added a virtual destructor for ~ACE_Task_Base. Thanks - to Oleg Krivosheev for suggesting this. - - * ace: Added a new config-sunos5.5-egcs.h for the EGCS compiler. - Thanks to Oleg Krivosheev for contributing - this. - - * include/makeinclude: Added a new platform macros file for the - EGCS compiler on Solaris 2.x. Thanks to Oleg Krivosheev - for contributing this. - - * include/makeinclude/platform_sunos5_g++.GNU (CXX): Added the - -pipe flag. - - * man: Updated all the manual pages. - - * ace/Log_Msg: Added changes to allow the logging of custom built - log records. The main reason for these changes is to allow code - to handle the logging of out of memory conditions without - allocating any additional memory. Thanks to Patrick - J. McNerthney for this feature. - - * ace/Log_Msg: Added a new method called log_priority_enabled(), - which returns true if the priority is enabled (gee, is *that* - what it does? ;-)). Thanks to Patrick J. McNerthney - for this feature. - - * examples/Service_Configurator/IPC-tests/server/server_test.cpp - (main): Revised the driver program so that it doesn't create an - explicit ACE_Service_Config object. Thanks to John Mulhern - <9107@MN3.LAWSON.lawson.com> for reporting this. - - * apps/Gateway/{Gateway,Peer}/Options.cpp: Oops, ACE_BUILD_DLL - should be ACE_BUILD_SVC_DLL, yikes! Thanks to Jeff Hellzen - for reporting this. - - * apps/Gateway/{Peer,Gateway}/Options.{h,cpp}: Added a missing - #define ACE_BUILD_DLL and a missing ACE_Svc_Export. Thanks to - Jeff Hellzen for reporting this. - - * ace/Select_Reactor.cpp (suspend_i): The clr_bit call was - mistakenly made on the write mask, rather than the read mask. - Thanks to Billy Quinn for reporting this. - -Thu Jan 08 16:02:33 1998 Nanbor Wang - - * ace/Hash_Map_Manager.{h,cpp}: Added STL-styled iterator - functions. - - * tests/Map_Manager_Test.cpp: - * tests/Hash_Map_Manager_Test.cpp: - * tests/Conn_Test.cpp: - * ace/Local_Name_Space.cpp: - * ace/Filecache.cpp: Added missing template instantiation codes. - -Thu Jan 08 11:05:15 1998 - - * ace/ace_dll.dsp: - * ace/ace_lib.dsp: - Added the new Shared_Memory.cpp file to the project. - -Wed Jan 07 20:40:45 1998 David L. Levine - - * ace/OS.h: protect #define of AF_FILE, because Linux/RedHat 5.0 - #defines it in /usr/include/socketbits.h. Thanks to James CE - Johnson for reporting this. - - * tests/test_config.h (set_output): "if (! test_dir)" instead of - "if (test_dir)" so the output filename ends up non-null. - - * ace/Shared_Memory.{h,cpp},Makefile (~ACE_Shared_Memory): made - virtual and non-line. Added file Shared_Memory.cpp to contain - the definition. - -Wed Jan 07 17:59:57 1998 Nanbor Wang - - * ace/Free_List.i (add): Only delete freeed item when we hit the - high water mark, not the other way around. Thanks to Stuart - Myles for pointing this out. - -Wed Jan 7 17:46:09 1998 James C Hu - - * examples/Timer_Queue/Thread_Timer_Queue_Test.h: - * examples/Timer_Queue/Thread_Timer_Queue_Test.cpp: - * examples/Timer_Queue/Reactor_Timer_Queue_Test.h: - * examples/Timer_Queue/Reactor_Timer_Queue_Test.cpp: - * examples/Timer_Queue/Driver.h: - * examples/Timer_Queue/Driver.cpp: - Added virtual destructors to classes that needed them. - -Wed Jan 7 16:28:16 1998 Douglas C. Schmidt - - * ace/Event_Handler_T.cpp: Reordered the initializers in the - ACE_Event_Handler_T constructor so G++ doesn't complain. Thanks - to Oleg Krivosheev for reporting this. - - * ace/Shared_Memory.h: Added a virtual destructor to the - ACE_Shared_Memory abstract base class so that EGCS won't - complain. Thanks to Oleg Krivosheev for - reporting this. - - * ace/Event_Handler_T.h: Had to include the *.cpp file into .h - when ACE_TEMPLATES_REQUIRE_SOURCE is defined. Thanks to Oleg - Krivosheev for reporting this. - -Wed Jan 07 14:31:34 1998 Douglas C. Schmidt - - * ACE version 4.4.16, released Wed Jan 07 14:31:34 1998. - -Wed Jan 7 13:38:28 1998 Douglas C. Schmidt - - * tests/test_config.h (set_output): Added an environment variable - to specify where to put the log directory: ACE_TEST_DIR. Thanks - to Keith Nicewarner for reporting this. - - * ace/Service_Repository.cpp (close): Removed a fragment of - redundant code. Thanks to Eric Newton and Alex - Chan for reporting this. - -Tue Jan 06 17:19:13 1998 Nanbor Wang - - * ace/Containers.{h,cpp} (ACE_Unbounded_Set[_Iterator]): Added - STL-styled iterator functions. Changed the internal - representation of ACE_Unbounded_Set within iterators from a - reference to a pointer. We need this to compare if two - iterators are refering to the same set or not. - -Tue Jan 6 14:11:54 1998 Carlos O'Ryan - - * tests/Reader_Writer_Test.cpp: - Reverted to revision 4.21 since the latest one (4.23) fails; - thanks to Irfan for this solution. - -Tue Jan 06 10:37:49 1998 David L. Levine - - * ace/OS.i (rw_trywrlock_upgrade): moved the #if 0 up a bit so - that it builds on Linux/non-glibc. For some reason, its - preprocessor was getting confused. - - * ace/OS.i (nanosleep): convert nanoseconds to microseconds - by dividing by 1000, not multiplying. Thanks to - Mitch Kuninsky for reporting this. - - * ace/config-mvs.h: added ACE_LACKS_LONGLONG_T because MVS doesn't - support it. Thanks to Chuck Gehr for - confirming that. - -Mon Jan 5 01:20:51 1998 Nanbor Wang - - * ace/Map_Manager.{h,cpp}: Made operator == and != and their - arguments const. - -Sun Jan 04 19:45:47 1998 David L. Levine - - * ace/IPC_SAP.cpp (enable,disable): moved return 0 at end - to inside the #endif, to avoid warning about unreachable - return statement on ghs/VxWorks. Thanks to Brian Mendel - for reporting this. - - * ace/OS.i (rw_trywrlock_upgrade): moved return 0 inside the - #if 0 block to avoid warning about unreachable return statement - on ghs/VxWorks. Thanks to Brian Mendel for reporting this. - - * ace/OS.i (rw_trywrlock_upgrade): added ACE_UNUSED_ARG (rw) - to temporary code. - - * ace/Basic_Types.{h,i},README: replaced ACE_HAS_LONGLONG_T with - ACE_LACKS_LONGLONG_T. ACE_HAS_LONGLONG_T was no longer - being used on many platforms with the scheme in Basic_Types.h. - From now on, we'll assume that a platform has long long - (unless ACE_LACKS_LONGLONG_T is #defined), which should help - porting to new platforms. - - * ace/config-aix-4.{1,2}.x.h,config-dgux-4.11-epc.h, - config-linux-{common,kcc}.h,config-lynxos.h,config-m88k.h, - config-osf1-*.h,config-sunos5.*.h,config-tandem.h: - removed ACE_HAS_LONGLONG_T. - - * ace/config-chorus.h,config-psosim-g++.h,config-vxworks*.h: - added ACE_LACKS_LONGLONG_T. - - * ace/Basic_Types.{h,i} (ACE_U_LongLong): fixed operator/, and - added operator% and operator--. - - * ace/High_Res_Timer.*: changed type of global_scale_factor_ from - u_long to ACE_UINT32. Removed some hacks now that ACE_U_LongLong - has operator%. - - * tests/Time_Value_Test.cpp: added tests of ACE_U_LongLong - operator/ and operator%. - - * ACE-INSTALL.html: added link to Cygus repo patches. Thanks - to Achint Sandhu for providing the URL. - - * ace/OS.{h,i}: added ACE_OS::putenv (). - - * tests/Env_Value_Test.cpp: use ACE_OS::putenv (). - - * tests/Env_Value_Test.cpp: expect (unsigned long) -10 for - TEST_VALUE_NEGATIVE converted to an unsigned long. - Thanks to Jack Erickson for - verifying that it _should_ return (unsigned long) -10. - - * ace/OS.i (strtoul): on Linux with glibc, use ::strtol instead of - ::strtoul and cast the result to an unsigned long. Its ::strtoul - always seems to return 0 for a negative number, at least on - RedHat 4.2/Linux 2.0.30/Alpha with glibc 2.0 (0.961212-5). - - * ace/config-linux-common.h: factored out - ACE_LACKS_SOME_POSIX_PROTOTYPES from glibc and non-glibc - sections to common section. - - * etc/purify.solaris2: added suppression of MIU from putenv. - -Sun Jan 04 17:19:31 1998 Douglas C. Schmidt - - * ACE version 4.4.15, released Sun Jan 04 17:19:31 1998. - -Sun Jan 4 10:11:53 1998 Douglas C. Schmidt - - * ace/OS.i (rw_trywrlock_upgrade): Temporarily comments out this - method since we need to finish implementing it correctly. - - * ace/OS.i (rw_trywrlock_upgrade): Fixed a minor bug where we - weren't releasing the lock correctly if there were competing - readers. - - * apps/Gateway/Gateway/Event_Channel.cpp (put): Uncommented the - code that sets the appropriate locking strategy for the Message - Blocks. - - * apps/Gateway/Gateway/Connection_Handler.h: Made the - remote_addr() and local_addr() accessor methods return - const-correct values. - - * build/SunOS5.5/ace/OS: Revised a bunch of #ifdefs so that we can - selectively enable the ACE rwlock emulation, even if we're - compiling with ACE_HAS_STHREADS in order to get the native - Solaris semaphores. - - * apps/Gateway/Peer/Makefile: Tweaked the Makefile rules to fix - some minor problems. Thanks to David Levine for showing the - way... - -Sun Jan 04 12:37:02 1998 David L. Levine - - * tests/Env_Value_Test.cpp: hacked to work with - ACE_HAS_NONSTATIC_OBJECT_MANAGER. With that, it uses ::putenv (), - which we should wrap in ACE_OS. Also, expanded TEST_THIS to - provide a more helpful log message than just the ASSERT output. - - * ace/config-vxworks5.x-g++.h: removed - ACE_HAS_TEMPLATE_SPECIALIZATION. - - * tests/Hash_Map_Manager_Test.cpp (main): added casts of i->ext_id_ - and i->int_id_ to (char *) to force g++/VxWorks to apply the - conversion from Dumb_String to char *. - -Sun Jan 04 09:51:59 1998 Nanbor Wang - - * apps/Gateway/Gateway/Options.{h,cpp}: Removed macros to export - this class out of DLL. They are no longer needed. - - * apps/Gateway/Gateway/Gateway.dsp: Updated source file listings. - -Sat Jan 3 22:25:15 1998 Douglas C. Schmidt - - * apps/Gateway/Gateway: Changed the name of the ACE_Event_Channel - class to Event_Channel since this class wasn't a part of the ACE - library. - - * apps/Gateway/Gateway/Event_Channel.h: Updated the inheritance - relationship for Event_Channel so that it inherits from - ACE_Event_Handler rather than ACE_Task. ACE_Task was - overkill... - - * apps/Gateway/Gateway: Removed the supplier_id from all the - files. We didn't use this anyway and it was just confusing. - Also, renamed Proxy_* to Connection_* to underscore the fact - that the Supplier_Handler and Consumer_Handler work atop - *connections*. The previous naming scheme was too abstract for - its own good. - -Sat Jan 03 14:16:40 1998 Nanbor Wang - - * ace/Map_Manager.cpp (ACE_Map[_Reverse]_Iterator): Fixed the - initial iterator position. - -Fri Jan 02 18:43:14 1998 Douglas C. Schmidt - - * ACE version 4.4.14, released Fri Jan 02 18:43:14 1998. - -Fri Jan 2 17:39:04 1998 Douglas C. Schmidt - - * apps/Gateway/Peer/Options.cpp (Options): Rearranged the order of - the parameters in the base/member initialization section to make - GCC happy. Thanks to David Levine for getting on me about this. - - * apps/Gateway/Gateway/Options.h: Changed DEFAULT_TIMEOUT - to MAX_TIMEOUT to be consistent. Thanks to David - Levine for reporting this. - -Fri Jan 2 17:25:05 1998 Nanbor Wang - - * tests/Map_Manager_Test.cpp: Added codes to test STL-styled - functions in ACE_Map_Manager. - - * apps/Gateway/Gateway/Proxy_Handler.cpp: - * apps/Gateway/Gateway/Proxy_Handler_Connector.cpp: - * apps/Gateway/Gateway/Event_Channel.cpp: - * apps/Gateway/Peer/Peer.cpp: - * ace/Local_Name_Space.cpp: - * examples/ASX/Event_Server/Event_Server/Peer_Router.cpp: - * examples/ASX/Event_Server/Transceiver/transceiver.cpp: - * examples/ASX/UPIPE_Event_Server/Supplier_Router.cpp: - * examples/ASX/UPIPE_Event_Server/Consumer_Router.cpp: - * examples/Connection/blocking/SPIPE-connector.cpp: - * examples/Connection/misc/test_upipe.cpp: - * examples/Connection/non_blocking/test_sock_connector.cpp: - * examples/Connection/non_blocking/test_spipe_connector.cpp: - * examples/Connection/non_blocking/test_tli_connector.cpp: - * examples/Connection/non_blocking/test_lsock_connector.cpp: - * netsvcs/clients/Tokens/manual/manual.cpp: - * netsvcs/lib/TS_Clerk_Handler.cpp: - * apps/Gateway/Gateway/Proxy_Handler_Connector.cpp: Added some - more explicit template instantiations. - - * ace/Map_Manager.{h,cpp}: Added back comparison operators for - ACE_Map_Iterator and ACE_Map_Reverse_Iterator. - - * ace/Token_Invariants.cpp: - * ace/Token_Collection.cpp: - * ace/Token_Manager.cpp: Added missing ACE_Map_Reverse_Iterator. - - * ace/Map_Manager.h: Remove unnecessary method declarations from - ACE_Map_Iterator adn ACE_Map_Reverse_Iterator. - - * examples/Connection/non_blocking/test_tli_connector.cpp: - * examples/Connection/non_blocking/test_sock_connector.cpp: - * examples/Connection/non_blocking/test_lsock_connector.cpp: - * examples/Connection/non_blocking/test_spipe_connector.cpp: - * examples/Connection/misc/test_upipe.cpp: - * examples/Connection/blocking/SPIPE-connector.cpp: - * examples/ASX/UPIPE_Event_Server/Supplier_Router.cpp: - * examples/ASX/UPIPE_Event_Server/Consumer_Router.cpp: - * examples/ASX/Event_Server/Transceiver/transceiver.cpp: - * examples/ASX/Event_Server/Event_Server/Peer_Router.cpp: - * apps/JAWS/clients/Caching/http_handler.cpp: - * apps/JAWS/clients/Blobby/Blob.cpp: - * apps/Gateway/Peer/Peer.cpp: - * apps/Gateway/Gateway/Event_Channel.cpp: - * apps/Gateway/Gateway/Proxy_Handler.cpp: - * apps/Gateway/Gateway/Proxy_Handler_Connector.cpp: - * tests/Reactor_Performance_Test.cpp: - * tests/Priority_Reactor_Test.cpp: - * tests/Map_Manager_Test.cpp: - * tests/Conn_Test.cpp: - * netsvcs/lib/TS_Clerk_Handler.cpp: - * ace/Token_Manager.cpp: - * ace/Token_Invariants.cpp: - * ace/Token_Collection.cpp: - * ace/Local_Name_Space.cpp: Added explicit template instantiation - for ACE_Map_Iterator_Base. - - * ace/Map_Manager.{h,cpp}: Added a new class ACE_Map_Iterator_Base - to abstract out most common functionalities from - ACE_Map_Iterator and ACE_Map_Reverse_Iterator. Added some - missing functions to both iterator classes. - -Fri Jan 2 12:39:45 1998 Carlos O'Ryan - - * ace/Map_Manager.h: - Another declaration removed from ACE_Map_Reverse_Iterator, - operator* is defined in the base class. - - * tests/Conn_Test.cpp: - * tests/Priority_Reactor_Test.cpp: - * tests/Reactor_Performance_Test.cpp: - The instantiation of ACE_Map_Manager *requires* instantiating - ACE_Map_Reverse_Iterator. - - * ace/OS.i: - Cannot use ACE_ASSERT in OS.i, at least it make SGI compiler - unhappy. - - * ace/Map_Manager.cpp: - Several methods for ACE_Map_Manager were not given their fully - qualified name. - - * ace/OS.i: - The error code should be stored in errno, not in "error". - -Fri Jan 2 17:02:36 1998 Chris Cleeland - - * tests/run_tests.sh: Added Env_Value_Test to the list of tests to - run. - - * tests/Env_Value_Test.cpp (main): Fixed wrong test for negative - values with unsigned longs. Thanks to David Levine and - Linux/Alpha for finding this. - - * tests/Env_Value_Test.cpp (main): Changed the definition of the - TEST_THIS macro to be all on one line. While ugly, this helps in - locating the line when ACE_ASSERT fails, since allowing the macro - to have multiple lines skews the line # reported by ACE_ASSERT. - - * ace/Env_Value_T.*: Fixed lots of little bugs that got past both - g++ and Solaris compilers, but were caught by the ever-skeptical - SGI compiler. This included providing a definition for the missing - 'varname(void)' method. - -Fri Jan 02 10:12:28 1998 Steve Huston - - * ace/config-hpux-10.x-g++.h: Added #define HPUX_10 to catch OS - version-dependent code correctly. - -Fri Jan 02 07:06:44 1998 David L. Levine - - * apps/Gateway/Gateway/Makefile: restored the .obj/*.o targets. - They don't affect the build of the shared lib and are used if - the unshared lib is built. - - * apps/Gateway/Gateway/Options.h: added missing , in enum definition. - - * apps/Gateway/Gateway/Options.cpp (Options ctor): reordered - initializers to match declaration order. - - * apps/Gateway/Gateway/Config_Files.cpp (read_entry): fixed syntax - error, missing "if" after "else". Added #include of Options.h. - - * ace/OS.i (rw_trywrlock_upgrade): added ACE_UNUSED_ARG (rw) with - STHREADS. - - * ace/Synch.i (tryacquire_write_upgrade): only define if - ACE_HAS_THREADS. - - * tests/test_config.h: hacked ACE_INIT_LOG to work on VxWorks. - VxWorks gets upset if its asked to unlink a nonexistant file. - - * ace/Basic_Types.*: if using ACE_U_LongLong, #define - ACE_USES_ACE_U_LONGLONG and use that in the .i and .cpp files - instead of repeating all of the complex preprocessor tests - in Basic_Types.h. Thanks to Carlos for suggesting this. - - * ace/Env_Value_T.cpp: added protection against multiple inclusion. - - * tests/Env_Value_Test.cpp: added ACE_Env_Value instantiation. - -Fri Jan 02 00:47:33 1998 Douglas C. Schmidt - - * ACE version 4.4.13, released Fri Jan 02 00:47:33 1998. - -Fri Jan 2 00:17:04 1998 Douglas C. Schmidt - - * Reader_Writer_Test.cpp: Changed from an ACE_RW_Mutex to an - ACE_RW_Thread_Mutex so that we can use the new - tryacquire_write_upgrade() method. - - * ace/Env_Value_T.h: Reformatted the file a bit to conform to - ACE coding conventions. - -Thu Jan 1 12:04:29 1998 Douglas C. Schmidt - - * apps/Gateway/Peer/Options.cpp (parse_args): Changed the option - to set the passive acceptor port from -p to -a. This is now - consistent with the option for active connector port number, - which is -c. - - * apps/Gateway/Gateway/Gateway.cpp (fini): Added a call to - ACE::remove_stdin_handler(), which removes the handler for - ACE_STDIN so the gatewayd will shutdown cleanly. - - * ace/ACE: Added a new method, remove_stdin_handler(), which is - the inverse of the register_stdin_handler() method. However, - I'm not sure how to make this work on NT! - - * examples/Reactor/Misc/notification.cpp: Removed some - CHORUS-specific, which should be a no-op with our new signal() - and sigaction() scheme. - - * ace/OS.i: Enhanced the signal() and sigaction() wrappers so that - they simply ignore signums of 0. This means that we don't need - to special case all this stuff throughout ACE anymore. - - * ace/OS.h: Changed all the #defines for various SIG* so that they - are all 0. This way, we can ensure that the signal() functions - in ACE_OS can correctly ignore these signals. This should clean - up a ton of platform-dependent code throughout ACE. - - * apps/Gateway/Gateway/File_Parser.cpp (getint): Added a new - special-case check for the '*' character, which indicates "use - the default value for this field." - - * apps/Gateway/Gateway/Options: Added a new option to provide a - default max retry timeout. - - * tests/Reader_Writer_Test.cpp: Enhanced the test so that it - exercises the new "upgrade" feature of RW_Thread_Mutexes. - - * ace/{OS,Synch}: Added new methods, - ACE_OS::rw_trywrlock_upgrade() and - ACE_RW_Thread_Mutex::tryacquire_write_upgrade() that - conditionally upgrade a read lock to a write lock. This only - works if there are no other readers present, in which case the - method returns 0. Otherwise, the method returns -1 and sets - errno to EBUSY. Note that the caller of this method *must* - already possess this lock as a read lock. - - * apps/Gateway/{Gateway,Peer}/Makefile: Removed the $(VLIB) macro - so that we don't try to build the lib*.a files by default. - Thanks to David Levine for explaining this. - - * apps/Gateway/Gateway: Added new Options.{h,cpp} files and - rearranged the program to centralize all options processing in - an Options Singleton. - - * apps/Gateway/Peer/Options.cpp (parse_args): Changed the - connector and acceptor options to use a more generalizable - format. Now we can set the Consumer and Supplier port numbers - independently. - - * apps/Gateway/Gateway/Event.h: This is currently where the macros - from the following bullets have been moved, so they can be - shared by the Peer and Gateway components. - - * ace/OS.h: Moved the ACE_DEFAULT_{GATEWAY,PEER}_SERVER_PORT - macros into the Gateway application, where they belong. - - * apps/Gateway/Peer/Options.cpp (parse_args): Changed the option - to set the passive acceptor port from -p to -a. This is now - consistent with the option for active connector port number, - which is -c. - - * apps/Gateway/Gateway/Gateway.cpp (fini): Added a call to - ACE::remove_stdin_handler(), which removes the handler for - ACE_STDIN so the gatewayd will shutdown cleanly. - - * ace/ACE: Added a new method, remove_stdin_handler(), which is - the inverse of the register_stdin_handler() method. However, - I'm not sure how to make this work on NT! - - * examples/Reactor/Misc/notification.cpp: Removed some CHORUS-specific - code, which should be a no-op with our new signal() and sigaction() - scheme. - - * ace/OS.i: Enhanced the signal() and sigaction() wrappers so that - they simply ignore signums of 0. This means that we don't need - to special case all this stuff throughout ACE anymore. - - * ace/OS.h: Changed all the #defines for various SIG* so that they - are all 0. This way, we can ensure that the signal() functions - in ACE_OS can correctly ignore these signals. This should clean - up a ton of platform-dependent code throughout ACE. - - * apps/Gateway/Gateway/Gateway.cpp (init): Revised the code a bit - to factor out platform-dependent signal handling stuff in the - right place. - - * apps/Gateway/Gateway/gatewayd.cpp: Cleaned up the gatewayd main - program so that it reuses more ACE components and so that it is - more portable. - -Thu Jan 01 18:24:56 1998 Nanbor Wang - - * apps/Gateway/Gateway/Gateway.dsp: Added new file Options.cpp. - - * apps/Gateway/Gateway/Options.cpp (ACE_BUILD_SVC_DLL): Added - #define ACE_BUILD_SVC_DLL. - - * netsvcs/lib/Base_Optimizer.i: Removed this file. - - * netsvcs/lib/Base_Optimizer.h: Added codes to include in the - source file conditionally if needed. - - * netsvcs/lib/Base_Optimizer.cpp: Moved template implementation - from .i file. Removed ACE_INLINE keyword. - - * netsvcs/lib/Server_Logging_Handler.cpp: Added explicit template - instantiation macros. - -Thu Jan 01 17:13:06 1998 David L. Levine - - * apps/Gateway/Peer/Peer.cpp (Peer_Connector::open): added - return 0 statement at end. - - * apps/Gateway/Gateway/Options.cpp (Options ctor): reordered - initializers to match declaration order. - - * apps/Gateway/Gateway/Makefile: removed LOBJ and SHOBJ macros - because they're not needed. And, restored BUILD so that static - lib will be built if requested. - - * include/makeinclude/rules.lib.GNU: added OBJEXT macro, defaulted - to "o", and use it in VOBJS definition. - - * include/makeinclude/wrapper_macros.GNU: if building shared libs - only, set OBJEXT to "so" and VDIR to .shobj/, so that only shared - objects will be built. - - * apps/Gateway/Peer/Peer.cpp: added template instantiations. - - * netsvcs/lib/Base_Optimizer.*,Makefile: moved inline functions - to .i file and changed inline to ACE_INLINE. - - * netsvcs/lib/Server_Logging_Handler_T.{h,cpp}: don't use - Base_Optimizer with g++. Some versions of g++ 2.7.x have - trouble with its inline template member functions, especially - if __ACE_INLINE__ is disabled. - -Thu Jan 01 07:56:17 1998 Douglas C. Schmidt - - * ACE version 4.4.12, released Thu Jan 01 07:56:17 1998. - -Thu Jan 01 00:28:46 1998 Nanbor Wang - - * apps/Gateway/Peer/Peer.dsp: Added a new file "Options.cpp" into - this project. - - * tests/Env_Value_Test.cpp (main): Changed variable name: 'environ' - to 'envp'. Real OSes don't understand what the word means - and Access Violations will occur. - - * tests/run_tests.bat: Added Env_Value_Test. - - * tests/version_tests/version_tests.dsw: - * tests/tests.dsw: Added Env_Value_Test.dsp. - - * tests/version_tests/Env_Value_Test.dsp: - * tests/Env_Value_Test.dsp: New file. - -Thu Jan 1 00:00:00 1998 Douglas C. Schmidt - - * Happy New Year! Here's a thought for the new year, courtesy of - Sumedh: - - Nothing in the world is permanent, - and we're foolish when we ask anything to last; - but surely we're still more foolish - not to take delight in it while we have it. - - - W.Somerset Maugham (Razor's Edge) - -Wed Dec 31 19:10:59 1997 Douglas C. Schmidt - - * apps/Gateway/Peer/Peer: Added the hooks for making the Peer a - Connector, as well as an Acceptor. Now it's time to have some - fun. - - * apps/Gateway/Peer/peerd.cpp: Cleaned up the peerd main program - so that it reuses more ACE components and so that it is more - portable. - - * netsvcs/servers/main.cpp (main): Revised the code a bit to - factor out platform-dependent signal handling stuff in the right - place. - - * apps/Gateway/Peer: Factored out some common initialization code - to create an Options Singleton. Yowza! - - * apps/Gateway/README: Improved the documentation so that its - easier to tell what's supposed to happen and how to configure - the system. - - * apps/Gateway/Peer/Peer: Moved the Peer_Acceptor into the Peer.h - file and updated the documentation to clarify what's going on - better. - - * examples/Reactor/Dgram/: Enhanced the examples to make sure they - close() the dgram endpoint when the object is removed from the - Reactor. Thanks to Evgeny Beskrovny - for reporting this. - - * ace/Obstack.cpp: Fixed a stupid bug in the ACE_Obstack - constructor. Thanks to David Levine for reporting this. - - * ace/Local_Name_Space_T.h: Updated the documentation for class - ACE_Name_Space_Map to make it more clear. - -Wed Dec 31 21:21:50 1997 David L. Levine - - * examples/Reactor/Dgram/{CO,Dgram.cpp} (handle_close): added - ACE_UNUSED_ARG (handle). - - * tests/Env_Value_Test.cpp (main): removed unused arg argv and - local envargv. undef'ed ACE_HAS_NONSTATIC_OBJECT_MANAGER because - it can't deal with the three arguments to main (). - -Wed Dec 31 16:25:16 1997 Chris Cleeland - - * ace/Env_Value_T.*: Added a new template (ACE_Env_Value) which is - a typesafe encapsulation of environment variables with the - ability to provide a value to be used as a default if the - variable isn't set. An example of its use can be seen in the - corresponding test, tests/Env_Value_Test.cpp. Thanks to Carlos - O'Ryan for giving me the seed that started this. - - * tests/Env_Value_Test.cpp: Added test for the new template added - above. - - * tests/Makefile: Added new Env_Value_Test test to the Makefile. - - * ace/OS.{h,i} (strtod): Added new function for converting strings - to doubles. - -Tue Dec 30 22:07:44 1997 David L. Levine - - * ace/High_Res_Timer.cpp (elapsed_time): added a cast in - calculation of useconds to avoid MSVC++ warning about narrowing. - Thanks to Nanbor for reporting this. - - * ace/OS.i (gethrtime): commented out high-res tick counter on Linux - because it doesn't seem to work properly. Use ::gettimeofday () - instead. - - * tests/Basic_Types_Test.cpp (main): replaced #ifdef VXWORKS && ghs - with !ifdef ACE_HAS_WCHAR_TYPEDEFS_CHAR. - - * ace/Map_Manager.cpp (operator*): fixed typo in "ACE_Map_Entry". - - * ace/OS.h: added ACE_NSIG. In addition, I removed this: - - // Why is this defined? It must be a std C library symbol. - #if !defined (NSIG) - #define NSIG 0 - #endif /* NSIG */ - - We #define NSIG elsewhere on platforms (VxWorks, MVS) that need it. - #defining it to be 0 isn't good; it's better to catch the lack of - NSIG at compile time than at run time. - - * ace/{Log_Msg.cpp,OS.i,Select_Reactor.cpp,Signal.*,WFMO_Reactor.i}, - tests/Sigset_Ops_Test.cpp: replace NSIG with ACE_NSIG. - - * ace/Basic_Types.{h,i}: only use u_longlong_t on sun. Added - operator++ to ACE_U_LongLong, and tweaked calculation in operator/. - - * tests/Time_Value_Test.cpp (test_ace_u_longlong_): added test of - operator+, and one simple test of operator/. - - * ace/Filecache.h: removed extra , in enum ACE_Filecache_Flag definition. - -Tue Dec 30 20:32:03 1997 Nanbor Wang - - * ace/Map_Manager.{h,cpp}: Added STL-styled iterator function. - Changed the references to ACE_Map_Manager within interator - classes to pointers so we can check errors. - -Tue Dec 30 14:56:18 1997 Douglas C. Schmidt - - * ace/Obstack: Enhanced ACE_Obstack so that it can be given a - pointer to an allocator strategy. This allows users to take - complete control of where the memory comes from for the Obstack. - - * ace/Obstack: Changed the default value of "size" so that it is - (4096 - sizeof (ACE_Obstack)). - - * ace/Obstack: Added a new ACE_Obchunk constructor to simplify - some of the code. - -Mon Dec 29 20:21:32 1997 Steve Huston - - * include/makeinclude/rules.lib.GNU: Adjusted dependencies on building - a shared library to be on the object modules it will link in, not - necessarily $(VSJOBJ). - -Mon Dec 29 18:53:35 1997 James C Hu - - * ace/Filecache.h: Added an enum type, ACE_Filecache_Flag, which - gets passed into the ACE_Filecache_Handle constuctor to help - determine whether or not to use memory mapping (on Windows NT, - we sometimes do not want to memory map). - - * ace/Filecache.cpp: Required modifications to accomodate the - ACE_Filecache_Flag parameter. - -Mon Dec 29 15:37:24 1997 Nanbor Wang - - * ace/OS.i (event_timedwait): Added codes to guard against - negative wait time since we are passing an absolute time value - here, we may way past the target time when it gets called. - Thanks to Norbert Rapp for pointing - this. - -Mon Dec 29 13:57:43 1997 Carlos O'Ryan - - * ace/XtReactor.cpp: - Fixed syntax error, apparently some kind of typo. - - * ace/OS.h: - The ACE_*_cast() macros had (IMHO) surprizing priority, added - some parenthesis to make them behave as the new cast operators - are supposed to do. - -Mon Dec 29 08:59:28 1997 David L. Levine - - * ace/Basic_Types.h: Linux w/o glibc 2.0 doesn't have u_longlong_t, - so use "unsigned long long" for it. - - * ace/Task.cpp (activate): added ACE_UNUSED_ARG (thread_handles) on - non-threaded platforms. - - * ace/Thread_Manager.cpp (wait): added ACE_UNUSED_ARG - (abandon_detached_threads) on non-threaded platforms. - - * performance-tests/Misc/childbirth_time.cpp (prof_ace_os_thread): - added ACE_UNUSED_ARG (iteration) on non-threaded platforms. - - * performance-tests/Misc/preempt.cpp (main): added ACE_UNUSED_ARG - for argc and argv on non-threaded platforms. - - * include/makeinclude/platform_linux.GNU: enabled compiler warnings - by replacing -w with -Wall -Wpointer-arith in CFLAGS. - - * ace/ACE.cpp (count_interface,get_handle,get_ip_interfaces): use - same code for LynxOS as for __unix. - - * ace/OS.h: on LynxOS, redefine NSIG to be one greater than the - highest-numbered signal. LynxOS' signal.h #defines it to be - equal to the highest-numbered signal, 64. - -Mon Dec 29 08:35:17 1997 Steve Huston - - * include/makeinclude/platform_hpux_aCC.GNU: Removed the PRELIB - and PRELIB_USES_OBJ_ONLY stuff; merged in macros for building - on HP-UX 11.00. - * include/makeinclude/platform_hpux11_aCC.GNU - Removed this file. - The 10.x and 11.x builds are now both controlled by - platform_hpux_aCC.GNU. - -Sun Dec 28 10:50:54 1997 Douglas C. Schmidt - - * ACE version 4.4.11, released Sun Dec 28 10:50:54 1997. - -Sat Dec 27 18:03:52 1997 Nanbor Wang - - * ace/Log_Msg.cpp (dump): Sould test if we have a valid thr_desc - before dumping the information of it. Thanks to Luca Priorelli - for pointing this out. - -Sat Dec 27 16:13:59 1997 David L. Levine - - * ace/{OS.i,config-linux-common.h,README} (getrusage,{get,set}rlimit): - added ACE_HAS_RUSAGE_WHO_ENUM and ACE_HAS_RLIMIT_RESOURCE_ENUM - support. glibc 2.0 for Linux uses enums for the first arguments - to ::getrusage and ::{get,set}rlimit. - -Fri Dec 26 18:04:06 1997 - - * ace/Containers.h: Added iterator traits for following classes. - ACE_Unbounded_Set - ACE_Unbounded_Queue - ACE_Unbounded_Stack - ACE_Double_Linked_List - ACE_Fixed_Set - ACE_Bounded_Set - Thanks to for recommending this. - -Fri Dec 26 12:03:05 1997 David L. Levine - - * ace/config-osf1-4.0.h: added support for DCE threads, and merged in - config-osf1-4.0-g++.h. Thanks to Frederic Andres - for the DCE threads support #defines. - - * ace/config-osf1-4.0-g++.h: removed. All Digital Unix 4.0 configs - are now supported by config-osf1-4.0.h. - - * ace/platform_osf1_4.0.GNU: added comment on how to use DCE threads - instead of POSIX threads. - - * ace/OS.i (thr_{get,set}prio): don't apply the - !defined(ACE_LACKS_SETSCHED) test if ACE_HAS_DCETHREADS. - - * ace/OS.cpp (thr_create): added || ACE_HAS_DCETHREADS to - #ifndef ACE_LACKS_SETSCHED, so that priority is set with DCETHREADS. - - * ace/OS.cpp (sched_params): moved paren so that DCETHREADS block - will be executed even if ACE_LACKS_SETSCHED. - - * ace/Sched_Params.cpp ({next,previous)_priority): added - ACE_HAS_DCETHREADS check before !defined(ACE_LACKS_SETSCHED). - - * ace/OS.i (cond_timedwait): wrapped first arg to ACE_OSCALL in - parens because it confused cxx. - - * examples/System_V_IPC/SV_Message_Queues/{,T}MQ_Server.cpp: renamed - variable msgque because it conflicted with a symbol in the DEC cxx - w/DCE threads headers. - - * ACE-INSTALL.html: expanded discussion of gcc config.status file. - Thanks to Hans Rohnert for figuring - out the role of the config.status file. - -Fri Dec 26 06:44:25 1997 - - * ace/OS.h (ACE_OS::ace_flock_t): Added a new field "lockname_" to - remember the lock filename. - - * ace/OS.i (flock_init,flock_destroy): We need to remember the - name of the lock file when initializing the lock and unlink the - file when destroying the lock. - -Thu Dec 25 18:08:42 1997 Douglas C. Schmidt - - * ace/XtReactor.cpp: Removed g++ warning about initialization - order, enabled read/write masks for - ACE_Event_Handler::CONNECT_MASK; fixed typo that checks a write - mask, but sets a read mask; removed unused variable "zero." - Thanks to Eric Newton for these fixes. - -Thu Dec 25 17:17:16 1997 - - * ace/config-win32.h: * ace/config-win32-common.h: Added macro - definitions not to use C++-styled castings on Win32 by default - so that we don't depend on the RTTI support. - -Thu Dec 25 16:18:03 1997 - - * ace/SString.h (ACE_CString and ACE_WString): Added c_str() to - make it similar to STL's string class. - -Wed Dec 24 19:59:15 1997 David L. Levine - - * tests/IOStream_Test.cpp (client): changed stream error message - from "timeout" to "timed out", so that run_tests.check won't - complain about it. - -Wed Dec 24 18:37:49 1997 - - * ace/Synch.i (get_thread_id,get_nesting_level): Added ACE_INLINE. - -Wed Dec 24 18:31:31 1997 Douglas C. Schmidt - - * ACE version 4.4.10, released Wed Dec 24 18:31:31 1997. - -Wed Dec 24 14:27:33 1997 - - * ace/Synch.{h,i,cpp} (ACE_Recursive_Thread_Mutex): Changed - ACE_Recursive_Thread_Mutex to inherit from ACE_Thread_Mutex on - Win32 because ACE_Thread_Mutex is already recusive on Win32. - -Wed Dec 24 08:14:32 1997 David L. Levine - - * ace/Log_Msg.cpp (instance): without threads, dynamically create - the ACE_Log_Msg instance instead of using a static. Now, without - threads, the ACE library has no statics that require destruction - (at least on Solaris/g++ and Linux). And, all of the ACE tests - Purify cleanly. - - * ace/OS.cpp (ACE_Thread_Adapter::invoke): wrapped - rethrow_w32_structural_exception () call with #ifdef ACE_WIN32. - It was eliminated by the ACE_SEH_EXCEPT macro on non-WIN32 - platforms, but some compilers (cxx) warned about the - unreachable code. This call is only supported on WIN32 anyways. - - * ace/OS.h: LynxOS has ACE_HAS_PTHREADS_1003_DOT_1C, but not - ACE_HAS_PTHREAD_SIGMASK. - - * tests/Time_Value_Test.cpp: only test ACE_U_LongLong on Solaris, - and other platforms with STHREADS. - -Wed Dec 24 04:25:49 1997 - - * ace/OS.i (sema_init): Added checking for initial semaphore - counts and set the semaphore to non-signaled state if the - initial count is zero. Changed the internal variable lock from - a mutex to a thread_mutex (Critical Section.) - -Tue Dec 23 21:06:14 1997 David L. Levine - - * ace/TLI_Stream.cpp (get_remote_addr): added ACE_UNUSED_ARG - for the arg if ! ACE_HAS_SVR4_TLI. - - * examples/IPC_SAP/SOCK_SAP/CPP-inserver-poll.cpp (main): declare - local "i" outside the for loop because it is used after the loop. - -Tue Dec 23 19:34:10 1997 - - * ace/OS.i: Added comments for semaphore simulation. - -Tue Dec 23 19:33:59 1997 Douglas C. Schmidt - - * ACE version 4.4.9, released Tue Dec 23 19:33:59 1997. - -Tue Dec 23 19:05:32 1997 Douglas C. Schmidt - - * tests/IOStream_Test.cpp (server): Changed sleep(30) to - sleep(5). This seems more reasonable. Thanks to - James Johnson for this suggestion. - -Tue Dec 23 16:43:14 1997 Steve Huston - - * ace/README: Added descriptions for ACE_HAS_PTHREADS_1003_DOT_1C (this - was in use previously but not documented), ACE_HAS_XTI (new; XTI is - the POSIX superset of TLI - this implies ACE_HAS_TLI), - ACE_NEW_THROWS_EXCEPTIONS (new; the compiler throws bad_alloc if - a 'new' memory allocation fails). - - * ace/Hash_Map_Manager.cpp - Workaround for an aC++ bug in the HP-UX 11 - version of the compiler. - - * ace/INET_Addr.cpp: Note the failing host name in the error message - from ACE_INET_Addr::ACE_INET_Addr(u_short, const char []). - - * ace/OS.h: Changes made while porting to HP-UX 11: - - If ACE_HAS_PTHREADS_1003_DOT_1C (POSIX.1C), it implies (by - way of POSIX.1C) that these also be set: - ACE_HAS_PTHREAD_SIGMASK - ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R - This is intended to make the process of configuring a new - new platform easier. - - If the new config macro ACE_NEW_THROWS_EXCEPTIONS is set, include - the file . The "proper" thing to do is to include - ; however, at least on HP-UX 11, this will cause - other things to get brought in, like , which will - screw up auto_ptr. The day that all this standard library and - STL stuff is finally straight, there will be dancing in the - streets... - - Support including the proper header file for XTI when it's - supposed to use rather than (POSIX specifies - XTI, a superset of TLI, to have ) - - If ACE_NEW_THROWS_EXCEPTIONS is set, the ACE_NEW and - ACE_NEW_RETURN macros handle the exception. - - * ace/OS.i: Fixed check for failure in ACE_OS::sema_init. - - * ace/config-hpux11.h: - * ace/config-hpux11-hpc++.h: New configs for HP-UX 11.00 - - * include/makeinclude/platform_hpux11_aCC.GNU: Platform macros for - HP-UX 11. It is set up for 32-bit build with comments for how to - do a 64-bit build. - - * examples/Makefile: Added Naming to the directory list to build. - - * examples/IPC_SAP/SOCK_SAP/CPP-inserver-poll.cpp: Changed test from - ACE_HAS_SVR4_POLL to ACE_HAS_POLL. - - * examples/IPC_SAP/SOCK_SAP/C-inclient.cpp: - * examples/IPC_SAP/SOCK_SAP/CPP-unclient.cpp: - * examples/IPC_SAP/SOCK_SAP/CPP-unserver.cpp: - * examples/IPC_SAP/SOCK_SAP/FD-unserver.cpp: Fixed a char * being - initialized by a string literal. - - * examples/Map_Manager/test_hash_map_manager.cpp: Added #include - "ace/SString.h" - - * examples/Mem_Map/IO-tests/test_io.cpp: Fixed a char * being - initialized by a string literal. Fixed diagnostic statements. - - * examples/Naming/test_multiple_contexts.cpp: - * examples/Naming/test_non_existent.cpp: - * examples/Naming/test_writers.cpp: Added Id line for CVS. - - * tests/Time_Value_Test.cpp: Added #include "test_config.h" - -Tue Dec 23 16:12:28 1997 - - * ace/OS.i: Must use ACE_OS::sema_wait instead of waiting on the - singling event when using simulated semaphores. - -Tue Dec 23 08:32:00 1997 Chris Gill - - * include/makeinclude/platform_sunos5_g++.GNU - Removed trailing spaces from CC and CXX macros - (the trailing space behind CXX was giving the TAO_IDL - make fits) - -Tue Dec 23 07:26:28 1997 David L. Levine - - * ace/TLI.cpp (get_local_addr): return -1, instead of 0, and - set errno (with ACE_NOTSUP_RETURN) if ! ACE_HAS_SVR4_TLI. - ({set,get}_option): added ACE_UNUSED_ARfor all - arguments if ! ACE_HAS_SVR4_TLI. - - * ace/TLI_Stream.cpp (get_remote_addr): return -1, instead of 0, - and set errno (with ACE_NOTSUP_RETURN) if ! ACE_HAS_SVR4_TLI. - Declare and set local "name" only if ACE_HAS_SVR4_TLI. - - * ace/TLI_Acceptor.cpp (handle_asynch_event): initialize local - "event" instead of defining it in the switch condition, to - avoid compiler warning about not using it. - - * examples/IPC_SAP/TLI_SAP/db-server.cpp (lookup_name): removed - unused local variable "len". - - * include/makeinclude/platform_osf1_4.0.GNU: removed some warning - suppressions that are no longer needed. - - * ace/Log_Msg.cpp (~ACE_Log_Msg): clean up the message queue and - allocated strings on non-threaded platforms. - - * tests/test_config.h (ACE_APPEND_LOG): added a close () of the - ace_file_stream before opening it. Forked children inherit the - opened file stream, and fail on their attempt to open it if it - is not explicitly closed. - -Mon Dec 22 22:42:57 1997 Douglas C. Schmidt - - * ace/OS: Added a few minor changes to Nanbor's Semaphore - emulation for WinCE. - -Mon Dec 22 11:39:19 1997 - - * OS.i (event_timedwait): Added code to handle timeouts. Thanks - to Luca Priorelli for reporting this. - -Mon Dec 22 07:03:13 1997 David L. Levine - - * ace/IOStream_Test.cpp (spawn): changed printout from - "Process_Mutex_Test-children" to "IOStream_Test-children". - -Mon Dec 22 03:08:22 1997 - - * ace/OS.i: Modified ACE_OS::cond_* for WinCE. - - * ace/config-win32-common.h: Prevent ACE from using NT specific - API on Win CE. - -Sun Dec 21 16:19:40 1997 Nanbor Wang - - * ace/OS.{h,i} (ACE_OS::sema_*): Added semaphore simulation code - for WinCE. This code is currently protected - ACE_USES_WINCE_SEMA_SIMULATION for debugging the code on NT. - This flag should soon be obsolete and changed to ACE_HAS_WINCE. - - Moved ACE_event_t macro definition for Win32 before ACE_sema_t - definition for NT. I need to use it in semaphore simulation. - - * ace/OS.h (class ACE_Cleanup_Info::operator ==, !=): Removed - keyword struct. ACE_Cleanup_Info is a class now. - - * ace/Containers.h (class ACE_Double_Linked_List): Removed - unused function declarations. - - * ace/Containers.h (class ACE_DNode): Removed ACE_DNode class. - -Sun Dec 21 18:47:09 1997 Douglas C. Schmidt - - * ACE version 4.4.8, released Sun Dec 21 18:47:09 1997. - -Sun Dec 21 12:39:38 1997 Douglas C. Schmidt - - * ace/OS.h (ACE_OS): Made the netdb_{acquire()/release()} methods - public to help ACE users stuck on weird OS platforms. Thanks to - Arturo Montes for this suggestion. - - * ace: Changed all ACE class documentation so that it puts the - =TITLE and =DESCRIPTION comments *after* the opening '{' rather - than before. I did this since (1) it makes emacs C++ mode - happier and (2) it makes Rational Rose reverse-engineering tool - happier too. Thanks to Thomas Jordan - for suggesting this. - - * ace/LOCK_SOCK_Acceptor.h: The accept() method of class - ACE_LOCK_SOCK_Acceptor is no longer a virtual. I don't know why - this was made virtual in the first place, but it was a mistake. - -Sun Dec 21 15:24:42 1997 Nanbor Wang - - * ace/OS.h (class ACE_Cleanup_Info::operator ==, !=): Removed - keyword struct. ACE_Cleanup_Info is a class now. - - * ace/Containers.h (class ACE_Double_Linked_List): Removed - unused function declarations. - - * ace/Containers.h (class ACE_DNode): Removed ACE_DNode class. - -Sat Dec 20 11:05:45 1997 Douglas C. Schmidt - - * tests/test_config.h (ACE_INIT_LOG): Added (%P|%t) to an - ACE_DEBUG statement to make it consistent. - - * tests/IOStream_Test.cpp (spawn): Revised the test so that it - prints data correctly to the child processes. - - * examples/Shared_Malloc/test_multiple_mallocs.cpp (main): Moved - the final print statement inside one of the if blocks so that it - appears only every second invocation to remind people to rerun - the program to remove the leaks. Thanks to Tom Arbuckle - for suggesting this. - - * ace/Malloc*: Changed ACE_MALLOC_STATS to ACE_HAS_MALLOC_STATS - since this is more consistent with ACE conventions. Also, - added ACE_HAS_MALLOC_STATS to the ace/README file. Thanks - to Tom Arbuckle for - suggesting this. - - * ace/Memory_Pool.cpp (ACE_Shared_Memory_Pool): Fixed the logic - for naming the backing store if the sscanf() call fails. Thanks - to Tom Arbuckle for - suggesting this. - -Sat Dec 20 15:39:00 1997 Nanbor Wang - - * tests/IOStream_Test.cpp (spawn): Changed ACE_LACKS_EXEC to - ACE_LACKS_FORK. - -Sat Dec 20 09:42:06 1997 David L. Levine - - * ace/OS.h: changed ACE_SEH_FINALLY to be if (1) on Unix, not - just pSOS. - -Fri Dec 19 23:20:42 1997 Nanbor Wang - - * tests/IOStream_Test.cpp (client): Removed an extra read. - - * ace/OS.h: ACE_SEH_FINALLY should always be executed on UNIX - platforms. - -Fri Dec 19 18:49:26 1997 Douglas C. Schmidt - - * ace/IOStream_T.i: Enhanced ACE_IOStream and its companions as - follows: - - - ACE_Streambuf_T<> now distinguishes recv() timeout failure from - a "real" stream failure - - - ACE_IOStream::eof() honors the streambuf's recv_timeout() value - and returns FALSE if the eof() check fails on timeout. - - - IOStream_Test.cpp tests the streambuf timeout via the stream eof() - and retrys if possible. - - Thanks to James Johnson for these fixes. - - * ace/Log_Record.i: Removed a no-op assignment to Time_Value - in the encode() method. Thanks to Patrick J. McNerthney - for reporting this. - - * ace/Log_Record.i: The time stamp put into the ACE_Log_Record - gets all messed up when the ACE_Log_Record is transmitted to the - Server_Logging_Handler and the client is run on a little-endian - architecture. This is because the ACE_Log_Record::encode method - does: - - this->time_stamp_ = ACE_Time_Value - - htonl (this->time_stamp_.sec ()), - htonl (this->time_stamp_.usec ())); - - When the ACE_Time_Value is passed in the resulting values from - "htonl", it calls "normalize" which totally messes with the - values passed. Thanks to Patrick J. McNerthney - for reporting this. - - * ace/OS.i: Fixed ctime_r() so that it doesn't crash if a NULL is - returned from ctime_r(). Thanks to Patrick J. McNerthney - for reporting this. - -Fri Dec 19 09:44:28 1997 David L. Levine - - * ace/OS.{h,i}: fixed sigwait for DEC cxx, yet again for cxx - V6.0-010. cxx #defines sigwait, and was getting confused - with ACE_OS::sigwait. I replaced Thilo's #undef sigwait, - and updated the ::sigwait declaration to what cxx uses internally. - - * examples/IPC_SAP/SOCK_SAP/CPP-inserver.cpp (server): cast arg - to long before casting to ACE_HANDLE, and removed function-style - cast. - -Fri Dec 19 00:39:40 1997 Douglas C. Schmidt - - * ACE version 4.4.7, released Fri Dec 19 00:39:40 1997. - -Thu Dec 18 19:47:47 1997 Douglas C. Schmidt - - * examples/IPC_SAP/SOCK_SAP: Stripped the CPP-in{server,client}.cpp - tests down to their bare essence to only test the core features - of sockets. Thanks to Bryan and Brian for suggesting this. - - * ace/Message_Queue.cpp (ACE_Message_Queue_Iterator): Changed - queue to q to avoid clashes with STL. Thanks to Brian Mendel - for reporting this. - - * ace/OS.h: The server logging daemon is implemented using TCP/IP - under Win32. Therefore, we can simplify the creation of the - ACE_DEFAULT_LOGGER_KEY. Thanks to Patrick J. McNerthney - for reporting this problem. - -Thu Dec 18 22:35:45 1997 David L. Levine - - * ace/OS.h: fixed typo in end-of-comment marker. - - * ace/OS.h: on Digital Unix 4.0, only declare sigwait () with cxx, - not with g++. Thanks to Erik Margraf - for verifying this. - - * examples/IPC_SAP/SOCK_SAP/CPP-in{client,server}.cpp: tweaked - so that they build on VxWorks (spawn needs the (ACE_THR_FUNC) - cast), and without threads. - - * tests/run_tests.vxworks: updated VxWorks test status. - - * ace/Basic_Types.h: look for ULONGLONG_MAX, which Irix 6.x uses. - And, hard-code ACE_SIZEOF_LONG_DOUBLE to be 16 on __sgi, because - its float.h doesn't always allow us to distinguish them. - Thanks to Carlos for reporting these. - - * ace/High_Res_Timer.cpp,Profile_Timer.cpp: removed dependence - on ACE_U_LongLong. Thanks to Carlos for reporting this. - - * tests/Time_Value_Test.cpp: fixed #ifdefs so that ACE_ULongLong - isn't tested on Irix 6.x, etc. Thanks to Carlos for tripping - over this. - - * ace/IOStream_T.i (eof): made the return type, int, explicit. - - * ace/config-linux-common.h: started adding support for threads on - alpha (glibc). - -Thu Dec 18 21:17:46 1997 - - * ace/ace_dll.dsp: Added project files for Windows CE on SH3 - series CPU and x86 emulator. - - * ace/streams.h: - * ace/OS.h: Added Windows CE flags. - - * ace/OS.cpp (invoke): Added a dummy return to shut gcc up. - - * ace/OS.cpp (invoke): Added a dummy return to shut gcc up. - - * ace/OS.{h,cpp} (rethrow_w32_structural_exception): Added this - function, which prints out an error message to indicate the - occurance of structural exception and rethrow it again. - (ACE_Thread_Adapter::invoke): Rearranged try and except block - for Win32 and added a finally block so when a structural - exception occurs, a thread can clean it up properly, print out - an error message, and rethrow the exception again. - -Thu Dec 18 15:40:50 1997 James C Hu - - * ace/Filecache.{cpp,h}: - - debugged writing a file. - - can select if mapping is desired. - - * ace/OS.h: Added new #defines to facilitate forward declarations - of ACE_Export classes. - -Thu Dec 18 00:15:02 1997 Douglas C. Schmidt - - * ACE version 4.4.6, released Thu Dec 18 00:15:02 1997. - -Wed Dec 17 19:42:38 1997 Douglas C. Schmidt - - * examples/IPC_SAP/SOCK_SAP: Enhanced the - CPP-{inserver,inclient}.cpp tests so that they will spawn - multiple client and server threads to perform the data transfer. - Thanks to Brian Mendel and Bryan Doerr for suggesting this. - - * ace/OS.i: Fixed some very subtle bugs with cond_signal() and - cond_broadcast(). Thanks to Patrick J. McNerthney - for reporting these and sending the fixes. - -Wed Dec 17 19:27:06 1997 Nanbor Wang - - * ACE-INSTALL.html (HREF): Added an advise not to use VC5.0 SP3. - - * examples/OS/Process/Makefile: Removed inclusion of - rules.lib.GNU. Thanks to Avi Nash for - noticing this. - -Tue Dec 16 22:09:42 1997 David L. Levine - - * tests/Time_Value_Test.cpp: restored #include test_config.h, - and changed #include ace/config.h to ace/inc_user_config.h. - - * examples/IPC_SAP/TLI_SAP/ftp-server.cpp, - examples/Reactor/Misc/test_timer_queue.cpp, - examples/Service_Configurator/IPC-tests/server/Handle_Timeout.i, - examples/Shared_Malloc/test_malloc.cpp, - examples/Threads/thread_specific.cpp: replaced ACE_HAS_64BIT_LONGS - preprocessor logic with a cast through a long to an int. - A void * is the same size as a long on all currently supported - ACE platforms. The int cast is also there, to avoid compiler - warnings about narrowing. As a side effect, the function-style - casts were removed. - - * ace/config-osf1*.h,README: added comment stating that - ACE_HAS_64BIT_LONGS is deprecated. - - * ace/config-tandem.h: removed commented-out line that mentioned - ACE_HAS_64BIT_LONGS. - - * ace/OS.{h,i} (sigwait): removed DEC cxx version dependence. The - standard two-arg POSIX ::sigwait () seems to work just fine even - on older releases of Digital Unix 4.0, with the sigwait declaration - that we have in OS.h. Thanks to Erik Margraf - and Thilo - for helping to sort this out. - - I did change the ACE_OS::sigwait () return value determination - in OS.i. It now depends on whether or not POSIX ::sigwait () - returns 0, to agree with the documenation for POSIX sigwait. - Before, the code checked for a -1 return value from ::sigwait (). - -Tue Dec 16 21:00:49 1997 Chris Gill - - Single Threaded port of ACE to pSOSim - first checkin - - * psosim/Makefile: (new) make file for new psosim directory - - builds the configured simulator components - - * psosim/drv_conf.c: (new) board driver configuration code for - simulator - - * ace/sys_conf.h: (new) configuration settings for simulator, ACE - - * ace/config-psosim-g++.h: (new) config file for psosim w/ g++ - - * ace/OS.cpp: - * ace/OS.h: - * ace/OS.i: Added psos and psosim specific code - - * ace/Mem_Map.cpp: Removed function style casts which were killing - g++ - - * ace/Message_Block.cpp: Removed function style casts which were - killing g++ - - * ace/Containers.cpp: Removed function style casts which were - killing g++ - - * ace/Map_Manager.cpp: Removed function style casts which were - killing g++ - - * tests/Handle_Set_Test.cpp: Added PSOS #defines, alongside those - for VXWORKS - - * tests/SOCK_Connector_Test.cpp: Added PSOS #defines, alongside - those for VXWORKS - - * tests/Priority_Reactor_Test.cpp: Added PSOS #defines, alongside - those for VXWORKS - - * tests/MM_Shared_Memory_Test.cpp: Added PSOS #defines, alongside - those for VXWORKS - - * tests/Conn_Test.cpp: Added PSOS #defines, alongside those for - VXWORKS - - * tests/run_tests.psosim: (new) script to run only those tests - that are relevant to pSOSim, in its current single threaded - state - - * include/makeinclude/platform_psosim_g++.GNU (new) make macros - for pSOSim using g++ - - -Tue Dec 16 17:23:49 1997 Nanbor Wang - - * tests/Time_Value_Test.cpp: Removed inclusion of "ace/config.h". - - * ace/inc_user_config.h: Added this file to prevent multiple - inclusions of config.h file. Replace `#include "ace/config.h"' - with `#include "ace/inc_user_config.h"'. - - * ace/Log_Msg.cpp: - * ace/OS.h: - * ace/Trace.cpp: - * ace/streams.h: - * ace/iosfwd.h: Replace "config.h" with "inc_user_config.h". - -Tue Dec 16 08:30:41 1997 Douglas C. Schmidt - - * examples/IPC_SAP/FILE_SAP/client.cpp (main): Fixed "lines" to - "links." Thanks to Istvan Buki for reporting - this. - -Tue Dec 16 14:15:48 1997 - - * ace/OS.i (fstat): Fixed Dr. Schmidt's typo. - -Tue Dec 16 09:17:53 1997 David L. Levine - - * ace/Singleton.cpp (cleanup): set instance pointer to 0 after - deleting it. Thanks to Luca Priorelli - for suggesting this. - - * ace/Basic_Types.{h,i}: (ACE_U_LongLong): use ACE_UIN32 instead - of u_long for data members, to ensure that its sizeof is 8 bytes. - - * ace/OS.h: except on WIN32 and Solaris (ACE_HAS_HI_RES_TIMER), - always typedef ACE_hrtime_t to ACE_UINT64. This changes removes - the dependence on ACE_HAS_64BIT_LONGS. - - * ace/OS.cpp (ACE_TSS_Keys): replaced ACE_HAS_64BIT_LONGS - dependence with ACE_SIZEOF_LONG == 8, and similarly for - determination of 4-byte longs. - - * tests/TSS_Test.cpp (worker): replaced ACE_HAS_64BIT_LONGS - preprocessor logic with a cast of the void * argument to a long. - A void * is the same size as a long on all currently supported - ACE platforms. The int cast is also there, to avoid compiler - warnings about narrowing. - - * tests/Time_Value_Test.cpp: replaced use of ! ACE_HAS_64BIT_LONGS - with ACE_SIZEOF_LONG == 4. - -Mon Dec 15 22:47:24 1997 Douglas C. Schmidt - - * ACE version 4.4.5, released Mon Dec 15 22:47:24 1997. - -Mon Dec 15 20:17:10 1997 Douglas C. Schmidt - - * ace/OS.cpp: Fixed pread() and pwrite() so that they work - correctly even if we don't support threads. Thanks to Irfan for - finding this. - - * ace/OS.i: Tried to fix the fstat() wrapper on Win32 so that - it does the right think for HANDLES. Thanks to Lori Anderson - for pointing this out. - -Mon Dec 15 15:36:07 1997 Nanbor Wang - - * ace/Thread_Manager.cpp (exit,wait): Changed these two functions - more for Chorus. Thanks again to Wei Chian - for providing the patch. - -Mon Dec 15 06:42:42 1997 David L. Levine - - * ace/Log_Msg.cpp (instance): on non-threaded platforms, only - allocate a new ACE_Log_Msg_message_queue if the (static) pointer - is 0. Thanks to Stephen Coy for - reporting this. - - * ace/config-linux-common.h: updated header comments about - autosensing the platform capabilities. - - * tests/Process_Strategy_Test.cpp: (parse_args): added DEBUG - message if an unsupported concurreny strategy is provided with - a -c option. - -Mon Dec 15 01:12:33 1997 - - * ace/Synch_T.h (ACE_Atmoic_Op::value_i): Explicitly return - (by reference). This gives the user full, unrestricted - access to the underlying value. This method will usually be - used in conjunction with explicit access to the lock. Use with - care ;-) - -Sun Dec 14 21:37:08 1997 Douglas C. Schmidt - - * ace/OS.i (cond_wait,cond_timedwait): Fixed a missing return to - handle the case where we're using USYNC_PROCESS for the external - mutexes. - - * ace/OS: Made the use of the waiters_lock_ mutex consistent in - the ACE_cond_t implementation. This was broken since we used - the external_mutex to serialize access to the waiters_ count - inconsistently. Thanks to Patrick J. McNerthney - for reporting this very subtle bug. - -Sun Dec 14 12:29:26 1997 Nanbor Wang - - * ace/Thread_Manager.cpp (exit,wait): Disabled thread join - functionality in Chorus. Thanks to Wei Chiang - for providing the fix. - -Fri Dec 12 21:48:38 1997 Torbjorn Lindgren - - * ace/config-linux*.h: All Linux platform files except the - Linux-KCC modified to use the upgraded common Linux - configuration file. Linux-KCC looks reasonably easy to do, - if no-one that actually have KCC takes care of it I can do - this one later. - - * ace/config-linux-common.h: Modernized and updated the common - Linux configuration file to handle more of the common - configuration stuff. Also added the beginning of proper - glibc and egcs support for Linux. - -Sat Dec 13 14:22:28 1997 - - * ace/Basic_Types.h: Changed _M_IX386 to _M_IX86. - -Fri Dec 12 19:41:42 1997 - - * ace, tests, version_tests: Updated Win32 makefiles (VC4.2 and - VC5.0) to include new Basic_Types_Tests. - - * tests/Basic_Types_Test.cpp (main): Updated to use - ACE_OS::getpagesize(). - - * ace/ACE.cpp (round_to_pagesize): Updated to use - ACE_OS::getpagesize(). - - * ace/OS.i (getpagesize): Added this to ACE_OS. - -Fri Dec 12 07:49:01 1997 David L. Levine - - * ace/OS.i (inet_addr): changed type of "valid" from bool to u_int. - This code is only seen on VxWorks. - - * ace/IOStream.h (ACE_Quoted_String::operator <): changed return - type from bool to int. - - * ace/config-vxworks*.h,README: removed ACE_LACKS_SOCKET_BUFSIZ; - added ACE_DEFAULT_MAX_SOCKET_BUFSIZ of 32768. - - * examples/IPC_SAP/SOCK_SAP/C-in{client,server}.cpp: added - support to optionally set socket buffer sizes. - - * examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp: - removed unused constant SHMSZ. - - * examples/Timer_Queue/Reactor_Timer_Queue_Test.cpp: removed - unused constant NO_OF_IO_HANDLERS. - - * ace/IOStream_T.h (ipfx,ipfx1): don't call setstate () on WIN32, - because MS VC++ 5.0 doesn't declare it. Thanks to Irfan for - reporting this. This "fix" is temporary, maybe, until we - figure out the proper fix. - - * ace/OS.h: cast the 1 in ACE_MSB_MASK to an fd_mask, to support - 64-bit fd_masks. I suspect that with this change, the - ACE_HAS_BROKEN_BITSHIFT used in config-tandem.h is no longer - necessary. - - Added Basic_Types: - * ace/Basic_Types.*,Makefile: Basic_Types defines the - following preprocessor macros: - - Sizes of built-in types: - ACE_SIZEOF_CHAR - ACE_SIZEOF_WCHAR - ACE_SIZEOF_SHORT - ACE_SIZEOF_INT - ACE_SIZEOF_LONG - ACE_SIZEOF_LONG_LONG - ACE_SIZEOF_VOID_P - ACE_SIZEOF_FLOAT - ACE_SIZEOF_DOUBLE - ACE_SIZEOF_LONG_DOUBLE - - Wrappers for built-in types of specific sizes: - ACE_INT16 - ACE_UINT16 - ACE_INT32 - ACE_UINT32 - ACE_UINT64 - (Note: ACE_INT64 is not defined, because there is no ACE_LongLong for - platforms that don't have a native 8-byte integer type.) - - Byte-order (endian-ness) determination: - ACE_BYTE_ORDER, to either ACE_BIG_ENDIAN or ACE_LITTLE_ENDIAN - ACE_BIG_ENDIAN or ACE_LITTLE_ENDIAN - - * ace/OS.*: moved ACE_U_LongLong to Basic_Types.*. - - * ace/OS.h: added #include . - - * ace/config-linux-common.h,README: added ACE_HAS_BYTESEX_H. - - * tests/Basic_Types_Test.cpp,run_tests.{bat,sh,vxworks),Makefile: - added new Basic_Types_Test. - - * tests/Time_Value_Test.cpp: removed ACE Version printout because - it is now in Basic_Types_Test. - -Fri Dec 12 03:00:21 1997 James C Hu - - * ace/config-sunos5.5-egcs-1.0.h: Fundamemntally identical to g++ - version, except added ACE_HAS_STDCPP_STL_INCLUDES, which is - taken to mean that the Standard C++ STL include files are - supported. - - * IOStream.h: Added #if's to handle the case where - ACE_HAS_STRING_CLASS, but if ACE_HAS_STDCPP_STL_INCLUDES, then - the string class is found in . Otherwise, it looks for - it in . - - * ace/OS.i: Re-implemented strcasecmp methods. Thought bad - implementations were related to a JAWS bug, but the hand - implementations are not used on Solaris. - -Thu Dec 11 23:20:57 1997 - - * ace/Strategies_T.cpp (activate_svc_handler): Changed the - parameter that was been passed into the open routine of - Svc_Handler. The that was passed to us is passed through - to open, rather than passing . Thanks to Mats Nilsson - for pointing this out. - - * ace/Connector.cpp (activate_svc_handler): Made sure that we pass - the connector pointer as the void* parameter to the svc_handler. - -Thu Dec 11 23:35:04 1997 Douglas C. Schmidt - - * ace/OS.i. The code was always calling dlsum for the _init() - hook, even if dlopen() failed. In addition to fixing this, I - also removed a potential handle leak. Thanks to Patrick - J. McNerthney for reporting this. - -Thu Dec 11 13:13:17 1997 David L. Levine - - * ace/LSOCK.cpp (recv_handle): fixed to remove compile errors and - warnings on platforms with both ACE_HAS_4_4BSD_SENDMSG_RECVMSG - and ACE_HAS_THREADS. The delta from version 4.3 of this file - is very small. Thanks to Kirill Rybaltchenko - for reporting this problem and - verifying the fix on LynxOS, the only affected platform. - - * ace/config-linux-kcc.h,include/makeinclude/platform_linux_kcc.GNU: - added linuxthreads support with the linux KAI C++ config. - Thanks to Ben Eng for the patches. - - * ace/IOStream_T.h: iostream fx emulation now skips whitespaces and - flushes when tied. Thanks to Ben Eng for the patch. - - * tests/IOStream_Test.cpp (server): check for double-quote instead - of newline as end-of-string character. Thanks to Ben Eng - for the patch. - - * tests/SV_Shared_Memory_Test.cpp: renamed "allocator" to - "myallocator" to avoid conflict with STL. Thanks to Ben Eng - for the patch. - - * include/makeinclude/platform_linux_lxpthread.GNU: protect - PRELIB definition with ifndef PRELIB, to allow overriding - without modifying the platform_macros.GNU file. Thanks to - James Johnson for this suggestion. - - * ace/IOStream_T.cpp: restored ACE_HAS_IOSTREAMH_INCLUSION - protection around the old g++ munch hack. There's no need - to trouble all (g++) platforms with its (4 byte) space penalty. - - * examples/IOStream/server/iostream_server.cpp (handle_input): - removed unused local "addr". - - * examples/Reactor/Dgram/{CODgram,Dgram}.cpp (run_test): added - return 0 at end so that the function always returns a value. - - * include/makeinclude/platform_lynxos.GNU: added comment indicator - to comment describing POSTLINK. - - * ACE-INSTALL.html: updated DEC CXX 6.0 test status: all tests pass - with the version of DIGITAL UNIX 4.0 and cxx 6.0 that we use. - -Wed Dec 10 23:57:00 1997 Chris Cleeland - - * ACE version 4.4.4, released Wed Dec 10 23:57:00 1997. - -Wed Dec 10 16:24:09 1997 - - * ace/Auto_Ptr.i: Apparently, the standard states that in order to - access members of a templated superclass from a templated - subclass, then the member name must be fully qualified. - Therefore, changed access to p_ to ACE_Auto_Basic_Ptr::p_. - Thanks to Stephen Coy for reporting this. - -Tue Dec 09 13:05:00 1997 - - * ace/Containers.cpp (copy_all_nodes): Added a temporary - ACE_Node pointer to get around the macro side effects. - -Sun Dec 7 10:20:46 1997 Douglas C. Schmidt - - * ace/Service_Config.cpp (parse_args): Added an appropriate macro - to switch from char * to UNICODE. Thanks to Timothy A. Brown - for reporting this. - - * ace/config-linux-*.h: Added ACE_HAS_GETRUSAGE_PROTO to all - the linux config files. Hopefully, this will help ACE to work - better with glibc. Thanks to Ernie Makris - and Torbjorn Lindgren for their help. - -Sat Dec 06 13:30:11 1997 Douglas C. Schmidt - - * ACE version 4.4.3, released Sat Dec 06 13:30:11 1997. - -Sat Dec 6 12:02:09 1997 Douglas C. Schmidt - - * examples/IOStream: Revised both the client and server to - demonstrate the ACE_IOStream functionality correctly. Also - added a README file explaining how to run the examples. Thanks - to James Johnson and Dustin Laurence - for suggesting this. - - * ace/IOStream_T: Added a new method eof() to the ACE_IOStream_T<> - class. This returns 1 if we've reached the end of the socket - stream, else 0. - -Fri Dec 5 16:58:29 1997 Douglas C. Schmidt - - * ace/Addr.h: Added a const ACE_Addr & instead of const ACE_Addr. - This will avoid an extra copy. Thanks to Irfan for noticing - this. - - * examples/Reactor/Dgram/CODgram.cpp: Also updated the CODgram - test to be just like the Dgram test. - - * examples/Reactor/Dgram/Dgram.cpp (main): Fixed a bug where it - was sending a huge buffer instead of just the string size. - Also, exit once we've finished the send. Finally, revised the - test so that it is easier to understand and so that it exits - properly. Thanks to Michael Hoffman - for reporting - this. - -Fri Dec 05 13:20:09 1997 David L. Levine - - * include/makeinclude/platform_vxworks5.x_ghs.GNU: added OFLAGS. - Thanks to Brian Mendel for suggesting these. - - * tests/IOStream_Test.cpp: updated to work with the standard C++ - library version of iostreams. That primarily involved not - using operator>>(char& c) and operator>>(char* c) for C strings. - Thanks to Ben Eng for the patch. - - * ace/OS.{h,i},config-osf1-4.0.h: fixed sigwait on DEC CXX 6.0/ - recent DEC UNIX 4.0. The fix keys off the compiler version, - though it probably should depend on the OS. It adds a - sigwait declaration, which is a current signal.h deficiency. - With this change, ACE builds and tests cleanly on DEC UNIX. - - * ace/config-vxworks5.x-g++.h: restored comment that explains - ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION. - - * netsvcs/lib/Makefile: the first line of the Local Target - (Server_Logging_Handler.*) override mysteriously disappeared, again. - -Fri Dec 5 12:15:49 1997 Chris Cleeland - - * ace/Select_Reactor.cpp: Made error messages on open failure more - verbose. Having these in place straightaway would have helped - track down some problems at Boeing much more effectively. - -Fri Dec 5 11:15:17 1997 Nanbor Wang - - * ace/Log_Msg.h (callers.): Added documentation for %I and %D - flags. Thanks to John Morey for reosting - this. - - * ace/Dynamic.h: - * ace/CORBA_Ref.h: - * ace/Token_Invariants.h: - * ace/Token_Collection.h: - * ace/Local_Tokens.h: - * ace/Remote_Name_Space.h: - * ace/Registry_Name_Space.h: - * ace/Strategies.h: - * ace/Name_Space.h: - * ace/Name_Request_Reply.h: - * ace/Naming_Context.h: - * ace/Name_Proxy.h: - * ace/Local_Name_Space.h: - * ace/Local_Name_Space_T.h: Corrected erroneous comments. These - files all contain incorrect filename info in the preambles which - make erroneous auto-generated man pages. - -Fri Dec 05 00:00:53 1997 - - * ace/OS.h: If the user wants minimum IOStream inclusion, i.e., - they have defined ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION, we will - just include the forward declarations, i.e., ace/iosfwd.h. Else - they will get all the stream header files, i.e., ace/streams.h. - The positive thing about this change is that if your code was - using stream classes and you were depending on OS.h to provide - you the stream header files, you will not have to change your - code, unless you have defined - ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION. Thanks to Dr. Schmidt for - suggesting this and thanks to David Levine for suggesting it to - Dr. Schmidt ;-). - - * ace/config-vxworks5.x-g++.h: Restored - ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION. - - * ace/Asynch_IO.cpp (open): Fixed typo. - -Thu Dec 04 21:20:47 1997 Douglas C. Schmidt - - * ACE version 4.4.2, released Thu Dec 04 21:20:47 1997. - -Thu Dec 4 19:45:04 1997 Douglas C. Schmidt - - * ace/Object_Manager.cpp (ACE_Object_Manager_Destroyer): Fixed a - bug in the - ACE_Object_Manager_Destroyer::~ACE_Object_Manager_Destroyer - thread comparison routine. Thanks to Steven Coy for this. Also - renamed _saved_main_thread_id to saved_main_thread_id_, which is - proper ACE style. - - * Updated the ACE-INSTALL.html file to explain why you don't need - to build everything all the time. Thanks to Dustin Laurence - for suggesting this. - - * tests/SOCK_Connector_Test.cpp (fail_no_listener_nonblocking): - Added a check for ENETUNREACH. Thanks to Dustin Laurence - for reporting this. - - * ace/Asynch_Acceptor.cpp (open): Changed the local variable named - sap_any to sa to avoid conflicts with the new sap_any macro. - - * ace/Asynch_IO: Made the ACE_Service_Hanlder::open() method - non-virtual to work around bugs with Borland C++. Thanks to - Valik Solorzano Barboza for suggesting this. - - * ace/ACE.cpp (COMPUTE): Put parens around elements the COMPUTE - macros so that it will work on Borland C++. Thanks to Valik - Solorzano Barboza for suggesting this. - - * ace/config-win32-common.h: Added ACE_HAS_BROKEN_SAP_ANY to deal - with Borland C++ bugs. Thanks to Valik Solorzano Barboza - for suggesting this. - - * ace/Addr: Added a workaround for the Borland C++ problems. This - introduces a new global macro called sap_any. However, this is - only used for Borland, so it should be ok. Thanks to Valik - Solorzano Barboza for suggesting this. - - * ace/LSOCK.cpp (recv_handle): Make the code smarter if we've got - both STREAMS and 4_4BSD_SENDMSG_RECVMSG. - - * Reran "make depend" over all of ACE. - - * netsvcs/clients/Logger/indirect_logging.cpp (main): Changed - LOGGING to LOGGER. Thanks to Irfan for noticing this. - - * netsvcs/lib/Client_Logging_Handler: Changed "rendezvous" to - "logger." - - * netsvcs/clients/Logger/indirect_logging.cpp, - netsvcs/lib/Client_Logging_Handler: Changed DEFAULT_RENDEZVOUS - to DEFAULT_LOGGER_KEY. Thanks to Steven Coy for pointing out - this inconsistency. - - * ace/OS.h: Renamed ACE_LOGGER_KEY to ACE_DEFAULT_LOGGER_KEY to - make it consistent with other ACE_DEFAULT_* names. - - * ace/OS.h: Changed the definition for ACE_LOGGER_KEY so that it - defaults to "localhost:10015" on platforms that don't support - ACE STREAM Pipes. Thanks to Steven Coy for suggesting this. - - * ace/Service_Config.cpp: Added the -k option to parse_args() so - that the user can set the logger key. Thanks to Steven Coy for - suggesting this. - - * ace/Service_Config: Added the logger_key as a parameter to the - other open() method, as well. Thanks to Steve Coy for being - picky ;-). - - * netsvcs/clients/Logger/direct_logging.cpp (main): Modified the - code to use the new framing scheme. - - * netsvcs/lib/Server_Logging_Handler_T.cpp - (handle_logging_record): Updated the code to take advantage of - our new framing scheme. - - * netsvcs/lib/Client_Logging_Handler.cpp (send): We can be smarter - now about sending the ACE_Log_Record across the network since - the length field is now fixed and it's guaranteed to be in the - first 4 bytes. Thanks to Steve Coy for suggesting this. - - * ace/Log_Record.h (ACE_Log_Record): Replaced the horribly - non-portable "long length_" field with the "ACE_INT32 length_" - field, which is nice because it is portable across platforms - with different long-word sizes. - -Thu Dec 04 09:57:40 1997 David L. Levine - - * include/makeinclude/platform_osf1_4.GNU: allow enabling of - WARNING_FLAGS by setting CXX_VER to POST_5X. Thanks to - James Johnson for this suggestion. - - * ace/Svc_Conf_l.cpp: rebuilt with Doug's flex. - -Thu Dec 04 03:46:04 1997 - - * ace/Makefile (Svc_Conf_l.cpp): Changed the sed macros to produce - OS.h include instead of stdcpp.h. - - * ace/Svc_Conf_l.cpp: Updated after code was regenerated using the - new sed changes in the Makefiles. Currently there are two - inclusions of OS.h in this file and an extra stdlib.h. Maybe - someone more experienced in sed can take these out by updating - the Makefile. - - * ace/IOStream_T.h (stdcpp.h): Removed inclusion of stdcpp.h. It - is redundant because IOStream.h includes it. - - * ace/streams.h: New file. This files tries to reduce the - differences between the old and new stream libraries for the - user. This is done by automatically selecting the correct - includes depending on the ACE_HAS_STANDARD_CPP_LIBRARY variable. - This file also helps out by making commonly used classes (e.g., - ios, ostream, iostream, cin, cout, etc) available in the global - name space when used with the Standard C++ Library. Use this - file where you would usually include or . - - * ace/iosfwd.h: New file. This files deals with forward - declaration for the stream classes. Remember that since the new - Standard C++ Library uses templates for the implementation of - the streams, simple forward declaration will not work. Classes - forward declared by this class include: - - ios - streambuf - istream - ostream - iostream - filebuf - ifstream - ofstream - fstream - - Use this file where you would usually forward declare the - classes listed above. - - * ace/stdcpp.h: Removed this file from the repository. This file - was trying to do too much. All the inclusion of the C Library - headers were unnecessary. This is because the new C++ standard - preserves the old C library include files. The functions from - those files will still be in the global namescape. The new - header files (e.g., cstdio), provides the same prototypes as the - old files (e.g., stdio.h), except that all prototypes are in the - std namespace. Since we want the old behavior and global - prototypes (for backward compatibility), inclusion of the new - header files was incorrect. - - stdcpp.h was included by OS.h. This caused almost all files to - force the inclusion of the stream header files. This was - changed so that OS.h only includes the ace/iosfwd.h file. This - means that if your code was using stream classes and you were - depending on OS.h to provide you the stream header files, you - will have to change your code to either include iostream.h or - iostream, or more portably ace/streams.h. - - * ace/OS.h: Removed stdcpp.h. Moved the standard C library - includes from stdcpp.h to OS.h. Also added ace/iosfwd.h to give - forward declaration for the stream classes. - - * ACE: Added explicit inclusion of ace/streams.h to the following - files: - - ace/IOStream.cpp - ace/Log_Record.cpp - ace/OS.cpp - ace/SString.cpp - ace/Log_Msg.cpp - tests/test_config.h - examples/Log_Msg/test_log_msg.cpp - examples/Reactor/Misc/test_time_value.cpp - examples/Threads/task_three.cpp - netsvcs/lib/Logging_Strategy.cpp - examples/Logger/Acceptor-server/server_loggerd.cpp - examples/ASX/UPIPE_Event_Server/event_server.cpp - examples/Reactor/Ntalker/ntalker.cpp - examples/Shared_Malloc/test_persistence.cpp - examples/System_V_IPC/SV_Message_Queues/MQ_Server.cpp - examples/System_V_IPC/SV_Message_Queues/MQ_Client.cpp - examples/System_V_IPC/SV_Message_Queues/TMQ_Server.cpp - examples/System_V_IPC/SV_Message_Queues/TMQ_Client.cpp - - * Updated makefile dependencies throughout ACE to reflect the - removal of stdcpp.h and the addition of streams.h. - - * examples/Threads/barrier2.cpp: Removed inclusion of stdcpp.h. - - * ace/IOStream_T.cpp: Reorganized include files so that inclusion - of config.h is not necessary. - - * ace/IOStream.cpp: Changed inclusion of config.h to OS.h. - - * ace: Removed config.h from the following files. It was - redundant. - - Timer_Hash.cpp - Timer_Heap.cpp - Timer_List.cpp - Timer_Queue.cpp - Timer_Wheel.cpp - - * ace: Added code to protect against multiple inclusions of - config.h. Following files were effected: - - Trace.cpp - Log_Msg.cpp - - * ace/config-win32-common.h: Removed redundant definitions of - ACE_HAS_TYPENAME_KEYWORD and ACE_HAS_SIG_ATOMIC_T. Thanks to - Matthias Kerkhoff for pointing this out. - -Wed Dec 3 21:37:47 1997 Douglas C. Schmidt - - * Added the new ACE-inheritance.ps and pdf files, which show the - class structure of ACE. Thanks to John Lindal - for generating this. - - * ace/Service_Config: Removed the static logger_key_ member and - replaced it with a (defaulted) parameter to open(). This is - more flexible. Thanks to Steve Coy for the suggestion. - - * ace/Service_Config.h: Addressed all the "@@" questions. - - * examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp (main): Fixed a - subtle bug in the "quit" logic. Thanks to Michael Hoffman - for reporting - this. - - * netsvcs/lib/Server_Logging_Handler_T.cpp (handle_logging_record), - netsvcs/lib/Client_Logging_Handler.cpp (send): - Changed the code so that we now always send ACE_UINT32 bytes - worth of data for the length field. This ensures we're portable - across platforms. Thanks to Steven Coy for noticing this. - -Wed Dec 03 18:02:09 1997 - - * performance-tests/Synch-Benchmarks/Benchmark.cpp: Added template - instantiations for Atomic_Op. - -Wed Dec 3 10:29:58 1997 Carlos O'Ryan - - * ace/ACE.cpp: - Use ACE_UINT32 to compute the 32-bit CRC, on Alphas (and - probably other 64 bit machines) u_long seems to be longer than - that. - -Wed Dec 03 07:39:15 1997 Steve Huston - - * include/makeinclude/platform_hpux.GNU: - * include/makeinclude/platform_hpux_gcc.GNU: Moved some compile options - from the DCFLAGS to the CCFLAGS to compile correctly with or without - debugging. - -Wed Dec 03 06:26:14 1997 David L. Levine - - * ace/Future.cpp, - tests/{Future_Test,Reactors_Test,Reader_Writer_Test.cpp, - examples/Threads/manual_event.cpp: - moved ACE_Atomic_Op instantiation from - ace/Future.cpp to where it is used. - - * ace/OS.cpp (inet_aton): return 0 if addr argument is 0. Thanks - to Wei for reporting this. - - * ace/config-linux.common.h: set an ACE_DEFAULT_BASE_ADDR, on Alpha - for now. This might be necessary on Intel as well. - - * ace/OS.{h,i}, config-osf1-4.0.h: fixed use of ::sigwait with - DIGITAL_UNIX's cxx 6.0, which now uses ACE_HAS_ONEARG_SIGWAIT. - Also, added an ACE_DEFAULT_BASE_ADDR to the config file. - - * tests/{Priority_Reactor_Test,Reactor_Performance_Test}.cpp: - instantiate ACE_Map_*, for use by ACE_Connector, with ACE_HANDLE - instead of int. That's the way it's declared in ace/Connector.h. - -Wed Dec 03 00:17:50 1997 - - * tests/test_config.h: Removed code for - ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION, as this option is no longer - necessary. - - * ace/stdcpp.h: Removed code for - ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION, as this option is no longer - necessary. - - * ace/config-vxworks5.x-g++.h: Removed - ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION. This flag is no longer - required. - - * ace/IOStream_T.cpp: Removed ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION - from #if defined. - - * ACE: Removed the explicit iostream.h inclusion from these: - - examples/ASX/UPIPE_Event_Server/event_server.cpp - examples/Log_Msg/test_log_msg.cpp - examples/Logger/Acceptor-server/server_loggerd.cpp - examples/Reactor/Misc/test_time_value.cpp - examples/Shared_Malloc/test_persistence.cpp - examples/Threads/task_three.cpp - netsvcs/lib/Logging_Strategy.cpp - - * ace/IOStream.h: Darrell missed removing this explicit iostream.h - inclusion. - - * ace/Future.cpp: Removed template instantiation of Atomic_Op - since Atomic_Op is not used by Future. - -Fri Dec 02 11:46:17 1997 - - * ace/Proactor.cpp (ACE_Proactor): Reenabled Proactor's thread - manager to wait on its Timer_Handler thread. - - * ace/Thread_Manager.cpp (close_singleton): Removed Win32 specific - codes. This is no longer necessary with above changes. - (wait): Close down thread handles when removing detached - threads. Avoid performing wait when the program is shutting - down. - (remove_thr_all): Extracted out this protected member function. - (close): Changed to use the new remove_thr_all function. - - * ace/Proactor.cpp (handle_events): Changed the magic number 258 - to WAIT_TIMEOUT. Thanks to Mark Rabotnikov - for pointing this out. - -Tue Dec 02 14:13:15 1997 Steve Huston - - * include/makeinclude/platform_hpux_aCC.GNU: Moved some compile options - from the DCFLAGS to the CCFLAGS to compile correctly with or without - debugging. Thanks to Istvan Buki for reporting - the problem. - -Tue Dec 02 06:16:39 1997 David L. Levine - - * ace/Object_Manager.cpp (~ACE_Object_Manager_Destroyer): don't - delete the ACE_Object_Manager if not destroyed by the main - thread. That can cause problems, at least on WIN32. And - it should only happen under exceptional conditions, at least - on WIN32. Thanks to Ari Erev and - John Neystadt for suggesting this. - - * ace/IOStream.cpp (underflow,overflow): moved get_mode_ and - put_mode_ accesses so that it now works on KAI C++. - Thanks to Ben Eng for the patch. - - * ace/config-linux-kcc.h: commented out ACE_TEMPLATES_REQUIRE_SOURCE. - Thanks to Ben Eng for this update. - - * ace/Profile_Timer.cpp (elapsed_time): changed - ACE_ONE_SECOND_IN_USECS to ACE_ONE_SECOND_IN_NSECS. Thanks - to Wei for noticing this. - - * ace/OS.cpp (inet_aton): removed CHORUS specialization. - Thanks to Wei for reporting this. - - * include/makeinclude/platform_chorus.GNU: added CHORUS = 1, - for use by individual Makefiles. - - * examples/Shared_Malloc/test_persistence.cpp: removed - ACE_Malloc - instantiation because it's in ace/System_Time.cpp. - - * ace/config-lynxos.h: removed ACE_HAS_UALARM, because LynxOS - apparently doesn't. - - * include/makeinclude/platform_lynxos.GNU: added -Winline and - removed -fno-strict-prototypes. - - * tests/Message_Queue_Test.cpp (main): increased queue size from - default of 16Kb to 32Kb, so that it runs on machines with 8Kb - pagesizes. And, added a check to see if the queue is full - before enqueuing. - - * ace/OS.i, config-osf1-4.0.h: DECXX 6009006 has SIGWAIT. - - * ACE-INSTALL.html: updated DEC_UNIX test status. Message_Queue_Test - and all of the Mutex_Tests now pass. Conn_Test no longer does. - -Tue Dec 02 00:18:04 1997 - - * ace/Memory_Pool.cpp (handle_signal): If guess_on_fault_ is true, - then we cannot call remap(0). This will always put the address - out of range. Therefore, we will shoot in the dark (user has - instructed us to do so as guess_on_fault_ is true) and try to - remap the file. If the user does not want this behavior, the - guess_on_fault_ flag should be turned off. Thanks to Jon - Prettyman for pointing this out. - -Mon Dec 01 16:13:06 1997 - - * ace/config-win32-common.h: Added back ACE_LACKS_ACE_IOSTREAM to - the config file. The test is not compiling. - - * tests/run_tests.bat: Look for "Win32 structured exception" in - the log files. - -Mon Dec 1 14:01:02 1997 Darrell Brunsch - - * ace/Log_Msg.cpp, ace/Log_Msg.h, ace/Log_Record.cpp, - ace/Log_Record.h ace/OS.h, ace/stdcpp.h, tests/test_config.h: - - Changed use of ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION in stdcpp.h - to include iostream when the above is #defined. Made - changes to other files to accommodate this change. - -Mon Dec 01 12:15:00 1997 - - * ace/config-win32-common.h (ACE_LACKS_ACE_IOSTREAM): James CE - Johnson claims that ACE_LACKS_ACE_IOSTREAM is no longer not - necessary when using the ACE_HAS_STANDARD_CPP_LIBRARY. - - * ace/OS.h: Changed the definition of ACE_UNIMPLEMENTED_FUNC so - that it just evaporates on platform that have - ACE_REQUIRES_FUNC_DEFINITIONS defined. - - ACE_UNIMPLEMENTED_FUNC is only required for template classes and - not for a normal class. When the template is explicitly - instantiated, it causes some compilers to look for the - definition of all the declared methods. - - On platforms that have this behavior, we have decided to take - out the declaration of this function. This is necessary since - an empty definition of {} usually does not work with some - constructors. And by providing a explicit definition of this - function, will cause all platforms to suffer. - - Therefore, platforms with ACE_REQUIRES_FUNC_DEFINITIONS defined - must be specially careful when using this. - -Mon Dec 01 07:56:02 1997 David L. Levine - - * include/makeinclude/platform_sunos5_sunc++.GNU: added - -xildoff to LDFLAGS, to avoid occasional problems with - the incremental linker. Thanks to Hans Rohnert - for this suggestion. - - * include/makeinclude/platform_vxworks5.x_g++.GNU, - etc/ace_ld, bin/ace_ld, ACE-INSTALL.html: - moved ace_ld from etc/ to bin/. - - * Makefile: added etc/ to CLONE and RELEASE_FILES. - - * include/makeinclude/platform_lynxos.GNU: added -Wall to CFLAGS. - - * ace/ACE.cpp (set_handle_limit): only call setrlimit if - RLIMIT_NOFILE is #defined. - - * ace/OS.h: removed ACE_HAS_STDARG_THR_DEST dependence for - ACE_THR_DEST definition. - - * ace/OS.cpp (thr_keycreate): with ACE_HAS_DCETHREADS only, cast - dest argument to ::pthread_keycreate if ACE_HAS_STDARG_THR_DEST. - - * ace/OS.i (get{host,proto,serv}by{addr,name}_r): with - ACE_HAS_NONCONST_GETBY only, added some ACE_UNUSED_ARGS. - - * examples/Shared_Malloc/Malloc.cpp: removed - ACE_Guard instantiation because it's in - ace/Synch.cpp. - - * ace/config-lynxos.h: added ACE_HAS_RECURSIVE_THR_EXIT_SEMANTICS. - Without it, the Thread_Manager went recursively ballistic. - - * performance-tests/Misc/preempt.cpp (main): fixed printout if - ACE_OS::sched_params () call failed. - -Sun Nov 30 22:44:50 1997 Douglas C. Schmidt - - * ACE version 4.4.1, released Sun Nov 30 22:44:50 1997. - -Sun Nov 30 20:32:50 1997 David L. Levine - - * include/makeinclude/platform_osf1_3.2.GNU: removed -ptr option - from CCFLAGS, so the default template repository will be used. - Thanks to Dani Flexer for reporting this. - - * ace/Svc_Conf_l.cpp,Makefile: - 1) #include ace/stdcpp.h instead of stdio.h so that anything - that needs to be #included with/before stdio.h can be. - 2) Changed ECHO to ACE_SVC_CONF_ECHO to avoid compiler warning if - ECHO was #defined to be a constant. - - * ace/Makefile: set ACELIB to null so that it can be used to build - shared libs, including libACE.$(SOEXT). - - * include/makeinclude/platform_osf1_4.0.GNU: added $(ACELIB) to - SOFLAGS to avoid shared lib build warnings about undefined ACE - symbols. - - * ace/Thread_Manager.h: declare ACE_THR_MEMBER_FUNC outside of - ACE_Thread_Manager class with __GNUG__ instead of with - VXWORKS || IRIX5. The problem is with older versions of g++, - not with the OS. - -Sun Nov 30 14:13:09 1997 Douglas C. Schmidt - - * netsvcs/servers/README: Clarified a bit more about how to - configure the client and server logging processes. Thanks to - Neil Cohen for motivating this. - -Sun Nov 30 17:36:35 1997 Sergio Flores - - * ace/Synch.cpp (ACE_File_Lock): Fixed order of parameters in the - call to this->open() and too many arguments in call to - ACE_File_Lock::open(). - -Sun Nov 30 16:31:41 1997 Carlos O'Ryan - - * ace/Synch.h: - * ace/Synch.cpp: - ACE_File_Lock should create the file if it does not exist, to do - so the constructor takes the parameter to ACE_OS::open() - and defaults to O_CREAT|O_RDWR. - -Sat Nov 29 21:31:07 1997 Nanbor Wang - - * ace/Proactor.cpp (~ACE_Proactor_Timer_Handler): Removed explicit - call to thr_mgr_.close(). - (ACE_Proactor): Be sure to ask Thread_Manager not to wait for - the timer_handler_ thread. - - * ace/Thread_Manager.cpp (close_singleton): Only reset - exit_on_wait status if we are responsible for deleting the - global thread manager. - -Sat Nov 29 15:15:04 1997 Carlos O'Ryan - - * ace/IPC_SAP.cpp: - Removed warning for functions not returning a value on SGI, it - seems that the flow changed and the last return was reached - sometimes, hence the ACE_NOTREACHED macro is no longer needed. - -Sat Nov 29 13:12:47 1997 Douglas C. Schmidt - - * ace/Synch: Conditionally inlined all the ACE_Process_Mutex - wrapper calls and moved them into the Synch.i file. I'm not - sure why there weren't here before. - - * ace/Synch: Reimplemented ACE_RW_Process_Mutex to use - ACE_File_Lock, which provides the proper readers/writer - semantics that had been lacking in the previous implementation. - -Fri Nov 28 04:25:23 1997 Nanbor Wang - - * ace: Removed redundant trailing commas from - ACE_UNIMPLEMENTED_FUNC. - - * ace/Thread_Manager.{h,i,cpp}: Delete declaration of - remove_thr_self. It is no longer in use. - (wait_on_exit): Added this function to let users specify whether - they want their Thread_Manager wait for spawned threads on exit - or not. - (wait): On Win32, handles should be closed if we decide to let - the thread go wild. - (remove_thr): Added another parameter to control whether - remove_thr should close the handle or not. It is only used on - Win32. - (close): Removed the parameter for it has been - incoporated as a member. - (close_singleton): Reset on Win32. We'll never - need to wait for unfinished threads on NT. - (ACE_Thread_Manager): Added initialization of member - . It is default to 1 (wait on exit.) - - * ace/Containers.h: Corrected erroneous comments. - -Wed Nov 26 10:33:22 1997 - - * ace/Log_Msg (msg): Changed the parameters from char * to const - char *. - - * ace: Added unimplemented copy constructors and assignment - operators to the following classes: - - ACE_Map_Manager - ACE_Message_Block - ACE_Data_Block - ACE_Log_Msg - ACE_Message_Queue - ACE_Task - ACE_Task_Base - - Added ACE_UNIMPLEMENTED_FUNC macros to these classes: - - ACE_Mem_Map - ACE_Priority_Reactor - ACE_Select_Reactor - ACE_WFMO_Reactor - ACE_XtReactor - ACE_Reactor - ACE_Read_Buffer - ACE_CORBA_Handler - ACE_TSS_TPQ_Entry - ACE_Object_Manager - ACE_File_Lock - ACE_Semaphore - ACE_RW_Mutex - ACE_Mutex - ACE_Null_Barrier - ACE_Null_Condition - ACE_Null_Mutex_Guard - ACE_Event - ACE_Thread_Mutex - ACE_Thread_Mutex_Guard - ACE_Condition_Thread_Mutex - ACE_Recursive_Thread_Mutex - ACE_Barrier - ACE_Condition - - Thanks to Stanley D Leeson for these - suggestions. - -Sat Dec 20 14:57:30 1997 - - * All MSVC 5.0 project files: Removed unnecessary library - inclusions. Most of them are not necessary. Thanks to - Patrick J. McNerthney for suggesting - this. - -Wed Nov 26 15:49:14 1997 David L. Levine - - * ace/IOStream_T.i (recv) affects WIN32 only: fixed typo, - ACE_BIT_ENABLED instead of ACE_BIT_ENTABLED IOStream_T.i. - Thanks to James CE Johnson for reporting this. - - * include/makeinclude/platform_lynxos.GNU: added information - on necessary OS patches. - -Wed Nov 26 09:45:43 1997 Chris Cleeland - - * ace/OS.h (ACE_PROPER_SINGLETON_INSTANTIATION): Corrected - misspelling in the "! defined (MSC_VER)" branch. I just happened - to notice this, so I don't know if anybody ever tried it and it - failed. - -Tue Nov 25 12:07:07 1997 David L. Levine - - * include/makeinclude/platform_osf1_3.2.GNU: updated for - OSF/1 3.2g/CXX 5.7. Thanks to Dani Flexer - for the updates. - -Tue Nov 25 01:07:39 1997 - - * examples/Reactor/Proactor/test_multiple_loops.cpp (main): Made - sure that the Proactor was removed from reactor. - - * ace/WFMO_Reactor.cpp (remove_handler_i, - remove_suspended_handler_i): Make sure to preserve DONT_CALL - with normal event entries. - - * ace/Proactor.cpp: - - - A flag used to indicate when we are shutting down. - - - Made sure to signal the timer event when we are closing down. - - - Thread Manager: don't bother to wait (since the thread may have - already gone). But make sure to close up the descriptor. This - may not be necessary in the future when THR_DETACHED is - correctly implemented. - - * ace/Asynch_IO.h: Changed some code from protected to public. - Even though these functions are really protected, sometimes it - simplifies user code to be able to "fake" a result. Users - should use these with care. - - * examples/Reactor/Proactor/test_proactor.cpp - (handle_write_stream): Added code for partial write to socket. - However it ever seems to do a short write ;-). Also made sure - that the initial data coming from the AcceptEx call is also - dumped to the file. Thanks to Mark Rabotnikov - (mark@netmanage.co.il) for pointing this out. diff --git a/STL/ACE_Changes b/STL/ACE_Changes deleted file mode 100644 index 902fb94c94c..00000000000 --- a/STL/ACE_Changes +++ /dev/null @@ -1,53 +0,0 @@ -This version of STL was obtained from -http://www.rahul.net/terris/. This is a modified version of the -implementation that comes with VC++4.0. Please see readme2.stl for -details. - -The following modification have been made for compilation with VC++4.x - -________________________________________ - -vector.h (line 85) -________________________________________ - - - /* - * This is cause the VC++ compiler sucks - * and does not recognize nested classes properly - * - */ -#if !defined (VC_PLUS_PLUS_NESTED_CLASS_PROBLEM) - vector(size_type n, const T& value = T()) { - start = static_allocator.allocate(n); - uninitialized_fill_n(start, n, value); - finish = start + n; - end_of_storage = finish; - } -#endif /* VC_PLUS_PLUS_NESTED_CLASS_PROBLEM */ - - -________________________________________ - -bstring.h (line 1102) -________________________________________ - - - /* - * This should be correctly scoped - * - * if (cap == ::reserve) - */ - - if (cap == std::reserve) - { - len = 0; - res = size; - ptr = new charT [res]; - } - /* - * This should be correctly scoped - * - * else if ((cap == ::default_size) && (size != NPOS)) - */ - - else if ((cap == std::default_size) && (size != NPOS)) diff --git a/STL/readme2.stl b/STL/readme2.stl deleted file mode 100644 index 5132bc1189b..00000000000 --- a/STL/readme2.stl +++ /dev/null @@ -1,272 +0,0 @@ -STL2.ZIP - -Standard Template Library for Visual C++ 4.0 -and Related Classes - -Revised 10/15/96 - Bug fixes and change to bit_vector. - -This version supports DLLs and threading. You must use critical -sections around code that uses the same container in different -threads. These features come at a price -- since memory -usage is not optimal, this code may use more memory and -may be slower. - -+ General strategy: Remove all statics except the - static allocator objects. -+ Vectors were not affected. -+ Major changes made to tree.h -+ Stability: Very stable. - -This code should be considered for experimental use only. There -are still statics lurking in some functions; these functions -are not thread-safe. - -------------------------- -Fix for bit_vector -------------------------- -This version also has a fix for bit_vector, which doesn't really -work with VC++ 4.x. Please include bvector.cpp in your -project if you use bit_vector. This fixes the linker errors -that occur if you use bector.h in multiple .cpp files. - -------------------------- -Disclaimer -------------------------- -Code is provided without warranty, liability, or technical support. - -STL.H and PTR.H are freely distributable and can be -modified in any way. - --------------------------------- -STRING.H does not compile. --------------------------------- - -"D. Pirzadeh" Explains how to fix: - -First, I got compile errors in "bstring.h" -and changed it as follows to correct: - line 1104 "::reserve" -> "std::reserve" - line 1110 "::default_size" -> "std::default_size" - -Also, I got an INTERNAL COMPILER ERROR with Visual C++ v4.0 when I did the fol- -lowing: - class xyz : public std::string { } - -I fixed it with: - typedef std::string XyzString; - class xyz : public XyzString { } - --------------------------------- -Changes made to STL distribution --------------------------------- - -These files were modified from the STL distribution shipped with -Microsoft Visual C++ 4.0. The files here are a complete, -working version of the STL. These files have been tested with -MFC applications. - -Changes were made to practically all header files. Look for -comments like: - -*Added by... -*Changed by... - ------------------- -Usage Instructions ------------------- - -Set the preprocessor variable NOMINMAX. - -As Microsoft recommends, the STL is compiled in the std namespace. - -When including these files, do **not** do this: - - namespace std - { - #include - } - -Instead, do this: - - #include - -Recommended usage: - - First, include: - - #include - #include - #include - - Then include the STL header files. - -------------------- -Support for CString -------------------- -The stl.h file contains code written by me. The file contains -operators that will allow you to use CString objects with STL -containers and functions. - -!!!! CString will not work with STL unless you include !!!! - -------------------------------------------- -Helper functions for pointers-in-containers -------------------------------------------- -There is a file called stl.h which contains two functions: - SequenceDelete - MapDelete -These functions send "delete" to all of the objects in a container. - -If you don't like this approach, you can use a supplied "pointer -wrapper" class. - -There is a file called ptr.h which contains a class called Ptr -that can be used exactly like a pointer. The object has a pointer -inside it that points to an object of any class. When a Ptr object -is deleted, "delete" is sent to its underlying pointer. Ptr can be -used with any STL container, as it has a copy constructor and -assignment operator, which transfers "ownership" of the pointer from -the source object to the destination object. Ptr is from the book -Design Patterns by Gamma et al -- see the Proxy pattern. - -The Ptr class makes memory leaks impossible, because it deletes -objects automatically when the container is deleted, or when -functions like "delete" are used. - -Example: - - This is a vector of CStrings: - - std::vector< Ptr > StringVector; - - StringVector.push_back( Ptr( new CString( "hello" ) ) ); - StringVector.push_back( Ptr( new CString( "This is another string" ) ) ); - ------------------------- -Common Problems with STL ------------------------- - -1) Compiler error: != is ambiguous - - Solution: put the following line at the beginning of the method - that caused the error: - - using namespace std; - -2) When using maps, the debugger crashes. - - This is because symbols for maps (actually, for the "pair") - get truncated to 255 characters. Solution: Turn off the - variables window in the debugger. Don't try to look at - a symbol that has been truncated. This is not an STL-specific - bug -- It's a bug in the debugger. - -3) All sorts of compile errors in STL header files - - Make sure the preprocessor variable NOMINMAX is defined - - -4) Compiler errors about "operator < is not available", etc. - The class involved has global comparison operators. - - Solution: - Write "routers" in the std namespace to the global namespace. - Example (see also stl.h - this is how CString is able - to work with STL): - - namespace std - { - BOOL operator < ( const MyClass & rLhs, - const AnotherClass & rRhs ) - { - return ::operator < ( rLhs, rRhs ); - } - } - - See also 5. - -5) When you use find() or another algorithm, the compiler - complains that it cannot find the == or < operators. - -If your code compiles without any error messages, then disregard -this section. However, if you get errors like "cannot convert -first argument from const class X" then read on. - -I am assuming that your code is calling an STL algorithm like -std::sort() or std::find(). If you're not, I can't help -you. - -There is apparently a bug in the Microsoft compiler regarding -namespaces. Namespaces cannot locate global -functions that reside in the global namespace. For example, -the binary == operator. - -Maybe this is a bug, maybe it isn't. This is not clear -to me. However, I do know what works and have tried many other -approaches that do not work. If you have a better solution I -would appreciate it if you could let me know about it. - -So, if you declare your own class and want to use algorithms -like find() on an STL container, you have two choices: - -(1) Declare == as a member function. -(2) Declare global operators == and !=. - -(1) simply works. There will come a time, however, when (1) -won't satisfy your needs. If A == B, then B == A. You can't -do this using member functions if A and B are from different -classes. - -If you choose (2), you must add the != operator to the std -namespace. There are two ways to do this. First, you can do -this: - namespace std - { - inline operator != ( const MyClass &rLhs, const MyClass &rRhs ) - { - return ::operator != ( rLhs, rRhs ); - } - } -This "routes" != from the std namespace to the global namespace. - -Note that ( lhs != rhs ) can be derived from the == operator -as !( lhs == rhs ). There is a macro in STL.H, -STL_DECLARE_GLOBAL_NE, that does this derivation. -This derivation will not work when for whatever reason, !(lhs == rhs) -is not the same as ( lhs != rhs ). - -The following example shows what you have to do for find(). Other -algorithms require you to declare <, <=, and >= too. See the -macros STL_DECLARE_GLOBAL_GE, STL_DECLARE_GLOBAL_LT, and -STL_GLOBAL_LE. These macros derive new comparison operators -from "operator <( const T&, const T& )". - -class MyClass -{ - public: - - int units; - CString description; -}; - -// We want to be able to test two MyClass objects against each other -// in STL. Need to create a global operator for this purpose. -// Since we use find(), we need to declare not-equal too. -bool operator == ( const MyClass &, const MyClass & ); -STL_DECLARE_GLOBAL_NE( MyClass, MyClass ) - -// These operators test for a matching description. -// We do A == B and B == A to be consistent. -bool operator == ( const MyClass&, const CString & ); -bool operator == ( const CString&, const MyClass & ); -STL_DECLARE_GLOBAL_NE( MyClass, CString ) -STL_DECLARE_GLOBAL_NE( CString, MyClass ) - -6. Errors when creating vectors that have vectors and deques - that have deques. - - Solution: Provide atruments to the constructor. - - std::vector< std::vector > - TwoDimensional( 0, std::vector() ); - diff --git a/TAO/Benchmark/Marshal_Test/Orbix/Makefile b/TAO/Benchmark/Marshal_Test/Orbix/Makefile deleted file mode 100644 index 0c40916fb67..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/Makefile +++ /dev/null @@ -1,75 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Top-level Makefile for the Orbix Marshal Benchmark -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -LDLIBS = -lACE -lbenchmark - -PROG_SRCS = marshalC.cpp marshalS.cpp orbix_marshal_client.cpp orbix_marshal_server.cpp \ - orbix_marshal_impl.cpp client.cpp server.cpp - -LSRC = $(PROG_SRCS) - -MARSHAL_CLIENT_OBJS = marshalC.o orbix_marshal_client.o client.o - -ifdef dsi -MARSHAL_SERVER_OBJS = orbix_marshal_impl.o orbix_marshal_server.o server.o -else -MARSHAL_SERVER_OBJS = marshalS.o orbix_marshal_impl.o orbix_marshal_server.o server.o -endif -BIN = client server - -BUILD = $(BIN) - -#CLIENT_LIBS = -lITini -liiop -lorbix -#SERVER_LIBS = -lITini -liiop -lDSI -lorbix -lIRclt -CLIENT_LIBS = -liiop -lorbix -SERVER_LIBS = -liiop -lDSI -lorbix -lIRclt - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -#include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU -# include Orbix specific file -include /project/mambo/gokhale/CONFIG/orbixsol2s4.mk - -#---------------------------------------------------------------------------- -# Local modifications to variables imported by includes above. -#---------------------------------------------------------------------------- - -ifndef TAO_ROOT -TAO_ROOT = $(ACE_ROOT)/TAO -endif - -CPPFLAGS += -I$(TAO_ROOT)/Benchmark - -server: $(addprefix $(VDIR),$(MARSHAL_SERVER_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(SERVER_LIBS) $(POSTLINK) - -client: $(addprefix $(VDIR),$(MARSHAL_CLIENT_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(CLIENT_LIBS) $(POSTLINK) - -marshal.h marshalC.cpp marshalS.cpp: marshal.idl - $(IDL) $(IDLFLAGS) $< - -clean: - rm -f core *.o *~ client server *C.cpp *S.cpp *S.h *C.h - $(MAKE) realclean - - - - diff --git a/TAO/Benchmark/Marshal_Test/Orbix/client.cpp b/TAO/Benchmark/Marshal_Test/Orbix/client.cpp deleted file mode 100644 index 80c62f5e6a7..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/client.cpp +++ /dev/null @@ -1,14 +0,0 @@ -// $Id$ - -#include "benchmark/driver.h" -#include "orbix_marshal_client.h" - -int main (int argc, char *argv []) -{ - // instantiate a DRIVER with the Orbix_Client_Proxy as the template - CORBA_Benchmark_Driver driver (new - Orbix_Marshal_Client_Proxy ()); - - // let the driver do everything for us so that we remain very simple - return driver.run (argc, argv); -} diff --git a/TAO/Benchmark/Marshal_Test/Orbix/marshal.h b/TAO/Benchmark/Marshal_Test/Orbix/marshal.h deleted file mode 100644 index c4791df7661..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/marshal.h +++ /dev/null @@ -1,1327 +0,0 @@ -// $Id$ - - -#ifndef marshal_h -#define marshal_h - -#include - -#include - - -#ifndef _IDL_SEQUENCE_any_defined -#define _IDL_SEQUENCE_any_defined - -class _IDL_SEQUENCE_any { - CORBA::ULong _maximum; - CORBA::ULong _length; - CORBA::any* _buffer; - unsigned char _release; - - public: - _IDL_SEQUENCE_any& operator= (const _IDL_SEQUENCE_any&); - _IDL_SEQUENCE_any (const _IDL_SEQUENCE_any&); - - _IDL_SEQUENCE_any (CORBA::ULong max); - _IDL_SEQUENCE_any (CORBA::ULong max, CORBA::ULong length, CORBA::any* data, CORBA::Boolean release = 0); - _IDL_SEQUENCE_any (); - - ~_IDL_SEQUENCE_any (); - - static CORBA::any* allocbuf(CORBA::ULong nelems); - static void freebuf(CORBA::any* data); - - CORBA::ULong maximum() const; - CORBA::ULong length() const; - void length (CORBA::ULong len); - - CORBA::any& operator [] (CORBA::ULong IT_i); - - const CORBA::any& operator [] (CORBA::ULong IT_i) const; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); -}; - -extern const CORBA::TypeCode_ptr _tc__IDL_SEQUENCE_any; - -#ifndef _IDL_SEQUENCE_anyVarH -#define _IDL_SEQUENCE_anyVarH - -#ifndef _IDL_SEQUENCE_anyvPtr -#define _IDL_SEQUENCE_anyvPtr -typedef _IDL_SEQUENCE_any* _IDL_SEQUENCE_any_vPtr; -typedef const _IDL_SEQUENCE_any* _IDL_SEQUENCE_any_cvPtr; -#endif - -class _IDL_SEQUENCE_any_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const _IDL_SEQUENCE_any_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new _IDL_SEQUENCE_any; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - _IDL_SEQUENCE_any_var (const _IDL_SEQUENCE_any_var &IT_s) { - (void) copyHelper (IT_s); - } - - _IDL_SEQUENCE_any_var () { - _ptr = NULL; - } - - _IDL_SEQUENCE_any_var (_IDL_SEQUENCE_any *IT_p) { - _ptr = IT_p; - } - - _IDL_SEQUENCE_any_var &operator= (_IDL_SEQUENCE_any *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - _IDL_SEQUENCE_any_var &operator= (const _IDL_SEQUENCE_any_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new _IDL_SEQUENCE_any; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~_IDL_SEQUENCE_any_var () { - delete _ptr; - } - - _IDL_SEQUENCE_any* operator-> () { - return _ptr; - } - - operator _IDL_SEQUENCE_any_cvPtr () const { return _ptr;} - operator _IDL_SEQUENCE_any_vPtr& () { return _ptr;} - operator _IDL_SEQUENCE_any& () const { return * _ptr;} - - const CORBA::any& operator[] (CORBA::ULong index) const; - - CORBA::any& operator[] (CORBA::ULong index); - - protected: - _IDL_SEQUENCE_any *_ptr; - private: - _IDL_SEQUENCE_any_var &operator= (const CORBA::_var &IT_s); - _IDL_SEQUENCE_any_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - - -#ifndef _Marshal_defined -#define _Marshal_defined -class Marshal_dispatch : public virtual CORBA::PPTR { -public: - - Marshal_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Marshal_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Marshal_dispatch () {} - - Marshal_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Marshal_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Marshal; - -#ifndef MarshalPtr -#define MarshalPtr - -typedef Marshal* Marshal_ptr; - -typedef Marshal* MarshalRef; - -#endif - - -#ifndef MarshalForwH -#define MarshalForwH -CORBA::ObjectRef Marshal_getBase (void *); -void Marshal_release (Marshal *, CORBA::Environment &IT_env); -void Marshal_release (Marshal_ptr); -Marshal* Marshal_duplicate (Marshal_ptr, CORBA::Environment &IT_env); -Marshal* Marshal_duplicate (Marshal_ptr ); -Marshal_ptr Marshal_nil (CORBA::Environment &IT_env); -Marshal_ptr Marshal_nil (); -#endif -#define Marshal_IMPL "Marshal" - - -class Marshal; - -typedef Marshal MarshalProxy; -#define Marshal_IR "Marshal" -#define Marshal_IMPL "Marshal" - -#ifndef MarshalPtr -#define MarshalPtr - -typedef Marshal* Marshal_ptr; - -typedef Marshal* MarshalRef; - -#endif - -class Marshal: public virtual CORBA::Object { -public: - Marshal (char *IT_OR); - Marshal (ObjectReference *IT_OR); - Marshal () : CORBA::Object (1) {} -protected: - Marshal_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Marshal_ptr _duplicate( - Marshal_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Marshal* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Marshal* _bind (CORBA::Environment &IT_env); - static Marshal* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Marshal* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); -private: - static const void* IT_impl; -public: - static Marshal_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Marshal_ptr) CORBA::OBJECT_NIL;} - -#ifndef Marshal_Marshal_Struct_defined -#define Marshal_Marshal_Struct_defined - -struct Marshal_Struct { - CORBA::Short s; - CORBA::Long l; - CORBA::Char c; - CORBA::Octet o; - CORBA::Double d; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - static void* IT_anySupport (CORBA::Request &IT_r, - void *&, void*, const CORBA::Flags&); - static const void *IT_fn; - Marshal_Struct(const Marshal_Struct &); - Marshal_Struct(); - ~Marshal_Struct(); - Marshal_Struct& operator= (const Marshal_Struct&); -}; - -static const CORBA::TypeCode_ptr _tc_Marshal_Struct; - -#ifndef Marshal_Marshal_StructVarH -#define Marshal_Marshal_StructVarH - -#ifndef Marshal_Marshal_StructvPtr -#define Marshal_Marshal_StructvPtr -typedef Marshal_Struct* Marshal_Struct_vPtr; -typedef const Marshal_Struct* Marshal_Struct_cvPtr; -#endif - -class Marshal_Struct_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Marshal_Struct_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Marshal_Struct; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Marshal_Struct_var (const Marshal_Struct_var &IT_s) { - (void) copyHelper (IT_s); - } - - Marshal_Struct_var () { - _ptr = new Marshal_Struct; -; - } - - Marshal_Struct_var (Marshal_Struct *IT_p) { - _ptr = IT_p; - } - - Marshal_Struct_var &operator= (Marshal_Struct *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Marshal_Struct_var &operator= (const Marshal_Struct_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Marshal_Struct; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Marshal_Struct_var () { - delete _ptr; - } - - Marshal_Struct* operator-> () { - return _ptr; - } - - operator Marshal_Struct_cvPtr () const { return _ptr;} - operator Marshal_Struct_vPtr& () { return _ptr;} - operator Marshal_Struct& () const { return * _ptr;} - - protected: - Marshal_Struct *_ptr; - private: - Marshal_Struct_var &operator= (const CORBA::_var &IT_s); - Marshal_Struct_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -static const CORBA::TypeCode_ptr _tc_discrim; - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th,e_6th, IT__ENUM_Marshal_discrim=CORBA_ULONG_MAX}; - -#ifndef Marshal_Marshal_Union_defined -#define Marshal_Marshal_Union_defined - -struct Marshal_Union { - private: - - discrim __d; - union { - CORBA::Short _s_; - CORBA::Long _l_; - CORBA::Char _c_; - CORBA::Octet _o_; - CORBA::Double _d_; - Marshal_Struct * _ms_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - static void* IT_anySupport (CORBA::Request &IT_r, - void *&, void*, const CORBA::Flags&); - static const void *IT_fn; - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Marshal::e_0th)) - { - this-> Marshal_Union::~Marshal_Union(); - memset(this, 0, sizeof(*this)); - } - - __d = Marshal::e_0th; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Marshal::e_1st)) - { - this-> Marshal_Union::~Marshal_Union(); - memset(this, 0, sizeof(*this)); - } - - __d = Marshal::e_1st; - isSet = 1; - _l_ = IT_member; - } - - CORBA::Char c () const { - return _c_; - } - - void c (CORBA::Char IT_member) { - if (isSet && (__d != Marshal::e_2nd)) - { - this-> Marshal_Union::~Marshal_Union(); - memset(this, 0, sizeof(*this)); - } - - __d = Marshal::e_2nd; - isSet = 1; - _c_ = IT_member; - } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Marshal::e_3rd)) - { - this-> Marshal_Union::~Marshal_Union(); - memset(this, 0, sizeof(*this)); - } - - __d = Marshal::e_3rd; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Double d () const { - return _d_; - } - - void d (CORBA::Double IT_member) { - if (isSet && (__d != Marshal::e_4th)) - { - this-> Marshal_Union::~Marshal_Union(); - memset(this, 0, sizeof(*this)); - } - - __d = Marshal::e_4th; - isSet = 1; - _d_ = IT_member; - } - - Marshal_Struct& ms () { - return (*_ms_); - } - - const Marshal_Struct& ms () const { - return (*_ms_); - } - - void ms (const Marshal_Struct& IT_member) { - if (isSet && (__d != Marshal::e_6th)) - { - this-> Marshal_Union::~Marshal_Union(); - memset(this, 0, sizeof(*this)); - } - - __d = Marshal::e_6th; - - if (!isSet) { - _ms_ = new Marshal_Struct; - isSet = 1; - } - *(_ms_) = IT_member; - } - - - Marshal_Union(); - Marshal_Union(const Marshal_Union &); - ~Marshal_Union(); - Marshal_Union& operator= (const Marshal_Union&); -}; - -static const CORBA::TypeCode_ptr _tc_Marshal_Union; - -#ifndef Marshal_Marshal_UnionVarH -#define Marshal_Marshal_UnionVarH - -#ifndef Marshal_Marshal_UnionvPtr -#define Marshal_Marshal_UnionvPtr -typedef Marshal_Union* Marshal_Union_vPtr; -typedef const Marshal_Union* Marshal_Union_cvPtr; -#endif - -class Marshal_Union_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Marshal_Union_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Marshal_Union; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Marshal_Union_var (const Marshal_Union_var &IT_s) { - (void) copyHelper (IT_s); - } - - Marshal_Union_var () { - _ptr = NULL; - } - - Marshal_Union_var (Marshal_Union *IT_p) { - _ptr = IT_p; - } - - Marshal_Union_var &operator= (Marshal_Union *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Marshal_Union_var &operator= (const Marshal_Union_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Marshal_Union; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Marshal_Union_var () { - delete _ptr; - } - - Marshal_Union* operator-> () { - return _ptr; - } - - operator Marshal_Union_cvPtr () const { return _ptr;} - operator Marshal_Union_vPtr& () { return _ptr;} - operator Marshal_Union& () const { return * _ptr;} - - protected: - Marshal_Union *_ptr; - private: - Marshal_Union_var &operator= (const CORBA::_var &IT_s); - Marshal_Union_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif -static const CORBA::TypeCode_ptr _tc_AnySeq; - -typedef _IDL_SEQUENCE_any AnySeq; -typedef const _IDL_SEQUENCE_any AnySeq_IT_const; - -typedef _IDL_SEQUENCE_any_var AnySeq_var; - - -#ifndef Marshal__IDL_SEQUENCE_Marshal_Marshal_Recursive_defined -#define Marshal__IDL_SEQUENCE_Marshal_Marshal_Recursive_defined - -struct Marshal_Recursive; -class _IDL_SEQUENCE_Marshal_Marshal_Recursive { - CORBA::ULong _maximum; - CORBA::ULong _length; - Marshal_Recursive* _buffer; - unsigned char _release; - - public: - _IDL_SEQUENCE_Marshal_Marshal_Recursive& operator= (const _IDL_SEQUENCE_Marshal_Marshal_Recursive&); - _IDL_SEQUENCE_Marshal_Marshal_Recursive (const _IDL_SEQUENCE_Marshal_Marshal_Recursive&); - - _IDL_SEQUENCE_Marshal_Marshal_Recursive (CORBA::ULong max); - _IDL_SEQUENCE_Marshal_Marshal_Recursive (CORBA::ULong max, CORBA::ULong length, Marshal_Recursive* data, CORBA::Boolean release = 0); - _IDL_SEQUENCE_Marshal_Marshal_Recursive (); - - ~_IDL_SEQUENCE_Marshal_Marshal_Recursive (); - - static Marshal_Recursive* allocbuf(CORBA::ULong nelems); - static void freebuf(Marshal_Recursive* data); - - CORBA::ULong maximum() const; - CORBA::ULong length() const; - void length (CORBA::ULong len); - - Marshal_Recursive& operator [] (CORBA::ULong IT_i); - - const Marshal_Recursive& operator [] (CORBA::ULong IT_i) const; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); -}; - -static const CORBA::TypeCode_ptr _tc__IDL_SEQUENCE_Marshal_Marshal_Recursive; - -#ifndef Marshal__IDL_SEQUENCE_Marshal_Marshal_RecursiveVarH -#define Marshal__IDL_SEQUENCE_Marshal_Marshal_RecursiveVarH - -#ifndef Marshal__IDL_SEQUENCE_Marshal_Marshal_RecursivevPtr -#define Marshal__IDL_SEQUENCE_Marshal_Marshal_RecursivevPtr -typedef _IDL_SEQUENCE_Marshal_Marshal_Recursive* _IDL_SEQUENCE_Marshal_Marshal_Recursive_vPtr; -typedef const _IDL_SEQUENCE_Marshal_Marshal_Recursive* _IDL_SEQUENCE_Marshal_Marshal_Recursive_cvPtr; -#endif - -class _IDL_SEQUENCE_Marshal_Marshal_Recursive_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new _IDL_SEQUENCE_Marshal_Marshal_Recursive; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var (const _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &IT_s) { - (void) copyHelper (IT_s); - } - - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var () { - _ptr = NULL; - } - - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var (_IDL_SEQUENCE_Marshal_Marshal_Recursive *IT_p) { - _ptr = IT_p; - } - - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &operator= (_IDL_SEQUENCE_Marshal_Marshal_Recursive *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &operator= (const _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new _IDL_SEQUENCE_Marshal_Marshal_Recursive; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~_IDL_SEQUENCE_Marshal_Marshal_Recursive_var () { - delete _ptr; - } - - _IDL_SEQUENCE_Marshal_Marshal_Recursive* operator-> () { - return _ptr; - } - - operator _IDL_SEQUENCE_Marshal_Marshal_Recursive_cvPtr () const { return _ptr;} - operator _IDL_SEQUENCE_Marshal_Marshal_Recursive_vPtr& () { return _ptr;} - operator _IDL_SEQUENCE_Marshal_Marshal_Recursive& () const { return * _ptr;} - - const Marshal_Recursive& operator[] (CORBA::ULong index) const; - - Marshal_Recursive& operator[] (CORBA::ULong index); - - protected: - _IDL_SEQUENCE_Marshal_Marshal_Recursive *_ptr; - private: - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &operator= (const CORBA::_var &IT_s); - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - - -#ifndef Marshal_Marshal_Recursive_defined -#define Marshal_Marshal_Recursive_defined - -struct Marshal_Recursive { - CORBA::any value; - _IDL_SEQUENCE_Marshal_Marshal_Recursive next; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - static void* IT_anySupport (CORBA::Request &IT_r, - void *&, void*, const CORBA::Flags&); - static const void *IT_fn; - Marshal_Recursive(const Marshal_Recursive &); - Marshal_Recursive(); - ~Marshal_Recursive(); - Marshal_Recursive& operator= (const Marshal_Recursive&); -}; - -static const CORBA::TypeCode_ptr _tc_Marshal_Recursive; - -#ifndef Marshal_Marshal_RecursiveVarH -#define Marshal_Marshal_RecursiveVarH - -#ifndef Marshal_Marshal_RecursivevPtr -#define Marshal_Marshal_RecursivevPtr -typedef Marshal_Recursive* Marshal_Recursive_vPtr; -typedef const Marshal_Recursive* Marshal_Recursive_cvPtr; -#endif - -class Marshal_Recursive_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Marshal_Recursive_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Marshal_Recursive; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Marshal_Recursive_var (const Marshal_Recursive_var &IT_s) { - (void) copyHelper (IT_s); - } - - Marshal_Recursive_var () { - _ptr = NULL; - } - - Marshal_Recursive_var (Marshal_Recursive *IT_p) { - _ptr = IT_p; - } - - Marshal_Recursive_var &operator= (Marshal_Recursive *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Marshal_Recursive_var &operator= (const Marshal_Recursive_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Marshal_Recursive; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Marshal_Recursive_var () { - delete _ptr; - } - - Marshal_Recursive* operator-> () { - return _ptr; - } - - operator Marshal_Recursive_cvPtr () const { return _ptr;} - operator Marshal_Recursive_vPtr& () { return _ptr;} - operator Marshal_Recursive& () const { return * _ptr;} - - protected: - Marshal_Recursive *_ptr; - private: - Marshal_Recursive_var &operator= (const CORBA::_var &IT_s); - Marshal_Recursive_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - - virtual void test_short (CORBA::Short s1, CORBA::Short& s2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void test_long (CORBA::Long l1, CORBA::Long& l2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void test_octet (CORBA::Octet o1, CORBA::Octet& o2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void test_char (CORBA::Char c1, CORBA::Char& c2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void test_double (CORBA::Double d1, CORBA::Double& d2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void test_struct (const Marshal_Struct& ms1, Marshal_Struct& ms2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void test_union (const Marshal_Union& u1, Marshal_Union& u2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void test_any (const CORBA::any& a1, CORBA::any*& a2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void test_sequence (const AnySeq& as1, AnySeq*& as2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void test_recursive (const Marshal_Recursive& mr1, Marshal_Recursive*& mr2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -extern const CORBA::TypeCode_ptr _tc_MarshalRef; - -#ifndef MarshalVarH -#define MarshalVarH - -#ifndef MarshalvPtr -#define MarshalvPtr -typedef Marshal* Marshal_vPtr; -typedef const Marshal* Marshal_cvPtr; -#endif - -class Marshal_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Marshal_var &IT_s) { - { - _ptr = Marshal_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Marshal_var (const Marshal_var &IT_s) { - (void) copyHelper (IT_s); - } - - Marshal_var () { - _ptr = Marshal_nil (); - } - - Marshal_var (Marshal *IT_p) { - _ptr = IT_p; - } - - Marshal_var &operator= (Marshal *IT_p) { - Marshal_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Marshal_var &operator= (const Marshal_var &IT_s) { - Marshal_release (_ptr); - _ptr = Marshal_duplicate (IT_s._ptr); - return (*this); - } - - ~Marshal_var () { - Marshal_release (_ptr); - } - - Marshal* operator-> () { - return _ptr; - } - - operator Marshal_cvPtr () const { return _ptr;} - operator Marshal_vPtr& () { return _ptr;} - - protected: - Marshal *_ptr; - private: - Marshal_var &operator= (const CORBA::_var &IT_s); - Marshal_var (const CORBA::_var &IT_s); - Marshal_var &operator= (const CORBA::_mgr &IT_s); - Marshal_var &operator= (const CORBA::_SeqElem &IT_s); - Marshal_var (const CORBA::_mgr &IT_s); - Marshal_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef MarshalMgrH -#define MarshalMgrH - -class Marshal_mgr : public CORBA::_mgr -{ - public: - - Marshal_mgr () { - _ptr = Marshal_nil (); - _release = 1; - } - - Marshal_mgr (const Marshal_mgr &IT_s) { - _ptr = Marshal_duplicate (IT_s._ptr); - _release = 1; - } - - Marshal_mgr &operator= (Marshal *IT_p) { - if (_ptr && _release) - Marshal_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Marshal_mgr &operator= (const Marshal_mgr &IT_s) { - if (_ptr && _release) - Marshal_release (_ptr); - _ptr = Marshal_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Marshal_mgr &operator= (Marshal_var &IT_s) { - if (_ptr && _release) - Marshal_release (_ptr); - _ptr = Marshal_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Marshal_mgr () { - if (_release) - Marshal_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Marshal* () const { - return (Marshal*) _ptr; - } - - Marshal_ptr operator-> () const { - return _ptr; - } - - Marshal *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Marshal_mgr Marshal_mgr_IT_const; -#endif - -#ifndef MarshalSeqElemH -#define MarshalSeqElemH - -class Marshal_SeqElem : public CORBA::_SeqElem -{ - public: - - Marshal_SeqElem (Marshal_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Marshal_SeqElem &operator= (Marshal_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Marshal_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Marshal_SeqElem &operator= (const Marshal_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Marshal_release (*(_ptr)); - *(_ptr) = Marshal_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Marshal_ptr () const { - return _ptr ? (Marshal_ptr) (*_ptr) : Marshal_nil(); - } - - Marshal_ptr operator->() const { return *_ptr;} - - protected: - Marshal_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Marshal(X) Marshal##X - -#define DEF_TIE_Marshal(X) \ - class Marshal##X : public virtual Marshal { \ - X* m_obj; \ - public: \ - \ - \ - Marshal##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Marshal(), m_obj(objp) { \ - m_pptr = new Marshal_dispatch \ - (( Marshal*)this,(CORBA::Object*)this,m,l,Marshal_IR,m_obj); \ - } \ - Marshal##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Marshal() { \ - m_pptr = new Marshal_dispatch \ - (( Marshal*)this,(CORBA::Object*)this,IT_m,Marshal_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Marshal##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual void test_short (CORBA::Short s1, CORBA::Short& s2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_short ( s1, s2,IT_env);\ -}\ - \ -virtual void test_long (CORBA::Long l1, CORBA::Long& l2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_long ( l1, l2,IT_env);\ -}\ - \ -virtual void test_octet (CORBA::Octet o1, CORBA::Octet& o2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_octet ( o1, o2,IT_env);\ -}\ - \ -virtual void test_char (CORBA::Char c1, CORBA::Char& c2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_char ( c1, c2,IT_env);\ -}\ - \ -virtual void test_double (CORBA::Double d1, CORBA::Double& d2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_double ( d1, d2,IT_env);\ -}\ - \ -virtual void test_struct (const Marshal::Marshal_Struct& ms1, Marshal::Marshal_Struct& ms2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_struct ( ms1, ms2,IT_env);\ -}\ - \ -virtual void test_union (const Marshal::Marshal_Union& u1, Marshal::Marshal_Union& u2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_union ( u1, u2,IT_env);\ -}\ - \ -virtual void test_any (const CORBA::any& a1, CORBA::any*& a2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_any ( a1, a2,IT_env);\ -}\ - \ -virtual void test_sequence (const Marshal::AnySeq& as1, Marshal::AnySeq*& as2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_sequence ( as1, as2,IT_env);\ -}\ - \ -virtual void test_recursive (const Marshal::Marshal_Recursive& mr1, Marshal::Marshal_Recursive*& mr2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_recursive ( mr1, mr2,IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Marshal \ -virtual void test_short (CORBA::Short s1, CORBA::Short& s2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_short ( s1, s2,IT_env);\ -}\ - \ -virtual void test_long (CORBA::Long l1, CORBA::Long& l2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_long ( l1, l2,IT_env);\ -}\ - \ -virtual void test_octet (CORBA::Octet o1, CORBA::Octet& o2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_octet ( o1, o2,IT_env);\ -}\ - \ -virtual void test_char (CORBA::Char c1, CORBA::Char& c2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_char ( c1, c2,IT_env);\ -}\ - \ -virtual void test_double (CORBA::Double d1, CORBA::Double& d2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_double ( d1, d2,IT_env);\ -}\ - \ -virtual void test_struct (const Marshal_Struct& ms1, Marshal_Struct& ms2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_struct ( ms1, ms2,IT_env);\ -}\ - \ -virtual void test_union (const Marshal_Union& u1, Marshal_Union& u2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_union ( u1, u2,IT_env);\ -}\ - \ -virtual void test_any (const CORBA::any& a1, CORBA::any*& a2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_any ( a1, a2,IT_env);\ -}\ - \ -virtual void test_sequence (const AnySeq& as1, AnySeq*& as2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_sequence ( as1, as2,IT_env);\ -}\ - \ -virtual void test_recursive (const Marshal_Recursive& mr1, Marshal_Recursive*& mr2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_recursive ( mr1, mr2,IT_env);\ -}\ - - - - -class MarshalProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - MarshalProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Marshal_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern MarshalProxyFactoryClass MarshalProxyFactory; - -class MarshalBOAImpl : public virtual Marshal { -public: - MarshalBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Marshal_IR)) - m_pptr = new Marshal_dispatch ( (Marshal*)this, - (CORBA::Object*)this, m, l, Marshal_IR, this); -} - - virtual void test_short (CORBA::Short s1, CORBA::Short& s2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void test_long (CORBA::Long l1, CORBA::Long& l2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void test_octet (CORBA::Octet o1, CORBA::Octet& o2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void test_char (CORBA::Char c1, CORBA::Char& c2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void test_double (CORBA::Double d1, CORBA::Double& d2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void test_struct (const Marshal_Struct& ms1, Marshal_Struct& ms2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void test_union (const Marshal_Union& u1, Marshal_Union& u2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void test_any (const CORBA::any& a1, CORBA::any*& a2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void test_sequence (const AnySeq& as1, AnySeq*& as2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void test_recursive (const Marshal_Recursive& mr1, Marshal_Recursive*& mr2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#ifndef _IDL_SEQUENCE_Marshal_Marshal_Recursive_defined -#define _IDL_SEQUENCE_Marshal_Marshal_Recursive_defined - -class _IDL_SEQUENCE_Marshal_Marshal_Recursive { - CORBA::ULong _maximum; - CORBA::ULong _length; - Marshal::Marshal_Recursive* _buffer; - unsigned char _release; - - public: - _IDL_SEQUENCE_Marshal_Marshal_Recursive& operator= (const _IDL_SEQUENCE_Marshal_Marshal_Recursive&); - _IDL_SEQUENCE_Marshal_Marshal_Recursive (const _IDL_SEQUENCE_Marshal_Marshal_Recursive&); - - _IDL_SEQUENCE_Marshal_Marshal_Recursive (CORBA::ULong max); - _IDL_SEQUENCE_Marshal_Marshal_Recursive (CORBA::ULong max, CORBA::ULong length, Marshal::Marshal_Recursive* data, CORBA::Boolean release = 0); - _IDL_SEQUENCE_Marshal_Marshal_Recursive (); - - ~_IDL_SEQUENCE_Marshal_Marshal_Recursive (); - - static Marshal::Marshal_Recursive* allocbuf(CORBA::ULong nelems); - static void freebuf(Marshal::Marshal_Recursive* data); - - CORBA::ULong maximum() const; - CORBA::ULong length() const; - void length (CORBA::ULong len); - - Marshal::Marshal_Recursive& operator [] (CORBA::ULong IT_i); - - const Marshal::Marshal_Recursive& operator [] (CORBA::ULong IT_i) const; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); -}; - -extern const CORBA::TypeCode_ptr _tc__IDL_SEQUENCE_Marshal_Marshal_Recursive; - -#ifndef _IDL_SEQUENCE_Marshal_Marshal_RecursiveVarH -#define _IDL_SEQUENCE_Marshal_Marshal_RecursiveVarH - -#ifndef _IDL_SEQUENCE_Marshal_Marshal_RecursivevPtr -#define _IDL_SEQUENCE_Marshal_Marshal_RecursivevPtr -typedef _IDL_SEQUENCE_Marshal_Marshal_Recursive* _IDL_SEQUENCE_Marshal_Marshal_Recursive_vPtr; -typedef const _IDL_SEQUENCE_Marshal_Marshal_Recursive* _IDL_SEQUENCE_Marshal_Marshal_Recursive_cvPtr; -#endif - -class _IDL_SEQUENCE_Marshal_Marshal_Recursive_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new _IDL_SEQUENCE_Marshal_Marshal_Recursive; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var (const _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &IT_s) { - (void) copyHelper (IT_s); - } - - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var () { - _ptr = NULL; - } - - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var (_IDL_SEQUENCE_Marshal_Marshal_Recursive *IT_p) { - _ptr = IT_p; - } - - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &operator= (_IDL_SEQUENCE_Marshal_Marshal_Recursive *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &operator= (const _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new _IDL_SEQUENCE_Marshal_Marshal_Recursive; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~_IDL_SEQUENCE_Marshal_Marshal_Recursive_var () { - delete _ptr; - } - - _IDL_SEQUENCE_Marshal_Marshal_Recursive* operator-> () { - return _ptr; - } - - operator _IDL_SEQUENCE_Marshal_Marshal_Recursive_cvPtr () const { return _ptr;} - operator _IDL_SEQUENCE_Marshal_Marshal_Recursive_vPtr& () { return _ptr;} - operator _IDL_SEQUENCE_Marshal_Marshal_Recursive& () const { return * _ptr;} - - const Marshal::Marshal_Recursive& operator[] (CORBA::ULong index) const; - - Marshal::Marshal_Recursive& operator[] (CORBA::ULong index); - - protected: - _IDL_SEQUENCE_Marshal_Marshal_Recursive *_ptr; - private: - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &operator= (const CORBA::_var &IT_s); - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - - -void operator<<= (CORBA::any &IT_a, const Marshal::Marshal_Union& IT_t); -CORBA::Boolean operator>>= (const CORBA::any &IT_a, Marshal::Marshal_Union*& IT_t); - - -void operator<<= (CORBA::any &IT_a, const Marshal::Marshal_Recursive& IT_t); -CORBA::Boolean operator>>= (const CORBA::any &IT_a, Marshal::Marshal_Recursive*& IT_t); - - -void operator<<= (CORBA::any &IT_a, Marshal_ptr IT_t); -CORBA::Boolean operator>>= (const CORBA::any &IT_a, Marshal_ptr& IT_t); - - -void operator<<= (CORBA::any &IT_a, const Marshal::_IDL_SEQUENCE_Marshal_Marshal_Recursive& IT_t); -CORBA::Boolean operator>>= (const CORBA::any &IT_a, Marshal::_IDL_SEQUENCE_Marshal_Marshal_Recursive*& IT_t); - - -void operator<<= (CORBA::any &IT_a, const _IDL_SEQUENCE_Marshal_Marshal_Recursive& IT_t); -CORBA::Boolean operator>>= (const CORBA::any &IT_a, _IDL_SEQUENCE_Marshal_Marshal_Recursive*& IT_t); - - -void operator<<= (CORBA::any &IT_a, Marshal::discrim IT_t); -CORBA::Boolean operator>>= (const CORBA::any &IT_a, Marshal::discrim& IT_t); - - -void operator<<= (CORBA::any &IT_a, const _IDL_SEQUENCE_any& IT_t); -CORBA::Boolean operator>>= (const CORBA::any &IT_a, _IDL_SEQUENCE_any*& IT_t); - - -void operator<<= (CORBA::any &IT_a, const Marshal::Marshal_Struct& IT_t); -CORBA::Boolean operator>>= (const CORBA::any &IT_a, Marshal::Marshal_Struct*& IT_t); - - -#endif diff --git a/TAO/Benchmark/Marshal_Test/Orbix/marshal.idl b/TAO/Benchmark/Marshal_Test/Orbix/marshal.idl deleted file mode 100644 index 80b3ec9ab20..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/marshal.idl +++ /dev/null @@ -1,90 +0,0 @@ -// $Id$ - -// Interface for the marshal benchmark - -interface Marshal -{ - struct Marshal_Struct - { - short s; - long l; - char c; - octet o; - double d; - }; - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th, e_6th}; - - union Marshal_Union - switch (discrim) - { - case e_0th: - short s; - case e_1st: - long l; - case e_2nd: - char c; - case e_3rd: - octet o; - case e_4th: - double d; - default: // this will test typecode indirection - Marshal_Struct ms; - }; - - /* - typedef sequence ShortSeq; - typedef sequence LongSeq; - typedef sequence OctetSeq; - typedef sequence CharSeq; - typedef sequence DoubleSeq; - typedef sequence StructSeq; - typedef sequence UnionSeq; - */ - // for testing sequences of Any - typedef sequence AnySeq; - - // testing recursive behavior - // complex. - struct Marshal_Recursive - { - // we use this to test the limited recursion allowed by IDL. This is an - // ideal test for indirected typecodes. - - // simulate a behavior of a list node - any value; - sequence next; - }; - - void test_short (in short s1, out short s2); // test a short - void test_long (in long l1, out long l2); // test a long - void test_octet (in octet o1, out octet o2); // test an octet - void test_char (in char c1, out char c2); // test a char - void test_double (in double d1, out double d2); // test a double - void test_struct (in Marshal_Struct ms1, out Marshal_Struct ms2); // test a - // struct - void test_union (in Marshal_Union u1, out Marshal_Union u2); // test a - // union. - void test_any (in any a1, out any a2); // test an Any - /* - void test_sequence (in ShortSeq ss1, in LongSeq ls1, in OctetSeq os1, in - CharSeq cs1, in DoubleSeq ds1, in StructSeq Ss1, in - UnionSeq us1, in AnySeq as1, - out ShortSeq ss2, out LongSeq ls2, out OctetSeq os2, out - CharSeq cs2, out DoubleSeq ds2, out StructSeq Ss2, out - UnionSeq us2, out AnySeq as2); - */ - void test_sequence (in AnySeq as1, out AnySeq as2); // this will result in a - // 3 level indirection - - // sequence, any, and its - // value type - void test_recursive (in Marshal_Recursive mr1, out Marshal_Recursive mr2); // - // very complicated -}; - - - - - - - diff --git a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.cpp b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.cpp deleted file mode 100644 index a42fee980f7..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.cpp +++ /dev/null @@ -1,1336 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Orbix marshal benchmark -// -// = FILENAME -// orbix_marshal_proxy.cpp -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -//#define USE_INIT -#include "orbix_marshal_client.h" - -#if !defined (__ACE_INLINE__) -#include "orbix_marshal_client.i" -#endif /* __ACE_INLINE__ */ - -int -Orbix_Marshal_Client_Proxy::run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - char **argv; - int argc; - CORBA::Object_ptr target; - char *markerserver; - int mlen=0, slen=0; // length of marker and service name - -#if 0 - // get the argument list to be passed on to the ORB_init method - argv = options.orb_init_args (argc); - - // get the orb. Pass any ORB_init arguments - this->orb_ = CORBA::ORB_init (argc, (char *const *)argv, "Orbix"); - if (this->orb_ == 0) - { - ACE_DEBUG ((LM_DEBUG, "ORB_init failed\n")); - return -1; - } -#endif - - // create a marker server - if (options.service_name ()) - slen = ACE_OS::strlen (options.service_name ()); - if (options.object_name ()) - mlen = ACE_OS::strlen (options.object_name ()); - - if (slen > 0) - { - markerserver = new char [mlen+slen+1+1]; - ACE_OS::sprintf (markerserver, "%s:%s", (mlen ? options.object_name ():""), - options.service_name ()); - ACE_DEBUG ((LM_DEBUG, "markerserver = %s\n", markerserver)); - } - else // server name is required - { - markerserver = NULL; - } - - // get the obj ref by binding it to the specified host using the specified obj_name - try { - target = Marshal::_bind (markerserver, options.hostname ()); - } - catch (CORBA::SystemException &se) - { - cerr << "failed to bind: " << &se << endl; - return 0; - } - if (CORBA::is_nil (target)) - { - ACE_DEBUG ((LM_DEBUG, "bind call failed\n")); - return -1; - } - - this->ref_ = Marshal::_narrow (target); - if (CORBA::is_nil (this->ref_)) - { - ACE_DEBUG ((LM_DEBUG, "narrow to Marshal failed\n")); - return -1; - } - - // tell the "results" object what file it must store the results into - results.filename (options.filename ()); - - // use SII or DII accordingly - switch (options.policy ()) - { - case CORBA_Marshal_Options::STATIC : // use SII - return this->use_sii (options, results); - break; - case CORBA_Marshal_Options::DYNAMIC : // use DII - return this->use_dii (options, results); - break; - default: - ACE_DEBUG ((LM_DEBUG, "bad policy\n")); - return -1; - } - // hopefully we are never here, else something is seriously wrong - return -1; -} - -int -Orbix_Marshal_Client_Proxy::use_sii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - int i; - int status = 0; - // This method tests the static invocation interface - - for (i=0; i < options.iterations () && !status; i++) - { - switch (options.data_type ()) - { - // shorts - case CORBA_Marshal_Options::SHORT: - status = sii_test_short (options, results); - break; - // longs - case CORBA_Marshal_Options::LONG: - status = sii_test_long (options, results); - break; - // octets - case CORBA_Marshal_Options::OCTET: - status = sii_test_octet (options, results); - break; - // chars - case CORBA_Marshal_Options::CHAR: - status = sii_test_char (options, results); - break; - // doubles - case CORBA_Marshal_Options::DOUBLE: - status = sii_test_double (options, results); - break; - // Structs - case CORBA_Marshal_Options::STRUCT: - status = sii_test_struct (options, results); - break; - // unions - case CORBA_Marshal_Options::UNION: - status = sii_test_union (options, results); - break; - // anys - case CORBA_Marshal_Options::ANY: - status = sii_test_any (options, results); - break; - // sequences - case CORBA_Marshal_Options::SEQUENCE: - status = sii_test_sequence (options, results); - break; - // longs - case CORBA_Marshal_Options::RECURSIVE: - // status = sii_test_recursive (options, results); - // doesn't work - break; - default: - status = -1; - } // end of switch - } // for loop - - if (!status) - return 0; - else - return -1; -} - -int -Orbix_Marshal_Client_Proxy::use_dii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - int i; - int status = 0; - // This method tests the dynamic invocation interface - - for (i=0; i < options.iterations () && !status; i++) - { - switch (options.data_type ()) - { - // shorts - case CORBA_Marshal_Options::SHORT: - status = dii_test_short (options, results); - break; - // longs - case CORBA_Marshal_Options::LONG: - status = dii_test_long (options, results); - break; - // octets - case CORBA_Marshal_Options::OCTET: - status = dii_test_octet (options, results); - break; - // chars - case CORBA_Marshal_Options::CHAR: - status = dii_test_char (options, results); - break; - // doubles - case CORBA_Marshal_Options::DOUBLE: - status = dii_test_double (options, results); - break; - // Structs - case CORBA_Marshal_Options::STRUCT: - status = dii_test_struct (options, results); - break; - // unions - case CORBA_Marshal_Options::UNION: - status = dii_test_union (options, results); - break; - // anys - case CORBA_Marshal_Options::ANY: - status = dii_test_any (options, results); - break; - // sequences - case CORBA_Marshal_Options::SEQUENCE: - status = dii_test_sequence (options, results); - break; - // longs - case CORBA_Marshal_Options::RECURSIVE: - // status = dii_test_recursive (options, results); - // doesn't work - break; - default: - status = -1; - } // end of switch - } // for loop - - if (!status) - return 0; - else - return -1; -} - - -// all helper functions : SII -int -Orbix_Marshal_Client_Proxy::sii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - CORBA::Short s1, s2; - s1 = 3; - ref_->test_short (s1, s2); - if (s2 == 2*s1) - { - ACE_DEBUG ((LM_DEBUG, "SII test_short success: s1 = %d, s2 = %d\n", s1, s2)); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_short failed: s1 = %d, s2 = %d\n", s1, s2)); - return -1; - } -} - -int -Orbix_Marshal_Client_Proxy::sii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - CORBA::Long l1, l2; - l1 = 256; - ref_->test_long (l1, l2); - if (l2 == 3*l1) - { - ACE_DEBUG ((LM_DEBUG, "SII test_long success: l1 = %d, l2 = %d\n", l1, l2)); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_long failed: l1 = %d, l2 = %d\n", l1, l2)); - return -1; - } -} - -int -Orbix_Marshal_Client_Proxy::sii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // octets -{ - CORBA::Octet o1, o2; - o1 = (CORBA::Octet) 127; - ref_->test_octet (o1, o2); - if (o1 == o2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_octet success: o1 = %c, o2 = %c\n", o1, o2)); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_octet failed: o1 = %c, o2 = %c\n", o1, o2)); - return -1; - } -} - -int -Orbix_Marshal_Client_Proxy::sii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // chars -{ - CORBA::Char c1, c2; - c1 = 'B'; - ref_->test_char (c1, c2); - if (c1 == c2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_char success: c1 = %c, c2 = %c\n", c1, c2)); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_char failed: c1 = %c, c2 = %c\n", c1, c2)); - return -1; - } -} - -int -Orbix_Marshal_Client_Proxy::sii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // doubles -{ - CORBA::Double d1, d2; - d1 = 3.1415; - ref_->test_double (d1, d2); - if (d2 == d1/2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_double success: d1 = %f, d2 = %f\n", d1, d2)); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_double failed: d1 = %f, d2 = %f\n", d1, d2)); - return -1; - } -} - -int -Orbix_Marshal_Client_Proxy::sii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // structs -{ - Marshal::Marshal_Struct ms1, ms2; - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA::Octet) 127; - ms1.d = 3.1415; - - ref_->test_struct (ms1, ms2); - if (ms1.s == ms2.s && ms1.l == ms2.l && ms1.c == ms2.c && ms1.o == ms2.o && - ms1.d == ms2.d) - { - ACE_DEBUG ((LM_DEBUG, "SII test_struct success\n")); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_struct failed\n")); - return -1; - } -} - -int -Orbix_Marshal_Client_Proxy::sii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // unions -{ - Marshal::Marshal_Union u1, u2; - Marshal::Marshal_Struct ms; - - // first test an enumerated case - // u1._d (Marshal::e_1st); Orbix does this on its own - u1.l (4567); - - ref_->test_union (u1, u2); - if ( (u1._d () == u2._d()) && (u1.l () == u2.l ())) - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for long (case e_1st) success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for long (case e_1st) failed\n")); - return -1; - } - - // now test the default case - // In Orbix, setting each field like this will not work because the poor - // Union has no clue what discriminant it must set to. -#if 0 - u1.ms ().s = 3; - u1.ms ().l = 256; - u1.ms ().c = 'B'; - u1.ms ().o = (CORBA::Octet) 127; - u1.ms ().d = 3.1415; -#endif - ms.s = 3; - ms.l = 256; - ms.c = 'B'; - ms.o = (CORBA::Octet) 127; - ms.d = 3.1415; - - u1.ms (ms); - - ref_->test_union (u1, u2); - - if (u1.ms ().s == u2.ms ().s && u1.ms ().l == u2.ms ().l && u1.ms ().c == u2.ms ().c && u1.ms ().o == u2.ms ().o && - u1.ms ().d == u2.ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for default (case e_6th) success\n")); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for default (case e_6th) failed\n")); - return -1; - } -} - -int -Orbix_Marshal_Client_Proxy::sii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // we send a struct thru the any - CORBA::Any a1, *a2; - Marshal::Marshal_Struct ms1, *ms2; - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA::Octet) 127; - ms1.d = 3.1415; - - // populate the any with a MarshalStruct - a1 <<= ms1; - - a2 = new CORBA::Any; - - // now test it - ref_->test_any (a1, a2); - - // check if the two typecodes are equal - if (a2->type ()->equal (Marshal::_tc_Marshal_Struct)) - { - // now see if the values are same - ms2 = (Marshal::Marshal_Struct *)a2->value (); - if (ms1.s == ms2->s && ms1.l == ms2->l && ms1.c == ms2->c && ms1.o == ms2->o && - ms1.d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "SII test_any success\n")); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_any value match failed\n")); - return -1; - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_any failed due to typecode mismatch\n")); - } - return 0; -} - -int -Orbix_Marshal_Client_Proxy::sii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // make a sequence of Anys and fill each one with a different data type - Marshal::AnySeq as1 (7), *as2; - Marshal::Marshal_Struct ms; - Marshal::Marshal_Union u; - - ms.s = 3; - ms.l = 256; - ms.c = 'B'; - ms.o = (CORBA::Octet) 127; - ms.d = 3.1415; - - u.ms (ms); - - // it looks like we must tell the sequence how many elements it is going to - // carry. By just fixing the max value does not work. - - as1.length (7); - - as1[0] <<= (CORBA::Short)3; - as1[1] <<= (CORBA::Long) 256; - as1[2] <<= CORBA::Any::from_octet ((CORBA::Octet)127); - as1[3] <<= CORBA::Any::from_char ('B'); - as1[4] <<= (CORBA::Double)3.1415; // double - as1[5] <<= ms; // struct - as1[6] <<= u; // union - - as2 = new Marshal::AnySeq; - - ref_->test_sequence (as1, as2); - - ACE_DEBUG ((LM_DEBUG, "SII test_sequence\n")); - if (as1.length () == as2->length ()) - { - // now make sure that the elements are same - for (int i=0; i < as1.length (); i++) - { - if (as1[i].type ()->equal ((*as2)[i].type ())) - { - // now see if the values are same - switch (i) - { - case 0: - if (*(CORBA::Short *)as1[i].value () == *(CORBA::Short - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, shorts matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on shorts match\n")); - } - break; - case 1: - if (*(CORBA::Long *)as1[i].value () == *(CORBA::Long - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, longs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on longs match\n")); - } - break; - case 2: - if (*(CORBA::Octet *)as1[i].value () == *(CORBA::Octet - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, octets matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on octets match\n")); - } - break; - case 3: - if (*(CORBA::Char *)as1[i].value () == *(CORBA::Char - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, chars matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on chars match\n")); - } - break; - case 4: - if (*(CORBA::Double *)as1[i].value () == *(CORBA::Double - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, doubles matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on doubles match\n")); - } - break; - case 5: - { - Marshal::Marshal_Struct *ms1, *ms2; - - ms1 = (Marshal::Marshal_Struct *)as1[i].value (); - ms2 = (Marshal::Marshal_Struct *)(*as2)[i].value (); - - if (ms1->s == ms2->s && ms1->l == ms2->l && ms1->c == ms2->c && ms1->o == ms2->o && - ms1->d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, structs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on structs match\n")); - } - } - break; - case 6: - { - Marshal::Marshal_Union *u1, *u2; - - u1 = (Marshal::Marshal_Union *)as1[i].value (); - u2 = (Marshal::Marshal_Union *)(*as2)[i].value (); - - if (u1->_d () == u2->_d () && u1->ms ().s == u2->ms ().s && - u1->ms ().l == u2->ms ().l && - u1->ms ().c == u2->ms ().c && u1->ms ().o == u2->ms ().o && - u1->ms ().d == u2->ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, unions matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on unions match\n")); - } - } - break; - } - } - else - { - ACE_DEBUG ((LM_DEBUG, - "SII test_sequence: typecode mismatch for element %d\n", i)); - break; - } - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_sequence failed: as2->length = %d\n", - as2->length ())); - } - return 0; -} - -int -Orbix_Marshal_Client_Proxy::sii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // we will try a simple one here - Marshal::Marshal_Recursive mr1, *elem1, *mr2, *elem2; - - mr1.value <<= (CORBA::Long)1; - mr1.next.length (1); // sequence of length 1 - - // fill the element - elem1 = &mr1.next[0]; - elem1->value <<= CORBA::Any::from_char ('D'); - elem1->next.length (0); // end of seq - - mr2 = new Marshal::Marshal_Recursive; - - try { - ref_->test_recursive (mr1, mr2); - } - catch (CORBA::SystemException &se){ - cerr << "error invoking request: " << se << endl; - } - - elem2 = &mr2->next[0]; - - if ((*(CORBA::Long *)mr1.value.value () == *(CORBA::Long*)mr2->value.value ()) - && (mr1.next.length () == mr2->next.length ()) // same length sequence - && (*(CORBA::Char *)elem1->value.value () == *(CORBA::Char *)elem2->value.value ()) - && (elem1->next.length () == elem2->next.length ())) - { - ACE_DEBUG ((LM_DEBUG, "SII test_recursive success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_recursive failure\n")); - } - - return 0; -} - -// ------------------------------------------------------- -// all helper functions : DII -// ------------------------------------------------------- - -int -Orbix_Marshal_Client_Proxy::dii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - CORBA::Short s1, s2; - - s1 = 3; - s2 = 0; - - orb_->create_list(2, arglist); // 2 arguments to be added - *(arglist->add (CORBA::ARG_IN)->value ()) <<= s1; - // this usage is also correct. All we care is to supply a storage area for - // the OUT parameter - // arglist->add (CORBA::ARG_OUT)->value ()->replace (CORBA::_tc_short, &s2); - *(arglist->add (CORBA::ARG_OUT)->value ()) <<= s2; - orb_->create_list(1, result_list); // 1 result - result = result_list->item (0); - - // create a request - ref_->_create_request(ctx, - "test_short", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= s2; - - if (s2 == 2*s1) - { - ACE_DEBUG ((LM_DEBUG, "DII test_short success: s1 = %d, s2 = %d\n", s1, s2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_short failed: s1 = %d, s2 = %d\n", s1, s2)); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Orbix_Marshal_Client_Proxy::dii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - CORBA::Long l1, l2; - - l1 = 256; - - orb_->create_list(2, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= l1; - arglist->add(CORBA::ARG_OUT)->value()->replace (CORBA::_tc_long, &l2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_long", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= l2; - - if (l2 == 3*l1) - { - ACE_DEBUG ((LM_DEBUG, "DII: test_long success: l1 = %d, l2 = %d\n", l1, l2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII: test_long failed: l1 = %d, l2 = %d\n", l1, l2)); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Orbix_Marshal_Client_Proxy::dii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // octets -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - CORBA::Octet o1, o2; - - o1 = (CORBA::Octet) 127; - - orb_->create_list(2, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= CORBA::Any::from_octet (o1); - arglist->add(CORBA::ARG_OUT)->value()->replace (CORBA::_tc_octet, &o2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_octet", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= CORBA::Any::to_octet (o2); - - if (o1 == o2) - { - ACE_DEBUG ((LM_DEBUG, "DII test_octet success: o1 = %c, o2 = %c\n", o1, o2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_octet failed: o1 = %c, o2 = %c\n", o1, o2)); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Orbix_Marshal_Client_Proxy::dii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // chars -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - CORBA::Char c1, c2; - - c1 = 'B'; - - orb_->create_list(2, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= CORBA::Any::from_char (c1); - arglist->add(CORBA::ARG_OUT)->value()->replace (CORBA::_tc_char, &c2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_char", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= CORBA::Any::to_char (c2); - - if (c1 == c2) - { - ACE_DEBUG ((LM_DEBUG, "DII test_char success: c1 = %c, c2 = %c\n", c1, c2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_char failed: c1 = %c, c2 = %c\n", c1, c2)); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Orbix_Marshal_Client_Proxy::dii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // doubles -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - CORBA::Double d1, d2; - - d1 = 3.1415; - - orb_->create_list(2, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= d1; - arglist->add(CORBA::ARG_OUT)->value()->replace (CORBA::_tc_double, &d2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_double", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= d2; - - if (d2 == d1/2) - { - ACE_DEBUG ((LM_DEBUG, "DII test_double success: d1 = %f, d2 = %f\n", d1, d2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_double failed: d1 = %f, d2 = %f\n", d1, d2)); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Orbix_Marshal_Client_Proxy::dii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // structs -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - Marshal::Marshal_Struct ms1, *ms2=0; - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA::Octet) 127; - ms1.d = 3.1415; - - orb_->create_list(2, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= ms1; - arglist->add(CORBA::ARG_OUT)->value()->replace (Marshal::_tc_Marshal_Struct, ms2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_struct", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= ms2; - - if (ms1.s == ms2->s && ms1.l == ms2->l && ms1.c == ms2->c && ms1.o == ms2->o && - ms1.d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "DII test_struct success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_struct failed\n")); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Orbix_Marshal_Client_Proxy::dii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // unions -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - Marshal::Marshal_Union u1, *u2 = 0; - Marshal::Marshal_Struct ms; - - - // first test an enumerated case - // u1._d (Marshal::e_1st); - u1.l (4567); - - orb_->create_list(2, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= u1; - arglist->add(CORBA::ARG_OUT)->value()->replace (Marshal::_tc_Marshal_Union, u2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_union", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= u2; - - if ( (u1._d () == u2->_d()) && (u1.l () == u2->l ())) - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for long (case e_1st) success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for long (case e_1st) failed\n")); - } - delete u2; - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - - // test the default case - ms.s = 3; - ms.l = 256; - ms.c = 'B'; - ms.o = (CORBA::Octet) 127; - ms.d = 3.1415; - - u1.ms (ms); - u2 = 0; - - orb_->create_list(2, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= u1; - arglist->add(CORBA::ARG_OUT)->value()->replace (Marshal::_tc_Marshal_Union, u2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_union", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= u2; - - if (u1.ms ().s == u2->ms ().s && u1.ms ().l == u2->ms ().l && u1.ms ().c == u2->ms ().c && u1.ms ().o == u2->ms ().o && - u1.ms ().d == u2->ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for default (case e_6th) success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for default (case e_6th) failed\n")); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Orbix_Marshal_Client_Proxy::dii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - // we send a struct thru the any - CORBA::Any a1, *a2; - Marshal::Marshal_Struct ms1, *ms2; - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA::Octet) 127; - ms1.d = 3.1415; - - // populate the any with a MarshalStruct - a1 <<= ms1; - - a2 = new CORBA::Any; - - // now test it - orb_->create_list(2, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= a1; - arglist->add(CORBA::ARG_OUT)->value()->replace (CORBA::_tc_any, a2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_any", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= (*a2); - - // check if the two typecodes are equal - if (a2->type ()->equal (Marshal::_tc_Marshal_Struct)) - { - // now see if the values are same - ms2 = (Marshal::Marshal_Struct *)a2->value (); - if (ms1.s == ms2->s && ms1.l == ms2->l && ms1.c == ms2->c && ms1.o == ms2->o && - ms1.d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "DII test_any success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_any value match failed\n")); - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_any failed due to typecode mismatch\n")); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Orbix_Marshal_Client_Proxy::dii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - // make a sequence of Anys and fill each one with a different data type - Marshal::AnySeq as1 (7), *as2; - Marshal::Marshal_Struct ms; - Marshal::Marshal_Union u; - - ms.s = 3; - ms.l = 256; - ms.c = 'B'; - ms.o = (CORBA::Octet) 127; - ms.d = 3.1415; - - u.ms (ms); - - // it looks like we must tell the sequence how many elements it is going to - // carry. By just fixing the max value does not work. - - as1.length (7); - - as1[0] <<= (CORBA::Short)3; - as1[1] <<= (CORBA::Long) 256; - as1[2] <<= CORBA::Any::from_octet ((CORBA::Octet)127); - as1[3] <<= CORBA::Any::from_char ('B'); - as1[4] <<= (CORBA::Double)3.1415; // double - as1[5] <<= ms; // struct - as1[6] <<= u; // union - - as2 = new Marshal::AnySeq; - - orb_->create_list(2, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= as1; - arglist->add(CORBA::ARG_OUT)->value()->replace (Marshal::_tc_AnySeq, as2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_sequence", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= as2; - - ACE_DEBUG ((LM_DEBUG, "DII test_sequence\n")); - if (as1.length () == as2->length ()) - { - // now make sure that the elements are same - for (int i=0; i < as1.length (); i++) - { - if (as1[i].type ()->equal ((*as2)[i].type ())) - { - // now see if the values are same - switch (i) - { - case 0: - if (*(CORBA::Short *)as1[i].value () == *(CORBA::Short - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, shorts matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on shorts match\n")); - } - break; - case 1: - if (*(CORBA::Long *)as1[i].value () == *(CORBA::Long - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, longs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on longs match\n")); - } - break; - case 2: - if (*(CORBA::Octet *)as1[i].value () == *(CORBA::Octet - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, octets matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on octets match\n")); - } - break; - case 3: - if (*(CORBA::Char *)as1[i].value () == *(CORBA::Char - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, chars matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on chars match\n")); - } - break; - case 4: - if (*(CORBA::Double *)as1[i].value () == *(CORBA::Double - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, doubles matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on doubles match\n")); - } - break; - case 5: - { - Marshal::Marshal_Struct *ms1, *ms2; - - ms1 = (Marshal::Marshal_Struct *)as1[i].value (); - ms2 = (Marshal::Marshal_Struct *)(*as2)[i].value (); - - if (ms1->s == ms2->s && ms1->l == ms2->l && ms1->c == ms2->c && ms1->o == ms2->o && - ms1->d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, structs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on structs match\n")); - } - } - break; - case 6: - { - Marshal::Marshal_Union *u1, *u2; - - u1 = (Marshal::Marshal_Union *)as1[i].value (); - u2 = (Marshal::Marshal_Union *)(*as2)[i].value (); - - if (u1->_d () == u2->_d () && u1->ms ().s == u2->ms ().s && - u1->ms ().l == u2->ms ().l && - u1->ms ().c == u2->ms ().c && u1->ms ().o == u2->ms ().o && - u1->ms ().d == u2->ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, unions matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on unions match\n")); - } - } - break; - } - } - else - { - ACE_DEBUG ((LM_DEBUG, - "DII test_sequence: typecode mismatch for element %d\n", i)); - break; - } - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_sequence failed: as2->length = %d\n", - as2->length ())); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Orbix_Marshal_Client_Proxy::dii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // we will try a simple one here - Marshal::Marshal_Recursive mr1, *elem1, *mr2, *elem2; - - mr1.value <<= (CORBA::Long)1; - mr1.next.length (1); // sequence of length 1 - - // fill the element - elem1 = &mr1.next[0]; - elem1->value <<= CORBA::Any::from_char ('D'); - elem1->next.length (0); // end of seq - - mr2 = new Marshal::Marshal_Recursive; - - try { - ref_->test_recursive (mr1, mr2); - } - catch (CORBA::SystemException &se){ - cerr << "error invoking request: " << se << endl; - } - - elem2 = &mr2->next[0]; - - if ((*(CORBA::Long *)mr1.value.value () == *(CORBA::Long*)mr2->value.value ()) - && (mr1.next.length () == mr2->next.length ()) // same length sequence - && (*(CORBA::Char *)elem1->value.value () == *(CORBA::Char *)elem2->value.value ()) - && (elem1->next.length () == elem2->next.length ())) - { - ACE_DEBUG ((LM_DEBUG, "DII test_recursive success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_recursive failure\n")); - } - - return 0; -} - diff --git a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.h b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.h deleted file mode 100644 index 9fce90ef265..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.h +++ /dev/null @@ -1,125 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Marshal Orbix Benchmark -// -// = FILENAME -// orbix_marshal_client.h -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined(_ORBIX_MARSHAL_CLIENT_H_) -#define _ORBIX_MARSHAL_CLIENT_H_ - -// benchmark library includes -#include "benchmark/marshal_options.h" -#include "benchmark/marshal_results.h" -#include "benchmark/marshal_proxy.h" - -// include Orbix specific include files -#include "marshal.h" // generated by IDL compiler - -class Orbix_Marshal_Client_Proxy : public CORBA_Marshal_Proxy -{ - // =TITLE - // Orbix_Marshal_Client_Proxy - // =DESCRIPTION - // Orbix client size specialization of the CORBA Marshal proxy class -public: - Orbix_Marshal_Client_Proxy (void); - // constructor - - ~Orbix_Marshal_Client_Proxy (void); - // destructor - - virtual int run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // do the actual work - - virtual int use_sii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // use the static invocation interface - - virtual int use_dii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // use the dynamic invocation interface -private: - // =helper functions - int sii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - // all the DII helpers - int dii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - CORBA::ORB_ptr orb_; - // handle to the underlying orb - - Marshal_ptr ref_; - // the object reference -}; - -#if defined (__ACE_INLINE__) -#include "orbix_marshal_client.i" -#endif /* __ACE_INLINE__ */ - -#endif diff --git a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.i b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.i deleted file mode 100644 index a99b72db952..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.i +++ /dev/null @@ -1,23 +0,0 @@ -// $Id$ - - -ACE_INLINE -Orbix_Marshal_Client_Proxy::Orbix_Marshal_Client_Proxy (void) - : orb_ (CORBA::ORB::_nil ()), - ref_ (0) -{ -} - -ACE_INLINE -Orbix_Marshal_Client_Proxy::~Orbix_Marshal_Client_Proxy (void) -{ - // releasing order is important - - // release the reference - CORBA::release (ref_); - - // release the ORB - CORBA::release (orb_); -} - - diff --git a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.cpp b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.cpp deleted file mode 100644 index 6ef34f0d8bd..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.cpp +++ /dev/null @@ -1,311 +0,0 @@ -// $Id$ - -#include "orbix_marshal_impl.h" - -#if !defined (__ACE_INLINE__) -#include "orbix_marshal_impl.i" -#endif /* __ACE_INLINE__ */ - -// All the methods of the SSI class -void -Marshal_SSI_Impl::test_short (CORBA::Short s1, - CORBA::Short &s2, - CORBA::Environment &IT_env) -{ - s2 = 2*s1; -} - -void -Marshal_SSI_Impl::test_long (CORBA::Long l1, - CORBA::Long &l2, - CORBA::Environment &IT_env) -{ - l2 = 3*l1; -} - -void -Marshal_SSI_Impl::test_octet (CORBA::Octet o1, - CORBA::Octet &o2, - CORBA::Environment &IT_env) -{ - o2 = o1; -} - -void -Marshal_SSI_Impl::test_char (CORBA::Char c1, - CORBA::Char &c2, - CORBA::Environment &IT_env) -{ - c2 = c1; -} - -void -Marshal_SSI_Impl::test_double (CORBA::Double d1, - CORBA::Double &d2, - CORBA::Environment &IT_env) -{ - d2 = d1/2; -} - -void -Marshal_SSI_Impl::test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2, - CORBA::Environment &IT_env) -{ - ms2.s = ms1.s; - ms2.l = ms1.l; - ms2.c = ms1.c; - ms2.o = ms1.o; - ms2.d = ms1.d; -} - -void -Marshal_SSI_Impl::test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2, - CORBA::Environment &IT_env) -{ - switch (u1._d ()) - { - case Marshal::e_0th: - u2.s (u1.s ()); // set short - break; - case Marshal::e_1st: - u2.l (u1.l ()); // set long - break; - case Marshal::e_2nd: - u2.c (u1.c ()); // set char - break; - case Marshal::e_3rd: - u2.o (u1.o ()); // set octet - break; - case Marshal::e_4th: - u2.d (u1.d ()); // set double - break; - case Marshal::e_5th: - default: - u2.ms (u1. ms ()); // set structs - break; - } -} - -void -Marshal_SSI_Impl::test_any (const CORBA::Any &a1, - CORBA::Any *&a2, - CORBA::Environment &IT_env) -{ - a2 = new CORBA::Any (a1.type (), (void *)a1.value ()); // will do a deep copy -} - -void -Marshal_SSI_Impl::test_sequence (const Marshal::AnySeq& as1, - Marshal::AnySeq *& as2, - CORBA::Environment &IT_env) -{ - as2 = new Marshal::AnySeq (as1); -} - -void -Marshal_SSI_Impl::test_recursive (const Marshal::Marshal_Recursive &mr1, - Marshal::Marshal_Recursive *&mr2, - CORBA::Environment &IT_env) -{ -} - -//---------------------------------------------------------------------------- -//the methods of the DSI implementation class - -void -Marshal_DSI_Impl::invoke (CORBA::ServerRequest& req, CORBA::Environment_ptr - ep, CORBA::Environment &IT_env) -{ - ACE_DEBUG ((LM_DEBUG, "************ inside invoke **********\n")); - // parse the incoming request and find out for what operation it is. We use a - // simple linear search here - if (!ACE_OS::strcmp (req.op_name (IT_env), "test_short")) - { - test_short_skel (req); - } - else if (!ACE_OS::strcmp (req.op_name (), "test_long")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_octet")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_char")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_double")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_struct")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_union")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_any")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_sequence")) - { - } -} - -void -Marshal_DSI_Impl::test_short (CORBA::Short s1, - CORBA::Short &s2) -{ - s2 = 5*s1; -} - -void -Marshal_DSI_Impl::test_long (CORBA::Long l1, - CORBA::Long &l2) -{ - l2 = l1; -} - -void -Marshal_DSI_Impl::test_octet (CORBA::Octet o1, - CORBA::Octet &o2) -{ - o2 = o1; -} - -void -Marshal_DSI_Impl::test_char (CORBA::Char c1, - CORBA::Char &c2) -{ - c2 = c1; -} - -void -Marshal_DSI_Impl::test_double (CORBA::Double d1, - CORBA::Double &d2) -{ - d2 = d1; -} - -void -Marshal_DSI_Impl::test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2) -{ - ms2.s = ms1.s; - ms2.l = ms1.l; - ms2.c = ms1.c; - ms2.o = ms1.o; - ms2.d = ms1.d; -} - -void -Marshal_DSI_Impl::test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2) -{ - switch (u1._d ()) - { - case Marshal::e_0th: - u2.s (u1.s ()); // set short - break; - case Marshal::e_1st: - u2.l (u1.l ()); // set long - break; - case Marshal::e_2nd: - u2.c (u1.c ()); // set char - break; - case Marshal::e_3rd: - u2.o (u1.o ()); // set octet - break; - case Marshal::e_4th: - u2.d (u1.d ()); // set double - break; - case Marshal::e_5th: - default: - u2.ms (u1. ms ()); // set structs - break; - } -} - -void -Marshal_DSI_Impl::test_any (const CORBA::Any &a1, - CORBA::Any *&a2) -{ - a2 = new CORBA::Any (a1.type (), (void *)a1.value ()); // will do a deep copy -} - -void -Marshal_DSI_Impl::test_sequence (const Marshal::AnySeq& as1, - Marshal::AnySeq *& as2) -{ - as2 = new Marshal::AnySeq (as1); -} - -void -Marshal_DSI_Impl::test_recursive (const Marshal::Marshal_Recursive &mr1, - Marshal::Marshal_Recursive *&mr2) -{ -} - -// all the helper functions for the DSI class -void -Marshal_DSI_Impl::test_short_skel (CORBA::ServerRequest& req) -{ - CORBA::NVList_ptr short_nv; - CORBA::Any *any_s1, *any_s2; - CORBA::Short s1 = 0, s2 = 0; - - orb_->create_list (2, short_nv); // parse 2 args - any_s1 = new CORBA::Any (CORBA::_tc_short, &s1, 0); - any_s2 = new CORBA::Any (CORBA::_tc_short, &s2, 0); - short_nv->add_value ("s1", *any_s1, CORBA::ARG_IN); - short_nv->add_value ("s2", *any_s2, CORBA::ARG_OUT); - - req.params (short_nv); - - test_short (s1, s2); - ACE_DEBUG ((LM_DEBUG, ">>>>>>>s1 = %d and s2 = %d\n<<<<<<<<", s1, s2)); -} - -void -Marshal_DSI_Impl::test_long_skel (CORBA::ServerRequest& req) -{ -} - -void -Marshal_DSI_Impl::test_octet_skel (CORBA::ServerRequest& req) -{ -} - -void -Marshal_DSI_Impl::test_char_skel (CORBA::ServerRequest& req) -{ -} - -void -Marshal_DSI_Impl::test_double_skel (CORBA::ServerRequest& req) -{ -} - -void -Marshal_DSI_Impl::test_struct_skel (CORBA::ServerRequest& req) -{ -} - -void -Marshal_DSI_Impl::test_union_skel (CORBA::ServerRequest& req) -{ -} - -void -Marshal_DSI_Impl::test_any_skel (CORBA::ServerRequest& req) -{ -} - -void -Marshal_DSI_Impl::test_sequence_skel (CORBA::ServerRequest& req) -{ -} - -void -Marshal_DSI_Impl::test_recursive_skel (CORBA::ServerRequest& req) -{ -} diff --git a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.h b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.h deleted file mode 100644 index a74866173d8..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.h +++ /dev/null @@ -1,191 +0,0 @@ -// $Id$ - -#if !defined (ORBIX_MARSHAL_IMPL_H) -#define ORBIX_MARSHAL_IMPL_H - -// to include DSI related files - -#include "ace/OS.h" - -#include "marshal.h" - - -class Marshal_SSI_Impl - : public virtual MarshalBOAImpl -{ - // =TITLE - // Marshal_SSI_Impl - // =DESCRIPTION - // Implementation of the interface using the static skeleton interface -public: - Marshal_SSI_Impl (const char *object_name = (const char *)NULL); - // constructor - - ~Marshal_SSI_Impl (void); - // destructor - - virtual void test_short (CORBA::Short s1, - CORBA::Short& s2, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - // test short - - virtual void test_long (CORBA::Long l1, - CORBA::Long& l2, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - // test long - - virtual void test_octet (CORBA::Octet o1, - CORBA::Octet& o2, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - // test octet - - virtual void test_char (CORBA::Char c1, - CORBA::Char& c2, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - // test char - - virtual void test_double (CORBA::Double d1, - CORBA::Double& d2, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - // test double - - virtual void test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - // test struct - - virtual void test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - // test union - - virtual void test_any (const CORBA::Any& a1, - CORBA::Any *& a2, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - // test any - - /* - virtual void test_sequence (const Marshal::ShortSeq& s1, - const Marshal::LongSeq& l1, - const Marshal::OctetSeq& o1, - const Marshal::CharSeq& c1, - const Marshal::DoubleSeq& d1, - const Marshal::StructSeq& S1, - const Marshal::UnionSeq& U1, - const Marshal::AnySeq& a1, - Marshal::ShortSeq *& s2, - Marshal::LongSeq *& l2, - Marshal::OctetSeq *& o2, - Marshal::CharSeq *& c2, - Marshal::DoubleSeq *& d2, - Marshal::StructSeq *& S2, - Marshal::UnionSeq *& U2, - Marshal::AnySeq *& a2); - */ - virtual void test_sequence (const Marshal::AnySeq& a1, - Marshal::AnySeq *& a2, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - // test sequence - - virtual void test_recursive (const Marshal::Marshal_Recursive& mr1, - Marshal::Marshal_Recursive *& mr2, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - // test struct - -}; - -class Marshal_DSI_Impl : public CORBA::DynamicImplementation -{ - // =TITLE - // Marshal_DSI_Impl - // =DESCRIPTION - // Implementation of the interface using the dynamic skeleton interface -public: - Marshal_DSI_Impl (CORBA::ORB_ptr orb, const char *object_name = (const char *)NULL); - // constructor - - ~Marshal_DSI_Impl (void); - // destructor - -private: - virtual void invoke (CORBA::ServerRequest& req, CORBA::Environment_ptr, - CORBA::Environment&IT_env = - CORBA::IT_chooseDefaultEnv()); - // This method is a must - - void test_short (CORBA::Short s1, - CORBA::Short& s2); - // test short - - void test_long (CORBA::Long l1, - CORBA::Long& l2); - // test long - - void test_octet (CORBA::Octet o1, - CORBA::Octet& o2); - // test octet - - void test_char (CORBA::Char c1, - CORBA::Char& c2); - // test char - - void test_double (CORBA::Double d1, - CORBA::Double& d2); - // test double - - void test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2); - // test struct - - void test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2); - // test union - - void test_any (const CORBA::Any& a1, - CORBA::Any *& a2); - // test any - - void test_sequence (const Marshal::AnySeq& a1, - Marshal::AnySeq *& a2); - // test sequence - - void test_recursive (const Marshal::Marshal_Recursive& mr1, - Marshal::Marshal_Recursive *& mr2); - // test struct - -private: - //= helper functions - they behave as if they were skeletons - void test_short_skel (CORBA::ServerRequest& req); - void test_long_skel (CORBA::ServerRequest& req); - void test_octet_skel (CORBA::ServerRequest& req); - void test_char_skel (CORBA::ServerRequest& req); - void test_double_skel (CORBA::ServerRequest& req); - void test_struct_skel (CORBA::ServerRequest& req); - void test_union_skel (CORBA::ServerRequest& req); - void test_any_skel (CORBA::ServerRequest& req); - void test_sequence_skel (CORBA::ServerRequest& req); - void test_recursive_skel (CORBA::ServerRequest& req); - - // we need the orb to create argument lists (NVList) for us - CORBA::ORB_ptr orb_; // not owned by us - -#if 0 - CORBA::NVList_ptr short_nv_; - CORBA::NVList_ptr long_nv_; - CORBA::NVList_ptr octet_nv_; - CORBA::NVList_ptr char_nv_; - CORBA::NVList_ptr double_nv_; - CORBA::NVList_ptr struct_nv_; - CORBA::NVList_ptr union_nv_; - CORBA::NVList_ptr any_nv_; - CORBA::NVList_ptr seq_nv_; - CORBA::NVList_ptr recursive_nv_; - CORBA::Any_ptr result_; // void result -#endif -}; - -#if defined (__ACE_INLINE__) -#include "orbix_marshal_impl.i" -#endif /* __ACE_INLINE__ */ - -#endif // defined (ORBIX_MARSHAL_IMPL_H) diff --git a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.i b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.i deleted file mode 100644 index 0efa658c148..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.i +++ /dev/null @@ -1,29 +0,0 @@ -// $Id$ - -// constructor -ACE_INLINE -Marshal_SSI_Impl::Marshal_SSI_Impl (const char *obj_name) - : MarshalBOAImpl (obj_name) -{ -} - -// destructor -ACE_INLINE -Marshal_SSI_Impl::~Marshal_SSI_Impl (void) -{ -} - -// constructor -ACE_INLINE -Marshal_DSI_Impl::Marshal_DSI_Impl (CORBA::ORB_ptr orb, const char *obj_name) - : orb_ (orb) -{ -} - -// destructor -ACE_INLINE -Marshal_DSI_Impl::~Marshal_DSI_Impl (void) -{ - orb_ = CORBA::ORB::_nil (); -} - diff --git a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.cpp b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.cpp deleted file mode 100644 index 33ea3dcd535..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.cpp +++ /dev/null @@ -1,95 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Orbix marshal benchmark -// -// = FILENAME -// orbix_marshal_server.cpp -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -//#define USE_INIT - -#include "orbix_marshal_server.h" - -#if !defined (__ACE_INLINE__) -#include "orbix_marshal_server.i" -#endif /* __ACE_INLINE__ */ - -int -Orbix_Marshal_Server_Proxy::run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - char **argv; - int argc; - -#if 0 - // get the argument list to be passed on to the ORB_init method - argv = options.orb_init_args (argc); - - // get the orb. Pass any ORB_init arguments - this->orb_ = CORBA::ORB_init (argc, (char *const *)argv, "Orbix"); - if (this->orb_ == 0) - { - ACE_DEBUG ((LM_DEBUG, "ORB_init failed\n")); - return -1; - } - - // get the argument list to be passed on to the BOA_init method - argv = options.orb_init_args (argc); - - // get the orb. Pass any ORB_init arguments - this->boa_ = this->orb_->BOA_init (argc, (char *const *)argv, "Orbix_BOA"); - if (this->boa_ == 0) - { - ACE_DEBUG ((LM_DEBUG, "ORB_init failed\n")); - return -1; - } -#endif - // tell the "results" object what file it must store the results into - results.filename (options.filename ()); - - // use SII or DII accordingly - switch (options.policy ()) - { - case CORBA_Marshal_Options::STATIC : // use SSI - this->ssi_ = new Marshal_SSI_Impl (options.object_name ()); - break; - case CORBA_Marshal_Options::DYNAMIC : // use DSI - // this->dsi_ = new Marshal_DSI_Impl (this->orb_, ACE_OS::strdup (options.object_name ())); - this->dsi_ = new Marshal_DSI_Impl (&CORBA::Orbix, ACE_OS::strdup (options.object_name ())); - // register with the BOA - try { - // we need to do a setImpl - //this->boa_->setImpl ("Marshal", *this->dsi_); - CORBA::Orbix.setImpl ("Marshal", *this->dsi_); - } - catch (CORBA::SystemException &se) - { - cerr << "system exception in obj_is_ready" << se << endl; - } - break; - default: - ACE_DEBUG ((LM_DEBUG, "bad policy\n")); - return -1; - } - - ACE_DEBUG ((LM_DEBUG, "Calling impl is ready\n")); - try { - // call impl_is_ready - // this->boa_->impl_is_ready ((char *)options.service_name ()); - CORBA::Orbix.impl_is_ready ("marshalDSI"); - } - catch (CORBA::SystemException &se) - { - cerr << "system exception: " << se << endl; - } - - return 0; -} - diff --git a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.h b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.h deleted file mode 100644 index 09a64b4bbc8..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.h +++ /dev/null @@ -1,59 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Marshal Orbix Benchmark -// -// = FILENAME -// orbix_marshal_server.h -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined(_ORBIX_MARSHAL_SERVER_H_) -#define _ORBIX_MARSHAL_SERVER_H_ - -// benchmark library includes -#include "benchmark/marshal_options.h" -#include "benchmark/marshal_results.h" -#include "benchmark/marshal_proxy.h" - -// implementation classes -#include "orbix_marshal_impl.h" - -// include Orbix specific include files -#include "marshal.h" // generated by IDL compiler - -class Orbix_Marshal_Server_Proxy : public CORBA_Marshal_Proxy -{ -public: - Orbix_Marshal_Server_Proxy (void); - // constructor - - ~Orbix_Marshal_Server_Proxy (void); - // destructor - - virtual int run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // do the actual work -private: - CORBA::ORB_ptr orb_; - // underlying orb; - - CORBA::BOA_ptr boa_; - // underlying boa; - - Marshal_SSI_Impl *ssi_; - Marshal_DSI_Impl *dsi_; - // the implementation (SSI or DSI) -}; - - -#if defined (__ACE_INLINE__) -#include "orbix_marshal_server.i" -#endif /* __ACE_INLINE__ */ - -#endif diff --git a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.i b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.i deleted file mode 100644 index 8219d7d5042..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.i +++ /dev/null @@ -1,28 +0,0 @@ -// $Id$ - -// constructor -ACE_INLINE -Orbix_Marshal_Server_Proxy::Orbix_Marshal_Server_Proxy (void) - : orb_ (0), - boa_ (0), - ssi_ (0), - dsi_ (0) -{ -} - -// destructor -ACE_INLINE -Orbix_Marshal_Server_Proxy::~Orbix_Marshal_Server_Proxy (void) -{ - // releasing order is important - - // release the impl - delete ssi_; - delete dsi_; - - // release the BOA - CORBA::release (boa_); - - // release the ORB - CORBA::release (orb_); -} diff --git a/TAO/Benchmark/Marshal_Test/Orbix/run_client b/TAO/Benchmark/Marshal_Test/Orbix/run_client deleted file mode 100755 index b0f7503d7bc..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/run_client +++ /dev/null @@ -1,23 +0,0 @@ -echo "********* Static Invocation Interface **********" -client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T s -client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T l -client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T o -client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T c -client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T d -client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T S -client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T U -client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T A -client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T Q -#client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T R -# -echo "********* Dynamic Invocation Interface **********" -client -i 1 -h mambo -R s -P D -o ssi_marshal -n marshalSSI -T s -client -i 1 -h mambo -R s -P D -o ssi_marshal -n marshalSSI -T l -client -i 1 -h mambo -R s -P D -o ssi_marshal -n marshalSSI -T o -client -i 1 -h mambo -R s -P D -o ssi_marshal -n marshalSSI -T c -client -i 1 -h mambo -R s -P D -o ssi_marshal -n marshalSSI -T d -client -i 1 -h mambo -R s -P D -o ssi_marshal -n marshalSSI -T S -client -i 1 -h mambo -R s -P D -o ssi_marshal -n marshalSSI -T U -client -i 1 -h mambo -R s -P D -o ssi_marshal -n marshalSSI -T A -client -i 1 -h mambo -R s -P D -o ssi_marshal -n marshalSSI -T Q - diff --git a/TAO/Benchmark/Marshal_Test/Orbix/run_dsi b/TAO/Benchmark/Marshal_Test/Orbix/run_dsi deleted file mode 100755 index f44f488aee7..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/run_dsi +++ /dev/null @@ -1,4 +0,0 @@ -echo "********* Static Invocation Interface **********" -client -i 1 -h mambo -R s -P S -n marshalDSI -T s -echo "********* Dynamic Invocation Interface **********" -client -i 1 -h mambo -R s -P D -n marshalDSI -T s diff --git a/TAO/Benchmark/Marshal_Test/Orbix/run_dsi_server b/TAO/Benchmark/Marshal_Test/Orbix/run_dsi_server deleted file mode 100755 index 19dc309e0dc..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/run_dsi_server +++ /dev/null @@ -1 +0,0 @@ -putit marshalDSI "${TAO_ROOT}/Benchmark/Marshal_Test/Orbix/server -R r -P D -I V -o dsi_marshal -n marshalDSI" \ No newline at end of file diff --git a/TAO/Benchmark/Marshal_Test/Orbix/run_ssi b/TAO/Benchmark/Marshal_Test/Orbix/run_ssi deleted file mode 100755 index 9a1ca614e4e..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/run_ssi +++ /dev/null @@ -1,4 +0,0 @@ -echo "********* Static Invocation Interface **********" -client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T s -echo "********* Dynamic Invocation Interface **********" -client -i 1 -h mambo -R s -P D -o ssi_marshal -n marshalSSI -T s diff --git a/TAO/Benchmark/Marshal_Test/Orbix/run_ssi_server b/TAO/Benchmark/Marshal_Test/Orbix/run_ssi_server deleted file mode 100755 index a0af5a0dcf4..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/run_ssi_server +++ /dev/null @@ -1 +0,0 @@ -putit marshalSSI "${TAO_ROOT}/Benchmark/Marshal_Test/Orbix/server -R r -P S -I V -o ssi_marshal -n marshalSSI" \ No newline at end of file diff --git a/TAO/Benchmark/Marshal_Test/Orbix/server.cpp b/TAO/Benchmark/Marshal_Test/Orbix/server.cpp deleted file mode 100644 index 510ee107a5e..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/server.cpp +++ /dev/null @@ -1,14 +0,0 @@ -// $Id$ - -#include "benchmark/driver.h" -#include "orbix_marshal_server.h" - -int main (int argc, char *argv []) -{ - // instantiate a DRIVER with the Orbix_Client_Proxy as the template - CORBA_Benchmark_Driver driver (new - Orbix_Marshal_Server_Proxy ()); - - // let the driver do everything for us so that we remain very simple - return driver.run (argc, argv); -} diff --git a/TAO/Benchmark/Marshal_Test/TAO/Makefile b/TAO/Benchmark/Marshal_Test/TAO/Makefile deleted file mode 100644 index 048d0705dbc..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Top-level Makefile for the Tao Marshal Benchmark -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -LDLIBS = -lACE -lbenchmark -lTAO - -PROG_SRCS = marshalC.cpp marshalS.cpp tao_marshal_client.cpp tao_marshal_server.cpp \ - tao_marshal_impl.cpp client.cpp server.cpp - -LSRC = $(PROG_SRCS) - -MARSHAL_CLIENT_OBJS = marshalC.o tao_marshal_client.o client.o - -MARSHAL_SERVER_OBJS = marshalC.o marshalS.o tao_marshal_impl.o tao_marshal_server.o server.o - -BIN = client server - -BUILD = $(BIN) - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -#include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Local modifications to variables imported by includes above. -#---------------------------------------------------------------------------- - -ifndef TAO_ROOT -TAO_ROOT = $(ACE_ROOT)/TAO -endif - -CPPFLAGS += -I$(TAO_ROOT) -I$(TAO_ROOT)/Benchmark -I$(TAO_ROOT)/tao/compat -server: $(addprefix $(VDIR),$(MARSHAL_SERVER_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -client: $(addprefix $(VDIR),$(MARSHAL_CLIENT_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -clean: - rm -f core *.o *~ client server - $(MAKE) realclean - - - - - - - diff --git a/TAO/Benchmark/Marshal_Test/TAO/client.cpp b/TAO/Benchmark/Marshal_Test/TAO/client.cpp deleted file mode 100644 index 9edd07784db..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/client.cpp +++ /dev/null @@ -1,14 +0,0 @@ -// $Id$ - -#include "benchmark/driver.h" -#include "tao_marshal_client.h" - -int main (int argc, char *argv []) -{ - // instantiate a DRIVER with the Tao_Client_Proxy as the template - CORBA_Benchmark_Driver driver (new - Tao_Marshal_Client_Proxy ()); - - // let the driver do everything for us so that we remain very simple - return driver.run (argc, argv); -} diff --git a/TAO/Benchmark/Marshal_Test/TAO/marshal.idl b/TAO/Benchmark/Marshal_Test/TAO/marshal.idl deleted file mode 100644 index 077a98e58fd..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/marshal.idl +++ /dev/null @@ -1,91 +0,0 @@ -// $Id$ - -// Interface for the marshal benchmark - -interface Marshal -{ - struct Marshal_Struct - { - short s; - long l; - char c; - octet o; - double d; - }; - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th, e_6th}; - - union Marshal_Union - switch (discrim) - { - case e_0th: - short s; - case e_1st: - long l; - case e_2nd: - char c; - case e_3rd: - octet o; - case e_4th: - double d; - case e_5th: - default: // this will test typecode indirection - Marshal_Struct ms; - }; - - /* - typedef sequence ShortSeq; - typedef sequence LongSeq; - typedef sequence OctetSeq; - typedef sequence CharSeq; - typedef sequence DoubleSeq; - typedef sequence StructSeq; - typedef sequence UnionSeq; - */ - // for testing sequences of Any - typedef sequence AnySeq; - - // testing recursive behavior - // complex. - struct Marshal_Recursive - { - // we use this to test the limited recursion allowed by IDL. This is an - // ideal test for indirected typecodes. - - // simulate a behavior of a list node - any value; - sequence next; - }; - - void test_short (in short s1, out short s2); // test a short - void test_long (in long l1, out long l2); // test a long - void test_octet (in octet o1, out octet o2); // test an octet - void test_char (in char c1, out char c2); // test a char - void test_double (in double d1, out double d2); // test a double - void test_struct (in Marshal_Struct ms1, out Marshal_Struct ms2); // test a - // struct - void test_union (in Marshal_Union u1, out Marshal_Union u2); // test a - // union. - void test_any (in any a1, out any a2); // test an Any - /* - void test_sequence (in ShortSeq ss1, in LongSeq ls1, in OctetSeq os1, in - CharSeq cs1, in DoubleSeq ds1, in StructSeq Ss1, in - UnionSeq us1, in AnySeq as1, - out ShortSeq ss2, out LongSeq ls2, out OctetSeq os2, out - CharSeq cs2, out DoubleSeq ds2, out StructSeq Ss2, out - UnionSeq us2, out AnySeq as2); - */ - void test_sequence (in AnySeq as1, out AnySeq as2); // this will result in a - // 3 level indirection - - // sequence, any, and its - // value type - void test_recursive (in Marshal_Recursive mr1, out Marshal_Recursive mr2); // - // very complicated -}; - - - - - - - diff --git a/TAO/Benchmark/Marshal_Test/TAO/marshalC.cpp b/TAO/Benchmark/Marshal_Test/TAO/marshalC.cpp deleted file mode 100644 index 1557f836df9..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/marshalC.cpp +++ /dev/null @@ -1,587 +0,0 @@ -// $Id$ - -#include -#include "marshalC.h" - -// constructor -Marshal::Marshal(STUB_Object *refdata) - : CORBA_Object(refdata) -{ -} - -// static duplicate method -Marshal_ptr Marshal::_duplicate(Marshal_ptr obj) -{ - void *dupl; - - if (obj) - { - obj->AddRef(); - } - return obj; -} - -// static _narrow method -Marshal_ptr Marshal::_narrow(CORBA_Object_ptr obj) -{ - CORBA_Environment env; - if (obj->_is_a("IDL:Marshal:1.0", env)){ - STUB_Object *istub; - if (obj->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR){ - return Marshal::_nil(); - } - Marshal_ptr new_obj = new Marshal(istub); - return Marshal::_duplicate(new_obj); - } - return Marshal::_nil(); -} - -Marshal_ptr Marshal::_nil() -{ - return (Marshal_ptr)NULL; -} - -Marshal::Marshal_Union::Marshal_Union(const Marshal::Marshal_Union& obj) -{ - _disc = obj._d(); - switch (_disc) { - case e_0th: - __s = obj.__s; - break; - case e_1st: - __l = obj.__l; - break; - case e_2nd: - __c = obj.__c; - break; - case e_3rd: - __o = obj.__o; - break; - case e_4th: - __d = obj.__d; - break; - case e_5th: - default: - __ms = obj.__ms; - break; - } -} - -Marshal::Marshal_Union& Marshal::Marshal_Union::operator=(const Marshal::Marshal_Union& obj) -{ - _disc = obj._d(); - switch (_disc) { - case e_0th: - __s = obj.__s; - break; - case e_1st: - __l = obj.__l; - break; - case e_2nd: - __c = obj.__c; - break; - case e_3rd: - __o = obj.__o; - break; - case e_4th: - __d = obj.__d; - break; - case e_5th: - default: - __ms = obj.__ms; - break; - } - return *this; -} - -// AnySeq methods -Marshal::AnySeq::AnySeq (CORBA_ULong max) - : _maximum(max), - _length(0), - _release(CORBA_B_FALSE) -{ - if (this->_maximum > 0){ - this->_buffer = new CORBA_Any [this->_maximum]; - } else { - this->_buffer = 0; - } -} - -Marshal::AnySeq::AnySeq (CORBA_ULong max, CORBA_ULong length, - CORBA_Any *value, CORBA_Boolean release) - : _maximum(max), - _length(length), - _buffer(value), - _release(release) -{ -} - -Marshal::AnySeq::~AnySeq() -{ - this->_maximum = this->_length = 0; - if (this->_release != CORBA_B_FALSE) - delete this->_buffer; -} - -void Marshal::AnySeq::length (CORBA_ULong newlen) -{ - if (newlen > this->_maximum) { - CORBA_Any *temp = new CORBA_Any [newlen]; - ::memcpy(temp, this->_buffer, (size_t(this->_length) * sizeof (CORBA_Any))); - if (this->_release) - delete this->_buffer; - else - this->_release = 1; - - this->_maximum = newlen; - this->_buffer = temp; - } - if (newlen > this->_length) - memset(&this->_buffer[this->_length], 0, size_t(newlen - this->_length) * - sizeof(CORBA_Any)); - this->_length = newlen; -} - -CORBA_ULong Marshal::AnySeq::length() const -{ - return this->_length; -} - -CORBA_Any &Marshal::AnySeq::operator[](CORBA_ULong index) -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -const CORBA_Any& Marshal::AnySeq::operator[](CORBA_ULong index) const -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - - -/***************** TypeCodes **************/ -// In the typecode, all repoIDs and names are omitted by providing their length -// as 1 that stands for the NULL terminator - -// encapsulated parameters for struct Marshal_Struct typecode -static const CORBA_Long _oc_Marshal_Struct [] = { - MY_BYTE_SEX, // byte order - 1, 0, // repoID omitted (16, "IDL:Marshal/Marshal:1.0") - 1, 0, // struct name (15, "Marshal_Struct") omitted - 5, // 5 struct elements - - // short - 1, 0, // should be 2, "s", - tk_short, - - // long - 1, 0, // should be 2, "l", - tk_long, - - // char - 1, 0, // should be 2, "c", - tk_char, - - // octet - 1, 0, // should be 2, "o", - tk_octet, - - // double - 1, 0, // should be 2, "d", - tk_double, -}; - - -static CORBA_TypeCode _tc__tc_Marshal_Struct (tk_struct, - sizeof _oc_Marshal_Struct, - (unsigned char *) &_oc_Marshal_Struct, - CORBA_B_FALSE); -CORBA_TypeCode_ptr Marshal::_tc_Marshal_Struct = &_tc__tc_Marshal_Struct; - - -static const CORBA_Long _oc_discrim [] = { - MY_BYTE_SEX, // byte order flag (TRICKY) - 1, 0, // should be 20, "IDL:Marshal/discrim", - 1, 0, // should be 8, "discrim", - 7, // 7 elements in the enum - - 1, 0, // 6, "e_0th", // omitted member name, "e_0th" - 1, 0, // 6, "e_1st", // omitted member name, "e_1st" - 1, 0, // 6, "e_2nd", // omitted member name, "e_2nd" - 1, 0, // 6, "e_3rd", // omitted member name, "e_3rd" - 1, 0, // 6, "e_4th", // omitted member name, "e_4th" - 1, 0, // 6, "e_5th", // omitted member name, "e_5th" - 1, 0 //6, "e_6th" // omitted member name, "e_6th" -}; - -static CORBA_TypeCode _tc__tc_discrim (tk_enum, - sizeof _oc_discrim, - (unsigned char *) &_oc_discrim, - CORBA_B_FALSE); - -CORBA_TypeCode_ptr Marshal::_tc_discrim = &_tc__tc_discrim; - -// Union -static const CORBA_Long _oc_Marshal_Union [] = -{ - MY_BYTE_SEX, // byte order flag (TRICKY) - 1, 0, // 26, "IDL:Marshal/Marshal_Union", // omitted repository/type ID - 1, 0, // 14, "Marshal_Union", // union name - - // - // discriminant typecode: - // - - tk_enum, // tk_enum - 80, // encapsulation length - MY_BYTE_SEX, - 1, 0, // repoID - 1, 0, // name - 7, // 7 elements in the enum - - 1, 0, // e_Oth - 1, 0, - 1, 0, - 1, 0, - 1, 0, - 1, 0, - 1, 0, // e_6th - - 5, // default member index (zero based) - 6, // number of union members - - // the 1st union branch arm - Marshal::e_0th, // member label value - 1, 0, // omitted member name, "s" - tk_short, // member typecode - - // the 2nd union branch arm - Marshal::e_1st, // member label value - 1, 0, // omitted member name, "l" - tk_long, // member typecode - - // the 3rd union branch arm - Marshal::e_2nd, // member label value - 1, 0, // omitted member name, "c" - tk_char, // member typecode - - // the 4th union branch arm - Marshal::e_3rd, // member label value - 1, 0, // omitted member name, "o" - tk_octet, // member typecode - - // the 5th union branch arm - Marshal::e_4th, // member label value - 1, 0, // omitted member name, "d" - tk_double, - - // the 6th union branch - Marshal::e_5th, // member label value - 1, 0, // omitted member name, "ms" - tk_struct, // tk_struct - 84, // encapsulation length - - MY_BYTE_SEX, // byte order - 1, 0, // repoID omitted (16, "IDL:Marshal/Marshal:1.0") - 1, 0, // struct name (15, "Marshal_Struct") omitted - 5, // 5 struct elements - - // short - 1, 0, // should be 2, "s", - tk_short, - - // long - 1, 0, // should be 2, "l", - tk_long, - - // char - 1, 0, // should be 2, "c", - tk_char, - - // octet - 1, 0, // should be 2, "o", - tk_octet, - - // double - 1, 0, // should be 2, "d", - tk_double, - - // default case - 6, // 7th member, default index val - 1, 0, // struct name "ms" - ~0, // indirected typecode - -108 // has to point to tk_struct in this stream -}; - -static CORBA_TypeCode _tc__tc_Marshal_Union (tk_union, - sizeof _oc_Marshal_Union, - (unsigned char *) &_oc_Marshal_Union, - CORBA_B_FALSE); - -CORBA_TypeCode_ptr Marshal::_tc_Marshal_Union = &_tc__tc_Marshal_Union; - -// AnySeq -static const CORBA_Long _oc_AnySeq [] = { - MY_BYTE_SEX, // byte order - tk_any, // sequence of any - 0, // a length of 0 => unbounded sequence -}; -static CORBA_TypeCode _tc__tc_AnySeq (tk_sequence, - sizeof - _oc_AnySeq, - (unsigned char *) - &_oc_AnySeq, - CORBA_B_FALSE); - -CORBA_TypeCode_ptr Marshal::_tc_AnySeq = &_tc__tc_AnySeq; - -/***************** All the methods ********************/ -// test_short -static const TAO_Param_Data marshal_test_short_paramdata [] = { - {_tc_CORBA_Void, PARAM_RETURN, 0}, - {_tc_CORBA_Short, PARAM_IN, 0}, - {_tc_CORBA_Short, PARAM_OUT, 0} -}; - -static const TAO_Call_Data marshal_test_short_calldata = { - "test_short", // op_name - CORBA_B_TRUE, // twoway, although it returns void - 3, // param count - & marshal_test_short_paramdata [0], // - 0, 0 -}; - -// The stub -void Marshal::test_short (CORBA_Short s1, CORBA_Short &s2, CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - // twoway - istub->do_call(env, &marshal_test_short_calldata, 0, &s1, &s2); -} - -// test_long -static const TAO_Param_Data marshal_test_long_paramdata [] = { - {_tc_CORBA_Void, PARAM_RETURN, 0}, - {_tc_CORBA_Long, PARAM_IN, 0}, - {_tc_CORBA_Long, PARAM_OUT, 0} -}; - -static const TAO_Call_Data marshal_test_long_calldata = { - "test_long", // op_name - CORBA_B_TRUE, // twoway, although it returns void - 3, // param count - & marshal_test_long_paramdata [0], // - 0, 0 -}; - -// The stub -void Marshal::test_long (CORBA_Long l1, CORBA_Long &l2, CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - // twoway - istub->do_call(env, &marshal_test_long_calldata, 0, &l1, &l2); -} - -// test_octet -static const TAO_Param_Data marshal_test_octet_paramdata [] = { - {_tc_CORBA_Void, PARAM_RETURN, 0}, - {_tc_CORBA_Octet, PARAM_IN, 0}, - {_tc_CORBA_Octet, PARAM_OUT, 0} -}; - -static const TAO_Call_Data marshal_test_octet_calldata = { - "test_octet", // op_name - CORBA_B_TRUE, // twoway, although it returns void - 3, // param count - & marshal_test_octet_paramdata [0], // - 0, 0 -}; - -// The stub -void Marshal::test_octet (CORBA_Octet o1, CORBA_Octet &o2, CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - // twoway - istub->do_call(env, &marshal_test_octet_calldata, 0, &o1, &o2); -} - -// test_char -static const TAO_Param_Data marshal_test_char_paramdata [] = { - {_tc_CORBA_Void, PARAM_RETURN, 0}, - {_tc_CORBA_Char, PARAM_IN, 0}, - {_tc_CORBA_Char, PARAM_OUT, 0} -}; - -static const TAO_Call_Data marshal_test_char_calldata = { - "test_char", // op_name - CORBA_B_TRUE, // twoway, although it returns void - 3, // param count - & marshal_test_char_paramdata [0], // - 0, 0 -}; - -// The stub -void Marshal::test_char (CORBA_Char c1, CORBA_Char &c2, CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - // twoway - istub->do_call(env, &marshal_test_char_calldata, 0, &c1, &c2); -} - -// test_double -static const TAO_Param_Data marshal_test_double_paramdata [] = { - {_tc_CORBA_Void, PARAM_RETURN, 0}, - {_tc_CORBA_Double, PARAM_IN, 0}, - {_tc_CORBA_Double, PARAM_OUT, 0} -}; - -static const TAO_Call_Data marshal_test_double_calldata = { - "test_double", // op_name - CORBA_B_TRUE, // twoway, although it returns void - 3, // param count - & marshal_test_double_paramdata [0], // - 0, 0 -}; - -// The stub -void Marshal::test_double (CORBA_Double d1, CORBA_Double &d2, CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - // twoway - istub->do_call (env, &marshal_test_double_calldata, 0, &d1, &d2); -} - -// test_struct -static const TAO_Param_Data marshal_test_struct_paramdata [] = { - {_tc_CORBA_Void, PARAM_RETURN, 0}, - {Marshal::_tc_Marshal_Struct, PARAM_IN, 0}, - {Marshal::_tc_Marshal_Struct, PARAM_OUT, 0} -}; - -static const TAO_Call_Data marshal_test_struct_calldata = { - "test_struct", // op_name - CORBA_B_TRUE, // twoway, although it returns void - 3, // param count - & marshal_test_struct_paramdata [0], // - 0, 0 -}; - -// The stub -void Marshal::test_struct (const Marshal::Marshal_Struct &ms1, Marshal::Marshal_Struct - &ms2, CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - // twoway - istub->do_call(env, &marshal_test_struct_calldata, 0, &ms1, &ms2); -} - -// test_union -static const TAO_Param_Data marshal_test_union_paramdata [] = { - {_tc_CORBA_Void, PARAM_RETURN, 0}, - {Marshal::_tc_Marshal_Union, PARAM_IN, 0}, - {Marshal::_tc_Marshal_Union, PARAM_OUT, 0} -}; - -static const TAO_Call_Data marshal_test_union_calldata = { - "test_union", // op_name - CORBA_B_TRUE, // twoway, although it returns void - 3, // param count - & marshal_test_union_paramdata [0], // - 0, 0 -}; - -// The stub -void Marshal::test_union (const Marshal_Union &u1, Marshal::Marshal_Union - &u2, CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - // twoway - istub->do_call (env, &marshal_test_union_calldata, 0, &u1, &u2); -} - -// test_any -static const TAO_Param_Data marshal_test_any_paramdata [] = { - {_tc_CORBA_Void, PARAM_RETURN, 0}, - {_tc_CORBA_Any, PARAM_IN, 0}, - {_tc_CORBA_Any, PARAM_OUT, 0} -}; - -static const TAO_Call_Data marshal_test_any_calldata = { - "test_any", // op_name - CORBA_B_TRUE, // twoway, although it returns void - 3, // param count - & marshal_test_any_paramdata[0], // - 0, 0 -}; - -// The stub -void Marshal::test_any (const CORBA_Any &a1, CORBA_Any *&a2, CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - // twoway - istub->do_call(env, &marshal_test_any_calldata, 0, &a1, &a2); -} - -// test_sequence -static const TAO_Param_Data marshal_test_sequence_paramdata [] = { - { _tc_CORBA_Void, PARAM_RETURN, 0}, - { Marshal::_tc_AnySeq, PARAM_IN, 0}, - { Marshal::_tc_AnySeq, PARAM_OUT, 0} -}; - -static const TAO_Call_Data marshal_test_sequence_calldata = { - "test_sequence", // opname - CORBA_B_TRUE, // twoway - 2, // param count - &marshal_test_sequence_paramdata [0], - 0, 0 -}; - -// stub -void Marshal::test_sequence (const Marshal::AnySeq &as1, Marshal::AnySeq *&as2, - CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - // twoway - istub->do_call(env, &marshal_test_sequence_calldata, 0, &as1, &as2); -} - diff --git a/TAO/Benchmark/Marshal_Test/TAO/marshalC.h b/TAO/Benchmark/Marshal_Test/TAO/marshalC.h deleted file mode 100644 index d45d3cf0611..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/marshalC.h +++ /dev/null @@ -1,196 +0,0 @@ -// $Id$ - -/************************************************************************** -This file has been hand-crafted to work with the ORB API of TAO -***************************************************************************/ - -#ifndef MARSHAL_C_H -#define MARSHAL_C_H - -#include -#include - -#include "tao/orb.h" -#include "tao/orbobj.h" -#include "tao/object.h" -#include "tao/stub.h" -#include "tao/typecode.h" -#include "tao/cdr.h" - -class Marshal; -typedef Marshal *Marshal_ptr; -typedef Marshal_ptr MarshalRef; - -class Marshal: public virtual CORBA_Object -{ -public: - static Marshal_ptr _duplicate (Marshal_ptr obj); - static Marshal_ptr _narrow (CORBA_Object_ptr obj); - static Marshal_ptr _nil (); - - struct Marshal_Struct { - CORBA_Short s; - CORBA_Long l; - CORBA_Char c; - CORBA_Octet o; - CORBA_Double d; - }; - static CORBA_TypeCode_ptr _tc_Marshal_Struct; - - enum discrim { - e_0th, - e_1st, - e_2nd, - e_3rd, - e_4th, - e_5th, - e_6th - }; - - static CORBA_TypeCode_ptr _tc_discrim; - - class Marshal_Union - { - private: - discrim _disc; - CORBA_Short __s; - CORBA_Long __l; - CORBA_Char __c; - CORBA_Octet __o; - CORBA_Double __d; - Marshal::Marshal_Struct __ms; - public: - Marshal_Union() : _disc(discrim(0)) {} - ~Marshal_Union() {} - Marshal_Union(const Marshal_Union& obj); - Marshal_Union& operator=(const Marshal_Union& obj); - - void _d(discrim val) { _disc = val; } - discrim _d() const { return _disc; } - - void s(CORBA_Short val) { - __s = val; - _disc = Marshal::e_0th; - } - CORBA_Short s() const { return __s; } - - void l(CORBA_Long val) { - __l = val; - _disc = Marshal::e_1st; - } - CORBA_Long l() const { return __l; } - - void c(CORBA_Char val) { - __c = val; - _disc = Marshal::e_2nd; - } - CORBA_Char c() const { return __c; } - - void o(CORBA_Octet val) { - __o = val; - _disc = Marshal::e_3rd; - } - CORBA_Octet o() const { return __o; } - - void d(CORBA_Double val) { - __d = val; - _disc = Marshal::e_4th; - } - CORBA_Double d() const { return __d; } - - void ms(const Marshal::Marshal_Struct& val) { - __ms = val; - _disc = Marshal::e_5th; - } - const Marshal::Marshal_Struct& ms() const { return __ms; } - Marshal::Marshal_Struct& ms() { return __ms; } - - }; - - static CORBA_TypeCode_ptr _tc_Marshal_Union; - - class AnySeq - { - public: - static CORBA_Any *allocbuf (CORBA_ULong nelems); - static void freebuf (CORBA_Any *data); - AnySeq (CORBA_ULong max=0); - AnySeq (CORBA_ULong max, - CORBA_ULong length, - CORBA_Any *value, - CORBA_Boolean release = CORBA_B_FALSE - ); - // AnySeq (const AnySeq&); - ~AnySeq (); - CORBA_ULong maximum () const; - void length (CORBA_ULong); - CORBA_ULong length () const; - CORBA_Any &operator[] (CORBA_ULong index); - const CORBA_Any &operator[] (CORBA_ULong index) const; - private: - CORBA_ULong _maximum; - CORBA_ULong _length; - CORBA_Any *_buffer; - CORBA_Boolean _release; - }; - static CORBA_TypeCode_ptr _tc_AnySeq; - - - // now the methods - virtual void test_short(CORBA_Short s1, - CORBA_Short& s2, - CORBA_Environment &env); - - virtual void test_long(CORBA_Long l1, - CORBA_Long& l2, - CORBA_Environment &env); - - virtual void test_octet(CORBA_Octet o1, - CORBA_Octet& o2, - CORBA_Environment &env); - - virtual void test_char(CORBA_Char c1, - CORBA_Char& c2, - CORBA_Environment &env); - - virtual void test_double(CORBA_Double d1, - CORBA_Double& d2, - CORBA_Environment &env); - - virtual void test_struct(const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2, - CORBA_Environment &env); - - virtual void test_union(const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2, - CORBA_Environment &env); - - virtual void test_any(const CORBA_Any& a1, - CORBA_Any *& a2, - CORBA_Environment &env); - - virtual void test_sequence(const Marshal::AnySeq& as1, - Marshal::AnySeq *& as2, - CORBA_Environment &env); - -#if 0 - virtual void test_recursive(const Marshal::Marshal_Recursive& mr1, - Marshal::Marshal_Recursive *& mr2, - CORBA_Environment &env); -#endif - -protected: - Marshal() {} - Marshal(STUB_Object *refdata); - virtual ~Marshal() {} - -private: - Marshal(const Marshal &) {} - void operator=(const Marshal &) {} -}; - -#endif - - - - diff --git a/TAO/Benchmark/Marshal_Test/TAO/marshalS.cpp b/TAO/Benchmark/Marshal_Test/TAO/marshalS.cpp deleted file mode 100644 index fe116a642b0..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/marshalS.cpp +++ /dev/null @@ -1,170 +0,0 @@ -// $Id$ - -#include -#include "marshalS.h" - -static const TAO_operation_db_entry Marshal_operations[] = { - {"_is_a", &_skel_Marshal::_Marshal_is_a_skel}, - { "test_short", &_skel_Marshal::_Marshal_test_short_skel}, - { "test_long", &_skel_Marshal::_Marshal_test_long_skel}, - { "test_octet", &_skel_Marshal::_Marshal_test_octet_skel}, - { "test_char", &_skel_Marshal::_Marshal_test_char_skel}, - { "test_double", &_skel_Marshal::_Marshal_test_double_skel}, - { "test_struct", &_skel_Marshal::_Marshal_test_struct_skel}, - { "test_union", &_skel_Marshal::_Marshal_test_union_skel}, - { "test_any", &_skel_Marshal::_Marshal_test_any_skel}, - { "test_sequence", &_skel_Marshal::_Marshal_test_sequence_skel}, - { 0, 0 } -}; - -TAO_Dynamic_Hash_OpTable tao_Marshal_optable(Marshal_operations, 10, - // 9 + 1 operations on our - // interface - 20); -// constructor -_skel_Marshal::_skel_Marshal (const char *obj_name) -{ - const CORBA_String repoID = "IDL:Marshal:1.0"; // repository ID - IIOP_Object *data; // IIOP object - CORBA_BOA_ptr oa = TAO_OA_PARAMS::instance()->oa(); // underlying BOA - this->optable_ = &tao_Marshal_optable; // operation database - CORBA_Long i; - - // setup an IIOP object - data = new IIOP_Object (CORBA_string_dup (repoID)); - data->profile.iiop_version.major = IIOP::MY_MAJOR; - data->profile.iiop_version.minor = IIOP::MY_MINOR; - data->profile.host = ACE_OS::strdup(oa->get_addr().get_host_name()); - data->profile.port = oa->get_addr().get_port_number(); - data->profile.object_key.length = ACE_OS::strlen(obj_name); - data->profile.object_key.maximum = data->profile.object_key.length; - data->profile.object_key.buffer = new CORBA_Octet [(size_t)data->profile.object_key.length+1]; - ACE_OS::memcpy (data->profile.object_key.buffer, obj_name, - data->profile.object_key.length); // set the object key - this->set_parent(data); // store the IIOP obj reference with ourselves - this->sub_ = this; // set the most derived class to be ourselves - if (oa) oa->bind(data->profile.object_key, this);// register ourselves -} - -// skeletons -void _skel_Marshal::_Marshal_test_short_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ -#if 0 - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value(_tc_CORBA_Short); - Marshal_ptr impl; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value(0, temp_value, CORBA_ARG_IN, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - Marshal::ShortSeq *value = (Marshal::ShortSeq *)nv->value()->value(); - - // now invoke the implementation - impl = (Marshal_ptr)(obj->get_subclass()); - // now the magic of dynamic binding - impl->sendShortSeq(*value, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, CORBA_B_TRUE); - req.result(any, env); -#endif - - // One immediate thought is to do the following: - // define a specialized marshal factory derived from TAO_Marshal_Factory - // then: - // CDR compiledStream (req._incoming.next, req._incoming.remaining, - // byte_order, consume_buf = 0, instance of our marshal factory -} - -void _skel_Marshal::_Marshal_test_long_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ -} - -void _skel_Marshal::_Marshal_test_octet_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ -} - -void _skel_Marshal::_Marshal_test_char_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ -} - -void _skel_Marshal::_Marshal_test_double_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ -} - -void _skel_Marshal::_Marshal_test_struct_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ -} - -void _skel_Marshal::_Marshal_test_union_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ -} - -void _skel_Marshal::_Marshal_test_any_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ -} - -void _skel_Marshal::_Marshal_test_sequence_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ -} - -void _skel_Marshal::_Marshal_is_a_skel ( - CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env - ) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_String); - char *type_id = "IDL:Marshal:1.0"; - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - - req.params (nvlist, env); - if (env.exception () != 0) { - dexc (env, "is_a_skel, get params"); - return; - } - - CORBA_Boolean *retval; - CORBA_String value = *(CORBA_String *)nv->value ()->value (); - - cout << "object id = " << ((char *)value) << endl; - if (strcmp ((char *)value, (char *)type_id) == 0 - || strcmp ((char *)value, _tc_CORBA_Object->id(env)) == 0) - retval = new CORBA_Boolean (CORBA_B_TRUE); - else - retval = new CORBA_Boolean (CORBA_B_FALSE); - - CORBA_Any *any = - new CORBA_Any (_tc_CORBA_Boolean, retval, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "_is_a, result"); -} - diff --git a/TAO/Benchmark/Marshal_Test/TAO/marshalS.h b/TAO/Benchmark/Marshal_Test/TAO/marshalS.h deleted file mode 100644 index 4f34a11d0ab..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/marshalS.h +++ /dev/null @@ -1,110 +0,0 @@ -// $Id$ - -/************************************************************************** -This file has been hand-crafted to work with the ORB API of TAO -***************************************************************************/ - -#ifndef MARSHAL_S_H -#define MARSHAL_S_H - -#include -#include - -#include "marshalC.h" -#include "tao/connect.h" -#include "tao/orb.h" -#include "tao/params.h" -#include "tao/iiopobj.h" -#include "tao/optable.h" // for registering our methods -#include "tao/corbacom.h" -#include "tao/nvlist.h" -#include "tao/orbobj.h" -#include "tao/debug.h" - - -class _skel_Marshal; -typedef _skel_Marshal *_skel_Marshal_ptr; -typedef _skel_Marshal *_skel_Marshal_ref; - -class _skel_Marshal: public Marshal -{ -public: - // pure virtual functions implemented by the implementation class - virtual void test_short(CORBA_Short s1, - CORBA_Short& s2, - CORBA_Environment &env) = 0; - - virtual void test_long(CORBA_Long l1, - CORBA_Long& l2, - CORBA_Environment &env) = 0; - - virtual void test_octet(CORBA_Octet o1, - CORBA_Octet& o2, - CORBA_Environment &env) = 0; - - virtual void test_char(CORBA_Char c1, - CORBA_Char& c2, - CORBA_Environment &env) = 0; - - virtual void test_double(CORBA_Double d1, - CORBA_Double& d2, - CORBA_Environment &env) = 0; - - virtual void test_struct(const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2, - CORBA_Environment &env) = 0; - - virtual void test_union(const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2, - CORBA_Environment &env) = 0; - - virtual void test_any(const CORBA_Any& a1, - CORBA_Any *& a2, - CORBA_Environment &env) = 0; - - virtual void test_sequence(const Marshal::AnySeq& as1, - Marshal::AnySeq *& as2, - CORBA_Environment &env) = 0; - - - // skeletons that do the upcall - static void _Marshal_is_a_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_short_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_long_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_octet_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_char_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_double_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_struct_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_union_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_any_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_sequence_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); -protected: - _skel_Marshal (const char *obj_name = 0); - virtual ~_skel_Marshal () {} -}; - -#endif - - - - diff --git a/TAO/Benchmark/Marshal_Test/TAO/server.cpp b/TAO/Benchmark/Marshal_Test/TAO/server.cpp deleted file mode 100644 index 53102d6e189..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/server.cpp +++ /dev/null @@ -1,14 +0,0 @@ -// $Id$ - -#include "benchmark/driver.h" -#include "tao_marshal_server.h" - -int main (int argc, char *argv []) -{ - // instantiate a DRIVER with the Tao_Client_Proxy as the template - CORBA_Benchmark_Driver driver (new - Tao_Marshal_Server_Proxy ()); - - // let the driver do everything for us so that we remain very simple - return driver.run (argc, argv); -} diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.cpp b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.cpp deleted file mode 100644 index bd678bfad9a..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.cpp +++ /dev/null @@ -1,1426 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Tao marshal benchmark -// -// = FILENAME -// tao_marshal_proxy.cpp -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include -#include -#include "tao_marshal_client.h" - -#if !defined (__ACE_INLINE__) -#include "tao_marshal_client.i" -#endif /* __ACE_INLINE__ */ - -int -Tao_Marshal_Client_Proxy::run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - char **argv; - int argc; - CORBA_Object_ptr target; - CORBA_Environment env; - CORBA_String str; // IOR - fstream iorfile; // persistent storage - - // get the argument list to be passed on to the ORB_init method - argv = options.orb_init_args (argc); - - // get the orb. Pass any ORB_init arguments - this->orb_ = CORBA_ORB_init (argc, (char *const *)argv, "IOR", env); - if (this->orb_ == 0) - { - ACE_DEBUG ((LM_DEBUG, "ORB_init failed\n")); - return -1; - } - - str = CORBA_string_alloc(500); - - // read the IOR from the file ior.txt - iorfile.open("ior.txt", ios::in); - iorfile >> ((char *)str); - iorfile.close(); - - cout << "Read IOR string as: " << ((char *)str) << endl; - - target = this->orb_->string_to_object(str, env); - if (env.exception() != 0){ - ACE_DEBUG ((LM_ERROR, "str to obj failed")); - return 1; - } - CORBA_string_free(str); - -#if 0 - // get the obj ref by binding it to the specified host using the specified obj_name - target = Marshal::_bind (options.object_name (), options.hostname ()); - if (CORBA_is_nil (target)) - { - ACE_DEBUG ((LM_DEBUG, "bind call failed\n")); - return -1; - } -#endif - - this->ref_ = Marshal::_narrow (target); - if (CORBA_is_nil (this->ref_)) - { - ACE_DEBUG ((LM_DEBUG, "narrow to Marshal failed\n")); - return -1; - } - - // tell the "results" object what file it must store the results into - results.filename (options.filename ()); - - // use SII or DII accordingly - switch (options.policy ()) - { - case CORBA_Marshal_Options::STATIC : // use SII - return this->use_sii (options, results); - break; - case CORBA_Marshal_Options::DYNAMIC : // use DII - return this->use_dii (options, results); - break; - default: - ACE_DEBUG ((LM_DEBUG, "bad policy\n")); - return -1; - } - // hopefully we are never here, else something is seriously wrong - return -1; -} - -int -Tao_Marshal_Client_Proxy::use_sii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - int i; - int status = 0; - // This method tests the static invocation interface - - for (i=0; i < options.iterations () && !status; i++) - { - switch (options.data_type ()) - { - // shorts - case CORBA_Marshal_Options::SHORT: - status = sii_test_short (options, results); - break; - // longs - case CORBA_Marshal_Options::LONG: - status = sii_test_long (options, results); - break; - // octets - case CORBA_Marshal_Options::OCTET: - status = sii_test_octet (options, results); - break; - // chars - case CORBA_Marshal_Options::CHAR: - status = sii_test_char (options, results); - break; - // doubles - case CORBA_Marshal_Options::DOUBLE: - status = sii_test_double (options, results); - break; - // Structs - case CORBA_Marshal_Options::STRUCT: - status = sii_test_struct (options, results); - break; - // unions - case CORBA_Marshal_Options::UNION: - status = sii_test_union (options, results); - break; - // anys - case CORBA_Marshal_Options::ANY: - status = sii_test_any (options, results); - break; - // sequences - case CORBA_Marshal_Options::SEQUENCE: - status = sii_test_sequence (options, results); - break; - // longs - case CORBA_Marshal_Options::RECURSIVE: - // status = sii_test_recursive (options, results); - // doesn't work - break; - default: - status = -1; - } // end of switch - } // for loop - - if (!status) - return 0; - else - return -1; -} - -int -Tao_Marshal_Client_Proxy::use_dii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - int i; - int status = 0; - // This method tests the dynamic invocation interface - - for (i=0; i < options.iterations () && !status; i++) - { - switch (options.data_type ()) - { - // shorts - case CORBA_Marshal_Options::SHORT: - status = dii_test_short (options, results); - break; - // longs - case CORBA_Marshal_Options::LONG: - status = dii_test_long (options, results); - break; - // octets - case CORBA_Marshal_Options::OCTET: - status = dii_test_octet (options, results); - break; - // chars - case CORBA_Marshal_Options::CHAR: - status = dii_test_char (options, results); - break; - // doubles - case CORBA_Marshal_Options::DOUBLE: - status = dii_test_double (options, results); - break; - // Structs - case CORBA_Marshal_Options::STRUCT: - status = dii_test_struct (options, results); - break; - // unions - case CORBA_Marshal_Options::UNION: - status = dii_test_union (options, results); - break; - // anys - case CORBA_Marshal_Options::ANY: - status = dii_test_any (options, results); - break; - // sequences - case CORBA_Marshal_Options::SEQUENCE: - status = dii_test_sequence (options, results); - break; - // longs - case CORBA_Marshal_Options::RECURSIVE: - // status = dii_test_recursive (options, results); - // doesn't work - break; - default: - status = -1; - } // end of switch - } // for loop - - if (!status) - return 0; - else - return -1; -} - - -// all helper functions : SII -int -Tao_Marshal_Client_Proxy::sii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - CORBA_Short s1, s2; - CORBA_Environment env; - - s1 = 3; - ref_->test_short (s1, s2, env); - if (s2 == 2*s1) - { - ACE_DEBUG ((LM_DEBUG, "SII test_short success: s1 = %d, s2 = %d\n", s1, s2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_short failed: s1 = %d, s2 = %d\n", s1, s2)); - } - return 0; -} - -int -Tao_Marshal_Client_Proxy::sii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - CORBA_Long l1, l2; - CORBA_Environment env; - - l1 = 256; - ref_->test_long (l1, l2, env); - if (l2 == 3*l1) - { - ACE_DEBUG ((LM_DEBUG, "SII test_long success: l1 = %d, l2 = %d\n", l1, l2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_long failed: l1 = %d, l2 = %d\n", l1, l2)); - } - return 0; -} - -int -Tao_Marshal_Client_Proxy::sii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // octets -{ - CORBA_Octet o1, o2; - CORBA_Environment env; - - o1 = (CORBA_Octet) 127; - ref_->test_octet (o1, o2, env); - if (o1 == o2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_octet success: o1 = %c, o2 = %c\n", o1, o2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_octet failed: o1 = %c, o2 = %c\n", o1, o2)); - } - return 0; -} - -int -Tao_Marshal_Client_Proxy::sii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // chars -{ - CORBA_Char c1, c2; - CORBA_Environment env; - - c1 = 'B'; - ref_->test_char (c1, c2, env); - if (c1 == c2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_char success: c1 = %c, c2 = %c\n", c1, c2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_char failed: c1 = %c, c2 = %c\n", c1, c2)); - } - return 0; -} - -int -Tao_Marshal_Client_Proxy::sii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // doubles -{ - CORBA_Double d1, d2; - CORBA_Environment env; - - d1 = 3.1415; - ref_->test_double (d1, d2, env); - if (d2 == d1/2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_double success: d1 = %f, d2 = %f\n", d1, d2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_double failed: d1 = %f, d2 = %f\n", d1, d2)); - } - return 0; -} - -int -Tao_Marshal_Client_Proxy::sii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // structs -{ - Marshal::Marshal_Struct ms1, ms2; - CORBA_Environment env; - - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA_Octet) 127; - ms1.d = 3.1415; - - ref_->test_struct (ms1, ms2, env); - if (ms1.s == ms2.s && ms1.l == ms2.l && ms1.c == ms2.c && ms1.o == ms2.o && - ms1.d == ms2.d) - { - ACE_DEBUG ((LM_DEBUG, "SII test_struct success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_struct failed\n")); - } - return 0; -} - -int -Tao_Marshal_Client_Proxy::sii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // unions -{ - Marshal::Marshal_Union u1, u2; - Marshal::Marshal_Struct ms1, ms2; - CORBA_Environment env; - - // first test an enumerated case - u1._d (Marshal::e_1st); - u1.l (4567); - - ref_->test_union (u1, u2, env); - if ( (u1._d () == u2._d()) && (u1.l () == u2.l ())) - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for long (case e_1st) success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for long (case e_1st) failed\n")); - } - - // now test the default case - u1._d (Marshal::e_6th); // this case doesn't exist which will lead to using - // the default case - - u1.ms ().s = 3; - u1.ms ().l = 256; - u1.ms ().c = 'B'; - u1.ms ().o = (CORBA_Octet) 127; - u1.ms ().d = 3.1415; - - ref_->test_union (u1, u2, env); - - if (u1.ms ().s == u2.ms ().s && u1.ms ().l == u2.ms ().l && u1.ms ().c == u2.ms ().c && u1.ms ().o == u2.ms ().o && - u1.ms ().d == u2.ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for default (case e_6th) success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for default (case e_6th) failed\n")); - } - return 0; -} - -int -Tao_Marshal_Client_Proxy::sii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // we send a struct thru the any - CORBA_Any a1, *a2; - Marshal::Marshal_Struct ms1, *ms2; - CORBA_Environment env; - - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA_Octet) 127; - ms1.d = 3.1415; - - // populate the any with a MarshalStruct - // a1 <<= ms1; // not in TAO yet - a1.replace (Marshal::_tc_Marshal_Struct, &ms1, 0, env); - - a2 = new CORBA_Any; - - // now test it - ref_->test_any (a1, a2, env); - - // check if the two typecodes are equal - if (a2->type ()->equal (Marshal::_tc_Marshal_Struct, env)) - { - // now see if the values are same - ms2 = (Marshal::Marshal_Struct *)a2->value (); - if (ms1.s == ms2->s && ms1.l == ms2->l && ms1.c == ms2->c && ms1.o == ms2->o && - ms1.d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "SII test_any success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_any value match failed\n")); - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_any failed due to typecode mismatch\n")); - } - return 0; -} - -int -Tao_Marshal_Client_Proxy::sii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // make a sequence of Anys and fill each one with a different data type - Marshal::AnySeq as1 (7), *as2; - Marshal::Marshal_Struct ms; - Marshal::Marshal_Union u; - CORBA_Environment env; - - - ms.s = 3; - ms.l = 256; - ms.c = 'B'; - ms.o = (CORBA_Octet) 127; - ms.d = 3.1415; - - u._d (Marshal::e_5th); // somehow, the default case e_6th doesn't seem to - // work here - u.ms ().s = 3; - u.ms ().l = 256; - u.ms ().c = 'B'; - u.ms ().o = (CORBA_Octet) 127; - u.ms ().d = 3.1415; - - // it looks like we must tell the sequence how many elements it is going to - // carry. By just fixing the max value does not work. - - as1.length (7); - -#if 0 // to be supported later - as1[0] <<= (CORBA_Short)3; - as1[1] <<= (CORBA_Long) 256; - as1[2] <<= CORBA_Any::from_octet ((CORBA_Octet)127); - as1[3] <<= CORBA_Any::from_char ('B'); - as1[4] <<= (CORBA_Double)3.1415; // double - as1[5] <<= ms; // struct - as1[6] <<= u; // union -#endif - as1[0].replace (_tc_CORBA_Short, new CORBA_Short (3), 1, env); - as1[1].replace (_tc_CORBA_Long, new CORBA_Long (256), 1, env); - as1[2].replace (_tc_CORBA_Octet, new CORBA_Octet ((CORBA_Octet)127), 1, env); - as1[3].replace (_tc_CORBA_Char, new CORBA_Char ('B'), 1, env); - as1[4].replace (_tc_CORBA_Double, new CORBA_Double (3.1415), 1, env); - as1[5].replace (Marshal::_tc_Marshal_Struct, new Marshal::Marshal_Struct - (ms), 1, env); - as1[6].replace (Marshal::_tc_Marshal_Union, new Marshal::Marshal_Union (u), 1, env); - - as2 = new Marshal::AnySeq; - - ref_->test_sequence (as1, as2, env); - - ACE_DEBUG ((LM_DEBUG, "SII test_sequence\n")); - if (as1.length () == as2->length ()) - { - // now make sure that the elements are same - for (int i=0; i < as1.length (); i++) - { - if (as1[i].type ()->equal ((*as2)[i].type (), env)) - { - // now see if the values are same - switch (i) - { - case 0: - if (*(CORBA_Short *)as1[i].value () == *(CORBA_Short - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, shorts matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on shorts match\n")); - } - break; - case 1: - if (*(CORBA_Long *)as1[i].value () == *(CORBA_Long - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, longs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on longs match\n")); - } - break; - case 2: - if (*(CORBA_Octet *)as1[i].value () == *(CORBA_Octet - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, octets matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on octets match\n")); - } - break; - case 3: - if (*(CORBA_Char *)as1[i].value () == *(CORBA_Char - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, chars matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on chars match\n")); - } - break; - case 4: - if (*(CORBA_Double *)as1[i].value () == *(CORBA_Double - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, doubles matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on doubles match\n")); - } - break; - case 5: - { - Marshal::Marshal_Struct *ms1, *ms2; - - ms1 = (Marshal::Marshal_Struct *)as1[i].value (); - ms2 = (Marshal::Marshal_Struct *)(*as2)[i].value (); - - if (ms1->s == ms2->s && ms1->l == ms2->l && ms1->c == ms2->c && ms1->o == ms2->o && - ms1->d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, structs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on structs match\n")); - } - } - break; - case 6: - { - Marshal::Marshal_Union *u1, *u2; - - u1 = (Marshal::Marshal_Union *)as1[i].value (); - u2 = (Marshal::Marshal_Union *)(*as2)[i].value (); - - if (u1->_d () == u2->_d () && u1->ms ().s == u2->ms ().s && - u1->ms ().l == u2->ms ().l && - u1->ms ().c == u2->ms ().c && u1->ms ().o == u2->ms ().o && - u1->ms ().d == u2->ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, unions matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on unions match\n")); - } - } - break; - } - } - else - { - ACE_DEBUG ((LM_DEBUG, - "SII test_sequence: typecode mismatch for element %d\n", i)); - break; - } - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_sequence failed: as2->length = %d\n", - as2->length ())); - } - return 0; -} - -#if 0 -int -Tao_Marshal_Client_Proxy::sii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // we will try a simple one here - Marshal::Marshal_Recursive mr1, *elem1, *mr2, *elem2; - CORBA_Environment env; - - - mr1.value <<= (CORBA_Long)1; - mr1.next.length (1); // sequence of length 1 - - // fill the element - elem1 = &mr1.next[0]; - elem1->value <<= CORBA_Any::from_char ('D'); - elem1->next.length (0); // end of seq - - mr2 = new Marshal::Marshal_Recursive; - - try { - ref_->test_recursive (mr1, mr2, env); - } - catch (CORBA_SystemException &se){ - cerr << "error invoking request: " << se << endl; - } - - elem2 = &mr2->next[0]; - - if ((*(CORBA_Long *)mr1.value.value () == *(CORBA_Long*)mr2->value.value ()) - && (mr1.next.length () == mr2->next.length ()) // same length sequence - && (*(CORBA_Char *)elem1->value.value () == *(CORBA_Char *)elem2->value.value ()) - && (elem1->next.length () == elem2->next.length ())) - { - ACE_DEBUG ((LM_DEBUG, "SII test_recursive success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_recursive failure\n")); - } - - return 0; -} -#endif - -// ------------------------------------------------------- -// all helper functions : DII -// ------------------------------------------------------- - -int -Tao_Marshal_Client_Proxy::dii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA_Request_ptr request = 0; //CORBA_Request::_nil(); // DII request - CORBA_NVList_ptr arglist = 0; //CORBA_NVList::_nil(); // argument list - // CORBA_Context_ptr ctx = CORBA_Context::_nil(); // context - CORBA_NVList_ptr result_list = 0; //CORBA_NVList::_nil(); // result list - CORBA_NamedValue_ptr result = 0; //CORBA_NamedValue::_nil();// actual result - CORBA_Short s1, s2; - CORBA_Environment env; - - s1 = 3; - s2 = 0; - - orb_->create_list(0, arglist); // 2 arguments to be added - // *(arglist->add (CORBA_ARG_IN)->value ()) <<= s1; - arglist->add_value ("s1", CORBA_Any (_tc_CORBA_Short, &s1, CORBA_B_FALSE), - CORBA_ARG_IN, env); - // this usage is also correct. All we care is to supply a storage area for - // the OUT parameter - // arglist->add (CORBA_ARG_OUT)->value ()->replace (CORBA__tc_short, &s2); - // *(arglist->add (CORBA_ARG_OUT)->value ()) <<= s2; - arglist->add_value ("s2", CORBA_Any (_tc_CORBA_Short, &s2, CORBA_B_FALSE), - CORBA_ARG_OUT, env); - orb_->create_list(1, result_list); // 1 result - result = result_list->item (0); - - // create a request - ref_->_create_request(//ctx, - "test_short", - arglist, - result, - request, - 0, env); - - request->invoke (); // 2 way - // *(arglist->item(1)->value()) >>= s2; - s2 = *(CORBA_Short *)arglist->item(1)->value()->value(); - - if (s2 == 2*s1) - { - ACE_DEBUG ((LM_DEBUG, "DII test_short success: s1 = %d, s2 = %d\n", s1, s2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_short failed: s1 = %d, s2 = %d\n", s1, s2)); - } - CORBA_release (request); - CORBA_release (arglist); - CORBA_release (result); - CORBA_release (result_list); - return 0; -} - -int -Tao_Marshal_Client_Proxy::dii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA_Request_ptr request = 0; //CORBA_Request::_nil(); // DII request - CORBA_NVList_ptr arglist = 0; //CORBA_NVList::_nil(); // argument list - // CORBA_Context_ptr ctx = CORBA_Context::_nil(); // context - CORBA_NVList_ptr result_list = 0; //CORBA_NVList::_nil(); // result list - CORBA_NamedValue_ptr result = 0; //CORBA_NamedValue::_nil();// actual result - CORBA_Long l1, l2; - CORBA_Environment env; - - l1 = 256; - - orb_->create_list(0, arglist); // 2 arguments to be added - // *(arglist->add(CORBA_ARG_IN)->value()) <<= l1; - arglist->add_value ("l1", CORBA_Any (_tc_CORBA_Long, &l1, CORBA_B_FALSE), - CORBA_ARG_IN, env); - // arglist->add(CORBA_ARG_OUT)->value()->replace (CORBA__tc_long, &l2); - arglist->add_value ("l2", CORBA_Any (_tc_CORBA_Long, &l2, CORBA_B_FALSE), - CORBA_ARG_OUT, env); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(//ctx, - "test_long", - arglist, - result, - request, - 0, env); - - request->invoke (); // 2 way - // *(arglist->item(1)->value()) >>= l2; - l2 = *(CORBA_Long *)arglist->item (1)->value ()->value (); - - if (l2 == 3*l1) - { - ACE_DEBUG ((LM_DEBUG, "DII: test_long success: l1 = %d, l2 = %d\n", l1, l2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII: test_long failed: l1 = %d, l2 = %d\n", l1, l2)); - } - CORBA_release (request); - CORBA_release (arglist); - CORBA_release (result); - CORBA_release (result_list); - return 0; -} - -int -Tao_Marshal_Client_Proxy::dii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // octets -{ - // DII variables - CORBA_Request_ptr request = 0; //CORBA_Request::_nil(); // DII request - CORBA_NVList_ptr arglist = 0; //CORBA_NVList::_nil(); // argument list - // CORBA_Context_ptr ctx = CORBA_Context::_nil(); // context - CORBA_NVList_ptr result_list = 0; //CORBA_NVList::_nil(); // result list - CORBA_NamedValue_ptr result = 0; //CORBA_NamedValue::_nil();// actual result - CORBA_Octet o1, o2; - CORBA_Environment env; - - o1 = (CORBA_Octet) 127; - - orb_->create_list(0, arglist); // 2 arguments to be added - // *(arglist->add(CORBA_ARG_IN)->value()) <<= CORBA_Any::from_octet (o1); - // arglist->add(CORBA_ARG_OUT)->value()->replace (CORBA__tc_octet, &o2); - arglist->add_value ("o1", CORBA_Any (_tc_CORBA_Octet, &o1, CORBA_B_FALSE), - CORBA_ARG_IN, env); - arglist->add_value ("o2", CORBA_Any (_tc_CORBA_Octet, &o2, CORBA_B_FALSE), - CORBA_ARG_OUT, env); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(//ctx, - "test_octet", - arglist, - result, - request, - 0, env); - - request->invoke (); // 2 way - // *(arglist->item(1)->value()) >>= CORBA_Any::to_octet (o2); - o2 = *(CORBA_Octet *)arglist->item (1)->value ()->value (); - - if (o1 == o2) - { - ACE_DEBUG ((LM_DEBUG, "DII test_octet success: o1 = %c, o2 = %c\n", o1, o2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_octet failed: o1 = %c, o2 = %c\n", o1, o2)); - } - CORBA_release (request); - CORBA_release (arglist); - CORBA_release (result); - CORBA_release (result_list); - return 0; -} - -int -Tao_Marshal_Client_Proxy::dii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // chars -{ - // DII variables - CORBA_Request_ptr request = 0; //CORBA_Request::_nil(); // DII request - CORBA_NVList_ptr arglist = 0; //CORBA_NVList::_nil(); // argument list - // CORBA_Context_ptr ctx = CORBA_Context::_nil(); // context - CORBA_NVList_ptr result_list = 0; //CORBA_NVList::_nil(); // result list - CORBA_NamedValue_ptr result = 0; //CORBA_NamedValue::_nil();// actual result - CORBA_Char c1, c2; - CORBA_Environment env; - - c1 = 'B'; - - orb_->create_list(0, arglist); // 2 arguments to be added - // *(arglist->add(CORBA_ARG_IN)->value()) <<= CORBA_Any::from_char (c1); - // arglist->add(CORBA_ARG_OUT)->value()->replace (CORBA__tc_char, &c2); - arglist->add_value ("c1", CORBA_Any (_tc_CORBA_Char, &c1, CORBA_B_FALSE), - CORBA_ARG_IN, env); - arglist->add_value ("c2", CORBA_Any (_tc_CORBA_Char, &c2, CORBA_B_FALSE), - CORBA_ARG_OUT, env); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(//ctx, - "test_char", - arglist, - result, - request, - 0, env); - - request->invoke (); // 2 way - // *(arglist->item(1)->value()) >>= CORBA_Any::to_char (c2); - c2 = *(CORBA_Char *)arglist->item (1)->value ()->value (); - - if (c1 == c2) - { - ACE_DEBUG ((LM_DEBUG, "DII test_char success: c1 = %c, c2 = %c\n", c1, c2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_char failed: c1 = %c, c2 = %c\n", c1, c2)); - } - CORBA_release (request); - CORBA_release (arglist); - CORBA_release (result); - CORBA_release (result_list); - return 0; -} - -int -Tao_Marshal_Client_Proxy::dii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // doubles -{ - // DII variables - CORBA_Request_ptr request = 0; //CORBA_Request::_nil(); // DII request - CORBA_NVList_ptr arglist = 0; //CORBA_NVList::_nil(); // argument list - // CORBA_Context_ptr ctx = CORBA_Context::_nil(); // context - CORBA_NVList_ptr result_list = 0; //CORBA_NVList::_nil(); // result list - CORBA_NamedValue_ptr result = 0; //CORBA_NamedValue::_nil();// actual result - CORBA_Double d1, d2; - CORBA_Environment env; - - d1 = 3.1415; - - orb_->create_list(0, arglist); // 2 arguments to be added - // *(arglist->add(CORBA_ARG_IN)->value()) <<= d1; - // arglist->add(CORBA_ARG_OUT)->value()->replace (CORBA__tc_double, &d2); - arglist->add_value ("d1", CORBA_Any (_tc_CORBA_Double, &d1, CORBA_B_FALSE), - CORBA_ARG_IN, env); - arglist->add_value ("d2", CORBA_Any (_tc_CORBA_Double, &d2, CORBA_B_FALSE), - CORBA_ARG_OUT, env); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(//ctx, - "test_double", - arglist, - result, - request, - 0, env); - - request->invoke (); // 2 way - // *(arglist->item(1)->value()) >>= d2; - d2 = *(CORBA_Double *)arglist->item (1)->value ()->value (); - - if (d2 == d1/2) - { - ACE_DEBUG ((LM_DEBUG, "DII test_double success: d1 = %f, d2 = %f\n", d1, d2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_double failed: d1 = %f, d2 = %f\n", d1, d2)); - } - CORBA_release (request); - CORBA_release (arglist); - CORBA_release (result); - CORBA_release (result_list); - return 0; -} - -int -Tao_Marshal_Client_Proxy::dii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // structs -{ - // DII variables - CORBA_Request_ptr request = 0; //CORBA_Request::_nil(); // DII request - CORBA_NVList_ptr arglist = 0; //CORBA_NVList::_nil(); // argument list - // CORBA_Context_ptr ctx = CORBA_Context::_nil(); // context - CORBA_NVList_ptr result_list = 0; //CORBA_NVList::_nil(); // result list - CORBA_NamedValue_ptr result = 0; //CORBA_NamedValue::_nil();// actual result - Marshal::Marshal_Struct ms1, ms2; - CORBA_Environment env; - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA_Octet) 127; - ms1.d = 3.1415; - - orb_->create_list(0, arglist); // 2 arguments to be added - // *(arglist->add(CORBA_ARG_IN)->value()) <<= ms1; - // arglist->add(CORBA_ARG_OUT)->value()->replace (Marshal::_tc_Marshal_Struct, &ms2); - arglist->add_value ("ms1", CORBA_Any (Marshal::_tc_Marshal_Struct, &ms1, CORBA_B_FALSE), - CORBA_ARG_IN, env); - arglist->add_value ("ms2", CORBA_Any (Marshal::_tc_Marshal_Struct, &ms2, CORBA_B_FALSE), - CORBA_ARG_OUT, env); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(//ctx, - "test_struct", - arglist, - result, - request, - 0, env); - - request->invoke (); // 2 way - // *(arglist->item(1)->value()) >>= ms2; - ms2 = *(Marshal::Marshal_Struct *)arglist->item (1)->value ()->value (); - - if (ms1.s == ms2.s && ms1.l == ms2.l && ms1.c == ms2.c && ms1.o == ms2.o && - ms1.d == ms2.d) - { - ACE_DEBUG ((LM_DEBUG, "DII test_struct success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_struct failed\n")); - } - CORBA_release (request); - CORBA_release (arglist); - CORBA_release (result); - CORBA_release (result_list); - return 0; -} - -int -Tao_Marshal_Client_Proxy::dii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // unions -{ - // DII variables - CORBA_Request_ptr request = 0; //CORBA_Request::_nil(); // DII request - CORBA_NVList_ptr arglist = 0; //CORBA_NVList::_nil(); // argument list - // CORBA_Context_ptr ctx = CORBA_Context::_nil(); // context - CORBA_NVList_ptr result_list = 0; //CORBA_NVList::_nil(); // result list - CORBA_NamedValue_ptr result = 0; //CORBA_NamedValue::_nil();// actual result - Marshal::Marshal_Union u1, u2; - Marshal::Marshal_Struct ms1, ms2; - CORBA_Environment env; - - - // first test an enumerated case - u1._d (Marshal::e_1st); - u1.l (4567); - - orb_->create_list(0, arglist); // 2 arguments to be added - // *(arglist->add(CORBA_ARG_IN)->value()) <<= u1; - // arglist->add(CORBA_ARG_OUT)->value()->replace (Marshal::_tc_Marshal_Union, &u2); - arglist->add_value ("u1", CORBA_Any (Marshal::_tc_Marshal_Union, &u1, CORBA_B_FALSE), - CORBA_ARG_IN, env); - arglist->add_value ("u2", CORBA_Any (Marshal::_tc_Marshal_Union, &u2, CORBA_B_FALSE), - CORBA_ARG_OUT, env); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(//ctx, - "test_union", - arglist, - result, - request, - 0, env); - - request->invoke (); // 2 way - // *(arglist->item(1)->value()) >>= u2; - u2 = *(Marshal::Marshal_Union *)arglist->item (1)->value ()->value (); - - if ( (u1._d () == u2._d()) && (u1.l () == u2.l ())) - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for long (case e_1st) success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for long (case e_1st) failed\n")); - } - CORBA_release (request); - CORBA_release (arglist); - CORBA_release (result); - CORBA_release (result_list); - - // now test the default case - u1._d (Marshal::e_5th); // e_6th doesn't work - - u1.ms ().s = 3; - u1.ms ().l = 256; - u1.ms ().c = 'B'; - u1.ms ().o = (CORBA_Octet) 127; - u1.ms ().d = 3.1415; - - - orb_->create_list(0, arglist); // 2 arguments to be added - // *(arglist->add(CORBA_ARG_IN)->value()) <<= u1; - //arglist->add(CORBA_ARG_OUT)->value()->replace (Marshal::_tc_Marshal_Union, &u2); - arglist->add_value ("u1", CORBA_Any (Marshal::_tc_Marshal_Union, &u1, CORBA_B_FALSE), - CORBA_ARG_IN, env); - arglist->add_value ("u2", CORBA_Any (Marshal::_tc_Marshal_Union, &u2, CORBA_B_FALSE), - CORBA_ARG_OUT, env); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(//ctx, - "test_union", - arglist, - result, - request, - 0, env); - - request->invoke (); // 2 way - // *(arglist->item(1)->value()) >>= u2; - u2 = *(Marshal::Marshal_Union *)arglist->item (1)->value ()->value (); - - if (u1.ms ().s == u2.ms ().s && u1.ms ().l == u2.ms ().l && u1.ms ().c == u2.ms ().c && u1.ms ().o == u2.ms ().o && - u1.ms ().d == u2.ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for default (case e_6th) success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for default (case e_6th) failed\n")); - } - CORBA_release (request); - CORBA_release (arglist); - CORBA_release (result); - CORBA_release (result_list); - return 0; -} - -int -Tao_Marshal_Client_Proxy::dii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA_Request_ptr request = 0; //CORBA_Request::_nil(); // DII request - CORBA_NVList_ptr arglist = 0; //CORBA_NVList::_nil(); // argument list - // CORBA_Context_ptr ctx = CORBA_Context::_nil(); // context - CORBA_NVList_ptr result_list = 0; //CORBA_NVList::_nil(); // result list - CORBA_NamedValue_ptr result = 0; //CORBA_NamedValue::_nil();// actual result - // we send a struct thru the any - CORBA_Any a1, *a2; - Marshal::Marshal_Struct ms1, *ms2; - CORBA_Environment env; - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA_Octet) 127; - ms1.d = 3.1415; - - // populate the any with a MarshalStruct - // a1 <<= ms1; - a1.replace (Marshal::_tc_Marshal_Struct, &ms1, CORBA_B_FALSE, env); - - a2 = new CORBA_Any; - - // now test it - orb_->create_list(0, arglist); // 2 arguments to be added - // *(arglist->add(CORBA_ARG_IN)->value()) <<= a1; - // arglist->add(CORBA_ARG_OUT)->value()->replace (CORBA__tc_any, a2); - arglist->add_value ("a1", CORBA_Any (_tc_CORBA_Any, &a1, CORBA_B_FALSE), - CORBA_ARG_IN, env); - arglist->add_value ("a2", CORBA_Any (_tc_CORBA_Any, a2, CORBA_B_FALSE), - CORBA_ARG_OUT, env); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(//ctx, - "test_any", - arglist, - result, - request, - 0, env); - - request->invoke (); // 2 way - // *(arglist->item(1)->value()) >>= (*a2); - a2->replace (_tc_CORBA_Any, (CORBA_Any *)arglist->item (1)->value ()->value - (), 1, env); - - // check if the two typecodes are equal - if (a2->type ()->equal (Marshal::_tc_Marshal_Struct, env)) - { - // now see if the values are same - ms2 = (Marshal::Marshal_Struct *)a2->value (); - if (ms1.s == ms2->s && ms1.l == ms2->l && ms1.c == ms2->c && ms1.o == ms2->o && - ms1.d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "DII test_any success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_any value match failed\n")); - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_any failed due to typecode mismatch\n")); - } - CORBA_release (request); - CORBA_release (arglist); - CORBA_release (result); - CORBA_release (result_list); - return 0; -} - -int -Tao_Marshal_Client_Proxy::dii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA_Request_ptr request = 0; //CORBA_Request::_nil(); // DII request - CORBA_NVList_ptr arglist = 0; //CORBA_NVList::_nil(); // argument list - // CORBA_Context_ptr ctx = CORBA_Context::_nil(); // context - CORBA_NVList_ptr result_list = 0; //CORBA_NVList::_nil(); // result list - CORBA_NamedValue_ptr result = 0; //CORBA_NamedValue::_nil();// actual result - // make a sequence of Anys and fill each one with a different data type - Marshal::AnySeq as1 (7), *as2; - Marshal::Marshal_Struct ms; - Marshal::Marshal_Union u; - CORBA_Environment env; - - ms.s = 3; - ms.l = 256; - ms.c = 'B'; - ms.o = (CORBA_Octet) 127; - ms.d = 3.1415; - - u._d (Marshal::e_5th); // somehow, the default case e_6th doesn't seem to - // work here - u.ms ().s = 3; - u.ms ().l = 256; - u.ms ().c = 'B'; - u.ms ().o = (CORBA_Octet) 127; - u.ms ().d = 3.1415; - - // it looks like we must tell the sequence how many elements it is going to - // carry. By just fixing the max value does not work. - - as1.length (7); - -#if 0 - as1[0] <<= (CORBA_Short)3; - as1[1] <<= (CORBA_Long) 256; - as1[2] <<= CORBA_Any::from_octet ((CORBA_Octet)127); - as1[3] <<= CORBA_Any::from_char ('B'); - as1[4] <<= (CORBA_Double)3.1415; // double - as1[5] <<= ms; // struct - as1[6] <<= u; // union -#endif - as1[0].replace (_tc_CORBA_Short, new CORBA_Short (3), 1, env); - as1[1].replace (_tc_CORBA_Long, new CORBA_Long (256), 1, env); - as1[2].replace (_tc_CORBA_Octet, new CORBA_Octet ((CORBA_Octet)127), 1, env); - as1[3].replace (_tc_CORBA_Char, new CORBA_Char ('B'), 1, env); - as1[4].replace (_tc_CORBA_Double, new CORBA_Double (3.1415), 1, env); - as1[5].replace (Marshal::_tc_Marshal_Struct, new Marshal::Marshal_Struct - (ms), 1, env); - as1[6].replace (Marshal::_tc_Marshal_Union, new Marshal::Marshal_Union (u), 1, env); - - as2 = new Marshal::AnySeq; - - orb_->create_list(0, arglist); // 2 arguments to be added - // *(arglist->add(CORBA_ARG_IN)->value()) <<= as1; - // arglist->add(CORBA_ARG_OUT)->value()->replace (Marshal::_tc_AnySeq, as2); - arglist->add_value ("as1", CORBA_Any (Marshal::_tc_AnySeq, &as1, CORBA_B_FALSE), - CORBA_ARG_IN, env); - arglist->add_value ("o2", CORBA_Any (Marshal::_tc_AnySeq, as2, CORBA_B_FALSE), - CORBA_ARG_OUT, env); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(//ctx, - "test_sequence", - arglist, - result, - request, - 0, env); - - request->invoke (); // 2 way - // *(arglist->item(1)->value()) >>= (*as2); - *as2 = *(Marshal::AnySeq *)arglist->item (1)->value ()->value (); - - ACE_DEBUG ((LM_DEBUG, "DII test_sequence\n")); - if (as1.length () == as2->length ()) - { - // now make sure that the elements are same - for (int i=0; i < as1.length (); i++) - { - if (as1[i].type ()->equal ((*as2)[i].type (), env)) - { - // now see if the values are same - switch (i) - { - case 0: - if (*(CORBA_Short *)as1[i].value () == *(CORBA_Short - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, shorts matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on shorts match\n")); - } - break; - case 1: - if (*(CORBA_Long *)as1[i].value () == *(CORBA_Long - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, longs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on longs match\n")); - } - break; - case 2: - if (*(CORBA_Octet *)as1[i].value () == *(CORBA_Octet - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, octets matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on octets match\n")); - } - break; - case 3: - if (*(CORBA_Char *)as1[i].value () == *(CORBA_Char - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, chars matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on chars match\n")); - } - break; - case 4: - if (*(CORBA_Double *)as1[i].value () == *(CORBA_Double - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, doubles matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on doubles match\n")); - } - break; - case 5: - { - Marshal::Marshal_Struct *ms1, *ms2; - - ms1 = (Marshal::Marshal_Struct *)as1[i].value (); - ms2 = (Marshal::Marshal_Struct *)(*as2)[i].value (); - - if (ms1->s == ms2->s && ms1->l == ms2->l && ms1->c == ms2->c && ms1->o == ms2->o && - ms1->d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, structs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on structs match\n")); - } - } - break; - case 6: - { - Marshal::Marshal_Union *u1, *u2; - - u1 = (Marshal::Marshal_Union *)as1[i].value (); - u2 = (Marshal::Marshal_Union *)(*as2)[i].value (); - - if (u1->_d () == u2->_d () && u1->ms ().s == u2->ms ().s && - u1->ms ().l == u2->ms ().l && - u1->ms ().c == u2->ms ().c && u1->ms ().o == u2->ms ().o && - u1->ms ().d == u2->ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, unions matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on unions match\n")); - } - } - break; - } - } - else - { - ACE_DEBUG ((LM_DEBUG, - "DII test_sequence: typecode mismatch for element %d\n", i)); - break; - } - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_sequence failed: as2->length = %d\n", - as2->length ())); - } - CORBA_release (request); - CORBA_release (arglist); - CORBA_release (result); - CORBA_release (result_list); - return 0; -} - -#if 0 -int -Tao_Marshal_Client_Proxy::dii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // we will try a simple one here - Marshal::Marshal_Recursive mr1, *elem1, *mr2, *elem2; - - mr1.value <<= (CORBA_Long)1; - mr1.next.length (1); // sequence of length 1 - - // fill the element - elem1 = &mr1.next[0]; - elem1->value <<= CORBA_Any::from_char ('D'); - elem1->next.length (0); // end of seq - - mr2 = new Marshal::Marshal_Recursive; - - try { - ref_->test_recursive (mr1, mr2); - } - catch (CORBA_SystemException &se){ - cerr << "error invoking request: " << se << endl; - } - - elem2 = &mr2->next[0]; - - if ((*(CORBA_Long *)mr1.value.value () == *(CORBA_Long*)mr2->value.value ()) - && (mr1.next.length () == mr2->next.length ()) // same length sequence - && (*(CORBA_Char *)elem1->value.value () == *(CORBA_Char *)elem2->value.value ()) - && (elem1->next.length () == elem2->next.length ())) - { - ACE_DEBUG ((LM_DEBUG, "DII test_recursive success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_recursive failure\n")); - } - - return 0; -} -#endif diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.h b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.h deleted file mode 100644 index d7b8269b2c2..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.h +++ /dev/null @@ -1,126 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Marshal Tao Benchmark -// -// = FILENAME -// tao_marshal_client.h -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined(_TAO_MARSHAL_CLIENT_H_) -#define _TAO_MARSHAL_CLIENT_H_ - -// benchmark library includes -#include "benchmark/marshal_options.h" -#include "benchmark/marshal_results.h" -#include "benchmark/marshal_proxy.h" - -// include Tao specific include files -#include "marshalC.h" // generated by IDL compiler -#include "tao/nvlist.h" - -class Tao_Marshal_Client_Proxy : public CORBA_Marshal_Proxy -{ - // =TITLE - // Tao_Marshal_Client_Proxy - // =DESCRIPTION - // Tao client size specialization of the CORBA Marshal proxy class -public: - Tao_Marshal_Client_Proxy (void); - // constructor - - ~Tao_Marshal_Client_Proxy (void); - // destructor - - virtual int run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // do the actual work - - virtual int use_sii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // use the static invocation interface - - virtual int use_dii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // use the dynamic invocation interface -private: - // =helper functions - int sii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - // all the DII helpers - int dii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - CORBA_ORB_ptr orb_; - // handle to the underlying orb - - Marshal_ptr ref_; - // the object reference -}; - -#if defined (__ACE_INLINE__) -#include "tao_marshal_client.i" -#endif /* __ACE_INLINE__ */ - -#endif diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.i b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.i deleted file mode 100644 index 5fcdc2e209f..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.i +++ /dev/null @@ -1,23 +0,0 @@ -// $Id$ - - -ACE_INLINE -Tao_Marshal_Client_Proxy::Tao_Marshal_Client_Proxy (void) - : orb_ (0), - ref_ (0) -{ -} - -ACE_INLINE -Tao_Marshal_Client_Proxy::~Tao_Marshal_Client_Proxy (void) -{ - // releasing order is important - - // release the reference - CORBA_release (ref_); - - // release the ORB - CORBA_release (orb_); -} - - diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.cpp b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.cpp deleted file mode 100644 index d4d555d5dee..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.cpp +++ /dev/null @@ -1,652 +0,0 @@ -// $Id$ - -#include "tao_marshal_impl.h" - -#if !defined (__ACE_INLINE__) -#include "tao_marshal_impl.i" -#endif /* __ACE_INLINE__ */ - -// All the methods of the SSI class -void -Marshal_SSI_Impl::test_short (CORBA_Short s1, - CORBA_Short &s2, - CORBA_Environment &env) -{ - s2 = 2*s1; -} - -void -Marshal_SSI_Impl::test_long (CORBA_Long l1, - CORBA_Long &l2, - CORBA_Environment &env) -{ - l2 = 3*l1; -} - -void -Marshal_SSI_Impl::test_octet (CORBA_Octet o1, - CORBA_Octet &o2, - CORBA_Environment &env) -{ - o2 = o1; -} - -void -Marshal_SSI_Impl::test_char (CORBA_Char c1, - CORBA_Char &c2, - CORBA_Environment &env) -{ - c2 = c1; -} - -void -Marshal_SSI_Impl::test_double (CORBA_Double d1, - CORBA_Double &d2, - CORBA_Environment &env) -{ - d2 = d1/2; -} - -void -Marshal_SSI_Impl::test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2, - CORBA_Environment &env) -{ - ms2.s = ms1.s; - ms2.l = ms1.l; - ms2.c = ms1.c; - ms2.o = ms1.o; - ms2.d = ms1.d; -} - -void -Marshal_SSI_Impl::test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2, - CORBA_Environment &env) -{ - u2._d (u1._d ()); // set the discriminant value - - switch (u1._d ()) - { - case Marshal::e_0th: - u2.s (u1.s ()); // set short - break; - case Marshal::e_1st: - u2.l (u1.l ()); // set long - break; - case Marshal::e_2nd: - u2.c (u1.c ()); // set char - break; - case Marshal::e_3rd: - u2.o (u1.o ()); // set octet - break; - case Marshal::e_4th: - u2.d (u1.d ()); // set double - break; - case Marshal::e_5th: - default: - u2.ms (u1. ms ()); // set structs - break; - } -} - -void -Marshal_SSI_Impl::test_any (const CORBA_Any &a1, - CORBA_Any *&a2, - CORBA_Environment &env) -{ - a2 = new CORBA_Any (a1.type (), (void *)a1.value ()); // will do a deep copy -} - -void -Marshal_SSI_Impl::test_sequence (const Marshal::AnySeq& as1, - Marshal::AnySeq *& as2, - CORBA_Environment &env) -{ - as2 = new Marshal::AnySeq (as1); -} - -#if 0 -void -Marshal_SSI_Impl::test_recursive (const Marshal::Marshal_Recursive &mr1, - Marshal::Marshal_Recursive *&mr2, - CORBA_Environment &env) -{ -} -#endif - -//---------------------------------------------------------------------------- -//the methods of the DSI implementation class - -static const TAO_operation_db_entry Marshal_DSI_operations[] = { - {"_is_a", &Marshal_DSI_Impl::_Marshal_is_a_skel}, - { "test_short", &Marshal_DSI_Impl::_Marshal_test_short_skel}, - { "test_long", &Marshal_DSI_Impl::_Marshal_test_long_skel}, - { "test_octet", &Marshal_DSI_Impl::_Marshal_test_octet_skel}, - { "test_char", &Marshal_DSI_Impl::_Marshal_test_char_skel}, - { "test_double", &Marshal_DSI_Impl::_Marshal_test_double_skel}, - { "test_struct", &Marshal_DSI_Impl::_Marshal_test_struct_skel}, - { "test_union", &Marshal_DSI_Impl::_Marshal_test_union_skel}, - { "test_any", &Marshal_DSI_Impl::_Marshal_test_any_skel}, - { "test_sequence", &Marshal_DSI_Impl::_Marshal_test_sequence_skel}, - { 0, 0 } -}; - -// Note that we use a linear table because rest of the DSI implementations we -// compare with also use linear search in their "invoke" method. -TAO_Linear_OpTable tao_Marshal_DSI_optable (Marshal_DSI_operations, 10); - -// constructor -Marshal_DSI_Impl::Marshal_DSI_Impl (CORBA_ORB_ptr orb, const char *obj_name) - : orb_ (orb) - //,CORBA_DynamicImplementation ("Marshal", obj_name) // interface name is necessary -{ - // Note that this is a HACK to achieve DSI behavior. But this way we can - // cleanly integrate ourselves with the dispatch mechanism of the OA. - - const CORBA_String repoID = "IDL:Marshal:1.0"; // repository ID - IIOP_Object *data; // IIOP object - CORBA_BOA_ptr oa = TAO_OA_PARAMS::instance()->oa(); // underlying BOA - this->optable_ = &tao_Marshal_DSI_optable; // operation database - CORBA_Long i; - - // setup an IIOP object - data = new IIOP_Object (CORBA_string_dup (repoID)); - data->profile.iiop_version.major = IIOP::MY_MAJOR; - data->profile.iiop_version.minor = IIOP::MY_MINOR; - data->profile.host = ACE_OS::strdup (oa->get_addr ().get_host_name ()); - data->profile.port = oa->get_addr ().get_port_number (); - data->profile.object_key.length = ACE_OS::strlen (obj_name); - data->profile.object_key.maximum = data->profile.object_key.length; - data->profile.object_key.buffer = new CORBA_Octet [(size_t)data->profile.object_key.length+1]; - ACE_OS::memcpy (data->profile.object_key.buffer, obj_name, - data->profile.object_key.length); // set the object key - this->set_parent (data); // store the IIOP obj reference with ourselves - this->sub_ = this; // set the most derived class to be ourselves - if (oa) oa->bind (data->profile.object_key, this);// register ourselves -} - -void -Marshal_DSI_Impl::invoke (CORBA_ServerRequest& req, CORBA_Environment &env) -{ - // parse the incoming request and find out for what operation it is. We use a - // simple linear search here - if (!ACE_OS::strcmp (req.op_name (), "test_short")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_long")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_octet")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_char")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_double")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_struct")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_union")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_any")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_sequence")) - { - } -} - -// simulate the skeletons -void Marshal_DSI_Impl::_Marshal_is_a_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_String); - char *type_id = "IDL:Marshal:1.0"; - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - - req.params (nvlist, env); - if (env.exception () != 0) { - dexc (env, "is_a_skel, get params"); - return; - } - - CORBA_Boolean *retval; - CORBA_String value = *(CORBA_String *)nv->value ()->value (); - - cout << "object id = " << ((char *)value) << endl; - if (strcmp ((char *)value, (char *)type_id) == 0 - || strcmp ((char *)value, _tc_CORBA_Object->id(env)) == 0) - retval = new CORBA_Boolean (CORBA_B_TRUE); - else - retval = new CORBA_Boolean (CORBA_B_FALSE); - - CORBA_Any *any = - new CORBA_Any (_tc_CORBA_Boolean, retval, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "_is_a, result"); -} - -void Marshal_DSI_Impl::_Marshal_test_short_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv1, nv2; - CORBA_Any any_s1 (_tc_CORBA_Short); - CORBA_Any any_s2 (_tc_CORBA_Short); - Marshal_DSI_Impl* impl; - CORBA_Short s1, s2; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv1 = nvlist->add_value (0, any_s1, CORBA_ARG_IN, env); - nv2 = nvlist->add_value (0, any_s2, CORBA_ARG_OUT, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - s1 = *(CORBA_Short *) nv1->value ()->value (); - - // now invoke the implementation - impl = (Marshal_DSI_Impl *)(obj->get_subclass ()); - // now the magic of dynamic binding - impl->test_short (s1, s2, env); - - nv2->value ()->replace (_tc_CORBA_Short, &s2, 0, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, CORBA_B_TRUE); - req.result(any, env); -} - -void Marshal_DSI_Impl::_Marshal_test_long_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv1, nv2; - CORBA_Any any_l1 (_tc_CORBA_Long); - CORBA_Any any_l2 (_tc_CORBA_Long); - Marshal_DSI_Impl* impl; - CORBA_Long l1, l2; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv1 = nvlist->add_value (0, any_l1, CORBA_ARG_IN, env); - nv2 = nvlist->add_value (0, any_l2, CORBA_ARG_OUT, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - l1 = *(CORBA_Long *) nv1->value ()->value (); - - // now invoke the implementation - impl = (Marshal_DSI_Impl *)(obj->get_subclass ()); - // now the magic of dynamic binding - impl->test_long (l1, l2, env); - - nv2->value ()->replace (_tc_CORBA_Long, &l2, 0, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, CORBA_B_TRUE); - req.result(any, env); -} - -void Marshal_DSI_Impl::_Marshal_test_octet_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv1, nv2; - CORBA_Any any_o1 (_tc_CORBA_Octet); - CORBA_Any any_o2 (_tc_CORBA_Octet); - Marshal_DSI_Impl* impl; - CORBA_Octet o1, o2; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv1 = nvlist->add_value (0, any_o1, CORBA_ARG_IN, env); - nv2 = nvlist->add_value (0, any_o2, CORBA_ARG_OUT, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - o1 = *(CORBA_Octet *) nv1->value ()->value (); - - // now invoke the implementation - impl = (Marshal_DSI_Impl *)(obj->get_subclass ()); - // now the magic of dynamic binding - impl->test_octet (o1, o2, env); - - nv2->value ()->replace (_tc_CORBA_Octet, &o2, 0, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, CORBA_B_TRUE); - req.result(any, env); -} - -void Marshal_DSI_Impl::_Marshal_test_char_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv1, nv2; - CORBA_Any any_c1 (_tc_CORBA_Char); - CORBA_Any any_c2 (_tc_CORBA_Char); - Marshal_DSI_Impl* impl; - CORBA_Char c1, c2; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv1 = nvlist->add_value (0, any_c1, CORBA_ARG_IN, env); - nv2 = nvlist->add_value (0, any_c2, CORBA_ARG_OUT, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - c1 = *(CORBA_Char *) nv1->value ()->value (); - - // now invoke the implementation - impl = (Marshal_DSI_Impl *)(obj->get_subclass ()); - // now the magic of dynamic binding - impl->test_char (c1, c2, env); - - nv2->value ()->replace (_tc_CORBA_Char, &c2, 0, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, CORBA_B_TRUE); - req.result(any, env); -} - -void Marshal_DSI_Impl::_Marshal_test_double_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv1, nv2; - CORBA_Any any_d1 (_tc_CORBA_Double); - CORBA_Any any_d2 (_tc_CORBA_Double); - Marshal_DSI_Impl* impl; - CORBA_Double d1, d2; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv1 = nvlist->add_value (0, any_d1, CORBA_ARG_IN, env); - nv2 = nvlist->add_value (0, any_d2, CORBA_ARG_OUT, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - d1 = *(CORBA_Double *) nv1->value ()->value (); - - // now invoke the implementation - impl = (Marshal_DSI_Impl *)(obj->get_subclass ()); - // now the magic of dynamic binding - impl->test_double (d1, d2, env); - - nv2->value ()->replace (_tc_CORBA_Double, &d2, 0, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, CORBA_B_TRUE); - req.result(any, env); -} - -void Marshal_DSI_Impl::_Marshal_test_struct_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv1, nv2; - CORBA_Any any_ms1 (Marshal::_tc_Marshal_Struct); - CORBA_Any any_ms2 (Marshal::_tc_Marshal_Struct); - Marshal_DSI_Impl* impl; - Marshal::Marshal_Struct ms1, *ms2; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv1 = nvlist->add_value (0, any_ms1, CORBA_ARG_IN, env); - nv2 = nvlist->add_value (0, any_ms2, CORBA_ARG_OUT, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - // note that the second parameter being an out parameter, we are allocating - // it from heap and filling it up. We will then insert it into the Any that - // will get written to the stream. We should have done this for the - // primitives too, but somehow they worked (because nothing got written onto - // the stack frame onto which they existed, but this phenomenon was occuring - // here and possibly will occur for the rest of the case - ms1 = *(Marshal::Marshal_Struct *) nv1->value ()->value (); - ms2 = new Marshal::Marshal_Struct; - - // now invoke the implementation - impl = (Marshal_DSI_Impl *)(obj->get_subclass ()); - // now the magic of dynamic binding - impl->test_struct (ms1, *ms2, env); - - nv2->value ()->replace (Marshal::_tc_Marshal_Struct, ms2, 1, env); - - // result - NO result - // CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, CORBA_B_TRUE); - // req.result(any, env); -} - -void Marshal_DSI_Impl::_Marshal_test_union_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv1, nv2; - CORBA_Any any_u1 (Marshal::_tc_Marshal_Union); - CORBA_Any any_u2 (Marshal::_tc_Marshal_Union); - Marshal_DSI_Impl* impl; - Marshal::Marshal_Union u1, *u2; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv1 = nvlist->add_value (0, any_u1, CORBA_ARG_IN, env); - nv2 = nvlist->add_value (0, any_u2, CORBA_ARG_OUT, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - u1 = *(Marshal::Marshal_Union *) nv1->value ()->value (); - u2 = new Marshal::Marshal_Union; - - // now invoke the implementation - impl = (Marshal_DSI_Impl *)(obj->get_subclass ()); - // now the magic of dynamic binding - impl->test_union (u1, *u2, env); - - nv2->value ()->replace (Marshal::_tc_Marshal_Union, u2, 0, env); - - // result - NO result - // CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, CORBA_B_TRUE); - // req.result(any, env); -} - -void Marshal_DSI_Impl::_Marshal_test_any_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv1, nv2; - CORBA_Any *a1=0, *a2=0; - CORBA_Any any_a1 (_tc_CORBA_Any, &a1); - CORBA_Any any_a2 (_tc_CORBA_Any); - Marshal_DSI_Impl* impl; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv1 = nvlist->add_value (0, any_a1, CORBA_ARG_IN, env); - nv2 = nvlist->add_value (0, any_a2, CORBA_ARG_OUT, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - a1 = (CORBA_Any *) nv1->value ()->value (); - - // now invoke the implementation - impl = (Marshal_DSI_Impl *)(obj->get_subclass ()); - // now the magic of dynamic binding - impl->test_any (*a1, a2, env); - - nv2->value ()->replace (_tc_CORBA_Any, a2, 1, env); - - // result - NO result - // CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, CORBA_B_TRUE); - // req.result(any, env); -} - -void Marshal_DSI_Impl::_Marshal_test_sequence_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv1, nv2; - CORBA_Any any_as1 (Marshal::_tc_AnySeq); - CORBA_Any any_as2 (Marshal::_tc_AnySeq); - Marshal_DSI_Impl* impl; - Marshal::AnySeq *as1, *as2; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv1 = nvlist->add_value (0, any_as1, CORBA_ARG_IN, env); - nv2 = nvlist->add_value (0, any_as2, CORBA_ARG_OUT, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - as1 = (Marshal::AnySeq *) nv1->value ()->value (); - - // now invoke the implementation - impl = (Marshal_DSI_Impl *)(obj->get_subclass ()); - // now the magic of dynamic binding - impl->test_sequence (*as1, as2, env); - - nv2->value ()->replace (Marshal::_tc_AnySeq, as2, 1, env); - - // result - NO result - // CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, CORBA_B_TRUE); - // req.result(any, env); -} - -// private methods of our DSI class -void -Marshal_DSI_Impl::test_short (CORBA_Short s1, - CORBA_Short &s2, - CORBA_Environment &env) -{ - s2 = 2*s1; -} - -void -Marshal_DSI_Impl::test_long (CORBA_Long l1, - CORBA_Long &l2, - CORBA_Environment &env) -{ - l2 = 3*l1; -} - -void -Marshal_DSI_Impl::test_octet (CORBA_Octet o1, - CORBA_Octet &o2, - CORBA_Environment &env) -{ - o2 = o1; -} - -void -Marshal_DSI_Impl::test_char (CORBA_Char c1, - CORBA_Char &c2, - CORBA_Environment &env) -{ - c2 = c1; -} - -void -Marshal_DSI_Impl::test_double (CORBA_Double d1, - CORBA_Double &d2, - CORBA_Environment &env) -{ - d2 = d1/2; -} - -void -Marshal_DSI_Impl::test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2, - CORBA_Environment &env) -{ - ms2.s = ms1.s; - ms2.l = ms1.l; - ms2.c = ms1.c; - ms2.o = ms1.o; - ms2.d = ms1.d; -} - -void -Marshal_DSI_Impl::test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2, - CORBA_Environment &env) -{ - u2._d (u1._d ()); // set the discriminant value - - switch (u1._d ()) - { - case Marshal::e_0th: - u2.s (u1.s ()); // set short - break; - case Marshal::e_1st: - u2.l (u1.l ()); // set long - break; - case Marshal::e_2nd: - u2.c (u1.c ()); // set char - break; - case Marshal::e_3rd: - u2.o (u1.o ()); // set octet - break; - case Marshal::e_4th: - u2.d (u1.d ()); // set double - break; - case Marshal::e_5th: - default: - u2.ms (u1. ms ()); // set structs - break; - } -} - -void -Marshal_DSI_Impl::test_any (const CORBA_Any &a1, - CORBA_Any *&a2, - CORBA_Environment &env) -{ - a2 = new CORBA_Any (a1.type (), (void *)a1.value ()); // will do a deep copy -} - -void -Marshal_DSI_Impl::test_sequence (const Marshal::AnySeq& as1, - Marshal::AnySeq *& as2, - CORBA_Environment &env) -{ - as2 = new Marshal::AnySeq (as1); -} - -#if 0 -void -Marshal_DSI_Impl::test_recursive (const Marshal::Marshal_Recursive &mr1, - Marshal::Marshal_Recursive *&mr2, - CORBA_Environment &env) -{ -} -#endif - diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.h b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.h deleted file mode 100644 index dab7e662d74..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.h +++ /dev/null @@ -1,192 +0,0 @@ -// $Id$ - -#if !defined (TAO_MARSHAL_IMPL_H) -#define TAO_MARSHAL_IMPL_H - -// to include DSI related files - -#include "ace/OS.h" - -#include "marshalS.h" -//#include "tao/dynimpl.h" - -class Marshal_SSI_Impl - : public virtual _skel_Marshal -{ - // =TITLE - // Marshal_SSI_Impl - // =DESCRIPTION - // Implementation of the interface using the static skeleton interface -public: - Marshal_SSI_Impl (const char *object_name = (const char *)NULL); - // constructor - - ~Marshal_SSI_Impl (void); - // destructor - - virtual void test_short (CORBA_Short s1, - CORBA_Short& s2, - CORBA_Environment &env); - // test short - - virtual void test_long (CORBA_Long l1, - CORBA_Long& l2, - CORBA_Environment &env); - // test long - - virtual void test_octet (CORBA_Octet o1, - CORBA_Octet& o2, - CORBA_Environment &env); - // test octet - - virtual void test_char (CORBA_Char c1, - CORBA_Char& c2, - CORBA_Environment &env); - // test char - - virtual void test_double (CORBA_Double d1, - CORBA_Double& d2, - CORBA_Environment &env); - // test double - - virtual void test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2, - CORBA_Environment &env); - // test struct - - virtual void test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2, - CORBA_Environment &env); - // test union - - virtual void test_any (const CORBA_Any& a1, - CORBA_Any *& a2, - CORBA_Environment &env); - // test any - - virtual void test_sequence (const Marshal::AnySeq& a1, - Marshal::AnySeq *& a2, - CORBA_Environment &env); - // test sequence - -#if 0 - virtual void test_recursive (const Marshal::Marshal_Recursive& mr1, - Marshal::Marshal_Recursive *& mr2, - CORBA_Environment &env); - // test struct -#endif - -}; - -class Marshal_DSI_Impl : public CORBA_Object //: public CORBA_DynamicImplementation -{ - // =TITLE - // Marshal_DSI_Impl - // =DESCRIPTION - // Implementation of the interface using the dynamic skeleton interface - // =NOTES - // We do not have a DynamicImplementation as yet. So we do a trick here. We - // simulate the skeletons here and these call the private methods defined below: -public: - Marshal_DSI_Impl (CORBA_ORB_ptr orb, const char *object_name = (const char *)NULL); - // constructor - - ~Marshal_DSI_Impl (void); - // destructor - - virtual void invoke (CORBA_ServerRequest & req, CORBA_Environment &env); - // This method is a must, but of no use - - // skeletons that do the upcall - static void _Marshal_is_a_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_short_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_long_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_octet_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_char_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_double_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_struct_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_union_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_any_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_sequence_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); -private: - void test_short (CORBA_Short s1, - CORBA_Short& s2, - CORBA_Environment &env); - // test short - - void test_long (CORBA_Long l1, - CORBA_Long& l2, - CORBA_Environment &env); - // test long - - void test_octet (CORBA_Octet o1, - CORBA_Octet& o2, - CORBA_Environment &env); - // test octet - - void test_char (CORBA_Char c1, - CORBA_Char& c2, - CORBA_Environment &env); - // test char - - void test_double (CORBA_Double d1, - CORBA_Double& d2, - CORBA_Environment &env); - // test double - - void test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2, - CORBA_Environment &env); - // test struct - - void test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2, - CORBA_Environment &env); - // test union - - void test_any (const CORBA_Any& a1, - CORBA_Any *& a2, - CORBA_Environment &env); - // test any - - void test_sequence (const Marshal::AnySeq& a1, - Marshal::AnySeq *& a2, - CORBA_Environment &env); - // test sequence - -#if 0 - void test_recursive (const Marshal::Marshal_Recursive& mr1, - Marshal::Marshal_Recursive *& mr2, - CORBA_Environment &env); - // test struct -#endif - - // we need the orb to create argument lists (NVList) for us - CORBA_ORB_ptr orb_; // not owned by us -}; - -#if defined (__ACE_INLINE__) -#include "tao_marshal_impl.i" -#endif /* __ACE_INLINE__ */ - -#endif // defined (TAO_MARSHAL_IMPL_H) diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.i b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.i deleted file mode 100644 index a730daf8106..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.i +++ /dev/null @@ -1,23 +0,0 @@ -// $Id$ - -// constructor -ACE_INLINE -Marshal_SSI_Impl::Marshal_SSI_Impl (const char *obj_name) - : _skel_Marshal (obj_name) -{ -} - -// destructor -ACE_INLINE -Marshal_SSI_Impl::~Marshal_SSI_Impl (void) -{ -} - -// destructor -ACE_INLINE -Marshal_DSI_Impl::~Marshal_DSI_Impl (void) -{ - orb_ = 0;//CORBA::ORB::_nil (); -} - - diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.cpp b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.cpp deleted file mode 100644 index fea710364a6..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.cpp +++ /dev/null @@ -1,112 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Tao marshal benchmark -// -// = FILENAME -// tao_marshal_server.cpp -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "tao_marshal_server.h" -#include -#include - -#if !defined (__ACE_INLINE__) -#include "tao_marshal_server.i" -#endif /* __ACE_INLINE__ */ - -int -Tao_Marshal_Server_Proxy::run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - char **argv; - int argc; - CORBA_Environment env; - CORBA_String str; // for the IOR string - fstream iorfile; // persistent storage for IOR - - // get the argument list to be passed on to the ORB_init method - argv = options.orb_init_args (argc); - - // get the orb. Pass any ORB_init arguments - this->orb_ = CORBA_ORB_init (argc, (char *const *)argv, "IOR", env); - if (this->orb_ == 0) - { - ACE_DEBUG ((LM_DEBUG, "ORB_init failed\n")); - return -1; - } - - // get the argument list to be passed on to the BOA_init method - argv = options.boa_init_args (argc); - - char *foo [] = {"-OAhost","mambo"}; argc = 2; - // get the orb. Pass any ORB_init arguments - this->boa_ = this->orb_->BOA_init (argc, foo, "ROA");//(argc, (char *const *)argv); - if (this->boa_ == 0) - { - ACE_DEBUG ((LM_DEBUG, "ORB_init failed\n")); - return -1; - } - - // tell the "results" object what file it must store the results into - results.filename (options.filename ()); - - // use SII or DII accordingly - switch (options.policy ()) - { - case CORBA_Marshal_Options::STATIC : // use SSI - this->ssi_ = new Marshal_SSI_Impl (options.object_name ()); - // register with the BOA - // this->boa_->obj_is_ready (this->ssi_); - - // get a stringified representation of the object reference created above - str = this->orb_->object_to_string (this->dsi_, env); - if (env.exception() != 0) - { - // print_exception (env.exception(), "object_to_string", stdout); - return 1; - } - - // save the IOR in persistent storage so that clients can read this and obtain - // object references. We need to do this since we do not yet have some kind - // of a naming service that will allow clients to "bind" to desired objects - iorfile.open ("./ior.txt", ios::out); - iorfile << ((char *)str) << endl; - iorfile.close (); - break; - case CORBA_Marshal_Options::DYNAMIC : // use DSI - this->dsi_ = new Marshal_DSI_Impl (this->orb_, ACE_OS::strdup (options.object_name ())); - // register with the BOA - // this->boa_->obj_is_ready (this->dsi_); - - // get a stringified representation of the object reference created above - str = this->orb_->object_to_string (this->dsi_, env); - if (env.exception() != 0) - { - ACE_DEBUG ((LM_ERROR, "cannot get IOR from DSI object" )); - // print_exception (env.exception(), "object_to_string", stdout); - return 1; - } - - // save the IOR in persistent storage so that clients can read this and obtain - // object references. We need to do this since we do not yet have some kind - // of a naming service that will allow clients to "bind" to desired objects - iorfile.open ("./ior.txt", ios::out); - iorfile << ((char *)str) << endl; - iorfile.close (); - break; - default: - ACE_DEBUG ((LM_DEBUG, "bad policy\n")); - return -1; - } - - ACE_Reactor::run_event_loop (); // should be replaced by impl_is_ready - return 0; -} - diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.h b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.h deleted file mode 100644 index 8bd965301ff..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.h +++ /dev/null @@ -1,59 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Marshal Tao Benchmark -// -// = FILENAME -// tao_marshal_server.h -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined(_TAO_MARSHAL_SERVER_H_) -#define _TAO_MARSHAL_SERVER_H_ - -// benchmark library includes -#include "benchmark/marshal_options.h" -#include "benchmark/marshal_results.h" -#include "benchmark/marshal_proxy.h" - -// implementation classes -#include "tao_marshal_impl.h" - -// include Tao specific include files -#include "marshalS.h" // generated by IDL compiler - -class Tao_Marshal_Server_Proxy : public CORBA_Marshal_Proxy -{ -public: - Tao_Marshal_Server_Proxy (void); - // constructor - - ~Tao_Marshal_Server_Proxy (void); - // destructor - - virtual int run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // do the actual work -private: - CORBA_ORB_ptr orb_; - // underlying orb; - - CORBA_BOA_ptr boa_; - // underlying boa; - - Marshal_SSI_Impl *ssi_; - Marshal_DSI_Impl *dsi_; - // the implementation (SSI or DSI) -}; - - -#if defined (__ACE_INLINE__) -#include "tao_marshal_server.i" -#endif /* __ACE_INLINE__ */ - -#endif diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.i b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.i deleted file mode 100644 index 446b96cf468..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.i +++ /dev/null @@ -1,28 +0,0 @@ -// $Id$ - -// constructor -ACE_INLINE -Tao_Marshal_Server_Proxy::Tao_Marshal_Server_Proxy (void) - : orb_ (0), - boa_ (0), - ssi_ (0), - dsi_ (0) -{ -} - -// destructor -ACE_INLINE -Tao_Marshal_Server_Proxy::~Tao_Marshal_Server_Proxy (void) -{ - // releasing order is important - - // release the impl - delete ssi_; - delete dsi_; - - // release the BOA - CORBA_release (boa_); - - // release the ORB - CORBA_release (orb_); -} diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/Makefile b/TAO/Benchmark/Marshal_Test/VisiBroker/Makefile deleted file mode 100644 index 93cfc461a32..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Top-level Makefile for the VisiBroker Marshal Benchmark -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -LDLIBS = -lACE -lbenchmark -lorb - -PROG_SRCS = marshalC.cpp marshalS.cpp visi_marshal_client.cpp visi_marshal_server.cpp \ - visi_marshal_impl.cpp client.cpp server.cpp - -LSRC = $(PROG_SRCS) - -MARSHAL_CLIENT_OBJS = marshalC.o visi_marshal_client.o client.o - -MARSHAL_SERVER_OBJS = marshalC.o marshalS.o visi_marshal_impl.o visi_marshal_server.o server.o - -BIN = client server - -BUILD = $(BIN) - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -#include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU -# include VisiBroker specific file -include /project/mambo/gokhale/CONFIG/orbeline_defaults.mk - -#---------------------------------------------------------------------------- -# Local modifications to variables imported by includes above. -#---------------------------------------------------------------------------- - -ifndef TAO_ROOT -TAO_ROOT = $(ACE_ROOT)/TAO -endif - -CPPFLAGS += -I$(TAO_ROOT) -I$(TAO_ROOT)/Benchmark -D_PMC_INCLUDE_DSI - -server: $(addprefix $(VDIR),$(MARSHAL_SERVER_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -client: $(addprefix $(VDIR),$(MARSHAL_CLIENT_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -marshalC.h marshalS.h marshalC.cpp marshalS.cpp: marshal.idl - $(IDL) $(IDLFLAGS) $< - -clean: - rm -f core *.o *~ client server *C.cpp *S.cpp *S.h *C.h - $(MAKE) realclean - diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/client.cpp b/TAO/Benchmark/Marshal_Test/VisiBroker/client.cpp deleted file mode 100644 index 76218a98e84..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/client.cpp +++ /dev/null @@ -1,14 +0,0 @@ -// $Id$ - -#include "benchmark/driver.h" -#include "visi_marshal_client.h" - -int main (int argc, char *argv []) -{ - // instantiate a DRIVER with the Visi_Client_Proxy as the template - CORBA_Benchmark_Driver driver (new - Visi_Marshal_Client_Proxy ()); - - // let the driver do everything for us so that we remain very simple - return driver.run (argc, argv); -} diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/marshal.idl b/TAO/Benchmark/Marshal_Test/VisiBroker/marshal.idl deleted file mode 100644 index 077a98e58fd..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/marshal.idl +++ /dev/null @@ -1,91 +0,0 @@ -// $Id$ - -// Interface for the marshal benchmark - -interface Marshal -{ - struct Marshal_Struct - { - short s; - long l; - char c; - octet o; - double d; - }; - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th, e_6th}; - - union Marshal_Union - switch (discrim) - { - case e_0th: - short s; - case e_1st: - long l; - case e_2nd: - char c; - case e_3rd: - octet o; - case e_4th: - double d; - case e_5th: - default: // this will test typecode indirection - Marshal_Struct ms; - }; - - /* - typedef sequence ShortSeq; - typedef sequence LongSeq; - typedef sequence OctetSeq; - typedef sequence CharSeq; - typedef sequence DoubleSeq; - typedef sequence StructSeq; - typedef sequence UnionSeq; - */ - // for testing sequences of Any - typedef sequence AnySeq; - - // testing recursive behavior - // complex. - struct Marshal_Recursive - { - // we use this to test the limited recursion allowed by IDL. This is an - // ideal test for indirected typecodes. - - // simulate a behavior of a list node - any value; - sequence next; - }; - - void test_short (in short s1, out short s2); // test a short - void test_long (in long l1, out long l2); // test a long - void test_octet (in octet o1, out octet o2); // test an octet - void test_char (in char c1, out char c2); // test a char - void test_double (in double d1, out double d2); // test a double - void test_struct (in Marshal_Struct ms1, out Marshal_Struct ms2); // test a - // struct - void test_union (in Marshal_Union u1, out Marshal_Union u2); // test a - // union. - void test_any (in any a1, out any a2); // test an Any - /* - void test_sequence (in ShortSeq ss1, in LongSeq ls1, in OctetSeq os1, in - CharSeq cs1, in DoubleSeq ds1, in StructSeq Ss1, in - UnionSeq us1, in AnySeq as1, - out ShortSeq ss2, out LongSeq ls2, out OctetSeq os2, out - CharSeq cs2, out DoubleSeq ds2, out StructSeq Ss2, out - UnionSeq us2, out AnySeq as2); - */ - void test_sequence (in AnySeq as1, out AnySeq as2); // this will result in a - // 3 level indirection - - // sequence, any, and its - // value type - void test_recursive (in Marshal_Recursive mr1, out Marshal_Recursive mr2); // - // very complicated -}; - - - - - - - diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/run_client b/TAO/Benchmark/Marshal_Test/VisiBroker/run_client deleted file mode 100755 index 2a35700495f..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/run_client +++ /dev/null @@ -1,23 +0,0 @@ -echo "********* Static Invocation Interface **********" -client -i 1 -h mambo -R s -P S -o marshal -T s -client -i 1 -h mambo -R s -P S -o marshal -T l -client -i 1 -h mambo -R s -P S -o marshal -T o -client -i 1 -h mambo -R s -P S -o marshal -T c -client -i 1 -h mambo -R s -P S -o marshal -T d -client -i 1 -h mambo -R s -P S -o marshal -T S -client -i 1 -h mambo -R s -P S -o marshal -T U -client -i 1 -h mambo -R s -P S -o marshal -T A -client -i 1 -h mambo -R s -P S -o marshal -T Q -#client -i 1 -h mambo -R s -P S -o marshal -T R -# -echo "********* Dynamic Invocation Interface **********" -client -i 1 -h mambo -R s -P D -o marshal -T s -client -i 1 -h mambo -R s -P D -o marshal -T l -client -i 1 -h mambo -R s -P D -o marshal -T o -client -i 1 -h mambo -R s -P D -o marshal -T c -client -i 1 -h mambo -R s -P D -o marshal -T d -client -i 1 -h mambo -R s -P D -o marshal -T S -client -i 1 -h mambo -R s -P D -o marshal -T U -client -i 1 -h mambo -R s -P D -o marshal -T A -client -i 1 -h mambo -R s -P D -o marshal -T Q - diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/run_server b/TAO/Benchmark/Marshal_Test/VisiBroker/run_server deleted file mode 100755 index c5ff4cdc2f0..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/run_server +++ /dev/null @@ -1 +0,0 @@ -server -R r -P S -I V -o marshal \ No newline at end of file diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/server.cpp b/TAO/Benchmark/Marshal_Test/VisiBroker/server.cpp deleted file mode 100644 index c77676fefc3..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/server.cpp +++ /dev/null @@ -1,14 +0,0 @@ -// $Id$ - -#include "benchmark/driver.h" -#include "visi_marshal_server.h" - -int main (int argc, char *argv []) -{ - // instantiate a DRIVER with the Visi_Client_Proxy as the template - CORBA_Benchmark_Driver driver (new - Visi_Marshal_Server_Proxy ()); - - // let the driver do everything for us so that we remain very simple - return driver.run (argc, argv); -} diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.cpp b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.cpp deleted file mode 100644 index 2b185405543..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.cpp +++ /dev/null @@ -1,1346 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Visibroker marshal benchmark -// -// = FILENAME -// visi_marshal_proxy.cpp -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "visi_marshal_client.h" - -#if !defined (__ACE_INLINE__) -#include "visi_marshal_client.i" -#endif /* __ACE_INLINE__ */ - -int -Visi_Marshal_Client_Proxy::run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - char **argv; - int argc; - CORBA::Object_ptr target; - - // get the argument list to be passed on to the ORB_init method - argv = options.orb_init_args (argc); - - // get the orb. Pass any ORB_init arguments - this->orb_ = CORBA::ORB_init (argc, (char *const *)argv); - if (this->orb_ == 0) - { - ACE_DEBUG ((LM_DEBUG, "ORB_init failed\n")); - return -1; - } - - // get the obj ref by binding it to the specified host using the specified obj_name - target = Marshal::_bind (options.object_name (), options.hostname ()); - if (CORBA::is_nil (target)) - { - ACE_DEBUG ((LM_DEBUG, "bind call failed\n")); - return -1; - } - - this->ref_ = Marshal::_narrow (target); - if (CORBA::is_nil (this->ref_)) - { - ACE_DEBUG ((LM_DEBUG, "narrow to Marshal failed\n")); - return -1; - } - - // tell the "results" object what file it must store the results into - results.filename (options.filename ()); - - // use SII or DII accordingly - switch (options.policy ()) - { - case CORBA_Marshal_Options::STATIC : // use SII - return this->use_sii (options, results); - break; - case CORBA_Marshal_Options::DYNAMIC : // use DII - return this->use_dii (options, results); - break; - default: - ACE_DEBUG ((LM_DEBUG, "bad policy\n")); - return -1; - } - // hopefully we are never here, else something is seriously wrong - return -1; -} - -int -Visi_Marshal_Client_Proxy::use_sii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - int i; - int status = 0; - // This method tests the static invocation interface - - for (i=0; i < options.iterations () && !status; i++) - { - switch (options.data_type ()) - { - // shorts - case CORBA_Marshal_Options::SHORT: - status = sii_test_short (options, results); - break; - // longs - case CORBA_Marshal_Options::LONG: - status = sii_test_long (options, results); - break; - // octets - case CORBA_Marshal_Options::OCTET: - status = sii_test_octet (options, results); - break; - // chars - case CORBA_Marshal_Options::CHAR: - status = sii_test_char (options, results); - break; - // doubles - case CORBA_Marshal_Options::DOUBLE: - status = sii_test_double (options, results); - break; - // Structs - case CORBA_Marshal_Options::STRUCT: - status = sii_test_struct (options, results); - break; - // unions - case CORBA_Marshal_Options::UNION: - status = sii_test_union (options, results); - break; - // anys - case CORBA_Marshal_Options::ANY: - status = sii_test_any (options, results); - break; - // sequences - case CORBA_Marshal_Options::SEQUENCE: - status = sii_test_sequence (options, results); - break; - // longs - case CORBA_Marshal_Options::RECURSIVE: - // status = sii_test_recursive (options, results); - // doesn't work - break; - default: - status = -1; - } // end of switch - } // for loop - - if (!status) - return 0; - else - return -1; -} - -int -Visi_Marshal_Client_Proxy::use_dii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - int i; - int status = 0; - // This method tests the dynamic invocation interface - - for (i=0; i < options.iterations () && !status; i++) - { - switch (options.data_type ()) - { - // shorts - case CORBA_Marshal_Options::SHORT: - status = dii_test_short (options, results); - break; - // longs - case CORBA_Marshal_Options::LONG: - status = dii_test_long (options, results); - break; - // octets - case CORBA_Marshal_Options::OCTET: - status = dii_test_octet (options, results); - break; - // chars - case CORBA_Marshal_Options::CHAR: - status = dii_test_char (options, results); - break; - // doubles - case CORBA_Marshal_Options::DOUBLE: - status = dii_test_double (options, results); - break; - // Structs - case CORBA_Marshal_Options::STRUCT: - status = dii_test_struct (options, results); - break; - // unions - case CORBA_Marshal_Options::UNION: - status = dii_test_union (options, results); - break; - // anys - case CORBA_Marshal_Options::ANY: - status = dii_test_any (options, results); - break; - // sequences - case CORBA_Marshal_Options::SEQUENCE: - status = dii_test_sequence (options, results); - break; - // longs - case CORBA_Marshal_Options::RECURSIVE: - // status = dii_test_recursive (options, results); - // doesn't work - break; - default: - status = -1; - } // end of switch - } // for loop - - if (!status) - return 0; - else - return -1; -} - - -// all helper functions : SII -int -Visi_Marshal_Client_Proxy::sii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - CORBA::Short s1, s2; - s1 = 3; - ref_->test_short (s1, s2); - if (s1 == s2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_short success: s1 = %d, s2 = %d\n", s1, s2)); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_short failed: s1 = %d, s2 = %d\n", s1, s2)); - return -1; - } -} - -int -Visi_Marshal_Client_Proxy::sii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - CORBA::Long l1, l2; - l1 = 256; - ref_->test_long (l1, l2); - if (l1 == l2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_long success: l1 = %d, l2 = %d\n", l1, l2)); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_long failed: l1 = %d, l2 = %d\n", l1, l2)); - return -1; - } -} - -int -Visi_Marshal_Client_Proxy::sii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // octets -{ - CORBA::Octet o1, o2; - o1 = (CORBA::Octet) 127; - ref_->test_octet (o1, o2); - if (o1 == o2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_octet success: o1 = %c, o2 = %c\n", o1, o2)); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_octet failed: o1 = %c, o2 = %c\n", o1, o2)); - return -1; - } -} - -int -Visi_Marshal_Client_Proxy::sii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // chars -{ - CORBA::Char c1, c2; - c1 = 'B'; - ref_->test_char (c1, c2); - if (c1 == c2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_char success: c1 = %c, c2 = %c\n", c1, c2)); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_char failed: c1 = %c, c2 = %c\n", c1, c2)); - return -1; - } -} - -int -Visi_Marshal_Client_Proxy::sii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // doubles -{ - CORBA::Double d1, d2; - d1 = 3.1415; - ref_->test_double (d1, d2); - if (d1 == d2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_double success: d1 = %f, d2 = %f\n", d1, d2)); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_double failed: d1 = %f, d2 = %f\n", d1, d2)); - return -1; - } -} - -int -Visi_Marshal_Client_Proxy::sii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // structs -{ - Marshal::Marshal_Struct ms1, ms2; - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA::Octet) 127; - ms1.d = 3.1415; - - ref_->test_struct (ms1, ms2); - if (ms1.s == ms2.s && ms1.l == ms2.l && ms1.c == ms2.c && ms1.o == ms2.o && - ms1.d == ms2.d) - { - ACE_DEBUG ((LM_DEBUG, "SII test_struct success\n")); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_struct failed\n")); - return -1; - } -} - -int -Visi_Marshal_Client_Proxy::sii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // unions -{ - Marshal::Marshal_Union u1, u2; - Marshal::Marshal_Struct ms1, ms2; - - - // first test an enumerated case - u1._d (Marshal::e_1st); - u1.l (4567); - - ref_->test_union (u1, u2); - if ( (u1._d () == u2._d()) && (u1.l () == u2.l ())) - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for long (case e_1st) success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for long (case e_1st) failed\n")); - return -1; - } - - // now test the default case - u1._d (Marshal::e_6th); // this case doesn't exist which will lead to using - // the default case - - u1.ms ().s = 3; - u1.ms ().l = 256; - u1.ms ().c = 'B'; - u1.ms ().o = (CORBA::Octet) 127; - u1.ms ().d = 3.1415; - - ref_->test_union (u1, u2); - - if (u1.ms ().s == u2.ms ().s && u1.ms ().l == u2.ms ().l && u1.ms ().c == u2.ms ().c && u1.ms ().o == u2.ms ().o && - u1.ms ().d == u2.ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for default (case e_6th) success\n")); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for default (case e_6th) failed\n")); - return -1; - } -} - -int -Visi_Marshal_Client_Proxy::sii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // we send a struct thru the any - CORBA::Any a1, *a2; - Marshal::Marshal_Struct ms1, *ms2; - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA::Octet) 127; - ms1.d = 3.1415; - - // populate the any with a MarshalStruct - a1 <<= ms1; - - a2 = new CORBA::Any; - - // now test it - ref_->test_any (a1, a2); - - // check if the two typecodes are equal - if (a2->type ()->equal (Marshal::_tc_Marshal_Struct)) - { - // now see if the values are same - ms2 = (Marshal::Marshal_Struct *)a2->value (); - if (ms1.s == ms2->s && ms1.l == ms2->l && ms1.c == ms2->c && ms1.o == ms2->o && - ms1.d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "SII test_any success\n")); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_any value match failed\n")); - return -1; - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_any failed due to typecode mismatch\n")); - } - return 0; -} - -int -Visi_Marshal_Client_Proxy::sii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // make a sequence of Anys and fill each one with a different data type - Marshal::AnySeq as1 (7), *as2; - Marshal::Marshal_Struct ms; - Marshal::Marshal_Union u; - - ms.s = 3; - ms.l = 256; - ms.c = 'B'; - ms.o = (CORBA::Octet) 127; - ms.d = 3.1415; - - u._d (Marshal::e_5th); // somehow, the default case e_6th doesn't seem to - // work here - u.ms ().s = 3; - u.ms ().l = 256; - u.ms ().c = 'B'; - u.ms ().o = (CORBA::Octet) 127; - u.ms ().d = 3.1415; - - // it looks like we must tell the sequence how many elements it is going to - // carry. By just fixing the max value does not work. - - as1.length (7); - - as1[0] <<= (CORBA::Short)3; - as1[1] <<= (CORBA::Long) 256; - as1[2] <<= CORBA::Any::from_octet ((CORBA::Octet)127); - as1[3] <<= CORBA::Any::from_char ('B'); - as1[4] <<= (CORBA::Double)3.1415; // double - as1[5] <<= ms; // struct - as1[6] <<= u; // union - - as2 = new Marshal::AnySeq; - - ref_->test_sequence (as1, as2); - -#if 0 - // the following is extremely weird. I do not understand why it is not the - // same as _tc_Marshal_Union, but its _kind field does have _tk_union in it. - if ((*as2)[6].type ()->equal (Marshal::_tc_Marshal_Union)) - { - cerr << "6th elem has union typecode" << endl; - } - else - { - cerr << "6th elem doesnot have union typecode" << endl; - cerr << "its typecode kind = " << (*as2)[6].type ()->kind () << endl; - } -#endif - - ACE_DEBUG ((LM_DEBUG, "SII test_sequence\n")); - if (as1.length () == as2->length ()) - { - // now make sure that the elements are same - for (int i=0; i < as1.length (); i++) - { -#if 0 - if (as1[i].type ()->equal ((*as2)[i].type ())) - { -#endif - // now see if the values are same - switch (i) - { - case 0: - if (*(CORBA::Short *)as1[i].value () == *(CORBA::Short - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, shorts matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on shorts match\n")); - } - break; - case 1: - if (*(CORBA::Long *)as1[i].value () == *(CORBA::Long - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, longs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on longs match\n")); - } - break; - case 2: - if (*(CORBA::Octet *)as1[i].value () == *(CORBA::Octet - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, octets matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on octets match\n")); - } - break; - case 3: - if (*(CORBA::Char *)as1[i].value () == *(CORBA::Char - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, chars matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on chars match\n")); - } - break; - case 4: - if (*(CORBA::Double *)as1[i].value () == *(CORBA::Double - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, doubles matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on doubles match\n")); - } - break; - case 5: - { - Marshal::Marshal_Struct *ms1, *ms2; - - ms1 = (Marshal::Marshal_Struct *)as1[i].value (); - ms2 = (Marshal::Marshal_Struct *)(*as2)[i].value (); - - if (ms1->s == ms2->s && ms1->l == ms2->l && ms1->c == ms2->c && ms1->o == ms2->o && - ms1->d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, structs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on structs match\n")); - } - } - break; - case 6: - { - Marshal::Marshal_Union *u1, *u2; - - u1 = (Marshal::Marshal_Union *)as1[i].value (); - u2 = (Marshal::Marshal_Union *)(*as2)[i].value (); - - if (u1->_d () == u2->_d () && u1->ms ().s == u2->ms ().s && - u1->ms ().l == u2->ms ().l && - u1->ms ().c == u2->ms ().c && u1->ms ().o == u2->ms ().o && - u1->ms ().d == u2->ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, unions matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on unions match\n")); - } - } - break; - } -#if 0 - } - else - { - ACE_DEBUG ((LM_DEBUG, - "SII test_sequence: typecode mismatch for element %d\n", i)); - break; - } -#endif - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_sequence failed: as2->length = %d\n", - as2->length ())); - } - return 0; -} - -int -Visi_Marshal_Client_Proxy::sii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // we will try a simple one here - Marshal::Marshal_Recursive mr1, *elem1, *mr2, *elem2; - - mr1.value <<= (CORBA::Long)1; - mr1.next.length (1); // sequence of length 1 - - // fill the element - elem1 = &mr1.next[0]; - elem1->value <<= CORBA::Any::from_char ('D'); - elem1->next.length (0); // end of seq - - mr2 = new Marshal::Marshal_Recursive; - - try { - ref_->test_recursive (mr1, mr2); - } - catch (CORBA::SystemException &se){ - cerr << "error invoking request: " << se << endl; - } - - elem2 = &mr2->next[0]; - - if ((*(CORBA::Long *)mr1.value.value () == *(CORBA::Long*)mr2->value.value ()) - && (mr1.next.length () == mr2->next.length ()) // same length sequence - && (*(CORBA::Char *)elem1->value.value () == *(CORBA::Char *)elem2->value.value ()) - && (elem1->next.length () == elem2->next.length ())) - { - ACE_DEBUG ((LM_DEBUG, "SII test_recursive success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_recursive failure\n")); - } - - return 0; -} - -// ------------------------------------------------------- -// all helper functions : DII -// ------------------------------------------------------- - -int -Visi_Marshal_Client_Proxy::dii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - CORBA::Short s1, s2; - - s1 = 3; - s2 = 0; - - orb_->create_list(0, arglist); // 2 arguments to be added - *(arglist->add (CORBA::ARG_IN)->value ()) <<= s1; - // this usage is also correct. All we care is to supply a storage area for - // the OUT parameter - // arglist->add (CORBA::ARG_OUT)->value ()->replace (CORBA::_tc_short, &s2); - *(arglist->add (CORBA::ARG_OUT)->value ()) <<= s2; - orb_->create_list(1, result_list); // 1 result - result = result_list->item (0); - - // create a request - ref_->_create_request(ctx, - "test_short", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= s2; - - if (s1 == s2) - { - ACE_DEBUG ((LM_DEBUG, "DII test_short success: s1 = %d, s2 = %d\n", s1, s2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_short failed: s1 = %d, s2 = %d\n", s1, s2)); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Visi_Marshal_Client_Proxy::dii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - CORBA::Long l1, l2; - - l1 = 256; - - orb_->create_list(0, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= l1; - arglist->add(CORBA::ARG_OUT)->value()->replace (CORBA::_tc_long, &l2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_long", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= l2; - - if (l1 == l2) - { - ACE_DEBUG ((LM_DEBUG, "DII: test_long success: l1 = %d, l2 = %d\n", l1, l2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII: test_long failed: l1 = %d, l2 = %d\n", l1, l2)); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Visi_Marshal_Client_Proxy::dii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // octets -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - CORBA::Octet o1, o2; - - o1 = (CORBA::Octet) 127; - - orb_->create_list(0, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= CORBA::Any::from_octet (o1); - arglist->add(CORBA::ARG_OUT)->value()->replace (CORBA::_tc_octet, &o2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_octet", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= CORBA::Any::to_octet (o2); - - if (o1 == o2) - { - ACE_DEBUG ((LM_DEBUG, "DII test_octet success: o1 = %c, o2 = %c\n", o1, o2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_octet failed: o1 = %c, o2 = %c\n", o1, o2)); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Visi_Marshal_Client_Proxy::dii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // chars -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - CORBA::Char c1, c2; - - c1 = 'B'; - - orb_->create_list(0, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= CORBA::Any::from_char (c1); - arglist->add(CORBA::ARG_OUT)->value()->replace (CORBA::_tc_char, &c2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_char", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= CORBA::Any::to_char (c2); - - if (c1 == c2) - { - ACE_DEBUG ((LM_DEBUG, "DII test_char success: c1 = %c, c2 = %c\n", c1, c2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_char failed: c1 = %c, c2 = %c\n", c1, c2)); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Visi_Marshal_Client_Proxy::dii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // doubles -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - CORBA::Double d1, d2; - - d1 = 3.1415; - - orb_->create_list(0, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= d1; - arglist->add(CORBA::ARG_OUT)->value()->replace (CORBA::_tc_double, &d2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_double", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= d2; - - if (d1 == d2) - { - ACE_DEBUG ((LM_DEBUG, "DII test_double success: d1 = %f, d2 = %f\n", d1, d2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_double failed: d1 = %f, d2 = %f\n", d1, d2)); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Visi_Marshal_Client_Proxy::dii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // structs -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - Marshal::Marshal_Struct ms1, ms2; - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA::Octet) 127; - ms1.d = 3.1415; - - orb_->create_list(0, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= ms1; - arglist->add(CORBA::ARG_OUT)->value()->replace (Marshal::_tc_Marshal_Struct, &ms2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_struct", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= ms2; - - if (ms1.s == ms2.s && ms1.l == ms2.l && ms1.c == ms2.c && ms1.o == ms2.o && - ms1.d == ms2.d) - { - ACE_DEBUG ((LM_DEBUG, "DII test_struct success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_struct failed\n")); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Visi_Marshal_Client_Proxy::dii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // unions -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - Marshal::Marshal_Union u1, u2; - Marshal::Marshal_Struct ms1, ms2; - - - // first test an enumerated case - u1._d (Marshal::e_1st); - u1.l (4567); - - orb_->create_list(0, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= u1; - arglist->add(CORBA::ARG_OUT)->value()->replace (Marshal::_tc_Marshal_Union, &u2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_union", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= u2; - - if ( (u1._d () == u2._d()) && (u1.l () == u2.l ())) - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for long (case e_1st) success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for long (case e_1st) failed\n")); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - - // now test the default case - u1._d (Marshal::e_5th); // e_6th doesn't work - - u1.ms ().s = 3; - u1.ms ().l = 256; - u1.ms ().c = 'B'; - u1.ms ().o = (CORBA::Octet) 127; - u1.ms ().d = 3.1415; - - - orb_->create_list(0, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= u1; - arglist->add(CORBA::ARG_OUT)->value()->replace (Marshal::_tc_Marshal_Union, &u2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_union", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= u2; - - if (u1.ms ().s == u2.ms ().s && u1.ms ().l == u2.ms ().l && u1.ms ().c == u2.ms ().c && u1.ms ().o == u2.ms ().o && - u1.ms ().d == u2.ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for default (case e_6th) success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for default (case e_6th) failed\n")); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Visi_Marshal_Client_Proxy::dii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - // we send a struct thru the any - CORBA::Any a1, *a2; - Marshal::Marshal_Struct ms1, *ms2; - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA::Octet) 127; - ms1.d = 3.1415; - - // populate the any with a MarshalStruct - a1 <<= ms1; - - a2 = new CORBA::Any; - - // now test it - orb_->create_list(0, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= a1; - arglist->add(CORBA::ARG_OUT)->value()->replace (CORBA::_tc_any, a2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_any", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= (*a2); - - // check if the two typecodes are equal - if (a2->type ()->equal (Marshal::_tc_Marshal_Struct)) - { - // now see if the values are same - ms2 = (Marshal::Marshal_Struct *)a2->value (); - if (ms1.s == ms2->s && ms1.l == ms2->l && ms1.c == ms2->c && ms1.o == ms2->o && - ms1.d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "DII test_any success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_any value match failed\n")); - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_any failed due to typecode mismatch\n")); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Visi_Marshal_Client_Proxy::dii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - // make a sequence of Anys and fill each one with a different data type - Marshal::AnySeq as1 (7), *as2; - Marshal::Marshal_Struct ms; - Marshal::Marshal_Union u; - - ms.s = 3; - ms.l = 256; - ms.c = 'B'; - ms.o = (CORBA::Octet) 127; - ms.d = 3.1415; - - u._d (Marshal::e_5th); // somehow, the default case e_6th doesn't seem to - // work here - u.ms ().s = 3; - u.ms ().l = 256; - u.ms ().c = 'B'; - u.ms ().o = (CORBA::Octet) 127; - u.ms ().d = 3.1415; - - // it looks like we must tell the sequence how many elements it is going to - // carry. By just fixing the max value does not work. - - as1.length (7); - - as1[0] <<= (CORBA::Short)3; - as1[1] <<= (CORBA::Long) 256; - as1[2] <<= CORBA::Any::from_octet ((CORBA::Octet)127); - as1[3] <<= CORBA::Any::from_char ('B'); - as1[4] <<= (CORBA::Double)3.1415; // double - as1[5] <<= ms; // struct - as1[6] <<= u; // union - - as2 = new Marshal::AnySeq; - - orb_->create_list(0, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= as1; - arglist->add(CORBA::ARG_OUT)->value()->replace (Marshal::_tc_AnySeq, as2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_sequence", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= (*as2); - -#if 0 - // the following is extremely weird. I do not understand why it is not the - // same as _tc_Marshal_Union, but its _kind field does have _tk_union in it. - if ((*as2)[6].type ()->equal (Marshal::_tc_Marshal_Union)) - { - cerr << "6th elem has union typecode" << endl; - } - else - { - cerr << "6th elem doesnot have union typecode" << endl; - cerr << "its typecode kind = " << (*as2)[6].type ()->kind () << endl; - } -#endif - - ACE_DEBUG ((LM_DEBUG, "DII test_sequence\n")); - if (as1.length () == as2->length ()) - { - // now make sure that the elements are same - for (int i=0; i < as1.length (); i++) - { -#if 0 - if (as1[i].type ()->equal ((*as2)[i].type ())) - { -#endif - // now see if the values are same - switch (i) - { - case 0: - if (*(CORBA::Short *)as1[i].value () == *(CORBA::Short - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, shorts matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on shorts match\n")); - } - break; - case 1: - if (*(CORBA::Long *)as1[i].value () == *(CORBA::Long - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, longs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on longs match\n")); - } - break; - case 2: - if (*(CORBA::Octet *)as1[i].value () == *(CORBA::Octet - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, octets matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on octets match\n")); - } - break; - case 3: - if (*(CORBA::Char *)as1[i].value () == *(CORBA::Char - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, chars matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on chars match\n")); - } - break; - case 4: - if (*(CORBA::Double *)as1[i].value () == *(CORBA::Double - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, doubles matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on doubles match\n")); - } - break; - case 5: - { - Marshal::Marshal_Struct *ms1, *ms2; - - ms1 = (Marshal::Marshal_Struct *)as1[i].value (); - ms2 = (Marshal::Marshal_Struct *)(*as2)[i].value (); - - if (ms1->s == ms2->s && ms1->l == ms2->l && ms1->c == ms2->c && ms1->o == ms2->o && - ms1->d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, structs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on structs match\n")); - } - } - break; - case 6: - { - Marshal::Marshal_Union *u1, *u2; - - u1 = (Marshal::Marshal_Union *)as1[i].value (); - u2 = (Marshal::Marshal_Union *)(*as2)[i].value (); - - if (u1->_d () == u2->_d () && u1->ms ().s == u2->ms ().s && - u1->ms ().l == u2->ms ().l && - u1->ms ().c == u2->ms ().c && u1->ms ().o == u2->ms ().o && - u1->ms ().d == u2->ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, unions matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on unions match\n")); - } - } - break; - } -#if 0 - } - else - { - ACE_DEBUG ((LM_DEBUG, - "DII test_sequence: typecode mismatch for element %d\n", i)); - break; - } -#endif - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_sequence failed: as2->length = %d\n", - as2->length ())); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Visi_Marshal_Client_Proxy::dii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // we will try a simple one here - Marshal::Marshal_Recursive mr1, *elem1, *mr2, *elem2; - - mr1.value <<= (CORBA::Long)1; - mr1.next.length (1); // sequence of length 1 - - // fill the element - elem1 = &mr1.next[0]; - elem1->value <<= CORBA::Any::from_char ('D'); - elem1->next.length (0); // end of seq - - mr2 = new Marshal::Marshal_Recursive; - - try { - ref_->test_recursive (mr1, mr2); - } - catch (CORBA::SystemException &se){ - cerr << "error invoking request: " << se << endl; - } - - elem2 = &mr2->next[0]; - - if ((*(CORBA::Long *)mr1.value.value () == *(CORBA::Long*)mr2->value.value ()) - && (mr1.next.length () == mr2->next.length ()) // same length sequence - && (*(CORBA::Char *)elem1->value.value () == *(CORBA::Char *)elem2->value.value ()) - && (elem1->next.length () == elem2->next.length ())) - { - ACE_DEBUG ((LM_DEBUG, "DII test_recursive success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_recursive failure\n")); - } - - return 0; -} - diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.h b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.h deleted file mode 100644 index def1c6189c2..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.h +++ /dev/null @@ -1,142 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Marshal Visibroker Benchmark -// -// = FILENAME -// visi_marshal_client.h -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined(_VISI_MARSHAL_CLIENT_H_) -#define _VISI_MARSHAL_CLIENT_H_ - -// benchmark library includes -#include "benchmark/marshal_options.h" -#include "benchmark/marshal_results.h" -#include "benchmark/marshal_proxy.h" - -// include VisiBroker specific include files -#include "marshalC.h" // generated by IDL compiler -#include "pmcext.h" // VisiBroker extensions - -#if 0 -// Define an event handler specific to this class -class marshal_event_handler: public PMC_EXT::ClientEventHandler -{ - // =TITLE - // marshal_event_handler - // =DESCRIPTION - // event handler. Specifically, we use this to set socket buffer and no delay - // flags -public: - void bind_succeeded(CORBA::Object_ptr obj, - const PMC_EXT::ConnectionInfo &); - // on success from a bind call, set the desired quantities -}; -#endif - -class Visi_Marshal_Client_Proxy : public CORBA_Marshal_Proxy -{ - // =TITLE - // Visi_Marshal_Client_Proxy - // =DESCRIPTION - // VisiBroker client size specialization of the CORBA Marshal proxy class -public: - Visi_Marshal_Client_Proxy (void); - // constructor - - ~Visi_Marshal_Client_Proxy (void); - // destructor - - virtual int run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // do the actual work - - virtual int use_sii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // use the static invocation interface - - virtual int use_dii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // use the dynamic invocation interface -private: - // =helper functions - int sii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - // all the DII helpers - int dii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - CORBA::ORB_ptr orb_; - // handle to the underlying orb - - Marshal_ptr ref_; - // the object reference -}; - -#if defined (__ACE_INLINE__) -#include "visi_marshal_client.i" -#endif /* __ACE_INLINE__ */ - -#endif diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.i b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.i deleted file mode 100644 index 30c73abb503..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.i +++ /dev/null @@ -1,23 +0,0 @@ -// $Id$ - - -ACE_INLINE -Visi_Marshal_Client_Proxy::Visi_Marshal_Client_Proxy (void) - : orb_ (CORBA_ORB::_nil ()), - ref_ (0) -{ -} - -ACE_INLINE -Visi_Marshal_Client_Proxy::~Visi_Marshal_Client_Proxy (void) -{ - // releasing order is important - - // release the reference - CORBA::release (ref_); - - // release the ORB - CORBA::release (orb_); -} - - diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.cpp b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.cpp deleted file mode 100644 index 29d8a82d289..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.cpp +++ /dev/null @@ -1,331 +0,0 @@ -// $Id$ - -#include "visi_marshal_impl.h" - -#if !defined (__ACE_INLINE__) -#include "visi_marshal_impl.i" -#endif /* __ACE_INLINE__ */ - -// All the methods of the SSI class -void -Marshal_SSI_Impl::test_short (CORBA::Short s1, - CORBA::Short &s2) -{ - s2 = s1; -} - -void -Marshal_SSI_Impl::test_long (CORBA::Long l1, - CORBA::Long &l2) -{ - l2 = l1; -} - -void -Marshal_SSI_Impl::test_octet (CORBA::Octet o1, - CORBA::Octet &o2) -{ - o2 = o1; -} - -void -Marshal_SSI_Impl::test_char (CORBA::Char c1, - CORBA::Char &c2) -{ - c2 = c1; -} - -void -Marshal_SSI_Impl::test_double (CORBA::Double d1, - CORBA::Double &d2) -{ - d2 = d1; -} - -void -Marshal_SSI_Impl::test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2) -{ - ms2.s = ms1.s; - ms2.l = ms1.l; - ms2.c = ms1.c; - ms2.o = ms1.o; - ms2.d = ms1.d; -} - -void -Marshal_SSI_Impl::test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2) -{ - u2._d (u1._d ()); // set the discriminant value - - switch (u1._d ()) - { - case Marshal::e_0th: - u2.s (u1.s ()); // set short - break; - case Marshal::e_1st: - u2.l (u1.l ()); // set long - break; - case Marshal::e_2nd: - u2.c (u1.c ()); // set char - break; - case Marshal::e_3rd: - u2.o (u1.o ()); // set octet - break; - case Marshal::e_4th: - u2.d (u1.d ()); // set double - break; - case Marshal::e_5th: - default: - u2.ms (u1. ms ()); // set structs - break; - } -} - -void -Marshal_SSI_Impl::test_any (const CORBA::Any &a1, - CORBA::Any *&a2) -{ - a2 = new CORBA::Any (a1.type (), (void *)a1.value ()); // will do a deep copy -} - -void -Marshal_SSI_Impl::test_sequence (const Marshal::AnySeq& as1, - Marshal::AnySeq *& as2) -{ - as2 = new Marshal::AnySeq (as1); -} - -void -Marshal_SSI_Impl::test_recursive (const Marshal::Marshal_Recursive &mr1, - Marshal::Marshal_Recursive *&mr2) -{ -} - -//---------------------------------------------------------------------------- -//the methods of the DSI implementation class - -void -Marshal_DSI_Impl::invoke (CORBA::ServerRequest_ptr req) -{ - // parse the incoming request and find out for what operation it is. We use a - // simple linear search here - if (!ACE_OS::strcmp (req->op_name (), "test_short")) - { - test_short_skel (req); - } - else if (!ACE_OS::strcmp (req->op_name (), "test_long")) - { - } - else if (!ACE_OS::strcmp (req->op_name (), "test_octet")) - { - } - else if (!ACE_OS::strcmp (req->op_name (), "test_char")) - { - } - else if (!ACE_OS::strcmp (req->op_name (), "test_double")) - { - } - else if (!ACE_OS::strcmp (req->op_name (), "test_struct")) - { - } - else if (!ACE_OS::strcmp (req->op_name (), "test_union")) - { - } - else if (!ACE_OS::strcmp (req->op_name (), "test_any")) - { - } - else if (!ACE_OS::strcmp (req->op_name (), "test_sequence")) - { - } -} - -void -Marshal_DSI_Impl::test_short (CORBA::Short s1, - CORBA::Short &s2) -{ - s2 = 5*s1; -} - -void -Marshal_DSI_Impl::test_long (CORBA::Long l1, - CORBA::Long &l2) -{ - l2 = l1; -} - -void -Marshal_DSI_Impl::test_octet (CORBA::Octet o1, - CORBA::Octet &o2) -{ - o2 = o1; -} - -void -Marshal_DSI_Impl::test_char (CORBA::Char c1, - CORBA::Char &c2) -{ - c2 = c1; -} - -void -Marshal_DSI_Impl::test_double (CORBA::Double d1, - CORBA::Double &d2) -{ - d2 = d1; -} - -void -Marshal_DSI_Impl::test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2) -{ - ms2.s = ms1.s; - ms2.l = ms1.l; - ms2.c = ms1.c; - ms2.o = ms1.o; - ms2.d = ms1.d; -} - -void -Marshal_DSI_Impl::test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2) -{ - u2._d (u1._d ()); // set the discriminant value - - switch (u1._d ()) - { - case Marshal::e_0th: - u2.s (u1.s ()); // set short - break; - case Marshal::e_1st: - u2.l (u1.l ()); // set long - break; - case Marshal::e_2nd: - u2.c (u1.c ()); // set char - break; - case Marshal::e_3rd: - u2.o (u1.o ()); // set octet - break; - case Marshal::e_4th: - u2.d (u1.d ()); // set double - break; - case Marshal::e_5th: - default: - u2.ms (u1. ms ()); // set structs - break; - } -} - -void -Marshal_DSI_Impl::test_any (const CORBA::Any &a1, - CORBA::Any *&a2) -{ - a2 = new CORBA::Any (a1.type (), (void *)a1.value ()); // will do a deep copy -} - -void -Marshal_DSI_Impl::test_sequence (const Marshal::AnySeq& as1, - Marshal::AnySeq *& as2) -{ - as2 = new Marshal::AnySeq (as1); -} - -void -Marshal_DSI_Impl::test_recursive (const Marshal::Marshal_Recursive &mr1, - Marshal::Marshal_Recursive *&mr2) -{ -} - -// all the helper functions for the DSI class -void -Marshal_DSI_Impl::test_short_skel (CORBA::ServerRequest_ptr req) -{ - CORBA::NVList_var short_nv_; - CORBA::Any *any_s1, *any_s2; - CORBA::Short s1=0, - *s2=0; - - orb_->create_list (0, short_nv_); - - ACE_DEBUG ((LM_DEBUG, "short_nv_ created with %d nodes\n", short_nv_->count ())); - - any_s1 = new CORBA::Any (CORBA::_tc_short, &s1, 0); - s2 = new CORBA::Short; - any_s2 = new CORBA::Any (CORBA::_tc_short, s2, 1); - - short_nv_->add_value ("s1", *any_s1, CORBA::ARG_IN); - // if I do the next line, I get CORBA::Marshal exception from - // req->params. I don't know why - short_nv_->add_value ("s2", *any_s2, CORBA::ARG_OUT); - // However, the following line works. I think I know what is the - // problem. Since the 2nd argument is a ARG_OUT, we cannot add_value. We must - // just tell it what type to expect and leave it to the ORB to allocate the - // memory - //short_nv_->add_item ("s2", CORBA::ARG_OUT); - // My explanation is confirmed if I use the following in which case I get a - // marshaling exception. Thus, for OUT args, only add_item works. - // *(short_nv_->add (CORBA::ARG_OUT)->value ()) <<= s2; - - ACE_DEBUG ((LM_DEBUG, "short_nv_ created with %d nodes\n", short_nv_->count ())); - - try { - req->params (short_nv_); - } - catch (CORBA::SystemException &se) - { - cerr << "System Exception doing params: " << se << endl; - } - cout << "after params" << endl; - *(short_nv_->item (0)->value ()) >>= s1; - ACE_DEBUG ((LM_DEBUG, "s1 = %d\n", s1)); - test_short (s1, *s2); - // *(short_nv_->item (1)->value ()) <<= s2; - ACE_DEBUG ((LM_DEBUG, "s1 = %d, s2 = %d\n", s1, *s2)); - ACE_DEBUG ((LM_DEBUG, "short_nv_ after the call has %d nodes\n", short_nv_->count ())); -} - -void -Marshal_DSI_Impl::test_long_skel (CORBA::ServerRequest_ptr req) -{ -} - -void -Marshal_DSI_Impl::test_octet_skel (CORBA::ServerRequest_ptr req) -{ -} - -void -Marshal_DSI_Impl::test_char_skel (CORBA::ServerRequest_ptr req) -{ -} - -void -Marshal_DSI_Impl::test_double_skel (CORBA::ServerRequest_ptr req) -{ -} - -void -Marshal_DSI_Impl::test_struct_skel (CORBA::ServerRequest_ptr req) -{ -} - -void -Marshal_DSI_Impl::test_union_skel (CORBA::ServerRequest_ptr req) -{ -} - -void -Marshal_DSI_Impl::test_any_skel (CORBA::ServerRequest_ptr req) -{ -} - -void -Marshal_DSI_Impl::test_sequence_skel (CORBA::ServerRequest_ptr req) -{ -} - -void -Marshal_DSI_Impl::test_recursive_skel (CORBA::ServerRequest_ptr req) -{ -} diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.h b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.h deleted file mode 100644 index ec3b0ee0ef2..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.h +++ /dev/null @@ -1,179 +0,0 @@ -// $Id$ - -#if !defined (VISI_MARSHAL_IMPL_H) -#define VISI_MARSHAL_IMPL_H - -// to include DSI related files - -#include "ace/OS.h" - -#include "marshalS.h" - - -class Marshal_SSI_Impl - : public virtual _sk_Marshal -{ - // =TITLE - // Marshal_SSI_Impl - // =DESCRIPTION - // Implementation of the interface using the static skeleton interface -public: - Marshal_SSI_Impl (const char *object_name = (const char *)NULL); - // constructor - - ~Marshal_SSI_Impl (void); - // destructor - - virtual void test_short (CORBA::Short s1, - CORBA::Short& s2); - // test short - - virtual void test_long (CORBA::Long l1, - CORBA::Long& l2); - // test long - - virtual void test_octet (CORBA::Octet o1, - CORBA::Octet& o2); - // test octet - - virtual void test_char (CORBA::Char c1, - CORBA::Char& c2); - // test char - - virtual void test_double (CORBA::Double d1, - CORBA::Double& d2); - // test double - - virtual void test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2); - // test struct - - virtual void test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2); - // test union - - virtual void test_any (const CORBA::Any& a1, - CORBA::Any *& a2); - // test any - - /* - virtual void test_sequence (const Marshal::ShortSeq& s1, - const Marshal::LongSeq& l1, - const Marshal::OctetSeq& o1, - const Marshal::CharSeq& c1, - const Marshal::DoubleSeq& d1, - const Marshal::StructSeq& S1, - const Marshal::UnionSeq& U1, - const Marshal::AnySeq& a1, - Marshal::ShortSeq *& s2, - Marshal::LongSeq *& l2, - Marshal::OctetSeq *& o2, - Marshal::CharSeq *& c2, - Marshal::DoubleSeq *& d2, - Marshal::StructSeq *& S2, - Marshal::UnionSeq *& U2, - Marshal::AnySeq *& a2); - */ - virtual void test_sequence (const Marshal::AnySeq& a1, - Marshal::AnySeq *& a2); - // test sequence - - virtual void test_recursive (const Marshal::Marshal_Recursive& mr1, - Marshal::Marshal_Recursive *& mr2); - // test struct - -}; - -class Marshal_DSI_Impl : public CORBA::DynamicImplementation -{ - // =TITLE - // Marshal_DSI_Impl - // =DESCRIPTION - // Implementation of the interface using the dynamic skeleton interface -public: - Marshal_DSI_Impl (CORBA::ORB_ptr orb, const char *object_name = (const char *)NULL); - // constructor - - ~Marshal_DSI_Impl (void); - // destructor - - virtual void invoke (CORBA::ServerRequest_ptr req); - // This method is a must - -private: - void test_short (CORBA::Short s1, - CORBA::Short& s2); - // test short - - void test_long (CORBA::Long l1, - CORBA::Long& l2); - // test long - - void test_octet (CORBA::Octet o1, - CORBA::Octet& o2); - // test octet - - void test_char (CORBA::Char c1, - CORBA::Char& c2); - // test char - - void test_double (CORBA::Double d1, - CORBA::Double& d2); - // test double - - void test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2); - // test struct - - void test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2); - // test union - - void test_any (const CORBA::Any& a1, - CORBA::Any *& a2); - // test any - - void test_sequence (const Marshal::AnySeq& a1, - Marshal::AnySeq *& a2); - // test sequence - - void test_recursive (const Marshal::Marshal_Recursive& mr1, - Marshal::Marshal_Recursive *& mr2); - // test struct - -private: - //= helper functions - they behave as if they were skeletons - void test_short_skel (CORBA::ServerRequest_ptr req); - void test_long_skel (CORBA::ServerRequest_ptr req); - void test_octet_skel (CORBA::ServerRequest_ptr req); - void test_char_skel (CORBA::ServerRequest_ptr req); - void test_double_skel (CORBA::ServerRequest_ptr req); - void test_struct_skel (CORBA::ServerRequest_ptr req); - void test_union_skel (CORBA::ServerRequest_ptr req); - void test_any_skel (CORBA::ServerRequest_ptr req); - void test_sequence_skel (CORBA::ServerRequest_ptr req); - void test_recursive_skel (CORBA::ServerRequest_ptr req); - - // we need the orb to create argument lists (NVList) for us - CORBA::ORB_ptr orb_; // not owned by us - -#if 0 - CORBA::NVList_ptr short_nv_; - CORBA::NVList_ptr long_nv_; - CORBA::NVList_ptr octet_nv_; - CORBA::NVList_ptr char_nv_; - CORBA::NVList_ptr double_nv_; - CORBA::NVList_ptr struct_nv_; - CORBA::NVList_ptr union_nv_; - CORBA::NVList_ptr any_nv_; - CORBA::NVList_ptr seq_nv_; - CORBA::NVList_ptr recursive_nv_; - CORBA::Any_ptr result_; // void result -#endif -}; - -#if defined (__ACE_INLINE__) -#include "visi_marshal_impl.i" -#endif /* __ACE_INLINE__ */ - -#endif // defined (VISI_MARSHAL_IMPL_H) diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.i b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.i deleted file mode 100644 index 7e9405f734b..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.i +++ /dev/null @@ -1,30 +0,0 @@ -// $Id$ - -// constructor -ACE_INLINE -Marshal_SSI_Impl::Marshal_SSI_Impl (const char *obj_name) - : _sk_Marshal (obj_name) -{ -} - -// destructor -ACE_INLINE -Marshal_SSI_Impl::~Marshal_SSI_Impl (void) -{ -} - -// constructor -ACE_INLINE -Marshal_DSI_Impl::Marshal_DSI_Impl (CORBA::ORB_ptr orb, const char *obj_name) - : orb_ (orb), - CORBA::DynamicImplementation ("Marshal", obj_name) // interface name is necessary -{ -} - -// destructor -ACE_INLINE -Marshal_DSI_Impl::~Marshal_DSI_Impl (void) -{ - orb_ = CORBA::ORB::_nil (); -} - diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.cpp b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.cpp deleted file mode 100644 index 334c80f30cd..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.cpp +++ /dev/null @@ -1,88 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Visibroker marshal benchmark -// -// = FILENAME -// visi_marshal_server.cpp -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "visi_marshal_server.h" - -#if !defined (__ACE_INLINE__) -#include "visi_marshal_server.i" -#endif /* __ACE_INLINE__ */ - -int -Visi_Marshal_Server_Proxy::run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - char **argv; - int argc; - - // get the argument list to be passed on to the ORB_init method - argv = options.orb_init_args (argc); - - // get the orb. Pass any ORB_init arguments - this->orb_ = CORBA::ORB_init (argc, (char *const *)argv); - if (this->orb_ == 0) - { - ACE_DEBUG ((LM_DEBUG, "ORB_init failed\n")); - return -1; - } - - // get the argument list to be passed on to the BOA_init method - argv = options.orb_init_args (argc); - - // get the orb. Pass any ORB_init arguments - this->boa_ = this->orb_->BOA_init (argc, (char *const *)argv); - if (this->boa_ == 0) - { - ACE_DEBUG ((LM_DEBUG, "ORB_init failed\n")); - return -1; - } - - // tell the "results" object what file it must store the results into - results.filename (options.filename ()); - - // use SII or DII accordingly - switch (options.policy ()) - { - case CORBA_Marshal_Options::STATIC : // use SSI - this->ssi_ = new Marshal_SSI_Impl (options.object_name ()); - // register with the BOA - this->boa_->obj_is_ready (this->ssi_); - break; - case CORBA_Marshal_Options::DYNAMIC : // use DSI - this->dsi_ = new Marshal_DSI_Impl (this->orb_, ACE_OS::strdup (options.object_name ())); - // register with the BOA - try { - this->boa_->obj_is_ready (this->dsi_); - } - catch (CORBA::SystemException &se) - { - cerr << "system exception in obj_is_ready" << se << endl; - } - break; - default: - ACE_DEBUG ((LM_DEBUG, "bad policy\n")); - return -1; - } - - try { - // call impl_is_ready - this->boa_->impl_is_ready (); - } - catch (CORBA::SystemException &se) - { - cerr << "system exception: " << se << endl; - } - return 0; -} - diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.h b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.h deleted file mode 100644 index 36076c8fe90..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.h +++ /dev/null @@ -1,60 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Marshal Visibroker Benchmark -// -// = FILENAME -// visi_marshal_server.h -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined(_VISI_MARSHAL_SERVER_H_) -#define _VISI_MARSHAL_SERVER_H_ - -// benchmark library includes -#include "benchmark/marshal_options.h" -#include "benchmark/marshal_results.h" -#include "benchmark/marshal_proxy.h" - -// implementation classes -#include "visi_marshal_impl.h" - -// include VisiBroker specific include files -#include "marshalS.h" // generated by IDL compiler -#include "pmcext.h" // VisiBroker extensions - -class Visi_Marshal_Server_Proxy : public CORBA_Marshal_Proxy -{ -public: - Visi_Marshal_Server_Proxy (void); - // constructor - - ~Visi_Marshal_Server_Proxy (void); - // destructor - - virtual int run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // do the actual work -private: - CORBA::ORB_ptr orb_; - // underlying orb; - - CORBA::BOA_ptr boa_; - // underlying boa; - - Marshal_SSI_Impl *ssi_; - Marshal_DSI_Impl *dsi_; - // the implementation (SSI or DSI) -}; - - -#if defined (__ACE_INLINE__) -#include "visi_marshal_server.i" -#endif /* __ACE_INLINE__ */ - -#endif diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.i b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.i deleted file mode 100644 index d43226e0f57..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.i +++ /dev/null @@ -1,28 +0,0 @@ -// $Id$ - -// constructor -ACE_INLINE -Visi_Marshal_Server_Proxy::Visi_Marshal_Server_Proxy (void) - : orb_ (0), - boa_ (0), - ssi_ (0), - dsi_ (0) -{ -} - -// destructor -ACE_INLINE -Visi_Marshal_Server_Proxy::~Visi_Marshal_Server_Proxy (void) -{ - // releasing order is important - - // release the impl - delete ssi_; - delete dsi_; - - // release the BOA - CORBA::release (boa_); - - // release the ORB - CORBA::release (orb_); -} diff --git a/TAO/Benchmark/benchmark/Makefile b/TAO/Benchmark/benchmark/Makefile deleted file mode 100644 index 9f5327741bf..00000000000 --- a/TAO/Benchmark/benchmark/Makefile +++ /dev/null @@ -1,125 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Top-level Makefile for the CORBA_Benchmark -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -LIBNAME = libbenchmark -LIB = $(LIBNAME).a -SHLIB = $(LIBNAME).$(SOEXT) - -FILES = driver \ - marshal_options \ - marshal_results \ - marshal_proxy - -LSRC = $(addsuffix .cpp,$(FILES)) - -LDLIBS = -lACE -LIBS = -lACE -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -BUILD = $(VSHLIB) $(VLIB) - -ifndef TAO_ROOT -TAO_ROOT = $(ACE_ROOT)/TAO -endif - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -#include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Local modifications to variables imported by includes above. -#---------------------------------------------------------------------------- - -CPPFLAGS += -I$(TAO_ROOT)/Benchmark/ - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/driver.o .shobj/driver.so: driver.cpp \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/driver.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i -.obj/marshal_options.o .shobj/marshal_options.so: marshal_options.cpp \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/marshal_options.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/marshal_options.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i -.obj/marshal_results.o .shobj/marshal_results.so: marshal_results.cpp \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/marshal_results.h \ - $(ACE_ROOT)/ace/Profile_Timer.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/High_Res_Timer.h \ - $(ACE_ROOT)/ace/High_Res_Timer.i \ - $(ACE_ROOT)/ace/Profile_Timer.i \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/marshal_results.i -.obj/marshal_proxy.o .shobj/marshal_proxy.so: marshal_proxy.cpp \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/marshal_proxy.h \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/marshal_options.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/marshal_options.i \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/marshal_results.h \ - $(ACE_ROOT)/ace/Profile_Timer.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/High_Res_Timer.h \ - $(ACE_ROOT)/ace/High_Res_Timer.i \ - $(ACE_ROOT)/ace/Profile_Timer.i \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/marshal_results.i \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/marshal_proxy.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/Benchmark/benchmark/driver.cpp b/TAO/Benchmark/benchmark/driver.cpp deleted file mode 100644 index ab9c67a3981..00000000000 --- a/TAO/Benchmark/benchmark/driver.cpp +++ /dev/null @@ -1,58 +0,0 @@ -// $Id$ - -#include "benchmark/driver.h" - -template -CORBA_Benchmark_Driver::CORBA_Benchmark_Driver (T *proxy) - : proxy_ (proxy) -{ -} - -template -CORBA_Benchmark_Driver::~CORBA_Benchmark_Driver (void) -{ - delete proxy_; -} - -template -int -CORBA_Benchmark_Driver::run (int argc, char *argv[]) -{ - // The run method delegates the task of parsing the command line options to - // the options data member - if (this->options_.parse_args (argc, argv) == -1) - { - ACE_DEBUG ((LM_DEBUG, "CORBA_Benchmark_Driver cannot parse arguments\n")); - return -1; - } - -#if 0 - // get a handle to the proxy - this->proxy_ = this->options_.make_proxy (); - if (this->proxy_ == 0) - { - ACE_DEBUG ((LM_DEBUG, "CORBA_Benchmark_Driver cannot make proxy\n")); - return -1; - } -#endif - - // The driver delegates the task of running the test to the newly created - // proxy - if (this->proxy_->run (this->options_, this->results_) == -1) - { - ACE_DEBUG ((LM_DEBUG, "CORBA_Benchmark_Driver cannot run\n")); - return -1; - } - - // The driver delegates the task of printing the results to the TTCP_Results - // class - if (this->results_.print_results () == -1) - { - ACE_DEBUG ((LM_DEBUG, "CORBA_Benchmark_Driver cannot print results\n")); - return -1; - } - - return 0; -} - - diff --git a/TAO/Benchmark/benchmark/driver.h b/TAO/Benchmark/benchmark/driver.h deleted file mode 100644 index 690041eac73..00000000000 --- a/TAO/Benchmark/benchmark/driver.h +++ /dev/null @@ -1,56 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - - -// ============================================================================ -// -// = LIBRARY -// CORBA Benchmark -// -// = FILENAME -// driver.h -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_CORBA_BENCHMARK_DRIVER_H_) -#define _CORBA_BENCHMARK_DRIVER_H_ - -#include "ace/Log_Msg.h" - -template -class CORBA_Benchmark_Driver -{ - // = TITLE - // CORBA Benchmark Driver. - // - // = DESCRIPTION - // This class encapsulates all the driver common to the CORBA benchmark - // tests. It provides a template to run the benchmarking code. The real - // work will be done by the PROXY class. -public: - - CORBA_Benchmark_Driver (PROXY *p); - // Constructor. - - ~CORBA_Benchmark_Driver (void); - // Destructor - - int run (int argc, char *argv[]); - // This is the starting point of all CORBA benchmark tests. - // Returns 0 on success, -1 on error. - -private: - PROXY *proxy_; - // the actual object that will do the work - - PROXY::RESULTS results_; - // Storage of test results. - - PROXY::OPTIONS options_; - // CORBA test command line options -}; - -#endif /* CORBA_BENCHMARK_DRIVER_H */ diff --git a/TAO/Benchmark/benchmark/marshal_options.cpp b/TAO/Benchmark/benchmark/marshal_options.cpp deleted file mode 100644 index 1ff157826b2..00000000000 --- a/TAO/Benchmark/benchmark/marshal_options.cpp +++ /dev/null @@ -1,280 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Benchmark -// -// = FILENAME -// marshal_options.cpp -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "benchmark/marshal_options.h" -#include "ace/Get_Opt.h" - -#if !defined (__ACE_INLINE__) -#include "benchmark/marshal_options.i" -#endif /* __ACE_INLINE__ */ - -static char *usage_string = -"Marshal_Test available options: \n\ --d : set debug ON \n\ --D : set TCP NO DELAY on \n\ --n : set the service name\n\ --s : set sender sock buf \n\ --r : set recv sock buf \n\ --h : hostname to listen/connect \n\ --p : port num to listen \n\ --i : number of iters \n\ --R : s(ender)/r(eceiver) \n\ --T : s(hort)/l(ong)/d(ouble)/o(ctet)/c(har)/\n\ - S(truct)/U(nion)/A(ny)/(se)Q/R(ecursive)\n\ --P : S(II/SI)/D(II/SI) depending on role \n\ --I : O(rbix)/V(isiBroker)/T(AO)\n\ --o : obj to bind to \n\ --f : filename to store results \n\ -"; - -int -CORBA_Marshal_Options::Usage (void) -{ - ACE_DEBUG ((LM_DEBUG, "%s\n", usage_string)); - return -1; -} - -int -CORBA_Marshal_Options::parse_args (int argc, char *argv []) -{ - int c; // option letter used - ACE_Get_Opt get_opt (argc, argv, "dDn:s:r:h:p:i:R:T:P:I:o:f:"); - - // ACE_DEBUG ((LM_DEBUG, "CORBA_Marshal_Options::parse_args\n")); - - while ((c = get_opt ()) != -1) - { - switch (c) - { - case 'd': // debug - this->debug (1); - break; - case 'D': // TCP NODELAY - this->disable_nagle (1); - break; - case 'n': - this->service_name (get_opt.optarg); - break; - case 's': // sender socket size - this->snd_socket_queue_size (ACE_OS::atoi (get_opt.optarg)); - break; - case 'r': // receive socket size - this->rcv_socket_queue_size (ACE_OS::atoi (get_opt.optarg)); - break; - case 'h': // hostname - this->hostname (ACE_OS::strdup (get_opt.optarg)); - break; - case 'p': // port number - this->port (ACE_OS::atoi (get_opt.optarg)); - break; - case 'i': // port number - this->iterations (ACE_OS::atoi (get_opt.optarg)); - break; - case 'R': // role - switch (*get_opt.optarg) - { - case 'S': // sender - case 's': // sender - this->role (SENDER); - break; - case 'R': // receiver - case 'r': // receiver - this->role (RECEIVER); - break; - default: - return this->Usage (); - } - break; - case 'T': // data type to test - switch (*get_opt.optarg) - { - case 's': // short - this->data_type (SHORT); - break; - case 'd': // double - this->data_type (DOUBLE); - break; - case 'o': // octet - this->data_type (OCTET); - break; - case 'c': // char - this->data_type (CHAR); - break; - case 'S': // Struct - this->data_type (STRUCT); - break; - case 'U': // Union - this->data_type (UNION); - break; - case 'A': // Any - this->data_type (ANY); - break; - case 'Q': // Sequence - this->data_type (SEQUENCE); - break; - case 'R': // Recursive - this->data_type (RECURSIVE); - break; - case 'l': // long, also the default - default: - this->data_type (LONG); - break; - } - break; - case 'P': // policy - switch (*get_opt.optarg) - { - case 'S': - case 's': - this->policy (STATIC); - break; - case 'D': - case 'd': - this->policy (DYNAMIC); - break; - default: - return this->Usage (); - } - break; - case 'I': // impl - switch (*get_opt.optarg) - { - case 'O': // Orbix - this->proxy_type (ORBIX); - break; - case 'V': // VisiBroker - this->proxy_type (VISIBROKER); - break; - case 'T': // TAO - this->proxy_type (TAO); - break; - } - break; - case 'o': // obj name - this->object_name (ACE_OS::strdup (get_opt.optarg)); - break; - case 'f': // file name to save results - this->filename (ACE_OS::strdup (get_opt.optarg)); - break; - default: // error - return this->Usage (); - } - } - return 0; -} - -int -CORBA_Marshal_Options::orb_init_args (int &argc, char *argv []) -{ - char buffer [200]; - - argc = 0; - switch (this->proxy_type_) - { - case ORBIX: - break; - case VISIBROKER: - { - ACE_OS::memset (buffer, '\0', 200); - if (snd_socket_queue_size_ > 0) - { - ACE_OS::sprintf (buffer, "-ORBsendbufsize %d", snd_socket_queue_size_); - orb_init_args_ += ACE_CString (buffer); - argc ++; - } - - ACE_OS::memset (buffer, '\0', 200); - if (rcv_socket_queue_size_ > 0) - { - ACE_OS::sprintf (buffer, "-ORBrcvbufsize %d", rcv_socket_queue_size_); - orb_init_args_ += ACE_CString (buffer); - argc ++; - } - } - break; - case TAO: - break; - } - ACE_OS::memset (buffer, '\0', 200); - ACE_OS::memcpy (buffer, boa_init_args_.rep (), boa_init_args_.length ()); - return 0; -} - -static char buffer [20][200]; - -int -CORBA_Marshal_Options::boa_init_args (int &argc, char *argv []) -{ - argc = 0; - switch (this->proxy_type_) - { - case ORBIX: - break; - case VISIBROKER: - { - ACE_OS::memset (buffer[argc], '\0', 200); - if (snd_socket_queue_size_ > 0) - { - ACE_OS::sprintf (buffer[argc], "-OAsendbufsize %d", snd_socket_queue_size_); - // boa_init_args_ += ACE_CString (buffer[argc]); - argc ++; - } - ACE_OS::memset (buffer[argc], '\0', 200); - if (rcv_socket_queue_size_ > 0) - { - ACE_OS::sprintf (buffer[argc], "-OArcvbufsize %d", rcv_socket_queue_size_); - // boa_init_args_ += ACE_CString (buffer[argc]); - argc ++; - } - ACE_OS::memset (buffer[argc], '\0', 200); - if (port_ > 0) - { - ACE_OS::sprintf (buffer[argc], "-OAport %d", port_); - // boa_init_args_ += ACE_CString (buffer[argc]); - argc ++; - } - ACE_OS::memset (buffer[argc], '\0', 200); - if (hostname_ != 0 && role_ == RECEIVER) - { - ACE_OS::sprintf (buffer[argc], "-OAipaddr %s", hostname_); - // boa_init_args_ += ACE_CString (buffer[argc]); - argc ++; - } - } - break; - case TAO: - { - ACE_OS::memset (buffer[argc], '\0', 200); - if (port_ > 0) - { - ACE_OS::sprintf (buffer[argc], "-OAport %d", port_); - // boa_init_args_ += ACE_CString (buffer); - argc ++; - } - ACE_OS::memset (buffer[argc], '\0', 200); - if (hostname_ != 0 && role_ == RECEIVER) - { - ACE_OS::sprintf (buffer[argc], "-OAhostname %s", hostname_); - // boa_init_args_ += ACE_CString (buffer); - argc ++; - } - } - break; - } - // ACE_OS::memset (buffer, '\0', 200); - // ACE_OS::memcpy (buffer, boa_init_args_.rep (), boa_init_args_.length ()); - return 0; -} - diff --git a/TAO/Benchmark/benchmark/marshal_options.h b/TAO/Benchmark/benchmark/marshal_options.h deleted file mode 100644 index 51a02a38ffa..00000000000 --- a/TAO/Benchmark/benchmark/marshal_options.h +++ /dev/null @@ -1,209 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Benchmark/Marshal -// -// = FILENAME -// marshal_options.h -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_CORBA_MARSHAL_OPTIONS_H_) -#define _CORBA_MARSHAL_OPTIONS_H_ - -#include "ace/OS.h" -#include "ace/SString.h" - -class CORBA_Marshal_Options -{ - // = TITLE - // CORBA_Marshal_Options - // = DESCRIPTION - // An encapsulation of all the CORBA_MARSHAL test parameters. This is - // used to communicate between the ACE_CORBA_Marshal_Driver and all - // specializations of CORBA_Marshal_Proxy. It must be noted that not all - // options will be valid for a given specialization of CORBA_Marshal_Proxy. This is - // a "all-encompassing" class. -public: - // The following data types will be tested - enum DATATYPE - { - NO_DATATYPE, - SHORT, - LONG, - DOUBLE, - CHAR, - OCTET, - STRUCT, - UNION, - ANY, - SEQUENCE, - RECURSIVE - }; - - // The following CORBA implementations will be tested - enum PROXY_TYPE - { - NO_PROXY, - TAO, - ORBIX, - VISIBROKER - }; - - // Invocation policy - enum POLICY - { - NO_POLICY, - STATIC, // SII, SSI - DYNAMIC // DII, DSI - }; - - // what role do we play? - enum ROLE - { - NO_ROLE, - SENDER, - RECEIVER - }; - - CORBA_Marshal_Options (void); - // Construction. Sets default values. - - ~CORBA_Marshal_Options (void); - // Destructor - - int parse_args (int argc, char *argv[]); - // Parse command line arguments. This decides what type of CORBA_MARSHAL - // test to run. - - // All the command line options - - //= Get/Set the data type to be sent/received - CORBA_Marshal_Options::DATATYPE data_type (void); - void data_type (CORBA_Marshal_Options::DATATYPE); - - //= Get/set the proxy type - CORBA_Marshal_Options::PROXY_TYPE proxy_type (void); - void proxy_type (CORBA_Marshal_Options::PROXY_TYPE); - - //= Get/Set the policy used by clients/servers for communication - CORBA_Marshal_Options::POLICY policy (void); - void policy (CORBA_Marshal_Options::POLICY); - - //= Get/Set whether we are client or server (sender/receiver) - CORBA_Marshal_Options::ROLE role (void); - void role (CORBA_Marshal_Options::ROLE); - - //= Get/Set the hostname client connects to or the interface on which the - //server listens to - const char *hostname (void); - void hostname (const char *); - - //= Get/set the port number on which the server listens - short port (void); - void port (short); - - //= Get/Set the object name (to which to connect to) - const char *object_name (void); - void object_name (const char *); - - //= Get/Set the service name (for impl is ready) - const char *service_name (void); - void service_name (const char *); - - // = Get/set receive sockbufsize. - int rcv_socket_queue_size (void); - void rcv_socket_queue_size (int); - - // = Get/set send sockbufsize. - int snd_socket_queue_size (void); - void snd_socket_queue_size (int); - - // = Get/set whether to use TCP_NODELAY or not - unsigned short disable_nagle (void); - void disable_nagle (unsigned short); - - // = Get/set whether to print debug messages. - unsigned short debug (void); - void debug (unsigned short); - - // =Get/Set filename to store results - const char *filename (void); - void filename (const char *fname); - - // =Get/set number of iterations - int iterations (void); - void iterations (int iter); - - int Usage (void); - // prints a usage message and always returns -1 - - int orb_init_args (int &argc, char * argv []); - // return a string that will be passed to the ORB init method based on the - // other options and proxy type - - int boa_init_args (int &argc, char * argv []); - // return a string that will be passed to the BOA init method based on the - // other options and proxy type - -private: - const char *object_name_; - // name of the object. - - const char *service_name_; - // name of the service. - - CORBA_Marshal_Options::DATATYPE data_type_; - // data type to send/receive - - CORBA_Marshal_Options::PROXY_TYPE proxy_type_; - // the proxy type, e.g., ACE, Orbix, VisiBroker, etc - - CORBA_Marshal_Options::POLICY policy_; - // communications policy used by the communicating entity - - CORBA_Marshal_Options::ROLE role_; - // Are we creating a sender or receiver? - - int rcv_socket_queue_size_; - // Size of socket queue. - - int snd_socket_queue_size_; - // Size of socket queue. - - unsigned short disable_nagle_; - // Nagle must be stopped. - - unsigned short debug_; - // Should we print debug messages? - - short port_; - // Port for socket connections to use. - - const char *hostname_; - // Host for senders to connect to. and servers to listen on - - const char *filename_; - // filename in which to store the results - - int iterations_; - // number of times to run the same test - - ACE_CString orb_init_args_; - // arguments to orb_init - - ACE_CString boa_init_args_; - // arguments to boa_init - -}; - -#if defined (__ACE_INLINE__) -#include "benchmark/marshal_options.i" -#endif /* __ACE_INLINE__ */ - -#endif diff --git a/TAO/Benchmark/benchmark/marshal_options.i b/TAO/Benchmark/benchmark/marshal_options.i deleted file mode 100644 index 6c860fac93c..00000000000 --- a/TAO/Benchmark/benchmark/marshal_options.i +++ /dev/null @@ -1,235 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Benchmark/Marshal -// -// = FILENAME -// marshal_options.i -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -// constructor -ACE_INLINE -CORBA_Marshal_Options::CORBA_Marshal_Options (void) - : object_name_ (0), - data_type_ (CORBA_Marshal_Options::NO_DATATYPE), - proxy_type_ (CORBA_Marshal_Options::NO_PROXY), - policy_ (CORBA_Marshal_Options::NO_POLICY), - role_ (CORBA_Marshal_Options::NO_ROLE), - rcv_socket_queue_size_ (-1), - snd_socket_queue_size_ (-1), - disable_nagle_ (0), - debug_ (0), - hostname_ (0), - port_ (-1), - iterations_ (0) -{ -} - - -// destructor -ACE_INLINE -CORBA_Marshal_Options::~CORBA_Marshal_Options (void) -{ -} - -// set the data type to be transferred -ACE_INLINE void -CORBA_Marshal_Options::data_type (CORBA_Marshal_Options::DATATYPE dt) -{ - data_type_ = dt; -} - -// get the data type to be transferred -ACE_INLINE CORBA_Marshal_Options::DATATYPE -CORBA_Marshal_Options::data_type (void) -{ - return data_type_; -} - -// set the proxy type to be transferred -ACE_INLINE void -CORBA_Marshal_Options::proxy_type (CORBA_Marshal_Options::PROXY_TYPE pt) -{ - proxy_type_ = pt; -} - -// get the data type to be transferred -ACE_INLINE CORBA_Marshal_Options::PROXY_TYPE -CORBA_Marshal_Options::proxy_type (void) -{ - return proxy_type_; -} - -// set the policy type to be transferred -ACE_INLINE void -CORBA_Marshal_Options::policy (CORBA_Marshal_Options::POLICY inv) -{ - policy_ = inv; -} - -// get the policy type to be transferred -ACE_INLINE CORBA_Marshal_Options::POLICY -CORBA_Marshal_Options::policy (void) -{ - return policy_; -} - -// set the role type to be transferred -ACE_INLINE void -CORBA_Marshal_Options::role (CORBA_Marshal_Options::ROLE my_role) -{ - role_ = my_role; -} - -// get the role type to be transferred -ACE_INLINE CORBA_Marshal_Options::ROLE -CORBA_Marshal_Options::role (void) -{ - return role_; -} - -// set the hostname -ACE_INLINE void -CORBA_Marshal_Options::hostname (const char *hname) -{ - hostname_ = hname; -} - -// get the hostname -ACE_INLINE const char* -CORBA_Marshal_Options::hostname (void) -{ - return hostname_; -} - -// set the post -ACE_INLINE void -CORBA_Marshal_Options::port (short portnum) -{ - port_ = portnum; -} - -// get the port -ACE_INLINE short -CORBA_Marshal_Options::port (void) -{ - return port_; -} - -// set the object name -ACE_INLINE void -CORBA_Marshal_Options::object_name (const char *objname) -{ - object_name_ = objname; -} - -// get the object name -ACE_INLINE const char * -CORBA_Marshal_Options::object_name (void) -{ - return object_name_; -} - -// set the service name -ACE_INLINE void -CORBA_Marshal_Options::service_name (const char *srvname) -{ - service_name_ = srvname; -} - -// get the service name -ACE_INLINE const char * -CORBA_Marshal_Options::service_name (void) -{ - return service_name_; -} - -// set the receive sock size -ACE_INLINE void -CORBA_Marshal_Options::rcv_socket_queue_size (int socksize) -{ - rcv_socket_queue_size_ = socksize; -} - -// get the receive sock size -ACE_INLINE int -CORBA_Marshal_Options::rcv_socket_queue_size (void) -{ - return rcv_socket_queue_size_; -} - -// set the sender sock size -ACE_INLINE void -CORBA_Marshal_Options::snd_socket_queue_size (int socksize) -{ - snd_socket_queue_size_ = socksize; -} - -// get the snd sock size -ACE_INLINE int -CORBA_Marshal_Options::snd_socket_queue_size (void) -{ - return snd_socket_queue_size_; -} - -// set whether Nagle algo is to be disabled -ACE_INLINE void -CORBA_Marshal_Options::disable_nagle (unsigned short val) -{ - disable_nagle_ = (val ? 1 : 0); -} - -// get whether Nagle algo is disabled -ACE_INLINE unsigned short -CORBA_Marshal_Options::disable_nagle (void) -{ - return disable_nagle_; -} - -// set whether debug is to be disabled -ACE_INLINE void -CORBA_Marshal_Options::debug (unsigned short val) -{ - debug_ = (val ? 1 : 0); -} - -// get whether debug is disabled -ACE_INLINE unsigned short -CORBA_Marshal_Options::debug (void) -{ - return debug_; -} - -// set the filename -ACE_INLINE void -CORBA_Marshal_Options::filename (const char *fname) -{ - filename_ = fname; -} - -// get the filename -ACE_INLINE const char* -CORBA_Marshal_Options::filename (void) -{ - return filename_; -} - -// set the iterations -ACE_INLINE void -CORBA_Marshal_Options::iterations (int iter) -{ - iterations_ = iter; -} - -// get the iterations -ACE_INLINE int -CORBA_Marshal_Options::iterations (void) -{ - return iterations_; -} diff --git a/TAO/Benchmark/benchmark/marshal_proxy.cpp b/TAO/Benchmark/benchmark/marshal_proxy.cpp deleted file mode 100644 index 7a5a05e9a7a..00000000000 --- a/TAO/Benchmark/benchmark/marshal_proxy.cpp +++ /dev/null @@ -1,21 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Benchmark -// -// = FILENAME -// marshal_proxy.cpp -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "benchmark/marshal_proxy.h" - -#if !defined (__ACE_INLINE__) -#include "benchmark/marshal_proxy.i" -#endif /* __ACE_INLINE__ */ - diff --git a/TAO/Benchmark/benchmark/marshal_proxy.h b/TAO/Benchmark/benchmark/marshal_proxy.h deleted file mode 100644 index 7b3951f4e11..00000000000 --- a/TAO/Benchmark/benchmark/marshal_proxy.h +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Benchmark -// -// = FILENAME -// marshal_proxy.h -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined(_CORBA_MARSHAL_PROXY_H_) -#define _CORBA_MARSHAL_PROXY_H_ - -#include "benchmark/marshal_options.h" -#include "benchmark/marshal_results.h" - -class CORBA_Marshal_Proxy -{ - // = TITLE - // Abstract handle for all CORBA_Marshal tests. - // = DESCRIPTION - // The IMPL class is the CORBA specific class which does the real work. The - // IMPL class must support the run method -public: - typedef CORBA_Marshal_Options OPTIONS; - typedef CORBA_Marshal_Results RESULTS; - - CORBA_Marshal_Proxy (void); - // constructor - - virtual ~CORBA_Marshal_Proxy (void); - // destructor - - virtual int run (OPTIONS &, RESULTS &) = 0; - // run the test - -}; - -#if defined (__ACE_INLINE__) -#include "benchmark/marshal_proxy.i" -#endif /* __ACE_INLINE__ */ - -#endif diff --git a/TAO/Benchmark/benchmark/marshal_proxy.i b/TAO/Benchmark/benchmark/marshal_proxy.i deleted file mode 100644 index a5e95d393cd..00000000000 --- a/TAO/Benchmark/benchmark/marshal_proxy.i +++ /dev/null @@ -1,12 +0,0 @@ -// $Id$ - - -ACE_INLINE -CORBA_Marshal_Proxy::CORBA_Marshal_Proxy (void) -{ -} - -ACE_INLINE -CORBA_Marshal_Proxy::~CORBA_Marshal_Proxy (void) -{ -} diff --git a/TAO/Benchmark/benchmark/marshal_results.cpp b/TAO/Benchmark/benchmark/marshal_results.cpp deleted file mode 100644 index 1231fe38b22..00000000000 --- a/TAO/Benchmark/benchmark/marshal_results.cpp +++ /dev/null @@ -1,34 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Benchmark/Marshal -// -// = FILENAME -// marshal_results.cpp -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "benchmark/marshal_results.h" - -#if !defined (__ACE_INLINE__) -#include "benchmark/marshal_results.i" -#endif /* __ACE_INLINE__ */ - -int -CORBA_Marshal_Results::log_results (void) -{ - return 0; -} - -int -CORBA_Marshal_Results::print_results (void) -{ - // ACE_DEBUG ((LM_DEBUG, "CORBA_Marshal_Results::print_results\n")); - - return 0; // success -} diff --git a/TAO/Benchmark/benchmark/marshal_results.h b/TAO/Benchmark/benchmark/marshal_results.h deleted file mode 100644 index 5d635cf83d7..00000000000 --- a/TAO/Benchmark/benchmark/marshal_results.h +++ /dev/null @@ -1,72 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Benchmark -// -// = FILENAME -// marshal_results.h -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_CORBA_MARSHAL_RESULTS_H_) -#define _CORBA_MARSHAL_RESULTS_H_ - -#include "ace/Profile_Timer.h" - -class CORBA_Marshal_Results -{ -public: - CORBA_Marshal_Results (void); - // Construction. - - ~CORBA_Marshal_Results (void); - // destructor. - - void clear (void); - // Clear all results. - - ACE_Profile_Timer::ACE_Elapsed_Time & elapsed_time (void); - // Get the elapsed time. - - ACE_Profile_Timer::Rusage elapsed_rusage (void); - // compute the rusage - - int start_timer (void); - // starts a profile timer. - - int stop_timer (void); - // stops the profile timer. - - void filename (const char *fname); - // set the name of the file to store results - - int log_results (void); - // log results - - int print_results (void); - // prints the results - -private: - - // = Used for performance statistics - ACE_Profile_Timer timer_; - ACE_Profile_Timer::ACE_Elapsed_Time et_; - ACE_Profile_Timer::Rusage rusage_; - - double elapsed_time_; - // Real elapsed time in seconds. - - const char *filename_; - // filename -}; - -#if defined (__ACE_INLINE__) -#include "benchmark/marshal_results.i" -#endif /* __ACE_INLINE__ */ - -#endif diff --git a/TAO/Benchmark/benchmark/marshal_results.i b/TAO/Benchmark/benchmark/marshal_results.i deleted file mode 100644 index aa914b2f3d3..00000000000 --- a/TAO/Benchmark/benchmark/marshal_results.i +++ /dev/null @@ -1,61 +0,0 @@ -// $Id$ - - -// ============================================================================ -// -// = LIBRARY -// CORBA Benchmark/Marshal -// -// = FILENAME -// marshal_results.i -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -ACE_INLINE -CORBA_Marshal_Results::CORBA_Marshal_Results (void) - : filename_ (0), - elapsed_time_ (0) -{ -} - -ACE_INLINE -CORBA_Marshal_Results::~CORBA_Marshal_Results (void) -{ -} - -ACE_INLINE int -CORBA_Marshal_Results::start_timer (void) -{ - return this->timer_.start (); -} - -ACE_INLINE int -CORBA_Marshal_Results::stop_timer (void) -{ - return this->timer_.stop (); -} - -ACE_INLINE ACE_Profile_Timer::ACE_Elapsed_Time & -CORBA_Marshal_Results::elapsed_time (void) -{ - (void) this->timer_.elapsed_time (this->et_); - return this->et_; -} - -ACE_INLINE ACE_Profile_Timer::Rusage -CORBA_Marshal_Results::elapsed_rusage (void) -{ - (void) this->timer_.elapsed_rusage (this->rusage_); - return this->rusage_; -} - -ACE_INLINE void -CORBA_Marshal_Results::filename (const char *fname) -{ - this->filename_ = fname; -} - - diff --git a/TAO/COPYING b/TAO/COPYING deleted file mode 100644 index c64992e2875..00000000000 --- a/TAO/COPYING +++ /dev/null @@ -1,40 +0,0 @@ -COPYRIGHT INFORMATION FOR TAO - -TAO is copyrighted by Douglas C. Schmidt and his research group at -Washington University, Copyright (c) 1997, all rights reserved. In -addition, some portions of TAO (particularly the IIOP protocol engine) -are copyrighted by SunSoft (see the ./IIOP/lib/COPYING.sun file for -more details). Likewise, TAO relies heavily on ACE, which is also -copyrighted by Douglas C. Schmidt and his research group at Washington -University (see the ../COPYING file for more details). - -You are free to do anything you like with the Wash. U. portions of -TAO's source code (and object code produced from the source). For -instance, you can include it in commercial software, as long as you -include this copyright statement along with code built using TAO. - -You are under no obligation to freely redistribute any of your source -code that is built using TAO. Please note, however, that you may not -do anything to the ACE code that will prevent it from being -distributed freely (such as copyrighting it or claiming authorship). - -TAO is provided as is with no warranties of any kind including the -warranties of design, merchantibility and fitness for a particular -purpose, noninfringement, or arising from a course of dealing, usage -or trade practice. - -TAO is provided with no support and without any obligation on the part -of Washington University, its employees, or students to assist in its -use, correction, modification or enhancement. - -Washington University, its employees, and students shall have no -liability with respect to the infringement of copyrights, trade -secrets or any patents by TAO or any part thereof. - -In no event will Washington University, its employees, or students be -liable for any lost revenue or profits or other special, indirect and -consequential damages. - - Douglas C. Schmidt - schmidt@cs.wustl.edu - diff --git a/TAO/COPYING.sun b/TAO/COPYING.sun deleted file mode 100644 index 7cd6795a942..00000000000 --- a/TAO/COPYING.sun +++ /dev/null @@ -1,67 +0,0 @@ -This notice applies to all files in this software distribution that -were originally derived from SunSoft IIOP code (these files contain -Sun Microsystems copyright notices). - -COPYRIGHT AND LICENSING ------------------------ - -Copyright 1995 Sun Microsystems, Inc. -Printed in the United States of America. -All Rights Reserved. - -This software product (LICENSED PRODUCT), implementing the Object -Management Group's "Internet Inter-ORB Protocol", is protected by -copyright and is distributed under the following license restricting -its use. Portions of LICENSED PRODUCT may be protected by one or more -U.S. or foreign patents, or pending applications. - -LICENSED PRODUCT is made available for your use provided that you -include this license and copyright notice on all media and -documentation and the software program in which this product is -incorporated in whole or part. - -You may copy, modify, distribute, or sublicense the LICENCED PRODUCT -without charge as part of a product or software program developed by -you, so long as you preserve the functionality of interoperating with -the Object Management Group's "Internet Inter-ORB Protocol" version -one. However, any uses other than the foregoing uses shall require -the express written consent of Sun Microsystems, Inc. - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of the LICENSED PRODUCT as permitted herein. - -This license is effective until terminated by Sun for failure to -comply with this license. Upon termination, you shall destroy or -return all code and documentation for the LICENSED PRODUCT. - -LICENSED PRODUCT IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND -INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A -PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -LICENSED PRODUCT IS PROVIDED WITH NO SUPPORT AND WITHOUT ANY -OBLIGATION ON THE PART OF SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY -WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY -PATENTS BY LICENSED PRODUCT OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE -LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND -CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY -OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and -FAR 52.227-19. - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems and the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - diff --git a/TAO/ChangeLog-98c b/TAO/ChangeLog-98c deleted file mode 100644 index feba03289e0..00000000000 --- a/TAO/ChangeLog-98c +++ /dev/null @@ -1,16658 +0,0 @@ -Mon Jun 15 20:56:20 1998 Irfan Pyarali - - * tao/POAC: Changed all the exception from user exceptions to - system exceptions. - - * tao/GIOP.cpp (convert_CORBA_to_GIOP_exception): Added new - function to convert CORBA Exception type to GIOP reply type. - - * tao/Exception.cpp - - (init): Register POA exceptions as system exceptions - - (exception_type): Added code to determine if exception is a POA - exception. - - (print_exception): Changed code to use exception_type. - - Removed sys_exceptions and NUM_SYS_EXCEPTIONS. They were not - being used. - - * tao/Connect.cpp (send_error): Cannot assume that the exception - is a system exception. Must use - TAO_GIOP::convert_CORBA_to_GIOP_exception to find the correct - type of the exception. - -Mon Jun 15 16:14:28 1998 Nanbor Wang - - * test/Cubit/TAO/IDL_Cubit/collocation_test.cpp: New program to - test the performance of collocation optimization. - - * test/Cubit/TAO/IDL_Cubit/server_i.{h,cpp}: - * test/Cubit/TAO/IDL_Cubit/client_i.{h,cpp}: - * test/Cubit/TAO/IDL_Cubit/server.cpp: - * test/Cubit/TAO/IDL_Cubit/client.cpp: Extracted out the - implementation of Cubit_Server and Cubit_Client to *_i.{h,cpp} - so that I can reuse them with collocation_test.cpp. - - When shutting down the ORB, the client side will first turn off - the collocation optimization and get the shutdown object from - Naming Service. Then, it calls the shutdown method of that - object. Without this, we can't shutdown the server ORB. - - * test/Cubit/TAO/IDL_Cubit/svc.conf: Changed to use TSS resource. - - * test/Cubit/TAO/IDL_Cubit/cubit_i.cpp: - * test/Cubit/TAO/IDL_Cubit/cubit.idl: Added a new interface for - shutting down the server ORB. This is necessary because we - can't use the shutdown in collocated object (which shuts down - the wrong ORB.) - - * test/Cubit/TAO/IDL_Cubit/Makefile: Added settings for building - collocation_test. Tidy up the Makefile a bit. - - * tests/Cubit/TAO/IDL_Cubit/README: Added documentation for - collocation_test. - - * tao/ORB_Core.{h,i} (using_collocation): Added a new method to allow - turn on/off collocation optimization at run time. - -Sat Jun 13 13:20:58 1998 David L. Levine - - * orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp: added explicit - template instantiations. - - * tao/POA.i (find_POA): rearranged to avoid use before - definition. - -Fri Jun 12 20:20:00 1998 Michael Kircher - - * tao/{Object_KeyC.cpp, Typecode_Constants.cpp}: Changed the - typecode manually. - -Fri Jun 12 19:34:00 1998 Michael Kircher - - * tao/POAC.cpp: The generation of the typecodes has changed, - this file had to be changed manually. - -Fri Jun 12 16:53:49 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_decl.cpp (gen_name2long): Michael found out that - the TAO_IDL compiler was generating non-portable code for the - TypeCode arrays of longs for the RepoID and the name. After - discussions with Doug and Irfan, we have decided to always - generate the arrays in network order (big endian) and add an - ACE_NTOHL macro as the static array is initialized. This way there - won't be any run-time penalty. At the same time, the code will be - portable. - - * TAO_IDL/{be_enum, be_exception, be_interface, be_structure, - be_typedef, be_union, be_predefined_type, be_field, be_enum_val, - be_union_branch}.cpp: Added the call to ACE_NTOHL macro for the - arrays of long that are generated for TypeCodes. - - * tests/Param_Test/params.idl: Added interface definition for - tests for arrays. This is still not working at this time. - -Fri Jun 12 15:39:41 1998 Irfan Pyarali - - * tests/POA/Generic_Servant: Added oneway calls. - -Fri Jun 12 15:01:16 1998 Marina Igorevna Spivak - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp: Added _env parameter to - helper method, and added the check of environment in - all methods using . This is to allow exceptions - propagate back. - -1998-06-12 Torben Worm - - * orbsvcs/Concurrency/CC_LockSet.{h,cpp} - Added locks to avoid race conditions. - Corrected errors regarding the semantics of the service - One issue is still outstanding: The use of a semaphore to - lock the threads which do not preserve the ordering of the - locking. - -Fri Jun 12 11:48:00 1998 Michael Kircher - - * tao/POAC.cpp: The TAO_IDL compiler generates platform - dependent code for typecodes right now. POA.idl is !not! - recompiled on a compilation, because it has been customized. - This means, that a ifdef is needed to cover for the - platform dependence. - -Fri Jun 12 09:43:14 1998 David L. Levine - - * tao/Connect.cpp (send_error): dereferenced - forward_request_ptr->forward_reference so that it compiles - with g++. - -Fri Jun 12 9:00:00 1998 Michael Kircher - - * tao/Connect.cpp: Removed my own bug, using a var as a ptr. - -Thu Jun 11 21:30:00 1998 Michael Kircher - - * tests/POA/Forwarding/{client, server}.cpp: cleaned up the code. - -Thu Jun 11 21:15:00 1998 Michael Kircher - - * tao/Connect.cpp: Added send_error, which does proper system exception handling - and marshalling. - - * tao/Connect.h: Added the request_id as parameter to handle_message and - handle_locate - - * tao/GIOP.cpp: Changed the forwarding. A method named location_forward has been - introduced. It changes the IIOP_Profile of the object reference in copying the IIOP_Profile - from the object where the requests should go to, now. - - * tao/GIOP.h: Added the TAO_GIOP_Invocation::location_forward (CORBA::Environment &env); - - * tao/IIOP_ORB.cpp: The IIOP_Object pointer is now released in each case, not only - in the error case. This was necessary, because the control was given to the caller - and the ref_count was to high. - - * tao/IIOP_Object.cpp: Implemented the copy operator on IIOP_Profile, which is needed - by the above mentioned location_forward method. - - * tao/IIOP_Object.h: Removed old forward profile things and changed the copy operator - - * tao/IIOP_Object.i: Removed old forward profile stuff. - - * tao/Server_Request.cpp: Changed the exception handling. We have now a special - case of the forward_request exception. This exception contains an object reference - to a object at the new location. - - * tao/Server_Request.h: Added "CORBA::ULong request_id (void)" to query the request_id and - added a member "CORBA::Object_var forward_location_". - - * tao/Server_Request.i: added ACE_INLINE CORBA::ULong IIOP_ServerRequest::request_id (void) - - * docs/releasenotes/index.html: Added a reference to location forwarding. - - * docs/forwarding.html: Documentation about location forwarding. - -Thu Jun 11 21:09:30 1998 David L. Levine - - * tests/Quoter/Quoter_Impl.cpp (Quoter_Factory_Impl ctor): - dereference quoter_ior in ACE_DEBUG statement. - -Thu Jun 11 18:22:50 1998 Irfan Pyarali - - * tao/ORB_Core.cpp: Added template instantiations for Write_Guard - and Read_Guard. - -Thu Jun 11 16:45:11 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_array.cpp: (gen_encapsulation, gen_encap_len): - Added code that generates the TypeCode and encapsulations for - Arrays. - - be_array::gen_forany_{defn,impl}: Added a "nocopy ()" method that - returns the "nocopy" flag. This is useful for the <<+ and >>= - operators. - - Also, removed a lot of code that was commented out. - - * TAO_IDL/be_include/be_visitor_array.h - TAO_IDL/be/be_visitor_array.cpp: These are newly added files. - - Added a bunch of visitors that generate code for Arrays. As of now - only typedefined arrays have been handled. Work is still going on - for anonymous arrays. - - * TAO_IDL/Makefile: Added be_visitor_array.cpp for compilation - - * TAO_IDL/be/be_interpretive.cpp: Added cases for the Array - visitors. - - * TAO_IDL/be/{be_visitor_enum, be_visitor_exception, - be_visitor_interface, be_visitor_sequence, be_visitor_structure, - be_visitor_typedef, be_visitor_union}.cpp: Fixed an error in the - generate code for the "non copying" and "copying" versions of the - <<= operators. - - * TAO_IDL/be/be_visitor_interface.cpp: After discussions with - Irfan, we now use POA_var as a data member inside the generated - TIE classes. In addition, the code for the _default_POA, which - previously was incorrect, is now fixed. - - * TAO_IDL/be/be_visitor_sequence.cpp: We now always create a name - for the sequence node even when it is imported. The reason we have - to do this is that an imported sequence node may very well be used - in another IDL file. Thus, while code generation, if the name was - not set, then it resulted in seg faults. Thanks to John Geiss" - for reporting the problem. - - * TAO_IDL/be/be_visitor_typedef.cpp: For typedefs of a typedef to - an array, we simply generate the typedefs for the _var, _out, - _forany types. In addition, inline functions for the _alloc, _dup, - _copy, and _free are generated. - - * orbsvcs/orbsvcs/Makefile: In the realclean target, added the - *_T.* files that need to be cleaned. - -Thu Jun 11 15:32:02 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/Makefile: - * tests/Cubit/TAO/MT_Cubit/Task_Client.{h,cpp}: - * tests/Cubit/TAO/MT_Cubit/Util_Thread.cpp: - * tests/Cubit/TAO/MT_Cubit/client.cpp: - * tests/Cubit/TAO/MT_Cubit/cubit_i.{h,cpp}: - * tests/Cubit/TAO/MT_Cubit/server.{h,cpp}: Added the server utilization - test. Use "-U" on both the client and the server. - -Thu Jun 11 15:26:36 1998 Nanbor Wang - - * tao/ORB_Core.{h,cpp} (inherit_from_parent_thread): This new - method was added to TAO_ORB_Core to localize all inheriting - operations needed when spawning new threads to handle incoming - requests. - - * tao/Connect.cpp (svc): Changed to use - inherit_from_parent_thread. - -Thu Jun 11 13:01:11 1998 Chris Gill - - * orbsvcs/orbsvcs/Sched/DynSched.cpp: - - Changed ACE_Thread_Mutex to ACE_SYNCH_MUTEX in - template instantiation statements and pragmas - -Thu Jun 11 12:40:11 1998 Michael Kircher - - * tao/Exception.cpp: Method Release created an any, named - free_it_all, which was responsible in old time to - deep free memory. Now that that Any automatically - encodes its content in a CDR stream this is no more - the right thing to do. It actually can create a - infinite loop, if an exception is thrown within - the encoding code. So it has been replaced by a - delete this command. - -Thu Jun 11 11:25:11 1998 Michael Kircher - - * orbsvcs/LifeCycle_Service/LifeCycle_Service.dsp: Added - proper multithreaded support. - - * orbsvcs/orbsvcs.dsw: Added the LifeCycle_Service - -Thu Jun 11 09:39:11 1998 David L. Levine - - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: changed the - ACE_EC_Gateway template instantiations to TAO_EC_Gateway. - - * tests/Cubit/TAO/MT_Cubit/server.cpp (start_servants): - changed types of local i, and global num_of_objs, to u_int - to avoid signed/unsigned comparisons. - -Thu Jun 11 00:14:25 1998 Irfan Pyarali - - * tao/Connect.cpp (TAO_Server_Connection_Handler): Reordered base - class / member initialization. - -Wed Jun 10 20:00:21 1998 Michael Kircher - - * tests/POA/Forwarding/*: enhanced the Forwarding test enormously. - -Wed Jun 10 19:00:21 1998 Carlos O'Ryan - - * tao/Sequence.cpp: - Fixed small bug in octet sequence assignment operator. - -Wed Jun 10 16:09:49 1998 Irfan Pyarali - - * tao/ORB.cpp: fixed template instantiations: ACE_SYNCH_MUTEX - instead of ACE_SYNCH_RW_MUTEX. - - * tao/POAS.h (POA_PortableServer): Added missing TAO_Exports. - - * tests/POA/DSI: New test directory to show DSI features in TAO. - - * tests/POA/TIE: New test directory to show TIE features in TAO. - -1998-06-10 Torben Worm - - * orbsvcs/orbsvcs/Concurrency/CC_LockSet.{h,cpp} - Added multiple possesion semantics. CC_Lock.{h,cpp} is - not used anymore. - -Wed Jun 10 14:29:55 1998 Chris Gill - - * orbsvcs/orbsvcs/Sched/Config_Scheduler.{h,cpp}: - - Moved included header files from .cpp to .h to - fix incomplete types error when compiling files - that include the header file and are using the - strategized scheduler implementation - - * orbsvcs/tests/EC_Multiple/Scheduler_Runtime1.h - orbsvcs/tests/EC_Multiple/Scheduler_Runtime2.h: - - Fixed warning when compiling file that include these - header files: set all Info_Type values to 0 (Operation). - Values were 0-4, where the enum only goes 0-2 - -Wed Jun 10 13:03:03 1998 Irfan Pyarali - - * tests/POA/Explicit_Activation/server.cpp, - tests/POA/Generic_Servant/client.cpp, - tests/POA/NewPOA/NewPOA.cpp, and tests/POA/RootPOA/RootPOA.cpp: - Use ACE_DEBUG instead of cout. - - * tao/Server_Request.cpp (dsi_marshal): Only marshal if the params - are valid. - - * tao/ORB_Core.h: Changed the lock used by - ACE_Cached_Connect_Strategy from a rw_mutex to a regular mutex. - - * tao/ORB.cpp: Changed CORBA::B_TRUE and CORBA::B_FALSE from enums - to CORBA::Boolean. - - * tao/{Connect.cpp, ORB.cpp}: Fixed the template instantiations in - lieu of the changes to Hash_Addr. - - * tao/Any.h: Added ACE_Export to nested structs. - -Wed Jun 10 10:28:31 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Event/Event_Channel.h: - * orbsvcs/orbsvcs/Event/Event_Channel.i: - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: - Added support to automatically create the publication and - subscription lists for the gateways. - - * orbsvcs/orbsvcs/RtecEventChannelAdmin.idl: - Added fields to the QOS structures so gateways can be - distinguished in the EC. - Several field names were inconsistent (some had a trailing _ and - others won't). - - * orbsvcs/orbsvcs/Event_Utilities.h: - * orbsvcs/orbsvcs/Event_Utilities.i: - Adapted to use the changes in the QOS structures. - - * orbsvcs/orbsvcs/Event/EC_Gateway.h: - * orbsvcs/orbsvcs/Event/EC_Gateway.cpp: - As part of the plan to support UDP and multicast gateways we - have a base class to handle all the different configurations for - a gateway. - - * orbsvcs/orbsvcs/Event/Local_ESTypes.h: - Removed a lot of BOAImpl typesdefs, they were completely - outdated and quite ugly. - - * orbsvcs/orbsvcs/Event/RT_Task.cpp: - Added code to call ORB_init() no each thread, but it is - commented out until we know what arguments to pass and how. - - * orbsvcs/orbsvcs/Scheduler_Factory.h: - * orbsvcs/orbsvcs/Runtime_Scheduler.cpp: - We cannot use enums in the POD_RTInfo because those are hard to - generate correctly. - - * orbsvcs/tests/EC_Multiple/svc.conf: - I'm starting to set a more realistic config for the Event - Channel, but we still have a lot of work to do in this area. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - The test uses the automatic gateway connection now. - - * orbsvcs/tests/Simulator/Event_Supplier/Event_Sup.cpp: - The ConsumerQOS and SupplierQOS structure have changed. - - * TAO_IDL/driver/drv_preproc.cpp: - Fixed type in comment. - -Tue Jun 09 17:27:25 1998 Nanbor Wang - - * tao/Connect.{h,cpp} (activate): Added this method to - Default_Server_Connection_Handler so we can prepare information - for inheriting some objects/properties from the spawning thread. - (svc): Inherit and setup some properties/objects from the parent - thread. Currently, only root poa is inherited in spawned - threads. I should probably add another method called inherit () - to handle this. Anyhow, this solved the thread-per-connection - problem. - - * tao/ORB_Core.cpp (add_to_collocation_table): Removed the - explicit conversion from ACE_INET_Addr to ACE_Hash_Addr since - Irfan fixed ACE_Hash_Addr::operator==. - -Tue Jun 09 16:18:54 1998 David L. Levine - - * Makefile: removed old release targets. They're no longer - used, or maintained. Silenced the creation of INSTALL. - -Tue Jun 9 15:57:28 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader: The Trading Service now uses ACE - containers rather than stl containers. - - * orbsvcs/orbsvcs/Makefile: Since all stl containers in the - Trading Service have been replaced with ACE analogues, I've - updated the orbsvcs Makefile to eliminate the stl dependency. - -Tue Jun 09 15:41:53 1998 David L. Levine - - * TAO version 0.1.27 released. - -Tue Jun 9 15:14:09 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_operation.cpp: There was an error in the - generated code for the variable declaration of return types for - type Anys in the skeletons. Fixed. - -Tue Jun 9 13:29:19 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_typedef (be_visitor_typedef_ch::visit_predefined) - - We had forgottent to generate the typedef for the _var types for - pseudo objects and Anys. Thanks to Seth Widoff for reporting - this. - -Tue Jun 09 12:52:59 1998 Nanbor Wang - - * tao/ORB_Core.cpp (add_to_collocation_table): ACE_Hash_Addr must - be created with recyclable flag set to 1 otherwise the - Hash_Map_Manager can't find the object. - -Tue Jun 09 11:43:19 1998 David L. Levine - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: added newline to - shutdown message. - -1998-06-09 Torben Worm - - * Updated orbsvcs/tests/Concurrency/CC_command.h - Removed warnings generated by g++ - -Tue Jun 9 08:53:30 1998 Aniruddha Gokhale - - * TAO_IDL/be_include/be_codegen.h: Added two states (but no new - visitors) for argument passing to the upcall for the collocated - case. This was necessary since in this case, the argument is - passed as it is. In the skeleton case, we may have _var variables, - and hence we may have to pass the .in () or .inout () of those - _var variables. - - * TAO_IDL/be/{be_visitor_enum, be_visitor_exception, - be_visitor_interface, be_visitor_sequence, be_visitor_structure, - be_visitor_typedef, be_visitor_union}.cpp: - - Once again, due to the compulsions of the MSVC++ compiler and the - DLLs, we require the export/import macros for all the <<= and >>= - operators so that they are visible outside. - - * TAO_IDL/be/be_visitor_args.cpp: - TAO_IDL/be_include/be_visitor_args.cpp (be_visitor_upcall_ss): - - We were using _var variables to make sure that allocated memory - was released after the marshaling is done and the skeleton has - returned. However, for objrefs and strings, we ended up passing - the .in () values of these _var parameters. The expected value was - a pointer to the in () value. This is now corrected. - - Also dealt with the collocated case, where we simply pass the - argument from the parameter list to the upcall as it is. - - Due to these two differences, we had to add a bunch of visit_* - methods to the upcall_ss visitor. - - * TAO_IDL/be/be_visitor_operation.cpp: The same reasoning (case 1) - given for be_visitor_args.cpp holds here too for the return value - case. - -1998-06-08 Torben Worm - - * Updated orbsvcs/tests/Concurrency/CC_command.cpp because of an - error reported by g++ - - * Updated orbsvcs/tests/Concurrency/Makefile to reflect the - changed stated below - - * Added the following files: - orbsvcs/tests/Concurrency/CC_command.{h,cpp,y,l}: Command - interpreter for the test language for the concurrency service. - orbsvcs/tests/Concurrency/test.{basic,extended,e1,dinphil, - phil[1-5]: Tests for the concurrency service. - Updated: - orbsvcs/tests/Concurrency/{README,CC_client} to be aware of - the changes in CC_command. - -Mon Jun 08 09:41:52 1998 David L. Levine - - * tao/ORB_Core.cpp: added/fixed template instantiations. - -Sun Jun 7 17:54:31 1998 Nanbor Wang - - * docs/Options.html: Added options available for ORB, - Resource_Factory, and Default_Server_Strategy_Factory. - - * tao/IIOP_ORB.{h,cpp}: Removed _register_collocation from - IIOP_ORB and all usage of it. Also, when using a global - collocation table, it gets the table from the resource factory. - - * tao/ORB.h: Remove pure virtual function _register_collocation. - - * tao/ORB.cpp: Register the ORB's listening endpoint to the global - collocation table if we are using one. - - * ORB_Core.{h,i,cpp}: Added a new class TAO_COLTBL_Lock to choose - the lock to use in global collocation table at run time. - - Added a command option in ORB_Core to disable collocation - optimization and an option in Resource Factory to decide to use - a global collocation table or not. - - (using_collocation): Get whether we want to use the collocation - optimization. - - (add_to_collocation_table): Used to register a listening - endpoint when an ORB gets initialized. - - (get_collocated_poa): This function look thru the collocation - table and return the root poa associate with the ORB. - - (get_global_collocation_table): Return a pointer to the global - collocation table if we choose to use one, otherwise, return 0. - - * tao/Server_Strategy_Factory.{h,cpp} (create_coltbl_lock): Added - new method to allow not using a lock in the global collocation - table. - - * tao/default_server.{h,cpp} (create_coltbl_lock): Added - implementation of this method. - -Sat Jun 06 21:17:13 1998 Nanbor Wang - - * tests/Cubit/TAO/MT_Cubit/{server,client}.dsp: Both projects now - require to link against orbsvcs.lib. - -Sat Jun 6 20:32:26 1998 Douglas C. Schmidt - - * tests/OctetSeq/OctetSeq.cpp: Changed Test::_tc_CharSeq_seq and - Test::_tc_OctetSeq_seq to Test::_tc_CharSeq and - Test::_tc_OctetSeq. Thanks to David Levine for spotting this. - -Sat Jun 6 Alexander Babu Arulanthu - - * docs/orbsvcs.html: Changed the test directory from - CosPropertyService to Property. - -Sat Jun 6 Alexander Babu Arulanthu - - * Moved $TAO_ROOT/orbsvcs/tests/CosPropertyService to - $TAO_ROOT/orbsvcs/tests/Property. - -Sat Jun 6 18:55:51 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: - * tests/Cubit/TAO/MT_Cubit/Task_Client.h: - * tests/Cubit/TAO/MT_Cubit/client.cpp: - * tests/Cubit/TAO/MT_Cubit/cubit.idl: - * tests/Cubit/TAO/MT_Cubit/cubit_i.cpp: - * tests/Cubit/TAO/MT_Cubit/cubit_i.h: - * tests/Cubit/TAO/MT_Cubit/server.cpp: - * tests/Cubit/TAO/MT_Cubit/server.h: Changed the code to use the - same priority for all low priority clients. Deleted unnecessary - code that implemented a cubit factory, we now will use the file to - store/retrieve the iors. Fixed a bug having to with unsupported - fields in the rusage structure for NT. - -Sat Jun 6 17:35:59 1998 Douglas C. Schmidt - - * TAO_IDL/be/be_visitor_interface.cpp: Added CORBA::Environment - &env to the _default_POA() tie method. Thanks to David Levine - for reporting this. - - * orbsvcs/orbsvcs/Log/Logger_i.cpp: Added a simple-minded - implementation of the log() method. This can certainly be - improved... - -Fri Jun 5 16:02:54 1998 Carlos O'Ryan - - * tao/CDR.h: - * tao/CDR.i: - * tao/CDR.cpp: - The output CDR class uses the Data_Block directly to minimize - memory allocation. - This has taken the count of memory allocations to 4 on the - client side and 4 on the server side. - - * tao/GIOP.cpp: - OutputCDR::stream() now returns a const message block. - - * tests/Param_Test/client.cpp: - * tests/Param_Test/driver.h: - * tests/Param_Test/driver.cpp: - * tests/Param_Test/options.h: - * tests/Param_Test/options.cpp: - * tests/Param_Test/param_test.idl: - * tests/Param_Test/param_test_i.h: - * tests/Param_Test/param_test_i.cpp: - It is now possible to shutdown the server using a method, this - is useful to test memory leaks because the client can request a - clean shutdown (using the option -x). - - * TAO_IDL/be/be_visitor_operation.cpp: - For some types the return values were not deleted at the end of - the upcall. I'm using T_var classes to automatically release the - memory. - -Fri Jun 5 12:22:44 1998 Darrell Brunsch - - * tao/debug.{h,cpp}: Added TAO_orbdebug flag so TAO code - does not check the flag in Service Configurator anymore. - That way, it should still work when there isn't a - Service Configurator. - - * tao/Connect.cpp: Made the switch to TAO_orbdebug. - - * tao/ORB_Core.cpp: First, since the semantics of the -d - flag in the Service Configurator now means to suppress - debug messages, it is now passed in by default unless - -ORBdebug was specified. Also sets TAO_orbdebug when - -ORBdebug is specified. - -Thu Jun 04 05:05:39 1998 Douglas C. Schmidt - - * TAO version 0.1.26 released. - -Thu Jun 04 03:45:12 1998 Nanbor Wang - - * TAO_IDL/be/be_visitor_interface.cpp - (be_visitor_interface_sh::visit_interface): Don't change the - output stream until the template declaration part is complete. - This delayed redirection of output writes the generated template - classes into regular *S.h file and get them enclosed by - appropriate namespace there. Perhaps we can put them in the - *S_T.h files, but that won't make platforms which don't have - namespace support happy. - - * TAO_IDL/be/be_visitor_module.cpp - (be_visitor_module_sh::visit_module): Changed to use - TAO_NAMESPACE as server side's module namescope. - -Wed Jun 3 17:50:09 1998 Aniruddha Gokhale - - Irfan Pyarali discussed the need to generate *_T.{h, i, cpp} files - that hold the generated code for the TIE classes. The *_T.h file - uses the ACE_TEMPLATES_REQUIRE_SOURCE and - ACE_TEMPLATES_REQUIRE_PRAGMA macros to conditionally include the - *_T.cpp files. The following changes were necessary to suport - these features. - - * TAO_IDL/be_include/be_codegen.h - TAO_IDL/be/be_codegen.cpp: - - Added more methods and data mebers for the server-side template - files that have the code for the TIE classes. The added methods - are: start_server_template_header, start_server_template_inline, - start_server_template_skeletons, end_server_template_header, and - end_server_template_skeletons. The corresponding data members were - added. - - * TAO_IDL/be_include/be_helper.h: Added 3 new enumerations for the - three newly introduced streams that will hold code for the TIE - classes. - - * TAO_IDL/be_visitor_interface.cpp: We now initialize the visitor - context of the TIE visitors with the appropriate *_T.{h, i} files. - - * TAO_IDL/be_visitor_root.cpp: Made calls to initialize and close - the newly added streams that hold the code for the TIE classes. - - * TAO_IDL/include/idl_global.h: - TAO_IDL/utils/utl_global.cpp: - - Added new methods that generate names for the newly introduced - streams that hold the code for TIE classes. These methods are: - be_get_server_template_fname, be_get_server_template_inline_fname, - be_get_server_template_inline_skeleton_fname and their - corresponding helper methods. - -Tue Jun 2 18:57:08 1998 Aniruddha Gokhale - - * TAO_IDL/be/{be_visitor_enum, be_visitor_exception, - be_visitor_interface, be_visitor_sequence, be_visitor_structure, - be_visitor_typedef, be_visitor_union}.cpp: - Factored out some code that should have been placed inside the - TypeCode visitors. - - * TAO_IDL/be/be_visitor_typecode.cpp: Added teh factored out code - mentioned above. - - * TAO_IDL/be_include/be_codegen.h: Added a few more enumerations - that deal with generation of the TIE classes and code for - interfaces, operations and attributes. - - * TAO_IDL/be/be_visitor_attribute.cpp: Added cases to deal with - attribute mapping inside a TIE class. - - * TAO_IDL/be_include/be_visitor_interface.h - TAO_IDL/be/be_visitor_interface.cpp: - - Added 2 new visitors for generation of the TIE class and its code - in the server header and server inline file. - - * TAO_IDL/be_include/be_visitor_operation.h - TAO_IDL/be/be_visitor_operation.cpp: - - Added 2 new visitors for generation of the operations and its code - inside the TIE class in the server header and server inline file. - - * TAO_IDL/be/be_interpretive.cpp: Added cases for the TIE visitors - for interfaces, operations and attributes. - - * docs/releasenotes.index.html: Updated to indicate support for - TIEs. - -Tue Jun 02 08:35:58 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/server.cpp: added cast to avoid - signed/unsigned comparison. - - * tests/Cubit/TAO/MT_Cubit/server.cpp: added cast to avoid - signed/unsigned comparison. Reordered initializers to - match declaration order. - -Tue Jun 02 08:29:20 1998 David L. Levine - - * orbsvcs/Event_Service/Makefile,orbsvcs/tests/EC_Multiple/Makefile, - orbsvcs/tests/Event_Latency/Makefile,tao/Makefile: - moved probe=1 support from individual Makefiles to - wrapper_macros.GNU. - -Mo Jun 1 21:36:00 1998 Michael Kircher - - * tests/Quoter: Several files had to be modified in order - to use the LifeCycle Service now as a separate object as - part of the orbsvcs. - - * orbsvcs/LifeCycle_Service: Did some more customizations. - -Mon Jun 1 15:48:28 1998 Aniruddha Gokhale - - * tao/orbconf.h: Modified the TAO_NAMESPACE related macros. Added - some more to deal with the nested namespaces that can occur due to - nested modules. - - * TAO_IDL/be_include/be_visitor_typecode.h - TAO_IDL/be/be_visitor_typecode.cpp: - - Added two new files that define a new visitor which will - generate code for different types. The TypeCode generation now - uses the different NAMESPACE related macros described above. - - * TAO_IDL/be_include/be_codegen.h: Added two new enumerations for - the TypeCode generating visitors. - - * TAO_IDL/be/{be_visitor_enum, be_visitor_exception, - be_visitor_interface, be_visitor_sequence, be_visitor_structure, - be_visitor_typedef, be_visitor_union}.cpp: Used the new TypeCode - visitors. One advantage of using these is that all code gets - factored into a visitor. At the same time, we can conditionally - opt not to generate the TypeCodes. This may be desired for - compiled marshaling. - - In be_visitor_sequence.cpp, we do not generate the typecode if the - sequences was typedefed. - - * TAO_IDL/be_include/be_visitor_constant.h - TAO_IDL/be/be_visitor_constant.cpp: Added similar logic to the - TypeCode generation when constants are defined insided modules - that get mapped to namespaces. - - * TAO_IDL/be/be_interpretive.cpp: Added cases to deal with the two - new TypeCode generating visitors. - - * TAO_IDL/fe/{idl.yy, y.tab.cpp}: Removed some incorrect code in - the action part of the idl.yy file. - - * TAO_IDL/Makefile: Reran make depend. - -Mo Jun 1 14:37:00 1998 Chris Gill - - * orbsvcs/orbsvcs/RtecScheduler.idl - orbsvcs/orbsvcs/Runtime_Scheduler.{cpp, h} - orbsvcs/orbsvcs/Scheduler_Factory.{cpp, h} - orbsvcs/orbsvcs/Event/Dispatching_Modules.{cpp, h, i} - orbsvcs/orbsvcs/Event/Event_Channel.cpp - orbsvcs/orbsvcs/Event/RT_Task.cpp - orbsvcs/orbsvcs/Sched/Config_Scheduler.{cpp, h} - orbsvcs/orbsvcs/Sched/DynSched.{cpp, h} - orbsvcs/orbsvcs/Sched/SchedEntry.h - orbsvcs/orbsvcs/Sched/Scheduler.{cpp, h} - - Removed Dynamic Subpriority from RtecScheduler IDL - interface: both static and dynamic subpriorities - now map into a single preemption subpriority value - - * orbsvcs/tests/Sched_Conf/Sched_Conf.cpp - orbsvcs/tests/Sched_Conf/Sched_Conf.{dsp, dsw} - orbsvcs/tests/Sched_Conf/Makefile - - Added a "test" program that simulates a configuration - run and generates a runtime scheduler header: to use - the strategized scheduler for static RMS scheduling, - put the following at the beginning of ace/config.h: - - #define TAO_USES_STRATEGY_SCHEDULER - #define TAO_USES_RMS_SCHEDULING - #define TAO_MIN_CRITICAL_PRIORITY 3 - -Mo Jun 1 10:16:00 1998 Michael Kircher - - * docs/orbsvcs.html: Added the LifeCycle Service to the list - of services. - - * docs/releasenotes/index.html: Added new information about - DOVE to the file. - -Mo Jun 1 10:16:00 1998 Michael Kircher - - * orbsvcs/LifeCycle_Service: Created the LifeCycle Service. - - * orbsvcs/Makefile: Added the LifeCycle Service to the list - of directories. - - * orbsvcs/orbsvcs/Makefile: Added the LifeCycleService* files. - - * orbsvcs/orbsvcs/LifeCycleService.idl: Created an IDL - file describing the interface of the LifeCycle Service. - -Fri May 29 17:58:16 1998 Douglas C. Schmidt - - * TAO version 0.1.25 released. - -Fri May 29 16:03:00 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/IDL_Cubit_Test.cpp: Removed the - terminate calls by adding -x option to the client so that it shuts - down the server. - -Fri May 29 13:00:35 1998 Michael Kircher - - * tests/Quoter/Factory_Trader.cpp: CosTradingC.h is only - parsed when the trading service is available. - -Fri May 29 11:02:35 1998 Aniruddha Gokhale - - * tao/orbconf.h: Removed an unnecessary OR condition for the - TAO_NAMESPACE macro. - -Fri May 29 09:15:49 1998 Douglas C. Schmidt - - * tao/ORB_Core.cpp (init): Added code to pass svcconf directives - to the Service Configurator. Thanks to Mark Boriack for - contributing this. - - * tao/ORB_Core.cpp (init): Make sure that we dynamically - string_dup() ALL the argv/argc arguments, not just some of them, - so that we can correctly clean stuff up when we're done. - -Thu May 28 14:32:07 1998 Aniruddha Gokhale - - * tao/Server_Request.cpp:(demarshal, marshal): more optimizations - to get rid of the NVList and other DSI-centric logic in the - handling of static skeletons generated by the IDL compiler. These - optimizations are the result of my discussions with Irfan - Pyarali. - -Thu May 28 11:37:35 1998 Aniruddha Gokhale - - * tao/orbconf.h: Removed the TAO_NAMESPACE_STORAGE_CLASS macro. - - * tao/CurrentS.cpp: In the initialization of the constructor, we - were calling the default ctor of the base class. However, we now - call the other ctor that takes the stub object and servant as - arguments. - - * tao/{encode, decode}.cpp: In Struct::{encode, decode}, I had - made an erroneous change a few days back where I was passing the - address of a pointer. This was for the Objref and Typecode - cases. Carlos pointed this out. Seth was getting lots of errors - due to this. This has been fixed. - - * TAO_IDL/be/{be_visitor_enum, be_visitor_exception, - be_visitor_interface, be_visitor_sequence, be_visitor_structure, - be_visitor_typedef, be_visitor_union}.cpp: - - Reverted my previous change where I generated the - TAO_NAMSPACE_STORAGE_CLASS macro if the data type was nested. We - no more generate this macro and this macro has been removed from - orbconf.h as explained above. - -Thu May 28 00:08:19 1998 Irfan Pyarali - - * tao/orbconf.h (TAO_NAMESPACE_STORAGE_CLASS): Changed it from - extern to static. - - * orbsvcs/orbsvcs/Naming/Entries.h: Removed the default for the - binding type in the constructor of NS_IntId. It was breaking - VC5.0 if CosNaming was a namespace. - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp (rebind): Added - CosNaming::nobject as the binding type to NS_IntId instances - since the default was removed in the constructor. - -Wed May 27 17:56:07 1998 Nanbor Wang - - * TAO_IDL/be/be_visitor_module.cpp (visit_module): Supress - generation of NT export specifier after TAO_NAMESPACE. - - * tao/CurrentS.cpp (_tao_collocated_Current): Changed - "ACE_NESTED_CLASS (CORBA,Current)" to "CORBA_Current". - - * tao/POAS.cpp (_tao_collocated_Current): Changed - "POA_CORBA::_tao_collocated_Current" to ACE_NESTED_CLASS - (POA_CORBA,_tao_collocated_Current). - - * tao/POA_CORBA.h (_tao_collocated_Current): Changed its base - class to CORBA_Current. - -Wed May 27 16:08:10 1998 Aniruddha Gokhale - - * TAO_IDL/be/{be_visitor_enum, be_visitor_exception, - be_visitor_interface, be_visitor_sequence, be_visitor_structure, - be_visitor_typedef, be_visitor_union}.cpp: - - The typecode declarations generated in the header file for - user-defined IDL types used to be "static" if the data type was - enclosed inside a module. However, for platforms that support - "namespaces", this should be extern. Hence we generate a macro - called "TAO_NAMESPACE_STORAGE_CLASS" defined in tao/orbconf.h - - * orbsvcs/orbsvcs/Makefile: Ran make depend since some files in - TAO/tao were removed. - - * tao/PolicyS.{h, i}: Removed from the CVS repository - - * tao/CurrentC.{h, i, cpp} - tao/CurrentS.cpp: Added to the repository. This defined the - interface Current in the CORBA namespace. *NOTE* these are newly - added files. - - * tao/ORB.h: Moved Declarations for RepositoryID and Identifier - from the POA namespace to the CORBA namespace. Also added some - more TypeCode declarations e.g., _tc_Current, _tc_Identifier, - others. - - * tao/POAC.{h, i, cpp}: Removed everything related to - CurrentBase. RepositoryID and Identifier are now in the CORBA - namespace instead of the PortableServer namespace. - - * tao/POAS.{h, cpp}: PortableServer::Current now inherits from - POA_CORBA::Current instead of PortableServer::CurrentBase. - - * tao/POA_CORBA.h: Merger of the PolicyS.h and CurrentS.h - files. It defines the POA_CORBA namespace which is the C++ mapping - for the CORBA module for the server-side. It defines the Policy - and Current classes for the server-side. *NOTE* This is a newly - introduced file. - - * tao/PolicyC.cpp: Moved the definition of the _tc_Policy typecode - to the TypeCode constants file since this is owned by the ORB. - - * tao/Servant_Base.{h, cpp}: PortableServer::RepositoryId is now - CORBA::RepositoryId. - - * tao/Typecode_Constants.cpp: Added new typecode definitions for - all the newly introduced stuff as well as moved stuff such as - Current, Policy, PolicyType, PolicyList, RepositoryId, and - Identifier. - - * tao/orbconf.h: TAO_NAMESPACE macro is now "namespace" for - platforms that supports it. Needs to be checked. - - * tao/Makefile: Did make depend. - -Wed May 27 12:53:01 1998 David L. Levine - - * orbsvcs/tests/EC_Multiple/Makefile: ran make depend to - remove dependency on tao/Timeprobe.i. - - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: added casts of - ACE_hrtime_t to long now that ACE_hrtime_t is an __int64 on WIN32. - Thanks to Irfan for reporting this. - -Tue May 26 22:25:23 1998 Nanbor Wang - - * tao/ORB.cpp (CORBA_ORB): Never assume a pointer will be - initialized to null. - -Tue May 26 21:32:03 1998 Douglas C. Schmidt - - * tao/GIOP.cpp (recv_request): Changed CDR::grow() to take an - ACE_Message_Block * rather than an ACE_Message_Block *& since we - don't seem to change the message block pointer in the method. - Thanks to Nanbor for reporting this. - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp (new_context): Add a - couple of calls to the new init() method in the appropriate - places. - - * orbsvcs/orbsvcs/Naming/CosNaming_i: Changed the implementation - so there's now an init() method that must be called before using - the NamingContext. This is necessary to make sure we don't try - to initialize the lock_ until the ORB has been initialized. - - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp: Changed the - implementation to call init() on the NamingContext - implementation. - -Tue May 26 20:22:12 1998 Carlos O'Ryan - - * tao/CDR.h: - * tao/CDR.i: - * tao/CDR.cpp: - * tao/GIOP.cpp: - I was able to remove a memory allocation on the client side by - playing some tricks with the underlying Data_Block. - - * tests/CDR/basic_types.cpp: - The ORB was destroyed before the test was run, hence all the - Typecodes were invalid. - - * tests/Param_Test/tests.cpp: - Disabled several DII tests because they will not compile. - -Tue May 26 18:39:11 1998 Carlos O'Ryan - - * tao/ORB.h: - * tao/ORB.cpp: - * tao/Server_Strategy_Factory.h: - * tao/Server_Strategy_Factory.cpp: - * tao/default_server.h: - * tao/default_server.cpp: - Added options to control the kind of locking in the ORB event - loop (i.e. ORB::run), by default it acquires no locks. - - * tao/Object.h: - * tao/Object.i: - All the objects in the ORB that are reference counted do *not* - have locks to protect the count. - -Tue May 26 16:24:41 1998 Carlos O'Ryan - - * tao/Server_Request.h: - * tao/Server_Request.cpp: - The Server Request does not need to copy the operation name from - the CDR stream. In TAO there is no translation for strings and - the underlying stream survives during all the invocation. - Fortunately the strings in CDR are zero terminated. - -Tue May 26 12:40:30 1998 Douglas C. Schmidt - - * tao/ORB.cpp: We seem to have an extra comma here... - -Tue May 26 10:32:12 1998 Nanbor Wang - - * TAO_IDL/tao_idl.dsp: Updated project files per Andy's changes. - -Tue May 26 10:03:51 1998 David L. Levine - - * tests/NestedUpcall/server.cpp (init_naming_service): dereferenced - the parameters to init () call. - - * tests/NestedUpcall/client.{h,cpp}: moved template instantiations - from .h file to .cpp file. Removed unused instantiations. - - * tests/NestedUpcall/NestedUpCalls_Test.cpp,NestedUpCalls_i.h, - client.{h,cpp},eh_i.{h,cpp},reactor_i.{h,cpp},server.h: - removed trailing ^M's from all lines. - -Tue May 26 09:51:20 1998 Aniruddha Gokhale - - This ChangeLog entry describes massive cleaning efforts to - remove all unwanted code as well as some more additions and - modifications to the TAO IDL compiler. - - * TAO_IDL/Makefile: Removed compilation of all the be_state* - files. - - * TAO_IDL/be_include/be_decl.h - TAO_IDL/be/be_decl.cpp: - Removed the gen_client_header, gen_client_inline, - gen_client_stubs, gen_server_header, gen_server_inline, - gen_server_skeleton methods. - - * TAO_IDL/be_include/ - - be_argument.h - be_array.h - be_attribute.h - be_constant.h - be_enum.h - be_enum_val.h - be_exception.h - be_field.h - be_interface.h - be_interface_fwd.h - be_module.h - be_native.h - be_operation.h - be_predefined_type.h - be_root.h - be_scope.h - be_sequence.h - be_string.h - be_structure.h - be_typedef.h - be_union.h - be_union_branch.h - - AND - - TAO_IDL/be/ - - be_argument.cpp - be_array.cpp - be_attribute.cpp - be_constant.cpp - be_enum.cpp - be_enum_val.cpp - be_exception.cpp - be_field.cpp - be_interface.cpp - be_interface_fwd.cpp - be_module.cpp - be_native.cpp - be_operation.cpp - be_predefined_type.cpp - be_root.cpp - be_scope.cpp - be_sequence.cpp - be_string.cpp - be_structure.cpp - be_typedef.cpp - be_union.cpp - be_union_branch.cpp - - Removed the gen_client_header, gen_client_inline, - gen_client_stubs, gen_server_header, gen_server_inline, - gen_server_skeleton methods. - - * TAO_IDL/be_include/be_codegen.h - TAO_IDL/be/be_codegen.cpp: - - Added a bunch of enumerations for code generation of the Any <<= - and >>= operators for all the IDL types - - Removed a bunch of methods and data members that were used for - the state based approach. - - * TAO_IDL/be_interpretive.cpp: Added cases for the newly - introduced enumerations for the <<= and >>= operators. - - * TAO_IDL/be_produce.cpp: added more documentation. - - * TAO_IDL/be_include/ - AND - TAO_IDL/be - - {be_visitor_enum, be_visitor_exception, be_visitor_interface, - be_visitor_module, be_visitor_root, be_visitor_sequence, - be_visitor_structure, be_visitor_typedef, be_visitor_union}.{h, - cpp}: - - Added visitors to each class called be_visitor_*_any_op_{ch,cs} to - each file. These generate the <<= and >>= operators for all the - types. - - * TAO_IDL/be_visitor_scope.cpp: Added a check to see if a node in - the scope is NUL or not. - - * TAO_IDL/be_include/be_state.h - - AND - - TAO_IDL/be/ - {be_state, be_state_argument, be_state_array, be_state_attribute, - be_state_exception, be_state_exception, be_state_operation, - be_state_sequence, be_state_structure, be_state_typedef, - be_state_union}.cpp: - - All these files are no longer needed. - -Tue May 26 09:40:42 1998 Carlos O'Ryan - - * tests/Makefile: - NestedUpcall was not on the list. - - * tests/NestedUpcall/Makefile: - Added a .PRECIOUS directive. - - * tests/NestedUpcall/Reactor.idl: - The file was full of ^M (i.e. it was using DOS end-of-line) - characters; that was confusing the IDL compiler. - - * TAO_IDL/be/be_visitor_args.cpp: - The code generation for strings and anys as out parameters was - broken. - -Tue May 26 01:46:23 1998 Irfan Pyarali - - * tao/Timeprobe.h: Broke up this file in small pieces. The time - probe map is now split over many files, reducing the - dependencies. - -Mon May 25 18:42:25 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/IDL_Cubit_Test.cpp: added - -ORBobjrefstyle url and -ORBport 0 to both the client and server - arguments. - -Mon May 25 15:54:01 1998 Carlos O'Ryan - - * tao/Timeprobe.h: - Protected the file against multiple inclusion. - - * tao/Makefile: - * tao/orbsvcs/orbsvcs/Makefile: - Updated dependencies. - -Sat Apr 18 01:27:52 1998 Irfan Pyarali - - * tao/Timeprobe.h: Added more timeprobes to POA, ORB, and GIOP. - - * TAO: Change the use of time probes. The new ACE scheme is now - used. - -Mon May 25 11:58:35 1998 Carlos O'Ryan - - * tests/Quoter/client.cpp: - * tests/Quoter/Factory_Finder.cpp: - * tests/Quoter/Generic_Factory.cpp: - * tests/Quoter/Life_Cycle_Service.cpp: - Added several .in() calls to disambiguate things, otherwise g++ - gets really confused. - -Mon May 25 10:04:52 1998 Carlos O'Ryan - - * tao/GIOP.cpp: - Removed some superflous memory allocations and copys. - - * tao/CDR.cpp: - write_octet_array_mb() was returning -1, but it should return a - CORBA_Boolean, thanks to David Levine (levine@cs.wust.edu) for - detecting this one. - -Mon May 25 09:55:36 1998 David L. Levine - - * ace/Sequence.cpp (TAO_Unbounded_Sequence ctor): initialize base - class before data members. - -Sun May 24 22:04:34 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_args.cpp: - Fixed some mistakes in previous change. - -Sat May 23 21:50:00 1998 Carlos O'Ryan - - * tao/CDR.h: - * tao/CDR.i: - * tao/CDR.cpp: - The no copy marshalling of octet sequences can only be applied - if the octet sequence owns its memory through a message block. - - * tao/Connect.cpp: - The input stream is allocated from the heap to permit the no - copy optimizations to work. - - * tao/GIOP.cpp: - Fixed some unitialized memory read problems. - - * tao/Request.cpp: - The result was not released. - - * tao/Sequence.h: - * tao/Sequence.cpp: - Added constructor based on a Message_Block. - Fixed memory deallocation in _allocate_buffer() for octet - sequences. - - * tao/Typecode.cpp: - The buffer was not released every time. - - * TAO_IDL/be/be_visitor_args.cpp: - The return value must be allocated by the upcall and is held in - a _var variable to guarantee automatic release. - - * tests/Cubit/TAO/IDL_Cubit/client.cpp: - The result is released by the request, no need to release it in - the invocation. - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: - Initialize the octet sequence using a Message Block to exploit - the no copy marshalling. - - * tao/Any.cpp: - The cdr buffer must be released always. - -Fri May 22 16:39:14 1998 Nanbor Wang - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp (NS_NamingContext): Use - the lock returned by server_factory ()-> create_servant_lock () - instead of hacking its own. - - * tao/default_server.cpp (create_servant_lock): Changed to use - ACE_Recursive_Thread_Mutex to avoid further trouble. - -Fri May 22 12:29:28 1998 Irfan Pyarali - - * tao/Connect.cpp (handle_message): Simplified code in this file. - - * tao/GIOP.cpp (writev_n): Changed TAO to use the new - ACE_IO_Vector class. - - * poaC.* (PortableServer): Updated the old exceptions in the POA - generated code. - - * tao/Server_Request.h (IIOP_ServerRequest): Merged the - ServerRequest and the GIOP_RequestHeader class into one - class. When these classes were separate, there were too many - questions about ownership of memory. The separation also caused - extra memory allocations and tight coupling between the two - classes. - -Fri May 22 10:24:48 1998 David L. Levine - - * tests/Quoter/Factory_Finder.cpp,Generic_Factory.cpp, - Life_Cycle_Service.cpp,Quoter_Impl.cpp: - added explicit int return value to function definition. - - * tests/Quoter/Criteria_Evaluator.cpp (getInitialization): - initialized sequence_ptr to 0 to avoid warning about use - of uninitialized variable. It looks like the implementation - is incomplete, though. - -Fri May 22 10:15:30 1998 Carlos O'Ryan - - * tao/ORB_Core.cpp: - The -ORBCDRtradeoff option had no effect, thanks to David Levine - (levine@cs.wust.edu) for catching that one. - -1998-05-22 Torben Worm - - * orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp - Removed unreached statement - -Fri May 22 07:34:35 1998 David L. Levine - - * TAO version 0.1.24 released. - -Thu May 21 21:59:19 1998 David L. Levine - - * TAO version 0.1.23 released. - -Thu May 21 17:28:55 1998 David L. Levine - - * tao/GIOP.cpp (writev_n): added static cast of iov_len to - ssize_t to avoid signed/unsigned comparison. - - * tests/OctetSeq/OctetSeq.cpp (main): changed type of loop - index to u_int to avoid signed/unsigned comparison. - -Thu May 21 12:16:34 1998 Carlos O'Ryan - - * tests/Cubit/TAO/MT_Cubit/Makefile: - orbsvcs should go before TAO in the link line. - - * tests/Quoter/Makefile: - Pass a -I flag to the IDL compiler so it can find the - CosLifeCycle.idl file. - - * tests/POA/Default_Servant/Makefile: - * tests/POA/Generic_Servant/Makefile: - Added dependencies. - - * tests/OctetSeq/Makefile: - Updated dependencies. - - * tests/OctetSeq/OctetSeq.cpp: - Removed yet another signed/unsigned comparison. - Also was doing the wrong kind of cast. - - * tao/GIOP.cpp: - Fixed pointer airthmetic, it was done using "void*" instead of - "char*". - - * tao/CDR.cpp: - Fixed problems in error detection for OutputCDR::adjust. - -Wed May 20 21:25:33 1998 David L. Levine - - * tao/CDR.cpp: Changed a few locals from int to size_t to - avoid signed/unsigned comparison. Added const to a char * - reinterpret cast. Wrapped and unreachable return with - ACE_NOTREACHED. - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: started migration - to ACE_Stats. - -Wed May 20 16:44:29 1998 Nanbor Wang - - * tao/tests/NestedUpcall/{server,client}.dsp: Updated settings. - -Wed May 20 12:54:40 1998 Irfan Pyarali - - * tao/POA: Added the following optimizations to the POA: - - - Use the new ACE_CString to make sure that no malloc/strcpy are - done while the IOR is being parsed. This optimization is - valid irrespective of how deep/long the POA name is. - - - The class that holds the ObjectId in the IOR is now allocated - off the stack instead of coming from the heap. - - - Timestamping and checking for persistent/transient Ids in the - POA can be disabled by using POA_NO_TIMESTAMP flag in the TAO - config file. - - * tao/ORB_Core.cpp (create_and_set_root_poa): Renamed the RootPOA - from "RootPOA" to "" (the empty string). - -Wed May 20 12:10:12 1998 Carlos O'Ryan - - * tao/CDR.h: - * tao/CDR.i: - * tao/CDR.cpp: - OutputCDR buffers grow by appending a message blocks using the - cont() field. - - * tao/GIOP.cpp: - When sending an OutputCDR use writev to send the message block - chain. - - * tao/decode.cpp: - Added support for no copy marshalling of octet sequences. - - * tao/decode.cpp: - * tao/encode.cpp: - Reverted part of a change by Andy because it simply breaks tons - of code. The change in question was passing the address of a - pointer to a string (or wstring) to the - marshlling/dermarshalling interpreter, but only when the string - was a field of a structure. - - * tao/orbconf.h: - * tao/params.h: - * tao/params.i: - * tao/params.cpp: - * tao/ORB_Core.cpp: - * docs/Options.html: - Added options to control the tradeoff between copy vs. no copy - marshalling of octet sequences. If the octet sequence is "small - enough" and the current CDR buffer contains enough space the - octet sequence is copied instead of chained with the buffer. - - * tao/Typecode.cpp: - More fixes to avoid crashes at shutdown. - - * tao/Any.cpp: - The start() method was changed to begin() it looks more STL - like. Also removed a bunch of casts that are no longer needed. - - * tao/Align.h: - Corrected a typo in a comment. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - Reduce the maximum number of suppliers, consumers and messages, - otherwise we exceed the maximum stack size on NT. - - * orbsvcs/Event_Service/Event_Service.cpp: - Fixed error message. - - * tests/CDR/CDR.dsw: - * tests/CDR/growth.dsw: - * tests/CDR/growth.dsp: - Added growth to the project file. - - * tests/CDR/growth.cpp: - Workaound MSVC++ bug wrt conversions from UINT64 to double. - - * tests/Cubit/TAO/IDL_Cubit/client.cpp: - Use larger sequences. - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: - Fixed ambiguous use of [] operator. - - * tests/Cubit/TAO/IDL_Cubit/client.dsp: - * tests/Cubit/TAO/IDL_Cubit/server.dsp: - For Win32 Debug we use aced.lib. - - * tests/Cubit/TAO/MT_Cubit/server.dsp: - Added orbsvcs.lib to the library list. The client will not - compile due to unportable use of getrusage. - - * tests/OctetSeq/OctetSeq.dsw: - * tests/OctetSeq/OctetSeq.dsp: - Added a project file for this test. - - * tests/OctetSeq/OctetSeq.cpp: - Fixed several portability problems. - The OutputCDR is not preallocated. - - * tests/Param_Test/tests.cpp: - Fixed bug in bounded string sequence test. - -1998-05-20 Torben Worm - - * orbsvcs/tests/Concurrency/CC_client.cpp - Fixed errors causing compilation problems on VxWorks. - -Wed May 20 08:40:51 1998 David L. Levine - - * orbsvcs/orbsvcs/Propery/CosPropertyService_i.cpp: fixed - instantiation #pragmas. - - * orbsvcs/orbsvcs/Naming/Naming_Service.cpp (parse_args): - removed break; following an ACE_ERROR_RETURN, to avoid compile - warning. - - * tao/POAC.cpp: initialized some retvals, of enum types, to -1 - to avoid GHS compile warnings. The warnings were all in - exception handling blocks, so performance isn't an issue here. - - * tests/Cubit/TAO/IDL_Cubit/README: added instructions on how - to build the client without the ACE and TAO libraries for - VxWorks. Thanks to Umar Syyid for asking - about this. - -Tue May 19 12:19:42 1998 Carlos O'Ryan - - * tao/Typecode.cpp: - Fixed crash at shutdown, TypeCode is a reference counted type, - but in some points they were removed by a simple "delete". - -Mon May 18 16:46:46 1998 Irfan Pyarali - - * tao/POA.cpp (parse_key): Changed the processing of IORs so that - POA names are not copied. Only a pointer is kept to the correct - place in the IOR. - -Mon May 18 12:34:57 1998 Darrell Brunsch - - * tao/Connect.cpp: Debug messages now check - Service_Configurator::debug() to see if -ORBdebug - is specified. - -Mon May 18 09:00:00 1998 Chris Gill - - * orbsvcs/orbsvcs/Sched/Config_Scheduler.h: added forward - declarations of scheduling strategy and dynamic scheduler - classes - - * orbsvcs/Scheduling_Service/Scheduling_Service.cpp: added - conditional inclusion of strategy scheduler header file. - -Sat May 16 13:56:01 1998 David L. Levine - - * orbsvcs/orbsvcs/Channel_Clients_T.h - (ACE_Push{Consumer,Supplier}_Adapter); added (private) - declarations of copy constructors. g++ 2.7.2.3/Solaris - needs them, to avoid missing definitions of the copy - constructors when linking with orbsvcs/EC_Gateway.cpp. - - * orbsvcs/orbsvcs/tmplinst-orbsvcs.cpp: added TAO_Object_Manager - instantiations. g++/LynxOS 2.5.0 needs them. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp (print_priority_info): - replaced Solaris priocntl () system calls with a call to - ACE_OS::lwp_getparams (). This allowed removal of #includes - of the priocntl headers, which were causing warnings with - g++ because _REENTRANT was #defined after they were #included. - - * orbsvcs/orbsvcs/Propery/CosPropertyService_i.cpp: fixed - instantiation #pragmas. - -1998-05-15 Alexander Babu Arulanthu - - * orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp - (delete_all_properties): Removed the warnings by having _out - variables instead of having _var variables. - -1998-05-15 Torben Worm - - * orbsvcs/orbscvs/Concurrency/CC_Lock: - Added some debugging statements - * orbsvcs/tests/Concurrency/CC_client.cpp - orbsvcs/tests/Concurrency/CC_client.h - orbsvcs/tests/Concurrency/CC_naming_service.cpp - orbsvcs/tests/Concurrency/CC_naming_service.h - orbsvcs/tests/Concurrency/CC_tests.cpp - orbsvcs/tests/Concurrency/CC_tests.h: - Added more tests and diagnostics - -Fri May 15 11:12:26 1998 David L. Levine - - * orbsvcs/orbsvcs/Makefile: re-enabled EC_Gateway build. The - problem appears to be only with g++. - - * orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp: added - template instantiations. - - * orbsvcs/orbsvcs/Makefile: re-enabled CosPropertyService_i.cpp - build. - - * Makefiles in orbsvcs and tests: removed DCFLAGS = -g. That - should only be defined in the ACE platform_macros file. - -Fri May 15 10:42:22 1998 Carlos O'Ryan - - * tests/POA/Makefile: - * tests/POA/Forwarding/Makefile: - Removed the Forwarding test because it only compiles on NT. - - * tests/POA/Generic_Servant/Makefile: - Removed outdated comment. - -Fri May 15 09:33:47 1998 David L. Levine - - * TAO version 0.1.22 released. - -Fri May 15 08:40:40 1998 David L. Levine - - * orbsvcs/orbsvcs/tmplinst-orbsvcs.cpp: added template - instantiations. - - * orbsvcs/orbsvcs/Makefile: commented out Event/EC_Gateway and - Property/CosPropertyService_i because they cause build failures. - - * Makefile: added .PHONY for phony targets. - -Fri May 15 00:25:29 1998 Douglas C. Schmidt - - * TAO version 0.1.21 released. - -Thu May 14 16:39:15 1998 Aniruddha Gokhale - - * tao/Server_Request.{h,cpp}: Added an extra environment parameter - to the marshal method. This change was required since we wanted to - keep the ORB related exceptions and the user supplied - operation-raised exceptions to be separate. - - * tao/{POAS,PolicyS}.cpp: Made several changes to the IDL - compiler-generated code that were necessary due to the changes - made to the Server_Request's marshal interface explained above. - - * tao/{encode,decode}.cpp: Made a minor change by passing the - address of the void pointer for the string and object cases. This - needs to be thoroughly tested. - - * tao/orbconf.h: Added a conditional macro called TAO_NAMESPACE - that generates either "namespace" or "struct". - - * TAO_IDL/be/be_visitor_module.cpp: The code for the module now - uses the TAO_NAMESPACE macro. - - * TAO_IDL/be/be_visitor_constant.cpp: We were not checking of the - constant was imported or not. In addition, inside the stub - generation code, we were incorrectly checking if the header was - generated or not. Thanks to Andrew Harbick" - for providing the bug report that led to - this fix. - - * TAO_IDL/be/be_visitor_operation.cpp: Modifications that were - necessary due to the changes in the Server_Request class and our - policy of distinguishing between ORB raised and user-raised - exceptions. - - * TAO_IDL/be/be_visitor_interface.cpp: Similar changes as in - be_visitor_operation.cpp for the _is_a_skel skeletons. - -Thu May 14 15:20:28 1998 David L. Levine - - * tests/Quoter/Makefile: moved TAO_ROOT definition outside of - "ifdef trader" block. - -Thu May 14 14:34:40 1998 Michael Kircher - - * orbsvcs/orbsvcs/Makefile: CosLifeCycle is now compiled - by default. - -Thu May 14 14:10:40 1998 Michael Kircher - - * tests/Quoter/{Factory_Trader.cpp, Factory_Trader.h - Makefile, run_test.sh}: Factored out the code depending - on the Trading Service. The standard compilation does - now not use the Trading Service. The Makefile has - to be called using the "trader=1" option to activate - compilation of the parts using the Trading Service. - "run_test.sh" will not use by default the - creation service "lifecycle service object", instead - it will ask the Generic Factory directly - -Thu May 14 14:10:26 1998 Carlos O'Ryan - - * tests/Param_Test/tests.cpp: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - Added the right .in() or .out() calls for some T_var types - passed to functions expecting a T_ptr or T_out parameter. - -Thu May 14 13:14:40 1998 Carlos O'Ryan - - * tests/Cubit/TAO/IDL_Cubit/cubit.idl: - * tests/Cubit/TAO/IDL_Cubit/client.h: - * tests/Cubit/TAO/IDL_Cubit/client.cpp: - * tests/Cubit/TAO/IDL_Cubit/cubit_i.h: - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: - Added a simple test for octet sequences, it tries to compare the - end-to-end cost of a normal sequence (longs) vs an octet - sequence; it compares the cost for a small sequence vs a - small sequence and then repeats the test for a large - sequence. To make the comparison more acurate it uses the same - number of bytes in the sequence as in the sequence, - not the same number of elements. - - * tao/Sequence.h: - * tao/Sequence.i: - The message block accessor can be constant now. - - * tao/Typecode.h: - * tao/Typecode.i: - * tao/Typecode.cpp: - Clean up the destruction code: made the destructor nilpotent to - avoid double destructions. Also removed the redundant operator - new and operator delete; they were not doing any actual work. - -Thu May 14 Alexander Babu Arulanthu - - * orbsvcs/orbsvcs/Makefile: Removed PropertyService from the - conditional compilation. - -Thu May 14 10:00:37 1998 Carlos O'Ryan - - * tests/OctetSeq/OctetSeq.cpp: - Removed signed/unsigned comparison warnings. - -Wed May 13 21:48:08 1998 David L. Levine - - * tests/Quoter/Makefile: define TAO_ROOT if it's not defined. - - * TAO/orbsvcs/tests/Concurrency/tmplinst.cpp, - TAO/tests/Cubit/TAO/{IDL,MT}_Cubit/tmplinst.cpp, - TAO/tests/Param_Test/tmplinst.cpp, - TAO/tests/Thruput/TAO/tmplinst.cpp: - removed TAO_Unbounded_Sequence instantiation - because it's now in libTAO. - -Wed May 13 18:18:56 1998 Douglas C. Schmidt - - * TAO version 0.1.20 released. - -Wed May 13 16:12:38 1998 Michael Kircher - - * tests/Quoter/Makefile: changed the compiling options for - the IDL compiler - - * tests/Quoter/Quoter.idl: changed the include path - -Wed May 13 06:58:38 1998 David L. Levine - - * tao/Makefile: added Forwarding_Servant. - - * tao/IIOP_Interpreter.cpp: added TAO_Unbounded_Sequence - template instantiation. - - * tao/IIOP_Interpreter.cpp,Typecode.cpp,append.cpp, - decode.cpp,encode.cpp,skip.cpp: - changed ~0 to ~0u to avoid signed/unsigned comparisons. - - * tao/IIOP_Interpreter.cpp (calc_seq_attributes): - replaced TAO_Unbounded_Sequence with - TAO_Unbounded_String_Sequence. For unknown reasons, - GreenHills couldn't compile it without this change. - Thanks to Carlos for providing the fix. - - * many *.{h,i,cpp,idl} files: inserted RCS keyword string. - - * tests/Param_Test/tests.cpp: moved some return statements - out of loops, and changed some loop indexes to CORBA::ULong - to avoid signed/unsigned comparison. - - * tests/Param_Test/run_tests.sh: fixed traps, and added - uid component to port number. - -Wed May 13 00:05:52 1998 Irfan Pyarali - - * tao/ORB.i (orb_free_resources): This should return - !CORBA_ORB::orb_init_count_ instead of simply - CORBA_ORB::orb_init_count_. Thanks to Pavel Motuzenko - (p_motuzenko@hotmail.com) for pointing these two problems out. - - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp (TAO_Naming_Server): - Fixed the initialization of naming_context_name_. - - * tests/POA/Forwarding/: Added new test that shows the forwarding - features in TAO. - - * tao/default_server.cpp (concurrency_strategy): Made sure that - the reactive strategy is returned if no concurrency_strategy has - been explicitly set by the user. This should allow servers to - work without a svc.conf file. - - * tao/Server_Request.cpp (set_result and set_exception): These - should not raise exceptions if this->exception_ is set. - - * tao/Servant_Base.cpp: Removed implementation for - TAO_ServantBase::_dispatch() and made it pure virtual. Also, - passed the system environment to the DSI implementation class. - - * tao/POAC.cpp (ForwardRequest): Fixed old IDL code for this - exception. - - * tao/Forwarding_Servant: New DSI servant used by the POA for - forwarding. - - * tao/POA.cpp (forward_object): Adding forward support to the POA. - -Tue May 12 17:34:06 1998 Carlos O'Ryan - - * tests/OctetSeq/OctetSeq.cpp: - Added missing template instantiation. - - * tao/Sequence_T.i: - Fixed typo in Unbounded sequences. - -Tue May 12 16:53:18 1998 Carlos O'Ryan - - * tao/orbconf.h: - * tao/Sequence.h: - * tao/Sequence.i: - * tao/Sequence.cpp: - * tao/Sequence_T.h: - * tao/Sequence_T.i: - * tao/Sequence_T.cpp: - * tao/decode.cpp: - Unbounded Sequences of octets are specialized so their - demarshalling (and eventually their marshalling) is implemented - by increasing the reference count on the CDR stream message - block and then setting the buffer as a pointer to that stream. - The buffers are copied upon assingment or copy ctor. - The feature is enabled by the macro TAO_NO_COPY_OCTET_SEQUENCES, - by default the macro is defined inTAO_ROOT/tao/orbconf.h - and only applies if the CDR stream owns its buffer, in other - words the optimization is disabled when the buffer is allocated - on the stack or is not allocated by the CDR stream. - - * tao/IIOP_Interpreter.h: - * tao/IIOP_Interpreter.cpp: - If the octet sequence is enabled then the size of a sequence - depends on its basic type. - - * tao/ORB.cpp: - If the octet sequence optimization is enabled we don't need to - instantiate TAO_Unbounded_Sequence. - - * tests/Makefile: - * tests/OctetSeq/Makefile: - * tests/OctetSeq/svc.conf: - * tests/OctetSeq/test.idl: - * tests/OctetSeq/OctetSeq.cpp: - Added a simple test that just writes an octet sequence in a CDR - stream and then reads it back. The test compares the time - against a char sequence. - - * tao/GIOP.cpp: - Changed several system exceptions from COMPLETED_MAYBE to - COMPLETED_NO. - - * orbsvcs/orbsvcs/Sched/Config_Scheduler.h: - Added missing forward declaration for ACE_Scheduler. - - -Tue May 12 16:48:46 1998 Seth Benjamin Widoff - - * tao/corba.h: - Added a new macro TAO_CHECK_ENV_RETURN_VOID -- same as - TAO_CHECK_ENV_RETURN, but for methods with no return value. - -Tue May 12 15:22:53 1998 Carlos O'Ryan - - * tests/Param_Test/driver.cpp: - * tests/Param_Test/tmplinst.cpp: - Added missing template instantiations. - -Tue May 12 13:45:45 1998 Chris Gill - - * orbsvcs/orbsvcs/Sched/Config_Scheduler.{cpp,h}: - Fixed compile problem when using ACE_Scheduler - instead of ACE_DynScheduler - -1998-05-12 Torben Worm - - * Reordered initializers and added virtual destructors to - the files orbsvcs/tests/Concurrency/* files. - Updated README files in orbsvcs/tests/Concurrency and - orbsvcs/Concurrency_Service - -Mon May 11 18:11:03 1998 Carlos O'Ryan - - * tests/Param_Test/README: - * tests/Param_Test/driver.cpp: - * tests/Param_Test/options.cpp: - * tests/Param_Test/options.h: - * tests/Param_Test/param_test.idl: - * tests/Param_Test/param_test_i.cpp: - * tests/Param_Test/param_test_i.h: - * tests/Param_Test/tests.cpp: - * tests/Param_Test/tests.h: - Added many tests including bounded sequences of different types, - sequences of Any, Typecode and others. We know that some of this - tests still do not work. Thanks to Rob E. Thornton - for his collaboration on this. - -Mon May 11 17:00:00 1998 Chris Gill - - * ace/ace_dll.dsp - orbsvcs/orbsvcs/RtecScheduler.idl - orbsvcs/orbsvcs/orbsvcs.dsp - orbsvcs/orbsvcs/Sched/Config_Scheduler.{cpp,h} - orbsvcs/orbsvcs/Sched/DynSched.{cpp,h} - orbsvcs/orbsvcs/Sched/Scheduler.h - orbsvcs/orbsvcs/Sched/Strategy_Scheduler.{cpp,h} - - Integrated strategized scheduler with off-line scheduling - interface in Config_Scheduler.{cpp,h}. To use the - strategized scheduler, define the following symbols - in ace/config.h (you can substitute RMS, etc for MUF, - and can choose a different value for the minimum critical - priority - more on this in the release notes, once the - dynamic portion is integrated): - - #define TAO_USES_STRATEGY_SCHEDULER - #define TAO_USES_MUF_SCHEDULING - #define TAO_MIN_CRITICAL_PRIORITY 0 - - -Mon May 11 07:57:47 1998 David L. Levine - - * orbsvcs/Naming_Service/Naming_Service.cpp (init): - dereferenced second arg in init () call. Thanks to - Kirill Rybaltchenko for - reporting this. - - * IIOP/test/Makefile, IIOP/tests/Cubit/TAO/Makefile, - orbsvcs/tests/Trading_Service/Makefile, tests/CDR/Makefile, - tests/Cubit/CORBAplus/MT_Cubit/{client,server}/Makefile, - tests/Cubit/TAO/{DII,MT}_Cubit/Makefile, - tests/POA/Generic_Servant/Makefile, tests/Param_Test/Makefile, - tests/Thruput/CORBAplus/Makefile: removed Log from clean target. - - * TAO/tests/Cubit/CORBAplus/MT_Cubit/client/Makefile, - TAO/tests/Demux_Test/CodeGen/Makefile, - TAO/tests/Thruput/COOL/Makefile: - replaced WRAPPER_ROOT with ACE_ROOT. - -Sat May 09 12:01:37 1998 David L. Levine - - * orbsvcs/orbsvcs/Makefile: removed Log from clean target, - because it's now a directory that we need to keep. - - * orbsvcs/tests/Concurrency/NS_client.cpp (CosNaming_Client ctor): - reordered initializers to match declaration order. - (list_contents): changed loop index type to CORBA::ULong to avoid - signed/unsigned comparison. - - * tao/Makefile: suppress -g when building POA.o with ghs for - VxWorks/i86. - - * tests/Cubit/COOL/{IDL,MT}_Cubit/Makefile: added(ACELIB)(LIBS) - to VLDLIBS. Thanks to Steve Kay for - reporting that link lines were missing -lACE on Chorus. - -Fri May 8 16:32:55 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_exception.cpp: In the typecode generation, we were - incorrectly generating the byte order flag as 0 meaning big - endian. This is now changed to TAO_ENCAP_BYTE_ORDER. - - * TAO_IDL/be/be_visitor_exception.cpp: A spurious "return 0;" - statement in the middle of the code led to generation of empty - code for exception constructors. - - * TAO_IDL/be/be_visitor_interface.cpp: Added the "ACE_CORBA_1" - macro to the generated code so that MSVC++4.2 will be able to - parse the generated code. - - * orbsvcs/orbsvcs/Naming_Service/Naming_Service.cpp: We were - passing a variable of type ORB_var to a method expecting an - ORB_ptr. g++ was not too happy with this. So now we use the in () - method on the _var variable. - - * tao/Connect.cpp: Removed a large segment of commented-out code - which I had kept to remind me to use it to handle the DSI - case. See the log entry for Server_Request.{h,cpp}. - - * tao/{POAC, PolicyC}.h: Used the ACE_CORBA_1 macro when the - classes inherit from CORBA::Object. MSVC++4.2 was not too happy - with CORBA::Object. It needed CORBA_Object. - - * tao/ServantBase.h: Removed the Environment parameter from the - invoke method of TAO_DynamicImplementation class. This was - suggested by Irfan. - - * tao/Servant_Base.cpp: (invoke): Added code after the invoke to - the DSI implementation is made. This code creates a REPLY message - and then uses the dsi_marshal method (described below) to marshal - outgoing parameters. These methods are called only if the request - was 2 way. - - * tao/Server_Request.{h, cpp}: Several changes made - - Added a data member that indicates if the request was oneway or - twoway. This is used by the DSI when it has to decide if a reply - message must be constructed or not. - - Changed the is_user_exception_ data member to - exception_type_. This now explicitly tells us if it was a - GIOP_USER_EXCEPTION or a GIOP_SYSTEM_EXCEPTION or - GIOP_NO_EXCEPTION. This change was required because we faced a - situation in which we not only needed to know if the exception was - a user or a system exception but we wnated to know if there was an - exception itself or not. So a boolean variable was not sufficient - for this. - - Added a new method called "dsi_marshal". This is used by the DSI - to marshal the outgoing parameters. - -Thu May 07 19:14:16 1998 Douglas C. Schmidt - - * TAO version 0.1.19 released. - -Thu May 07 17:55:07 1998 Nanbor Wang - - * TAO/orbsvcs/orbsvcs/orbsvcs.dsp: - * TAO/orbsvcs/tests/Logger/server.dsp: Updated. Thanks to Carlos' - instruction on how to make the change. - -Thu May 7 16:11:00 1998 Robert Eric Thornton - - * orbsvcs/tests/Naming/ns_tree.cpp: added the NamingService to this - test. - -Thu May 7 15:29:46 1998 Carlos O'Ryan - - * TAO_IDL/be/be_codegen.cpp: - The warning was disabled before including other headers, it is - possible (and in some cases certain) that the headers will - enable the warning again. We now disable *after* all the - includes and re-enable at the end. Thanks to Darrell Brunsch - for catching this one before we even - tried it :-) - - * Makefile: - * orbsvcs/README: - The README file is generated from the docs/orbsvcs.html page - whenever a release is made. - - * orbsvcs/tests/Logger/Makefile: - * orbsvcs/tests/Logger/logger_i.h: - * orbsvcs/tests/Logger/logger_i.cpp: - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/orbsvcs/Log/Logger_i.h: - * orbsvcs/orbsvcs/Log/Logger_i.cpp: - Moved the logging service implementation to the library. - - * TAO_IDL/be/be_codegen.cpp: - Generated #pragma to disable the "inheritance via dominance" - warnings on MSVC++; the warning is left on its original state - after when leaving the generated include files. - - * docs/orbsvcs.html: - Updated the document to reflect the new location of the Logging - Service implementation. - - * docs/orbsvcs.html: - Updated the documentation on the directory hierarchy and - contents. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - Fixed template instantiation pragmas. - - * tests/CDR/basic_types.cpp: - * orbsvcs/tests/Concurrency/NS_client.cpp: - * orbsvcs/tests/Concurrency/CC_client.cpp: - * orbsvcs/tests/Concurrency/CC_tests.cpp: - * orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp: - * orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp: - * tao/skip.cpp: - * tao/encode.cpp: - * tao/Server_Request.cpp: - Fixed several warnings, mostly unused variables. - -Thu May 7 14:28:01 1998 Douglas C. Schmidt - - * Moved the explanation about adding IDL files to MSVC++ from the - docs/releasenotes/index.html file to the TAO-INSTALL.html file. - -Thu May 07 11:19:25 1998 David L. Levine - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: added - ACE_Condition instantiation. - - * tao/Object_Key.idl,POA.idl,Policy.idl: moved *.idl files - to *.IDL, so that the Makefile rules won't automatically - regenerate them. Inserted RCS keyword string. - - * tao/Makefile: removed rule to suppress regeneration from - .idl files, because it's no longer needed. - - * orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp: reordered - initializers to match declaration order. - - * orbsvcs/tests/Sched/DynSched.cpp,Makefile: added Quantify probes. - -Thu May 7 00:44:55 1998 Douglas C. Schmidt - - * Reverted a bunch of s/_env/env/g changes... Thanks to Sumedh - for reporting these. - -Wed May 6 23:58:22 1998 Carlos O'Ryan - - * TAO_IDL/be_include/be_visitor.h: - Added missing int in method declaration. - -Wed May 06 23:51:37 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Multiple/EC_Multiple.dsp: - * orbsvcs/tests/EC_Multiple/EC_Multiple.dsw: - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - The test now compiles on NT, it lacked a project file and we had - to workaround some MSVC++ bugs. - - * orbsvcs/orbsvcs.dsw: - Added the tests to the main workspace. - - * orbsvcs/orbsvcs/orbsvcs.dsp: - * orbsvcs/orbsvcs/Event/EC_Gateway.h: - The export macro was wrong and Event/EC_Gateway files were not - in the project file. - -Wed May 6 18:16:42 1998 Douglas C. Schmidt - - * tests/NestedUpcall: Added the new "one-button" features for the - nested upcalls test so that it can run with a single file, just - like IDL_Cubit. Thanks to Rob Thornton for - this enhancement. - -Wed May 6 08:46:18 1998 Aniruddha Gokhale - - * rules.tao.GNU: Added dependency of the generated files on the - TAO_IDL compiler (in addition to the source IDL files). Thanks to - Jim Penny for suggesting this - modification. - -Wed May 06 06:36:18 1998 David L. Levine - - * tests/Param_Test/tests.cpp: (Test_Any::check_validity): added - missing definition of short_in. - - * tests/Param_Test/run_test: filtered "grep" out of ps output, - and use SIGCHLD instead of hard-coded signal number. - -Wed May 6 00:28:09 1998 Marina Igorevna Spivak - - * orbsvcs/tests/Naming/ns_tree.cpp: made several minor - modifications to the test program to make it work for compound - names. - -Tue May 5 15:40:09 1998 Douglas C. Schmidt - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp: Changed the - ACE_SYNCH_MUTEX to ACE_SYNCH_RECURSIVE_MUTEX to try and - workaround intra-class method deadlocks. Thanks to Marina for - pointing this out. - - * tao/orbconf.h: Added macros for - TAO_SOCK_{STREAM,ACCEPTOR,CONNECTOR}, which can be overridden in - an ACE config.h file to select a different set of transport - APIs. - - * tao/{ORB_Core,GIOP,Server_Strategy_Factory,ORB}.{h,cpp}: Changed - all uses of ACE_SOCK_* to TAO_SOCK_* so we can override this to - use a different transport API without changing the code at - compile time. - -Mon May 4 11:57:34 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - * orbsvcs/tests/EC_Multiple/gen_latency: - * orbsvcs/tests/EC_Multiple/gen_throughput: - * orbsvcs/tests/EC_Multiple/gen_utilization: - * orbsvcs/tests/EC_Multiple/histo.pl: - * orbsvcs/tests/EC_Multiple/latency.pl: - * orbsvcs/tests/EC_Multiple/run_latency: - * orbsvcs/tests/EC_Multiple/run_schedule: - * orbsvcs/tests/EC_Multiple/run_throughput: - * orbsvcs/tests/EC_Multiple/run_utilization: - * orbsvcs/tests/EC_Multiple/Scheduler_Runtime1.h: - * orbsvcs/tests/EC_Multiple/Scheduler_Runtime2.h: - The test now has two sets of consumers and two sets of - suppliers, running at different rates, with different events, - with varying number of suppliers and or consumers, etc. - Statistics are kept for latency, total time, laxity, time per - event, etc. - The scripts were updated for the new command line interface. - - * orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp: - Fixed minor error in debug message. - - * orbsvcs/orbsvcs/Scheduler_Factory.h: - * orbsvcs/orbsvcs/Scheduler_Factory.cpp: - * orbsvcs/orbsvcs/Runtime_Scheduler.h: - * orbsvcs/orbsvcs/Runtime_Scheduler.cpp: - The Runtime_Scheduler uses the POD_RT_Info array directly now. - - * orbsvcs/orbsvcs/Event/RT_Task.cpp: - Set the LWP priority of the task to obtain proper priorities. - - * orbsvcs/orbsvcs/Event/Event_Channel.h: - * orbsvcs/orbsvcs/Event/Event_Channel.i: - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: - The split some methods in the MT safe and non-MT safe counter - parts (i.e. the version that takes locks and the _i version that - does not), the method appeared to dead-lock in shutdown. - Anyway the methods are only used at shutdown and startup so - nothing should be broken by this. - - * orbsvcs/tests/EC_Multiple/README: - * docs/releasenotes/ec.html: - Updated the documentation on the multiple EC test. - -Mon May 4 09:35:07 1998 Torben Worm - - * Comitted the files for the concurrency service - * Updated release notes - -Mon May 04 09:05:04 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp,Util_Thread.cpp,server.cpp: - removed ACE_OS::thr_setprio class to set LWP priority, now that ACE - handles that internally. - -Sun May 03 02:05:21 1998 Douglas C. Schmidt - - * TAO version 0.1.18 released. - -1998-05-02 Alexander Babu Arulanthu - - * docs/releasenotes/index.html: Updated the status information for - PropertyService. - -Sat May 2 14:28:41 1998 Douglas C. Schmidt - - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp (init): There was a bug - in Ross' code that was failing to initialize the - naming_context_var_. This is now fixed. Thanks to Andy for - noticing this. - -Sat May 2 09:58:41 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_exception.cpp: We now make the *_alloc - method as a static method of the generated Exception class. The - reason for doing this was that some exceptions get borrowed from - included files. Now if we make the _alloc method as a static - method in the generated *C.cpp file, we don't see it in other - files where it is needed. The best way to do this was to make a - _alloc method as a static method on the generated exception class. - - * TAO_IDL/be/be_visitor_operation.cpp: Changes made above required - some trivial modifications. However, it remains to be see if - MSVC++ accepts the generated code or not OR whether it needs the - ACE_NESTED_CLASS macro. I am waiting for reports on this. - - * orbsvcs/orbsvcs/Naming/Naming_Utils.{h,cpp}:(init): Due to - application of patches, the signature of the - TAO_Naming_Server::init got reverted to the older and buggy - version. This is now fixed. - -Fri May 01 17:56:07 1998 Nanbor Wang - - * tao/orbsvcs/orbsvcs/Naming/Naming_Utils.cpp: Moved #include of - Arg_Shifter.h after #include of tao/corba.h so that ACE_Export - is properly defined. - - * tao/TAO.dsp: Removed Arg_Shifter.cpp from the project. - -Fri May 1 17:26:31 1998 Douglas C. Schmidt - - * orbsvcs/Naming_Service/Naming_Service.cpp (init): Added support - for the -NScontextname option. Thanks to Ross J. Lillie - for this feature. - - * orbsvcs/orbsvcs/Naming_Utils.h: Added "argv/argc" parameters to - the TAO_Naming_Server::init() and constructor methods. Thanks - to Ross J. Lillie for this feature. - - * tao/Makefile: Moved the Arg_Shifter from TAO to ACE since it is - generic and not TAO-specific. - -Fri May 1 13:05:56 1998 Aniruddha Gokhale - - * tao/Stub.h: Added a new structure called TAO_Exception_Data that - holds the typecode and pointer to a function for the user - exception we are dealing with. This was necessary since the - interpreter had no clue of how to allocate storage for the - exception we are dealing with and how to decode it. - - * tao/GIOP.{h, cpp}: Affected by the above change is the "invoke" - method which takes the list of exceptions. It is this method that - is responsible for allocating the right amount of storage for the - exceptions and decode it. - - We kept the original invoke method as it is because the newer - signature cannot work with DII. This still needs work. - - * tao/IIOP_Object.cpp:(do_static_call) - When "invoke" is called, - we now pass the TAO_Exception_Data table. - - * TAO_IDL/be/be_visitor_operation.cpp: The exceptionlist table - that gets generated is now an array of TAO_Exception_Data. In - addition, it is made static. - - * TAO_IDL/be/be_visitor_exception.cpp: Added code to generate the - *_alloc function that allocates memory for the exception. - -Fri May 1 09:55:56 1998 Aniruddha Gokhale - - * tao/POAS.cpp: In the initialization section of constructors for - some of the collocated classes, we had forgotten to use the - ACE_NESTED_CLASS macro. This is now fixed. - -Fri May 1 06:19:03 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_interface.cpp: Modified the generated code - for <<= and >>= operators. It involves more memory allocation. The - previous version was buggy because it was holding pointers to data - allocated on function call stacks. - - * Makefiles: A few Makefiles have been updated with the .PRECIOUS - clause. Otherwise the make was deleting some IDL compiler - generated files. - - * tao/Marshal.i: trivial changes. Probably not even required to - do. Instead of casting the void pointer at the time of passing the - parameter to release, we do it prior to it and then pass the local - variable. - - Added theId: ChangeLog,v 1.1421 1998/05/15 05:26:25 schmidt Exp CVS string. - - * tests/Param_Test: Added support to handle Anys of Object - references (In our case Anys of Coffee objects). - -Thu Apr 30 20:18:44 1998 Alexander Babu Arulanthu - - * orbsvcs/tests/CosPropertyService/client.{h, cpp}, server.{h, - cpp}: The client and server programs exclusively for testing - CosPropertyService. - -Thu Apr 30 15:35:45 1998 David L. Levine - - * tao/tests/Cubit/TAO/MT_Cubit/Task_Client.*,Util_Thread.*, - client.cpp,server.cpp: adapted to work on VxWorks. - -Thu Apr 30 14:26:00 1998 David L. Levine - - * TAO version 0.1.17 released. - -Thu Apr 30 10:06:19 1998 David L. Levine - - * tao/tests/Cubit/TAO/MT_Cubit/server.{h,cpp}: moved the - start barrier from the stack frame of start_servants () - to the stack frame of main (). This turned out the be - the cause of the barrier failure on Linux. And on Solaris86, - but it only appeared there when the ior file was in /tmp. - That's because start_servants () was able to write the file - more quickly there, and then destroy the old barrier. Threads - are evil. - -Wed Apr 29 14:06:35 1998 Aniruddha Gokhale - - * tao/{Object, POAC, POAS, PolicyC, PolicyS}.cpp: Moved all the - static Param_Data and Call_Data tables from the outer global scope - to the scope of the respective stubs and skeletons. This was - necessary since the ORB-owned typecodes are now dynamically - allocated. Thus, if the tables remain in the global scope, the - values for typecodes get initialized to NUL. Thanks to Naga, - Sergio, and Sumedh who were trying in vain to understand why - things were failing. - - * TAO_IDL/be/be_visitor_interface.cpp: Moved the code generation - of static Param_Data tables for the _is_a_skel from the outer - global scope to inside the skeleton for _is_a_skel. - - * orbsvcs/orbsvcs/Scheduler_Factory.cpp: On line 119 to the call - to _narrow, we were passing the Object_var. g++ did not like - it. Hence we take the in () of the var object and pass it to - _narrow. - - * tao/skip.cpp: In Sequence::skip, we did not have a return - TRAVERSE_CONTINUE statement after successfull skipping. Hence we - always returned an exception. The same iwas true with Array::skip. - Thanks to Alex (alex@cs.wustl.edu) for reporting this bug. - -Wed Apr 29 12:26:12 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Multiple/Makefile: - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - * orbsvcs/tests/EC_Multiple/Scheduler_Runtime1.h: - * orbsvcs/tests/EC_Multiple/Scheduler_Runtime2.h: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - Added two precomputed schedules that are selected when the - argument to -s is either RUNTIME1 or RUNTIME2, but it is still - possible to have a global scheduler (-g) or to compute new - schedules (-s ). - The amount of work performed in the high priority threads can be - controlled using the -w option. - - * orbsvcs/tests/EC_Multiple/latency.pl: - * orbsvcs/tests/EC_Multiple/run_utilization: - * orbsvcs/tests/EC_Multiple/run_overhead: - * orbsvcs/tests/EC_Multiple/run_latency: - * orbsvcs/tests/EC_Multiple/gen_utilization: - * orbsvcs/tests/EC_Multiple/gen_overhead: - * orbsvcs/tests/EC_Multiple/gen_latency: - This scripts execute the test with different configurations - designed to measure latency, overhead, utilization, etc. - The run_* scripts execute the test, the gen_* scripts filter the - results and generate Encapsulated PostScript and JPEG files with - the results. - I've tried to make the file naming conventions consistent so its - easier to add new scripts or tests. - - * orbsvcs/Naming_Service/Naming_Service.h: - * orbsvcs/Naming_Service/Naming_Service.cpp: - Added an option (-p) to dump the process ID into a file, this is - useful when running the service from a script that has to shut - it down. - - * orbsvcs/orbsvcs/Scheduler_Factory.cpp: - Fixed some memory managment problems, but the whole class has to - be revised to be more compliant. - -Wed Apr 29 07:08:18 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/client.cpp (do_priority_inversion_test): - fixed loop indices to follow ANSI scoping rules and avoid - signed/unsigned comparisons. - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp (run_tests): cast the - entire expression to u_long, not just the first term. - -Tue Apr 28 13:02:25 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_operation.cpp: The tables for Param_Data - and Call_Data in the stubs and skeletons are now generated inside - the stub/skeleton instead of being global. This change was - necessitated since we removed all statics from the TAO library. - - * TAO_IDL/be/be_visitor_structure.cpp: Some trivial indentation - changes and moved code a bit so that related code gets generated - near each other. - - * tao/Exception.cpp: Got rid of all static typecodes for system - exceptions. In addition, there was an error in - "make_standard_typecode" where we were creating a new - ExceptionList for every call to make_standard_typecode. This is - now moved to the init method. - - A few TypeCode definitions have been moved to - Typecode_Constants.cpp since these were owned by the ORB. - - * tao/Exception.h:(make_standard_typecode): The first parameter - now takes a reference to TypeCode_ptr. - - * tao/{Connect, GIOP, Server_Request}.cpp: Use the new TC_opaque - and TC_ServiceContextList typecode pointers rather than the - previous static TypeCode object. - - * tao/Marshal.cpp: Removed a lot of commented out code. - - * tao/Marshal.h: Added some documentation. - - * tao/ORB.cpp: Added a call to TAO_TypeCodes::init in the - init_orb_globals method. - - * tao/ORB.{h,i}: Missing documentation added. Added a new method - that returns a boolean value indicating if the ORB's reference - count for its globals has reached 0. The TypeCode destructor uses - this to get rid of ORB owned typecodes. - - * tao/Object_Key.idl: Added missing documentation. - - * tao/Sequence_T.h: Added missing documentation. - - * tao/Typecode.{h, cpp}: Refined the destructor such that ORB - owned typecodes are now destroyed once the reference count for - globals has reached 0. - - Added a new class called "TAO_Typecodes". It provides a namespace - to defined some static methods for initialization and finalization - of ORB owned typecodes. - - * tao/Typecode_Constants.cpp: Lots of changes. All typecodes are - now dynamically allocated. All the static allocation is removed. - - * tao/{append, skip}.cpp: In the respective append and skip - methods for Exceptions, we had forgotten to append/skip the - repository ID for the exception. In addition, we now use TC_opaque - pointer rather than the static object. - - * tao/decode.cpp: The static table __tc_consts had to be moved - inside the TypeCode::decode method since the typecodes are no more - static. Also, we use the newly defined TC_opaque typecode pointer. - - * tao/{encode, deep_copy, deep_free}.cpp: Used the TC_opaque - pointer instead of the static object TC_opaque that we previously - had. - - * tests/CDR/tc.cpp: Moved the static table of typecodes inside the - function since the typecodes are no more static. - -Mon Apr 27 16:46:42 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/*.cpp: put in RT class if running - as root, and set LWP priorities. - - * tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test: added this shell - script, which spawns the server and client (locally). - -Sun Apr 26 10:19:49 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - The print_priority_info() routine is platform specific, but I - did not protect it with the right #ifdef/#endif block. - -Sun Apr 26 01:09:23 1998 Douglas C. Schmidt - - * TAO version 0.1.16 released. - -Sat Apr 25 16:14:02 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - Added routine to print the scheduling parameters of the main and - scavenger thread. - Before starting we report all the user defined parameters for - the test execution. - The push() method consumes a little CPU via the is_prime() - method. - Fixed problem with auto_ptr<> usage. - For the short circuit case the timer is reset at the beginning - of handle_timeout(), otherwise the main thread sleeps a constant - amount of time. - Changed the option to set the timeout interval to -i and now -t - tries to run the test in the Time-shared scheduling class. - The main thread scheduling parameters are modified after - parsing the user arguments. - - * orbsvcs/tests/EC_Multiple/run_latency: - * orbsvcs/tests/EC_Multiple/run_utilization: - * orbsvcs/tests/EC_Multiple/gen_data: - This scripts are attempts to make single button entries for the - diverse configurations of this test. - -Sat Apr 25 08:36:08 1998 David L. Levine - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - added a few .in () dereferences and ACE_UNUSED_ARGs. - -Fri Apr 24 14:08:47 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - The test creates its own scheduling service now, so all the - invocations are collocated. - Added support for overhead test, but it is still untested. - - * orbsvcs/tests/EC_Multiple/Makefile: - Updated dependencies. - - * orbsvcs/tests/EC_Multiple/latency.pl: - The program generates number in usecs now, less need for - conversion here. - - * orbsvcs/tests/EC_Multiple/gen_data: - Improved the graphs, include titles, the time is in usecs, the - EPS files are generated (for LaTeX) and then converted to JPEG - (for HTML). - - * orbsvcs/orbsvcs/Makefile: - Added Event/EC_Gateway.{h,cpp} and updated dependencies. - - * orbsvcs/Naming_Service/Naming_Service.cpp: - Removed obsolete options from usage message. - -Fri Apr 24 10:15:37 1998 Michael Kircher - - * tests/Quoter/Generic_Factory.{h,cpp,dsp}: server for a - Generic Factory conforming to the LifeCycle Service - - * tests/Quoter/Generic_Factory_Impl.{h,cpp}: Implementation - of a LifeCycle Service conforming Generic Factory - -Fri Apr 24 10:08:37 1998 David L. Levine - - * tao/NVList.cpp: added ACE_Node template - instantiation. - -Fri Apr 24 00:18:05 1998 Douglas C. Schmidt - - * TAO version 0.1.15 released. - -Thu Apr 23 18:50:29 1998 Douglas C. Schmidt - - * TAO_IDL/ast_enum.h, - TAO_IDL/ast_exception.h, - TAO_IDL/ast_interface.h, - TAO_IDL/ast_module.h, - TAO_IDL/ast_operation.h, - TAO_IDL/ast_root.h, - TAO_IDL/ast_structure.h, - TAO_IDL/ast_union.h, - TAO_IDL/utl_scope.h: Changed 'friend int yyparse()' to - 'friend int tao_yyparse()' to reflect new changes. - - * The following changes will hopefully provide a framework - for getting rid of all the nasty problems with statics - in TAO! - - * tao/ORB: Added a new static method called init_orb_globals() - that initializes the globals when necessary. - - * tao/ORB: Added a new orb_init_count_ data member that keeps - track of the number of times ORBs have been initialized in order - to do a better job of managing globa ORB resources. - - * tao/Exception: Added a new method called fini() that deletes the - dynamically allocated exceptions list. - - * tao/Exception: Changed init_standard_exceptions() to init() to - be consistent. - - * tao/Marshal: Changed initialize() to init() to be consistent. - - * tao/IIOP_Interpreter: Changed init_table() to init() to be - consistent. - - * tao/ORB: Added support so that we make sure to only initialize - and destroy global ORB resources when the first/last ORB is - created/destroyed, rather than using static objects (which are - causing problems on shutdown). - -Thu Apr 23 16:20:58 1998 Douglas C. Schmidt - - * TAO/TAO_IDL/Makefile: Change the YY* symbols to ACE_YY* symbols - to avoid clashes if we link with other flex/yacc generated code. - -Thu Apr 23 15:48:29 1998 Aniruddha Gokhale - - * TAO_IDL/be/{be_visitor_structure, be_visitor_exception, - be_visitor_union, be_visitor_sequence}.cpp: The code generation of - the >>= operators is now improved to take into account the fact - that an Any may not own the value. In such cases, the >>= operator - should simply do a cast rather than retrieving the value from the - CDR member - - * tao/Any.{h,i}: Added a new method (TAO extension) returning a - boolean to indicate if the Any owns the data or not. This is used - by the >>= operators generated for user-defined types - - * tao/Any.cpp: The constructor and assignment operator of Any that - was creating a CDR stream used to point its ACE_Message_Block - member to a buffer that was allocated on the function call - stack. We now explicitly call "clone" on it to make a deep copy. - - * tao/GIOP.{h,i}: Added two methods that return the underlying - input and output CDR streams. - - * tao/IIOP_Object.cpp: (do_dynamic_call): Made major - modifications. We are now able to handle the case when the user - has not supplied the top level storage for out and return - parameters. For these cases, we use exactly the same logic as the - Any::decode method. We maintain a pointer to the part of the CDR - stream that holds the value and save it in the Any. It is the - application's responsibility to use the appropriate >>= methods to - retrieve the value. - - * tao/NVList.{h, i, cpp}: We now use ACE_Unbounded_Queue to - maintain the list of NamedValues. The original code was mixing up - C++ and C memory management by using calloc and realloc. This was - cauisng too many problems. At the same time, reallocing would - introduce a large number of deep_copies of the Anys that are held. - All the add_* and item methods have been affected. - - * tao/ORB.cpp: Modified the create_list method since the NVList - now uses ACE_Unbounded_Queue to maintain a list of - NamedValues. - - * tao/{append, encode, decode, skip}.cpp: For the Union::{append, - encode, decode, skip} methods, it was necessary to use the >>= - operators to retrieve the label values. We were originally using - casts to the void* returned by the Any::value () method. However, - since this returns the underlying CDR buffer, we need to use the - type-safe >>= operators. For the enum case label, we explicitly - invoke the decoder. - - * tao/Server_Request.cpp:(demarshal): We now create an NVList of - size 0 and then add individual items according to the - CallData_skel table. This is no more wasteful as in the previous - scheme because now we use ACE_Unbounded_Queue to mainatin the - internal list and hence growing the list does not result in huge - amounts of deep_copies. - - * tests/Cubit/TAO/IDL_Cubit/client.cpp: Fixed the usage for DII in - struct_dii and union_dii to use the >>= operators. - - * tests/Param_test/tests.cpp: Partially fixed the way DII tests - should be coded. Some of them are now working. I need to fix the - rest of them. - -Wed Apr 22 15:56:58 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - The test also has a collocated scheduling service now. - - * orbsvcs/tests/EC_Multiple/svc.conf: - Added a missing svc.conf file. - - * orbsvcs/Scheduling_Service/Scheduling_Service.cpp: - The -n option can be used to specify the scheduling service name. - - * orbsvcs/orbsvcs/Scheduler_Factory.h: - * orbsvcs/orbsvcs/Scheduler_Factory.cpp: - We can find scheduling services with different names now. - Removed all method that used resolve_initial_references() to - find the scheduling service; this was needed before the naming - service was working. - - * orbsvcs/tests/EC_Multiple/latency.pl: - * orbsvcs/tests/EC_Multiple/gen_data: - Simple scripts to process the data obtained in the experiments. - -Mon Apr 20 16:46:07 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_interface.cpp: An ACE_NESTED_CLASS was - getting generated with a blank first argument for cases where the - interfaces were defined in the outermost scope. This is now fixed - by using a conditional "is_nested". - -Mon Apr 20 13:23:30 1998 Carlos O'Ryan - - * tao/Server_Request.h: - * tao/Server_Request.cpp: - We keep a flag to determine whether the exceptions stored with - the set_exception() method are user exceptions or system - exceptions. - -Mon Apr 20 09:48:01 1998 David L. Levine - - * tests/CDR/growth.cpp (main): cast ACE_ONE_SECOND_IN_USECS - to ACE_UINT32 to avoid ambiguity when using ACE_U_LongLong. - - * tao/append.cpp (append): commented out unused local - "continue_append". - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp (run_tests): removed - unused local "context_switch". Protected declarations of - "ptartTime" and "pstopTime" for CHORUS only. - - * tests/Cubit/TAO/MT_Cubit/client.cpp (do_priority_inversion_test): - protected declaration of context_switch for ACE_HAS_PRUSAGE_T or - ACE_HAS_GETRUSAGE. - -Mon Apr 20 06:36:44 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_interface.cpp: The generated typecode was incorect - in its encapsulation length. We were generating the entire - TypeCode length as the encapsulation length. - -Sat Apr 18 20:21:24 1998 Aniruddha Gokhale - - * TAO_IDL/be/{be_visitor_exception, be_visitor_sequence, - be_visitor_structure, be_visitor_union}.cpp: In the generated code - for the >>= operators, we were incorrectly passing the address of - the pointer to the decode method rather than simply passing the - pointer. - - * tao/Any.cpp: The value () routine either returns the cdr_ or the - value_ field depending on whether the Any owns the data or not. - - * tao/TypeCode.cpp: In private_equal, we had forgottent to account - for the tk_any case. - -Sat Apr 18 15:52:20 1998 Alexander Babu Arulanthu - - * tao/Exception.cpp (CORBA_Exception): Removed a debugging - statement assert (1==2) in the destructor of this class. - -Sat Apr 18 12:19:11 1998 David L. Levine - - * tests/Cubit/TAO/IDL_Cubit/server.cpp (init_naming_service): - dereference orb and child_poa with in () in calls to - my_name_server_.init (). - -Sat Apr 18 10:14:13 1998 Aniruddha Gokhale - - * tao/Any.cpp: There was a mistake in some of the the >>= - operators in which for the "any owns data" case, we were - retrieving the data from the value_ field instead of the cdr_ - field. - - * tao/GIOP.cpp: An unwanted explicit template instantiation for - Unbounded sequences of TypeCode is now removed. - - * tao/decode.cpp: A very very subtle error. For the case of - Any::decode, our strategy was to let the Any maintain a pointer to - the CDR stream and eventually let the >>= operators do the - retrieve part. We were correctly maintaining pointers to the - duplicated ACE_Message_Block. Unfortunately, this - ACE_Message_Block was maintaining a data member which is the CDR - stream which was allocated on the function call stack of - "do_static_call". As a result, all kinds of weird results started - showing up. We now make an explicit copy. Although this scheme - will slow down the performance for Anys, at this time, this is the - only feasible solution to get things working. - - * tests/CDR: Added test for Any in basic_types.cpp - - * tests/Param_Test: Added some debug statements. - -Fri Apr 17 19:15:24 1998 Alexander Babu Arulanthu - - * tao/Any.h : - * tao/Any.cpp : Added static dump () method for debugging any - values. It prints out type and value (if the type is primitive). - -Fri Apr 17 15:35:27 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp: - An explicit ACE_Thread_Mutex was used, this is non-portable to - platforms without threads, the "Right Thing" is to use the macro - ACE_SYNCH_MUTEX. - -Fri Apr 17 13:29:46 1998 Nanbor Wang - - * tao/skip.cpp (skip): - * tao/deep_copy.cpp (deep_copy): - * TAO_IDL/be/be_decl.cpp (tc_name2long): Removed unreferenced - variables. - -Fri Apr 17 12:12:04 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_operation.cpp: There was an error in the - way the return Any type was passed to the demarshal and marshal - routines of the generated skeleton code. - - * tao/Any.cpp: Error in the assignment operator for Any fixed. For - the Any owns case, we were copying the data from the value_ field - instead of the cdr_ field. - - * tao/decode.cpp: In Any::decode, we were setting the value_ field - of the Any to the ACE_Message_Block rather than setting the cdr_ - field. - - * tao/encode.cpp: In Any::encode, we were reading from the value_ - field of the Any rather than the cdr_ field. - - * tests/Param_Test: Added code for the Any test. This is still - under test. - -Fri Apr 17 02:38:13 1998 Aniruddha Gokhale - - * TAO_IDL/be/{be_visitor_exception, be_visitor_sequence, - be_visitor_structure, be_visitor_union}.cpp: We had a mismatch in - the signatures of operator <<= in the declaration and - implementation. In addition, we force the generated code for >>= - operator to own the allocated memory. - - * TAO_IDL/be/be_visitor_interface.cpp: In the code that generates - >>= operator, we also generate code such that the allocated memory - is owned by the Any - - * tao/Any.{h, cpp}: We now have two data members in class Any. We - keep the older semantics of the value_ field. In addition, we - maintain a ACE_Message_Block *cdr_ member. Originally we shared - the value_ variable to mean either a CDR stream or a pointer to - some data type. This was based on whether the Any owns the data or - not. However, this strategy does not work because in the >>= - operators for constructed types, we must hold on to the newly - allocated storage since we own it and we must free it. - - * tao/TypeCode.cpp: In the constructor, we were initializing the - internal buffer to point to 4 bytes past the actual buffer that - was passed as a parameter. Things were fine as long as we were not - transmitting typecodes. However, once we started doing that, we - realized that somehow the buffers kept on reducing by 4 as we kept - transmitting typecodes over the wire. Thus, a typecode receive don - the other end had a smaller buffer (and hence different contents) - than the original. We fix this by making our internal buffer point - ot the start of the buffer that was passed as a parameter. The - side-effect of this is that whenever we have to initialize a - TAO_InputCDR with this internal buffer, we must do so by - explicitly skipping the first 4 bytes (which contains the byte - order flag) and indicating that the length is 4 less than the - actual. - - * tao/decode.cpp: In TypeCode::decode, there was a very subtle - error. Whenever we were decoding a typecode and determining that - it was one of the ORB maintained constants, we were simply - pointing to it and passing it back. However, this is not correct - because the application can call "release" which was resulting in - "Freeing Non-Heap Memory" which is terrible. We now "_duplicate" - such typecodes and then pass them to the applications. - -Thu Apr 16 20:34:40 1998 David L. Levine - - * tao/ORB_Core.cpp (TAO_ORB_Core): reordered initializers to - match declaration order. - - * tao/Exception.cpp: added ACE_Unbounded_Queue, - etc., instantiations. - - * tao/PolicyC.h (CORBA_PolicyList): commented out unused - _tc_PolicyList_seq. - -Thu Apr 16 19:22:10 1998 Seth Benjamin Widoff - - * TAO_IDL/be/be_visitor_interface.cpp: - The ACE_NESTED_CLASS macro in the base/member initialization - section of a collocated class was using the wrong scope to - initialize inherited collocated classes. Prefixed a "POA_" to - the scope. - -Thu Apr 16 16:00:35 1998 Aniruddha Gokhale - - * tao/decode.cpp: In TypeCode::decode, for the case of bounded - strings, we were passing a null pointer to the typecode - constructor. - - * tao/encode.cpp: In TypeCode::In encode, for strings, we were - encoding the typecode's buffer length rather than the bounds of - the string. - - * tests/Param_Test: Added code to test TypeCodes. Most of the - files in this suite are modified. - -Thu Apr 16 13:28:59 1998 Carlos O'Ryan - - * tao/decode.cpp: - An exception was raised if a nil object reference was decoded. - - * tao/POA.cpp: - For debugging purposes we print a message when an exception is - raised on the server side. - - * TAO_IDL/be/be_visitor_interface.cpp: - Use ACE_NESTED_CLASS macro for collocated classes, this makes - the generated code portable between NT and other platforms. - -Thu Apr 16 10:31:53 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_interface.cpp: I had forgotten to generate - a "return TRUE" statement in the code for the >>= operator on - interfaces. - - * TAO/tao/Any.cpp: All the basic >>= operators were using plain - casts. However, according to the new strategy, if the Any owns the - value, then it is a CDR stream. So we make this distinction in the - code. - - * TAO/tao/POAS.cpp: In the initialization section of a number of - skeleton class constructors, we were initializing - _tao_collocated_Policy without specifying its fully scoped name - which happens to be POA_CORBA::_tao_collated_Policy. g++ was - complaining. However, it remains to be seen if MSVC++ accepts this - new style. - -Thu Apr 16 10:10:16 1998 Michael Kircher - - * tests\Quoter\Quoter_Impl.cpp: Improved the copy operation - * tests\Quoter\client.{h,cpp}: Using the copy operation - Status: Bootstraping and copying of Lifecycle Objects works. - -Thu Apr 16 08:36:16 1998 David L. Levine - - * orbsvcs/Naming_Service/Naming_Service.cpp (parse_args): - removed break following an ACE_ERROR_RETURN. - -Thu Apr 16 01:25:18 1998 Irfan Pyarali - - * tao/poa.idl: Fixed the idl file. - - * tao/PolicyS.cpp (_tao_collocated_Policy): _tao_collocated_Policy - must inherit from CORBA_Policy and not from CORBA::Policy. This - is because the VC++ compiler cannot deal with inheriting from - nested typedefs. - - * tao/Policy{C,S}.h: Added TAO_Export macros. Also fixed the - #include files. - - * tao/POAS.*: Added code for _get_policy_type_skel() and - policy_type() by hand. - - * tao/POAC.*: Removed code for PortableServer::Policy. - - * tao/POA.cpp: Added the policy_type() method to the policy - classes. - - * TAO: Changed PortableServer::Policy to CORBA::Policy. - -Wed Apr 15 22:29:29 1998 Aniruddha Gokhale - - * TAO_IDL/be/{be_visitor_structure, be_visitor_union, - be_visitor_enum, be_visitor_sequence, be_visitor_interface, - be_visitor_exception}.cpp: Added code to generate the <<= and >>= - operators for CORBA::Any. - - * TAO_IDL/be/be_predefined_type.cpp: Added cases for LongLong, - ULongLOng, and LongDouble which were missing. Thanks to Sam Hauer - (shauer@nmo.gtegsc.com). - -Wed Apr 15 20:20:58 1998 Michael Kircher - - * orbsvcs/tests/Simulator/DOVEBrowser/PushConsumer{Factory}.java.JDK1.2 - added these two files, they can be used by the JDK 1.2 instead - of by the Visigenic ORB. - -Wed Apr 15 15:59:58 1998 Aniruddha Gokhale - - * TAO/tao/append.cpp: Added a bunch of methods that take a CDR - stream and append it to another CDR stream while maintaining the - alignment. These functions use exactly the same logic as that used - by the encode, skip, decode, deep_free, and deep_copy methods. - - * TAO/tao/any.cpp: When we reset the contents, we set value_ to 0 - - * TAO/tao/CDR.{h, i, cpp}: Added a constructor to the - TAO_OutputCDR and TAO_InputCDR to take an ACE_Message_Block as - input. In addition, added the "append" methods that append one CDR - to other while maintaining the alignment. - - * TAO/tao/Exception.{h, i, cpp}: Added the definition and - implementation of the CORBA::ExceptionList class according to the - CORBA v2.2 (Feb 98). This required a few changes in the - Exception.cpp file while initializing the list of system - exceptions. - - * TAO/tao/{GIOP, IIOP_Object}.cpp: Changes required due the new - definition of ExceptionList - - * TAO/tao/Marshal.h: Added the append methods on all classes. - - * TAO/tao/ORB.h: Chnaged the definition of ExceptionList from - typedef to TAO_Unbounded_Object_Sequence to using - the new defintion. - - * TAO/tao/Typecode.{h, cpp}: Moved the defintions of Bounds and - BadKind inside the TypeCode class. This is where it belongs. - - * TAO/tao/decode.cpp: In Any::decode, we set the value_ data - member of Any to a duplicated ACE_Message_Block. - - * TAO/tao/encode.cpp: Changed the implementation of Any::encode - such that if the Any owns the data, then the value_ which is an - ACE_Message_Block that holds a CDR stream gets appended to the - destination CDR. Otherwise, the value is literally encoded into - the destination CDR. - - * TAO/tao/skip.cpp: Added WString::skip. In addition, we had - forgotten to pass the address of the discriminant_val to the - decoder inside the Union::skip function. - -Wed Apr 15 12:19:36 1998 Nanbor Wang - - * tao/deep_copy.cpp (deep_copy): We need a return if no error was - found. - -Wed Apr 15 09:28:16 1998 Carlos O'Ryan - - * tao/Stub.h: - A field was declared , this field is - needed to initialize a Sequence that requires a - parameter. The careful reader will notice - that there is no implicit conversion between the two types, the - first is a pointer to constant TypeCode_ptr no a constant - pointer to TypeCode_ptr. Only SGI/C++ detected this problem. - -Wed Apr 15 09:11:11 1998 David L. Levine - - * orbsvcs/orbsvcs/Sched/DynSched.cpp (compare_entry_finish_times): - added const's to first_entry and second_entry declarations and - casts, so that ANSI static_casts will succeed. - - * orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp (create): - removed extraneous trailing semicolon. - - * orbsvcs/orbsvcs/Event/RT_Task.h (ACE_RT_Task): added "class" - to declaration of friend ACE_RT_Thread_Manager. - - * orbsvcs/Dump_Schedule/Dump_Schedule.cpp (main): added an _out - temporary to avoid compiler warning about a temporary being used - for a non-const reference. Because only Sun C++ seems to complain - about this, and the temporary is non-comformant (it is an _out - type, and users aren't supposed to create them), the hack is - only used with Sun C++. - -Tue Apr 14 19:35:50 1998 Michael Kircher - - * tests/Quoter/*: Quoter example is running using the Cos LifeCycle - Factory Finder. - -Tue Apr 14 16:37:50 1998 Carlos O'Ryan - - * tao/encode.cpp: - * tao/deep_copy.cpp: - * tao/decode.cpp: - * tao/Principal.cpp: - * tao/ORB.h: - * tao/IIOP_Object.cpp: - * tao/GIOP.cpp: - * tao/Exception.cpp: - Removed the last traces of CORBA_SEQUENCE, we use - TAO_Unbounded_Sequence for CORBA::OctetSeq and - TAO_Unbounded_Object_Sequence for CORBA::ExceptionList. - - * orbsvcs/Naming_Service/Naming_Service.cpp: - * orbsvcs/orbsvcs/Naming/Naming_Utils.h: - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp: - It is less surprizing to receive arguments as T_ptr than as - T_var&. - Also followed the usual memory managment conventions of CORBA, - i.e. we don't own the parameters we receive, but we do own the - return values or out parameters we obtain. - - * orbsvcs/tests/Event_Latency/Event_Latency.h: - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - Pseudo-objects or objects passed as input parameters must be - duplicated before storing them in a T_var variable. - -Tue Apr 14 13:49:51 1998 Aniruddha Gokhale - - The following changes are untested. - - * TAO/tao/skip.cpp: Added a new file that can skip values in the - CDR stream. We need this functionality so that when an Any is - decoded, it will simply hold a pointer to the ACE_Message_Block - (which in turn consists the incoming CDR stream). However, we - still need to skip past the value. This skipping uses the same - interpretive algorithm used by the encoder and decoder. - - * TAO/tao/Any.{h, cpp}: Changed the way constructors, assignment - operators, replace method, and destructor worked. The policy is - that if the Any owns the value, then it immediately converts the - value to a CDR stream and destroys the value. - - * TAO/tao/CDR.{h, i}: Added some more functionality to do the - basic "skip" operations. - - * TAO/tao/Marshal.h: Added the skip methods on all the - TAO_Marshal_* classes. - - * TAO/tao/decode.cpp: When we decode an Any, the value pointer now - points to the CDR stream (represented as a ACE_Message_Block). It - is the application's responsibility to use the <<=, >>= operators - to retrieve the right type. - - * TAO/tao/Policy{C,S}.{h,i,cpp}: Added these files that have stubs - and skeletons for the CORBA::Policy interface. - - * TAO/tao/{ORB, corba}.h: Added definitions for the PolicyType, - Policy, and PolicyList. - -Tue Apr 14 12:27:35 1998 Carlos O'Ryan - - * tao/decode.cpp: - * tao/encode.cpp: - Use the write_*_array() and read_*_array() when - encoding/decoding arrays or sequences into/from a CDR - stream. Since every request has at least one sequence (the - object key) this is a improvement for all requests. - I was able to measure improvements in the order of 5% to 10% for - IDL_Cubit. - - * tests/CDR/growth.cpp: - The correct interface to accumulate measurements in a - ACE_High_Res_Timer is start_incr()/stop_incr(). - - * tests/Cubit/TAO/IDL_Cubit/client.cpp: - Increased the maximum sequence size to 100, otherwise it is hard - to notice how the sequences affect performance. - - * docs/releasenotes/ec.html: - Added an explicit example on how to run the Event_Latency test. - - * tao/Exception.cpp: - Fixed indentation. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - An exception was not "rethrown". - -Tue Apr 14 12:23:04 1998 David L. Levine - - * orbsvcs/orbsvcs/Sched/DynSched.cpp,Strategy_Scheduler.cpp, - tests/Cubit/TAO/MT_Cubit/Task_Client.h: - #include math.h after #including the ACE headers, to avoid a - compile warning on ghs/VxWorks. - - * orbsvcs/orbsvcs/Sched/DynSched.cpp (add_dependency): removed - a break statement following a return. - - * orbsvcs/orbsvcs/Sched/SchedEntry.h (OS_priority): removed - name qualifier (the class name). - - * tests/Param_Test/client.cpp (run_dii_test): removed second - return statement at end. - - * tests/Cubit/TAO/MT_Cubit/Task_Client.{h,cpp},client.cpp - (get_latency): cast double latency_ to u_int. - -Tue Apr 14 10:23:32 1998 Douglas C. Schmidt - - * tao/ORB_Core.h (TAO_ORB_Core): Moved a bunch of "set" methods - into the public part of the class so that we can set them if - necessary. Also changed the "set" methods so they return the - original pointer, which enables "chaining". Thanks to Brian - Mendel for point this out. - -Tue Apr 14 07:16:21 1998 David L. Levine - - * Makefile: added CONTROLLED_FILES macro. Thanks to Doug - for reporting this. - - * INSTALL,Makefile: removed INSTALL from CVS control. - -Tue Apr 14 00:51:45 1998 Douglas C. Schmidt - - * TAO version 0.1.14 released. - -Sat Apr 11 20:02:32 1998 Douglas C. Schmidt - - * TAO version 0.1.13, released Sat Apr 11 20:02:32 1998. - -Sat Apr 11 10:00:09 1998 Michael Kircher - - * orbsvcs/tests/Simulator/DOVEBrowser/DOVEBrowser.java: - modified to be used only when the DOVE Browser is running as - an Java Application. - - * orbsvcs/tests/Simulator/DOVEBrowser/DOVEBrowserApplet.java: - used when the DOVE Browser is running as an Applet. - - * orbsvcs/tests/Simulator/DOVEBrowser/*: minor changes to handle - the afore mentioned changes. - -Fri Apr 10 15:11:44 1998 Nanbor Wang - - * tao/GIOP.cpp (message_name): Fixed a missing increment by 1 - code. Thanks to Sumedh for noticing the bug. - -Fri Apr 10 10:41:04 1998 Carlos O'Ryan - - * tests/Param_Test/tmplinst.cpp: - Added a missing template instantiation. - -Fri Apr 10 04:38:36 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_typedef.cpp: The changes made by me in the - log entry mentioned just below had some flaws. I had sort of - blidly applied it to a case in the "visit_typedef" node of the - be_visitor_typedef_ci class. I was resetting the alias context - before the code generation action was taken as aooposed to doing - it after the action was taken. Thanks to Seth Widoff for sending - the bug report. - -Thu Apr 9 21:57:52 1998 Douglas C. Schmidt - - * tao/POAS.cpp: Fixed up the POA to use the new - ACE_Static_Allocator_Base stuff. - - * tao/Operation_Table: Added an additional parameter to the - TAO_Dynamic_Hash_OpTable constructor so that we can pass in the - ACE_Static_Allocator_Base. Also, changed the code to use the - base/member initialization section, which is more efficient. - -Thu Apr 9 22:53:21 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_interface.cpp: We now use the - ACE_Static_Allocator_Base to define a static allocator for the - Dynamic Operation Hash Table. Using this approach will finally - solve the seg faults in the static destructors. - - * TAO_IDL/be/{be_visitor_args, be_visitor_array, be_visitor_field, - be_visitor_exception, be_visitor_operation, be_visitor_typedef, - be_visitor_union, be_visitor_union_branch}.cpp: The visit_typedef - operation on all the classes in these files was setting the - TAO_Visitor_Context's alias state to the typedef node being - visited. However, we were not resetting this context alias state - after the action has been taken. This broke code for a scenario - shown in a dummy IDL below: - - typedef X Y; - struct foo { ... }; - struct bar { - Y y_field; - long long_field; - }; - In the code generation for the struct "bar" (for that matter for - unions, exceptions, sequences, and others), when we are generating - the code for the field whose type is "Y", we set the alias - context, it gets set to Y and we use its primitive type which is X - to do the "accept". However, we do not reset the alias context. As - a result, when we are generating the code for the long_field, the - alias context is still "Y" which leads our IDL compiler to - generate code that says "Y long_field;" rather than "long - long_field;". This is now fixed. - -Thu Apr 9 20:15:41 1998 Nagarajan Surendran - - * orbsvcs/Naming_Service/Naming_Service.cpp (init): Added code to - recognize the -o option to output the Naming Service ior to a file - to avoid setting the NameService env. variable when multiple - naming services are running. - - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp: Added a - naming_service_ior () method to return the ior of the Naming - Service. - -Thu Apr 9 19:25:44 1998 Michael Kircher - - * orbsvcs/tests/Simulator/DOVEBrowser/PushConsumer.java, - orbsvcs/tests/Simulator/DOVEMIB/DOVEMIB.cpp. - orbsvcs/tests/Simulator/Event_Supplier/Event_Sup.cpp: - Had to conform to the new RtecScheduler.set ( ..) method, - some parameters were added. - - * docs/releasenotes/index.html: Enhanced description of the DOVE - -Thu Apr 9 10:07:34 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Time_Utilities.i: - Fixed warnings in convertion from 64 bit ints to 32 bit - ints. This is a classical example of a "good" cast, we know the - numbers will be in range (unless something *really* bad happens, - like), so the conversion will work. - -Wed Apr 08 10:02:16 1998 David L. Levine - - * bin/make_release: added this script that creates ACE and/or - TAO releases. - - * Makefile: added support for make_release. See comments at - the top of the Makefile. The old release mechanism has - been retained; to use it: make release-old. - - * tao/ORB.cpp (ORB_init): added missing __FILE__ to printout. - Thanks to Tom Brusehaver for reporting - this. - - * orbsvcs/Runtime_Scheduler.{h,i}, - orbsvcs/orbsvcs/Config_Scheduler.{h,i} (set): - removed const from Criticality and Info_Type arguments. Thanks - to Doug and Irfan for reporting this. - -Wed Apr 08 07:41:53 1998 Brian Mendel - - * tao/{default.bld, tao.bld}: Updated VxWorks GHS Build files. - - * orbsvcs/default.bld, - orbsvcs/orbsvcs/orbsvcs.bld, - orbsvcs/Event_Service/Event_Service.bld, - orbsvcs/Scheduling_Service/Scheduling_Service.bld, - orbsvcs/Naming_Service/Naming_Service.bld, - orbsvcs/Dump_Schedule/Dump_Schedule.bld: - Updated VxWorks GHS Build files. - - * tests/Cubit/TAO/IDL_Cubit/{default.bld,IDL_Cubit.bld}: - Updated VxWorks GHS Build files. - -Wed Apr 08 00:31:08 1998 Irfan Pyarali - - * tao/ORB_Core.cpp (init): If the host is not supplied by the - user, we will go ahead and call ACE_OS::hostname immediately. - This will help later down the road, since ACE_OS::hostname will - not have to be called each time an IIOP_Profile is created. - - * tao/IIOP_Object.cpp (set): Changed the calls to get_host_addr() - to get_host_name(). The name is more readable than the IP - address. - - * tao/ORB_Core.cpp (init): If the user explicitly specifies - -ORBport 0, we choose a port and start listening. This will - make sure that all IORs produced will be correct. If -ORBport 0 - is not specified, lazy listening is done as usual (on - orb->run()). - -Tue Apr 7 18:25:09 1998 Michael Kircher - - * tests/Quoter/quoter.idl: Extended the interface by a Factory - Finder. - - * tests/Quoter/QuoterFactoryFinder.{cpp,h}: Server and - Implementation of the Factory Finder. - -Tue Apr 7 16:22:09 1998 Carlos O'Ryan - - * TAO_IDL/util/utl_global.cpp: - Changed a buffer size from MAXNAMELEN to MAXPATHLEN, the former - is very small in some systems, plus the fact is that a fullpath - can be use in that buffer, so MAXPATHLEN is the right constant. - -Tue Apr 07 10:55:53 1998 David L. Levine - - * orbsvcs/tests/Simulator/ss: generate port numbers based on - uid, and set TAO_ROOT (based on ACE_ROOT) if it's not set. - This utility should be moved, maybe up two directories? - - * orbsvcs/orbsvcs/{Makefile,RtecScheduler.idl,Runtime_Scheduler.*, - Scheduler_Factor.*}, - orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp,Event_Channel.cpp, - ReactorTask.cpp, - orbsvcs/orbsvcs/Sched/Config_Scheduler.{h,cpp},DynSched.*, - SchedEntry.*,Scheduler.cpp,Strategy_Scheduler.{h,cpp}, - orbsvcs/tests/EC_Multiple/EC_Multiple.cpp, - orbsvcs/tests/Event_Latency/Event_Latency.cpp: - merged DynSched into liborbsvcs. - - * orbsvcs/tests/Sched/Makefile: added. - - * orbsvcs/tests/Sched/DynSched_Test.cpp: builds on Suns. And - runs! - -Mon Apr 6 14:43:13 1998 Carlos O'Ryan - - * tao/Connect.cpp: - The process would crash if it was unable to resolve an address - to a name, even though it was only used in a debugging - message. Thanks to Keith Nicewarner for - pointing out this. - -Mon Apr 06 09:59:22 1998 David L. Levine - - * tests/Thruput/tao/utils.cpp: hacked so that it will compile - on VxWorks and Chorus. It won't run properly, though. The - file should be updated to use ACE_Profile_Timer instead of - using rusage directly. - - * TAO_IDL/Makefile: moved include of rules.local.GNU to after - include of rules.bin.GNU. Without this change, tao_idl doesn't - get build on LynxOS. - - * TAO_IDL/driver/drv_preproc.cpp (DRV_pre_proc): ACE_OS::mktemp () - instead of mktemp (). - -Sun Apr 05 18:05:26 1998 Michael Kircher - - * orbsvcs/tests/Simulator/DOVEBrowser/{ DOVEBrowser.java, - DemoCore.java, PushConsumerFactory.java }: - The Browser accepts now the parameter -ORBnameserviceior. - -Sun Apr 05 10:04:57 1998 David L. Levine - - * tao/Makefile: don't regenerate files using TAO's IDL compiler. - Instead, always use what's in our CVS repository, or in the TAO - distribution. - - * tao/Makefile: use fakesvcconf = 1 if shared_libs is not defined, - instead of if CROSS-COMPILE is not defined. - -Sat Apr 04 21:25:43 1998 Douglas C. Schmidt - - * TAO version 0.1.12, released Sat Apr 04 21:25:43 1998. - -Sat Apr 4 17:43:08 1998 Douglas C. Schmidt - - * tao/Operation_Table.cpp: Removed the call to hash_.close() since - the Hash_Map_Manager destructor handles this already. - -Sat Apr 4 15:50:29 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_sequence.cpp, - TAO_IDL/be_include/be_visitor_sequence.h: Added a case to - support sequence of exceptions. - -Sat Apr 04 07:45:33 1998 David L. Levine - - * tao/ORB.h: don't use u_longlong_t on Suns if - ACE_LACKS_U_LONGLONG_T is defined. - - * tests/Cubit/TAO/MT_Cubit/client.cpp (do_priority_inversion_test): - moved declaration of loop index "i" out of two for loops, and - declared as u_int instead of int to prevent signed/unsigned - comparison. - -Sat Apr 4 04:26:49 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_interface_fwd.cpp: We were not checking if - the node was imported. Due to this, code was getting generated for - forward declared interfaces from "#include"d IDL files. - - * TAO_IDL/be/be_visitor_sequence.cpp: We were not calling - "nested_type_name" while generating the return type of the - operator [] in the sequence var class. As a result, a fully scoped - name was getting generated instead of a relative scoped name which - the MSVC++ compiler does not like. - - * TAO_IDL/be/be_visitor_exception.cpp: For "typedefed" nodes, we - were using their base types to generate the code. This is fixed. - - In addition, some files from the above and others were modified to - correct some formatting problems in the generated code. - -Sat Apr 4 00:24:01 1998 Douglas C. Schmidt - - * tests/Cubit/TAO/MT_Cubit/client.cpp: Fixed a typo where - "i" was being defined twice in the same block of code. - -Fri Apr 3 18:40:49 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/client.cpp: - * tests/Cubit/TAO/MT_Cubit/server.cpp: - * tests/Cubit/TAO/MT_Cubit/Task_Client.h: - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: Minor changes for - Chorus. Cleanup code. - -Fri Apr 3 18:39:21 1998 Steve Huston - - * tests/POA/On_Demand_Activation/Makefile: Changed LSRC to SRC to - match today's changes to ACE's rules.bin.GNU. - -Fri Apr 3 17:43:07 1998 Carlos O'Ryan - - * tao/CDR.h: - * tao/orbconf.h: - * tao/CDR.cpp: - Added configuration macros to enable swap on write, and to - disable swap on read. - Also increased the default size of a CDR buffer. - - * tests/CDR/Makefile: - * tests/CDR/growth.cpp: - Added another simple test of the CDR buffer, this one tries to - measure performance. - -Fri Apr 3 17:15:22 1998 Steve Huston - - * TAO_IDL/Makefile: The sources that go into the compiler are - listed in SRC, not LSRC. This matches a change in ACE's - include/makeinclude/rules.bin.GNU. - -Fri Apr 3 17:07:18 1998 Sergio Flores - - * tao/TAO_Internal.cpp (FAKE_SVC_ENTRY): - * tao/orbconf.h: Made minor changes to have the fake service - configurator receive its values through macros, instead of - changing the ".cpp" file. Seems cleaner this way. - -Fri Apr 3 15:35:39 1998 Alexander Babu Arulanthu - - * orbsvcs/tests/AVStreams/client.h, client.cpp: All PropertySet - methods and the Iterator class methods tested. - -Fri Apr 3 08:59:16 1998 Carlos O'Ryan - - * tao/CDR.cpp: - Null strings are transmitted as empty strings. - Fixed - - * tao/IIOP_ORB.cpp: - Ensure that CDR buffer created from the IOR string is properly - aligned. - - * tao/Server_Request.cpp: - More checking for exceptions while decoding parameters and we - print an error message if decoding fails. - - * tao/Typecode.cpp: - Only the first byte of the encapsulation stores the byte order, - the next three bytes are ignored because the is stored as - a long. - - * tao/decode.cpp: - Removed dead code, improve error message when decoding object - references and fix an off by one error in ObjRef::decode. - - * tao/encode.cpp: - When encoding Object References an encapsulated stream is - created in place, I debugged the computation of the length for - that stream and left some debug messages commented out. - The support for encoding null strings and wstrings as empty - strings is in the CDR classes, no need to duplicate the effort - here. - - * tao/Connect.cpp: - Cosmetic changes. - -Fri Apr 03 09:01:00 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/server.cpp (start_servants): - changed local "ior_file" to "ior_f" because it shadowed - the global and caused compile failure with g++. - - * tests/Cubit/TAO/MT_Cubit/server.cpp (start_servants): - check return values of activate calls. - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp (run_tests): - added default case to switch statement. - - * tao/Sequence*.{i,cpp}: use ACE_CAST_CONST instead of const - in reinterpret casts, to keep all compilers happy. - -Thu Apr 02 15:49:16 1998 Nanbor Wang - - * tao/tests/Cubit/TAO/MT_Cubit/client.dsp: - * tao/tests/Cubit/TAO/MT_Cubit/server.dsp: Updated project file. - - * tao/ORB_Core.{h,i,cpp} (create_and_set_root_poa): Added this - private method to create and set the root poa of the calling - ORB_Core. - (root_poa): Make sure this function will always return a valid - poa pointer (thru the use of create_and_set_root_poa above.) - - * tao/ORB.cpp (resolve_poa): Moved the creation of poa into - ORB_Core. - -Wed Apr 1 23:39:04 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: - * tests/Cubit/TAO/MT_Cubit/Task_Client.h: - * tests/Cubit/TAO/MT_Cubit/Util_Thread.cpp: - * tests/Cubit/TAO/MT_Cubit/Util_Thread.h: - * tests/Cubit/TAO/MT_Cubit/client.cpp: - * tests/Cubit/TAO/MT_Cubit/server.cpp: - * tests/Cubit/TAO/MT_Cubit/server.h: Fixed some bugs and added - some comments. - -Wed Apr 01 22:37:59 1998 Irfan Pyarali - - * tests/POA/Default_Servant/client.cpp: Fixed options parsing. - - * tao/Servant_Base.h: Added TAO_Export to - TAO_DynamicImplementation. - -Wed Apr 1 17:33:04 1998 Douglas C. Schmidt - - * tests/Cubit/TAO/MT_Cubit: Cleaned up the formatting of the code - to conform to the TAO programming style. - -Wed Apr 1 11:07:53 1998 Michael Kircher - - * orbsvcs/tests/Simulator/DOVEBrowser/VisCompFactory.java: - Implemented a Factory pattern to generate the Visualization - Components and the Java class loader is now used to instantiate - the JavaBeans Visualization Components. - - * orbsvcs/tests/Simulator/DOVEBrowser, DOVEMIB and Event Supplier - are running under NT properly. - -Wed Apr 01 09:44:31 1998 Nanbor Wang - - * tao/ORB_Core.cpp (init,fini): Removed calls to - ACE_OS::socket_init and ACE_OS::socket_fini because they are - taken care of by ACE already. - -Wed Apr 1 09:46:53 1998 Aniruddha Gokhale - - The following fix was also made by Carlos simultaneously. Here is - the reason what was going wrong. - - * tao/IIOP_Interpreter.cpp: In calc_nested_size_alignment_i, there - was a bug in which we were initializing the CDR stream for - nested parameters with an incorrect size. This was due to the - fact that we were computing the byte order outside and then - initializing the stream with 4 less bytes. However, the - constructor of the TAO_InputCDR was also computing the byteorder - using wrong locations in the bytestream. This is now fixed. - - * tests/Param_Test: Added barebones implementation to test - Anys. This is still not complete because we still have to work - on getting Anys in TAO to work correctly and get rid of the - memory management problems we are having. - -Wed Apr 1 09:41:07 1998 Carlos O'Ryan - - * tao/IIOP_Interpreter.cpp (calc_nested_size_and_alignment_i): - Fixed nested strem interpretation. - -Wed Apr 1 08:56:24 1998 Douglas C. Schmidt - - * tao: Renamed ResultFromScode to TAO_ResultFromScode to avoid - clashes with MFC functions. Thanks to David Janello - for reporting this. - -Tue Mar 31 21:01:30 1998 Nanbor Wang - - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp (init): Fixed a typo. - -Tue Mar 31 20:18:36 1998 Nagarajan Surendran - - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp (TAO_Naming_Server): - Added code to remove the IOR_Multicase event handler in the destructor. - -Tue Mar 31 19:50:48 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/server.cpp (Cubit_Server): Removed the - naming service unbind code from the destructor as the naming - server is a component and not an external server. Also they will - be destructed when the ~Cubit_Server is called. - -Tue Mar 31 19:30:03 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/server.cpp (Cubit_Server): Added a - check in the destructor to unbind the cubit_factory from the - naming service. - -Tue Mar 31 15:15:53 1998 Carlos O'Ryan - - * tao/Sequence.h: - * tao/Sequence.i: - * tao/Sequence_T.h: - * tao/Sequence_T.i: - g++ does not like typedefs inside templates, and we were abusing - them in the sequences. - - * tests/CDR/tc.cpp: - Fixed formatting problems. - - * tests/Param_Test/tmplinst.cpp: - Added missing template instantiations. - -Tue Mar 31 11:10:34 1998 Nanbor Wang - - * tao/ORB.h (String_out): Added the infamous TAO_Export macro. - -Tue Mar 31 14:38:29 1998 Douglas C. Schmidt - - * tao/Sequence_T.i (replace): Make sure to cast this->buffer_ - to (T *) to make compilers like GCC happy! - -Tue Mar 31 13:34:36 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp (svc): dereference - cb_factory with .in (). - - * tests/Cubit/TAO/MT_Cubit/server.cpp (start_servants): declare - iorFile outside the conditional statement. - - * tests/Cubit/TAO/MT_Cubit/cubit.idl: added comments and RCS Id - string. - - * tests/Cubit/TAO/MT_Cubit/{client,server}.cpp: fixed priority - assignments so that they work on all platforms. - - * tests/Cubit/TAO/MT_Cubit/Task_Client.h: fixed fabs() to negate - the argument if less than 0. - -Tue Mar 31 11:05:23 1998 Carlos O'Ryan - - * tao/CDR.h: - * tao/CDR.cpp: - * tao/decode.cpp: - * tao/Typecode.cpp: - Added constructor for encapsulated streams to the TAO_InputCDR - class; this was causing problems on Intel machines. - - * TAO_IDL/be/be_helper.cpp: - * TAO_IDL/be/be_codegen.cpp: - We end #if/#endif blocks using C style comments (/* */) as - opposed to C++ style (// ) - - * tao/Sequence.i: - * tao/Sequence.cpp: - * tao/Sequence_T.i: - * tao/Sequence_T.cpp: - Fixed a lot of const-correctness problems, thanks to J, Russell - Noteworthy for putting me on this - track. - - * tests/Param_Test/tmplinst.cpp: - * tests/Param_Test/tests.cpp: - * tests/Param_Test/param_test_i.h: - * tests/Param_Test/param_test_i.cpp: - * tests/Param_Test/param_test.idl: - The test now includes all kind of sequences: of basic types, of - structs, of strings, of objects; both bounded and unbounded. - Unfortunately only compilation is verified, I still have to add - code to verify functionality. - - * TAO_IDL/be/be_visitor_sequence.cpp: - Unproper code was generated for bounded sequences of strings. - - * tao/IIOP_ORB.cpp: - Added some debug messages to verify that collocation works. - - * orbsvcs/tests/EC_Multiple/README: - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - Now that the ORB supports collocation we can create a collocated - EC, but that requires a smarter startup. - It seems that the ECP is not receiving all the messages it - should. - The main purpose of the change was to verify that collocation - works and it seems to do so. - - * tao/Connect.cpp: - We set the flag to expect input *before* making the - request. This alleviates (but does not solve) the problems of - using several threads and a global ORB: in such a configuration - it is possible that one thread is running the event loop, but - another makes a request, if the reply is received before the - flag is set the ORB believes it has received an out-of-order - reply and shutdowns the connection. - The real solution is to use the leader-follower model. - - * tao/decode.cpp: - * orbsvcs/Event_Service/Event_Service.cpp: - Cosmetic changes. - -Mon Mar 30 21:38:32 1998 Nanbor Wang - - * tao/ORB_Core.cpp (fini): Added a call to ACE_OS::socket_fini (). - - * tao/IIOP_ORB.cpp (_get_collocated_object): Changed to call - TAO_ORB_Core_instance ()-> root_poa () instead of - this->resolve_poa (). Thanks to Carlos for tracing this down. - -Mon Mar 30 17:59:30 1998 Nanbor Wang - - * tao/ORB_Core.i: Only _NOT_ specialize - ACE_Hash_Addr when ACE needs to instantiate - template explicitly and it is not inlined. - -Mon Mar 30 13:13:07 1998 Carlos O'Ryan - - * tao/Typecode.cpp: - Fixed cast that dropped constness when only reinterpret_cast was - needed; thanks to David Levine (levine@cs.wustl.edu) for - detecting this. - - * tao/Server_Request.cpp: - bytes_remaining was called in a debug message (not seen in - Solaris); thanks to Nanbor Wang (nanbor@cs.wustl.edu) for - reporting this. - -Mon Mar 30 12:28:02 1998 David L. Levine - - * tao/ORB_Core.i: only specialize ACE_Hash_Addr - with ACE inlining enabled, to avoid link collision with the - instantiation in Connect.cpp. - - * tao/CDR.cpp (TAO_OuputCDR ctors): rearranged initializations - to match declaration order. - - * tao/t-sizes.cpp: #include "tao/corba.h" instead of "tao/orb.h". - -Mon Mar 30 10:28:05 1998 Carlos O'Ryan - - * Implemented new classes to manipulate CDR streams, this classes - separate input (interpretation) and output (creation) of the - streams; in an attempt to make the interface more robust. - The new classes provide methods to write and read strings and - arrays, this is currently used in very few places, but it could - provide a big performance boost. - - The change affected the following files: - - * TAO/tao/Align.h: - * TAO/tao/CDR.cpp: - * TAO/tao/CDR.h: - * TAO/tao/CDR.i: - * TAO/tao/Connect.cpp: - * TAO/tao/Connect.h: - * TAO/tao/Exception.cpp: - * TAO/tao/GIOP.cpp: - * TAO/tao/GIOP.h: - * TAO/tao/GIOP.i: - * TAO/tao/IIOP_Interpreter.cpp: - * TAO/tao/IIOP_Interpreter.h: - * TAO/tao/IIOP_ORB.cpp: - * TAO/tao/ORB.h: - * TAO/tao/Server_Request.cpp: - * TAO/tao/Server_Request.h: - * TAO/tao/Server_Request.i: - * TAO/tao/Typecode.cpp: - * TAO/tao/Typecode.h: - * TAO/tao/decode.cpp: - * TAO/tao/deep_copy.cpp: - * TAO/tao/deep_free.cpp: - * TAO/tao/encode.cpp: - * TAO/tao/orbconf.h: - * TAO/tao/params.h: - In most cases it was only a matter of changing the class name - and the method invocations. - - * tests/Param_Test/options.cpp: - Use CORBA::string_copy instead of ACE::strdup because we delete - the buffer with CORBA::string_free. - - * tests/Cubit/TAO/IDL_Cubit/client.cpp: - I limited the size of the sequences, otherwise the test time - grows non-linearly with the number of loops. - - * tests/Param_Test/README: - The test can also check string sequences, but the option to do - so (-t strseq) was not documented. - - * tests/CDR/basic_types.cpp: - The test is run several times; this is useful when trying to - verify performance. - -Sun Mar 29 03:09:17 1998 Nanbor Wang - - * tao/IIOP_ORB.{h,i,cpp}: Added an optimize_collocation_objects_ - flag to turn optimization for collocation objects on and off. - - * tao/ORB_Core.cpp: Added an initialization argument - -ORBcollocation to make ORB aware of collocation objects or - not. The default is on. - - * doc/Options.html: Added documentation for -ORBcollocation. - -Fri Mar 27 20:08:24 1998 Nanbor Wang - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp (NS_NamingContext): - Changed to get lock from the ORB. - - * orbsvcs/orbsvcs/orbsvcs.dsp: Update the source file list. - - * tao/ORB.h: Added TAO_Export to class CORBA_ORB_var. - - * tao/params.cpp: Removed the extra inclusion of . - -Fri Mar 27 14:10:34 1998 Steve Huston - - * TAO_IDL/driver/drv_preproc.cpp: (also see my entry from 09:50) - Removed explicit char * operator call, and use the conversion - as it was before. However, I needed to change the ?: operator to - an if/else for AIX xlC to compile it correctly. - -Fri Mar 27 13:38:04 1998 Seth Benjamin Widoff - - * orbsvcs/IOR_Multicast.{h,cpp}: - * orbsvcs/Makefile: - * orbsvcs/Naming/Naming_Utils.{h,cpp}: - I moved the Ior_Multicast.{h,cpp} files up a directory and changed - the class name to TAO_IOR_Multicast. It didn't logically belong - in the Naming directory, since other bootstrappable services - require it. - -Fri Mar 27 11:47:58 1998 David L. Levine - - * tao/IIOP_ORB.*,IIOP_Object.{h,cpp},Request.{h,cpp},Server_Request.*, - Exception.*,params.*,Connect.*,default_{client,server}.*,corba.h: - #include the .i file in the .h/.cpp files instead of corba.h. - - * tests/Demux_Test/client.cpp: #include ace/stream.h instead of - system headers, and use ACE_OS::gethrtime () instead of - gethrtime (). - - * orbsvcs/orbsvcs/Event/Reactor_Task.cpp (ACE_ES_Reactor_Task): always - use ACE_OS::gettimeofday (). ACE_High_Res_Timer::gettimeofday () - now takes an argument, so it's not compatible with what - ACE_Timer_Queue needs. And it didn't seem necessary to have - separate code for VxWorks. And the hrtimer on WIN32 is flakely - on multiple-CPU machines. - - * tao/IIOP_ORB.cpp: added ACE_Unbounded_Set_Iterator template - instantiation. - -Fri Mar 27 09:50:52 1998 Steve Huston - - * TAO_IDL/driver/drv_preproc.cpp: Use explicit char * operator on - cpp_path (AIX xlC requires this). Added CVS Id. - - * tao/Sequence_T.h: Fully qualify the template type when used as a - function return. - -Fri Mar 27 04:45:46 1998 Nanbor Wang - - * tao/ORB.h: Added two pure virtual functions - _register_collocation and _get_collocated_servant to CORBA_ORB - class so the derived classes have their own implementations. - (resolve_poa,resolve_poa_current): Changed these two functions - from private methods to protected methods. I need to access - them from IIOP_ORB. - - * tao/IIOP_ORB.{h,cpp} (_register_collocation): Added this new - method to record connection end points an IIOP ORB owns. - (_get_collocated_servant): Added this new method which uses a - passed in STUB_Object to determine whether a requested object is - collocated or not. If it's a collocated object, returns the - servant of that object and we can use that to create a - collocated object reference. - (object_to_string): Added code to register object end point with - IIOP ORB. - (iiop_string_to_object): Added code to check whether a requested - object is collocated or not and return a collocated object if it - fits to do so. - - * tao/ORB_Core.cpp (preconnect): Added code to register success - preconnections to IIOP's end point repository. - - * tao/decode.cpp (TAO_Marshal_ObjRef::decode): Added code to - optimize against collocation objects. - -Thu Mar 27 10:57:02 1998 Michael Kircher - - * orbsvcs/tests/Simulator/DOVEMIB: New version of the DOVE - MIB. - - * orbsvcs/tests/Simulator/README: Updated. - - * docs/releasenotes/index.html: Updated. - -Thu Mar 26 21:24:59 1998 David L. Levine - - * tao/ORB.*,corba.h (CORBA_ORB::shutdown): uninlined, so that - ORB.i can be #included properly. - - * tao/CDR.{h,cpp},GIOP.{h,cpp},corba.h: #include the .i file - in the .h/.cpp files instead of corba.h. - - * TAO_IDL/fe/y.tab.cpp: wrapped a couple of assignments in - conditionals with parens. - -Thu Mar 26 17:28:24 1998 Douglas C. Schmidt - - * TAO version 0.1.11, released Thu Mar 26 17:28:24 1998. - -Thu Mar 26 10:07:02 1998 Michael Kircher - - * orbsvcs/tests/Simulator/DOVEMIB: Checked in a first draft - of the DOVE Management Information Base (DOVE MIB). A README - will be available with further details. - -Thu Mar 26 08:31:02 1998 Aniruddha Gokhale - - * TAO_IDL/fe/idl.yy: We were setting the name of a sequence (named - sequence) when the code for client header generation was - invoked. However, in cases where we import some definitions, we - never go into the code generation code for that type. As a result, - such imported typedefed (a.k.a named) sequences remained - nameless. So when the time came to emit their name, it resulted in - a segmentation fault. - - We fix this by setting the name of the sequence in the parsing - stage itself. - - Thanks to Torben Worm (tworm@cs.wustl.edu) for reporting the bug - to me. - - Changed files also include y.tab.cpp and y.tab.h - - * TAO_IDL/be/be_visitor_sequence.cpp: Minor correction to get the - formatting right. - - * TAO_IDL/be/be_decl.cpp: Simplified the logic of converting a - name into a padded long array. The original logic caused problems - on NT/PC because of its "little-endian" nature. This was causing - the repoIDs and names (represented as longs) undergo byte - swapping. - -Thu Mar 26 06:29:09 1998 David L. Levine - - * tao/Marshal.{h,cpp},ORB.*,Object.{h,cpp},corba.h: - #include the .i file in the .h/.cpp files instead of corba.h. - -Wed Mar 25 22:55:02 1998 Carlos O'Ryan - - * tao/Servant_Base.h: - * tao/Object.cpp: - Collocated objects (even if their dynamic type is simply - CORBA_Object) can use the servant to resolve the _is_a() - calls. - -Wed Mar 25 22:06:19 1998 Sumedh Mungee - - * tao/TAO.cpp: Added accessors for child/root poa. - -Wed Mar 25 15:10:48 1998 Aniruddha Gokhale - - * tao/encode.cpp: In the encoding of exceptions, we were not - encoding its repository ID. This is now fixed. - -Wed Mar 25 11:11:47 1998 David L. Levine - - * tao/ORB.h: use ACE_UINT32 instead of u_char for CORBA_Boolean - with Green Hills on Chorus, to work around a compiler bug. - The bug is revealed with accessing the root_poa, by - TAO/tests/POA/RootPOA/RootPOA. - - * tao/ORB.{h,cpp}: changed type of open_called_ and - should_shutdown_ flags from CORBA::Boolean to u_int, because - they're ACE_Atomic_Ops. This allows CORBA::Boolean to be - a typedef of bool. Without this change, bool would be required - to support all of the arithmetic operations that ACE_Atomic_Op - needs, and that's not standard. - - * orbsvcs/tests/Logger/{clnt.cpp,logger_i.*,svr.cpp}, - orbsvcs/orbsvcs/Naming/{Ior_Multicast.cpp,Naming_Utils.cpp}, - tests/Thruput/TAO/server.cpp: - removed unnecessary #include of ace/streams.h. - - * tao/Makefile,tests/Cubit/TAO/IDL_Cubit/Makefile, - tests/NestedUpcall/Makefile: - removed CPPFLAGS, LDFLAGS, and DCFLAGS because they duplicated - what's already in taoconfig.mk or platform_macros.GNU. - -Wed Mar 25 09:08:44 1998 Torben Worm - - * docs/releasenotes/index.html: Added comment to the concurrency - control service section. The implementation of the concurrency - control service is discontinued due to unclear specs. - -Wed Mar 25 02:36:06 1998 Nanbor Wang - - * tests/NestedUpcall/server.cpp: Renamed tao_util.h to TAO.h. - -Tue Mar 24 19:13:35 1998 Aniruddha Gokhale - - * tao/Server_Request.cpp: There was a lot of messy code on the - outgoing path from skeleton to the wire. Specifically, we were - mixing system exceptions with user defined exceptions. This has - been fixed and is under testing. - - * TAO_IDL/be/{be_visitor_exception, be_exception}.cpp: The generated - typecode for Exceptions erroneously had a "tk_struct" TypeCode - kind. This has been fixed to be "tk_except". - - * TAO_IDL/be/be_visitor_operation.cpp: Handling of oneway operations - in the server skeletons was buggy. It is now fixed. - - * TAO_IDL/be/be_predefined_type.cpp: TypeCodes for pseudo objects - were not getting properly generated. This is now fixed. - -Tue Mar 24 14:51:33 1998 Nanbor Wang - - * TAO_IDL/be/be_interface.cpp (gen_server_skeletons): Changed - op_name() to operation (). - - * TAO_IDL/be/be_visitor_operation.cpp (visit_operation): Added a - return statement. - - * tao/IIOP_Object.cpp: Initialze - TAO_Synchronous_Cancellation_Required::old_type_. - -Tue Mar 24 14:07:08 1998 Aniruddha Gokhale - - * tao/Server_Request.{h, i, cpp}: Made the class compliant with - the latest CORBA v2.2. Added some extensions. There were some - subtle bugs related to user defined exceptions that were not being - reported back to the caller. Modified the constructor to take a - GIOP_RequestHeader as a parameter. - - * tao/IIOP_Interpreter.{h, cpp}: Removed the "struct_traverse" and - "union_traverse" methods as they were no longer used. - - * tao/Typecode.{h, cpp}: Removed the original interpreter - "traverse" as it is no longer used since its logic is included in - the different encode and decode methods. - - * tao/POA.cpp: changed the usage of "op_name" to "operation" since - that is the correct method name of the ServerRequest class - according to the CORBA v2.2 spec. - - * tao/POAS.cpp: Massive changes made to use the new style of - skeleton code that the IDL compiler generates - - * tao/{Servant_Base, Operation_Table}.{h, cpp}: The "_find" and - "_bind" operations now take a "const char *opname" rather than - "CORBA::String &opname". - - * tao/Connect.cpp: Server_Request creation now uses the modified - constructor. - - * TAO_IDL/be/{be_visitor_operation, be_interpretive}.cpp: Added - another visitor that generates the exceptionlist for the client - stub. - - * TAO_IDL/be/be_visitor_interface.cpp: Change in generated code to - use the "operation" method on class Server_Request rather than the - non-compliant "op_name". - - * TAO_IDL/be/be_visitor_sequence.cpp: Minor correction to get some - formatting in generated code correct. - - * TAO_IDL/be_include/be_codegen.h: Added a state for exception - list generation - - * TAO_IDL/be_include/be_visitor_operation.h: Added a new visitor - for exception list generation. - -Tue Mar 24 11:01:33 1998 Nanbor Wang - - * tao/TAO.dsp: Added Stub.cpp into the project. - -Tue Mar 24 07:29:20 1998 David L. Levine - - * tao/Makefile,Any.{h,cpp},NVList.*,ORB.h,ORB_Core.{h,cpp}, - Stub.{h,i,cpp},Typecode.{h,cpp},corba.h: - #include the .i file in the .h/.cpp file instead of corba.h - - * tao/ORB.cpp (wscpy): removed, because we now use ACE_OS::wscpy () - instead. - -Mon Mar 23 19:44:11 1998 Irfan Pyarali - - * tao/ORB: CORBA_ORB no longer inherits from IUnknown. - - * tao/IIOP_Object.cpp (set): A valid key must be provided, else - the function will fail. Also removed all cases where the key - was given a default value (of "0"). - - * tao/IIOP_ORB.cpp (QueryInterface): Removed this method. - -Mon Mar 23 13:20:12 1998 Michael Kircher - - * orbsvcs/tests/Simulator/DOVEBrowser/WeaponsVisComp.java: - Found some uninitialized variables and fixed the problem. - This component should now be more stable. - -Mon Mar 23 10:42:12 1998 Chris Gill - - * orbsvcs/orbsvcs/Sched/DynSched.{cpp,h,i} - orbsvcs/orbsvcs/Sched/SchedEntry.{cpp,h,i} - orbsvcs/orbsvcs/Sched/Strategy_Scheduler.{cpp,h,i} - - Merged in the final round of timeline fixes from the - files in the old scheduler directory into the ones - in the new directory. - - * orbsvcs/tests/Sched/DynSched_Test.cpp - - Added directory orbsvcs/tests/Sched and checked in a - copy of DynSched_Test.cpp, the file used to test the - offline behavior of the dynamic scheduler locally. - This file will serve as the basis of a real TAO test - for the on and off line behaviors of the dynamic - scheduler when it is fully integrated into TAO. - -Mon Mar 23 09:18:12 1998 David L. Levine - - * orbsvcs/Dump_Schedule/Makefile,orbsvcs/Event_Service/Makefile, - orbsvcs/Scheduling_Service/Makefile, - orbsvcs/tests/Event_Latency/Makefile, - orbsvcs/tests/EC_Multiple: - replaced orbsvcs/orbsvcs/orbsvcs with orbsvcs/orbsvcs in some - dependencies. - - * tao/ORB.{h,cpp},tao/POA.cpp,tao/encode.cpp, - TAO_IDL/ast/ast_generator.cpp,TAO_IDL/be/be_generator.cpp: - migrated to ACE_OS::WChar. That has a size of 32 bits. - Thanks to Irfan for this recommendation. - - * tao/ORB.cpp (wstring_copy): changed null check at beginning - from "if (*str)" to "if (!str)". - - * tao/Sequence_T.cpp (allocbuf): added missing ; at end of - ACE_NEW_RETURN statement. - - * TAO_IDL/fe/Makefile,lex.yy.cpp,lex.yy.cpp.diff: replaced - #includes of standard headers with #include of OS.h so that - ace/config.h is #included first. The allows config.h to - #defined _REENTRANT before stdio.h is #included, for example. - - * tao/Makefile: marked Object_KeyC.* and POA[SC].* files as - .PRECIOUS so that gmake avoids deleting them. Thanks to - Chris Cleeland for this suggestion. - -Mon Mar 23 03:20:47 1998 Douglas C. Schmidt - - * TAO version 0.1.10, released Mon Mar 23 03:20:47 1998. - -Mon Mar 23 01:19:19 1998 Irfan Pyarali - - * tao/ORB_Core.cpp (init): It is ok not to have a svc.conf file, - therefore check should be: - - if (result != 0 && errno != ENOENT) - -Mon Mar 23 01:17:18 1998 Douglas C. Schmidt - - * tao/corba.h: Moved Request.i up a notch in the corba.h file so - that it will be defined correctly! This obviates the need for - Nanbor's fix below! - -Sun Mar 22 23:19:42 1998 Nanbor Wang - - * tao/Request.cpp: Include Request.i conditionally. - - * tao/Object.h: Added macro TAO_Export to class CORBA_Object_var - and class CORBA_Object_ptr. - -Sun Mar 22 21:54:57 1998 Douglas C. Schmidt - - * TAO_IDL/be/be_interface: Made full_coll_name() a NON-const - method to work around a bug with GCC... - - * TAO/tao: Moved a bunch of inline methods from *.i files into - *.cpp files to avoid warnings from G++. I don't know why it - complains but not inlining this code shouldn't matter unless we - find that these functions get called a lot via profiling... - Thanks to David Levine for pointing this out. - -Sun Mar 22 14:04:31 1998 Nanbor Wang - - * tao/tao.{dsp,dsw}: Updated Project files. - - * tao/Exception.{i,cpp}: Conditionally include its inline file. - Added codes for copy ctor and assignment operator for - CORBA_UserException and CORBA_SystemException. - -Sun Mar 22 13:05:15 1998 Aniruddha Gokhale - - * tao: Added comments, made some modifications, and refined some - class definitions. Changes were made to a large number of files. - -Sun Mar 22 08:00:08 1998 Douglas C. Schmidt - - * Naming_Service.h: Renamed tao_util.h to TAO.h. - - * tao: Removed the CORBA_Cls.* files (since they conflict with the - overall naming scheme) and merged them into the ORB.h class. - -Sun Mar 22 03:52:39 1998 Sergio Flores - - * tao/TAO_Internal.cpp (open_services): "this" may only be used - inside a nonstatic member function. - -Sun Mar 22 02:58:29 1998 Nanbor Wang - - * tao/Makefile: - * tao/corba.h: - * tao/CORBA_Cls.{h,i,cpp}: Rename CORBA.{h,i,cpp} to - CORBA_Cls.{h,i,cpp} because NT doesn't like the coexistance of - corba.h and CORBA.h. - -Sun Mar 22 02:39:54 1998 Sergio Flores - - * tao/CORBA.cpp (ORB_init): made change to check for the return - value when initializing the ORB Core instance. Also, changed the - TAO_Marshal::initialize() to be called before the initialization - of standard exceptions, where we need the marshal factory for CDR - streams. - * tao/ORB_Core.cpp (TAO_ORB_Core::init): made change to check for - the return value when initializing service configurator. - * tao/ORB_Core.cpp (TAO_Resource_Factory::parse_args): changes to - correctly parse the options for "-ORBresources" and "-ORBpoa" - -Sun Mar 22 01:52:01 1998 Douglas C. Schmidt - - * tao/CORBA.cpp: Moved TAO_Exceptions::init_standard_exceptions() - to the beginning of ORB_init() so that we can use exceptions - later within that function. Thanks to Sergio for reporting - this. - -Sat Mar 21 11:00:40 1998 Douglas C. Schmidt - - * tao: Renamed a bunch of files so that the names and - capitalization matches precisely. - - * tao/Request.i: Created this file and moved a bunch of inline - methods into here. - - * tao: Renamed the corbacom.* files (since we don't support COM - anyhow) into CORBA.h and the new CORBA.i and CORBA.cpp files. - - * tao/corbacom.h: Moved the CORBA_SEQUENCE stuff back into the - header file since it wasn't linking correctly... - - * tao/TAO_IDL: Changed all uses of do_call() to do_static_call(). - - * tao: Made lots of minor enhancements to formatting and style. - - * tao: Removed the invoke.cpp file and moved its functionality - back into iiopobj.cpp, where it belongs. - - * tao/sequence_T.i (replace): Added a cast to (T *) so compilers - wouldn't complain! Thanks to Sergio for pointing this out. - - * tao: Renamed IIOP_Object::do_call() to - IIOP_Object::do_static_call() to be symmetrical with - do_dynamic_call()... - - * tao/typecode.cpp: Due to the new reorganization of the code in - interp.cpp we're now able to put all the CORBA_TypeCode methods - back into typecode.cpp, where they belong... - - * tao: Added a new interp.h file and moved the TypeCode table - intialization function into that file. - - * tao/orbobj.cpp: Removed the friggin' global functions - - extern void __TC_init_table (void); - extern void __TC_init_standard_exceptions (CORBA::Environment &env); - - and put them inside of classes, where they belong... - - * tao/corbacom.cpp: Moved CORBA::ORB_init() from orbobj.cpp - (what was it doing there) to corbacom.cpp, which is where it - belongs! - - * tao/giop.cpp: Moved the TAO_GIOP_MsgType enum into the TAO_GIOP - class namespace and renamed all the enums accordingly. - - * tao/except.cpp: Added except.i file to split off inlines into - their own file. - - * tao/sequence_T.i (replace): Fixed some typos in the template - code. Thanks to Ben Eng for reporting these. - -Sat Mar 21 20:34:39 1998 Sergio Flores - - * tao/connect.cpp (open): fixed a bug due to wrong parens - location. - - * tests/Cubit/TAO/MT_Cubit/server.cpp: - * tests/Cubit/TAO/MT_Cubit/Util_Thread.cpp: - * tests/Cubit/TAO/MT_Cubit/Task_Client.h: - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: added option to - disable use of the name service. hacked the code for platforms - that don't support floating point math. Added Quantify start/stop - primitives around CORBA calls. - -Sat Mar 21 17:55:40 1998 Michael Kircher - - * orbsvcs/test/Simulator/NavWeap.idl: removed typo - - * orbsvcs/test/Simulator/DOVEBrowser: New Demo using Java Beans - as visualization components added. This will replace the old - demo under orbsvcs/test/Simulator/Sim_Display. See the readme - file under orbsvcs/test/Simulator for further details. - -Fri Mar 20 23:25:28 1998 Seth Benjamin Widoff - - * orbsvcs/tests/Trading_Service/Makefile: - * orbsvcs/tests/Trading_Service/export_tests.cpp: - * orbsvcs/tests/Trading_Service/import_tests.cpp: - * orbsvcs/tests/Trading_Service/Offer_Exporter.{h,cpp}: - * orbsvcs/tests/Trading_Service/Offer_Importer.{h,cpp}: - * orbsvcs/tests/Trading_Service/Service_Type_Exporter.{h,cpp}: - * orbsvcs/tests/Trading_Service/TT_Info.{h,cpp}: - * orbsvcs/tests/Trading_Service/TTest.idl: - I've added the rough draft of tests that pound the Trading Service - with a variety of method invocations. - - * orbsvcs/Trading_Service/trader.cpp: - * orbsvcs/Trading_Service/Makefile: - The trader now responds to resolve_intial_references multicast - requests with the IOR of its Lookup interface, as per the - specification. - -Fri Mar 20 21:48:47 1998 Douglas C. Schmidt - - * TAO version 0.1.9, released Fri Mar 20 21:48:47 1998. - -Fri Mar 20 19:46:43 1998 Douglas C. Schmidt - - * tao/sequence_T: Added the full complement of get_buffer(), - replace(), and release() calls to TAO's sequences. - - * docs/releasenotes/index.html (href): Reformatted the DOVE - demo section of the release notes a bit. - -Thu Mar 20 17:05:42 1998 Michael Kircher - - *TAO_ROOT/docs/releasenotes/index.html: - Documentation about the DOVE demo - -Fri Mar 20 16:21:28 1998 Irfan Pyarali - - * tests/POA/Generic_Servant/MyFooServant.h: No need to include - generic_servant_export.h. - - * tests/POA/Generic_Servant/Makefile: Added flags to the idl - compiler so that the server library can be made as a dynamic - library. - -Thu Mar 20 16:12:42 1998 Michael Kircher - - *TAO_ROOT/orbsvcs/tests/Simulator/Event_Supplier: - New Project and Workspace files for NT - -Fri Mar 20 11:53:15 1998 Nanbor Wang - - * tests/NestedUpcall/client.cpp: Use EventHandler_vare.in() to - pass in a pointer. Added explicit template instantiation - codes. - -Fri Mar 20 09:46:50 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Event/Memory_Pools.h: - * orbsvcs/orbsvcs/Event/Memory_Pools.cpp: - Locks are needed for the memory pool singletons; thanks to - Thomas Venturella for detecting this. - -Fri Mar 20 09:26:28 1998 David L. Levine - - * tests/POA/Generic_Servant/MyFooServant.h: added - #include "generic_servant_export.h". - - * tao/corbacom.{h,cpp},tao/encode.cpp,tao/poa.cpp, - TAO_IDL/ast/ast_generator.cpp,TAO_IDL/be/be_generator.cpp: - changed CORBA::WChar from platform-dependent type to ACE_UINT16. - This may require casts in application code, if they use - a native wchar_t, from wchar_t to CORBA::WChar. - -Fri Mar 20 02:47:22 1998 Nanbor Wang - - * tao/default_server.cpp - (create_servant_lock,create_poa_lock,create_poa_mgr_lock): - Don't return 0 but an ACE_Null_Mutex as default. - -Fri Mar 20 00:36:16 1998 Irfan Pyarali - - * tao/poa.cpp (dispatch_servant_i): The POA Current was not being - setup correctly. It was used before it was created. Fix was to - change the order of things in dispatch_servant_i() and restored - pre_invoke() to its original state. - - * tests/POA/Generic_Servant/client.cpp (main): Make sure the - client does not crash if the user does not provide an IOR. - - * tests/POA/Generic_Servant/MyFooServant.h (MyFooServant): Added - export macro so that the class gets properly included in the - DLL. - - * TAO_IDL/GenExportH.BAT: Changed %1% to %1. - - * tests/POA/Generic_Servant/generic_servant_export.h: The server - lib will now be created as a DLL instead of as a static library. - New file was added to get the exports right. - -Thu Mar 19 18:42:20 1998 Nanbor Wang - - * TAO_IDL/be/be_visitor_attribute.cpp (visit_attribute): Undefined - variable bt to removed a compilation warning. - - * tao/server_factory.cpp (create_servant_lock): - * tao/default_server.{h,cpp} (create_servant_lock): Added new - method which creates a servant lock according to various - strategies used. - -Thu Mar 19 18:45:13 1998 Alexander Babu Arulanthu - - * orbsvcs/tests/AVStreams/client.h: - * orbsvcs/tests/AVStreams/client.cpp: - * orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp: - * orbsvcs/orbsvcs/AVStreams.idl (interface MMDevice): - PropertyService's PropertySet methods have been tested in the - AVStreams' test application. Tested using the MMDevice interface - of the AVStreams. - -Thu Mar 19 18:20:42 1998 Michael Kircher - - *TAO_ROOT/orbsvcs/tests/Simulator/README: New notes about this release - - *TAO_ROOT/orbsvcs/tests/Simulator/NavWeap.idl: New, simpler Weapons struct - because of a Visibroker for Java 3.2 bug. - - *TAO_ROOT/orbsvcs/tests/Simulator/Event_Supplier: Using the new - Weapons struct. - - *TAO_ROOT/orbsvcs/tests/Simulator/Sim_Display/NS_Resolve.java: Complying - with the new Name Service lookup protocol (4 bytes instead of 2) - - *TAO_ROOT/orbsvcs/tests/Simulator/Sim_Display/Display_Weapons.java: - Using the new Weapons struct. - - *TAO_ROOT/orbsvcs/tests/Simulator/Sim_Display/Display_Push_Consumer.java: - Complying with the naming conventions for the skeleton code of VB 3.2. - -Thu Mar 19 10:51:22 1998 Alexander Babu Arulanthu - - * docs/releasenotes/index.html: Updated entry for the property service. - -Thu Mar 19 09:55:41 1998 Carlos O'Ryan - - * tests/CDR/README: - * tests/CDR/basic_types.cpp: - * tests/CDR/tc.cpp: - Added basic documentation on the purpose of the tests. - -Thu Mar 19 09:26:25 1998 Torben Worm - - * docs/releasenotes/index.html: Added an entry for the Concurrency - Control Service - -Thu Mar 19 08:41:27 1998 David L. Levine - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp (new_context): replaced - ???! with ???? in comment to avoid g++ "warning: 1 trigraph(s) - encountered". - - * orbsvcs/orbsvcs/Sched/Scheduler.cpp: removed two ACE_Lock_Adapter - template instantiations because they're in tao/poa.cpp. - - * orbsvcs/orbsvcs/Runtime_Scheduler.cpp: wrapped a few return - statements that follow ACE_THROW's with ACE_NOTREACHED. - - * orbsvcs/orbsvcs/Config_Scheduler.cpp: wrapped a couple of break - statements that follow returns with ACE_NOTREACHED. - -Thu Mar 19 05:26:10 1998 Aniruddha Gokhale - - * tao/typecode.cpp: In private_member_name, the return value of - "skip_typecode ()" was incorrectly compared with TRAVERSE_CONTINUE - rather than with a boolean value. This is now fixed. - -Wed Mar 18 21:43:46 1998 Aniruddha Gokhale - - * tao/typecode.cpp: private_equal method had a big error. I had - forgotten break statements after every case in the switch - statement. So no matter what, the last result which returned - "TRUE" used to be returned. This is now fixed. - -Wed Mar 18 21:32:24 1998 Douglas C. Schmidt - - * TAO version 0.1.8, released Wed Mar 18 21:32:24 1998. - -Wed Mar 18 21:26:29 1998 David L. Levine - - * orbsvcs/orbsvcs/Naming/Ior_Multicast.cpp (IOR_Multicast): - reordered initializers to match declaration order. - -Wed Mar 18 20:36:46 1998 Douglas C. Schmidt - - * tests/CDR/basic_types.cpp: Rearranged this test file a bit to - make it more structured. - -Wed Mar 18 18:52:12 1998 Aniruddha Gokhale - - * tao/object.{h, cpp}: Changed the name of the method "key ()" to - "_key ()" since this was clashing with names used by users in - their IDl files. As such "key" is not a standard method defined by - OMG on the class Object. Hence we must use a _ before it. - - * tao/{poa, servant_base}.cpp: Used _key instead of key as - explained above. - -Wed Mar 18 18:41:34 1998 Alexander Babu Arulanthu - - * orbsvcs/tests/CosPropertyService/main.cpp (main): Added testcode - for NamesIterator. - -Wed Mar 18 18:33:08 1998 Aniruddha Gokhale - - * tao/any.cpp: There was a bug in the assignment operator whereby - a Release was causing the Any object itself getting deleted. - - * tao/poa.cpp: Changed occurrences of "buffer ()" used on the - object key (which is a sequence) to use "get_buffer" according to - the latest C++ mapping. - -Wed Mar 18 18:32:04 1998 Sergio Flores - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp: - * orbsvcs/orbsvcs/Naming/CosNaming_i.h: Fixed some allocation - errors and added synchronization mechanism for static internal - data structures. Also fixed an undefined symbol due to templates - not being instantiated. - -Wed Mar 18 17:22:40 1998 Douglas C. Schmidt - - * tao/sequence_T.h: Renamed buffer() to get_buffer() to confrom to - orbos/98-01-11. - - * tao/sequence[_T].*: Added the get_buffer(), release(), and - replace() methods defined by the proposed orbos/98-01-11 - specification. - -Wed Mar 18 16:54:33 1998 Irfan Pyarali - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp (next_n): Changed ACE_NEW - to ACE_NEW_RETURN. - -Wed Mar 18 16:39:40 1998 Seth Benjamin Widoff - - * tao/orbobj.{h,cpp}: * tao/params.{h,cpp}: * tao/orbcore.cpp: - Expanded the resolve initial references protocol to include - bootstrappable services other than the Naming Service. Now, the - multicast message includes a field identifying the target - service. The values for this field are defined in orbobj.h -- - currently there are only TAO_SERVICEID_NAMESERVICE, and - TAO_SERVICEID_TRADINGSERVICE. For completeness I've added for - the -ORBtradingserviceior and -ORBtradingserviceport command - line parameters. - - * orbsvcs/Naming/Naming_Utils.cpp: - * orbsvcs/Naming/Ior_Multicast.cpp: - Now, on the receiving end, the bootstrappable service compares - the service_id it receives in the multicast message with its own - before responding to it. - -Wed Mar 18 16:04:38 1998 Alexander Babu Arulanthu - - * orbsvcs/orbsvcs/CosPropertyService.idl (CosPropertyService): - Uncommented sequence of typecodes. It passed the tao_idl - compiler. - -Wed Mar 18 07:18:08 1998 David L. Levine - - * release.pl: uncommented unlink of .del files. - - * tao/encode.cpp (TAO_Marshal_String::encode): #if 0'd unused - local "continue_encoding". - - * tao/sequence{,_T}.cpp: removed some more "meaningless" const - modifiers from casts. - - * tao/typecode.cpp (private_equal): wrapped a break with - ACE_NOTREACHED. - - * tao/corbacom.h: changed CORBA_Boolean to u_char. Thanks - to Seth and Carlos for pointing out that this will conform - to the standard. - - * tao/cdr.i: removed operator <> for CORBA::Boolean _with_ - ACE_HAS_BOOL. No ACE platform currently #defines ACE_HAS_BOOL, - and this will prevent divergence of TAO code if any do in the - future. - -Wed Mar 18 02:08:55 1998 Nanbor Wang - - * tests/Param_Test/client.cpp (~Param_Test_Client): Removed - releasing of the Param_Test pointer. It is owned by the Driver - class. - -Tue Mar 17 23:28:59 1998 Irfan Pyarali - - * tao/poa.h (POA): Changed the LOCATION_RESULT enum from protected - to private. - -Tue Mar 17 13:20:05 1998 David L. Levine - - * tests/Cubit/TAO/IDL_Cubit (print_stats): with - ACE_LACKS_FLOATING_POINT, multiply calls/usec by 10^6 to get - calls/sec. And, use call_count_ instead of hard-coded 1000. - - * tao/orbconf.h,interp.cpp: renamed TAO_ALIGNMENT_MAGIC_NUMBER to - TAO_MAXIMUM_NATIVE_TYPE_SIZE. - - * tao/sequence.i,sequence_T.{i,cpp}: removed "const" from some - ACE_reinterpret_casts, because ghs warned that it's "meaningless". - - * tao/cdr.*,decode.cpp (get_encapsulation): changed type of second - arg from size_t to CORBA::ULong for platform independence. - -Tue Mar 17 11:26:28 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_sequence.cpp: - Fixed return value for operator[] in sequences of basic types, - the _out and _var classes generated non-nested types. Thanks to - Frak. J. Hodum for reporting this problem. - -Tue Mar 17 10:25:46 1998 Carlos O'Ryan - - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_attribute.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_interface_fwd.cpp: - * TAO_IDL/be/be_operation.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_state_argument.cpp: - * TAO_IDL/be/be_state_attribute.cpp: - * TAO_IDL/be/be_state_union.cpp: - * TAO_IDL/be/be_structure.cpp: - * TAO_IDL/be/be_union.cpp: - * TAO_IDL/be/be_visitor_exception.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - * TAO_IDL/be/be_visitor_sequence.cpp: - * TAO_IDL/be/be_visitor_union_branch.cpp: - Some export macros were missing; also fixed minor formatting - problems. - -Mon Mar 16 18:26:51 1998 Irfan Pyarali - - * tests/POA/Default_Servant/File_i.cpp (open): Fixed string being - passed to create_reference_with_id(). The test now works. - - * tao/poa.cpp (find_servant): Added new method to the POA. It - finds and returns the servant related to the key passed by the - user. - -Mon Mar 16 15:27:21 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_interface.cpp: - The _narrow() method is more careful about collocation: the - servant could return 0 on the call to _downcast (for instance if - the servant is using DSI or is implementing the default servant - posicies), in such a case a remote object is created. - Generate the _interface_repository_id() method in all classes. - - * TAO_IDL/be/be_visitor_module.cpp: - In some cases the export macros were not generated. - - * tao/object.h: - * tao/object.cpp: - Added a new method to get the interface repository id (only - locally). - - * tao/servant_base.cpp: - Removed some dead code. - -Mon Mar 16 14:28:34 1998 David L. Levine - - * tao/orbconf.h: cleaned up #define of TAO_ALIGNMENT_MAGIC_NUMBER, - to allow it to be overridden. - -Mon Mar 16 10:47:08 1998 Carlos O'Ryan - - * tao/cdr.h: - * tao/cdr.i: - * tao/cdr.cpp: - The CDR stream class exposed its implementation completely, this - change is the first attempt to close that interface and make it - safer. The internal representation was changed to a - Message_Block, so CDR could eventually create chains of - Message_Blocks (minimizing buffer copies and using writev() for - output). - The next step is to split the class in an input and output - interface, following the Java IDL model. - - * TAO_IDL/Makefile: - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_enum.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_structure.cpp: - * TAO_IDL/be/be_typedef.cpp: - * TAO_IDL/be/be_union.cpp: - * TAO_IDL/be/be_visitor_enum.cpp: - * TAO_IDL/be/be_visitor_exception.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - * TAO_IDL/be/be_visitor_sequence.cpp: - * TAO_IDL/be/be_visitor_structure.cpp: - * TAO_IDL/be/be_visitor_typedef.cpp: - * TAO_IDL/be/be_visitor_union.cpp: - * tao/any.cpp: - * tao/connect.cpp: - * tao/decode.cpp: - * tao/except.cpp: - * tao/giop.h: - * tao/giop.cpp: - * tao/iioporb.cpp: - * tao/interp.cpp: - * tao/objkeyC.cpp: - * tao/poaC.cpp: - * tao/tc_const.cpp: - * tao/typecode.h: - * tao/typecode.cpp: - This files were modified to use (or generate, in the case of the - IDL compiler) the new CDR stream class interface. - - * TAO_IDL/be_include/be_type.h: - * TAO_IDL/be/be_type.cpp: - It used a static buffer to evaluate be_type::nested_type_name(), - it was changed for a per-class buffer, but the real solution is - to allocate a buffer on the fly and return it to the user, maybe - using UTL_String will solve the problem. - - * tests/Makefile: - * tests/CDR/Makefile: - * tests/CDR/basic_types.cpp: - * tests/CDR/tc.cpp: - Added some simple tests to verify that CDR streams work - correctly. - - * taoconfig.mk: - The clean target is defined in ACE config files. - - * docs/orbsvcs.html: - Included documentation on the collocation services. - - * docs/releasenotes/ec.html: - Moved some of the changes from "new in this release" to "changes - in previous releases". - -Sun Mar 15 22:36:08 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader/Admin.* - * orbsvcs/orbsvcs/Trader/Lookup.* - * orbsvcs/orbsvcs/Trader/Policies.* - * orbsvcs/orbsvcs/Trader/Policy_Manager.* - * orbsvcs/orbsvcs/Trader/Offer_Iterator_Collection.* - Added the logic to perform federated queries. At this point I'm - halting further coding of the Trading Service to concentrate on - testing and debugging. The only portion of the specfication left - unimplemented is the Proxy interface, which isn't of immediate - practical use anyway. - -Sun Mar 15 07:56:02 1998 David L. Levine - - * TAO_IDL/be/be_visitor_field.cpp - (be_visitor_field_cs::visit_sequence): made int return type - explicit. - -Sun Mar 15 06:18:58 1998 Aniruddha Gokhale - - * TAO_IDL/be_include/{be_codegen, be_visitor_args}.h: Added a new - state called "POST_MARSHAL_SS" i.e., to do post processing after - the marshaling of return, inout, and out parameters is done in a - server skeleton. Added new visitor class to the argument visitors. - - * TAO_IDL/be/{be_visitor_args, be_visitor_operation, - be_interpretive}.cpp: Code for post processing after marshaling in - the server skeletons. This was required to support object - references. - -Sat Mar 14 19:28:50 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_field.cpp: Added a case for handling - anonymous sequences in the client stub visitor. The header file - was also changed. - -Sat Mar 14 19:29:00 1998 David L. Levine - - * tests/Cubit/TAO/IDL_Cubit/client.cpp (print_stats): added - support for ACE_LACKS_FLOATING_POINT. - -Sat Mar 14 16:40:05 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_operation.cpp: We were not generating the - "_get_" and "_set_" prefixes for operations corresponding to - attributes. This is now fixed. - - * TAO_IDL/be/be_visitor_enum.cpp: Typecode implementation of enum - class was not getting generated due to an incorrect "if" - condition. Thanks to Seth Widoff for noticing this. - - * TAO_IDL/be/be_visitor_union_branch.cpp: We had forgotten to - generate the "set" and "get" operation implementation for union - members that are sequences. Thanks to Seth Widoff for noticing - this. - -Sat Mar 14 02:48:55 1998 Sumedh Mungee - - * orbsvcs/orbsvcs/Makefile (IDL_FILES): Added the SFP IDL files - and the AV/sfp.cpp to the rules. - -Sat Mar 14 02:17:34 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader/*.*: - I've hammered out a number of errors from the initial port: - the Trading Service compiles on Solaris. - - * orbsvcs/orbsvcs/Makefile: - I've added all the necessary additions to the Makefile for the - Trading Service. The makefile will perform the compilation when - the 'trader' flag is set to 1 on the command line. - - * orbsvcs/Trading_Service/Makefile: - * orbsvcs/Trading_Service/trader.cpp: - trader.cpp instantiates a Trader object and registers its Lookup - interface with the bootstrapped Naming Service. All the Trader - interfaces are implicitly activated in the Trader class. In the - future we'll want to have the Trading Service bootstrappable - through the resolve_initial_references method. - -Sat Mar 14 00:36:30 1998 Alexander Babu Arulanthu - - * orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp (define_property): - - * orbsvcs/orbsvcs/Property/CosPropertyService_i.h (PropertyNamesIterator): - - * orbsvcs/orbsvcs/Property/CosProperty_Hash.cpp (CosProperty_Hash_Value): - - * orbsvcs/orbsvcs/Property/CosProperty_Hash.h: - The tao_idl compiler has been made to generate Any at some places - where it was generating Any_var. Hence, I had to modify this - implementaion to accomadate this change. - -Fri Mar 13 10:34:15 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_operation.cpp: For return types that are - object references, we were using the actual return type and - passing its address to the marshaling routine. However, the - marshaling routine needs the address of the base class i.e., - CORBA::Object. Due to "public virtual" inheritance all kinds of - crazy things happen. So now we had to resort to declaring the - return value of type "CORBA::Object_ptr" and things worked fine. - -Fri Mar 13 09:57:51 1998 David L. Levine - - * tao/corbacom.h: use types of known sizes, such as ACE_UINT32 - and ACE_INT16, instead of native types for Boolean, Short, - UShort, Float, and Double. - -Thu Mar 12 21:23:10 1998 Nanbor Wang - - * tao/debug.cpp (_dmsg_x): Changed ex->id () to ex->_id (). - -Thu Mar 12 20:40:09 1998 Sergio Flores - - * tests/Thruput/TAO/client.cpp: - * tests/Thruput/TAO/run_client: - * tests/Thruput/TAO/run_server: - * tests/Thruput/TAO/run_test: Minor fixes in the scripts and usage - message. - -Thu Mar 12 18:02:06 1998 Seth Benjamin Widoff - - * tao/request.cpp: - * tao/typecode.cpp: - The is_nil methods of typecode and CORBA had this: - (CORBA::Boolean) ptr == 0 to test for the nil condition, when we - really want this: (CORBA::Boolean) (ptr == 0). This way we cast - the result of the expression, and not the pointer, to - CORBA::Boolean. - -Thu Mar 12 17:49:45 1998 Aniruddha Gokhale - - * TAO_IDL/be_visitor_typedef.cpp: For typedefs of pseudo object - types, we had forgottten to generate a typedef to the _ptr type. - -Thu Mar 12 17:21:32 1998 Douglas C. Schmidt - - * tao/sequence_T.cpp: Fixed a couple of weird bugs were freebuf - (MAX) was being called instead of freebuf (tmp). Thanks to - Keith Nicewarner for reporting this. - -Thu Mar 12 15:53:44 1998 Aniruddha Gokhale - - * tao/except.h: Changed the member functions "type ()" and "id ()" - on the CORBA::Exception class to "_type ()" and "_id ()". This - affected the following files: - tao/{except, object, poaC, svrrqst}.cpp - - * TAO_IDL/be/be_visitor_exception.cpp: Made changes to use the - _type and _id methods. Thanks to Seth Widoff for noticing this in - his Trader application where a user defined exception had a member - called "type" which clashed with the base class operation "type". - -Thu Mar 12 15:00:47 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_exception.cpp: In those cases where object - references or strings were assigned, the g++ compiler failed to do - implicit conversion to assign a _var to a _ptr type. This is now - fixed by using the _var.in () method. - - * TAO_IDL/be/be_visitor_typedef.cpp: Fixed a bug that was - generating typecode information for data types that were imported - resulting in a multiply defined symbol error at link time. - -Thu Mar 12 09:01:43 1998 David L. Levine - - * TAO_IDL/Makefile: added -Wno-unused to g++ CCFLAGS to - suppress warnings about unused parameters and variables. - - * TAO_IDL/be/be_visitor_interface.cpp - (be_visitor_interface_sh::visit_interface, - be_visitor_interface_collocated_ss::visit_interface): - changed type of loop index "i" to signed, to avoid - signed/unsigned comparison. - - * TAO_IDL/be/be_visitor_sequence.cpp - (be_visitor_sequence_ci::visit_sequence): made int return - type explicit. - - * tests/Cubit/TAO/IDL_Cubit/server.cpp (~Cubit_Server): changed - root_poa_ to poa_. - -Thu Mar 12 01:03:17 1998 Irfan Pyarali - - * tests/POA/NewPOA/NewPOA.cpp (main): Updated the following files - to correctly use CORBA::Policies that are used to create new - POAs. Things that needed fixing included proper exception - handling and making sure to destroy the policies once we were - through using them. - - - TAO/tao/tao_util.cpp - - TAO/tests/Cubit/TAO/MT_Cubit/server.cpp - - TAO/tests/POA/Default_Servant/server.cpp - - TAO/tests/POA/Explicit_Activation/server.cpp - - TAO/tests/POA/NewPOA/NewPOA.cpp - - TAO/tests/POA/On_Demand_Activation/server.cpp - -Wed Mar 11 21:02:13 1998 David L. Levine - - * tao/svrrqst.cpp (marshal): instead of declaring a new loop - index "i", use the one at outer scope because it was shadowed. - -Wed Mar 11 18:10:47 1998 Nanbor Wang - - * tao/TAO_IDL/tao_idl.dsp: Added new visitor files into the project. - -Wed Mar 11 17:23:49 1998 Douglas C. Schmidt - - * tao/tao_util: Changed the name of root_poa_ to poa_ since it - doesn't have to be a root POA. - -Wed Mar 11 14:37:08 1998 Aniruddha Gokhale - - * TAO_IDL/Makefile: Included be_visitor_exception.cpp and ran make - depend - - * TAO_IDL/be/be_interpretive.cpp: The factory is now able to - produce concrete visitors for exceptions. - - * TAO_IDL/be/be_visitor_args.cpp - TAO_IDL/be_include/be_visitor_args.h: Added a method - "void_return_type" that determines if the operation return type - was "void" or not. This was necessary since we were incorrectly - generating ACE_NEW_RETURN statements in stubs for cases that had - void return types - - * TAO_IDL/be/be_visitor_context.cpp - TAO_IDL/be_include/be_visitor_context.h: Added a boolean data - member that indicates whether we are generating the special - constructor in the exceptions. - - * TAO_IDL/be/be_visitor_exception.cpp - TAO_IDL/be/be_visitor_exception.h: Added various visitors for - exception handling. - - * TAO_IDL/be/be_visitor_{struct, union, module, interface, - sequence}.cpp: Made sure that code is not generated for imported - types. - - * TAO_IDL/be/be_visitor_typedef.cpp: Eliminated the multiple - declaration of typedefed variables and their typecodes. - - * TAO_IDL/be/be_visitor_interface.cpp: The "_is_a_skel" now uses - the same table driven approach as the other skeletons do. - -Wed Mar 11 12:54:59 1998 Irfan Pyarali - - * tests/POA/Explicit_Activation/server.cpp (main): The server was - changed to test how the POA handles a user given ID which does - not contain printable characters. - - * tao/poa (Policies and Currents): Since Policies and Currents do - not have locality constraints, they now inherit from regular - servants rather than local servants. This change causes them to - register with POAs when their _this() method is invoked. - Therefore, the destroy() methods on the Policies was changed to - make sure that the Policies are deactivated from the POA they - were registered with. - - * tao/sequence_T.cpp (operator=): The semantics of the elements of - a sequence are the same as that of a var variable. Therefore we - will not duplicate the user provided pointer before assigning it - to the internal variable. However, we will release it. - -Tue Mar 10 16:09:56 1998 Aniruddha Gokhale - - * tao/cdr.{h,cpp}: Added a get_string and put_string method for - retrieving and encoding a string. This uses "memcpy" rather than - having to go through a get_char/put_char for every byte of the - string. - - * tao/connect.cpp: In "handle_request", the marshaling of inout, - out, and return value parameters was done inside this method after - the operation skeleton had returned. This required unnecessary - heap allocation of these parameters. Allocating these parameters - on the skeleton call stack was not possible since the marshaling - took place after the skeleton had returned. To eliminate these - unnecessary waste, 2 new methods on the ServerRequest class are - added that perform the demarshaling and marshaling while the - skeleton call stack is active. More explanation on these is given - below. - - * tao/{encode, decode}.cpp: Used the get_string and put_string - methods on the CDR class. - - * tao/giop.*: Added a method called "stream" that returns a - reference to the underlying CDR stream. This is helpful when you - need access to the stream so that data types can be marshaled into - the stream using a compiled form of marshaling. This form of - marshaling will soon be added to TAO IDL compiler. - - * tao/object.{h, cpp}: Added a method called "stubobj" which - returns a pointer to the underlying Stub_Object. This method - eliminates the need to call QueryInterface inside every stub. This - way some code size is reduced. - - Also, removed the "get_most_derived" method as well as the "void - *sub_" data member which was useless. - - * tao/svrrqst.{h, i, cpp}: Added a new file svrrqst.i. Added two - new methods on class IIOP_ServerRequest. These methods enable - demarshaling and marshaling of parameters while the operation - skeleton's call stack is active. The interface to these methods is - exactly like the one used by do_call i.e., a table driven - approach. Two new data structures - TAO_Param_data_Skel and - TAO_Call_Data_Skel are added. These two tables behave in exactly - the same way as the TAO_Param_Data and TAO_Call_Data tables. See - the generated code to see how these are used by the demarshal and - marshal methods. - - Two more methods and data members are added to this class - - "incoming" and "outgoing". These are the CDR streams that indicate - the incoming and the outgoing CDR streams. - - An additional "init_reply" method is added that is useful for the - compiled marshaling. This is still experimental. - - * TAO_IDL: This is the first release of the new TAO_IDL compiler - based on the Visitor pattern. All the old files and code is still - included in this release until the transition is complete. - - Although the Visitor pattern is used, we still maintain all the - code generation states we had in the previous version of the - compiler. The reason is that we maintain a Factory of Visitors - indexed on these enumerated states. The downside is the necessity - to have states and a larger code size. The larger code size is due - to the fact that everytime a Visitor is required, we must first - set the appropriate state and then ask the factory to produce it - for us. The positive side of this design is that almost all the - Visitor files are independent of each other. They only deal with - an abstract base level Visitors. The Factory will produce the - appropriate specialized Visitor which is a subclass of the base - "visitor" class. An additional benefit is that we can switch from - having to generate code that uses Interpretive marshaling to - compiled marshaling. Visitors for compiled marshaling will be - added later. Here are the files that are added: - - be_include/ - be_visitor.h - be_visitor_args.h - be_visitor_attribute.h - be_visitor_constant.h - be_visitor_context.h - be_visitor_decl.h - be_visitor_enum.h - be_visitor_field.h - be_visitor_interface.h - be_visitor_interface_fwd.h - be_visitor_module.h - be_visitor_operation.h - be_visitor_root.h - be_visitor_scope.h - be_visitor_sequence.h - be_visitor_structure.h - be_visitor_typedef.h - be_visitor_union.h - be_visitor_union_branch.h - be/ - be_visitor.cpp - be_visitor_args.cpp - be_visitor_attribute.cpp - be_visitor_constant.cpp - be_visitor_context.cpp - be_visitor_decl.cpp - be_visitor_enum.cpp - be_visitor_exception.cpp - be_visitor_field.cpp - be_visitor_interface.cpp - be_visitor_interface_fwd.cpp - be_visitor_module.cpp - be_visitor_operation.cpp - be_visitor_root.cpp - be_visitor_scope.cpp - be_visitor_sequence.cpp - be_visitor_structure.cpp - be_visitor_typedef.cpp - be_visitor_union.cpp - be_visitor_union_branch.cpp - - NOTE: Code generation for attributes is achieved by using a crude - form of the Adapter pattern. We convert the Attribute node into - one or possibly two operation nodes and add scope elements that - are arguments. The code gene ration is then handed over to the - Operation Visitors. - - * be/be_interpretive.cpp: This file defined the implementation of - the Factory of Visitors for intepretive marshaling. - - * be_include/be_codegen.h: Added a few more states. Some others - are now useless. They will be removed eventually. Also added the - Abstract Factory for Visitors. - - * Makefile: Modofoed to include all the visitor files and ran - "make depend" on it. - -Tue Mar 10 13:22:20 1998 David L. Levine - - * orbsvcs/tests/Event_Latency/Makefile, - orbsvcs/tests/EC_Multiple/Makefile, - orbsvcs/tests/Simulator/Event_Supplier/Makefile: removed -pedantic - from g++ CCFLAGS because prevented use of native long long - (Linux/i386). - - * orbsvcs/orbsvcs/RtecScheduler.idl: addressed RT_Info open issues, - and updated to match TAO paper. The updates consisted of - changing the names of the Importance enum values so that we - don't have collisions when criticality is added, and comment - updates. - - * orbsvcs/Event/Dispatching_Modules.cpp,ReactorTask.cpp, - orbsvcs/Sched/Config_Scheduler.cpp, - orbsvcs/tests/EC_Multiple/EC_Multiple.cpp, - orbsvcs/tests/Event_Latency/Event_Latency.cpp, - orbsvcs/tests/Simulator/Event_Supplier/Event_{Con,Sup}.cpp: - added _IMPORTANCE to Importance enum values. - -Mon Mar 09 22:27:53 1998 Irfan Pyarali - - * tests/POA/Generic_Servant/client.cpp: Added code to time calls - and produce stats. - - * tao/svrrqst: Removed the lock in CORBA_ServerRequest which was - used to protect the refcount. This protection was excessive. - - * tao/optable.cpp: Changed the table so that it does not use a RW - Lock. Since the optable is read only, a null lock will suffice. - - * tao/objtable.cpp: Changed the implementation of - TAO_Dynamic_Hash_ObjTable so that it does not use a RW Lock. The - POA takes care of all necessary locking, and therefore, a null - lock will suffice. - - * tao/poa: The following optimizations were made to decrease the - time a POA takes to find a servant: - - - Added new classes TAO_Creation_Time and - TAO_Temporary_Creation_Time. These classes are used to record - and compare the creation time of POAs. The old method was - inefficient as unsigned long were used. These long required - conversions to strings. The new scheme uses a fixed size - buffer. The TAO_Temporary_Creation_Time is a special class - that tracks the creation time only during the lifetime of the - upcall. - - - parse_key_permanent_id() and parse_key_temporary_id() were - added so that the parse_key() routine can distinguish when to - create a new id and when to create a special id which is only - used during the lifetime of the upcall. - - - rfind() was added so that the TAO_POA::String::rfind() does - not have to be used. - - - Changed the object_key_type from String to char. - - - In post_invoke(), only create the POA_var if necessary. - - - Changed create_object_key() and parse_key() so that the old - format of: - - Transient/Seconds/MicroSecond/POAName/ObjectId - - to: - - T/TimeStampPOAName/ObjectId - - - Removed excessive memcpy() and strcpy() calls in parse_key(). - - - Changed create_object_id() to not include the POA name. - - - Changed is_poa_generated_id() to take the changes to - create_object_id() into account. - - - Changed string_to_ObjectId() and ObjectId_to_string() to not - use encode and decode routines. - -Mon Mar 9 15:23:19 1998 Sumedh Mungee - - * orbsvcs/tests/AVStreams/mpeg/source/server/server.cpp (open): - Temporarily disabled use of threads, and reverted back to the - forking model. The threaded model needs more work before it can - safely support multiple clients. - -Mon Mar 9 14:57:13 1998 Carlos O'Ryan - - * tao/sequence.h: - * tao/sequence.cpp: - * tao/sequence_T.h: - * tao/sequence_T.cpp: - Removed the _narrow_fixup() method, it was causing problem with - sequences of TypeCodes and it is not really needed: the - functionality can be implemented in the stubs (skeletons) and/or - the >>= methods. - -Mon Mar 09 09:59:01 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: removed - VxWorks-specific code, because it was no longer used, and - relied on a header that was not distributed with TAO. - -Sat Mar 07 12:14:58 1998 Chris Cleeland - - * TAO version 0.1.7, released Sat Mar 07 12:14:58 1998. - -Sat Mar 7 11:59:27 1998 Chris Cleeland - - * tao/orb_core.cpp (get_root_poa): Changed this from being a - macro-implemented method to a hand-implemented method. This is - necessary b/c the location of its resource is keyed not off - resource_source_ but rathe off poa_source_, and there's no macro - avaialble for that. Thanks to John Geiss for - reporting the bug that led to this fix! - -Sat Mar 07 08:29:51 1998 David L. Levine - - * tao/orb_core.cpp (TAO_Default_Reactor ctor and dtor): removed - inline qualifiers. - - * tests/Cubit/TAO/MT_Cubit/Makefile: changed -lm to(MATHLIB). - It looks like Sun C++ and g++ link with -lm by default, so - there shouldn't be any affect on those platforms. Others may - have to define MATHLIB in their platform_macros.GNU. - - * tests/Cubit/TAO/MT_Cubit/client.cpp (do_priority_inversion_test): - changed variables low_client and high_client to low_priority_client - and high_priority_client. Replaced use of cerr with ACE_DEBUG. - -Fri Mar 6 17:56:25 1998 Chris Cleeland - - * Aloha: I bid fond farewall to Team TAO for now. Thanks for the - fun times! - - * tests/NestedUpcall/server.cpp: Integrated new stuff. - - * tests/NestedUpcall/client.cpp: Called new 'stop' method. - - * tests/NestedUpcall/{Reactor.idl,reactor_i.*}: Added 'stop' to Reactor - interface to shutdown the server. - - * tao/tao_util.cpp: Added code to explicitly destroy policies - after creating a child POA. - - * tao/poaS.h: Added a little comment to bring this up in C++ mode - in emacs. - - * tao/poa.cpp: Performed explicit deletes on buffers. - - * tao/object.{cpp,i}: Moved DTOR into .cpp and stuck in comment - explaining refcount semantics on CORBA_Object. - - * tao/iiopobj.i: Changed initial refcount value to zero; the ORB - Core must perform an explicit AddRef() if it intends to hold on to - this object. - - * tao/iiopobj.cpp: Changed Release() so that it will call 'delete - this' whenever the refcount is below zero. - -Fri Mar 06 11:38:38 1998 Nanbor Wang - - * docs/Options.html: Shrinked the table widths to 80% so we can - see everything without scrolling. Thanks to Darrell for the - HTML tip. - -Fri Mar 06 09:36:47 1998 David L. Levine - - * tao/object.i (CORBA_Object): reordered initializers to match - declaration order. Also, move _set_parent () before the - constructor so that it is defined before being used. - - * tao/cdr.{i,cpp}: modified to base in/out operations - on ULongLong instead of LongLong, because we have - better support for ULongLong with ACE_LACKS_LONGLONG_T. - - * tao/cdr.{h,cpp} (get_ulonglong): removed const argument qualifier. - -Fri Mar 06 00:18:38 1998 Irfan Pyarali - - * tao/poaS and poaC: Removed about a 1000 lines of stubs and - skeletons code from poaC.cpp and poaS.cpp. This code was not - necessary because of the locality constraints on certain POA - objects. This should help reduce the footprint of TAO. - -Thu Mar 5 19:54:27 1998 Sergio Flores - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp: bind_context, rebind, - and bind were fixed to handle errors more carefully. Thanks to - Mark Boriack for pointing this out. - -Thu Mar 5 18:15:32 1998 Chris Cleeland - - * tao/giop.cpp: Removed crufty unused code. - - * tao/iioporb.cpp: - * tao/iiopobj.*: - * tao/decode.cpp: - * tao/object.{h,i}: - * tao/orbobj.cpp: - * tao/poaC.cpp: - * tao/request.cpp: - * tao/servant_base.{h,cpp}: - Broke the old, incestous, bizarre "contained" relationship between - IIOP_Object and CORBA_Object. Now, multiple CORBA_Objects can - reference the same IIOP_Object, and each is reference-counted - separately. Moreover, an IIOP_Object has no back-pointer to a - CORBA_Object. All of this should help alleviate many memory - leaks. - - * TAO_IDL/be/be_interface.cpp: Changed emitted code for _narrow - and _bind to deal with new relationship btw. CORBA_Object and - IIOP_Object. - -Thu Mar 5 17:45:28 1998 Carlos O'Ryan - - * tao/cdr.i: - If CORBA::WChar is an alias for CORBA::Short we cannot overload - operator<< on it. - - * tao/corbacom.h: - * tao/typecode.h: - MSVC++ does not like a class forward declared as a structure. - - - * tests/Cubit/TAO/MT_Cubit/Makefile: - -lm is required in IRIX. - -Thu Mar 05 16:18:53 1998 Irfan Pyarali - - * tao/poa.cpp (ObjectId_to_wstring and ObjectId_to_const_wstring): - Changed the odd looking access to a sequence's buffer to use the - new buffer() accessor. - -Thu Mar 5 13:15:37 1998 Carlos O'Ryan - - * tao/cdr.h: - * tao/cdr.i: - Added a error flag to the class and some << and >> operators to - start a more useable interface for the CDR streams. - - * tao/any.h: - * tao/any.cpp: - * tao/except.h: - * tao/except.cpp: - * tao/nvlist.h: - * tao/nvlist.cpp: - * tao/principa.h: - * tao/principa.cpp: - * tao/request.h: - * tao/request.cpp: - * tao/typecode.h: - * tao/typecode.i: - * tao/typecode.cpp: - They don't inherit from IUnknown any more. Removed the - QueryInterface method, but kept AddRef and Release to keep the - change propagation to a minimum. - In accordance to the new memory managment scheme the locks were - also removed, the agument is: - + In the common case the locks are *not* needed. - + When needed a lock at that level does *not* work. - + The application can add its own locking for the objects that - are effectively shared among threads. - - * tao/sequence.h: - * tao/sequence.cpp: - * tao/sequence_T.h: - * tao/sequence_T.cpp: - Sequences of objects require some post processing *after* - demarshalling: the object references must be narrowed to the - right type; a new virtual method was added for that purpose. - -Thu Mar 05 09:08:09 1998 David L. Levine - - * .../Makefile: added(POSTLINK) to link commands. - Please, if you don't use rules.bin.GNU, be sure to - follow it as closely as possible. - -Wed Mar 04 19:49:31 1998 David L. Levine - - * tao/orb_core (preconnect): changed type of loop index to - size_t to avoid signed/unsigned comparison. Added some - template instantiations. - -Wed Mar 4 16:35:37 1998 Chris Cleeland - - * tao/orbobj.*: Added an extension to the CORBA_ORB interface - that allows an application to preconnect to multiple servers by - specifying a string of host:port pairs. - - * tao/orb_core.*: Broke the preconnection logic out of init() - and made it its own method, preconnect(). This also uses - Connector<>::connect_n() rather than implementing its own loop. - It really didn't make things much easier, but we can take - advantage of future improvements to that implementation - transparently, now. - - * docs/Options.html: Added more details on various options. - -Tue Mar 03 21:11:22 1998 David L. Levine - - * orbsvcs/orbsvcs/RtecScheduler.idl: updated a comment: the units - of Period are 100 ns. - - * orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp (initialize_queues), - Task_Manager.cpp (initialize): maintain period in units of 100 ns - when converting period from a 64 bit to a 32 bit int. - - * orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp (open_queue), - ReactorTask.cpp (open_reactor): assign name to thread using units - of us. - -Mon Mar 2 19:01:44 1998 Alexander Babu Arulanthu - - * orbsvcs/tests/CosPropertyService/main.cpp (class - TAO_PropertySet_Tester): Added this wrapper class to organise my - test code, testing the methods in the PropertyService interfaces. - -Mon Mar 2 16:48:59 1998 Carlos O'Ryan - - * TAO_IDL/be/be_codegen.cpp: - * TAO_IDL/fe/idl.ll: - * TAO_IDL/fe/lex.yy.cpp: - * TAO_IDL/util/utl_global.cpp: - More changes attempting to remove the \ problem for NT. - - * tao/orbobj.h: - Added a missing TAO_Export macro. - - * tao/typecode.h: - * tao/typecode.i: - Added the _var and _out classes for CORBA_TypeCode. - - * tao/corbacom.h: - Added the TypeCode_var and TypeCode_out classes to the CORBA - class. - -Mon Mar 2 15:39:57 1998 Douglas C. Schmidt - - * tao/sequence_T.h: Added a ptr() accessor to both the - TAO_Bounded_Sequence and TAO_Unbounded_Sequence classes. Thanks - to Carol Sanders for suggesting this. - - * tao/sequence[_T].{i,cpp}: Cleaned up a bunch of - ACE_reinterpret_cast() operations. Thanks to Russ Noseworthy - for reporting this. - -Mon Mar 2 13:13:19 1998 Carlos O'Ryan - - * TAO_IDL/fe/idl.ll: - * TAO_IDL/fe/lex.yy.cpp: - Fixed pathname canonization for NT, we convert a double - backslash into a single slash. - -Mon Mar 02 08:00:41 1998 David L. Levine - - * tao/orb_core.cpp: only instantiate ACE_Convert with g++. - Even that shouldn't need it, because it's always inline. - But, g++ typically creates out-of-line instantiations of - inline template member functions. - - * tao/sequence.{h,cpp} (TAO_{B,Unb}ounded_Base_Sequence): - added (virtual) destructors. Without them, GreenHills on - Chorus was duplicating their vtables when instantiating - templates based on those classes. - - * orbsvcs/orbsvcs/Makefile,tmplinst-orbsvcs.cpp: - renamed tmplinst.cpp to tmplinst-orbsvcs.cpp to avoid mangled name - collisions with tmplinst.cpp in test directories, when using - GreenHills/Chorus. - - * tests/Cubit/TAO/IDL_Cubit/server.cpp (main): added explicit - int return type. - -Sun Mar 1 13:42:56 1998 Nanbor Wang - - * release.pl: This script will now move the 'Current' tag to - point to the latest beta release. - -Sun Mar 1 10:40:31 1998 Aniruddha Gokhale - - * tao/{poa, objtable}.cpp: Removed the "Anachronism" warning - associated with the _out parameters passed to the find () method. - -Sat Feb 28 18:37:54 1998 Alexander Babu Arulanthu - - * orbsvcs/orbsvcs/Property/CosProperty_Hash.cpp: - * orbsvcs/orbsvcs/Property/CosProperty_Hash.h: - * orbsvcs/tests/CosPropertyService/main.cpp: - Added some more code to test the functions defined in CosPropertyService_i.cpp. - * orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp: - * orbsvcs/orbsvcs/Property/CosPropertyService_i.h: - * orbsvcs/orbsvcs/CosPropertyService.idl: - * orbsvcs/tests/Makefile (DIRS): Added the directory - CosPropertyService under DIRS here. It is compiled when av=1. - -Fri Feb 27 19:55:09 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/IDL_Cubit_Test.cpp (main): Added this - file which spawns the server and client and terminates them after - some time. - -Fri Feb 27 17:57:55 1998 Chris Cleeland - - * tests/NestedUpcall/server.cpp: Started integrating the - TAO_ORB_Manager, but it's untested thus far so it's - conditionally-compiled out. - - * tao/{any,connect,default_server,except, - orb_core,orbobj,principa,request}.cpp: Whacked out a bunch of @@ - comments. - -Fri Feb 27 16:11:53 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: - * tests/Cubit/TAO/MT_Cubit/Task_Client.h: - * tests/Cubit/TAO/MT_Cubit/Util_Thread.cpp: - * tests/Cubit/TAO/MT_Cubit/Util_Thread.h: - * tests/Cubit/TAO/MT_Cubit/client.cpp: - * tests/Cubit/TAO/MT_Cubit/server.cpp: - * tests/Cubit/TAO/MT_Cubit/server.h: Changes to make it compile on - sigle-threaded platforms. - - * docs/releasenotes/index.html: update to naming service - entry. - -Fri Feb 27 15:03:58 1998 Chris Cleeland - - * docs/Options.html (TAO_Default_Server_Strategy_Factory): Added - documentation for POA-related lock strategies. - - * tao/connect.cpp (handle_input): Added call to - Reactor::suspend_handler() in here so that, in the bizarre corner - case where sub-event loop "A" eventually leads to sub-sub-event - loop "B" being called, but input becomes available for "A"'s - descriptor prior to "B"'s descriptor, B's loop won't spin wildly, - gobbling up CPU. - -Fri Feb 27 15:00:42 1998 David L. Levine - - * orbsvcs/orbsvcs/Time_Utilities.i (hrtime_to_TimeT): with - ACE_LACKS_LONGLONG_T, set the high word directly. The - ACE_U_LongLong operator >> returns an ACE_U_LongLong, - so the assignment won't work otherwise. - - * tao/orb_core.cpp: added ACE_Convert (const char *, u_int &) - instantiation. - -Fri Feb 27 12:08:19 1998 Nanbor Wang - - * tao/orb_core.h (TAO_Resource_Factory): Changed to use - TAO_Default_Reactor class in TAO_Resource_Factory. - -Fri Feb 27 11:10:24 1998 Chris Cleeland - - * test/NestedUpcall/{eh_i,reactor_i}.cpp: Changed debug statements - to utilize the new ACE_Log_Msg conversions to indent scopes, etc. - -Fri Feb 27 00:40:36 1998 Douglas C. Schmidt - - * TAO version 0.1.6, released Fri Feb 27 00:40:36 1998. - -Thu Feb 26 19:29:33 1998 Seth Benjamin Widoff - - * orbscvs/orbsvcs/Trader/Admin.cpp: - * orbsvcs/orbsvcs/Trader/Admin.h: - * orbsvcs/orbsvcs/Trader/Attributes.cpp: - * orbsvcs/orbsvcs/Trader/Attributes.h: - * orbsvcs/orbsvcs/Trader/Constraint.cpp: - * orbsvcs/orbsvcs/Trader/Constraint.h: - * orbsvcs/orbsvcs/Trader/Constraint_Evaluator.cpp: - * orbsvcs/orbsvcs/Trader/Constraint_Evaluator.h: - * orbsvcs/orbsvcs/Trader/Constraint_Interpreter.cpp: - * orbsvcs/orbsvcs/Trader/Constraint_Interpreter.h: - * orbsvcs/orbsvcs/Trader/Constraint_Nodes.cpp: - * orbsvcs/orbsvcs/Trader/Constraint_Nodes.h: - * orbsvcs/orbsvcs/Trader/Constraint_Tokens.h: - * orbsvcs/orbsvcs/Trader/Constraint_Validator.cpp: - * orbsvcs/orbsvcs/Trader/Constraint_Validator.h: - * orbsvcs/orbsvcs/Trader/Constraint_Visitor.h: - * orbsvcs/orbsvcs/Trader/Constraint_l.cpp: - * orbsvcs/orbsvcs/Trader/Constraint_y.cpp: - * orbsvcs/orbsvcs/Trader/Dynamic_Property.cpp: - * orbsvcs/orbsvcs/Trader/Dynamic_Property.h: - * orbsvcs/orbsvcs/Trader/Interpreter.cpp: - * orbsvcs/orbsvcs/Trader/Interpreter.h: - * orbsvcs/orbsvcs/Trader/Link.cpp: - * orbsvcs/orbsvcs/Trader/Link.h: - * orbsvcs/orbsvcs/Trader/Lookup.cpp: - * orbsvcs/orbsvcs/Trader/Lookup.h: - * orbsvcs/orbsvcs/Trader/Monitor.h: - * orbsvcs/orbsvcs/Trader/Offer_Filter.cpp: - * orbsvcs/orbsvcs/Trader/Offer_Filter.h: - * orbsvcs/orbsvcs/Trader/Offer_Id_Iterator.cpp: - * orbsvcs/orbsvcs/Trader/Offer_Id_Iterator.h: - * orbsvcs/orbsvcs/Trader/Offer_Iterator.cpp: - * orbsvcs/orbsvcs/Trader/Offer_Iterator.h: - * orbsvcs/orbsvcs/Trader/Offer_Modifier.cpp: - * orbsvcs/orbsvcs/Trader/Offer_Modifier.h: - * orbsvcs/orbsvcs/Trader/Policies.cpp: - * orbsvcs/orbsvcs/Trader/Policies.h: - * orbsvcs/orbsvcs/Trader/Policy_Manager.cpp: - * orbsvcs/orbsvcs/Trader/Policy_Manager.h: - * orbsvcs/orbsvcs/Trader/Preference_Interpreter.cpp: - * orbsvcs/orbsvcs/Trader/Preference_Interpreter.h: - * orbsvcs/orbsvcs/Trader/Property_Evaluator.cpp: - * orbsvcs/orbsvcs/Trader/Property_Evaluator.h: - * orbsvcs/orbsvcs/Trader/Property_Filter.cpp: - * orbsvcs/orbsvcs/Trader/Property_Filter.h: - * orbsvcs/orbsvcs/Trader/Proxy.cpp: - * orbsvcs/orbsvcs/Trader/Proxy.h: - * orbsvcs/orbsvcs/Trader/Query_Only_Offer_Iterator.cpp: - * orbsvcs/orbsvcs/Trader/Query_Only_Offer_Iterator.h: - * orbsvcs/orbsvcs/Trader/README: - * orbsvcs/orbsvcs/Trader/Register.cpp: - * orbsvcs/orbsvcs/Trader/Register.h: - * orbsvcs/orbsvcs/Trader/Register_Offer_Iterator.cpp: - * orbsvcs/orbsvcs/Trader/Register_Offer_Iterator.h: - * orbsvcs/orbsvcs/Trader/Sequences.idl: - * orbsvcs/orbsvcs/Trader/Service_Type_Map.cpp: - * orbsvcs/orbsvcs/Trader/Service_Type_Map.h: - * orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp: - * orbsvcs/orbsvcs/Trader/Service_Type_Repository.h: - * orbsvcs/orbsvcs/Trader/Trader.cpp: - * orbsvcs/orbsvcs/Trader/Trader.h: - * orbsvcs/orbsvcs/Trader/Trader_Base.cpp: - * orbsvcs/orbsvcs/Trader/Trader_Base.h: - * orbsvcs/orbsvcs/Trader/constraint.l: - * orbsvcs/orbsvcs/Trader/constraint.y: - * orbsvcs/orbsvcs/CosTrading.idl: - * orbsvcs/Trading_Service/Makefile: - * orbsvcs/Trading_Service/trader.cpp: - - The Trading Service has a new home and a new orb. I've migrated - the VisiBroker implementation of the Trading Service to TAO by - having the interfaces inherit from the POA_CosTrading skeletons, - replacing the the C++ exception handling with the TAO_* macro - exception handling and CORBA::Environment passing, and prefixing - all top level classes with 'TAO_'. Because the tao_idl generated - code from CosTrading.idl was having some trouble, nothing here has - been compiled since the port. The README file contains additions - to the Makefile necessary to accommodate the Trading Service's - reliance on STL. - - The orbsvcs/Trading_Service/trader.cpp is a server that activates - the supported interfaces of our Trading Service. At this point our - Trader adheres to the Stand Alone Trader designation of - conformance as described in the specification. - -Thu Feb 26 18:38:56 1998 Nanbor Wang - - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp (TAO_Naming_Server): - Fixed a syntax error. - -Thu Feb 26 18:07:16 1998 Alexander Babu Arulanthu - - * docs/releasenotes/index.html: Added an entry for the Property Service. - -Thu Feb 26 17:36:21 1998 Nanbor Wang - - * tao/orb_core.{h,cpp} (TAO_Default_Reactor): I added the new class - tring to strategize the type of reactor used. It is not used at - the moment. - -Thu Feb 26 16:18:47 1998 Douglas C. Schmidt - - * TAO_IDL/be/be_interface.cpp (gen_client_stubs): Split out some - code to use a couple temporary variables to work around what - might be a Heisenbug with GCC. Thanks to Carlos O'Ryan and - Keith Nicewarner for reporting this. - -Thu Feb 26 14:52:20 1998 Chris Cleeland - - * tests/NestedUpcall/{eh_i,reactor_i}.{h,cpp}: Added - implementation for the new decrement operation. - - * tests/NestedUpcall/client.cpp: Added calls to invoke the new - decrement operation. - - * tests/NestedUpcall/Reactor.idl: Added a new operation, - decrement, to test multi-nested upcalls. - - * tao/connect.cpp (send_request): Fixed to return appropriate - return values, especially in case of errors. - -Thu Feb 26 14:02:36 1998 Nanbor Wang - - * tao/tao_util.cpp (activate_under_child_poa): Instead of - returning a String_var, return String_var._retn (). - (activate_under_child_poa): Actually, it seems better just - use String than String_var. - -Thu Feb 26 13:31:06 1998 David L. Levine - - * TAO_IDL/Makefile: added "all" target for CROSS-COMPILE platforms. - -Thu Feb 26 05:39:43 1998 Nanbor Wang - - * tests/NestedUpcall/client.cpp: Cast (char *) to 0 which is used - to initialize remote_reactor_key. - (main): Added ACE_const_cast in string_to_object call. - - * tests/NestedUpcall/NestedUpcall.dsw: - * tests/NestedUpcall/client.dsp: - * tests/Nestedupcall/server.dsp: New project files for NT. - - * tests/Cubit/TAO/IDL_Cubit/server.cpp (init_naming_service,main): - Appended a return at the end. - - * tests/Cubit/TAO/IDL_Cubit/client.dsp: - * tests/Cubit/TAO/IDL_Cubit/server.dsp: Updated project file - lists. - - * tao/TAO.dsp: Added tao_util.cpp into this project. - - * tao/tao_util.h (TAO_ORB_Manager): Added TAO_Export flag. - - * orbsvcs/orbsvcs/orbsvcs.dsp: Added Ior_Multicast.cpp and - Naming_Utils.cpp into this project. - - * orbsvcs/orbsvcs/Naming/Ior_Multicast.h: - * orbsvcs/orbsvcs/Naming/Naming_Utils.h: Added - TAO_ORBSVCS_Export flag. - - * orbsvcs/Naming_Service/Naming_Service.cpp: Added a return - statement to muffle MSVC. - -Wed Feb 25 22:53:56 1998 Douglas C. Schmidt - - * tao/orbobj: Changed the signature of the run(ACE_Time_Value &) - method to run(const ACE_Time_Value &) so we can pass the const - ACE_Time_Value::zero to it. Thanks to Chris Cleeland for - suggesting this. - - * orbsvcs/orbsvcs/Event/RT_Task.h: Changed the use of ACE_MT_SYNCH - to ACE_SYNCH so that we can at least build the Event Channel on - a single-threaded platform. - - * orbsvcs/orbsvcs/Event_Service_Constants.h: Changed the use of - ACE_Thread_Mutex and ACE_RT_Thread_Mutex to ACE_THREAD_MUTEX and - ACE_RW_THREAD_MUTEX, respectively, so that TAO will build on - non-threaded platforms. - - * tao/poa.cpp, - tao/default_server.cpp: Fixed TAO by conditionally - compiling the code that relies on the recursive mutexes - and mutexes. Thanks to Jim Penny - for reporting this. - -Wed Feb 25 22:47:48 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/README:: - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: - * tests/Cubit/TAO/MT_Cubit/Task_Client.h: - * tests/Cubit/TAO/MT_Cubit/cubit.idl: - * tests/Cubit/TAO/MT_Cubit/cubit_i.cpp: - * tests/Cubit/TAO/MT_Cubit/cubit_i.h: Made changes to have the - option to specify oneway calls instead of the usual two-way - cube_X() call. Now, you can specify the "-o" argument on the - client side. - -Wed Feb 25 22:47:16 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/client.cpp (parse_args): Similar to - server.cpp changed the meaning of -s option to not to use the - naming service and naming service is used by default. - - * tests/Cubit/TAO/IDL_Cubit/server.cpp (parse_args): Changed the - meaning of the -s option to "don't use the naming service" and made - using the naming service the default. - -Wed Feb 25 22:47:16 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/server.cpp (parse_args): Changed the - meaning of the -s flag to "don't use the naming service" and made - using the naming service the default. - -Wed Feb 25 18:03:35 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/tests/AVStreams/Makefile: - * tests/Cubit/TAO/IDL_Cubit/Makefile: - Updated dependencies. - -Wed Feb 25 17:13:05 1998 Nagarajan Surendran - - * orbsvcs/Naming_Service/Naming_Service.cpp (Naming_Service): - Changed the main to just create an instance of Naming_Service and - call init and run on it. - - * orbsvcs/Naming_Service/Naming_Service.h: Added this file which - defines a Naming_Service class to simplify the Naming_Service.cpp - file. - -Wed Feb 25 16:52:13 1998 Chris Cleeland - - * tao/servant_base.cpp: Updated to reflect change of poa_current_ - from structure to pointer. - - * tao/poa.*: Changed signature of pre_invoke() and post_invoke() - to deal with poa current storage coming from the stack. - - * tao/poa.cpp (dispatch_servant_i): Changed to create POA Current - information record on the stack during the upcall, thus clearing - the way for proper operation in the face of nested upcalls. - - * tao/orbobj.cpp: Updated to reflect change of poa_current_ from - structure to pointer. - - * tao/orb_core.*: Changed poa_current_ to a pointer rather than - ownership. This allows the structure holding the POA Current - information to be created in the activation record for the upcall, - thus opening the door for proper operation in the face of nested - upcalls. - - * tao/giop.h: Removed cruft/unused code. - - * tao/giop.cpp: Addressed some '@@' comments. - - * tao/connect.*: Fixed a problem where nested upcalls would only - work every other time. This was caused by the fact that the - servant-turned-client cached the connection to the - client-turned-servant. However, when the client-turned-servant - terminated, the servant-turned-client was ignoring input events on - this cached connection handle. Then, when the next instance of - the client-turned-servant came along and tried to connect, when - the servant-turned-client made the invocation back to the - client-turned-servant, the cached handle was returned. However, - when its input was read, rather than getting the expected - response, an EOF was received and the servant-turned-client - aborted the entire original invocation. - - This was fixed by having the TAO_Client_Connection_Handler always - registered to receive input events and to maintain record of its - state so that it can tell whether or not it's expecting input. If - it receives an unexpected input event, then it will simply close - down the connection, possibly logging a warning message as well. - -Wed Feb 25 16:06:59 1998 Sumedh Mungee - - * orbsvcs/tests/AVStreams/{client,server}.{h,cpp}: Added callback - support - -Wed Feb 25 16:04:49 1998 Sumedh Mungee - - * orbsvcs/orbsvcs/AV/AVStreams_i.cpp,h: Added support for making - upcalls into the application when connection is established, - requested etc.. - -Wed Feb 25 12:58:04 1998 Nagarajan Surendran - - * tao/tao_util.cpp: Added the implementation for the 2 new methods - to use a child_poa. - - * tao/tao_util.h (class TAO_ORB_Manager): Added 2 new methods - init_child_poa and activate_under_child_poa to create a child_poa - with policies PERSISTENT and USER_ID. - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp (bind): Added checks for - null pointers in ACE_DEBUG. - - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp: Moved this file from - orbsvcs/Naming_Service/ to this dir. - - * orbsvcs/orbsvcs/Naming/Naming_Utils.h: Moved this file from - orbsvcs/Naming_Service/ to this directory. - -Wed Feb 25 12:20:04 1998 David L. Levine - - * tao/any.cpp (operator<<=): removed declaration of local "tc", - which shadowed the declaration in the outer scope. - - * tao/giop.cpp (start): added a debug message for connection - failures. This is where problems often occur for new users/ - environments, and it'll help diagnose configuration problems. - And Linux getsockname () bugs. - -Tue Feb 24 21:05:08 1998 Nagarajan Surendran - - * orbsvcs/Naming_Service/Main.cpp: This now contains the main - which was previously in Naming_Service.cpp to facilitate - integrating the IOR_Multicast class defined in Naming_Service.cpp - into the orbsvcs library. - - * orbsvcs/Naming_Service/Naming_Utils.h: Defines a new - TAO_Naming_Server wrapper class which can be used as a - Naming_Server component if one wants a separate Naming_Server. - - * orbsvcs/Naming_Service/Naming_Utils.cpp: Added this new file - which implements the TAO_Naming_Server class. - - * tests/Cubit/TAO/IDL_Cubit/client.cpp (read_ior): Added 2 new - methods read_ior and init_naming_service. - - * tests/Cubit/TAO/IDL_Cubit/server.cpp: Now contains the - implementation of Cubit_Server class with a really simple main. - - * tests/Cubit/TAO/IDL_Cubit/server.h (class Cubit_Server): Defined - a new Cubit_Server class akin to Cubit_Client. - - * orbsvcs/Naming_Service/Naming_Service.cpp: Moved the main () to - a separate file Main.cpp - -Tue Feb 24 17:45:20 1998 Douglas C. Schmidt - - * tao/orbobj.h: Removed the unnecessary = 0 on the new run method. - - * tao/orbobj.cpp (run): Added a new run() method that takes an - ACE_Time_Value & rather than an ACE_Time_Value * so that we don't - need to pass the address! - -Tue Feb 24 14:31:37 1998 Chris Cleeland - - * tests/NestedUpcall/client.cpp (main): Replaced orb->open() with - orb->run(&ACE_Time_Value::zero), which though still non-standard, - is less non-standard than open(). - - * tests/NestedUpcall/README: Added one for the good of all - mankind. - -Tue Feb 24 13:23:48 1998 Michael Kircher - - * orbsvcs/tests/Simulator/NavWeap.idl: Added new fields - - * orbsvcs/tests/Simulator/Event_Supplier/Event_Sup.cpp: - adopted to new IDL file - - * orbsvcs/tests/Simulator/Sim_Display/Display_Push_Consumer.java: - adopted to new IDL file - - -Tue Feb 24 00:41:48 1998 Alexander Babu Arulanthu - - * orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp: Added TITLE, - DESCRIPTION for all the classes - -Mon Feb 23 22:40:22 1998 David L. Levine - - * tao/cdr.h: removed old, commented out configuration code. - - * TAO_IDL/be/be_decl.cpp (tc_name2long): changed type of "buf" array - from char to long so that it gets properly aligned. This solves - the core dump problem with tao_idl on egcs/Solaris. Thanks to - Håkan Källberg for reporting this. - - * TAO/tests/Thruput/TAO/utils.cpp (prep_timer): cast LONG_MAX - to ACE_INT32 to avoid overflow problems if the result is an - int type, and long is bigger than int. - - * orbsvcs/orbsvcs/Event/Event_Channel.i: specify constant - 2147483648u as unsigned, to avoid compiler warning. - - * TAO_IDL/Makefile: removed -fPIC for g++ because it's not needed - without shared libraries. - - * TAO_IDL/Makefile: added Cleanup section, which cleans out builds - that were created with the nested version of the Makefile. - -Mon Feb 23 22:13:14 1998 David L. Levine - - * TAO version 0.1.5, released Mon Feb 23 22:13:14 1998. - -Mon Feb 23 21:30:04 1998 David L. Levine - - * TAO_IDL/Makefile: added the g++ options that were picked up - from be/Makefile. - - * tests/Cubit/TAO/MT_Cubit/server.cpp (start_servants): - declare local "i" outside of for loop because it is reused - in a few loops. - -Mon Feb 23 20:45:03 1998 Michael Kircher - - * orbsvcs/tests/Simulator/Sim_Display: Fixed some small - bugs concerning the representation - - * orbsvcs/tests/Simulator/Event_Supplier/Event_Sup.cpp: - Changed the rate on which events are supplied - - -Mon Feb 23 18:51:03 1998 Sergio Flores - - * orbsvcs/Naming_Service/Naming_Service.cpp (main): Set the handle - limit to the maximum. - - * tests/Cubit/TAO/MT_Cubit/server.cpp (initialize_orb): Fixed a - warning from compiler. - -Mon Feb 23 17:33:52 1998 Carlos O'Ryan - - * TAO_IDL/Makefile: - We don't generate the compiler as a single executable, without - multiple shared libraries. - -Mon Feb 23 16:55:08 1998 David L. Levine - - * orbsvcs/orbsvcs/Event_Service_Constants.h: changed types of - ACE_ES_* constants from u_long to long to match - RtecEventComm::EventType. - - * orbsvcs/orbsvcs/Event/Memory_Pools.cpp: updated template - instantiations to use ACE_Singleton instead of ACE_TSS. - -Mon Feb 23 12:25:21 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Event/Memory_Pools.h: - * orbsvcs/orbsvcs/Event/Memory_Pools.i: - * orbsvcs/orbsvcs/Event/Memory_Pools.cpp: - We cannot use TSS memory pools: in some cases the memory is - allocated in one thread and disposed in another. Until we can - clean out that behavior I'm using a singleton. - -Mon Feb 23 11:57:16 1998 Alexander Babu Arulanthu - - * orbsvcs/orbsvcs/Property/ : Changed the names EXT_ID and INT_ID - that I used for Hash_Table operations to less generic - CosProperty_Hash_Key and CosProperty_Hash_Value respectively. - -Mon Feb 23 11:40:37 1998 David L. Levine - - * tao/corbacom.h (CORBA::LongLong): use ACE_BIG_ENDIAN - instead of TAO_WORDS_BIGENDIAN. - - * tao/orbconf.h (TAO_ENCAP_BYTE_ORDER): use ACE_LITTLE_ENDIAN - instead of trying to figure it out from cpp #defines, which - failed for LynxOS. Also, removed TAO_WORDS_BIGENDIAN. - - * tao/interp.cpp (declare_entry,setup_entry): use the align_struct_ - with padding by default, unless TAO_HAS_FIXED_BYTE_ALIGNMENT is - #defined. - - * tao/corba.h: added ACE_UNUSED_ARG (VAR); to TAO_CATCH macro - for platforms without ACE_HAS_EXCEPTIONS, to avoid compiler - warning about unused variable if VAR isn't used anywhere. - - * TAO_IDL/Makefile: added clean and realclean targets for - CROSS-COMPILE platforms. - - * TAO_IDL/be/be_interface.cpp (be_interface::relative_name): - commented out unused local variable "def_scope". - - * TAO_IDL/be/be_sequence.cpp: commented out some unused variables - to avoid compiler warnings. The comments correspond to commented-out - sections of code. - - * TAO_IDL/be/be_visitor_interface.cpp - (be_visitor_collocated_ss::visit_operation): removed unused - local "nl". - - * TAO_IDL/be/be_visitor_root.cpp (be_visitor_root_ch::visit_sequence): - added ACE_UNUSED_ARG (node). - - * TAO_IDL/be/be_visitor_sequence.cpp - (be_visitor_sequence_ch::visit_sequence): commented out unused - local "cg". - - * orbsvcs/tests/Event_Latency/Event_Latency.cpp - (Latency_Supplier::push): added ACE_UNUSED_ARG (_env). - -Mon Feb 23 10:58:42 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/AV/AVStreams_i.h: - * orbsvcs/orbsvcs/Event/Dispatching_Modules.h: - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: - * orbsvcs/orbsvcs/Event/Fast_Reactor.h: - * orbsvcs/orbsvcs/Event/GPlot_File.h: - * orbsvcs/orbsvcs/Property/CosPropertyService_i.h: - * orbsvcs/orbsvcs/Property/CosProperty_Hash.h: - * orbsvcs/orbsvcs/Sched/DynSched.h: - * orbsvcs/orbsvcs/Sched/SchedEntry.h: - * orbsvcs/orbsvcs/Sched/Strategy_Scheduler.h: - * Added more TAO_ORBSVCS_Export macros, this time in files that - are not compiled all the time. - -Sun Feb 22 22:14:08 1998 Chris Cleeland - - * tao/giop.cpp (invoke): Created my own temporary variable in - order to de-warn on g++ and Sun CC. - -Sun Feb 22 20:12:24 1998 Nanbor Wang - - * orbsvcs/orbsvcs/orbsvcs/orbsvcs.dsp: Adapted chages to the directory - rearrangement. - - * orbsvcs/orbsvcs/Runtime_Scheduler.h: - * orbsvcs/orbsvcs/Scheduler_Utilities.h: - * orbsvcs/orbsvcs/Event/BCU.h: - * orbsvcs/orbsvcs/Event/Dispatching_Modules.h: - * orbsvcs/orbsvcs/Event/Event_Channel.h: - * orbsvcs/orbsvcs/Event/Memory_Pools.h: - * orbsvcs/orbsvcs/Event/RT_Task.h: - * orbsvcs/orbsvcs/Event/ReactorTask.h: - * orbsvcs/orbsvcs/Event/Task_Manager.h: - * orbsvcs/orbsvcs/Naming/CosNaming_i.h: - * orbsvcs/orbsvcs/Naming/Entries.h: - * orbsvcs/orbsvcs/Sched/Config_Scheduler.h: - * orbsvcs/orbsvcs/Sched/Scheduler.h: - * orbsvcs/orbsvcs/Sched/Scheduler_Generic.h: Added - TAO_ORBSVCS_Export flags. - -Sat Feb 21 08:08:55 1998 David L. Levine - - * rules.tao.GNU: added -Wno-used to CCFLAGS, with g++ only. - - * tao/align.h,corbacom.h,orbconf.h,orbobj.cpp: - use ACE Basic_Types instead of local SIZEOF_* macros. - - * tao/debug.cpp: null f{,un}lockfile with ACE_HAS_DCE_DRAFT4_THREADS - (LynxOS). - - * tao/any.cpp (operator<<=): initialized local "tc" to avoid compiler - warnings. - - * tests/POA/On_Demand_Activation/Servant_Activator.cpp (etherealize), - Servant_Locator.cpp (preinvoke,postinvoke): - added some ACE_UNUSED_ARG's. - - * TAO_IDL/Makefile,tao/Makefile: use CROSS-COMPILE flag instead of - CHORUS, LYNXOS, and VXWORKS. This allows us to add new cross- - compile platforms without having to modify the TAO Makefiles. - The new platform need only set the CROSS-COMPILE flag. - -Sat Feb 21 00:31:20 1998 Chris Cleeland - - * tao/connect.* (send_request): Modified to take an extra arg - which specifies whether or not the request is a twoway, i.e., - whether or not it should enter a sub-event loop looking for a - reply. - - * tao/giop.cpp (invoke): Changed to match signature of - send_request. - - * tests/NestedUpcall/Reactor.idl: Added a oneway method to test - nested upcalls with oneways. - - * tests/NestedUpcall/reactor_i.*: Added the oneway implementation. - - * tests/NestedUpcall/client.cpp: Made oneway invocation to test a - problem that the nested upcall allowing ORB exhibited. Thanks to - Carlos for reporting this! - -Fri Feb 20 14:40:28 1998 Chris Cleeland - - * tao/connect.*: Extended TAO_Client_Connection_Handler to be run - a sub-event loop while sending a request in order to handle nested - upcalls. A really cool side-effect of this is that if your - application start out being a client but has servants too, it's - really easy to get that up and running. An example of this is - shown in the new test, NestedUpcall. - - * tao/giop.cpp (invoke): Changed to call send_request on the - client connection handler rather than TAO_GIOP. This new - send_request will handle nested upcalls (see above). - - * tao/giop.* (send_request): Changed signature so that the - TAO_SVC_HANDLER* wasn't passed by reference. This was totally - unnecessary. - - * tao/{iioporb,orbobj}.* (string_to_object): Removed unnecessary - 'const' preceding CORBA::String. - -Fri Feb 20 08:29:35 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp (svc): added .in () - dereference to several objref uses. - - * orbsvcs/orbsvcs/Event/Memory_Pools.cpp: updated the - ACE_TSS > template instantiation to use the - ACE_LOCAL_MEMORY_POOL macro. - - * orbsvcs/orbsvcs/Event/Event_Channel.{h,cpp} - (ACE_ES_{Con,Dis}junction_Group): added virtual destructors. - -Thu Feb 19 12:54:50 1998 Alexander Babu Arulanthu - - * orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp - (create_initial_propertysetdef): Assigned dummy return values in - order to avoid Warnings. - - * orbsvcs/orbsvcs/Property/CosProeprtyService.idl file removed - from here. It is supposed to be there in ./.. - -Thu Feb 19 12:49:49 1998 David L. Levine - - * Makefile: build orbsvcs before tests. - - * tao/Makefile: set fakesvcconf on LynxOS. - - * TAO_IDL/Makefile: don't build the IDL compiler for - Chorus, LynxOS, or VxWorks. - - * tao/orbobj.cpp: enhanced some printouts. - - * tao/tao_util.cpp (orb): added .in () dereference to orb_ argument. - -Thu Feb 19 10:15:00 1998 Michael Kircher - * orbsvcs/test/Simulator: Set the file permissions right. - -Thu Feb 19 10:15:00 1998 Michael Kircher - * orbsvcs/test/Simulator: - Intruduced new demo, using the Event Service as transport - media for monitoring events. - See orbsvcs/test/Simulator/README for more information - - in orbsvcs/tests/Simulator: - NavWeap.idl - IDL definition of the Navigation and Weapons struct - ss - restart services script - - in orbsvcs/tests/Simulator/Event_Supplier: - Event_Sup.cpp - Event Supplier - Event_Sup.h - Event Supplier class definition - Makefile - Event Supplier Makefile - (Event_Con.cpp, Event_Con.h - Event Consumer for testing) - svc.conf - helper file - - in orbsvcs/tests/Simulator/Sim_Display: - Display.java - Simulation - Display_Client.java - Main Entry point of the Simulation - Display_Consumer.java - Event Consumer - Display_Object.java - Interface for an Display_Object - Display_Weapons.java - Implementation of an Display_Object - Display_Art_Horizon.java - Implementation of an Display_Object - Display_Object_Factory.java - Factory Object for Display_Objects - Graph.java - Simulation - Graph_Panel.java - Simulation - NS_Resolve.java - Resolving the inital reference to the Naming Service - Queue.java - Simulation - Sim_Panel.java - Simulation - Border_Panel.java - Simulation - - -Wed Feb 18 22:15:06 1998 Sumedh Mungee - - * tao/tao_util.cpp,h: Updated class to include a constructor so - user can supply his own orb, poa or manager. - -Wed Feb 18 21:40:24 1998 - - * docs/orbsvcs.html: - Updated the description of orbsvcs directory hierarchy. - -Wed Feb 18 19:45:57 1998 Alexander Babu Arulanthu - - * Added the idl file for the CosPropertyService , i.e. - orbsvcs/orbsvcs/Property/CosPropertyService.idl - -Wed Feb 18 17:56:54 1998 Carlos O'Ryan - - * orbsvcs: - Moved all the implementations to the orbsvcs libraries, this is - the first step to give the user control over object - collocation. - Please note that this version is only known to compile on - Solaris/CC, it will *not* compile on NT (some "export" macros - are missing); since this change is very disruptive (because it - moves files around) it was thought that holding it for a long - time will result in more harm than good. - A top-level make onTAO_ROOT/orbsvcs works OK. - -Wed Feb 18 17:10:23 1998 Sumedh Mungee - - * tao/tao_util.cpp (init): The ORB_Manager class does not create - it's own POA, but uses the default root POA instead. - -Wed Feb 18 16:02:34 1998 Alexander Babu Arulanthu - - * Commented and indented the follwing files in orbsvcs/orbsvcs/ - CosPropertyService.idl - CosPropertyService_i.h - CosPropertyService_i.cpp - -Wed Feb 18 12:28:58 1998 Carlos O'Ryan - - * tests/Thruput/TAO/tmplinst.cpp: - The templates should be instantiated over the CORBA:: typedefs, - otherwise they fail in weird platforms. - -Wed Feb 18 11:57:24 1998 Chris Cleeland - - * tests/Cubit/TAO/MT_Cubit/Makefile (LDLIBS): Removed -lposix4 - from the LDLIBS. Thanks to Bob Olson for - reporting this. - -Wed Feb 18 02:58:40 1998 Nanbor Wang - - * orbsvcs/Naming_Service/Naming_Service.cpp (IOR_Multicast): Make - sure that response_addr_ is properly initialized before it is - used to initialize response_, which is an ACE_SOCK_Dgram. - -Tue Feb 17 20:20:35 1998 Douglas C. Schmidt - - * tao/giop.cpp: Removed an extra explicit template instantiation - of TAO_Unbounded_Sequence. Thanks to - Ben Eng for reporting this! - - * tests/Thruput/TAO/Makefile: Removed the "clean" macro since it - was conflicting with the TAO default. - -Tue Feb 17 21:47:41 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp (shutdown): Renamed please_exit - method to shutdown. - - * tests/Cubit/TAO/IDL_Cubit/cubit.idl: Renamed please_exit operation to - shutdown. - -Tue Feb 17 17:22:47 1998 Chris Cleeland - - * TAO version 0.1.4, released Tue Feb 17 17:22:47 1998. - -Tue Feb 17 16:50:20 1998 Chris Cleeland - - * tao/orbobj.cpp (open): Modified so that if it's been called - multiple times it returns '1' rather than '-1', thus not appearing - to calling code as an error. - -Tue Feb 17 16:05:55 1998 Nanbor Wang - - * orbsvcs/orbsvcs/orbsvcs.dsp: Chris G. updated the file list of - this project. - - * orbsvcs/orbsvcs/Time_Utilities.h: - * orbsvcs/orbsvcs/Event_Utilities.h: Added MS keayword, - TAO_ORBSVCS_Export. - - * tests/Cubit/TAO/IDL_Cubit/client.dsp: - * tests/Cubit/TAO/IDL_Cubit/server.dsp: Updated project setting to - take the advantage of TAO naming service. - - * orbsvcs/tests/Event_Latency/Event_Latency.dsp: Updated project - setting to use DLL version of orbsvcs. - -Tue Feb 17 15:39:49 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/Makefile: - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: - * tests/Cubit/TAO/MT_Cubit/Task_Client.h:: - * tests/Cubit/TAO/MT_Cubit/client.cpp: - * tests/Cubit/TAO/MT_Cubit/cubit.idl: - * tests/Cubit/TAO/MT_Cubit/cubit_i.cpp: - * tests/Cubit/TAO/MT_Cubit/cubit_i.h: - * tests/Cubit/TAO/MT_Cubit/server.cpp: - * tests/Cubit/TAO/MT_Cubit/server.h: Made a bunch of changes to - correctly support the POA. In addition, MT_Cubit now uses the - Name Service to bind the Cubit objects. In case the Name Service - doesn't exist, there is still the "cut&paste" ior method that uses - a cubit factory to give the client a reference to the cubit - objects. - -Tue Feb 17 13:25:52 1998 Nanbor Wang - - * TAO-INSTALL.html: Added instructions on using the CPP_LOCATION - environment variable in NT's section. You can also use it on - UNIX but NT is the only platform which depends on it. - -Tue Feb 17 11:30:53 1998 David L. Levine - - * tao/orbconf.h: set TAO_ALIGNMENT_MAGIC_NUMBER to 128 if - ACE_SIZEOF_LONG > 4, e.g., on 64-bit CPUs. - - * tao/except.cpp (make_standard_typecode): replaced unsigned long/ - long with CORBA::ULong/CORBA::Long. - - * TAO_IDL/ast/ast_array.cpp,ast_operation.cpp,ast_sequence.cpp, - ast_string.cpp, - TAO_IDL/util/utl_decllist.cpp,utl_exceptlist.cpp,utl_exprlist.cpp, - utl_idlist.cpp,utl_labellist.cpp,utl_namelist.cpp,utl_strlist.cpp: - moved base class initialization to beginning of initializer list. - -Tue Feb 17 10:43:45 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/CosTimeBase.idl: - * orbsvcs/orbsvcs/Time_Utilities.cpp: - * orbsvcs/orbsvcs/Time_Utilities.h: - * orbsvcs/orbsvcs/Time_Utilities.i: - Added the standard CORBA types for time, also added some helper - routines to convert between BasicTime::TimeT and the common - representations of time in ACE (ACE_Time_Value and ACE_hrtime_t) - - * orbsvcs/orbsvcs/RtecEventComm.idl: - * orbsvcs/orbsvcs/RtecScheduler.idl: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - * orbsvcs/Event_Service/ReactorTask.cpp: - * orbsvcs/Event_Service/Task_Manager.cpp: - * orbsvcs/Scheduling_Service/Config_Scheduler.cpp: - * orbsvcs/Scheduling_Service/Config_Scheduler.h: - * orbsvcs/Scheduling_Service/Scheduler.cpp: - * orbsvcs/orbsvcs/Channel_Clients_T.i: - * orbsvcs/orbsvcs/Event_Service_Constants.h: - * orbsvcs/orbsvcs/Event_Utilities.i: - * orbsvcs/orbsvcs/Runtime_Scheduler.cpp: - * orbsvcs/orbsvcs/Runtime_Scheduler.h: - * orbsvcs/Event_Service/Dispatching_Modules.cpp: - * orbsvcs/Event_Service/Event_Channel.cpp: - Adapted all the code to use the new time structures. - - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/tests/EC_Multiple/Makefile: - * orbsvcs/tests/Event_Latency/Makefile: - * orbsvcs/tests/Logger/Makefile: - * orbsvcs/tests/Simple_Naming/Makefile: - * orbsvcs/Event_Service/Makefile: - * orbsvcs/Naming_Service/Makefile: - * orbsvcs/Scheduling_Service/Makefile: - * orbsvcs/Dump_Schedule/Makefile: - Updated dependencies. - - * docs/releasenotes/ec.html: - Updated documentation for this release. - -Tue Feb 17 07:40:49 1998 Douglas C. Schmidt - - * tao/any.cpp: Added a "return *this" to operator= to stop certain - compilers from complaining. Thanks to Andy for fixing this. - -Tue Feb 17 04:08:11 1998 Nanbor Wang - - * TAO_IDL/driver/drv_preproc.cpp (DRV_cpp_init): Setting the - CPP_PATH has been causing a lot of nasty trouble on NT. I - changed this function to allow overwriting the internal c++ - compiler location at run time usingCPP_LOCATION. If someone - forgets to set the CPP_PATH when compiling tao_idl, one can - make tao_idl work by defining this environment variable to - something like: - - set CPP_LOCATION="C:/Program Files/DevStudio/VC/BIN/CL.exe" - - Notice that CPP_LOCATION _must_ be a full pathname of the c++ - compiler. - -Tue Feb 17 00:56:08 1998 Alexander Babu Arulanthu - - * orbsvcs/tests/CosPropertyService/main.cpp (main): Added some - more testing for Any in and out of Hash Table. - -Mon Feb 16 18:01:23 1998 Chris Cleeland - - * TAO version 0.1.3, released Mon Feb 16 18:01:23 1998. - -Mon Feb 16 18:00:15 1998 Chris Cleeland - - * release.pl: Changed C++ comment leaders to Perl comment leaders. - -Mon Feb 16 17:51:15 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/svr.cpp : Added -s option to use the - NamingService. Default doesn't use NamingService. - -Mon Feb 16 17:38:15 1998 Chris Cleeland - - * tao/iioporb.cpp: Made sure to count separators when allocating - space for the IOR. This corrected ABW errors in purify. - - * tao/connect.cpp: Explicitly set the buffer when being purified - to avoid complaints. - -Mon Feb 16 17:22:15 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/Makefile: Changed LDFLAGS to link orbsvcs - library.Now uses the Naming service. - - * tests/Cubit/TAO/IDL_Cubit/svr.cpp: Added code to register - IDL_Cubit/cubit_factory name with the naming service. - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: Added a -s flag to use the - NamingService to resolve the cubit_factory flag. It still has the - commandline IOR and -f ior_file options. - -Mon Feb 16 13:29:31 1998 Brian Mendel - - * tao/poa.cpp: Added SCE_HAS_TEMPLATE_TYPEDEFS_CHAR guards - around ACE_OS:strlen calls for WChar(s). - * tao/default.bld, tao.bld: Update VxWorks GHS Build files. - -Mon Feb 16 12:24:04 1998 Chris Cleeland - - * tests/Cubit/TAO/IDL_Cubit/clnt.h (needed.): Added missing member - variable. Things now compile. - -Mon Feb 16 10:18:25 1998 David L. Levine - - * tao/poa.cpp (decode_string_to_sequence): moved declaration of - local "i" outside of loop because it is used after the loop. - - * orbsvcs/Event_Service/RT_Task.cpp (synch_threads): try two - fallback strategies if the task activiation fails: - ACE_SCHED_OTHER scheduling class with requested priority, then - ACE_SCHED_OTHER scheduling class with minimum thread priority. - Thanks to Bob Olson for reporting the - problem in Irix, which doesn't have a thread priority of 0 - with ACE_SCHED_OTHER. - - * tao/corbacom.h (CORBA_SEQUENCE): replaced CORBA::B_FALSE with 0 - because some compilers, such as egcs, can't handle its use before - definition below in class CORBA. Thanks to Todd Pack - for reporting this. - - * tao/giop.cpp (TAO_GIOP_message_name): cast quotient of sizeof's - to int to avoid signed/unsigned comparison. - - * tao/interp.cpp (calc_nested_size_and_alignment,private_size, - private_alignment): qualified TC_KIND_COUNT with CORBA::, - so that the file-scope TC_KIND_COUNT isn't used in the - comparison. - -Mon Feb 16 10:14:34 1998 Carlos O'Ryan - - * TAO_IDL/be/be_array.cpp: - The _free method was emitted in the .i file, but it was not - declared inline. Thanks to Michael Kircher (mk1@cs.wustl.edu) - for reporting this one. - -Mon Feb 16 02:34:24 1998 Alexander Babu Arulanthu - - * orbsvcs/orbsvcs/CosPropertyService_i.cpp: Defined some of the - functions for the TAO_PropertySet class. - - * orbsvcs/orbsvcs/CosPropertyService_i.h: Defined the classes for - implementing the CosPropertyService for TAO. - - * orbsvcs/tests/CosPropertyService/Makefile: Added this - Makefile ( Makefile for making test program for the - PropertyService ) - - * orbsvcs/orbsvcs/CosProperty_Hash.cpp: Added this file. - - * orbsvcs/orbsvcs/CosProperty_Hash.h (Table): Added this - file. This contains the classes for maintaining Hash Table for - storing the PropertySets. - - * orbsvcs/tests/CosPropertyService/main.cpp (main): Added this - test file for CosPropertyService - - -Sun Feb 15 20:12:00 1998 Chris Cleeland - - * tao/poa.{h,cpp}: Heavily modified several routines to correct - problems with the notion of what, exactly, an object key really - is. Some were treating it as simply an octet sequence, others as - a zero-terminated string (C-style), while others as a sequence of - octets which must be terminated by a zero. - - Object keys and IDs are now stored canonically as opaque octet - sequences, and two new conversion routines - (encode_sequence_to_string and decode_string_to_sequence) have - been created to convert between these octet sequences and C-style - strings. - - * tao/iioporb.cpp (object_to_string): Modified to utilize the new - encoding routines to convert from octet sequences to printable - strings. - - * tao/{tao_internals,orbobj}.cpp: Added explicit inclusion of - Object_Manager.h. - -Sun Feb 15 16:15:49 1998 Nagarajan Surendran - - * tests/Param_Test/options.cpp (parse_args): Changed the -f option - to read the servant-IOR from a file. - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: Changed the -f - to -f . Reads the ior - from that file. - - * tests/Cubit/TAO/IDL_Cubit/svr.cpp : Added -o - option to output the cubit factory ior to a file. - -Sat Feb 14 22:39:46 1998 Sergio Flores - - * orbsvcs/tests/Logger/clnt.cpp (init): Added negative test case - of name not found when calling the naming service' resolve() - method. - -Fri Feb 13 19:37:01 1998 Douglas C. Schmidt - - * tao/orbobj.cpp (resolve_name_service): Changed char buf[BUFSIZ] - to char buf[ACE_MAX_DGRAM_SIZE] to make sure we don't overflow - the buffer! - -Fri Feb 13 18:18:54 1998 Sergio Flores - - * tests/Makefile: - * tests/Thruput/TAO/client.cpp: - * tests/Thruput/TAO/Makefile: - * tests/Thruput/TAO/server.cpp: - * tests/Thruput/TAO/ttcp_i.cpp: - * tests/Thruput/TAO/ttcp_i.h: - * tests/Thruput/TAO/utils.cpp: Made changes to use the new POA. - -Fri Feb 13 12:56:01 1998 David L. Levine - - * release.pl: fixed typo, missing comma between chmod args. - -Fri Feb 13 12:46:26 1998 David L. Levine - - * TAO version 0.1.2, released Fri Feb 13 12:46:26 1998. - -Thu Feb 12 21:09:22 1998 Sumedh Mungee - - * orbsvcs/orbsvcs/AVStreams_i.{h,cpp}: Updated MMDevice and StreamCtrl - -Thu Feb 12 20:55:48 1998 Sumedh Mungee - - * tests/AVStreams/client,server: Updated to use the new StreamCtrl, MMDevice etc.. - -Thu Feb 12 11:06:48 1998 Chris Cleeland - - * tao/poaC.i (PortableServer): Moved POA::_nil() definition above - many uses. - -Thu Feb 12 10:21:47 1998 David L. Levine - - * tests/TAO/Cubit/TAO/MT_Cubit/Task_Client.cpp (svc): added .in () - to objref and cb so that it will compile with g++. - - * tao/Makefile,xdr.{h,cpp},t-xdr.cpp,corba.h: removed xdr files - because they're no longer used. - - * tao/encode.cpp,poa.{h,cpp},poaC.{h,cpp}: replaced wchar_t - with CORBA::WChar. - - * TAO_IDL/ast/ast_generator.cpp,TAO_IDL/be/be_generator.cpp - (create_wstring): use short instead of wchar_t if - ACE_HAS_WCHAR_TYPEDEFS_CHAR. - - * TAO_IDL/be/be_array.cpp (tao_name): changed type of loop index - "i" to unsigned int to avoid signed/unsigned comparison. - - * TAO_IDL/be/be_state_exception.cpp,be_state_structure.cpp (gen_code): - added default case to switch statement, which sets "os" to 0, to - avoid compiler warning about possible unitialized use. - - * tests/POA/Default_Servant/File_i.cpp (lseek): changed type - of "result" to CORBA::Long to avoid signed/unsigned comparison - with -1. Cast it to CORBA::ULong on return. Also, added a - couple of ACE_UNUSED_ARG (env)'s. - - * tests/Param_Test/server.cpp (main): initialize local - "param_test" to 0 to avoid warning about unitialized use. - - * orbsvcs/Scheduling_Service (compute_scheduling): added cast - of impl->tasks () to RtecScheduler::handle_t to avoid signed/ - unsigned comparison. Also, added a bunch of ACE_UNUSED_ARG (env)'s. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp (EC_Proxy::push, - Test_ECP::push): changed type of loop index "i" to u_int to - avoid signed/unsigned comparison. Also, added an - ACE_UNUSED_ARG (env). - -Wed Feb 11 11:20:34 1998 David L. Levine - - * tao/iiopobj.h,stub.h (operator =): added return type to avoid - compiler warning, and wrapped in ACE_UNIMPLEMENTED_FUNC. - - * tao/corbacom.h: rearranged LongLong typedefs so that they work - with ACE_LACKS_LONGLONG_T. - - * tao/Timeprobe.cpp (print_times): divide by 1000u instead of 1000 - to allow overload resolution of ACE_U_LongLong::operator /. - - * tao/orb_core.cpp: removed break's after return's to avoid compiler - warnings. - - * tao/typecode.cpp: wrapped some break and return statements with - ACE_NOTREACHED to avoid compiler warnings. - - * tao/debug.cpp (use_debug_stream_to_get_rid_of_warning): changed - to return debug_stream instead of (not) using it. ghs warned that - "controlling expression is constant" the way things were. - - * TAO_IDL/Makefile: added default_vxworks target to prevent make - warning. - -Tue Feb 10 17:39:13 1998 Chris Gill - - * orbsvcs/Scheduling_Service/SchedEntry.cpp - orbsvcs/Scheduling_Service/DynSched.{cpp,h} - orbsvcs/Scheduling_Service/Strategy_Scheduler.{cpp,h} : - - fixes to priority assignment, timeline generation methods - (fourth cut - timelines being generated) - -Tue Feb 10 11:19:20 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - Fixed several problems detected by SGI/C++ compiler. - -Mon Feb 9 20:00:55 1998 Chris Gill - - * orbsvcs/Scheduling_Service/SchedEntry.{cpp,h,i} - orbsvcs/Scheduling_Service/DynSched.{cpp,h,i} - orbsvcs/Scheduling_Service/Strategy_Scheduler.{cpp,h} : - - finished timeline coding, got a clean source compile - (third cut - still a work in progress) - - -Mon Feb 9 12:59:29 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/RtecEventComm.idl: - * orbsvcs/Event_Service/Event_Channel.cpp: - * orbsvcs/Event_Service/Event_Channel.i: - * orbsvcs/orbsvcs/Event_Utilities.cpp: - * orbsvcs/orbsvcs/Event_Utilities.i: - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - Added comments to the EventComm module and a new field (ttl_: - Time-to-Live) to the event data structure. - - * orbsvcs/orbsvcs/Channel_Clients_T.cpp: - * orbsvcs/orbsvcs/Channel_Clients_T.h: - * orbsvcs/orbsvcs/Channel_Clients_T.i: - I finally needed the TIE classes for PushConsumers and - PushSupplier, they work OK now. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - * orbsvcs/tests/EC_Multiple/README: - * orbsvcs/tests/EC_Multiple/Makefile: - * orbsvcs/tests/Makefile: - Added a simple example on how to connect multiple event - channels. - - * orbsvcs/Event_Service/Event_Service.cpp: - * orbsvcs/Naming_Service/CosNaming_i.cpp: - Added and/or fixed some debug messages. - - * orbsvcs/Scheduling_Service/Config_Scheduler.cpp: - Reduce default output level. - - * tao/corba.h: - Fixed TAO_RETHROW_RETURN macro. - - * docs/releasenotes/ec.html: - * docs/releasenotes/index.html: - Split the Event Channel release notes to a separate file, the - index.html was growing without control. - -Mon Feb 9 09:15:08 1998 Carlos O'Ryan - - * docs/releasenotes/orbcore.html: - Fixed reference to TAO-Install.html, thanks to Sreedharani - for reporting this one. - -Sun Feb 08 21:41:24 1998 David L. Levine - - * tao_util.cpp (run): added return 0 statement at end. - -Sun Feb 8 19:48:33 1998 Chris Gill - - * orbsvcs/Scheduling_Service/SchedEntry.{cpp,h,i} : Moved the - Classes for the various scheduling entries out of the - ACE_Scheduler class and into a separate set of files - (first cut - still a work in progress) - - * orbsvcs/Scheduling_Service/DynSched.{cpp,h,i} : Completed - merges of dispatches, and a thorough review of priority - assignment (second cut - still a work in progress) - - * orbsvcs/Scheduling_Service/Strategy_Scheduler.{cpp,h} : - Completed merges of dispatches, and a thorough review of the - modified strategies (second cut - still a work in progress) - -Fri Feb 6 15:31:17 1998 Carlos O'Ryan - - * TAO_IDL/be/be_array.cpp: - Fixed several problems with the array code generation, - including: - + The name for the array TypeCode and its alias TypeCode were - clashing. - + Several inconsistencies in the declaration and definition of - operations for _var, _out and _forany parameters. - Thanks to James Mason for reporting this. - - * TAO_IDL/be/be_type.cpp: - Increased the buffer size for some names to the "standard" - NAMEBUFSIZE. - - * docs/releasenotes/orbcore.html: - The "Last Updated" field is set by CVS now. - - * tao/interp.cpp: - * tao/encode.cpp: - Removed obsolete comments. - -Wed Feb 4 12:30:43 1998 Chris Cleeland - - * tao/objkeyC.h: Modified so that the namespace mapping for the - TAO module uses the alternative "underbar" mapping, i.e., rather - than TAO::ObjectKey, it's now TAO_ObjectKey. The scoping - operation is now performed in tao.h. - - * tao/tao.h: This now contains a class (used as a namespace) in - which components which *should* be in the TAO:: namespace are - typedef'd. - - * tao/tao_util.*: Moved TAO_ORB_Manager into here. - - * tao/stub.h: - * tao/servant_base.cpp: - * tao/poa.h: - * tao/poa.cpp: - * tao/orbobj.h: - * tao/orbobj.cpp: - * tao/orb_core.h: - * tao/orb_core.cpp: - * tao/object.h: - * tao/object.cpp: - * tao/iiopobj.h: - * tao/iiopobj.cpp: - * tao/corba.h: - Changed references of TAO::ObjectKey to TAO_ObjectKey. - - * tao/Makefile: Adjusted build tao_util.so rather than tao.so. - -Mon Feb 2 22:51:03 1998 Nanbor Wang - - * rules.tao.GNU (TAO_IDLFLAGS): - * orbsvcs/orbsvcs/Makefile (TAO_IDLFLAGS): Changed IDLFLAGS to - TAO_IDLFLAGS to avoid naming conflict with IDLFLAGS for other - IDL compilers. - -Mon Feb 2 21:41:32 1998 Nanbor Wang - - * orbsvcs/orbsvcs/Makefile: Added Win32 IDL flags for portability. - -Mon Feb 02 18:50:19 1998 Nanbor Wang - - * orbsvcs/orbsvcs/Scheduler_Factory.h: Added the - TAO_ORBSVCS_Export directive to class Scheduler_Factory. - - * TAO_IDL/GenExportH.BAT: New Windows batch file which generate - an header file with approriate exporting flags defined. See - this file for details. - - * orbsvcs/orbsvcs_export.h: New file that defines the Export - directives for Win32. Generated by GenExportH.BAT in TAO_IDL/. - - * orbsvcs/orbsvcs/orbsvcs.dsw: Added new project file for DLL - version of orbsvcs library. - - * orbsvcs/orbsvcs/orbsvcs.dsp: New project file for DLL version of - orbsvcs library. - - * orbsvcs/orbsvcs/orbsvcs_lib.dsp: Changed the tao_idl custom - build commands so it builds files for both LIB and DLL - libraries. - - * orbsvcs/orbsvcs.dsw: - * orbsvcs/Dump_Schedule/Dump_Schedule.dsp: - * orbsvcs/Event_Service/Event_Service.dsp: - * orbsvcs/Naming_Service/Naming_Service.dsp: - * orbsvcs/Scheduling_Service/Scheduling_Service.dsp: Changed to - use DLL version of orbsvcs library. - -Mon Feb 2 18:08:21 1998 Carlos O'Ryan - - * tao/sequence_T.cpp: - Fixed problems in memory reallocation for - TAO_Unbounded_Sequence::operator=(). - -Mon Feb 2 13:47:23 1998 Sumedh Mungee - - * tao/Makefile: Renamed tao_util to tao. Ditto for the .h and .cpp - files. Also renamed the TAO_Util::ORB_Manager class to TAO_ORB_Manager. - -Mon Feb 2 13:47:01 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_args.cpp: - Fixed the mapping for strings as INOUT parameters. - -Mon Feb 02 08:59:57 1998 David L. Levine - - * tao/tao_util.cpp (init): added .in () to poa_object in call to - _narrow, so that it will compile with g++. - - * orbsvcs/tests/Logger/Makefile, - orbsvcs/orbsvcs/Makefile, - tests/POA/FindPOA/Makefile, - tests/POA/{Default,Generic}_Servant/Makefile, - tests/POA/NewPOA/Makefile, - tests/Cubit/TAO/{IDL,MT}_Cubit/Makefile, - tests/Param_Test/Makefile, - tests/Thruput/TAO/Makefile: - inserted (or moved) TAO_ROOT definition to top of file. - -Sat Jan 31 01:08:19 1998 Carlos O'Ryan - - * docs/releasenotes/index.html: - The IDL compiler has support for NT DLLs already, I moved the - tiem from the "issues" to the "new features" list. - - * docs/index.html: - * docs/compiler.html: - Added documentation for TAO IDL compiler behavior and options. - - * TAO_IDL/be/be_init.cpp: - Print a reasonable version for the compiler back-end, it is no - longer the Sun example BE and the version is (around 0.1.0). - -Fri Jan 30 16:27:47 1998 Douglas C. Schmidt - - * TAO version 0.1.1, released Fri Jan 30 16:27:47 1998. - -Fri Jan 30 15:35:06 1998 Carlos O'Ryan - - * TAO_IDL/be/be_args.cpp: - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_codegen.cpp: - * TAO_IDL/be/be_enum.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_interface_fwd.cpp: - * TAO_IDL/be/be_module.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_structure.cpp: - * TAO_IDL/be/be_typedef.cpp: - * TAO_IDL/be/be_union.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - * TAO_IDL/be/be_visitor_sequence.cpp: - * TAO_IDL/include/idl_global.h: - * TAO_IDL/util/utl_global.cpp: - Added support for export macros and a user defined include file, - this was needed to support DLL's in NT. - - * tests/Cubit/TAO/IDL_Cubit/Makefile: - Removed a broken test target; thanks to Michael Kircher - - -Fri Jan 30 15:30:30 1998 Chris Gill - - * orbsvcs/Scheduling_Service/DynSched.{cpp,h,i} : The Dynamic - Scheduler Implementation (first cut - still a work in progress) - - * orbsvcs/Scheduling_Service/Strategy_Scheduler.{cpp,h,i} : The - strategized scheduler subclass and the corresponding strategies - (first cut - still a work in progress) - -Fri Jan 30 15:10:01 1998 Douglas C. Schmidt - - * README: Updated the documentation to reflect the latest changes - to TAO. Thanks to Hans Rohnert for noticing this. - -Fri Jan 30 14:38:30 1998 Sumedh Mungee - - * orbsvcs/orbsvcs/util.cpp : Added TAO_ORB_Manager, a simple - helper class that does simple ORB and POA initialization and - object activation etc. - - * orbsvcs/orbsvcs/util.h : Added file - -Fri Jan 30 13:15:10 1998 Chris Cleeland - - * Makefile (RELEASE_FILES): Added rules.tao.GNU and taoconfig.mk - to this...missing in release 0.1.0. Thanks to Mark Boriack of - SAIC for reporting this. - -Fri Jan 30 11:55:38 1998 Nanbor Wang - - * orbsvcs/orbsvcs/orbsvcs_lib.dsp: Logging service was somehow - missing from the library. - - * orbsvcs/tests/Logger/Logger.dsw: - * orbsvcs/tests/Logger/{server,client}.dsp: Added new project file. - - * orbsvcs/tests/Logger/svr.cpp: - * orbsvcs/tests/Logger/clnt.cpp: - * orbsvcs/tests/Logger/logger_i.h: - * orbsvcs/tests/Logger/logger_i.cpp: Changed to - "ace/streams.h". We should always use "ace/streams.h". - -Fri Jan 30 11:42:10 1998 Chris Cleeland - - * docs/releasenotes/orbcore.html: Updated to reflect - characteristics of the latest release as well as what we have to - look forwrd to. - - * announcement: Added this boilerplate for release announcement. - Actually, it's a sciprt which can be piped to something like - 'mailx'. - -Fri Jan 30 01:55:59 1998 Sergio Flores - - * tests/Cubit/COOL/IDL_Cubit/README: - * tests/Cubit/COOL/IDL_Cubit/Makefile: - * tests/Cubit/COOL/IDL_Cubit/client.cpp: - * tests/Cubit/COOL/IDL_Cubit/client.h: - * tests/Cubit/COOL/IDL_Cubit/cubit.idl: - * tests/Cubit/COOL/IDL_Cubit/cubit_i.cpp: - * tests/Cubit/COOL/IDL_Cubit/cubit_i.h: - * tests/Cubit/COOL/IDL_Cubit/server.cpp: - * tests/Cubit/COOL/IDL_Cubit/tmplinst.cpp: Added test code for - Chorus COOL ORB, for the IDL Cubit example. - - * tests/Thruput/COOL/README: - * tests/Thruput/COOL/Makefile: - * tests/Thruput/COOL/client.cpp: - * tests/Thruput/COOL/server.cpp: - * tests/Thruput/COOL/ttcp.idl: - * tests/Thruput/COOL/ttcp_decl.h: - * tests/Thruput/COOL/ttcp_i.cpp: - * tests/Thruput/COOL/ttcp_i.h: - * tests/Thruput/COOL/utils.cpp: Added test code for Chorus COOL - ORB, for the Thruput example. - - * tests/Thruput/TAO/ttcp_decl.h: Make declarations of variables - consistent with definition. Changed srcDataSize from CORBA::ULong - to unsigned long. - - * tests/Thruput/TAO/Makefile: Updated to use rules.tao.GNU. and - taoconfig.mk. This was suggested by a change Carlos O'Ryan did to - the long lost Thruput_test directory. - -Thu Jan 29 23:10:05 1998 Douglas C. Schmidt - - * orbsvcs/tests/Simple_Naming/clnt.cpp (CosNaming_Client): - Reordered the constructor initializations to match the class - definition. - -Thu Jan 29 20:10:33 1998 Chris Cleeland - - * TAO version 0.1.0, released Thu Jan 29 20:10:33 1998. - -Thu Jan 29 15:58:01 1998 Chris Cleeland - - * tests/Param_Test/run_test: Allowed specification of the - invocation style (sii vs. dii) using a shaell variable. - - * docs/releasenotes/{index,orbcore}.html: Updated to include some - details regarding this release. These files are behind the - release, but I'm opting to get the release out and update these - files ex post facto. - - * release.pl: Updated this script so that it can update different - levels of the release version number based on the setting of the - RELEASE_TYPE environment variable. - - * Makefile: Added release.chk to the list of files going into the - release. This file is our checklist for things that have been - tested and work leading up to a release. Check in here for - details on how a test has worked on a platform. - - * tests/POA/FindPOA/FindPOA.cpp (main): Added missing double-quote - in ACE_DEBUG(). - -Thu Jan 29 15:55:25 1998 Carlos O'Ryan - - * orbsvcs/tests/Logger/clnt.h: - * orbsvcs/tests/Logger/clnt.cpp: - We need to keep a reference to the ORB is some place. - -Thu Jan 29 14:59:01 1998 Chris Cleeland - - * tests/POA/On_Demand_Activation/server.cpp: - * tests/POA/Generic_Servant/MyFooServant.cpp: - * tests/POA/Explicit_Activation/server.cpp: - * tests/POA/Default_Servant/server.cpp: - * tests/Cubit/TAO/MT_Cubit/server.cpp: - _var's passed as pointers need to use the .in() method. - - * tests/Param_Test/run_test: Added a longer delay, changed port #, - and made all output be prefaced by either "SERVER: " or - "CLIENT(): ". - - * tao/poa.cpp: Re-ordered member initializers to de-warn g++. - - * orbsvcs/Dump_Schedule/Dump_Schedule.cpp: _narrow needs to be - passed a .in() from _vars (you get a lollipop if you understand - that comment). - - * docs/poa_migration.html: Added this file to start the ball - rolling. Right now it's poorly-formatted and a rehash of some - emails, but it will be refined and grow over time. - -Thu Jan 29 12:33:30 1998 Carlos O'Ryan - - * orbsvcs/tests/Simple_Naming/clnt.cpp: - * orbsvcs/tests/Simple_Naming/clnt.h: - Simple Naming simply tries to locate the Naming Service, it is - useful to test the TAO facilities (multicast, environment, - command line) for that purpose. - - * orbsvcs/tests/Logger/clnt.cpp: - * orbsvcs/tests/Logger/clnt.h: - We do not attempt to use nested context unless requested by the - user, the reason is that it is failing consistently right now. - -Thu Jan 29 10:34:08 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_operation.cpp: Some bug fixes made in the pre-POA - TAO version were accidentally overwritten during the POA to main - branch merge. This has been fixed. - - * tao/{encode, decode}.cpp: Fixed the terrible alignment problems - that we were having on VxWorks for marshaling structures. At this - time, the fix has been made only to "structs". These problems were - being caused because the C++ compiler on NT/VxWorks was laying out - structures on a 4 byte aligned address. If a "double" is the very - first field, it will allocate the double at the 4 byte aligned - address even if a double is 8 byte aligned. The fix is to make - sure that when we align, we must take into account the start - address of the structure as well as the address at which the field - is laid out. - -Thu Jan 29 10:29:14 1998 Carlos O'Ryan - - * Makefile: - Compile before , if the first one fails the - second will sure fail also. - - * tests/Cubit/TAO/MT_Cubit/Makefile: - Updated comments and reformated some unreadable things. - -Wed Jan 28 15:35:37 1998 Carlos O'Ryan - - * tests/Makefile: - * tests/Cubit/Makefile: - Fixed Makefiles so we can invoke the top level Makefile safely. - -Wed Jan 28 13:45:16 1998 Nanbor Wang - - * tests/POA/Default_Server/{client,server}.dsp: Updated project - files. - - * tests/Cubit/TAO/MT_Cubit/client.dsp: Added CubitS.cpp to - client.dsp. - - * tests/POA/Generic_Servant/{client,server}.dsp: Added idl - compilation rules. - - * tests/Parem_Test/{client,server}.dsp: Updated idl file - compilation rules. Added Parem_TestS.cpp to client project. - -Wed Jan 28 14:25:29 1998 Chris Cleeland - - * tests/Param_Test/run_test: Updated to utilized the new '-o' - option on the server side and for the clients to get the IOR from - that file. - - * tests/Param_Test/server.cpp: Added '-o' option to specify the - name of a file in which the server can deposit the IOR which the - client should use. - - * tests/Param_Test/options.cpp: Updated the options string (forgot - it last time through). - -Wed Jan 28 13:56:07 1998 Carlos O'Ryan - - * tests/POA/Makefile: - * tests/POA/Default_Servant/Default_Servant.dsw: - * tests/POA/Default_Servant/File.idl: - * tests/POA/Default_Servant/File_i.cpp: - * tests/POA/Default_Servant/File_i.h: - * tests/POA/Default_Servant/Makefile: - * tests/POA/Default_Servant/client.cpp: - * tests/POA/Default_Servant/client.dsp: - * tests/POA/Default_Servant/server.cpp: - * tests/POA/Default_Servant/server.dsp: - * tests/POA/Default_Servant/svc.conf: - Added some missing tests that were in the POA branch. - -Wed Jan 28 13:35:11 1998 Chris Cleeland - - * tests/Param_Test/server.cpp: Changed so that the IOR is printed - ALL the time. - - * tests/Param_Test/options.*: Updated to work with POA. Got rid - of host and port arguments and added an IOR argument. - - * tests/Param_Test/driver.*: Updated to work with POA. - - * tests/Cubit/TAO/IDL_Cubit/clnt.h: Added emacs mode setting at - beginning. - - * tao/optable.h: Cleaned up some formatting in header file. - -Wed Jan 28 13:19:55 1998 Carlos O'Ryan - - * tests/Cubit/TAO/IDL_Cubit/README: - Update README on how to run the test. - - * tests/Cubit/TAO/IDL_Cubit/svr.cpp: - Print the IOR always, it is neded to run properly. - - - * tests/Cubit/TAO/MT_Cubit/tmplinst.cpp: - * tests/Cubit/TAO/IDL_Cubit/tmplinst.cpp: - Instantiate on CORBA::Long instead of a plain long. - - * orbsvcs/tests/Logger/svr.cpp: - Cosmetic changes on debug messages. - -Wed Jan 28 11:20:38 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/orbsvcs/Logger.idl: - * orbsvcs/tests/Logger/Makefile: - * orbsvcs/tests/Logger/logger.idl: - Moved a prototype logger.idl to the orbsvcs library, eventually - this will become a full blown service in the TAO architecture. - - * orbsvcs/tests/Logger/clnt.cpp: - * orbsvcs/tests/Logger/clnt.h: - * orbsvcs/tests/Logger/logger_i.cpp: - * orbsvcs/tests/Logger/logger_i.h: - * orbsvcs/tests/Logger/svr.cpp: - Ported the experimental logging server to POA. - - * orbsvcs/Event_Service/Event_Service.cpp: - * orbsvcs/Scheduling_Service/Scheduling_Service.cpp: - Fixed minor problem with call using a _var as input parameter - -Wed Jan 28 09:14:30 1998 Carlos O'Ryan - - * tests/POA/Makefile: - Fixed order in the DIRS variable, Generic_Servant goes first - since it builds a library needed in some of the other tests. - - * tests/POA/On_Demand_Activation/Makefile: - * tests/POA/Explicit_Activation/Makefile: - Fixed order for libraries, -lserver uses -lTAO so it must go - first. - - * orbsvcs/orbsvcs/Makefile: - Another case of misplaced includes. - - -Tue Jan 27 17:29:11 1998 Carlos O'Ryan - - * tests/Cubit/TAO/IDL_Cubit/Makefile: - Reorder includes to avoid evil definition for the IDL compiler. - -Tue Jan 27 16:16:11 1998 Chris Cleeland - - * tests/Param_Test/server.cpp: Added ACE_UNUSED_ARG() inside the - TAO_CATCH() macro scope to de-warn on g++. - - * tests/Param_Test/param_test_i.cpp (Param_Test_i::CTOR): Removed - argument name to de-warn on g++. - - * tests/Cubit/TAO/IDL_Cubit/{svr,clnt}.cpp: Use in() method on - _var class to explicitly get an _ptr. - - * tao/objtable.cpp (find): Changed conditional expression to not - rely on implicit conversion from _var to _ptr type. - - * tao/giop.cpp: Updated "illegal message" error message to - actually print out the type of the offending message. This also - caused the addition of a helper function--TAO_GIOP_message_name(). - -Tue Jan 27 15:06:28 1998 Carlos O'Ryan - - * TAO_IDL/Makefile: - * TAO_IDL/be/Makefile: - * orbsvcs/Dump_Schedule/Makefile: - * orbsvcs/Event_Service/Makefile: - * orbsvcs/Naming_Service/Makefile: - * orbsvcs/Scheduling_Service/Makefile: - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/tests/Event_Latency/Makefile: - * orbsvcs/tests/Logger/Makefile: - * orbsvcs/tests/Simple_Naming/Makefile: - * tao/Makefile: - * tests/Cubit/TAO/IDL_Cubit/Makefile: - * tests/Cubit/TAO/MT_Cubit/Makefile: - * tests/POA/Explicit_Activation/Makefile: - * tests/POA/FindPOA/Makefile: - * tests/POA/Generic_Servant/Makefile: - * tests/POA/NewPOA/Makefile: - * tests/POA/On_Demand_Activation/Makefile: - * tests/POA/RootPOA/Makefile: - * tests/Param_Test/Makefile: - Updated dependencies, apparently they were not properly - generated last time; they worked for Solaris/CC, but not in many - other platforms. - - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/orbsvcs/tmplinst.cpp: - * orbsvcs/orbsvcs/TAO_IDL_templates.cpp: - It seems that tmplinst.cpp is becoming our standard for template - instantiation files. - - * tao/poa.h: - No need to include poa_T.h, it is not used in any place (yet), - and it produces many warnings on IRIX machines. - - * orbsvcs/Dump_Schedule/Dump_Schedule.cpp: - Use a _var for the output sequence of RT_Infos. - - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - Fixed some misuses of _var, thanks to Chris Cleeland for - bringing those to my attention. - - * release.pl: - Added CVS id. - -1998-01-27 Nagarajan Surendran - - * tests/POA/FindPOA:Added comments to all files - * tests/POA/On_Demand_Activation: Added comments to all files - * tests/POA/Generic_Servant: Added comments to all files - -Mon Jan 26 21:29:24 1998 David L. Levine - - * tao/compat/objbase.h: don't #define NOERROR on DIGITAL_UNIX, - or on any other platform that already has it #defined. - Thanks to Oliver Kellogg for - reporting this. - - * tao/corbacom.h: use ACE_INT32, etc., for defining Long, etc. - -Mon Jan 26 16:15:18 1998 Chris Cleeland - - * tao/giop.cpp (read_buffer): Modified this to detect ECONNRESET - and report is as a normal EOF occurrence. This will hopefully - eliminate a disturbing (but innocuous) message on NT. Thanks to - Frank H. at SAIC for reporting this. - - * tests/Param_Test/run_test: Added this script to run the server - and client with all arguments. - -Mon Jan 26 16:02:51 1998 Carlos O'Ryan - - * tests/Cubit/TAO/MT_Cubit/Makefile: - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: - * tests/Cubit/TAO/MT_Cubit/cubit_i.cpp: - * tests/Cubit/TAO/MT_Cubit/cubit_i.h: - * tests/Cubit/TAO/MT_Cubit/server.cpp: - * tests/Cubit/TAO/MT_Cubit/server.h: - It compiles now, but it won't run. - -Mon Jan 26 15:29:37 1998 Sumedh Mungee - - * orbsvcs/tests/AVStreams/ (main): - Added simple client/server to test AVStreams - -Mon Jan 26 15:23:54 1998 Sumedh Mungee - - * orbsvcs/orbsvcs/AVStreams_i.cpp: - Added dummy implementation for VDev, MMDevice, and StreamEndPoint - classes - -Mon Jan 26 15:01:49 1998 Alexander Babu Arulanthu - - * tests/POA/RootPOA.cpp: Added Comments - -Mon Jan 26 14:31:46 1998 Sumedh Mungee - - * tests/POA/FindPOA.cpp: Added CVS ID - -Mon Jan 26 00:57:56 1998 Douglas C. Schmidt - - * tao/connect.cpp (open): Conditionally compile the code for - TCP_NODELAY only if this macro is present. Thanks to Edgar - Villanueva for reporting this. - -Sun Jan 25 14:30:04 1998 Nanbor Wang - - * tests/Cubit/TAO/IDL_Cubit/client.dsp: Added a missing source. - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp (Cubit_Client): Changed to - initialize Cubit_Client.cubit_key_ from heap. It should use - memory either from stack or heap, but never both. - -Sat Jan 24 21:55:55 1998 Sumedh Mungee - - * orbsvcs/orbsvcs/{AVStreams_i.h, AVStreams_i.cpp}: - Made changes for new POA - -Sat Jan 24 21:46:23 1998 Sumedh Mungee - - * orbsvcs/orbsvcs/AVStreams.idl: - Changed type key to be a string, rather than a sequence, which - breaks tao_idl! - -Sat Jan 24 21:01:00 1998 - - * orbsvcs/Dump_Schedule/Dump_Schedule.cpp: - * orbsvcs/Event_Service/Event_Service.cpp: - * orbsvcs/Naming_Service/Naming_Service.cpp: - * orbsvcs/Scheduling_Service/Scheduling_Service.cpp: - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - Fixed several minor error and sources of non-complaince. - - * TAO_IDL/tao_idl.dsp: - * tao/TAO.dsp: - CVS does not merge binary files properly. - -Sat Jan 24 15:51:41 1998 Carlos O'Ryan - - * tao/objtable.cpp: - Another merge problem. - -Sat Jan 24 11:20:42 1998 Carlos O'Ryan - - * Added latest changes by Irfan. - - Sat Jan 24 03:04:51 1998 Irfan Pyarali - - * tao/poa.cpp (id_to_reference): Reimplemented this method so that - it does not use id_to_servant and servant_to_reference combo. - This is necessary since id_to_reference may be used in a - MULTI_ID mode. - - * tao/poaS: Added explicit copy and destroy to all collocated - policies. This will help avoid the inheritance via dominance - warnings. - -Sat Jan 24 11:08:28 1998 Carlos O'Ryan - - * TAO_IDL/be_include/be_visitor.h: - The forward declaration of TAO_OutStream was missing; I guess it - was some slopiness in the merge. - -Sat Jan 24 10:30:40 1998 Carlos O'Ryan - - * The POA branch is merged back into the main trunk. For the - record we reproduce the ChangeLog in the branch. - - * ============ - * ============ Start of POA branch changes. - * ============ - - Fri Jan 23 17:13:14 1998 Carlos O'Ryan - - * Merged changes from main_to_poa_merge_11 up to - main_to_poa_merge_12 - - Fri Jan 23 17:08:45 1998 Carlos O'Ryan - - * orbsvcs/Event_Service/Event_Channel.h: - * orbsvcs/Event_Service/Event_Channel.i: - Fixed problem with Event Channel, it was using _this - unproperly. - - Fri Jan 23 16:49:19 1998 Chris Cleeland - - * tests/Param_Test/{server.cpp,param_test_i.h,param_test_i.cpp}: - Updated to compile with new POA. - - * tests/Param_Test/Makefile: Moved LDFLAGS up, included the - rules.tao.GNU, and removed the dependencies which were causing me - no end of grief. - - * tests/Cubit/TAO/IDL_Cubit/svr.cpp (main): Changed the check on - return value from resolve_initial_references() to use the - CORBA::is_nil() check. - - Fri Jan 23 16:43:12 1998 Carlos O'Ryan - - * orbsvcs/Dump_Schedule/Dump_Schedule.cpp: - * orbsvcs/Event_Service/Event_Channel.cpp: - * orbsvcs/Event_Service/Event_Channel.i: - * orbsvcs/Event_Service/Event_Service.cpp: - * orbsvcs/Naming_Service/CosNaming_i.cpp: - * orbsvcs/Naming_Service/CosNaming_i.h: - * orbsvcs/Naming_Service/Naming_Service.cpp: - * orbsvcs/Scheduling_Service/Config_Scheduler.cpp: - * orbsvcs/Scheduling_Service/Scheduling_Service.cpp: - * orbsvcs/orbsvcs/Runtime_Scheduler.cpp: - * orbsvcs/orbsvcs/Scheduler_Factory.cpp: - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - * orbsvcs/tests/Event_Latency/Event_Latency.h: - "Ported" the orbsvcs and the Event_Latency test to POA, with - little success though, things will compile and it seems that the - Naming_Service and Scheduling_Services run properly, but - Event_Service does not. - We use a nested POA with "PERSISTENT" lifespan policy because it - is easier to set an enviroment variable or command line to the - NameService IOR. - - * tests/Cubit/TAO/IDL_Cubit/svr.cpp: - Removed some extra (and unwanted) code. - - Fri Jan 23 14:47:18 1998 Chris Cleeland - - * tests/POA/{FindPOA,RootPOA,NewPOA}/Makefile: Added - -L$(TAO_ROOT)/tao to LDFLAGS. - - * tests/POA/NewPOA/NewPOA.cpp: - * tests/POA/RootPOA/RootPOA.cpp: - * tests/POA/FindPOA/FindPOA.cpp: - Used the ::in() method as first argument to _narrow() calls. - - * tests/{Makefile,README}: Updated for new tests. - - * tao/poa.cpp: Added explicit template instantiations. - - Fri Jan 23 14:30:19 1998 Carlos O'Ryan - - * tao/poa.h: - * tao/poa.cpp: - * tao/servant_base.cpp: - _this() was using the object id for the current servant in *all* - objects, now it only does so for the servant invoked. - - * tests/Cubit/TAO/IDL_Cubit/Makefile: - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: - * tests/Cubit/TAO/IDL_Cubit/clnt.h: - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: - * tests/Cubit/TAO/IDL_Cubit/cubit_i.h: - * tests/Cubit/TAO/IDL_Cubit/svr.cpp: - Ported the Cubit test to POA, including some funky persistent - policies to simplify its use. - - Sat Jan 24 01:24:24 1998 Irfan Pyarali - - * tao/poa.cpp (destroy_i): Changed etherealize objects to correct - report remaining_activations. - - Fri Jan 23 10:55:40 1998 Carlos O'Ryan - - * tao/objtable.cpp: - Linear object tables were not using the initial size to - pre-allocate a buffer. - - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_state_argument.cpp: - Fixed the mapping for native as OUT or INOUT parameters, also - fixed the name for the _dispatch() method. - - Fri Jan 23 01:12:28 1998 Irfan Pyarali - - * tao/poaS.cpp: Added ACE_NESTED_CLASS macro to constructors. - - Thu Jan 22 23:57:31 1998 Chris Cleeland - - * tao/poa.cpp (wstring_to_ObjectId): Stuck the CORBA::WChar type - in parens for sizeof...g++ likes it better that way. - - Fri Jan 23 00:14:03 1998 Irfan Pyarali - - * tao/poa: - - - Added support for transient and persistent POAs by changing - the ObjectKey. From now on, each key will contain an - identifier that will indicate whether the key came from a - persistent or transient POA. That way the dispatch method can - decide the value of the activate_it flag while finding the - POA. If the key is from a persistent POA, the activate_it - flag will be true, else the flag will be set to false. - - - All operations on the parent POA will check for a valid parent - before executing the call. Remember that the RootPOA does not - have a parent POA. - - - Temporarily added export macros to the POA implementation - classes, so that the implementations can directly be debugged - (rather than going through the stubs/skeletons). These should - be removed once the debugging process is over. - - - Moved the registeration of the POA with its manager from the - create_POA method to the POA constructor. This is to insure - that the registration of the RootPOA is not "missed" since the - RootPOA is not created via the create_POA call. Similarly, - moved the removal of the POA from its manager from the destroy - method to the POA destructor. - - - TAO_POA::delete_child and TAO_POA_Manager::remove_poa were - changed such that when the object is closing down, we are - currently iterating over our poa collection and there is not - need to remove the item from our collection. - - - Changed use of substr from starting_at/ending_at to - starting_at/now_many. - - - Methods that return duplicated values/objects, must first be - assigned to a _var variable before being used. This will - avoid memory leaks. - - - For find methods, always use != -1 for success. - - - Added code to create_POA_i and find_POA_i_optimized to check - when topmost_poa_name == this->name_. - - - Added the concept of creation time to a POA. This way when a - transient POA gets a object key from a previous incarnation, - the OBJECT_NOT_EXISTS exception can be thrown. - - - Added a locator cookie field to TAO_POA_Current to keep track - of the cookie produced by the servant locator. - - - Made all methods virtual. - - - Renamed active_object_table to active_object_map. - - - Added pre_invoke and post_invoke methods to setup the - necessary state before doing the upcall to the servant. - - - Changed locate_servant to return 0 for success and -1 for - failure instead of trying to return a servant. This change is - necessary since there may not be a servant available but there - may be default servants or servant managers that could fill in - for the servant. Currently the locate_servant method takes an - optimistic approach to return TRUE when the servant was not - found but a default servant or servant manager was registered - with the POA, hoping the default servant or servant manager - will be able to fill in when the real request arrives. - - - Add a validity checks for POA policies. - - - Added support for servant managers (both servant locators and - servant activators), default servants and DSI. - - * tao/poaC.h: Added DynamicImplementation class to the - PortableServer. - - * tao/poaS: Changed dispatch to _dispatch. - - * tao/servant_base: - - - Added TAO_DynamicImplementation class - (a.k.a. PortableServer::DynamicImplementation). Users will - inherit from this to implement DSI. - - - Added prefix _ to all methods names in the ServantBase class - to avoid potential crashes with user specified method names. - - - Made TAO_POA a friend of ServantBase. - - * tao/connect.cpp (handle_locate): Changed to use latest version - of TAO_POA::locate_servant. - - * tao/servant_base.cpp (_default_POA): Changed to use - TAO_ORB_Core_instance()->root_poa() instead of - TAO_ORB_Core_instance()->orb()->resolve_initial_references("RootPOA"). - - * tao/poaC: Added string_to_ObjectId and ObjectId_to_string - methods to PortableServer. - - * tao/poa.cpp (TAO_Adapter_Activator::unknown_adapter): Changed - the implementation of this object so that it does not depend on - being friends with the POA and the POAManager. Initially, this - was done to avoid recursive locks. However, since user may want - to write their own implementations, recursive locks were deemed - necessary. - - * tao/default_server.cpp (create_poa_lock): Changed implementation - to produce ACE_Recursive_Thread_Mutex instead of - ACE_Thread_Mutex. - - * tests/POA/RootPOA/RootPOA.cpp (main) and - tests/POA/NewPOA/NewPOA.cpp (main): Added code to destroy the - rootPOA. I am not sure this is the responsibility of the user - to destroy the rootPOA since they never really created it. The - responsibility probably lies with the ORB, but since the spec - seems neutral about this, it is ok for now. - - * tao/object.i (CORBA_Object::Release): We must delete the object - when the parent_ refcount goes to zero. - - Thu Jan 22 16:56:32 1998 Carlos O'Ryan - - * TAO_IDL/be_include/be_interface.h: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - Fixed some relative name problems for the server header file. - - * TAO_IDL/be/be_visitor_sequence.cpp: - * TAO_IDL/be/be_visitor_root.cpp: - * TAO_IDL/be/be_visitor_args.cpp: - Get rid of some "unused arg" warnings. - - Thu Jan 22 15:26:55 1998 Chris Cleeland - - * tao/object.i: CORBA::Object --> CORBA_Object for internal stuff. - - * tao/object.i (CORBA_Object): Re-ordered member initialization to - match declaration order. - - Thu Jan 22 14:40:01 1998 Carlos O'Ryan - - * tao/corbacom.h: - Fixed multiple definitions of ORB_var and ORB_out due to a - simplistic merge. - - * TAO_IDL/be/be_interface.cpp: - Generate _find() to locate operations; using just find() is not - complaint. - - Thu Jan 22 10:40:13 1998 Carlos O'Ryan - - * Merged changes from main_to_poa_merge_10 up to - main_to_poa_merge_11 - - Wed Jan 21 17:35:20 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_interface.cpp: - Generate CORBA_Object instead of CORBA::Object to keep NT - happy. - - * TAO_IDL/be/be_visitor_args.cpp: - Fixed mapping for strings as arguments, they should always be - char*. - - Mon Jan 19 22:03:38 1998 - - * tao/sequence_T.i: - Object_Manager constructor was calling _duplicate(). That is not - the right semantics, and produces a crash when working on an - unitialized buffer. - - * tests/POA/NewPOA/NewPOA.cpp: - * tests/POA/NewPOA/NewPOA.dsp: - Fixed signed/unsigned warning. - - * tests/POA/NewPOA/NewPOA.dsp: - Fixed missing options to find ACE. - - Mon Jan 19 16:36:22 1998 Carlos O'Ryan - - * tao/iiopobj.h: - * tao/iiopobj.cpp: - Added a missed in action key() method to IIOP_Object. - - * tao/stub.h: - * tao/objkeyC.h: - * tao/object.h: - * tao/object.cpp: - Removed the non-complaint ObjectKey_ptr type. - - Mon Jan 19 16:19:28 1998 Carlos O'Ryan - - * tao/deep_free.cpp: - A reinterpret cast was dropping constness also, thanks to Irfan - for pointing this one out. - - Mon Jan 19 15:36:10 1998 Carlos O'Ryan - - * tao/sequence_T.i: - * tao/sequence_T.cpp: - The last merge was too smart, it kept some changes on this - branch that should have gone away. - - Mon Jan 19 13:58:01 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_interface.cpp: - * TAO_IDL/be/be_interface.cpp: - Fixed operation table initialization, also called proper - constructor for CORBA::Object in collocated classes. - - * tao/corba.h: - More include reordering. - - * tao/servant_base.h: - The operation table was not properly initialized. - - Mon Jan 19 11:28:47 1998 Carlos O'Ryan - - * Merged changes from main_to_poa_merge_9 up to - main_to_poa_merge_10. - - Sun Jan 18 01:04:22 1998 - - * TAO_IDL/be/be_attribute.cpp: - * TAO_IDL/be/be_codegen.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be_include/be_interface.h: - * tao/servant_base.h: - Added support for collocation in the _narrow method, this - required a complete implementation of _downcast() for each - skeleton. - - Sat Jan 17 20:54:26 1998 - - * TAO_IDL/be/be_attribute.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - * TAO_IDL/be/be_visitor_sequence.cpp: - More bug fixes in code generation for sequences, attributes, - etc. Most of them were minor inconsitencies. Also fixed - constructors for collocated classes on NT (working around MSVC++ - bug). - - * tao/servant_base.cpp: - * tao/servant_base.h: - Added default implementation for _downcast(), it just works if - downcasting to "Object". - - * tao/sequence_T.cpp: - * tao/sequence_T.h: - * tao/sequence_T.i: - Fixed some problems with managed sequences. - - Sat Jan 17 19:27:12 1998 - - * tao/servant_base.h: - * tao/servant_base.cpp: - Added the new _is_a() method on TAO_ServantBase. - - * TAO_IDL/tao_idl.dsp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_string.cpp: - * TAO_IDL/be/be_visitor_args.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - * TAO_IDL/be/be_visitor_sequence.cpp: - * TAO_IDL/be_include/be_visitor.h: - * TAO_IDL/be_include/be_visitor_args.h: - * TAO_IDL/be_include/be_visitor_interface.h: - Added a new _is_a to the generated servants, also implemented - the _is_a method on the collocated classes by invoking that - _is_a(). - Added support for attributes in collocated classes, thanks to - Irfan for noticing this. - - Sat Jan 17 15:44:43 1998 - - * tao/corba.h: - * tao/iiopobj.cpp: - Fixed undetected inconsistencies in the last merge. - - * tao/objkeyC.cpp: - * tao/objkeyC.h: - * tao/objkeyC.i: - I regenrated from the IDL file to use the new sequences. - - Sat Jan 17 11:49:15 1998 - - * Merged changes from main_to_poa_merge_8 to main_to_poa_merge_9. - - Sat Jan 17 00:45:59 1998 Irfan Pyarali - - * tests/POA: Added new tests: Explicit_Activation_POA_Ids and - NewPOA. - - * tao/servant_base.h (TAO_ServantBase): Added a _downcast method - that gets the servant with the correct vtable. Also added a new - class TAO_Local_ServantBase that overwrites _create_stub. - TAO_Local_ServantBase::_create_stub uses a fake key and does not - registration with the default POA. - - * tao/poaS.*: Added _downcast to the generated code. Also added - attribute accessor methods. Also updated constructors to - explicitly initialize the virtual base class (CORBA::Object). - - * tao/poaC.h: Added TAO_Local_ServantBase to the PortableServer - namespace as PortableServer::LocalServantBase. - - * tao/poaC.cpp (_narrow): Changed the implementation of _narrow to - produce a collocated class when appropriate. - - * tao/poa.cpp (TAO_POA::create_*_policy): Made sure these methods - return collocated classes and not implementation classes. - - * tao/poa.h (class TAO_POA_Policies): Added set methods to - TAO_POA_Policies. - - * tao/orbobj.cpp (resolve_poa): Made sure that the RootPOA is - created with the PortableServer::IMPLICIT_ACTIVATION policy. - - * tao/object: Added servant pointer and a collocated flag to - object class. - - Fri Jan 16 03:27:30 1998 Irfan Pyarali - - * tao: - - BOA begone: CORBA::POA and all BOA related code has been - removed from TAO. - - POA: Today the PortableServer and the POA were born in TAO. - - * tao/connect (handle_request): Changed handle_request to accept - the TAO_GIOP_RequestHeader parameter by reference rather than by - value. - - * tao/corba.h: Rearranged header to accommodate the new POA. - - * tao/corbacom.h (CORBA): Added typedefs for Object_var Object_out - in the CORBA class. - - * tao/current: Absorbed all the POACurrent code into the poa.* - files. - - * tao/iiopobj.cpp (operator==): Added comparison operator for - TAO::ObjectKey. - - * tao/orbobj.cpp (resolve_poa_current and resolve_poa): Made sure - that we return the colocated class and not the implementation - class. - - * tao/orbobj.h (objref.): POA_init was deprecated. Please use - orb->resolve_initial_references ("RootPOA") instead. - - * tao/objtable.cpp (find): Change the use of auto_ptr(s) to deal - correctly with explicit constructors. - - Thu Jan 15 17:27:26 1998 Chris Cleeland - - * tao/orb_core.{h,i}: Added the poa_current() method and internal - structure so that state is available to the POA and to the upcall. - - * tao/orbobj.{h,cpp}: Added resolve_poa_current() in order to - return the POACurrent state context. Added the "POACurrent" to - one of the things for which resolve_initial_references() works. - Changed resolve_poa() so that things can compile; the impl isn't - correct but when the POA stuff gets committed, this will be - changed accordingly. - - Tue Jan 13 12:15:54 1998 Carlos O'Ryan - - * TAO_IDL/be_include/be_operation.h: - * TAO_IDL/be/be_operation.cpp: - * TAO_IDL/be/be_state_operation.cpp: - The stubs and skeletons for operations that have a "native" - argument or return value simply "throw" a CORBA::MARSHAL - exception; those methods cannot be called for remote objects. - I also had to return something when an exception is raised and - the return type is a "native", we choose to return 0 for lack of - a better choice. - - Tue Jan 13 10:49:48 1998 Chris Cleeland - - * tao/current.{i,cpp}: Added a first cut at implementations for - the POA Current impl. - - Mon Jan 12 19:47:42 1998 Carlos O'Ryan - - * tao/poa.h: - * tao/poa.cpp: - Added a _get_stub() method that encapsulates code common to all - _this implementations. - - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - The _this() method implementation was changed to use the new - _get_stub finally adding full support for the standard poa, some - changes were required in the _tao_collocated classes and their - constructors. - - * TAO_IDL/be_include/be_helper.h: - * TAO_IDL/be/be_helper.cpp: - Added "manipulators" to increase and decrement indentation - level. - - Mon Jan 12 14:55:53 1998 Chris Cleeland - - * tao/current.h (class TAO_POA_Current_Impl): Added this as the - beginning of the implementation for the POA Current. More to - come... - - * tao/default_server.*: Added implementations of create_poa_lock() - and create_poa_mgr_lock() to obtain their values from -ORBpoalock - and -ORBpoamgrlock options, respectively, to the Default Server - Strategy Factory specified in svc.conf. Values for these are - either "thread" or "null", which specify an ACE_Thread_Mutex or - ACE_NULL_Mutex, respectively. - - * tao/server_factory.*: Added create_poa_lock() and - create_poa_mgr_lock() to obtain locks for use in POA and POA - Manager instances. - - Mon Jan 12 12:10:58 1998 Carlos O'Ryan - - * tao/objtable.cpp: - Fixed some problems with misused auto_ptr and dynamic cast that - was taking away constness at the same time. - - Mon Jan 12 11:55:53 1998 Chris Cleeland - - * tao/orbobj.cpp (resolve_poa): Added skeletal code to create root - POAs using the resolve_initial_references() interface. Irfan will - fill in the correct code for actually creating the POA. - - Sun Jan 11 14:09:48 1998 - - * orbsvcs/Dump_Schedule/Dump_Schedule.dsp: - * orbsvcs/Event_Service/CORBA_Utils_T.cpp: - * orbsvcs/Event_Service/Dispatching_Modules.cpp: - * orbsvcs/Event_Service/Event_Channel.cpp: - * orbsvcs/Event_Service/Event_Service.cpp: - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - Adapted so they compile with the new POA mapping. - - Sun Jan 11 11:33:36 1998 - - * tao/connect.cpp: - On this branch the find() method for POA's require a - PortableServer::Servant parameter. - - * orbsvcs/Scheduling_Service/Scheduling_Service.cpp: - * orbsvcs/Naming_Service/Naming_Service.cpp: - * orbsvcs/Naming_Service/CosNaming_i.cpp: - Modified to use the new POA mapping for servers. - - * TAO_IDL/tao_idl.dsp: - Replaced the old drv_main.cpp with tao_idl.cpp. - - * orbsvcs/orbsvcs/orbsvcs_lib.dsp: - The final library is not generated inside Debug and its name is - orbsvcs.lib, not orbsvcs_lib.lib - - Sun Jan 11 10:55:04 CST 1998 Carlos O'Ryan - - * Merged changes from tag main_to_poa_merge_5 and - main_to_poa_merge_6. This late merge is risky, needs complete - validation before public release. - - Sat Jan 10 22:11:47 1998 - - * TAO_IDL/be_include/be_interface.h: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - Work around bug in MSVC++ 5.0 wrt inheritance from nested - classes and the constructor invocation. - - Sat Jan 10 19:21:18 1998 - - * TAO_IDL/tao_idl.dsp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be_include/be_interface.h: - * tao/orb_core.cpp: - Fixed some problems in the latest merges. - - Sat Jan 10 18:06:24 1998 - - * Merged changes from tag main_to_poa_merge_7 and - main_to_poa_merge_8. - Resolved many conflicts in TAO_IDL due to similar changes in - both branches. - - Sat Jan 10 16:57:42 1998 - - * Merged changes from tag main_to_poa_merge_6 and - main_to_poa_merge_7. - - Fri Jan 9 17:58:43 1998 Carlos O'Ryan - - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_decl.cpp: - * TAO_IDL/be/be_enum.cpp: - * TAO_IDL/be/be_enum_val.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_expression.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_interface_fwd.cpp: - * TAO_IDL/be/be_module.cpp: - * TAO_IDL/be/be_predefined_type.cpp: - * TAO_IDL/be/be_root.cpp: - * TAO_IDL/be/be_scope.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_string.cpp: - * TAO_IDL/be/be_structure.cpp: - * TAO_IDL/be/be_type.cpp: - * TAO_IDL/be/be_typedef.cpp: - Minor cosmetic changes to make the main trunk changes identic to - the ones on this branch. - - Thu Jan 8 15:50:59 1998 Carlos O'Ryan - - * TAO_IDL/be/be_state_operation.cpp: - Added support for native as return type. - - Thu Jan 8 13:20:11 1998 Carlos O'Ryan - - * TAO_IDL/ast/Makefile: - * TAO_IDL/be/Makefile: - Added ast_native and be_native to the list of files. - - * TAO_IDL/be_include/be_native.h: - * TAO_IDL/be/be_native.cpp: - * TAO_IDL/be_include/be_visitor.h: - * TAO_IDL/be/be_visitor.cpp: - Added support for visiting be_native. - - * TAO_IDL/be_include/be_visitor_args.h: - * TAO_IDL/be/be_visitor_args.cpp: - Added support for native and improved the implementation. - - * TAO_IDL/fe/y.tab.cpp: - Removed some includes and pragmas that cause trouble on NT. - - * TAO_IDL/be/be_type.cpp: - Print an error if the default implementation for write_as_return - is called. - - Thu Jan 8 12:53:28 1998 Chris Cleeland - - * tao/corbacom.i (wstring_dup): Added this, which simply calls - wstring_copy(). Of course, I can't find any mention of EITHER of - these functions in the 2.0 or 2.1 spec, but what good are wstrings - if you can't make copies? Plus, Irfan really wanted it. - - Wed Jan 7 15:09:47 1998 Carlos O'Ryan - - * TAO_IDL/fe/y.tab.cpp: - This is the actual file generated from idl.yy, thanks to the - "clone" scheme for building ACE it was lost in the previous - commits. - - Wed Jan 7 14:17:14 1998 Chris Cleeland - - * tao/orbobj.{h,cpp} (key_to_object): Changed signature so that - it's more in line with what we really need. This is okay because - this method is not in the standard, so we can choose whatever we - damn well please! - - Wed Jan 7 14:08:41 1998 Carlos O'Ryan - - * Merged changes from version main_to_poa_merge_4 and - main_to_poa_merge_5. - - Tue Jan 6 17:35:44 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_interface.cpp: - Added several fixes for mutiple inheritance, but still needs - some work. - - Tue Jan 6 15:20:13 1998 Carlos O'Ryan - - * tao/object.h: - * tao/object.cpp: - Removed obsolete methods, they were there to support upcalls on - the server side, but now this is done on - PortableServer::ServantBase. - - Tue Jan 6 14:46:27 1998 Carlos O'Ryan - - * tao/poa.h: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - Added a _get_servant () method to the collocated classes, to - obtain access to the underlying skeleton. - - Tue Jan 6 13:31:20 1998 Carlos O'Ryan - - * tao/objtable.h: - * tao/objtable.cpp: - Fixed some problems with the PortableServer::ObjectId and - PortableServer::Servant changes. - - * tao/poa.h: - * TAO_IDL/be/be_interface.cpp: - Added a method to get the interface repository name for a - skeleton. - - * tao/encode.cpp: - Fixed problem on object reference enconding. - - Mon Jan 05 23:41:59 1998 - - * tao/objkeyC.cpp: - The code for memory reallocation was missing, I added it back. - - * tao/iiopobj.cpp: - Fixed bug in object key generation. - - * tao/poa.cpp: - More debug messages when an object is missing. - - Mon Jan 05 17:46:00 1998 - - * tao/connect.cpp: - * tao/corba.h: - * tao/corbacom.h: - * tao/default_server.cpp: - * tao/default_server.h: - * tao/iiopobj.cpp: - * tao/iiopobj.i: - * tao/iioporb.cpp: - * tao/orbobj.cpp: - * tao/params.h: - * tao/params.i: - * tao/poa.cpp: - * tao/poa.h: - * tao/server_factory.cpp: - * tao/server_factory.h: - The ObjectId changes were "accepted for revision" by the POA - committe, hence I'll commit them, they check them and then I'll - have to make the changes they require ;-) - The current scheme uses TAO::ObjectKey as a representation for - sequence, this class is generated by the IDL compiler. - The ORB core uses a typedef (TAO_opaque) for all its internal - object keys; the current (and deprecated) POA uses ObjectId - (another typedef on the same thing) as object identifiers. - - Mon Jan 5 13:06:19 1998 Carlos O'Ryan - - * Merged changes from revision main_to_poa_merge_3 up to revision - main_to_poa_merge_4. - - Mon Jan 05 00:11:45 1998 - - * tao/objtable.h: - * tao/objtable.cpp: - New Object Table interface, in preparation for the POA needs. - - Sat Jan 03 11:37:21 1998 - - * TAO_IDL/be/be_visitor_args.cpp: - Typedefs and predefined types where unproperly handled. - - Fri Jan 2 14:09:49 1998 Carlos O'Ryan - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: - Sequences work on Solaris, even Purify gives its "Houston it's a - go", so I'm reinstating them. - - * tests/Cubit/TAO/IDL_Cubit/svr.cpp: - Minor cosmetic changes. - - Fri Jan 02 08:31:32 1998 - - * Merged changes from revision main_to_poa_merge_2 up to revision - main_to_poa_merge_3. - Had to disable sequence test from IDL_Cubit. - - Thu Jan 01 15:43:43 1998 - - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - Generated code for collocations setup the "parent_" field - properly. - - * tao/objkeyC.h: - * tao/corbacom.h: - Added export macros. - - * tao/objtable.cpp: - * tao/objtable.h: - * tao/poa.cpp: - * tao/poa.h: - Object table is based on servants now. - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: - * tests/Cubit/TAO/IDL_Cubit/server.dsp: - * tests/Cubit/TAO/IDL_Cubit/svr.cpp: - Fixed to use the new POA mapping. - - * TAO_IDL/tao_idl.dsp: - * tao/TAO.dsp: - Added the new files to the MSVC++ project. - - Tue Dec 30 16:38:42 1997 Carlos O'Ryan - - * More advances in code generation, it compiles and links now, but - won't run. - - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_enum.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_interface_fwd.cpp: - * TAO_IDL/be/be_predefined_type.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_string.cpp: - * TAO_IDL/be/be_structure.cpp: - * TAO_IDL/be/be_type.cpp: - * TAO_IDL/be/be_typedef.cpp: - * TAO_IDL/be/be_union.cpp: - * TAO_IDL/be/be_visitor_args.cpp: - * TAO_IDL/be_include/be_array.h: - * TAO_IDL/be_include/be_enum.h: - * TAO_IDL/be_include/be_exception.h: - * TAO_IDL/be_include/be_interface.h: - * TAO_IDL/be_include/be_interface_fwd.h: - * TAO_IDL/be_include/be_predefined_type.h: - * TAO_IDL/be_include/be_sequence.h: - * TAO_IDL/be_include/be_string.h: - * TAO_IDL/be_include/be_structure.h: - * TAO_IDL/be_include/be_type.h: - * TAO_IDL/be_include/be_typedef.h: - * TAO_IDL/be_include/be_union.h: - Added methods to be_type to generate the return types; this - time without any switches, just visitors and virtual - dispatching. - - * tao/poa.cpp: - * tao/poa.h: - Added the methods to lookup operations, this are TAO specific - and should have complaint names, but currently I just kept the - old names to avoid a major breakdown. - - * TAO_IDL/ast/Makefile: - * TAO_IDL/be/Makefile: - * TAO_IDL/driver/Makefile: - * TAO_IDL/fe/Makefile: - * TAO_IDL/narrow/Makefile: - * TAO_IDL/util/Makefile: - Updated dependencies. - - * TAO_IDL/be/be_visitor_interface.cpp: - * TAO_IDL/be_include/be_visitor_interface.h: - * TAO_IDL/be/be_interface.cpp: - Reverted some changes (code moved from be_interface.cpp into - visitors) to avoid massive conflicts with Andy's changes. - - Tue Dec 30 11:07:06 1997 Chris Cleeland - - * tao/orb_core.h (TAO_Resource_Factory): Corrected my "fat-finger" - mistake for the return type of get_allocator (). - - Mon Dec 29 16:26:24 1997 Chris Cleeland - - * tao/orb_core.{h,cpp}: Added methods for the orb core allocator - to the resource factory. - - Mon Dec 29 13:18:49 1997 Carlos O'Ryan - - * TAO_IDL/be/Makefile: - * TAO_IDL/be/be_visitor.cpp: - * TAO_IDL/be/be_visitor_args.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - * TAO_IDL/be_include/be_visitor.h: - * TAO_IDL/be_include/be_visitor_args.h: - * TAO_IDL/be_include/be_visitor_interface.h: - Started implementation of the collocated class code generation, - using the visitor pattern; hence the new be_visitor class and - some examples of its use. - - * TAO_IDL/be_include/be_type.h: - * TAO_IDL/be_include/be_typedef.h: - * TAO_IDL/be/be_type.cpp: - * TAO_IDL/be/be_typedef.cpp: - Added method to obtain the node type for the most "unaliased" - type though a typedef chain. This is needed in several points - for code generation. - - * TAO_IDL/be/be_interface.cpp: - Implemented the collocated class generation using visitors, - ditto for (part of) the main class. - - * TAO_IDL/util/utl_identifier.cpp: - Fixed memory deallocation problem. The string was copied using - ACE_OS::strdup(), but deleted using operator delete[]. - - * TAO_IDL/be/be_argument.cpp: - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_attribute.cpp: - * TAO_IDL/be/be_constant.cpp: - * TAO_IDL/be/be_decl.cpp: - * TAO_IDL/be/be_enum.cpp: - * TAO_IDL/be/be_enum_val.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_expression.cpp: - * TAO_IDL/be/be_field.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_interface_fwd.cpp: - * TAO_IDL/be/be_module.cpp: - * TAO_IDL/be/be_operation.cpp: - * TAO_IDL/be/be_predefined_type.cpp: - * TAO_IDL/be/be_root.cpp: - * TAO_IDL/be/be_scope.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_string.cpp: - * TAO_IDL/be/be_structure.cpp: - * TAO_IDL/be/be_type.cpp: - * TAO_IDL/be/be_typedef.cpp: - * TAO_IDL/be/be_union.cpp: - * TAO_IDL/be/be_union_branch.cpp: - * TAO_IDL/be/be_union_label.cpp: - * TAO_IDL/be_include/be.h: - * TAO_IDL/be_include/be_argument.h: - * TAO_IDL/be_include/be_array.h: - * TAO_IDL/be_include/be_attribute.h: - * TAO_IDL/be_include/be_constant.h: - * TAO_IDL/be_include/be_decl.h: - * TAO_IDL/be_include/be_enum.h: - * TAO_IDL/be_include/be_enum_val.h: - * TAO_IDL/be_include/be_exception.h: - * TAO_IDL/be_include/be_expression.h: - * TAO_IDL/be_include/be_field.h: - * TAO_IDL/be_include/be_interface.h: - * TAO_IDL/be_include/be_interface_fwd.h: - * TAO_IDL/be_include/be_module.h: - * TAO_IDL/be_include/be_operation.h: - * TAO_IDL/be_include/be_predefined_type.h: - * TAO_IDL/be_include/be_root.h: - * TAO_IDL/be_include/be_scope.h: - * TAO_IDL/be_include/be_sequence.h: - * TAO_IDL/be_include/be_string.h: - * TAO_IDL/be_include/be_structure.h: - * TAO_IDL/be_include/be_type.h: - * TAO_IDL/be_include/be_typedef.h: - * TAO_IDL/be_include/be_union.h: - * TAO_IDL/be_include/be_union_branch.h: - * TAO_IDL/be_include/be_union_label.h: - Added the accept() method for the vistor pattern - implementation. - - Mon Dec 29 11:37:47 1997 Chris Cleeland - - * tests/Cubit/TAO/MT_Cubit/server/Makefile: Updated dependencies. - - Fri Dec 26 12:05:41 1997 Chris Cleeland - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: Correctly modified the - make_cubit() method to properly access the underlying object key. - - * tao/objkeyC.cpp: Added this crucial file that I somehow missed - adding in the last round of changes. - - Wed Dec 24 15:50:38 1997 Chris Cleeland - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: Removed non-standard - reliance on underlying object key implementation. It relied on - the buffer being publicly-accessible, which is wrong. However, - I'm not sure that my interim fix is very "right" since it takes - the address of operator[](0) to get to the underlying entire - buffer. - - * tests/Cubit/TAO/{IDL_Cubit,MT_Cubit/{server,client}}/Makefile: - Updated to use rules.tao.GNU. - - * tests/Thruput_test/Makefile: Updated to use rules.tao.GNU. - - * tao/orb.h: Removed unnecessary inclusions of object.h and - corbacom.h from this file. - - * tao/objkeyC.{h,cpp}: Moved the inclusion of corba.h from the - header to the implementation because of strange requirements of - the orb core. This means that this file CANNOT be used as - generated by the IDL compiler. - - * tao/{orbobj,stub,object,iiopobj}.cpp: Updated to use the proper - TAO::ObjectKey_ptr type. - - * tao/Makefile: Updated this after the recent merge that - accidentally overrote some changes I'd made. - - * taoconfig.mk: Moved the implicit rule into rules.tao.GNU. - - * rules.tao.GNU: Added this file where rules specific to TAO can - be collected. Right now it just contains an implicit rule for - executing the IDL compiler on .idl files. - - Tue Dec 23 12:00:38 1997 Carlos O'Ryan - - * TAO-INSTALL.html: - * VERSION: - * Benchmark/benchmark/Makefile: - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_attribute.cpp: - * TAO_IDL/be/be_codegen.cpp: - * TAO_IDL/be/be_decl.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_operation.cpp: - * TAO_IDL/be/be_scope.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_state.cpp: - * TAO_IDL/be/be_state_argument.cpp: - * TAO_IDL/be/be_state_exception.cpp: - * TAO_IDL/be/be_state_operation.cpp: - * TAO_IDL/be/be_state_sequence.cpp: - * TAO_IDL/be/be_state_structure.cpp: - * TAO_IDL/be/be_state_typedef.cpp: - * TAO_IDL/be/be_state_union.cpp: - * TAO_IDL/be/be_type.cpp: - * TAO_IDL/be/be_union.cpp: - * TAO_IDL/be/be_union_branch.cpp: - * TAO_IDL/be_include/be_array.h: - * TAO_IDL/be_include/be_codegen.h: - * TAO_IDL/be_include/be_decl.h: - * TAO_IDL/be_include/be_scope.h: - * TAO_IDL/be_include/be_sequence.h: - * TAO_IDL/be_include/be_state.h: - * TAO_IDL/narrow/narrow.cpp: - * docs/Options.html: - * docs/components.html: - * docs/configurations.html: - * docs/index.html: - * docs/orbsvcs.html: - * docs/releasenotes/index.html: - * orbsvcs/README: - * orbsvcs/Dump_Schedule/Dump_Schedule.cpp: - * orbsvcs/Dump_Schedule/Makefile: - * orbsvcs/Event_Service/Dispatching_Modules.cpp: - * orbsvcs/Event_Service/Dispatching_Modules.i: - * orbsvcs/Event_Service/Event_Channel.cpp: - * orbsvcs/Event_Service/Event_Channel.i: - * orbsvcs/Event_Service/Event_Service.cpp: - * orbsvcs/Event_Service/Makefile: - * orbsvcs/Event_Service/RT_Task.cpp: - * orbsvcs/Event_Service/ReactorTask.cpp: - * orbsvcs/Naming_Service/CosNaming_i.cpp: - * orbsvcs/Naming_Service/Makefile: - * orbsvcs/Scheduling_Service/Config_Scheduler.cpp: - * orbsvcs/Scheduling_Service/Config_Scheduler.h: - * orbsvcs/Scheduling_Service/Makefile: - * orbsvcs/Scheduling_Service/Scheduling_Service.cpp: - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/orbsvcs/RtecEventChannelAdmin.idl: - * orbsvcs/orbsvcs/Runtime_Scheduler.cpp: - * orbsvcs/orbsvcs/Runtime_Scheduler.h: - * orbsvcs/orbsvcs/Scheduler_Factory.cpp: - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - * orbsvcs/tests/Event_Latency/Makefile: - * orbsvcs/tests/Logger/Makefile: - * orbsvcs/tests/Logger/clnt.cpp: - * orbsvcs/tests/Simple_Naming/Makefile: - * tao/Makefile: - * tao/Timeprobe.cpp: - * tao/corba.h: - * tao/corbacom.cpp: - * tao/deep_free.cpp: - * tao/encode.cpp: - * tao/except.cpp: - * tao/except.h: - * tao/giop.cpp: - * tao/invoke.cpp: - * tao/managed_types.cpp: - * tao/managed_types.h: - * tao/managed_types.i: - * tao/object.i: - * tao/orb_core.cpp: - * tao/request.cpp: - * tao/tao_internals.cpp: - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: - * tests/Cubit/TAO/IDL_Cubit/clnt.h: - * tests/Cubit/TAO/MT_Cubit/client/Task_Client.cpp: - * tests/Cubit/TAO/MT_Cubit/client/Task_Client.h: - * tests/Cubit/TAO/MT_Cubit/client/client.cpp: - * tests/Cubit/TAO/MT_Cubit/client/cubit.idl: - * tests/Cubit/TAO/MT_Cubit/server/cubit.h: - * tests/Cubit/TAO/MT_Cubit/server/cubit.idl: - * tests/Cubit/TAO/MT_Cubit/server/cubit_i.cpp: - * tests/Cubit/TAO/MT_Cubit/server/cubit_i.h: - * tests/Cubit/TAO/MT_Cubit/server/method_db.i: - * tests/Cubit/TAO/MT_Cubit/server/svr.cpp: - Merged in the changes between revisions main_to_poa_merge_1 and - main_to_poa_merge_2. - The only conflicts were: - + ChangeLog: - removed all the main truck comments and added the one you are - reading just now. - + tests/Cubit/TAO/MT_Cubit/client/Makefile: - + tests/Cubit/TAO/MT_Cubit/client/Makefile: - Left the branch revision, it included the dependencies and had - correct syntax. - + tao/poa.cpp: - CORBA_POA::handle_request was removed on the - branch but modified on the main revision; keep it removed. - - Wed Dec 17 02:11:11 1997 Chris Cleeland - - * tao/poa.h: - * tao/poa.cpp: - * tao/orbobj.h: - * tao/orbobj.cpp: - * tao/objkeyC.i: - * tao/objkeyC.h: - * tao/object.h: - * tao/iiopobj.h: - * tao/iiopobj.cpp: - * tao/decode.cpp: - * tao/corbacom.h: - * tao/corba.h: - * tao/any.cpp: - All affected by changes to support interfaces required by the new - POA, specifically CORBA::Object::key() and - CORBA::ORB::key_to_object(). It does not compile now, and seems - as if it's simply an ordering problem of header files. - - Mon Dec 15 19:39:20 1997 Chris Cleeland - - * TAO_IDL/be/Makefile: - * TAO_IDL/be/be_codegen.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_state.cpp: - * TAO_IDL/be/be_state_attribute.cpp: - * TAO_IDL/be/be_state_exception.cpp: - * TAO_IDL/be/be_union_branch.cpp: - * TAO_IDL/be_include/be_state.h: - * docs/releasenotes/orbcore.html: - * docs/releasenotes/index.html: - * orbsvcs/Naming_Service.cpp: - * tao/iiopobj.h: - * tao/except.h: - * tao/except.cpp: Merged in changes from the main trunk. - - * tests/Thruput_test/Makefile: Updated to use taoconfig.mk. - - Sat Dec 13 22:06:25 1997 Chris Cleeland - - * tao/poa.* (get_key): Removed this method, since it's - unnecessary. - - * tao/objkey.idl: Added this file, which is the idl for an object - key. - - * tao/iiopobj.*: Added some '@@' comments for Irfan. - - * tao/Makefile: Reworked this monstrositry a bit. - - Fri Dec 12 12:09:42 1997 Chris Cleeland - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: Changed to use - CORBA::Object::key() rather than _get_name(). - - * tests/Cubit/TAO/{DII_Cubit,IDL_Cubit,MT_Cubit}/Makefile: Updated - to use taoconfig.mk. - - * tao/orb_core.i: Removed stray printf. - - * taoconfig.mk: Added this file which contains common - configuration stuff for applications. - - Thu Dec 11 21:28:09 1997 Chris Cleeland - - * tao/poa.{h,cpp}: Moved handle_request to - TAO_Server_Connection_Handler and moved create to - CORBA::ORB::key_to_object. - - * tao/orbobj.{h,cpp}: Added key_to_object as a method to create an - object reference from an object key and type id. This code - actually used to live in POA::create. - - * tao/object.h: Brief documentation twiddling, and renamed - get_subclass to get_most_derived, which is hopefully more - explicative. - - * tao/{object,iiopobj,stub}.{h,cpp}: Renamed _get_name to 'key' - and have it return a TAO_ObjectKey_ptr rather than a const char*. - - * tao/corbacom.h: Added typedef for TAO_ObjectKey, which - represents an object key in GIOP. - - * tao/connect.{h,cpp}: Moved handle_request from the POA into - here, thereby helping confine IIOP-ness to the ORB Core and - keeping the POA pristine. - - Thu Dec 11 22:18:52 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_interface.cpp: Moved the code generation for the - _var and _out classes before the actual class declaration, but - after the forward declaration. This was necessary if any elements - in the scope of the interface are defined to be of the same type - as that interface. In such a situation those elements are defined - to be of the _var type. Hence the declaration for _var and _out - must precede the class declaration. - - Thu Dec 11 22:00:52 1997 Sergio Flores - - * orbsvcs/Naming_Service/Naming_Service.cpp (main): Fixed a bug - related to returning an empty string as the ior in the reply from - the multicast request. - - Thu Dec 11 14:06:50 1997 Aniruddha Gokhale - - * TAO_IDL/be/{be_exception,be_state_exception}.cpp: Support for - exceptions added. Added a new file called - "be_state_exception.cpp". - - * TAO_IDL/be_include/be_state.h: Added a new singleton for - be_state_exception. - - * TAO_IDL/be/be_state.cpp: Template instantiations for - be_state_exception. - - * TAO/docs/releasenotes/index.html: Updated to include exception - support. - - * TAO/tao/except.{h,cpp}: Moved the TypeCode member from the - private section to the protected section so that derived classes - can set it. Also, changed the variable from _type to type_ to - stick to the ACE design standards. - - * ============ - * ============ End of POA branch changes. - * ============ - -Fri Jan 23 10:29:17 1998 David L. Levine <@cs.wustl.edu> - - * tao/deep_free.cpp (TAO_Marshal_Sequence::deep_free): added - ACE_UNUSED_ARGs of dest and env. - - * TAO_IDL/fe/{Makefile,y.tab.cpp,y.tab.cpp.diff}: added patch to - fix up y.tab.cpp to compile cleanly with g++. - - * TAO_IDL/fe/{Makefile,lex.yy,cpp,lex.yy.cpp.diff}: added patch to - fix up lex.yy.cpp to compile cleanly with g++. - -Thu Jan 22 18:18:07 1998 Nanbor Wang - - * orbsvcs/Event_Service/GPlot_File.{h,cpp}: Shuffled template - instantiations and typedef's for ACE_Map_Manager around to - eliminate compilation errors from g++. - -Thu Jan 22 16:32:56 1998 Chris Cleeland - - * tao/nvlist.cpp (is_nil): Fixed some return lines that were - probably returning the wrong value by not enclosing a comparison - in parens. Fortunately we weren't really checking the return - value on these, I suspect ;-) Thanks to Frederic Andres - for turning this in. - -Thu Jan 22 16:16:32 1998 Sumedh Mungee - - * orbsvcs/orbsvcs/CosPropertyService_i.cpp, CosPropertyService_i.h, AVStreams_i.cpp, AVStreams_i.h: - Added empty implementation files for AVStreams and propertyservice implementations - - * orbsvcs/orbsvcs/Makefile: - Fixed the Makefile so that it will compile the AV related stuff - only when run as `make av=1`. - -Thu Jan 22 14:22:46 1998 Nanbor Wang - - * orbsvcs_lib.dsp: Changed to use multithreaded libraries. - -Thu Jan 22 14:20:13 1998 Nanbor Wang - - * tests/Param_Test/{server,client}.dsp: The project files - somehow got messed up. - - * orbsvcs/orbsvcs_lib.dsp: Changed to use multithreaded - libraries. - - * orbsvcs/Scheduling_Service/Scheduling_Service.dsp: Removed - unnecessary link-time libraries. - - * orbsvcs/Dump_Schedule/Dump_Schedule.dsp: Changed to use - multithreaded libraries. - -Wed Jan 21 20:49:51 1998 Chris Cleeland - - * TAO version 0.0.54, released Wed Jan 21 20:49:51 1998. - -Wed Jan 21 19:38:02 1998 Aniruddha Gokhale - - * tao/encode.cpp, decode.cpp: Fixed alignment problem. Done only - in Marshal_Struct for the time being. Details of this fix will be - inserted later. - -Wed Jan 21 16:27:58 1998 Chris Cleeland - - * Makefile: Updated this to use the new release.pl file below. - - * release.pl: Added new script to take over some of the release - work rather than having it all inline in the Makefile. - - * tests/Cubit/TAO/MT_Cubit/README: Changed docs to reflect the new - names and command line requirements. - -Wed Jan 21 15:38:52 1998 Carlos O'Ryan - - * orbsvcs/Event_Service/Makefile: - Removed GPlot_File from the list, it does not compile on - Solaris/g++, but it is not needed. - -Wed Jan 21 11:48:19 1998 Aniruddha Gokhale - - * tao/encode.cpp: Updated the ObjRef::encode routine to encode NUL - object references - - * tests/Param_Test: Further improvements. - - * TAO_IDL/be/{be_state_attribute, be_attribute}.cpp: Solved the - problem of return types. The stubs explicitly allocate the top - level storage. A similar fix was made for "operations" mentioned - in a previous ChangeLof entry. - -Wed Jan 21 12:23:29 1998 Carlos O'Ryan - - * tests/Cubit/TAO/MT_Cubit/Makefile: - Fixed typo in object list for server and client. - -Wed Jan 21 11:25:36 1998 Carlos O'Ryan - - * tests/Param_Test/tmplinst.cpp: - Removed extra ';' in instantiation pragma. - -Wed Jan 21 11:13:56 1998 Carlos O'Ryan - - * tests/Cubit/TAO/MT_Cubit/Makefile: - * tests/Cubit/TAO/MT_Cubit/tmplinst.cpp: - * tao/giop.cpp: - Added missing template instantiations. - - * tao/sequence_T.h: - * tao/sequence_T.i: - No need to return const reference to pointer, a simple return - by value (of the pointer) is OK. - -Wed Jan 21 10:38:22 1998 Chris Cleeland - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: Added template instantiation - for Env_Value. - - * tests/{Thruput/TAO,Param_Test,Cubit/TAO/IDL_Cubit}/Makefile: - Added the appropriate tmplinst.* so that it gets built/linked. - - * tests/{Thruput/TAO,Param_Test,Cubit/TAO/IDL_Cubit}/tmplinst.cpp: - Added this file, which contains explicit template instantiations - for code generated by the IDL compiler. Ideally, this file (or - something like it) would be generated by the compiler, but we're - just not there yet. So, since it's not TOO much work, we do this. - -Wed Jan 21 09:40:27 1998 Carlos O'Ryan - - * tao/sequence.cpp: - * tao/sequence_T.cpp: - Fixed allocation problem for operator= in sequences, the new - buffer should have size "rhs.maximum_", not "this->maximum_" - -Wed Jan 21 04:43:57 1998 Aniruddha Gokhale - - * tao/corbacom.h: Added Object_var and ORB_var to the CORBA class - (i.e., to the namespace) - - * tao/sequence.cpp: Operator= for string sequence still had bugs - where we were not allocating a larger buffer of the assigned - quantity was larger than us. Similar bugs *might* be present in - other sequence classes and I have not tested them yet. - -Wed Jan 21 01:34:07 1998 Nanbor Wang - - * tests/Cubit/TAO/MT_Cubit/{server,client}.cpp: Ifdef'ed out - ACE_THR_PRIO_FIFO_DEF if it's not defined. - - * orbsvcs/Naming_Service/Naming_Service.cpp: We should use - "ace/streams.h" to include iostream definition instead of using - directly. It is not compatible with the new - standard CPP libraries. - - * orbsvcs/Event_Service/Event_Service.dsp: - * orbsvcs/Naming_Service/Naming_Service.dsp: - * orbsvcs/Scheduling_Service/Scheduling_Service.dsp: It used the - wrong libraries. - -Tue Jan 20 22:59:42 1998 Chris Cleeland - - * tao/sequence_T.cpp: Fixed more typos where it was referring to - the argument as 'seq' rather than the real name 'rhs'. - -Tue Jan 20 22:38:10 1998 - - * tests/Param_Test/tests.cpp: - No need to call CORBA::string_free() on opname_, since it is a - String_var - - * tao/sequence_T.cpp: - Fixed typo in object sequences. - -Tue Jan 20 21:53:52 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/orbsvcs/TAO_IDL_templates.cpp: - Added missing template instantiations, they go into their own - file because I could not think of a "natural" place to put them. - -Tue Jan 20 20:25:41 1998 Carlos O'Ryan - - * tao/sequence.h: - * tao/sequence.i: - * tao/sequence.cpp: - * tao/sequence_T.i: - * tao/sequence_T.cpp: - Another round of changes, this time fixing several bugs reported - by Andy and Irfan. - -Tue Jan 20 20:23:57 1998 Carlos O'Ryan - - * tao/nvlist.h: - * tao/nvlist.i: - Fixed warnings for IRIX and follow the spec, use const methods - but return non-const types! - -Tue Jan 20 17:00:15 1998 Chris Cleeland - - * tao/strategy_T.h: Added this file to contain template strategies - such as TAO_Reactive_Strategy<>. - - * tao/default_server.*: Moved TAO_Reactive_Strategy<> into its own - set of files. Thanks to Bryan Mendel - for suggesting this fix! - - * tao/sequence_T.cpp (operator =): Corrected a problem where T** - was being assigned to T*. - - * tao/orb_core.cpp (init): Moved setting of stuff in orb_params() - to be post-service initialization. It needs to be this way - because the ORB Parameters are now regulated by the resource - factory settings, and that gets created during service - initialization. - - * tao/giop.cpp: Changed the TAO_GIOP_LocateRequestHeader::init to - be more efficient and not generate warnings on Irix. - - * tao/{giop,connect}.cpp: Update code that touches ORB-internal - sequences to use the API of TAO_Unbounded_Sequence<> rather than - the old crufty code. - - * tao/giop.h: Change ORB-internal sequences (such as the - ServiceContextList) to use the new TAO_Unbounded_Sequence<> - template rather than the deprecated CORBA_SEQUENCE<> hack. - -Tue Jan 20 09:18:31 1998 Aniruddha Gokhale - - * TAO/tao/interp.cpp: Used TAO_opaque to set the size of any - generic sequence. - - * TAO_IDL/be/{be_operation,be_state_operation}.cpp: For return - value of sequences, the stub now allocates the top level storage - for the sequence class. - -Tue Jan 20 05:34:16 1998 Aniruddha Gokhale - - * TAO/tao/sequence.cpp: In the assignment operator for Unbounded - string sequences, we had forgotten to update the max and length - fields to that of the assigned sequence in the event of it being - larger than ourselves. We had also forgottent o set our release - flag to true as well as free the old buffer (if already our - release flag was true). I have not checked if there are similar - bugs in other "=" operators or not. But these will be evident as - more tests are added to the Param_Test example. - -Mon Jan 19 23:35:45 1998 - - * tao/sequence_T.h: - * tao/sequence_T.i: - * tao/sequence_T.cpp: - Finished suit of parametric classes for sequences, including - bounded sequences of objects and strings. - Fixed some more bugs in the Manager classes for sequences of - objects. - -Mon Jan 19 17:33:45 1998 Chris Cleeland - - * orbsvcs/tests/Simple_Naming/clnt.cpp (init): Changed the marker - name for the naming service to "NameService" and fixed a bunch of - places in init() where "1" was being returned instead of "-1". - - * tests/Cubit/TAO/IDL_Cubit/README: Fixed portion that talks about - the IOR to use the correct default IOR. Thanks to J Russell - Noseworthy for catching - this and submitting fixes! - -Mon Jan 19 15:41:53 1998 Nanbor Wang - - * tests/Cubit/TAO/MT_Cubit/server.cpp (create_servants): Added a - final return statement to avoid warnings. - (ACE_THR_PRI_FIFO_DEF): This macro is not defined on NT. I - ifdef'ed the priority setting statement out temporarily until we - figure out a way to map NT's thread priority values to pthread's - priority values. - - * tests/Cubit/TAO/MT_Cubit/server.dsp: Updated project file. - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp (Cubit_Client): Changed the - data type of to CORBA::UShort. - - * tests/Param_Test/options.{h,cpp} (portnum): Changed it to type - CORBA::UShort. - - * tests/Param_Test/helper.cpp (gen_fixed_struct): Added - parenthesis to avoid warnings. - - * tao/sequence.h (TAO_Unbounded_String_Sequence): Added TAO_Export - to class TAO_Unbounded_String_Sequence. - -Mon Jan 19 11:24:43 1998 Carlos O'Ryan - - * tao/sequence_T.i: - g++ does not like nested types in templates. - - * docs/releasenotes/index.html: - Updated docs on services. - -Sun Jan 18 21:33:21 1998 - - * tao/sequence.h: - * tao/sequence.i: - * tao/sequence.cpp: - * tao/sequence_T.h: - * tao/sequence_T.i: - * tao/sequence_T.cpp: - Added new class for sequences of strings, the approach based on - templates was not worth it. - Also fixed a number of bugs in the unbounded object sequences. - The following items are in the TODO list: - + Bounded sequences of objects - + Bounded sequences of strings. - - * TAO_IDL/be_include/be_helper.h: - * TAO_IDL/be/be_helper.cpp: - Addded small manipulators to indent and unindent an output - stream. - - * TAO_IDL/be/be_visitor_sequence.cpp: - Synch up with new classes for string and objects. - - * tests/Param_Test/tests.cpp: - Fixed some problems with the test for sequences of variable - sized structures. - - * orbsvcs/Event_Service/CORBA_Utils_T.cpp: - Fixed unsigned/signed comparison. - -Sun Jan 18 18:30:16 1998 Nanbor Wang - - * TAO/tests/Cubit/TAO/MT_Cubit/*.{dsp.MAK}: - * TAO/tests/Param_Test/*.{dsp,MAK}: Played with exported - makefiles some more. It's ultimately funny that when a project - file has some customed build commands in it, the exported - makefile sometime won't work correctly. - -Sat Jan 17 23:41:33 1998 Nanbor Wang - - * Added more MSVC makefiles in some test directories. - - * tests/Param_Test/{client,server}.dsp: Correct idl generated - files' dependency. - -Sat Jan 17 22:40:29 1998 Aniruddha Gokhale - - * TAO/tao/orbobj.{h,i}: Added _var and _out for CORBA_ORB - -Sat Jan 17 21:28:05 1998 - - * tao/corba.h: - * tao/corbacom.h: - Moved the definition of TAO_opaque from corbacom.h to corba.h so - it appears after the "sequence.h" file. - - * tao/sequence.h: - * tao/sequence.cpp: - Reorder includes to avoid "inline called before declared so" - warning in g++. - - * tests/Cubit/TAO/MT_Cubit/server.cpp: - The OA uses TAO_opaque instead of CORBA::OctetSeq. - -Sat Jan 17 16:07:51 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_args.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - * TAO_IDL/be_include/be_visitor_args.h: - * TAO_IDL/be_include/be_visitor_interface.h: - New visitors to generate collocated classes (only used on the - POA branch) and the arguments declaration. - -Fri Jan 16 23:38:38 1998 - - * tao/decode.cpp: - * tao/deep_free.cpp: - * tao/giop.h: - * tao/iiopobj.cpp: - * tao/sequence.h: - * tao/sequence_T.h: - * tao/sequence_T.cpp: - Fixed some memory *deallocation* problems with sequences, they - needed a _deallocate_buffer() method, not to implement the base - class destructor, but to implement deep_free. - -Fri Jan 16 18:01:03 1998 Carlos O'Ryan - - * The Event Service works on Solaris/SunCC again. - - * tao/poa.h: - * tao/poa.cpp: - * tao/objtable.h: - * tao/objtable.cpp: - * tao/connect.cpp: - The object table, and POA use a real TAO_Unbounded_Sequence, - removing some nasty casts. - - * tao/sequence_T.i: - * tao/sequence_T.cpp: - Fixed some memory allocation problems in operator= - - * TAO_IDL/be/be_interface.cpp: - No need to cast the object key when calling POA::bind(), it - takes a TAO_opaque now. - -Thu Jan 15 17:15:29 1998 Carlos O'Ryan - - * TAO/TAO_IDL/be/be_interface.cpp: - * TAO/tao/connect.cpp: - * TAO/tao/corba.h: - * TAO/tao/corbacom.cpp: - * TAO/tao/corbacom.h: - * TAO/tao/decode.cpp: - * TAO/tao/encode.cpp: - * TAO/tao/iiopobj.cpp: - * TAO/tao/iiopobj.i: - * TAO/tao/iioporb.cpp: - * TAO/tao/poa.cpp: - Now TAO_opaque is implemented using the new TAO_*_Sequence - classes, this is needed because the demarshaller expects that - class. There are some other sequences in the ORB core that - need the same change, but currently that is not so urgent. - The object table expects a CORBA_SEQUENCE so some casting is - still done among those classes and the new templates. The POS - branch already solved this, so I will wait until the merge to - fix it. - - * TAO/tao/sequence_T.h: - * TAO/tao/sequence_T.i: - * TAO/tao/sequence_T.cpp: - Now we include sequence_T.i in sequence_T.h, this is needed for - template instantiation. - The ACE_ASSERT for indices was comparing to the value of - length_, it must compare with maximum_, it is possible that the - user creates the sequence with enough space (thus maximum_ is - properly set, but length_ is 0), then inserts some data and - finally sets the length, with the previous asserts that would - fail. - - * TAO/tao/Makefile: - * TAO/TAO_IDL/*/Makefile: - * TAO/orbsvcs/*/Makefile: - * TAO/tests/Cubit/TAO/*/Makefile: - Dependencies regenerated. - -Wed Jan 14 23:10:13 1998 - - * sequence.h: - * sequence.i: - * sequence.cpp: - * sequence_T.h: - * sequence_T.i: - More generated and parametric code reduced, also fixed some - problems detected by MSVC++. - - * tao/TAO.dsp: - * TAO_DL/tao_idl.dsp: - Updated projects to include new files. - -Wed Jan 14 21:03:18 1998 Carlos O'Ryan - - * sequence.h: - * sequence.i: - * sequence.cpp: - Removed unused TAO_Unbounded_String class, it has been - superseeded by - TAO_Unbounded_Managed_String. - - * sequence_T.h: - * sequence_T.i: - Managed sequences only need the const version of operator[], - because they return a Manager by value. - -Wed Jan 14 20:32:47 1998 - - * tao/sequence_T.h: - Fixed typo in base class for ACE_Bounded_Managed_Sequence. - -Wed Jan 14 17:54:31 1998 Carlos O'Ryan - - * TAO_IDL/be_include/be_visitor_sequence.h: - * TAO_IDL/be/be_visitor_sequence.cpp: - * TAO_IDL/be/be_interpretive.cpp: - * TAO_IDL/be/be_sequence.cpp: - The compiler generates code using the new managed sequence - parametric classes. - Also handled typedefs correctly while generating sequence code - specially template arguments and return types for operator[] in - _var and _out classes. - Simplified code generation for sequences of sequences: the - generated typedefs can be used to instantiate the templates. - Finally made some of the visitors more generic, so less - knowledge on the stream files gets distributed. - - * tao/sequence.h: - * tao/sequence.cpp: - * tao/sequence_T.h: - * tao/sequence_T.i: - * tao/sequence_T.cpp: - Re-implemented the Managed_Sequence classes using the "Manager" - as a parameter instead of a nested type. - Still requires some work because the sequences need privileged - access (friend) to the Managers. - -Tue Jan 13 15:55:32 1998 Chris Cleeland - - * Makefile (INSTALL): Added a rule to build the INSTALL file from - TAO-INSTALL.html. Also added both TAO-INSTALL.html and INSTALL to - the list of files included in the release. TAO-INSTALL.html had - not been included at all. - - * TAO-INSTALL.html: Updated some of the text in the Unix portion - to be explicit regarding the need for GNU Make. - - * INSTALL: Added this file, which is the output of 'lynx -dump - TAO-INSTALL.html'. - -Mon Jan 12 20:04:32 1998 Sumedh Mungee - - * tests/Cubit/TAO/MT_Cubit/server.cpp: Added comments - -Mon Jan 12 17:29:44 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_codegen.cpp: Added initialization for an abstract - visitor factory in the constructor and deletion in the - destructor. - - Added code for the "make_visitor" factory method. - - * TAO_IDL/be/be_factory.cpp: Added destructor and constructor for - abstract factory (*note* it is not pure abstract). - - * TAO_IDL/be/be_produce.cpp: We use the different visitors for the - root to start code generation. At this time, we instantiate the - visitor factory with the concrete factory of visitors which will - generate stubs/skeletons using TAO's interpretive marshaling - engine. - - * TAO_IDL/be_be_sequence.cpp: Commented out a large part of code - to enable visitors for sequences to take over code generation. - - * TAO_IDL/be/be_visitor.cpp: Abstract factory of visitors. - - * TAO_IDL/be/{be_visitor_root, be_visitor_sequence}.cpp: visitors - for Root and Sequences respectively. be_visitor_sequence.cpp is a - new file. - - * TAO_IDL/be_include/{be_codegen, be_visitor, be_visitor_root, - be_visitor_sequence, be_factory, be_sequence}.h: Files affected - due to introduction of visitors and visitor factory. Added a - boolean "unbounded ()" method on sequences. - - * TAO/tao/{decode, encode}.cpp: Uses TAO_Base_Sequence instead of - the hack of using CORBA_SEQUENCE. - - * TAO/tao/{sequence, sequence_T}.{h,i,cpp}: Added large amount of - code for bounded and unbounded sequences as well as the special - cases for sequences of object references and strings, along with - their managed types. - - * TAO/tests/Param_Test: Added tests for object references and - sequence of variable structs. There are some problems with the - generated code. - -Sun Jan 11 11:15:35 1998 David L. Levine - - * tao/sequence.i (TAO_Base_Sequence): reordered initializers to match - declaration order. - - * tao/nvlist.h: changed AddRef and Release declarations to return - CORBA::ULong instead of ULONG, to match their definitions. - -Sat Jan 10 14:08:09 1998 - - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_interface.cpp: - We no longer generate names with CORBA_1 or CORBA_3 macros, but - sometimes we cannot use the typedefs in CORBA:: because some - weird MSVC++ features (bugs?). - -Fri Jan 09 21:37:39 1998 - - * TAO_IDL/be/be_typedef.cpp: - Added missing accept() method for visitors. - - * orbsvcs/orbsvcs/Runtime_Scheduler.cpp: - Fixed signed/unsigned warning. - - * orbsvcs/Naming_Service/CosNaming_i.cpp: - Yet another fix for the namespace warnings. - - * orbsvcs/Dump_Schedule/Dump_Schedule.dsp: - * orbsvcs/Event_Service/Event_Service.dsp: - * orbsvcs/Naming_Service/Naming_Service.dsp: - * orbsvcs/Scheduling_Service/Scheduling_Service.dsp: - * orbsvcs/tests/Event_Latency/Event_Latency.dsp: - Executables are not generated into the Debug subdirectory. - -Fri Jan 9 20:49:41 1998 Sergio Flores - - * orbsvcs/Naming_Service/CosNaming_i.cpp: Fixed some code dealing - with Warning (Anachronism) messages. - -Fri Jan 9 19:04:10 1998 Nanbor Wang - - * tao/orbobj.cpp: Moved template instantiation codes around to - eliminate compilation errors. - -Fri Jan 9 17:49:55 1998 Carlos O'Ryan - - * tao/Makefile: - * tao/corba.h: - * tao/corbacom.h: - * tao/sequence.cpp: - * tao/sequence.h: - * tao/sequence.i: - * tao/sequence_T.cpp: - * tao/sequence_T.h: - * tao/sequence_T.i: - Added the new TAO_Base_Sequence class and its parametric - children (TAO_Bounded_Sequence and TAO_Unbounded_Sequence). This - classes will be used in the implementation of all the IDL - sequences, thus providing the interpreter with a base class to - manipulate them. - - * orbsvcs/Scheduling_Service/Scheduler.cpp: - Fixed some instantiation problems. - - * TAO_IDL/be/Makefile: - * TAO_IDL/be/be_argument.cpp: - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_attribute.cpp: - * TAO_IDL/be/be_constant.cpp: - * TAO_IDL/be/be_decl.cpp: - * TAO_IDL/be/be_enum.cpp: - * TAO_IDL/be/be_enum_val.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_expression.cpp: - * TAO_IDL/be/be_field.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_interface_fwd.cpp: - * TAO_IDL/be/be_module.cpp: - * TAO_IDL/be/be_native.cpp: - * TAO_IDL/be/be_operation.cpp: - * TAO_IDL/be/be_predefined_type.cpp: - * TAO_IDL/be/be_root.cpp: - * TAO_IDL/be/be_scope.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_string.cpp: - * TAO_IDL/be/be_structure.cpp: - * TAO_IDL/be/be_type.cpp: - * TAO_IDL/be/be_union.cpp: - * TAO_IDL/be/be_union_branch.cpp: - * TAO_IDL/be/be_union_label.cpp: - * TAO_IDL/be/be_visitor.cpp: - * TAO_IDL/be/be_visitor_root.cpp: - * TAO_IDL/be_include/be.h: - * TAO_IDL/be_include/be_argument.h: - * TAO_IDL/be_include/be_array.h: - * TAO_IDL/be_include/be_attribute.h: - * TAO_IDL/be_include/be_constant.h: - * TAO_IDL/be_include/be_decl.h: - * TAO_IDL/be_include/be_enum.h: - * TAO_IDL/be_include/be_enum_val.h: - * TAO_IDL/be_include/be_exception.h: - * TAO_IDL/be_include/be_expression.h: - * TAO_IDL/be_include/be_field.h: - * TAO_IDL/be_include/be_interface.h: - * TAO_IDL/be_include/be_interface_fwd.h: - * TAO_IDL/be_include/be_module.h: - * TAO_IDL/be_include/be_native.h: - * TAO_IDL/be_include/be_operation.h: - * TAO_IDL/be_include/be_predefined_type.h: - * TAO_IDL/be_include/be_root.h: - * TAO_IDL/be_include/be_scope.h: - * TAO_IDL/be_include/be_sequence.h: - * TAO_IDL/be_include/be_string.h: - * TAO_IDL/be_include/be_structure.h: - * TAO_IDL/be_include/be_type.h: - * TAO_IDL/be_include/be_typedef.h: - * TAO_IDL/be_include/be_union.h: - * TAO_IDL/be_include/be_union_branch.h: - * TAO_IDL/be_include/be_union_label.h: - * TAO_IDL/be_include/be_visitor.h: - * TAO_IDL/be_include/be_visitor_root.h: - Added visitors from the poa branch into the main trunk. - -Fri Jan 9 16:17:37 1998 Chris Cleeland - - * tao/orb_core.*: Changed ORB parameters, OA parameters, and the - endpoint address to be switchable btw. global and tss resources. - I also cleaned up the redundant accessor methods by using macros - to define them. Thanks to Keith Nicewarner - for his bug reports which led to this solution. - - * tao/orbobj.cpp (run,perform_work): Added code to set the - Reactor's owner to the current thread prior to calling - handle_events(). Thanks to Keith Nicewarner - for his bug reports which led to this - solution. - -Fri Jan 9 16:00:21 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_interface.cpp: Removed a Release statement that - was getting generated in the _narrow method - - * TAO_IDL/be/{be_state_argument, be_state_operation}.cpp: All - typedefed strings are handled as if they are strings. - -Fri Jan 09 12:29:55 1998 - - * tao/default_server.cpp: - Fixed missing initialization for object_lookup_strategy_ - -Fri Jan 9 12:17:02 1998 Carlos O'Ryan - - * orbsvcs/Event_Service/Dispatching_Modules.cpp: - * orbsvcs/Event_Service/Event_Channel.cpp: - * orbsvcs/Event_Service/GPlot_File.cpp: - * orbsvcs/Event_Service/Memory_Pools.cpp: - * orbsvcs/Event_Service/Task_Manager.cpp: - * orbsvcs/Scheduling_Service/Scheduler.cpp: - * orbsvcs/Scheduling_Service/Scheduler_Generic.cpp: - Added missing instantiation for platforms with - ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA (IRIX) - - * orbsvcs/Event_Service/CORBA_Utils_T.h: - Added missing member to ACE_ES_Array_Iterator. - - * orbsvcs/Scheduling_Service/Scheduler.h: - Use ACE_SYNCH_MUTEX instead of ACE_HAS_THREADS and - ACE_Null_Mutex vs ACE_Thread_Mutex. - - * orbsvcs/orbsvcs/Makefile: - The IDL generated files are .PRECIOUS - -Thu Jan 8 21:58:18 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_interface.cpp: be_interface::relative_skel_name () - was producing incorrect results because we were overwriting an - internal string with '\0' - - * TAO/tao/deep_free.cpp: Marshal_Struct::deep_free. Commented out - the call to String::deep_free if a member is a string because that - free should happen automatically as the member is a String_var - type. In addition, String::deep_free was setting the pointer to 0. - - * TAO/tao/marshal.i: In string::deep_free, commente dout the line - that sets the pointer to 0. - - * TAO/tests/Param_Test: Added a string member field to the - var_struct. Also some modifications. Needs more improvement. - -Thu Jan 08 17:48:49 1998 - - * Naming_Service/NS_CosNaming.cpp: - * orbsvcs/Naming_Service/CosNaming_i.cpp: - ACE_NESTED is only needed in the generated code. - - * Scheduling_Service/Scheduling_Service.cpp: - MSVC++ 5.0 seems to have a bug: if the implementation for the - scheduling service is stored into a RtecScheduler::Scheduler_ptr - then the server crashes; this is OK in other platforms and looks - OK since the pointers are in fact compatible. - - * tests/Event_Latency/Event_Latency.cpp: - Removed some warnings by using "CORBA::ULong" instead of "int" - in comparisons against sequence<>::length. - - * Dump_Schedule/Dump_Schedule.dsp: - * orbsvcs/orbsvcs_lib.dsp: - Fixed some names and missing options. - -Thu Jan 08 15:55:21 1998 Nanbor Wang - - * tao/objtable.cpp: - * tao/optable.cpp: - * tao/orbobj.cpp: - * orbsvcs/Naming_Service/CosNaming_i.cpp: Added missing template - instantiation codes. - -Thu Jan 8 12:53:28 1998 Chris Cleeland - - * tao/corbacom.i (wstring_dup): Added this, which simply calls - wstring_copy(). Of course, I can't find any mention of EITHER of - these functions in the 2.0 or 2.1 spec, but what good are wstrings - if you can't make copies? Plus, Irfan really wanted it. - -Thu Jan 8 11:36:38 1998 Aniruddha Gokhale - - * TAO_IDL/be_include/be_interface.h, TAO_IDL/be/be_interface.cpp: - Added a method called "relative_skel_name" to be used for - generating names of inherited interfaces in the keleton class - name. - - * TAO_IDL/be/be_state_argument.cpp: Generation of space was - missing after the "native" type in a parameter list declaration. - - * TAO_IDL/fe/{y.tab.*, lex.yy.cpp}: Due to changes in the idl.ll - and idl.yy files, these had to be regenerated. - -Thu Jan 08 00:14:56 1998 - - * orbsvcs/orbsvcs.dsw: - * orbsvcs/Dump_Schedule/Dump_Schedule.dsp: - * orbsvcs/Dump_Schedule/Dump_Schedule.dsw: - * orbsvcs/Event_Service/Event_Service.dsp: - * orbsvcs/Event_Service/Event_Service.dsw: - * orbsvcs/Naming_Service/Naming_Service.dsp: - * orbsvcs/Naming_Service/Naming_Service.dsw: - * orbsvcs/Scheduling_Service/Scheduling_Service.dsp: - * orbsvcs/Scheduling_Service/Scheduling_Service.dsw: - * orbsvcs/tests/Event_Latency/Event_Latency.dsp: - * orbsvcs/tests/Event_Latency/Event_Latency.dsw: - Added preliminar (untested) versions of the project files for - MSVC++ 5.0. - -Wed Jan 7 22:41:41 1998 Carlos O'Ryan - - * tao/corba.h: - Removed varout.h from the list of included files; it is no used - and would abort compilation on IRIX. - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: - * tao/orbobj.cpp: - Added missing template instantiations. - - * tao/varout.h: - Some fixes, but actually the changes were aborted, Andy informed - me that the file wasn't really used. - -Wed Jan 07 21:52:20 1998 - - * TAO_IDL/tao_idl.dsp: - Added the new native_* functions to the project file. - Also use the new tao_idl.cpp file in the top level directory. - -Wed Jan 7 20:20:56 1998 Sergio Flores - - * orbsvcs/Naming_Service/NS_CosNaming.cpp: - * orbsvcs/Naming_Service/CosNaming_i.cpp: Use the correct - _duplicate function. Also changed the code to use exceptions - already supported by TAO. - -Wed Jan 7 18:00:08 1998 Carlos O'Ryan - - * TAO_IDL/Makefile: - * TAO_IDL/tao_idl.cpp: - * TAO_IDL/driver/Makefile: - * TAO_IDL/driver/drv_main.cpp: - Moved the main() routine to the topmost directory, this is - needed for platforms like SGI that will not link a group of - shared libraries without any object files. It also seems more - reasonable (IMHO). - -Wed Jan 7 13:55:26 1998 Chris Cleeland - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: Changed the assignment of - default port number to fetch the value from the environment - similar to what is done in orb_core.cpp. - - * tao/poa.{h,cpp} (handle_request): Moved functionality to - TAO_Server_Connection_Handler in connect.*. - - * tao/orb_core.cpp: Added the ability to specify the default - server port via an environment variable using the ACE_Env_Value - template. The name of the environment variable is the same as the - preprocessor #define: TAO_DEFAULT_SERVER_PORT. - - * tao/giop.* (TAO_GIOP_LocateRequest): Added a CTOR and init - method similar to TAO_GIOP_Request. - - * tao/connect.{h,cpp} (handle_locate): Added to handle the - LocateRequest CORBA request. Also moved handle_request() method - from the poa to here. - - * tao/Makefile: Added "fakesvcconf" variable check so that if - somebody wants to build with faked svc config entries on a - platform, they can simply do "make fakesvcconf=1". The CHORUS and - VXWORKS sections now override the value of this variable to be 1. - -Wed Jan 7 12:00:14 1998 Aniruddha Gokhale - - * TAO/tao/corbacom.h: Added forward declarations for - CORBA_Object_var and CORBA_Object_out - - * TAO/tao/varout.h: some improvements. However, this file is not - used currently. - - * TAO_IDL/include/ast_native.h: New file that defines the "native" - type defined by the POA spec. - - * TAO_IDL/include/{ast, ast_interface, ast_module, ast_decl, - idl_fwd, idl_global, utl_scope}: - Added the create_native and fe_add_native methods for the newly - added "native" type. Added a enum value for native in - AST_Decl.h. Added an enum value for the current parse state in - idl_global.h. Added forward declarations in idl_fwd.h. Added the - "add_native" method in utl_scope.h - - * TAO_IDL/ast/{ast_generator, ast_interface, ast_module}.cpp: - Added the create_native and fe_add_native methods for the newly - added "native" type. - - * TAO_IDL/ast/ast_native.cpp: New file for native type - - * TAO_IDL/fe/idl.ll: Added a rule to recognize the "native" - keyword. - - * TAO_IDL/fe/idl.yy: Added a grammar rule for the "native" type. - - * TAO_IDL/util/utl_scope.cpp: Added add_native and fe_add_native - methods. - - * TAO_IDL/be_include/be_native.h: New file for the backend for - "native" type. - - * TAO_IDL/be/be_native.cpp: New file for backend implementation of - "native". - - * TAO_IDL/be/be_attribute.cpp: For the "set" method, we were - setting the paramdata structure of the get method. This has been - fixed. - - * TAO_IDL/be/be_generator.cpp: Added create_native method. - - * TAO_IDL/be/be_interface.cpp: - For a special case of a deeply nested inheritance graph and one - specific way of inheritance in which a node that was already - visited, but is not present in the queue, gets inserted at the - tail. This sitation arises when a node multiply inherits from two - or more interfaces in which the first parent is higher up in the - tree than the second parent. In addition, if the second parent - turns out to be a child of the first. Thanks to Carlos O'Ryan for - reporting the error. - - In addition, we use the nested_type_name for the inherited classes - in the class definition. - - * TAO_IDL/be/be_type.cpp: We generate relative paths instead of - the ACE_NESTED_CLASS macro. However, I am going to make this an - IDL option at a later point. - - * TAO_IDL: Did "make depend" on all the Makefiles. - - * TAO/tests/Param_Test: Added tests for testing object - references. This is still incomplete. - -Tue Jan 6 19:48:45 1998 Sumedh Mungee - - * TAO/tests/Cubit/TAO/MT_Cubit/README: Updated README to explain - the latest generalization of the MT_Cubit tests. - -Tue Jan 6 17:25:57 1998 Nanbor Wang - - * MT_Cubit.dsw,client.dsp,server.dsp: Update workspace and - project files to reflect the change in directory structure. - -Mon Jan 05 23:54:13 1998 - - * Added project files for a static orbsvcs library. - -Mon Jan 5 16:37:14 1998 Sumedh Mungee - - * Makefile: Merged client and server rules - - * server.dsp, svc.conf, svr.cpp, client.dsp, cubit.idl, - cubit_i.cpp, cubit_i.h, Task_Client.cpp, Task_Client.h, - Util_Thread.cpp, Util_Thread.h, client.cpp, Makefile: - Merged client/server code into one directory. - -Mon Jan 5 11:50:00 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_attribute.cpp: Code generated for setting the - attribute value (in the server skeleton) had some undefined symbol - errors as well as the create_list parameter was wrong. - - * TAO/tao/object.{h.i}: Added code for Object_var and Object_out - -Mon Jan 05 09:53:51 1998 David L. Levine - - * tao/corbacom.{h,cpp},encode.cpp: replaced defined (VXWORKS) && - defined (ghs) with defined (ACE_HAS_WCHAR_TYPEDEFS_CHAR). - - * tao/Makefile: add -DTAO_PLATFORM_SVC_CONF_FILE_NOTSUP to - CPPFLAGS on VxWorks. - - * tests/Cubit/TAO/MT_Cubit/Util_Thread.{h,cpp} (Util_Thread ctor): - rearranged initializers to match declaration order. - -Sun Jan 04 17:19:34 1998 Douglas C. Schmidt - - * TAO version 0.0.53, released Sun Jan 04 17:19:34 1998. - -Sun Jan 4 13:49:21 1998 Aniruddha Gokhale - - * TAO/tao/nvlist.cpp: NamedValue::Release was calling delete, but - this was not correct since NamedValues are allocated using - calloc. So now we exclusively call the destructor and free the - memory using "free". - - * TAO/tests/Param_Test/{client.cpp, tests.cpp}: Since we do not - pass the OUT_LIST_MEMORY flag to create_request, we cannot own the - return, inout, and out parameters and hence cannot free them. - -Sun Jan 4 13:41:41 1998 Sumedh Mungee - - * tests/Cubit/TAO/IDL_Cubit/svr.cpp: Fixed prev_priority to - previous_priority - -Sun Jan 04 07:47:52 1998 Douglas C. Schmidt - - * TAO version 0.0.52, released Sun Jan 04 07:47:52 1998. - -Sun Jan 04 07:37:31 1998 David L. Levine - - * tao/orb_core.i: Changed ! ACE_LACKS_TEMPLATE_SPECIALIZATION - to ACE_HAS_TEMPLATE_SPECIALIZATION, to be consistent with - ACE config files. - -Sun Jan 4 06:06:28 1998 Aniruddha Gokhale - - * TAO/tao/typecode.*: Some modifications in the destruction - strategy to eliminate fatal errors such as FNH (freeing non-heap - memory) or FMW (freed memory write). Most of these errors were - occuring because we were trying to delete our private typecode - stuff that was not allocated from heap. For example, in case of - sequences of strings the private member tc_content_type used to - point to a statically preallocated "tc_string" typecode. - - Also, preliminary support for checking for typecode equality and - the "member_name" method added. - - Looking at the current private_* methods, it looks like a lot of - stuff can be abstracted into a few methods. So the next attempt - will be to eliminate as many of the private_* methods (that do - repititive work) and replace them with a couple of helper - methods. In addition, we may not need all those tc_*_known_ - boolean variables. Only one may suffice. All this will be done in - the next pass. - - * TAO/tao/{except.h, except.cpp, giop.cpp, object.cpp}: Removed - the TAO_CONST CORBA::String insanity and replaced by const - char*. This is also in accordance with the mapping as well as - eliminates strange compiler warnings about assigning const char* - to char*. - - * TAO_IDL/be/be_sequence.cpp: We now generate #if defined (..) - macros for sequences and their managed types to avoid multiple - declaration/definition errors. - -Sat Jan 3 14:58:21 1998 Sumedh Mungee - - * Task_Client.h, Util_Thread.cpp, Util_Thread.h, client.cpp, - Task_Client.cpp, Makefile: - The Util_Thread class basically computes CPU usage. Integrated - this class with the MT_Cubit test, so that the Util_Thread - performs computation in the background while the test is - running. Also extended the test to use `n' clients talking to `n' - servants. - - -Sat Jan 03 09:04:28 1998 David L. Levine - - * tao/invoke.cpp (ACE_Synchronous_Cancellation_Required): - disabled on VxWorks to avoid runtime warnings with - ACE_NOTSUP_VERBOSE, because thr_setcanceltype isn't - supported there. - - * tao/corba.h: g++/VxWorks doesn't like backslashes at the - end of comment lines, so replaced a commenting of a #define - with #if 0. - -Fri Jan 02 18:42:31 1998 Douglas C. Schmidt - - * TAO version 0.0.51, released Fri Jan 02 18:42:31 1998. - -Fri Jan 2 16:29:20 1998 Nanbor Wang - - * orbsvcs/Event_Service/GPlot_File.cpp: - * orbsvcs/Event_Service/Event_Channel.cpp: - * orbsvcs/Scheduling_Service/Scheduler.cpp: - * tao/connect.cpp: Added missing explicit template - instantiations. - -Fri Jan 02 10:24:21 1998 Nanbor Wang - - * tests/Param_Test/driver.cpp (main): Added a trailing return in - main() to prevent MSVC from complaining. - - * tests/Param_Test/helper.cpp (gen_fixed_struct): Changed to use - ACE_OS::rand () * 1.0 instead of drand48 (). - - * tao/connect.cpp: - * orbsvcs/Scheduling_Service/Scheduler.cpp: - * orbsvcs/Event_service/Gplot_File.cpp: - * orbsvcs/Event_Service/Event_Channel.cpp: Added explicit template - instantiation for ACE_Map_Iterator_Base. - -Fri Jan 2 10:39:02 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_type.cpp: Completely reimplemented the way - ACE_NESTED_CLASS macro gets generated. - - * TAO_IDL/be/be_state_sequence.cpp: Fixed an error where the - reference operator "&" was getting generated at the wrong place. - -Wed Dec 31 23:29:59 1997 Nanbor Wang - - * tao/nvlist.cpp (add_value_consume): Added a space between * and - /* to avoid warning messages on NT. - -Thu Jan 01 14:22:34 1998 Douglas C. Schmidt - - * TAO version 0.0.50, released Thu Jan 01 14:22:34 1998. - -Thu Jan 1 13:31:55 1998 Aniruddha Gokhale - - * TAO_IDL/be/{be_sequence, be_state_sequence}.cpp: An unwanted - reference operator "&" was getting generated for sequences whose - element types were not special managed types. This was because the - case for handling the managed types somehow got mixed with the - normal ccase. Thanks to Nanbor Wang (nw1@cs.wustl.edu) for - pointing this out. - -Wed Dec 31 18:29:57 1997 Aniruddha Gokhale - - * TAO_IDL/be/{be_sequence, be_state_sequence}.cpp: Changed the way - we use managed types. Instead of allocating an array, we now - instantiate the - managed type on the fly i.e., when the operator [] is invoked. The - reasons for doing this are: (1) no need for dynamic memory - allocation for maintaining the array of managers (2) It was - causing all kinds of problems while decoding because the sizeof - such sequence classes was bigger than those without managed - types. However, due to this scheme, we can no longer define the [] - operator to return a reference because that would mean that a - reference to a local variable/temporary will be returned. Hence - changes were necessary in files. - - TypeCode generation was also erroneous. This is fixed. We were - generating wrong encapsulation length. - - * TAO_IDL/be/be_string.cpp: Indentation in typecode generation. - - * TAO_IDL/be/be_type.cpp: nested_type_name - improved to - eliminate one more strange error message getting generated by the - MSVC++ compiler. Still needs testing. - - * TAO/tao/{invoke, decode}.cpp: Reversed the changes which were - made to account for sequencese with managed types. We no longer - need these changes because sequences with managed types no longer - keep an extra data member. Thus the size of all sequences (top - level) is the same (so is the layout). - - * TAO/tao/nvlist.cpp: commneted out unused variables, parameters. - - * TAO/tests/Param_Test: Included tests for string sequences, - variable sized structs as well as nested structs. - -Tue Dec 30 13:46:44 1997 Nanbor Wang - - * tests/Cubit/TAO/IDL_Cubit/clnt.h (portnum_): Changed its data - type from CORBA::ULong to CORBA::UShort to kill warning - messages. - - * tao/orbobj.cpp (create_list): Changed data type of the loop - counter to CORBA::Long. This caused a warning message on VC. - - * doc/releasenotes/index.html: Added documentation for adding IDL - files into Visual C++'s projects. - - * tests/Param_Test/Param_Test.dsw: - * tests/Param_Test/client.dsp: - * tests/Param_Test/server.dsp: New workspace and projects were added. - -Tue Dec 30 10:15:11 1997 Irfan Pyarali - - * orbsvcs/Event_Service/Fast_Reactor.h (ACE_ES_Fast_Reactor): - Added the other version of handle_events to stop the compiler - from being cranky. - -Tue Dec 30 10:06:45 1997 Aniruddha Gokhale - - * TAO_IDL/be/{be_state_argument, be_state_operation, - be_state_attribute}.cpp - Unnecessary call on "init_mgr" for - sequences that do not have any managed types was getting - generated. This is fixed. In addition, MSVC++ compiler was - producing an error saying "ambiguous assignment" when an "_out" - variable was assigned to a pointer type. Solaris platform (CC and - g++) did not give any such errors since they were (most probably) - using the operator *() on the _out class, but MSVC++ did not. - - * TAO/tests/Cubit/IDL_Cubit/clnt.cpp: The same "ambiguous - assignment" error described above has been fixed here too. - - * TAO/tests/Param_Test: Added a method called "reset_parameters" - so that we do not change the "in" parameter for every - iteration. Previuosly we were settingthe in parameter differently - for every new iteration. However, for performance comparison - purposes, this was not correct (e.g., in the case of string - sequences or unbounded strings where everytime we were sending a - different lenght string and hence the performance numbers were - different for each run and couldn't be compared.) - -Mon Dec 29 21:51:38 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_sequence.cpp: get_name was returning a local - variable. In addition, added generationof a method called - "init_mgr" that must be used to initialize the sequence's - underlying mgr_ vector. - - There was some problem with bounded/unbounded sequence code - generation (an error in an if stmt). - - * TAO_IDL/be/{be_state_argument, be_state_attribute, - be_state_operation}.cpp - added code to generate the call to - init_mgr for sequences after the do_call is made. - - * TAO_IDL/be_include/be_sequence.h : gen_name returns char* rather - than const char* because we now allocate a new string and return - it. - - * TAO/tao/Makefile: applied make depend to incorporate nvlist.i - - * TAO/tao/corbacom.h: Added a "boolean release" field to - CORBA_SEQUNECE so that its layout is similar to the generated code - for sequences. - - * TAO/tao/decode.cpp: In sequence decode, we also set the release - flag to 1. In addition, for sequences of strings and objrefs, we - zero out additional 4 bytes that are used to store a pointer to - the manager array. - - * TAO/tao/deep_free.cpp: some indentation. Also passed the correct - parameter to string/wstring::decode - - * TAO/tao/invoke.cpp: In do_dynamic_call, for sequences of strings - (inclusing typedefed sequences of strings that themselves can be - typedefed), we must allocate size+4 bytes for demarshaling the - sequences. The extra 4 bytes are for the manager array pointer. - - * TAO/tao/nvlist.cpp: I the method item, the loop should have run - from o to max_ rather than upto len_. - - * TAO/tao/orbobj.cpp: Used placement new of NamedValue in the - create_list method. - - * TAO/tests/Param_Test: Added new tests for Fixed_Struct and - string sequence. Added a README file. - - * TAO/doc/releasenotes/index.html: updated with latest success stories. - -Thu Dec 25 20:36:58 1997 Douglas C. Schmidt - - * TAO version 0.0.49, released Thu Dec 25 20:36:58 1997. - -Thu Dec 25 18:43:03 1997 Aniruddha Gokhale - - * TAO_IDL/be/{be_state_attribute, be_state_argument}.cpp: Handled - teh remaining cases (except Arrays) that use the newly added - methiods to class NVList. The Param_Test test suite is being - developed to track any memory leaks. - - * TAO/tests/Cubit/TAO/IDL_Cubit/clnt.cpp: Used sequence_var in - the cube_sequence function to avoid memory leaks. However, there - still are leaks. - -Wed Dec 24 18:44:47 1997 Douglas C. Schmidt - - * TAO version 0.0.48, released Wed Dec 24 18:44:47 1997. - -Wed Dec 24 18:44:02 1997 Douglas C. Schmidt - - * tao: Added the nvlist.i file to the tao/ directory. - -Wed Dec 24 18:11:08 1997 Aniruddha Gokhale - - * TAO_IDL/be/{be_operation, be_state_argument}.cpp: Added - "argument_count" method to be_operation which is helpful in - creating an NVList of the appropriate size. Previously we were - creating an empty list and adding parameters one by one. This was - causing a lot of reallocations which were wasteful. - - At this time, we have code base that can successfully send/receive - primitive data types as well as strings. - - * TAO_IDL/be_include/be_operation.h : Added a new method called - "argument_count" to give us the total number of parameters we - have. - - * TAO/tao/{any.cpp, connect.cpp, corbacom.i, decode.cpp, - iioporb.cpp, marshal.i, objtable.cpp, optable.cpp, request.cpp}: - In all these files, after a call to CORBA::string_free, we made - the pointer point to 0. Otherwise, purify was giving us "Free - Memory read" errors. Also, this was (by fluke) causing some - applications to run successfully. - - * TAO/tao/{nvlist.h, nvlist.cpp, nvlist.i, corba.h}: Added - unimplemented methods to NamedValue and NVList. Created a nvlist.i - file and updated corba.h - - * TAO/tao/corbacom.cpp: In an assignment operator for Sting_out, - we were not checking if the assignment was from ourselves. Also a - array was incorrectly being deleted as "delete ..." rather than - "delete [] ...". - - * TAO/tao/invoke.cpp: Inside do_call, we were not deleting memory - for the "in" part of the inout parameters. Right now we have fixed - this problem only for strings. Others will be added as new tests - are built. Do_dynamic_call also needs such a fix. NOT DONE in this release. - - * TAO/tao/orb_core.h, orb_core.cpp: ORB_init takes "const char*" - orb name as the argument instead of just char*. - - * TAO/tests/Param_Test: Successful in testing - "test_unbounded_string". removed a few memory leaks where we were - not deleting the client objects. - -Tue Dec 23 19:34:40 1997 Douglas C. Schmidt - - * TAO version 0.0.47, released Tue Dec 23 19:34:40 1997. - -Tue Dec 23 13:36:50 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_state_sequence.cpp: ACE_NESTED_CLASS must be - generated for seq elements that are scoped. We were generating - this macor only when seq elements were typedefs. However, seq - elements can also be structs or any other types that have an - enclosing scope. Thanks to Chris Gill for - the bug report. - - * TAO_IDL/be/be_state_operation.cpp: Similar problem as above for - return types of operations. Bug reported by Chris Gill. - - * TAO_IDL/be/be_exception.cpp: Whenever a _narrow fails, we were - trying to do a ACE_dynamic_cast to a 0. Instead, we now return a - 0. Again thanks to Chris Gill for - the bug report. - - * TAO_IDL/be/be_state_argument.cpp: We were ot generating a char - *& for inout string parameters. Instead only a char * was getting - generated. Fixed. - -Tue Dec 23 11:45:03 1997 Carlos O'Ryan - - * docs/releasenotes/index.html: - There is no need to set config=1 when compiling - TAO_ROOT/orbsvcs. - -Mon Dec 22 22:02:49 1997 Douglas C. Schmidt - - * TAO version 0.0.46, released Mon Dec 22 22:02:49 1997. - -Mon Dec 22 19:08:55 1997 Carlos O'Ryan - - * tao/corba.h: - * tao/except.cpp: - * tao/except.h: - The TAO_TRY macros use the _narrow methods for exceptions; - making the TAO_CATCH() macro fully functional. - - * orbsvcs/Dump_Schedule/Dump_Schedule.cpp: - * orbsvcs/Event_Service/Dispatching_Modules.cpp: - * orbsvcs/Event_Service/Dispatching_Modules.i: - * orbsvcs/Event_Service/Event_Channel.cpp: - * orbsvcs/Event_Service/Event_Channel.i: - * orbsvcs/Event_Service/Event_Service.cpp: - * orbsvcs/Event_Service/RT_Task.cpp: - * orbsvcs/Event_Service/ReactorTask.cpp: - * orbsvcs/Scheduling_Service/Config_Scheduler.cpp: - * orbsvcs/Scheduling_Service/Config_Scheduler.h: - * orbsvcs/Scheduling_Service/Scheduling_Service.cpp: - * orbsvcs/orbsvcs/Runtime_Scheduler.cpp: - * orbsvcs/orbsvcs/Runtime_Scheduler.h: - * orbsvcs/orbsvcs/Scheduler_Factory.cpp: - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - Changed the ACE_TRY (and friends) macros to TAO_TRY. - - * orbsvcs/orbsvcs/RtecEventChannelAdmin.idl: - Cleaned up some exceptions definitions. - - * orbsvcs/tests/Event_Latency/Makefile: - Since the schedule is not distributed (yet) by default we - compile the config run, hopefully this will cause less - confusion. - -Sun Dec 21 23:41:05 1997 Douglas C. Schmidt - - * TAO version 0.0.45, released Sun Dec 21 23:41:05 1997. - -Sun Dec 21 20:29:33 1997 - - * tests/Cubit/TAO/MT_Cubit/client/client.dsp: * - tests/Cubit/TAO/MT_Cubit/server/server.dsp: Corrected erroneous - library pathes in Release version of project files. - -Sun Dec 21 18:30:41 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_codegen.cpp: The macro used in the #if !defined - (..) clause in the header files was incorrectly generated when IDL - file names had characters other than letters in it. Fixed. - - * TAO/tests/Param_Test: A new test suite to test all the parameter - passing modes - return, in, inout, and out for a large number of - IDL data types. The purpose of this test suite is to verify the - correctness of the stubs/skeletons generated by TAO IDL compiler, - eliminate any existing errors in the marshaling engine, track down - any memory leaks, and finally to measure the performance and fine - tune the code if required. In the first version of the test, we - only test "shorts". We will be adding other tests as soon as we - can. - -Sat Dec 20 00:34:45 1997 Sergio Flores - - * tests/Cubit/CORBAplus/MT_Cubit/client/client.cpp (main): - * tests/Cubit/CORBAplus/MT_Cubit/client/Makefile: - * tests/Cubit/CORBAplus/MT_Cubit/client/Task_Client.cpp: - * tests/Cubit/CORBAplus/MT_Cubit/client/Task_Client.h: - * tests/Cubit/CORBAplus/MT_Cubit/client/client.cpp: - * tests/Cubit/CORBAplus/MT_Cubit/client/cubit.idl: - * tests/Cubit/CORBAplus/MT_Cubit/server/Makefile: - * tests/Cubit/CORBAplus/MT_Cubit/server/cubit.idl: - * tests/Cubit/CORBAplus/MT_Cubit/server/cubit_i.cpp: - * tests/Cubit/CORBAplus/MT_Cubit/server/cubit_i.h: - * tests/Cubit/CORBAplus/MT_Cubit/server/svr.cpp: - Ported the MT_Cubit example to CORBAplus. - -Fri Dec 19 11:33:51 1997 Sergio Flores - - - * tests/Thruput/CORBAplus/Makefile: - * tests/Thruput/CORBAplus/README: - * tests/Thruput/CORBAplus/client.cpp: - * tests/Thruput/CORBAplus/extract: - * tests/Thruput/CORBAplus/run: - * tests/Thruput/CORBAplus/run_client: - * tests/Thruput/CORBAplus/run_server: - * tests/Thruput/CORBAplus/run_test: - * tests/Thruput/CORBAplus/run_tests: - * tests/Thruput/CORBAplus/server.cpp: - * tests/Thruput/CORBAplus/ttcp.idl: - * tests/Thruput/CORBAplus/ttcp_decl.h: - * tests/Thruput/CORBAplus/ttcp_i.cpp: - * tests/Thruput/CORBAplus/ttcp_i.h: - * tests/Thruput/CORBAplus/utils.cpp: Ported the Thruput example to - CORBAplus for C++ by Expersoft. Try running the "run_tests" - script for the client side. - - * tests/Thruput/Orbix/Client.cpp: - * tests/Thruput/Orbix/Makefile: - * tests/Thruput/Orbix/README: - * tests/Thruput/Orbix/Srv_Main.cpp: - * tests/Thruput/Orbix/extract: - * tests/Thruput/Orbix/loop64: - * tests/Thruput/Orbix/orbixsol2s4.mk: - * tests/Thruput/Orbix/run: - * tests/Thruput/Orbix/run_client: - * tests/Thruput/Orbix/run_server: - * tests/Thruput/Orbix/run_test: - * tests/Thruput/Orbix/run_tests: - * tests/Thruput/Orbix/ttcp.idl: - * tests/Thruput/Orbix/ttcp_decl.h: - * tests/Thruput/Orbix/ttcp_i.cpp: - * tests/Thruput/Orbix/ttcp_i.h: - * tests/Thruput/Orbix/utils.cpp: Included the Thruput example for - IONAs Orbix ORB in the tests directory. - - * tests/Thruput/TAO/Makefile: - * tests/Thruput/TAO/README: - * tests/Thruput/TAO/client.cpp: - * tests/Thruput/TAO/run: - * tests/Thruput/TAO/run_client: - * tests/Thruput/TAO/run_server: - * tests/Thruput/TAO/run_test: - * tests/Thruput/TAO/server.cpp: - * tests/Thruput/TAO/svc.conf: - * tests/Thruput/TAO/ttcp.idl: - * tests/Thruput/TAO/ttcp_decl.h: - * tests/Thruput/TAO/ttcp_i.cpp: - * tests/Thruput/TAO/ttcp_i.h: - * tests/Thruput/TAO/utils.cpp: Moved the TAO version of the - Thruput example to a "TAO" directory in the Thruput directory. - - * tests/Thruput_test: Renamed this directory to Thruput. - -Fri Dec 19 00:28:24 1997 - - * tests/Cubit/TAO/MT_Cubit/server/svr.cpp (main): Removed some - random codes. - - * tao/tao_internals.cpp (close_services): Disabled closing down - the ACE_Service_Config when reference count drops to 0. - -Thu Dec 18 20:36:28 1997 Douglas C. Schmidt - - * TAO version 0.0.44, released Thu Dec 18 20:36:28 1997. - -Thu Dec 18 19:35:28 1997 Sergio Flores - - * orbsvcs/tests/Logger/clnt.cpp (init): - * orbsvcs/Naming_Service/CosNaming_i.cpp (bind_new_context): Fixed - a bug in the Naming Service and the Logger test program - implementation. Thanks to Marina Spivak for - debugging this. - -Thu Dec 18 16:18:01 1997 - - * TAO_IDL/be/be_sequence.cpp (gen_name): Removed a local variable - . It is no longer used. - - * TAO_IDL/be/be_union.cpp (gen_client_stubs): Removed local - variables and . They are not longer used. - -Thu Dec 18 15:50:01 1997 Carlos O'Ryan - - * orbsvcs/orbsvcs/Makefile: - realclean was not removing all the IDL compiler generated - files. - -Thu Dec 18 15:06:23 1997 Aniruddha Gokhale - Thanks to Keith Nicewarner , Tom Richards - , and Carlos O'Ryan - for reporting bugs which led to some of the changes below. - - * TAO_IDL/be/be_array.cpp: Preliminary support for arrays. Not - complete. - - * TAO_IDL/be/{be_operation, be_attribute}.cpp: The ParamData - structure *must* hold the "size" of the outermost level of the - return values and out parameters because the ORB has to allocate - memory for it and hence needs to know the size. We had a 0 in it - which crashed any return types that were variable in size. - - * TAO_IDL/be/be_codegen.cpp: Added a new state for - unions. Corresponding change to the *.h file. - - * TAO_IDL/be/be_decl.cpp: Added a method called "scope" that - returns the corresponding scope defined by this node (if one - exists). Added method to the *.h file also. - - * TAO_IDL/be/be_scope.cpp: Added a method called "decl" that - returns the be_decl method corresponding to this scope. The header - file was also updated. - - * TAO_IDL/be/{be_exception, be_state_exception}.cpp: I was making - the most stupid mistake of generating constructors per member - rather than one constructor that takes all the members as a - parameter. - - * TAO_IDL/be/{be_sequence, be_state_sequence}.cpp: Changed the - naming scheme for anonymous sequences to avoid code bloat. - - * TAO_IDL/be/be_state.cpp: Added template instantiation for - additional state to deal with code generation of members of - unions. - - * TAO_IDL/be/be_state_structure.cpp: Made some changes so that - spurious code for array members doesn't get generated. - - * TAO_IDL/be/{be_union, be_state_union}.cpp: Added a new state - because we were not generating code for union members that were - sequences or structs. - - * TAO_IDL/be/be_type.cpp: Modified netsed_type_name to use the new - methods on class be_decl/be_scope. - - * TAO_IDL/be/be_union_branch.cpp: gen_client_stubs uses the same - strategy as the other gen_client methods. - - * TAO/tao/deep_free.cpp: In deep_free of structures, instead of - passing the address of a string member to be freed, we were simply - passing the string that led to a segmentation fault. A careful - code review is necessary. - - * TAO/tao/orb_core.cpp: Made "use_ior" as default as ooposed to - using the URL based scheme for IORs. This was necessary to have - interoperability with other ORBs. - - * TAO/tao/poa.cpp: The server request was being released - immediately after returning from the dispatch method. This should - be done after all return/inout/out parameters are marshaled. - -Tue Dec 17 12:53:01 1997 Brian Mendel - - * tao/encode.cpp: Additional changes for wchar's - -Tue Dec 17 10:37:45 1997 Brian Mendel - - * tao/TAO.dsp: Removed obsolete files from the VC++ project. - Changed name of folder from Include Files to Inline Files. - Inserted new header files for classview. - - * TAO_IDL/tao_idl.dsp: Added missing be_state_exception.cpp to the - the project to eliminate link error. - - * tao/corbacom.cpp: Inserted wslen and wscpy back to handle wchar - problems with VxWOrks and GHS. - - * tao/encode.cpp: Inserted wslen and wscpy back to handle wchar - problems with VxWOrks and GHS. - -Tue Dec 16 18:29:42 1997 Carlos O'Ryan - - * orbsvcs/README: - * docs/orbsvcs.html: - Started up the documentation for TAO services, at this point - only the directory hierarchy is explained. - -Tue Dec 16 08:49:11 1997 Aniruddha Gokhale - - * TAO_IDL/be_include/be_codegen.h: Added three more states for - return types to be generated for operator [] of sequences of - strings and object references. - - * TAO_IDL/be_include/be_sequence.h: Added enum constants to - indicate what kind of managed type is handled by the sequence. For - sequences other than that of strings and objrefs, this enum const - is MNG_NONE. Added a new method that returns the managed type. - - * TAO_IDL/be/{be_sequence, be_state_sequence.cpp}: Added code to - generate sequences of strings and objrefs. This requires - generating special "managed" objects. In addition, for - be_state_sequence.cpp, we were not handling the case where base - types of sequences were not having any scope which resulted in - segmentation faults. - - * TAO_IDL/be/{be_state_argument, be_state_operation}.cpp: Some - small bugs fixed. These included lack of a whitespace in the - generated code as well as spurious extra level of indirection - getting generated. - - * TAO_IDL/be/be_type.cpp: "nested_type_name" now checks if the - scope with which are comparing is NUL or not before proceeding - further. Such a situation may arise for sequences whose base types - are anonymous (e.g., strings) and have no enclosing scope. - - * TAO/tao/managed_types.{h,cpp,i}: Removed. No more needed as teh - code is generated by the IDL compiler. Accordingly modified - corb.h and did a "make depend" on the Makefile. - - * TAO/docs/releasenotes/index.html: Updated to reflect new changes - as well as TO-DO stuff such as adding support for TIEs. - -Mon Dec 15 22:31:50 1997 Douglas C. Schmidt - - * TAO version 0.0.43, released Mon Dec 15 22:31:50 1997. - -Mon Dec 15 19:13:51 1997 Carlos O'Ryan - - * tao/Timeprobe.cpp: - Removed Solaris specific code, somehow it survived from some - debugging session. Thanks to Arturo Montes - for pointing out this bug. - -Mon Dec 15 16:52:58 1997 Nanbor Wang - - * TAO-INSTALL.html: Added some explanations for setting CPP_PATH - on NT. - -Mon Dec 15 16:49:58 1997 David L. Levine - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp (cube_sequence): declare - local variables "l" and "j" as u_int instead of int, to avoid - signed/unsigned comparison. - -Thu Dec 11 16:44:26 1997 Carlos O'Ryan - - * orbsvcs/Scheduling_Service/Config_Scheduler.cpp: - Fixed typo missed on the previous release. - -Thu Dec 11 22:18:52 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_interface.cpp: Moved the code generation for the - _var and _out classes before the actual class declaration, but - after the forward declaration. This was necessary if any elements - in the scope of the interface are defined to be of the same type - as that interface. In such a situation those elements are defined - to be of the _var type. Hence the declaration for _var and _out - must precede the class declaration. - -Thu Dec 11 22:00:52 1997 Sergio Flores - - * orbsvcs/Naming_Service/Naming_Service.cpp (main): Fixed a bug - related to returning an empty string as the ior in the reply from - the multicast request. - -Thu Dec 11 14:06:50 1997 Aniruddha Gokhale - - * TAO_IDL/be/{be_exception,be_state_exception}.cpp: Support for - exceptions added. Added a new file called - "be_state_exception.cpp". - - * TAO_IDL/be_include/be_state.h: Added a new singleton for - be_state_exception. - - * TAO_IDL/be/be_state.cpp: Template instantiations for - be_state_exception. - - * TAO/docs/releasenotes/index.html: Updated to include exception - support. - - * TAO/tao/except.{h,cpp}: Moved the TypeCode member from the - private section to the protected section so that derived classes - can set it. Also, changed the variable from _type to type_ to - stick to the ACE design standards. - -Thu Dec 11 00:01:41 1997 Chris Cleeland - - * TAO version 0.0.42, released Thu Dec 11 00:01:41 1997. - -Wed Dec 10 23:04:04 1997 Carlos O'Ryan - - * orbsvcs/Scheduling_Service/Config_Scheduler.cpp: - Still struggling with g++, it seems to use the wrong cast for - IDL generated T_out classes. - - * orbsvcs/tests/Logger/Makefile: - * orbsvcs/tests/Logger/clnt.cpp: - * orbsvcs/tests/Logger/clnt.h: - * orbsvcs/tests/Logger/svr.cpp: - These files were missed in the orbsvcs hierarchy - reorganization. - -Wed Dec 10 22:38:08 1997 Aniruddha Gokhale - - * TAO/tests/Cubit/TAO/DII_Cubit: Fixed the hand-crafted code to - make use of the many changes that were made to the dispatching - scheme as well as changes made to the signature of the skeletons - for operations of interfaces. - -Wed Dec 10 21:41:48 1997 Sergio Flores - - * docs/releasenotes/index.html: Updated the release notes on the - Naming Service. - -Wed Dec 10 20:13:57 1997 Carlos O'Ryan - - * Makefile: - Added orbsvcs to the hierarchy. - - * The orbsvcs directory was completely reorganized, in preparation - for its official release. The new hierarchy is: - - orbsvcs/orbsvcs: Contains a library with: - + The client stubs for the services. - + Common utility classes to access the services. - + The server skeletons, but not their implementation. - - orbsvcs/Naming_Service: the COSS Naming Service. - - orbsvcs/Scheduling_Service: TAO Real-Time Scheduling Service. - - orbsvcs/Event_Service: TAO Real-Time Event Service. - - orbsvcs/tests: test programs and examples. - - * docs/releasenotes/index.html: - Updated documentation on the Event Service and its friends. - -Wed Dec 10 19:57:07 1997 Chris Cleeland - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp (Cubit_i::cube_sequence): - Changed to explicitly use the vector_out::ptr() method to get a - ptr. It seems that g++ wanted to interpret this expression - (output == 0) differently from Sun's C++, and this made both - interpret it in the desired way. - -Wed Dec 10 14:23:24 1997 Carlos O'Ryan - - * TAO_IDL/be/be_state_structure.cpp: - Fixed a bug when handling typedefs. - It was generating code for imported types, we protected the - generation with a !imported(), thank to Andy Gokhale - for helping me on this. - - * tao/connect.cpp: - Set the TCP_NODELAY option by default, otherwise oneway calls - are considerably slower. It should have no effect for twoway - calls. Anyway an option should be added to control this - behavior. - -Wed Dec 10 13:15:11 1997 Aniruddha Gokhale - - * TAO_IDL/be_include/{be_array, be_decl, be_field, be_module, - be_operation, be_predefined_type, be_structure, be_typedef}.h: - Added a protected function called "compute_size_type" which is - invoked if the size type of a data structure is not known in - advance. This happens for structs, unions, arrays, and typedefs - whose size type depends on their base types. - - * TAO_IDL/be/{be_array, be_decl, be_field, be_module, - be_operation, be_predefined_type, be_structure, be_typedef}.cpp: - Implementation of the "compute_size_type". - - * TAO_IDL/be/be_decl.cpp: Changed code that sets "size_type" so - that we first see if we are unknown in which case we set our size - type. However, once we are VARIABLE, no body can reset us to - fixed. Similarly, the overloaded size_type method that return the - size type first checks if our size is still unknown in which case - it calls for "compute_size_type". This is very essential for data - types defined in an imported (included) *.idl file. Thanks to Tom - Richards (tomr@mcmenterprise.com) for reporting the bug with - included file which resulted in this change. - - * TAO_IDL/be/be_state_attribute.cpp: Included a case for - IN_PARAM_TYPE_CH for strings (had previously forgotten to do so). - - * TAO_IDL/be/{be_state_structure, be_structure, be_field}.cpp: - Revamped so that we use the same switch based technique in - be_state_structure.cpp to generate code. For fields that are - sequences or structures or unions, we also generate their code. - - * TAO_IDL/be/be_state_argument.cpp: Thanks to Tom Richards and - Carlos O'Ryan for noticing a bug when we use out sequences. There - used to be a seg fault in deep_free.cpp because a NUL pointer was - being owned by an Any and getting freed. In the server skeleton, - for out params we now generate code after the upcall is made so - that for out parameter value is inserted in the NVList that is - marshaled by the server. - - * TAO_IDL/be/be_interface.cpp: In the generated call to _is_a, we - were calling CORBA::Object::_is_a if a remote call is - necessary. However, MSVC++ cannot handle a call of the form - CORBA::Object::_is_a. So we have to generate code that uses - ACE_CORBA_3 so as to be portable. Thanks to Nanbor Wang - (nw1@cs.wustl.edu). - - * TAO/test/Cubit/TAO/IDL_Cubit/clnt.cpp: Changed the type of the - variable that was passed as the out parameter to cube_sequence. - -Wed Dec 10 01:02:36 1997 Chris Cleeland - - * tao/iiopobj.cpp (set): Added a special case to IIOP Profile::set - so that if the address is INADDR_ANY, it uses the host name, but - otherwise uses the IP address. This eliminates the cryptic - appearance of the address "0.0.0.0" in a server's IOR. - -Tue Dec 9 21:48:52 1997 Carlos O'Ryan - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: - The sequence test is not running right now, I'm commenting it - out until we can make it work properly. - -Tue Dec 9 18:02:43 1997 Chris Cleeland - - * tao/orb_core.cpp: The moral of this changelog entry is to be - VERY careful when cutting and pasting code...the - resource_factory() accessor should not be setting the - client_factory_ member at all! - -Tue Dec 9 11:55:50 1997 Chris Cleeland - - * tao/compat/objbase.h: Added NOERROR as #define if we're not on - WIN32 so that IDL-generated code would continue to work. - - * tao/tao_internals.cpp: Changed faked Resource Factory resource - source specifier to "tss" rather than "global". - - * tao/orb_core.*: Added resource_factory() accessor to - TAO_ORB_Core. This will create a default instance if it can't - locate one in the Service Repository, which will allow - applications to not encounter a hard failure when a svc.conf file - is missing. A warning message is emitted stating that a default - is being used. Applications should not rely on the default - settings, as it is very likely that the applicat might require - alternate settings for proper desired operation. - - * tao/default_server.*: Added TAO_Reactive_Strategy template - class to use in place of the ACE_Reactive_Strategy. It's only - difference from ACE_Reactive_Strategy is that instead of using the - reactor provided in the open method, it always uses that found - through the TAO_ORB_Core_instance(). This fix was motivated by a - general problem which was only observable on VxWorks with a - special pseudo-network transport. - - * tao/connect.cpp: Added code to fail gracefully if socket buffer - size changes are not supported. - -Mon Dec 8 13:11:46 1997 Carlos O'Ryan - - * docs/releasenotes/index.html: - Added more information on how the Event Channel and friends are - going. - - * orbsvcs/bin/Naming_Service/svc.conf: - Removed some foreign ^M from the file. - - * tao/Makefile: - * tao/connect.cpp: - * tao/giop.cpp: - * tao/orbobj.cpp: - * tao/Timeprobe.i: - * tao/Timeprobe.h: - * tao/Timeprobe.cpp: - Added a instrumentation class to measure time interval, also - instrumented some code, as part of the ongoing effort to - optimize the EC, unfortunately the problems are not in TAO ;-) - The code is only instrumented if compiled using probe=1, no - overhead is introduced in normal compiles. - - * tests/Cubit/TAO/IDL_Cubit/cubit.idl: - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: - * tests/Cubit/TAO/IDL_Cubit/clnt.h: - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: - * tests/Cubit/TAO/IDL_Cubit/cubit_i.h: - Addded code to test sequences (as input and output parameters) - they don't work (yet). - - * orbsvcs/lib/Makefile: - * orbsvcs/lib/Timeprobe.h: - * orbsvcs/lib/Timeprobe.i: - * orbsvcs/lib/Timeprobe.cpp: - The file was moved toTAO_ROOT/tao. - - * orbsvcs/lib/Scheduler_Factory.cpp: - Fixed default dump file, it was using stdout! - -Sat Dec 06 15:42:25 1997 - - * tests/Cubit/TAO/IDL_Cubit/{server,client}.dsp: Updated link time - library names. - - * tao/any.cpp: - * tao/any.h: - * tao/corba.h: - * tao/corbacom.h: - * tao/decode.cpp: - * tao/encode.cpp: - * tao/except.cpp: - * tao/except.h: - * tao/giop.cpp: - * tao/iiopobj.cpp: - * tao/iiopobj.h: - * tao/iioporb.cpp: - * tao/iioporb.h: - * tao/nvlist.cpp: - * tao/nvlist.h: - * tao/object.cpp: - * tao/object.h: - * tao/object.i: - * tao/orbobj.cpp: - * tao/orbobj.h: - * tao/orbobj.i: - * tao/poa.cpp: - * tao/poa.h: - * tao/principa.cpp: - * tao/principa.h: - * tao/request.cpp: - * tao/request.h: - * tao/stub.h: - * tao/svrrqst.cpp: - * tao/svrrqst.h: - * tao/typecode.cpp: - * tao/typecode.h: - * tao/compat/initguid.h: - * tao/compat/objbase.h: Removed dependencies on Microsoft's DCOM - files. Below is a list of names that got changed. - - HRESULT -> TAO_HRESULT - IID -> TAO_IID - IUnknown -> TAO_IUnknown - IID_IUnknown -> IID_TAO_IUnknown - SCODE -> TAO_SCODE - NOERROR -> TAO_NOERROR - E_NOINTERFACE -> TAO_E_NOINTERFACE - VARTYPE -> TAO_VARTYPE - VARENUM -> TAO_VARENUM - CY -> TAO_CY - VARIANT -> TAO_VARIANT - DATE -> TAO_DATE - -Fri Dec 5 11:42:25 1997 Chris Cleeland - - * tao/iiopobj.cpp (set): Changed the IIOP::Profile::set() methods - which take an ACE_INET_Addr to retrieve the host IP address rather - than host name for storage in the profile. This is motivated by - the following situation: machine has 3 interfaces (not including - loopback), and it is desired that clients and servers communicate - across only one interface. - - When our IDL_Cubit example's factory created new Cubit instances, - the set() method would set the host name for that IIOP::Profile to - whatever ACE_INET_Addr::get_host_name() returned. In this case, - the IP addr for interface 3 (which is not the primary interface) - would return a *LIST* of names in which the first name was that of - the primary interface. Thus, the IP address used by the client - would be wrong. - - * tao/object.h: Minor corrections to header comments. - - * tao/{orb_core,orbobj}.{h,cpp}: Moved server_factory and - client_factory ptr storage from CORBA_ORB to TAO_ORB_Core. It - really didn't belong there in the first place. - - * tao/poa.cpp: CTOR now fetches server factory ptr from the - TAO_ORB_Core rather than from the ORB. - -Thu Dec 4 18:20:55 1997 Chris Gill - - * TAO_IDL/tao_idl.dsp: Changed hard coded path for cl.exe to CPP_PATH - environment variable - -Thu Dec 4 11:23:55 1997 Aniruddha Gokhale - - * TAO_IDL/include/{idl,ast,utl_idlist, utl_identifier}.h: removed - #include "ace/stdcpp.h" since this file was removed from - ACE. Instead we now include "ace/streams.h" in idl.h - - Also made make depend on all the Makefiles. - -Wed Dec 3 16:08:34 1997 Carlos O'Ryan - - * orbsvcs/lib/Event_Utilities.cpp: - * orbsvcs/lib/Event_Utilities.i: - * orbsvcs/lib/RtecEventComm.idl: - Added some more time-stamps to the events to track and measure - the delays as they move on the EC. - - * orbsvcs/lib/RtecEventChannelAdminC.cpp: - * orbsvcs/lib/RtecEventChannelAdminC.h: - * orbsvcs/lib/RtecEventChannelAdminC.i: - * orbsvcs/lib/RtecEventChannelAdminS.cpp: - * orbsvcs/lib/RtecEventChannelAdminS.h: - * orbsvcs/lib/RtecEventChannelAdminS.i: - * orbsvcs/lib/RtecEventCommC.cpp: - * orbsvcs/lib/RtecEventCommC.h: - * orbsvcs/lib/RtecEventCommC.i: - * orbsvcs/lib/RtecEventCommS.cpp: - * orbsvcs/lib/RtecEventCommS.h: - * orbsvcs/lib/RtecEventCommS.i: - * orbsvcs/lib/RtecSchedulerC.cpp: - * orbsvcs/lib/RtecSchedulerC.h: - * orbsvcs/lib/RtecSchedulerC.i: - * orbsvcs/lib/RtecSchedulerS.cpp: - * orbsvcs/lib/RtecSchedulerS.h: - * orbsvcs/lib/RtecSchedulerS.i: - Thanks to Andy Gokhale efforst the IDL compiler is able to emit - proper code for the EC&friends, hence I'm removing the - hand-crafted files. - -Wed Dec 3 11:12:48 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_interface.cpp: Had forgotten to emit code that - adds one more cast to the base POA_* class in the generated *S.i - file. - -Wed Dec 03 09:40:36 1997 David L. Levine - - * tao/Makefile: added TAO_PLATFORM_SVC_CONF_FILE_NOTSUP to - CPPFLAGS on CHORUS. Thanks to Wei Chiang for this change. - -Tue Dec 2 15:47:09 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_interface.h: Added some helper methods to generate - additional code in the form of larger operation tables, and - skeletons. This situation arises when we have single/multiple - inheritance of interfaces. - - * TAO_IDL/be_include/be.h: Included ace/Containers.h for the - ACE_Unbounded_Queue that uses the breadth-first strategy used in - be_interface.cpp - - * TAO_IDL/be/{be_interface,be_operation,be_attribute}.cpp: Added code - to generate a new "virtual void dispatch" method on the skeleton - classes. The dispatch method enables us to access the most derived - type when invoking the skeleton for a method. The skeletons - instead of taking a CORBA::Object_ptr, now take void*. The - skeletons themselves cast this void* to the appropriate POA_* - type. - - In addition to the above, for the case of inheritance of - interfaces, it is not appropriate to pass a pointer to the most - derived class as a void* to the skeleton of a base class and cast - that to the POA_* of the base class. So we generate inlined code - for skeletons of methods in the most derived class even if those - methods were defined in the base classes. These inlined skeletons - simply cast the object pointer to the right type and invoke the - corresponding skeleton of the base class method. - - be_interface.cpp defines a template method to traverse the entire - inheritance graph. This traversal is done using a breadth-first - traversal. This traverse method takes a pointer to one of the - static helper methods defined on class be_interface. Each helper - achieves a different purpose such as generation of extended - operation tables, providing comparisons of repositoryIDs of base - classes in the _is_a methods of derived classes. - - The client-side class now defines a virtual CORBA::Boolean _is_a - method. This uses local knowledge of repository ids thereby - preventing the expensive remote call in most cases. All changes - made in be_interface.cpp - - * TAO/tao/corbacom.h: Changed the signature of TAO_Skeleton so that - it uses void*obj and a void *context. - - * TAO/tao/object.h: Added a virtual dispatch method as explained - above. - - * TAO/tao/orb.h: Redefinition of TAO_Skeleton removed. - - * TAO/tao/poa.cpp: Changed the demultiplexing code to reflect the - change made with the dispatch method. The poa on finding the right - object corresponding to the key, now invokes the dispatch method - on that object which by dynamic binding invokes the dispatch - method of the POA_* class. - -Tue Dec 02 15:29:41 1997 - - * tao/{connect,orb_core}.h: Moved Win32 specific template - specialization declaration from connect.h to orb_core.h because - the definition had moved to orb_core.i. - - * tao/object.cpp: Removed conditional directives around - DEFINE_GUID for IID_IUnknown. This is now defined for Win32 - also. - - * tao/TAO.dsp: Removed macro definition __IIOP_BUILD. It was not - used anywhere. - -Tue Dec 2 10:25:47 1997 Carlos O'Ryan - - * tao/corba.h: - Fixed some problems with the ACE_RETHROW macros. - - * orbsvcs/lib/Makefile: - * orbsvcs/lib/Timeprobe.h: - * orbsvcs/lib/Timeprobe.i: - * orbsvcs/lib/Timeprobe.cpp: - Added a high resolution timer facility, to measure the delays in - the Event Channel and in its client. - - * orbsvcs/lib/RtecEventComm.idl: - Changed the time_ field of Event to a double. It should be an - structure or a long long, but double is big enough to store - - * orbsvcs/lib/RtecEventChannelAdminC.cpp: - * orbsvcs/lib/RtecEventChannelAdminS.cpp: - * orbsvcs/lib/RtecEventCommC.cpp: - * orbsvcs/lib/RtecEventCommC.h: - * orbsvcs/lib/RtecEventCommS.cpp: - * orbsvcs/lib/RtecSchedulerC.cpp: - * orbsvcs/lib/RtecSchedulerC.h: - * orbsvcs/lib/RtecSchedulerC.i: - * orbsvcs/lib/RtecSchedulerS.cpp: - * orbsvcs/lib/RtecSchedulerS.h: - Regenerated the files using the newest IDL compiler; still some - hand crafting due to inherited classes. - -Tue Dec 2 03:12:50 1997 Sergio Flores - - * tao/orbobj.cpp (resolve_name_service): Check for errors when - resolving using the "NameService" environment variable. - - * orbsvcs/bin/Naming_Service/CosNaming_i.cpp (NS_NamingContext): - * orbsvcs/bin/Naming_Service/CosNaming_i.h (NS_NamingContext): - - Added constructor that takes a key to initialize the object, - instead of using the default name generation. - - Enabled some exceptions that are already supported. - - * orbsvcs/bin/Naming_Service/svr.cpp (main): Create first naming - context with key "NamingContext". And minor changes. - - * tests/Cubit/CORBAplus/IDL_Cubit/Makefile: - * tests/Cubit/CORBAplus/IDL_Cubit/README: - * tests/Cubit/CORBAplus/IDL_Cubit/clnt.cpp: - * tests/Cubit/CORBAplus/IDL_Cubit/clnt.h: - * tests/Cubit/CORBAplus/IDL_Cubit/cubit.idl: - * tests/Cubit/CORBAplus/IDL_Cubit/cubit_i.cpp: - * tests/Cubit/CORBAplus/IDL_Cubit/cubit_i.h: - * tests/Cubit/CORBAplus/IDL_Cubit/svr.cpp: Ported the IDL cubit - example to CORBAplus. Currently, the calls using DII are not - ported, so only the "cube average" and the "cube_union_stub" stats - are printed. - -Mon Dec 1 16:51:08 1997 Chris Cleeland - - * tao/except.{h,cpp}: Changed semantics of CORBA::Exception so - that the mere creation of them does not take a reference. - Instead, the user of the exception is expected to call AddRef(). - CORBA::Environment has been modified (and even documented!) to - reflect that as well. - -Sun Nov 30 17:08:56 1997 Carlos O'Ryan - - * orbsvcs/lib/RtecSchedulerC.cpp: - Added missed parameter in do_call() for - RtecScheduler::Scheduler::set(). - -Sat Nov 29 13:34:58 1997 Carlos O'Ryan - - * tao/stub.i (STUB_Object): - No need to release type_id, since it is a String_var now. Thanks - to Wei Chiang for pointing this out. - - * giop.cpp: - If things go wrong TAO_GIOP::send_request will close the - handler and set it to zero, but only a temporary was - affected, I decided to set the original value to zero also; - based on the return value. - -Wed Nov 26 23:24:57 1997 - - * TAO version 0.0.41, released Wed Nov 26 23:24:57 1997. - -Wed Nov 26 16:40:29 1997 Chris Cleeland - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: Changed release calls to use - the CORBA standard version rather than the non-standard TAO - Release() method. Also moved the client's parse_args() AFTER the - ORB_init() so that -ORB parameters were parsed correctly. - - * tao/params.*: Added storage for send and receive socket buffer - size to be used for all newly created sockets. These sizes are - initialized to ACE_DEFAULT_MAX_SOCKET_BUFSIZ, and can be changed - by the user by using -ORBsndsock and -ORBrcvsock. - - * tao/orbobj.h: Added documentation. - - * tao/orb_core.i: Changed system-specific conditional compilation - to use the more general ACE_LACKS_TEMPLATE_SPECIALIZATION. - - * tao/orb_core.cpp: Added code to make -ORBsndsock and -ORBrcvsock - options actually work. Added -ORBpreconnect option to implement - pre-cached connections. - - * tao/giop.cpp: Removed the old static inline version of - start_message(). Also changed to use send_n() to guarantee - correct blocking nature on Win32 with the WFMO Reactor. - - * tao/connect.cpp: Changed set_option() calls to use the socket - buffer sizes stored in the TAO_ORB_Parameters instance. Also - added a correct environment-clearing call before initializing a - request. - - * tao/client_factory.h: Removed extraneous code. - - * tao/{connect,any,giop,iiopobj,marshal,nvlist,objtable,optable, - orb_core,poa,principa,stub,svrrqst,typecode}.h: - Addressed or assigned some '@@' comments. - - * docs/releasenotes/orbcore.html: Added information regarding new - options, known bugs, etc. - - * docs/Options.html: Added documentation for new -ORBpreconnect - option. - - * TAO_IDL/be/Makefile: Added an explicit PIC=-fPIC for when g++ is - being used as the compiler. This fixes the linker complaints. - -Sat Dec 20 14:57:30 1997 - - * All MSVC 5.0 project files: Removed unnecessary library - inclusions. Most of them are not necessary. - -Tue Nov 25 20:49:24 1997 Carlos O'Ryan - - * tao/orbobj.h: - * tao/orbobj.cpp: - * tao/orb_core.cpp: - * tao/params.h: - * tao/params.cpp: - Removed the parameters to specify the event service and schedule - service IOR, the naming service is working now so it can be - used. And the support in "resolve_initial_references". - - * tao/corbacom.i: - * tao/decode.cpp: - Reverted the previous change, but this time added proper - comments: the spec says that a Naming_var taking a is - *not* supposed to copy it. Hence the ObjRef decoder cannot - release the string it just read. - -Mon Nov 24 20:40:47 1997 Carlos O'Ryan - - * tao/corbacom.i: - Fixed string allocation problem for String_var(char*): if it - does not copy the string we run into problems with the - demarshalling code. - - * orbsvcs/lib/Event_Utilities.cpp: - * orbsvcs/lib/Event_Utilities.h: - * orbsvcs/lib/Event_Utilities.i: - * orbsvcs/lib/RtecEventChannelAdmin.idl: - * orbsvcs/lib/RtecEventChannelAdminC.cpp: - * orbsvcs/lib/RtecEventChannelAdminC.h: - Removed the unused forward_event parameter in the ConsumerQoS. - - * orbsvcs/lib/RtecSchedulerC.h: - * orbsvcs/lib/RtecSchedulerC.i: - Hand crafted the T_out constructors to take a "const T_out&" - instead of just "T_out&". - -Sat Nov 22 18:21:10 1997 Aniruddha Gokhale - - * TAO_IDL/be_include/be_codegen.h, be/be_codegen.cpp: Added a - number of states to handle attributes - - * TAO_IDL/be/{be_attribute,be_state_attribute}.cpp: Code added to - handle attributes. This code is a mix of code that is used to - handle operations as well as arguments because for attributes we - have 2 methods, one to set the value and one which returns the - value. For a readonly attribute, there is only the get method. - - A special note: Due to the large switch statement, I had to use - -fPIC for g++. We are working on abstracting all the commin - functionality once we have the basic IDL compiler working. - - * TAO_IDL/be/be_interface.cpp: Operation table now also includes - methods to set and get the attributes if they are present. In - addition, the variable name for the operation tables is now the - full flattened name to avoid conflicts. - - * TAO_IDL/be/be_sequence.cpp: In the length method, the index of - lookp variable "i" is changed from "int" to CORBA::ULong as g++ - was issuing a warning. - - * TAO_IDL/be/be_string.cpp, be_state_argument,cpp: Proper handling - of in, inout, and out strings that are either anonymous or are - typedefed. - -Fri Nov 21 13:22:39 1997 Douglas C. Schmidt - - * TAO version 0.0.40, released Fri Nov 21 13:22:39 1997. - -Thu Nov 20 10:31:24 1997 Chris Cleeland - - * tao/orbconf.h (SIZEOF_LONG_DOUBLE): Made sure this is defined - properly for Chorus. Thanks to Wei Chiang - for submitting these! - - * tao/orb_core.cpp (init): Added some changes for Chorus. Thanks - to Wei Chiang for submitting these! - - * tao/object.cpp (_is_a): Explicitly specify which conversion - operator to use when comparing type_id to 0. - -Thu Nov 20 00:10:52 1997 Sergio Flores - - * orbsvcs/tests/Logger/clnt.h : - * orbsvcs/tests/Logger/clnt.cpp (Logger_Client): Fixed a bug - dealing with using "_bind" when the naming service is not - available. - -Thu Nov 20 00:06:03 1997 Douglas C. Schmidt - - * TAO version 0.0.39, released Thu Nov 20 00:06:03 1997. - -Thu Nov 20 00:01:06 1997 Douglas C. Schmidt - - * tao/Makefile: Reordered the files so they are built in - alphabetic order (within each grouping of targets). This makes it - easier to see how the compilation process is doing ;-). - -Wed Nov 19 22:59:18 1997 Sergio Flores - - * tao/orbobj.cpp (resolve_name_service): Minor change to output - debug statement. - -Wed Nov 19 23:01:46 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_state_operation.cpp: Fixed the problem with - strings as return values. Thanks to Mark L Boriack - for reporting this. - -Wed Nov 19 20:48:01 1997 James C Hu - - * tests/Thruput_test/server.cpp: Commented out some unreachable - code at the bottom of main. - -Wed Nov 19 19:04:53 1997 Sergio Flores - - * tao/decode.cpp (decode): Added a cast so that compiler would - know which operator to call. - - * orbsvcs/bin/Naming_Service/svr.cpp (handle_input): Change port - number received to host byte order. Minor changes. - - * tao/orbobj.cpp (resolve_name_service): Send port number in - network byte order. - -Wed Nov 19 17:45:52 1997 Chris Cleeland - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: Put in proper release of - resources after _narrow operation. - - * tao/stub.h: Used CORBA::String_var as the underlying type for - 'type_id' in STUB_Object. In the long run this may be a bad idea - for performance considerations, but we may be able to improve that - by improving the implementation of String_var. - - * tao/orbobj.cpp: Removed unreachable ACE_NOTSUP_RETURN. - - * tao/decode.cpp: Made allocation and free semantics of - 'type_hint' consistent with its type of CORBA::String. - -Wed Nov 19 17:33:42 1997 Sumedh Mungee - - * Task_Client.cpp: Fixed error_count.. Thanks to James Hu. - -Wed Nov 19 17:20:45 1997 James C Hu - - * TAO_IDL/be/be_operation.cpp: Removed an unreachable return - statement. There was already a return above it. - - * TAO_IDL/ast/ast_expression.cpp: Added casts to comparisons of - char variables to 0, since chars are unsigned by default in - SGI. - - * tests/Cubit/TAO/MT_Cubit/client/Task_Client.cpp: Removed a - couple of unreachable return statements. There are still - unreachable statements remaining. Need help with them. - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: - * tests/Cubit/TAO/DII_Cubit/clnt.cpp: - Meaningless type qualifier (const ...) removed. - - Some functions were returning `retval' before it was set. I had - these functions return a passed in paramenter instead. - -Wed Nov 19 13:50:36 1997 Douglas C. Schmidt - - * TAO version 0.0.38, released Wed Nov 19 13:50:36 1997. - -Wed Nov 19 13:11:53 1997 David L. Levine - - * orbsvcs/lib/Scheduler_Factory.cpp (dump_schedule): changed loop - index from int to u_int to avoid signed/unsigned comparison. - (use_runtime): return 0. - - * orbsvcs/lib/Event_Utilities.cpp (debug): changed loop - index from int to u_int to avoid signed/unsigned comparison. - -Wed Nov 19 12:22:50 1997 Chris Cleeland - - * tao/orbobj.cpp (resolve_name_service): Reverted some of the - minor changes below, specifically the use of ACE_ERROR_RETURN - rather than ACE_ERROR/return. ACE_ERROR_RETURN cannot be used - as-is because the 2nd parameter is used as an 'int' to specify the - operational status, and the return value of this function is NOT - an int. Also had to add a missing semi-colon which caused none of - the code to compile. - -Wed Nov 19 12:07:42 1997 Douglas C. Schmidt - - * TAO version 0.0.37, released Wed Nov 19 12:07:42 1997. - -Wed Nov 19 10:37:19 1997 Carlos O'Ryan - - * orbsvcs/lib/Scheduler_Factory.cpp: - The type declared for the rt_info array was wrong. - -Wed Nov 19 09:18:30 1997 Douglas C. Schmidt - - * TAO version 0.0.36, released Wed Nov 19 09:18:30 1997. - -Wed Nov 19 09:15:15 1997 Douglas C. Schmidt - - * tao/orbobj.cpp (resolve_name_service): Made a bunch of minor - Changes for resolving the Naming service. - -Wed Nov 19 08:44:12 1997 Brian Mendel - - * tests/Cubit/TAO/DII_Cubit/default.bld: - * tests/Cubit/TAO/DII_Cubit/clnt.bld: - * tests/Cubit/TAO/DII_Cubit/svr.bld: - * tests/Cubit/TAO/IDL_Cubit/default.bld: - * tests/Cubit/TAO/IDL_Cubit/clnt.bld: - * tests/Cubit/TAO/IDL_Cubit/svr.bld: - * tests/Cubit/TAO/MT_Cubit/default.bld: - * tests/Cubit/TAO/MT_Cubit/clnt.bld: - * tests/Cubit/TAO/MT_Cubit/svr.bld: Added build files in the new - test structure for VxWorks using the GHS compiler. - - * tests/Cubit/Build: Removed the obsolete build directory for vxWorks. - -Wed Nov 19 07:47:13 1997 Douglas C. Schmidt - - * TAO version 0.0.35, released Wed Nov 19 07:47:13 1997. - -Wed Nov 19 05:53:42 1997 Sergio Flores - - * tests/Cubit/TAO/DII_Cubit/clnt.cpp: - * tests/Cubit/TAO/DII_Cubit/clnt.h: - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: - * tests/Cubit/TAO/IDL_Cubit/clnt.h: Changed code to add loop - around all cube calls, and make output more consistent. - - * orbsvcs/tests/Logger/Makefile: - * orbsvcs/tests/Logger/ior_multicast.cpp: - * orbsvcs/tests/Logger/ior_multicast.h: Removed unneeded - ior_multicast.* source files from the logger example. It now uses - the resolve_initial_references() to use the naming service for its - advertisement. - - * orbsvcs/lib/Makefile (realclean): Updated with realclean & clean - rules to delete CosNamingS.* and CosNamingC.* - - * docs/releasenotes/index.html: Updated status of the naming - service to working implementation. - - * orbsvcs/lib/CosNamingS.cpp: - * orbsvcs/lib/CosNamingS.i: - * orbsvcs/lib/CosNamingS.h: - * orbsvcs/lib/CosNamingC.cpp: - * orbsvcs/lib/CosNamingC.i: - * orbsvcs/lib/CosNamingC.h: Removed these files from the - repository, since the IDL compiler generates these correctly. - - * orbsvcs/bin/Naming_Service/CosNaming_i.cpp (list): Remove - warning for unused variable. - - * orbsvcs/bin/Naming_Service/svr.h: Constructor of event handler - for multicast doesn't need reply port anymore. - - * orbsvcs/bin/Naming_Service/svr.cpp (handle_input): Now receives - the port number in the multicast request. Suggested by Doug - Schmidt. - - * tao/orbobj.cpp (resolve_name_service): changed return value - variable to be signed. Added code to send the port number in the - multicast resolution mechanism as a CORBA::Short. - - * orbsvcs/bin/Naming_Service/NS_CosNaming.cpp (NS_ExtId): - Reordered initializers in the constructor. - - * tests/Cubit/TAO/IDL_Cubit/clnt.h: - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp (run): Added a loop around - all cube calls and added calls/sec stats for them. - - * tao/corba.h: Changed order of inclusion of marshal.i, due to - warnings of the declaration of the inline function - make_marshal_object(). - - * tao/orbobj.i: reorder the declaration of inline - CORBA_OBJ::Add_Ref(), to remove a warning. - - * tests/Cubit/TAO/MT_Cubit/server/svr.cpp (main): - removed return statement that was causing a warning. - -Wed Nov 19 04:22:48 1997 Douglas C. Schmidt - - * TAO version 0.0.34, released Wed Nov 19 04:22:48 1997. - -Tue Nov 18 01:29:00 1997 - - * tao/TAO.dsp: Added Arg_Shifter.cpp into project file. - -Tue Nov 18 18:53:57 1997 Sergio Flores - - * TAO_IDL/be/be_state_typedef.cpp (gen_code): - * TAO_IDL/be/be_state_structure.cpp (gen_code): - * TAO_IDL/be/be_state_sequence.cpp (gen_code): - * TAO_IDL/be/be_state_operation.cpp (gen_code): - * TAO_IDL/be/be_state_array.cpp (gen_code): Comment out - unreachable break statements. - - * TAO_IDL/ast/ast_array.cpp (n_dims): - * TAO_IDL/include/ast_array.h (AST_Array::n_dims): - * TAO_IDL/ast/ast_attribute.cpp (readonly): - * TAO_IDL/include/ast_attribute.h (AST_Attribute::readonly): - * TAO_IDL/ast/ast_argument.cpp (direction): - * TAO_IDL/include/ast_argument.h (AST_Argument::direction): - * tao/nvlist.h (CORBA_NamedValue::name): - * TAO_IDL/include/utl_scope.h (UTL_Scope::scope_node_type): - * TAO_IDL/ast/ast_predefined_type.cpp (pt): - * TAO_IDL/include/ast_predefined_type.h (AST_PredefinedType::pt): - removed const from declarations that it didn't have a meaning for. - Also from return statements. These changes were suggested by - James Hu and the SGI compiler. - -Tue Nov 18 18:34:16 1997 Sumedh Mungee - - * tests/Cubit/COOL/client.cpp: ORB_init is now called in - Task_Client.cpp instead of the main program, to insure that its - called in the right thread. - - * tests/Cubit/COOL/Task_Client.{h,cpp}: Used the COOL_Activity to - create threads instead of ACE_Task. - - * tests/Cubit/COOL/server.cpp: Used the createActivity stuff to - create threads. The server now creates two servants, one for high - and the other for low priority clients. - -Tue Nov 18 17:44:02 1997 Chris Cleeland - - * tao/corbacom.h: Added special case for CORBA::WChar to be a - short on VxWorks/GreenHills. - - * TAO_IDL/be/be_state.cpp: Added template instantiations for SGI. - - * tao/deep_free.cpp (deep_free): Removed unused 'alignment' - variable. - - * tao/deep_copy.cpp (deep_copy): Removed unused 'alignment' - variable. - - * tao/encode.cpp (encode): Removed unused 'continue_encoding' - variable. - - * tao/orbobj.cpp (POA_init): Removed options which were no longer - supported/necessary, as well as their corresponding variables. - -Tue Nov 18 17:33:20 1997 Carlos O'Ryan - - * orbsvcs/lib/RtecEventChannelAdmin.idl: - * orbsvcs/lib/RtecEventComm.idl: - Changed several operations to "oneway" to avoid dead-locks in - the Event Channel tests. - - * orbsvcs/lib/Runtime_Scheduler.h: - * orbsvcs/lib/Runtime_Scheduler.cpp: - This class is a servant, event though it is only used - collocated, so it must inherit from the POA class. - - * orbsvcs/lib/Scheduler_Factory.cpp: - Care must be exercised to create the Runtime_Scheduler instance - only once the ORB is up and running. - - * orbsvcs/lib/CosNamingC.cpp: - * orbsvcs/lib/CosNamingC.h: - * orbsvcs/lib/CosNamingS.cpp: - * orbsvcs/lib/CosNamingS.h: - * orbsvcs/lib/RtecEventChannelAdminC.cpp: - * orbsvcs/lib/RtecEventChannelAdminC.h: - * orbsvcs/lib/RtecEventChannelAdminS.cpp: - * orbsvcs/lib/RtecEventChannelAdminS.h: - * orbsvcs/lib/RtecEventCommC.cpp: - * orbsvcs/lib/RtecEventCommC.h: - * orbsvcs/lib/RtecEventCommS.cpp: - * orbsvcs/lib/RtecEventCommS.h: - * orbsvcs/lib/RtecSchedulerC.cpp: - * orbsvcs/lib/RtecSchedulerC.h: - * orbsvcs/lib/RtecSchedulerS.cpp: - * orbsvcs/lib/RtecSchedulerS.h: - Regenerated all the stubs and skeletons using the latest IDL - compiler, but still some hand crafting is required, namely for - operations in base classes. - -Tue Nov 18 14:27:02 1997 Chris Cleeland - - * tao/cdr.cpp (CDR): Changed TAO_PURIFY to ACE_PURIFY. - - * tests/Cubit/TAO/MT_Cubit/serdatever/svr.cpp: Added code to put use a - kinder, gentler high priority value on VxWorks. This makes it - easier for the machine to remain running. :-\ - - * tao/corbacom.h: Added CVS id keyword. - - * tao/{corba.h,tao_internals.h,tao_internals.cpp}: Backed out - tao_internals.h, which is not intended to be publicly visible. - corba.h should contain only headers/inlines for things which - should be externally visible. - -Tue Nov 18 04:00:46 1997 Carlos O'Ryan - - * tao/poa.cpp: - An operation lookup on the dispatching code will cause an error - message and the CORBA::BAD_OPERATION exception to be raised. - - * tao/orb_core.cpp: - Somehow the options for setting the Event Service and the - Scheduling Service IOR were lost. Eventually they must be - removed, but we are still testing the Naming Service. - -Tue Nov 18 02:17:24 1997 Douglas C. Schmidt - - * TAO version 0.0.33, released Tue Nov 18 02:17:24 1997. - -Tue Nov 18 02:03:22 1997 Sergio Flores - - * orbsvcs/tests/Logger/svr.cpp: - * orbsvcs/tests/Logger/clnt.cpp: This test example now uses the - naming service in the server and client. Also changed the code to - have a default use in case the naming service is not available. - - * tao/orbobj.cpp (resolve_name_service): Fixed a bug, dealing with - closing the endpoint of communication for the response of the - multicast mechanism. - -Tue Nov 18 01:37:42 1997 Aniruddha Gokhale - - * TAO_IDL/be/{be_operation.cpp,be_state_operation}.cpp: We now - properly handle the declaration and assigning to the return value. - - * TAO_IDL/be/be_state_argument.cpp: Removed a spurious () - appearing after a function call. - - * TAO_IDL/be/{be_structure,be_union}.cpp: Carlos had removed the - if !imported check in the member counting function, but it had - crept in again, maybe due to me. So this is fixed again. - - * test/Cubit/TAO/IDL/svr.cpp: Removed the hack which was - separating command line arguments starting with O. We leave this - task to the newly added Arg_Shifter. - - * tao.orbobj.cpp: In ORB_init, the call to - TAO_ORb_Core_instance->init needed a char ** argv and we were - passing a char * const* argv. So we cast this. g++ was giving this - error. - - * TAO_IDL/be_include/be_codegen.h, TAO_IDL/be/be_codegen.cpp: - Added 5 new states for code generation. All of these for - operations and arguments. - - * TAO_IDL/be/be_argument.cpp: Made all methods uniform so that the - state will be set by the corresponding be_operation method. Thus - the be_operation method will vary the state but still invoke the - same be_argument method. - - * TAO_IDL/be/be_enum.cpp, be_structure.cpp, be_union.cpp, be_field.cpp, - be_sequence.cpp: Some reformatting, removed unused variables. - - * TAO_IDL/be/be_scope.cpp: Changes include adding ACE_ERROR_RETURN - with file name, line number capability. In addition, we were not - testing for return status of the various gen methods called. - - * Most important changes in these files: - - TAO_IDL/be/{be_operation,be_state_argument,be_state_operation}.cpp: - - Large scale changes that include a uniform way to invoke methods - of the be_argument class from the be_operation methods. Added the - 5 new states. Added proper handling of _out parameters in stubs - and skeletons. - -Mon Nov 17 20:05:40 1997 Chris Cleeland - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: Cleaned up lots of places - where the allocated stuff wasn't being deallocated. - - * tao/request.cpp: Insured that the CTOR adds a reference for the - dynamically-allocated NamedValue. - - * tao/orb_core.cpp: Freed the faked service configurator argv. - - * tao/iiopobj.h: Removed anachronistic comments. - - * tao/iiopobj.{i,cpp}: Changed allocation of IIOP::Profile.host to use - new/delete rather than strdup/free b/c the decoder, which is - generic, must use new to allocate the space. Thus, the strdup had - to go. Purify now happier. - - * tao/cdr.cpp: Added call to memset bracketed by #if - defined(TAO_PURIFY) in order to appease the purify gods. - -Mon Nov 17 20:05:16 1997 Seth Benjamin Widoff - - * arg_shifter.cpp: - fixed a bug where in new, gcc used the address of an integer - reference rather than its value. weird. - - * tao/orb_core.cpp: - Modified the init routine to "consume" command line arguments it - recognizes by placing them in the rear of argv, and adjusting - argc. It uses the Arg_Shifter class to accomplish this. - - * tao/arg_shifter.h: - * tao/arg_shifter.cpp: - The Arg_Shifter class is an iterator that, as it iterates over - argv, places consumed arguments at the end of the vector, - ignored ones in their original order at the beginning of the - vector, and adjusts argc to hide the consumed arguments. - -Mon Nov 17 18:40:49 1997 Carlos O'Ryan - - * tao/orb_core.i: - Some data was not initialized when used from a thread different - than the one doing ORB_init (even though we choose a global ORB - in the svc.conf file). Chris found a fix for this. The affected - methods are reactor(), thr_mgr(), connector() and acceptor(). - - * TAO_IDL/be/be_sequence.cpp: - length was not working if the value was <= than the maximum. - - * orbsvcs/lib/CosNamingC.cpp: - * orbsvcs/lib/RtecEventChannelAdminC.cpp: - * orbsvcs/lib/RtecEventCommC.cpp: - * orbsvcs/lib/RtecSchedulerC.cpp: - * orbsvcs/lib/RtecSchedulerS.cpp: - Fixed the length() problem by hand, even though the new IDL - compiler should do it right. - -Mon Nov 17 11:52:54 1997 Douglas C. Schmidt - - * TAO_IDL/be/be_codegen.cpp (server_header), - TAO_IDL/util/utl_global.cpp (be_change_idl_file_extension): - Updated several methods to ensure const correctness for the - updated ACE_OS::str*() methods. Thanks to David Levine for - reporting this. - -Mon Nov 17 02:40:14 1997 Douglas C. Schmidt - - * TAO version 0.0.32, released Mon Nov 17 02:40:14 1997. - -Mon Nov 17 01:48:17 1997 Carlos O'Ryan - - * TAO_IDL/be/be_scope.cpp: - TypeCode generation was failing for imported members. - - * TAO_IDL/be/be_structure.cpp: - Member count must include all members, imported or not. - - * TAO_IDL/be/be_typedef.cpp: - Added missing decr_indent() in the typecode generation which was - making the generated code completely unreadable. - - * orbsvcs/lib/RtecEventChannelAdmin.idl: - * orbsvcs/lib/RtecEventComm.idl: - Removed the PullConsumer and PullSupplier classes, they are not - supported. - - * orbsvcs/lib/CosNamingC.cpp: - * orbsvcs/lib/CosNamingS.cpp: - * orbsvcs/lib/RtecEventChannelAdminC.cpp: - * orbsvcs/lib/RtecEventChannelAdminC.h: - * orbsvcs/lib/RtecEventChannelAdminC.i: - * orbsvcs/lib/RtecEventChannelAdminS.cpp: - * orbsvcs/lib/RtecEventChannelAdminS.h: - * orbsvcs/lib/RtecEventChannelAdminS.i: - * orbsvcs/lib/RtecEventCommC.cpp: - * orbsvcs/lib/RtecEventCommC.h: - * orbsvcs/lib/RtecEventCommC.i: - * orbsvcs/lib/RtecEventCommS.cpp: - * orbsvcs/lib/RtecEventCommS.h: - * orbsvcs/lib/RtecEventCommS.i: - * orbsvcs/lib/RtecSchedulerC.cpp: - * orbsvcs/lib/RtecSchedulerS.cpp: - New version of the generated files, this last version is almost - making in it, but still needs hand crafting. - - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_typedef.cpp: - Fixed buggy TypeCode lenght computation, it was only taking into - account the tc_encap_len() for the base type but it should use - the full tc_size(). - - * tao/encode.cpp: - Object references *must* be passed a pointer to Object_ptr in - the marshalling code. - - * TAO_IDL/be/be_operation.cpp: - * TAO_IDL/be/be_state_operation.cpp: - Fixed generated code for Object references as return values. It - allocates the Object_ptr in the heap, stores the result there - and creates an Any for it. - -Sun Nov 16 23:30:26 1997 Sergio Flores - - * orbsvcs/tests/Logger/svr.cpp (main): - Changed the code to use the resolve_initial_references () - interface to get the object refrence to the naming service. - - * orbsvcs/tests/Logger/clnt.cpp (main): Now uses the - resolve_initial_references() to get the naming service object - reference, to get the logger factory object reference. - - * orbsvcs/bin/Naming_Service/svr.cpp (main): - * orbsvcs/bin/Naming_Service/svr.h: - Added code to respond to multicast requests for the IOR. - - Added code to respond to multicast requests for the IOR. - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: Fixed some formatting - problems dealing with the precision of the output. - -Sun Nov 16 14:48:00 1997 - - * test/Cubit/TAO/IDL_Cubit/{server,client}.dsp: Updated library - path for release version. - - * TAO_IDL/TAO_IDL.mak: - * TAO_IDL/tao_idl.dsp: Added new files (be_state_*.cpp) into - project file. - -Sun Nov 16 12:56:24 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_interface.cpp: The _is_a_skel method's signature - had an Object_ptr obj parameter which was unused. Instead of - generating the ACE_UNUSED_ARG (obj) line of code, we use /* obj */ - in the signature. - -Sun Nov 16 05:51:38 1997 Douglas C. Schmidt - - * TAO version 0.0.31, released Sun Nov 16 05:51:38 1997. - -Sun Nov 16 00:22:04 1997 Carlos O'Ryan - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: - Fixed output for structs and union test. - - * tao/iiopobj.cpp: - If the user provides no key for an object we generate one, based - on the object address. - - * TAO_IDL/be/be_sequence.cpp: - The length() method should get the maximum if reallocation - occurs. - - * tao/orb_core.cpp: - * tao/orbobj.cpp: - * tao/orbobj.h: - * tao/params.cpp: - * tao/params.h: - Added new options to the ORB (-ORBeventserviceior, - -ORBscheduleserviceior), this should go away once the Naming - Service works properly, but are needed now to locate this - services. - - * orbsvcs/lib/Makefile: - Added several small classes that help when using the Scheduling - and/or the Event Service. - - * orbsvcs/lib/Scheduler_Factory.cpp: - * orbsvcs/lib/Scheduler_Factory.h: - * orbsvcs/lib/Scheduler_Factory.i: - Encapsulate the construction and configuration of the Scheduling - Service. - - * orbsvcs/lib/Runtime_Scheduler.cpp: - * orbsvcs/lib/Runtime_Scheduler.h: - * orbsvcs/lib/Runtime_Scheduler.i: - Implement a simple, but fast, Scheduling Service based on a - precomputed scheduling. - - * orbsvcs/lib/Event_Utilities.cpp: - * orbsvcs/lib/Event_Utilities.h: - * orbsvcs/lib/Event_Utilities.i: - Simplify the creation of QoS structures for the Event Service. - - * orbsvcs/lib/Scheduler_Utilities.cpp: - * orbsvcs/lib/Scheduler_Utilities.h: - * orbsvcs/lib/Scheduler_Utilities.i: - Simplify manipulation of the RT_Infos for the Scheduling - Service. - - * orbsvcs/lib/Channel_Clients.cpp: - * orbsvcs/lib/Channel_Clients.h: - * orbsvcs/lib/Channel_Clients_T.cpp: - * orbsvcs/lib/Channel_Clients_T.h: - Helpers to adapt PushSuppliers and PushConsumers. - - * orbsvcs/lib/CosNamingC.cpp: - * orbsvcs/lib/CosNamingC.h: - * orbsvcs/lib/CosNamingC.i: - * orbsvcs/lib/CosNamingS.cpp: - * orbsvcs/lib/RtecEventChannelAdminC.cpp: - * orbsvcs/lib/RtecEventChannelAdminC.h: - * orbsvcs/lib/RtecEventChannelAdminC.i: - * orbsvcs/lib/RtecEventChannelAdminS.cpp: - * orbsvcs/lib/RtecEventChannelAdminS.h: - * orbsvcs/lib/RtecEventComm.idl: - * orbsvcs/lib/RtecEventCommC.cpp: - * orbsvcs/lib/RtecEventCommC.h: - * orbsvcs/lib/RtecEventCommC.i: - * orbsvcs/lib/RtecEventCommS.cpp: - * orbsvcs/lib/RtecSchedulerC.cpp: - * orbsvcs/lib/RtecSchedulerC.h: - * orbsvcs/lib/RtecSchedulerC.i: - * orbsvcs/lib/RtecSchedulerS.cpp: - This files were generated by the IDL compiler and don't need any - hand crafting (so far). I still maintain them in CVS because the - compiler is not stable enough. - - * orbsvcs/bin/Naming_Service/Makefile: - Removed spurious call to rm. - - * orbsvcs/lib/RtecEventComm.idl: - Removed the (already commented out) include of "orb.idl". - -Sat Nov 15 21:38:48 1997 Carlos O'Ryan - - * TAO_IDL/be/be_sequence.cpp: - The generated length() method will reallocate the sequences - now. - - * TAO_IDL/be/be_constant.cpp: - It was initializing nested constants in the client header file, - Andy told me how to fix it. - - * TAO_IDL/be/be_operation.cpp: - Fixed typo in generated code: - s/_tao_enviroment/_tao_environment/ - - * TAO_IDL/be/be_field.cpp: - Only generate the inline members of the field type if the type - is not imported. - - * TAO_IDL/driver/drv_fork.cpp: - * TAO_IDL/driver/drv_preproc.cpp: - Removed old code to support plain fork (without ACE). - Also removed temporary files *unless* we are on Win32, were - removing the file and keeping it open fails. - - * TAO_IDL/include/idl_global.h: - * TAO_IDL/util/utl_global.cpp: - Added routines to obtain the generated names of any IDL file, - not only the one we are processing. - - * TAO_IDL/be/be_codegen.cpp: - The compiler now generate all the required include directives - when the IDL file contains some. - - * tao/params.cpp: - Initialize name_service_port_ to zero in the constructor. - -Sat Nov 15 21:20:01 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_string.cpp: The typecode info was getting - generated in a wrong file because of setting the worng file to - generate it in. - - * TAO_IDL/be/be_typedef.cpp: Some extra indentation was getting - generated for typecodes. This is fixed. - - * TAO_IDL/be/be_state_argument.cpp: For parameters of type - ObjRefs, we were not passing the address of the object_ptr to the - Any constructor. This would have caused seg faults when - decoding. This is now fixed. - - * TAO_IDL/be: Split be_state.cpp into a number of files based on - the IDL types, e.g., be_state_struct.cpp, be_state_union.cpp, ... - - * TAO_IDL/be/be_sequence.cpp: Name creation now uses a uniform - strategy rather than typedefed sequences assuming the name of the - typedef and anonymous sequences getting a generated name. This was - required to eliminate a number of multiple declarations errors. - - * TAO_IDL/be/be_state_union.cpp: Since C++ does not allow - instances of classes to appear inside a union declaration, the - private data members for data members of type objref, strings, - sequences, and anys must be pointers. This changes code in the - accessor methods defined in the generated *.i files for the union. - - * TAO_IDL/be/be_operation.cpp: There were some instances of the - incorrectly spelled _tao_enviroment remaining which have been - corrected. - - * TAO/tao/managed_types.{h,i,cpp}: Added these 3 files that define - the self managed data type similar to a String_var. These self - managed data types are required for struct/union members that are - strings or obj references, as well as for element types of - sequences. - - * TAO_IDL/be/be_typedef.cpp: Added code to generate the typecode - structure for typedefs. These use the tk_alias kind field. - - * TAO_IDL/be/{be_union,be_state}.cpp: Improvements to union with - string members. However, this is still incomplete and will be - done by the next couple of commits. - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: Removed the ACE_DEBUG - stmt for printing object keys. - -Sat Nov 15 18:03:39 1997 Douglas C. Schmidt - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp (make_cubit): We don't - need to free up the object key since it's no longer allocated - dynamically. - - * tao/object: Changed the _get_name() method to return const char - * to be consistent with the iiopobj change below. - - * tao/iiopobj: Fixed _get_name() so that it doesn't allocate - memory by having it return const char * and just return the - pointer. This should fix some subtle problems. - -Sat Nov 15 12:19:55 1997 Nanbor Wang - - * TAO_IDL/be/be_codegen.cpp: Changed two loop counters from type - int to type size_t. - -Sat Nov 15 01:33:08 1997 Douglas C. Schmidt - - * TAO version 0.0.30, released Sat Nov 15 01:33:08 1997. - -Fri Nov 14 19:45:01 1997 Sergio Flores - - * tests/Cubit/TAO/DII_Cubit/clnt.cpp : - * tests/Cubit/TAO/DII_Cubit/clnt.h : - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp : - - Fixed the difference in latency problem from DII and IDL. - - Changed the DII_Cubit client interface to be similar to IDL, now - you can specify hostname and port number, instead of the IOR. - -Fri Nov 14 17:48:14 1997 Carlos O'Ryan - - * orbsvcs/bin/Naming_Service/CosNaming_i.cpp: - Fixed problem with the new Environment parameter for _narrow (). - - * orbsvcs/bin/Naming_Service/Makefile: - No need to include rules.bin.GNU. - -Fri Nov 14 17:08:20 1997 Douglas C. Schmidt - - * tao/iiopobj.cpp: Make sure that host is set to 0 in all the - constructors. - - * tao/iiopobj.cpp (Profile): Modified the code to consistently - store a NUL at the end of each object key string. - -Fri Nov 14 17:10:20 1997 Sumedh Mungee - - * cubit_i.cpp: Changed &d to %d in ACE_ERROR - -Fri Nov 14 16:42:21 1997 Chris Cleeland - - * tao/tao_internals.cpp (fake_service_entries_i): Made sure that - the resource factory faked entry had the proper number of - arguments specified. - -Fri Nov 14 14:11:47 1997 Carlos O'Ryan - - * orbsvcs/lib/Makefile: - Added new library that contains the stubs and skeletons for the - TAO services. - - * orbsvcs/Makefile: - * orbsvcs/bin/Makefile: - * orbsvcs/tests/Makefile: - Added top level Makefiles. - - * orbsvcs/bin/Naming_Service/Makefile: - * orbsvcs/bin/Naming_Service/svr.cpp: - * orbsvcs/bin/Naming_Service/svc.conf: - * orbsvcs/bin/Naming_Service/NS_CosNaming.h: - * orbsvcs/bin/Naming_Service/NS_CosNaming.cpp: - * orbsvcs/bin/Naming_Service/CosNaming_i.h: - * orbsvcs/bin/Naming_Service/CosNaming_i.cpp: - Moved the naming service implementation from the TAO - subdirectory to this place. - - * orbsvcs/tests/Simple_Naming/Makefile: - * orbsvcs/tests/Simple_Naming/svc.conf: - * orbsvcs/tests/Simple_Naming/clnt.h: - * orbsvcs/tests/Simple_Naming/clnt.cpp: - A simple test program for the naming service, it simply tries to - locate it and connect to it. - - * orbsvcs/bin/Naming_Service/Orbix/Client.cpp: - * orbsvcs/bin/Naming_Service/Orbix/CosNaming.idl: - * orbsvcs/bin/Naming_Service/Orbix/Makefile: - * orbsvcs/bin/Naming_Service/Orbix/NS_CosNaming.cpp: - * orbsvcs/bin/Naming_Service/Orbix/NS_CosNaming.h: - * orbsvcs/bin/Naming_Service/Orbix/logger-main.cpp: - * orbsvcs/bin/Naming_Service/Orbix/logger.idl: - * orbsvcs/bin/Naming_Service/Orbix/logger_tie.cpp: - * orbsvcs/bin/Naming_Service/Orbix/logger_tie.h: - * orbsvcs/bin/Naming_Service/Orbix/server-main.cpp: - * orbsvcs/bin/Naming_Service/TAO/CosNaming.idl: - * orbsvcs/bin/Naming_Service/TAO/CosNaming_i.cpp: - * orbsvcs/bin/Naming_Service/TAO/CosNaming_i.h: - * orbsvcs/bin/Naming_Service/TAO/Makefile: - * orbsvcs/bin/Naming_Service/TAO/NS_CosNaming.cpp: - * orbsvcs/bin/Naming_Service/TAO/NS_CosNaming.h: - * orbsvcs/bin/Naming_Service/TAO/clnt.cpp: - * orbsvcs/bin/Naming_Service/TAO/clnt.h: - * orbsvcs/bin/Naming_Service/TAO/svc.conf: - * orbsvcs/bin/Naming_Service/TAO/svr.cpp: - We will only maintain the TAO version for the naming service, no - need to keep this subdirectories. - - * orbsvcs/lib/RtecScheduler.idl: - The Real Time Scheduling Service. This module declares the QoS - structures (RT_Info) and the interface for the global scheduler. - - * orbsvcs/lib/RtecEventComm.idl: - Part of the Real Time Event Services interface, this file - contains the Event type, the basic interfaces for consumers and - suppliers and some exceptions. - - * orbsvcs/lib/RtecEventChannelAdmin.idl: - Part of the Real Time Event Services interface, in particular - this module defines the event channel, the proxy interfaces and - the QoS aware subscription and registration interfaces. - - * orbsvcs/lib/Event_Service_Constants.h: - The Event Service implementation and the Scheduling Service - implementation require this file, which defines some constants - and static limits. For lack of a better place I putted it here. - - * orbsvcs/lib/CosNaming.idl: - Moved the IDL file to the library, otherwise it cannot be used - by clients. - - * tao/corba.h: - Added some macros that support portable exception handling, - either through C++ exceptions or the CORBA::Enviroment - parameter. - - * orbsvcs/lib/RtecEventCommC.h: - * orbsvcs/lib/RtecEventCommC.i: - * orbsvcs/lib/RtecEventCommC.cpp: - * orbsvcs/lib/RtecEventCommS.h: - * orbsvcs/lib/RtecEventCommS.i: - * orbsvcs/lib/RtecEventCommS.cpp: - * orbsvcs/lib/RtecEventChannelAdminS.h: - * orbsvcs/lib/RtecEventChannelAdminS.i: - * orbsvcs/lib/RtecEventChannelAdminS.cpp: - * orbsvcs/lib/RtecEventChannelAdminC.h: - * orbsvcs/lib/RtecEventChannelAdminC.i: - * orbsvcs/lib/RtecEventChannelAdminC.cpp: - * orbsvcs/lib/CosNamingC.h: - * orbsvcs/lib/CosNamingC.i: - * orbsvcs/lib/CosNamingC.cpp: - * orbsvcs/lib/CosNamingS.h: - * orbsvcs/lib/CosNamingS.i: - * orbsvcs/lib/CosNamingS.cpp: - I had to modify the IDL compiler generated files, I will keep - the files in CVS until we no longer need to modify it. - -Fri Nov 14 13:02:52 1997 Aniruddha Gokhale - - * tao/decode.cpp: TAO_Marshal_Objref::decode line 615 which tried - to set the underlying object_addr was invoking an incorrect inline - function because of lack of passing an argument to the object_addr - () method. Specifically, due to the lask of argment, the - "retrieve" method was getting called whereas we wanted the "set" - method. All we do is pass a 0 (NUL) argument. This suffices - because we have already decoded the host and port number. So all - information is with us to set the server address. - -Fri Nov 14 00:29:09 1997 David L. Levine - - * TAO_IDL/fe/lex.yy.cpp: set RCS -ko option so that the Id keyword - won't get expanded on checkout. That was causing CVS to think - that a merge was needed. - -Thu Nov 13 19:11:36 1997 Douglas C. Schmidt - - * tao/giop.cpp (start): Updated the code to use the new - object_addr() style. - - * tao/iiopobj: Added many fixes to the Profile code to fix nasty - bugs. Also, renamed {get|set}_object_addr() to simply - object_addr(), which is the correct style. - - * tao/iiopobj.h: Replaced the use of "localhost" with - ACE_DEFAULT_SERVER_HOST. This is necessary to support broken - platforms like MVS that don't support "localhost"... - - * TAO/tests/Cubit/TAO/IDL_Cubit/svr.cpp (parse_args): Assume for - the moment that any arguments starting with `-O' are `-ORB' or - `-OA'. This should be fixed by having the ORB_init() and - POA_init() methods consume their argv/argc's. - -Thu Nov 13 16:18:32 1997 - - * tao/orb_core.h: - * tao/default_client.h: - * tao/default_server.h: Changed ACE_SVC_FACTORY_DECLARE to - ACE_FACTORY_DECLARE. - - * tao/orb_core.cpp: - * tao/default_client.cpp: - * tao/default_server.cpp: Changed ACE_SVC_FACTORY_DEFINE to - ACE_FACTORY_DEFINE. - - * tao/corba.h: Added include "tao/tao_internals.h". - - * tao/tao_internals.h: Disable header file inclusions. I've put - this file into corba.h. - - * tao/tao_internals.cpp: Changed to use "tao/corba.h". - - * tao/TAO.mak: - * tao/TAO.dsp: Replaced ACE_BUILD_SVC_DLL with TAO_BUILD_DLL. - - * tao/corba.h: Added TAO_Export definition. - - * tao/*.h: Replaced ACE_Svc_Export with TAO_Export. Added - default definition to build TAO DLL on Win32. - -Thu Nov 13 01:47:02 1997 Chris Cleeland - - * tao/iiopobj.cpp (IIOP_Object): Removed the duplicate CTORs that - I'd accidentally included here during the prior merge/commit - phase. - -Wed Nov 12 23:59:29 1997 - - * TAO/TAO_IDL/tao_idl.dsp: Changed to generate multithreaded codes - on NT. - - * TAO/TAO_IDL/be/be_scope.cpp: - * TAO/TAO_IDL/fe/idl.ll: - * TAO/TAO_IDL/fe/lex.yy.cpp: - * TAO/TAO_IDL/fe/y.tab.cpp: - * TAO/TAO_IDL/include/ast_decl.h: - * TAO/TAO_IDL/include/idl.h: - * TAO/TAO_IDL/include/utl_identifier.h: - * TAO/TAO_IDL/include/utl_idlist.h: - * TAO/TAO_IDL/include/utl_tmpl/utl_decllist.h: - * TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h: - * TAO/TAO_IDL/include/utl_tmpl/utl_exprlist.h: - * TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h: - * TAO/TAO_IDL/include/utl_tmpl/utl_labellist.h: - * TAO/TAO_IDL/include/utl_tmpl/utl_namelist.h: - * TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h: Changed to use - "ace/stdcpp.h" and removed inclusion of header files that - conflict with standard C++ library. - -Wed Nov 12 18:59:20 1997 Chris Cleeland - - * tao/iioporb.cpp: Added call to set object address in Profile. - - * tao/iiopobj.cpp: Corrected code in the copy CTOR where the host - was being copied over the old host. This could prove bad if the - amount of space allocated previously was too small for the - hostname we're copying in. Ideally we'd use something smarter - than this, but hopefully (if you read the comment below) this will - go away soon. - - * tao/iiopobj.*: Added an ACE_INET_Addr to IIOP::Profile so that - we only need to do a gethostbyname() once. After that we can used - the cached information. I'd really like to remove the host/port - as explicit public data members, but for now we take one step at a - time. - - * tao/giop.cpp: Use the IIOP::Profile object address when making a - connection. - - * tao/decode.cpp: Added code to set the object address in the - Profile when an object ref is decoded. - - * tao/debug.h: Removed old questions in comments. - - * tao/connect.h: Added some documentation. - -Wed Nov 12 17:41:02 1997 Aniruddha Gokhale - - * tao/iiopobj.cpp: I had forgotten to update the return type of - _get_name in iiopobj.cpp to "char *" instead of "const char *". - -Wed Nov 12 14:28:48 1997 Aniruddha Gokhale - - * TAO_IDL/ast/ast_union.cpp: Fixed a problem where the front end - would not give any error if there were duplicate case labels. This - was happening since an overloaded == operator taking an - AST_Expression* was not getting called. Instead a simple - comparison of addresses was taking place. We now use the "compare" - method defined on the AST_Expression class to fix this problem. - - * TAO_IDL/be/be_interface.cpp: Removed some code under #if 0. The - noteworthy change, however, has to do with code that gets - generated for the "_is_a_skel". Some compilers were issuing a - warning saying "unused argument obj". Since we cannot change the - signature of the generated "_is_a_skel", we use the trick of - generatung ACE_UNUSED_ARG (obj); in the code. Some other - formatting changes made. - - * TAO_IDL/be/be_operation.cpp: Some very minor changes so that the - generated code is properly indented. - - * tao/{iiopobj,object,stub}.h, iiopobj.cpp: Changed the return - type of _get_name to return a heap-allocated "char *". In the - earlier case we were erroneously returning a pointer to local - array. This was a change I made a couple of days back to deal with - the fact that object keys are octet arrays and are not null - terminated. Now we take the object key and make a NULL terminated - copy in a heap allocated string. It is the caller's responsibility - to free this. - - * tao/tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: Used string_free to - free the string returned by _get_name. - - * tao/tests/Thruput/client.cpp: _narrow now uses the additional - env parameter. - -Wed Nov 12 09:22:47 1997 David L. Levine - - * tao/tao_internals.cpp (open_services): added ACE_UNUSED_ARGs - for argc and argv if TAO_PLATFORM_SVC_CONF_FILE_NOTSUP. - - * TAO_IDL/Makefile: disabled clean and realclean targets on VxWorks, - so that they don't remove tao_idl from the host build tree. - -Tue Nov 11 23:50:06 1997 Douglas C. Schmidt - - * TAO version 0.0.29, released Tue Nov 11 23:50:06 1997. - -Tue Nov 11 20:45:26 1997 Douglas C. Schmidt - - * tao/default_server.cpp (parse_args): Replaced NULL with 0. - - * tao/corbacom.h: Fixed the macro for TAO_SYSTEM_EXCEPTION so - compilers don't whine about extra semi-colons. - - * tao/iioporb.cpp (iiop_string_to_object): Added a cast of (char - *) 0 to disambiguate one of the methods. - - * tao/iiopobj.cpp: Moved the constructors and destructors of - IIOP_Object from the *.i file to the *.cpp file and made them - non-inline. - -Tue Nov 11 18:19:16 1997 Aniruddha Gokhale - - * tao/iiopobj.{h,cpp}: Added two new constructors one of which is - useful for the _bind call generated by the IDL compiler. This - constructor takes the host name, port number, and key value - thereby avoiding the costly string2object call inside the _bind - method. The second constructor is used to reduce the amount of - code that gets generated to set a IIOP_Object in the constructor - of the skeleton class. - - Additionally, these constructors use the REENTRANT get_host_name - method of the INET_Addr class to retrieve the host name. - - * tao/iiopobj.h,stub.h: Modified the signature of _get_name to - return a const char*. So users will have to copy this value. - - * tao/iiopobj.cpp: The method _get_name uses an internal character - array in which the object key is copied. This is necessary so that - we can NULL terminate the opaque key and return it to the user. - - * tao/orbconf.h,cdr.h: Commented (and will eventually remove) the - defintion of MY_BYTE_SEX from cdr.h. Instead, we now use the macro - TAO_ENCAP_BYTE_ORDER which gets defined in orbconf.h. The files - affected due to this renaming are: - - tao/{iioporb.cpp, giop.cpp, except.cpp, cdr.cpp, encode.cpp, - interp.cpp, tc_const.cpp} - - The following files in the IDL compiler source were affected since - they had to generate TAO_ENCAP_BYTE_ORDER instead of MY_BYTE_SEX. - TAO_IDL/be/{be_array,be_enum,be_interface,be_sequence,be_structure, - be_union}.cpp - - * tao/{typecode,decode}.cpp: some reformatting, indentation. - - * TAO_IDL/be/be_interface.cpp: code generated for _bind uses the - newly added constructor to class IIOP_Object. - - * TAO_IDL/be/{be_interface.be_state}.cpp: Code generated for - _narrow now takes an additional CORBA::Environment parameter. - - * tests/Cubit/TAO/IDL_Cubit: cubit_i.cpp - in the method - make_cubit, we make a copy of the string returned by _get_name and - then free that memory. - - clnt.cpp: The tests for unions have been uncommented. The reason - they were not working and resulting in seg fault was that methods - of the cubit interface were being invoked on the factory object. - -Tue Nov 11 10:07:04 1997 David L. Levine - - * tests/Cubit/TAO/DII_Cubit/Makefile: added missing before (VAR) - in VBIN definition. - - * tao/orbconf.h: added __i386 to TAO_WORDS_BIGENDIAN check, - because that's what g++/VxWorks uses. Also added __alpha - to little endian CPUs. - - * tao/orb_core.i: fixed preprocessor test for using the - ACE_Hash_Addr::hash_i specialization. - -Tue Nov 11 04:22:44 1997 Douglas C. Schmidt - - * TAO version 0.0.28, released Tue Nov 11 04:22:44 1997. - -Tue Nov 11 01:16:07 1997 Douglas C. Schmidt - - * tao/orbobj.cpp (resolve_name_service): Reformatted the - multicast Name Service locator just a bit. - - * tao/orbconf.h: Started putting a more sane way of automatically - determining the size of various datatypes into TAO. - -Tue Nov 11 00:36:39 1997 Sergio Flores - - * orbsvcs/bin/Logger/ior_multicast.h: - * orbsvcs/bin/Logger/ior_multicast.cpp: - * orbsvcs/bin/Logger/clnt.cpp: - * orbsvcs/bin/Logger/clnt.cpp: - * orbsvcs/bin/Logger/svr.cpp: - * orbsvcs/bin/Logger/Makefile: - Added multicast resolution of the logger service example. - -Tue Nov 11 00:36:39 1997 Sergio Flores - - * tao/orbobj.cpp (resolve_name_service): changed macro for default - multicast port. - - Added support for multicast mechanism to resolve the name - service. - - * tao/orbconf.h: Added some definitions for TAO's default - multicast and reply port, and the default timeout value. - -Tue Nov 11 00:00:25 1997 David L. Levine - - * tests/Cubit/TAO/IDL_Cubit/Makefile: removed MUNCHED because - it's no longer needed for g++/VxWorks. - -Mon Nov 10 22:02:42 1997 Douglas C. Schmidt - - * tao/interp.cpp (declare_entry): Moved TAO_ALIGNMENT_MAGIC_NUMBER - to orbconf.h instead of burying it in interp.cpp. - - * tao/corbacom.h: Rather than trying to guess what the size of - wchar_t, let's just use what's in ACE. - -Mon Nov 10 19:26:03 1997 Sumedh Mungee - - * tao/orbconf.h (SIZEOF_INT): FreeBSD and NetBSD have 4 byte - ints. Thanks to Nanbor for pointing this out. - - * tao/orbobj.cpp: Added template instantiation for ACE_Atomic_Op. - - * tao/orbconf.h: NetBSD has a long double of size 12, as does - FreeBSD. Fixed SIZEOF_LONG_DOUBLE to fix this. - - * tests/Cubit/TAO/MT_Cubit/server/svr.cpp (main): Removed cerr's - and replaced them with ACE_ERROR_RETURN's and the like. - -Mon Nov 10 01:25:19 1997 - - * tao/giop.h: Added ACE_Svc_Export to classes - (TAO_GIOP_Request_Header, TAO_GIOP_Invocation, TAO_GIOP.) Some - of them may not be necessary. - -Mon Nov 10 00:09:24 1997 Douglas C. Schmidt - - * TAO version 0.0.27, released Mon Nov 10 00:09:24 1997. - -Sun Nov 09 23:43:04 1997 - - * tao/corba.h: Reordered the inclusion of poa.i, giop.i, - iioporb.i, and iiopobj.i - - * tao/tao_internals.cpp (close_services): Fixed typo. - -Sun Nov 09 23:32:58 1997 Douglas C. Schmidt - - * TAO version 0.0.26, released Sun Nov 09 23:32:58 1997. - -Sun Nov 09 22:04:12 1997 - - * tao/orbobj.cpp (ORB_init): - * tao/tao_internals.cpp (close_services): - - Changed ACE_Recursive_Thread_Mutex to ACE_SYNCH_RECURSIVE_MUTEX. - -Sun Nov 9 16:05:56 1997 Sergio Flores - - * tests/Cubit/TAO/DII_Cubit/clnt.cpp: * - tests/Cubit/TAO/DII_Cubit/clnt.h: Added clnt.h and restructured - the code so it is similar to the IDL_Cubit example. It doesn't, - however, have the same options because the DII example uses an ior - as input. - - * tao/debug.cpp: Added dummy function to get rid of - "'debug_stream' defined but not used" warning. - -Sun Nov 9 13:03:37 1997 Douglas C. Schmidt - - * tao: Removed the svc.conf.eg file since it was out of date. - - * tao/svrrqst: Removed the #include for svrrqst.i since we don't - need any inline functions now. - - * tao/tao_internals: Removed the #include for tao_internals.i - since we don't need any inline functions now. - - * tao/varout.h: Cleaned up the programming style. - - * tao: Continued to replace all fields with names _foo to foo_. - - * tao/iioporb.cpp: Move the hex routines into ACE since they are - more general. - - * tao/iioporb.cpp: Removed the inclusion of iioporb.i since it is - already included in corba.h. - - * tao: Replaced all uses of ACE_Thread_Mutex with ACE_SYNCH_MUTEX - since this is portable... - - * tao/iiopobj.cpp: Removed the inclusion of iiopobj.i since it is - already included in corba.h. - - * tao/giop.cpp: Moved several large inlined methods into the *.cpp - file. - - * tao/giop: Removed the enormous (and unused) incoming_message() - method. - - * tao/giop.cpp: Removed the inclusion of giop.i since that is - handled in corba.h. - - * tao: Removed the factories.i and factories.cpp files since they - don't seem to be used by anything. - - * tao/{corbacom,except}.*: Changed SYSEX to the more politically - correct TAO_SYSTEM_EXCEPTION. - - * tao: Replaced all uses of wslen() and wscpy() with the - corresponding ACE_OS wide string functions. - - * tao/orbconf.h: Removed all the HAVE_WIDEC_H stuff. This should - be handed by ACE. - - * tao/connect.i: Removed the template instantiations since they - were commented out and didn't appear to be used. - - * tao/connect.cpp: connect.i was already being included in corba.h, - so don't include it again. - - * tao/client_factory.cpp: Moved inlined constructor/destructor - from the *.i file into the *.cpp file. - - * tao/cdr.cpp (CDR): Moved a bunch of absurdly long inlined methods - from the *.i file into the *.cpp file. - - * tao/any.cpp (CORBA_Any): refcount_ has previously been - uninitialized. I gave it a value of 1. - - * tao/any.cpp (CORBA_Any): Moved the initialization into the - base/member section, where it belongs. - - * tao/any.h: Corrected a spelling mistake in an enumeral and - upper-cased the minor codes for exceptional returns. Are these - actually used anywhere? - - * tao: Removed all the unnecessary #if 0 ... #endif header files. - I don't know why there were still there. - - * tao/except.h: Moved the #ifdef for minor and major into - orbconf.h, where they belong. - - * tao/orbconf.h: Removed all the DECLARED_* macros since they - no longer made sense once we've got ACE. - - * tao/orbconf.h: Moved the TAO_DEFAULT* macros from ace/OS.h - here, which is more where they belong. - - * tao/default_server.cpp (TAO_Default_Server_Strategy_Factory): - - * tao/{debug.h,orbconf.h}: Removed the DECLARED_STRERROR macro - since ACE handles this. - -Sun Nov 09 10:18:06 1997 David L. Levine - - * tao/connect.cpp: fixed RCS keyword (Id instead of id). - -Sat Nov 08 23:23:41 1997 Douglas C. Schmidt - - * TAO version 0.0.25, released Sat Nov 08 23:23:41 1997. - -Sat Nov 8 21:27:34 1997 Douglas C. Schmidt - - * tao/orb_core.cpp (init): Removed the code that always binded us - to our hostname. This is unnecessary and makes it hard to use - other interfaces on the same host (such as localhost or some ATM - interface, etc.). With this change (and the corresponding - changes to ACE_INET_Addr::get_host_name()), we can now bind to - INADDR_ANY. - - * docs/releasenotes: Added Marina's documentation for the Trader - and cleaned up all the other entries to make them consistent. - - * tao: Changed ProfileBody to Profile, TaggedProfile to - Tagged_Profile, ProfileSeq to Profile_Sequence, and ProfileId to - Profile_ID. - - * tao/iiopobj.cpp (ProfileBody): For some god knows why reason, - the CORBA::String and CORBA::UShort parameters to ProfileBody - where being passed as references. This is silly, so I changed - them to non-references. - - * tao/connect.cpp (open), - tao/poa.cpp (create): Replaced a use of - ACE_INET_Addr::get_host_name(void) with - ACE_INET_Addr::get_host_name (char *, size_t), which is - reentrant. - - * tao/Makefile: Removed the DCFLAGS, OCFLAGS, and the TAO_ORB_CORE - target macros from the Makefile since they were unnecessary. - Thanks to Arturo for reporting this. - - * tao/except.cpp (print_exception): Fixed a strange format code in - print_exception that was causing a seg fault. What the heck - does %#lx mean? Thanks to Mark L Boriack for - reporting this. - -Fri Nov 07 21:23:35 1997 Carlos O'Ryan - - * tao/orb_core.h: - * tao/marshal.h: - * tao/corbacom.h: - Added ACE_Svc_Export to some classes. - - * tao/any.cpp: - Removed delete after DEEP_FREE call, it crashes on NT and it - should be unneeded. - - * TAO_IDL/be/be_state.cpp (gen_code): - When generating arguments for the server header don't use nested - types. The fully qualified type name is needed, even on NT. - - * TAO_IDL/be/be_exception.cpp: - Added code to generate a default constructor. - -Fri Nov 07 17:26:49 1997 - - * tao/TAO.dsp: - * tests/Cubit/TAO/DII_Cubit/{client,server}.dsp: - * tests/Cubit/TAO/IDL_Cubit/{client,server}.dsp: - * tests/Cubit/TAO/MT_Cubit/client/client.dsp: Removed - ACE_HAS_TSS_ORB_CORE flag. - - * tests/Cubit/TAO/MT_Cubit/client/client.cpp (main): Added a - return statement to satisfy MSVC. - -Fri Nov 7 18:20:46 1997 Chris Cleeland - - * tests/Cubit/TAO/MT_Cubit/{client,server}/svc.conf: Updated to - reflect the proper combination of options to achieve the - thread-per-ORB-per-rate concurrency model. - - * docs/components.html: Updated to refer to seminal documentation - referred to below. - - * docs/configurations.html: Started some new documentation. It's - got a ways to go right now. :-) - -Fri Nov 07 15:42:45 1997 David L. Levine - - * tao/default_server.cpp (parse_args): check for 0 argv[curarg] - before calling strcmp on it. - - * tests/Cubit/TAO/IDL_Cubit/Makefile: added MUNCHED for - VxWorks/g++. - -Fri Nov 7 10:30:59 1997 Chris Cleeland - - * tao/tao_internals.cpp (fake_service_entries_i): Updated faked - service entries to include new Resource Factory. This is the - fallback for VxWorks. - - * tao/orb_core.h (TAO_Resource_Factory): Added much comments. - -Fri Nov 07 02:45:56 1997 Douglas C. Schmidt - - * TAO version 0.0.24, released Fri Nov 07 02:45:56 1997. - -Fri Nov 7 01:58:30 1997 Nanbor Wang - - * TAO_IDL/driver/drv_preproc.cpp: - * TAO_IDL/driver/drv_fork.cpp: Added the (__FreeBSD__) flag to - correctly include wait.h file. - - * tao/orb_core.cpp: Replaced ACE_NETBSD with ACE_HAS_THREADS in - template instantiation segment. - - * tao/orbconf.h: Added the (__FreeBSD__) flag to exclude inclusion of - widec.h. - - * tao/orbobj.cpp (Release): Wrapped ACE_GUARD with ACE_MT macro. - -Fri Nov 07 01:46:04 1997 - - * tests/Cubit/TAO/DII_Cubit/(cubitC.cpp, cubit.cpp): Byte order - changed from 1 to MY_BYTE_SEX. - -Thu Nov 6 23:59:45 1997 Douglas C. Schmidt - - * tao/params.cpp: Moved all the inlined methods out of the header - file and put them in the *.cpp file. I hope this doesn't cause - problems for GCC on VxWorks. - - * tests/Thruput_test/client.cpp: Fixed a mistake with how - the long string constant was defined. The scheme being - used wasn't portable. - -Thu Nov 06 20:58:52 1997 - - * tao/connect.cpp: Made sure that TAO_Server_Connection_Handler - and TAO_Client_Connection_Handler have a zero Reactor pointer. - If this is not the case, they will try to deregister from a - sometimes non-existent Reactor. - -Thu Nov 6 19:06:59 1997 Sergio Flores - - * docs/releasenotes/index.html: Updated status of Naming Service - port to TAO. - - * TAO_IDL/be/be_exception.cpp (gen_client_header): - removed warning for unused variable. - -Thu Nov 6 17:07:58 1997 Chris Cleeland - - * tao/tao_internals.i: Added missing #include file. - - * tao/tao_internals.i: Change lock used as monitor for service - count to use ACE_Static_Object_Lock::instance(). This pleases - VxWorks (but makes me nauseous). - - * tao/tao_internals.h: Removed static instances of locks to please - VxWorks. - - * tao/orbobj.cpp (ORB_init): Changed lock used for the monitor - here to be ACE_Static_Object_Lock::instance(). This pleases - VxWorks (but makes me nauseous). - - * tao/orb_core.cpp (init): Merged in changes for new Naming - Service-related options that got accidentally overwritten last - night. - - * docs/Options.html: Added documentation for new Naming - Service-related options in. - - * tao/orbobj.h: Added documentation for a few static methods. - - * tao/params.h: Changed LOCAL_INLINE macro to TAO_LOCAL_INLINE to - avoid possible collisions with application macros. - -Thu Nov 6 14:51:22 1997 Sumedh Mungee - - * TAO_IDL/Makefile: Renamed libutil to libtao_idl_util. libutil is - a system library on NetBSD. Updated TAO_IDL/util/Makefile to be - compatible with this. - - * TAO_IDL/be/be_codegen.cpp (server_header): Changed ::toupper to - be toupper, since toupper is a macro on some platforms (like - netbsd). - - * TAO_IDL/driver/{drv_preproc.cpp, drv_fork.cpp}: NetBSD has - sys/wait.h, instead of wait.h. Added #define to fix it. - -Thu Nov 6 01:40:29 1997 Sumedh Mungee - - * tao/tao_internals.h: #defined ACE_Thread_Mutex to be - ACE_Null_Mutex for NetBSD. - - * tao/orbconf.h: Added NetBSD to the #define around HAVE_WIDEC_H. - - * tao/orb_core.cpp: #defined around some thread-specific template - instantiations which are not needed on NetBSD. - - * tao/except.h: Undefined "minor" and "major, since these are - defined in NetBSD. - -Thu Nov 06 14:47:15 1997 David L. Levine - - * tao/params.[hi]: inlined some functions in the class declaration - because g++ for VxWorks couldn't deal with them in the .i file. - - * tao/tao_internals.*,orbobj.cpp: fixed replacement of orbinit_lock_ - and service_lock_ with ACE_Static_Object_Lock::instance (). - -Thu Nov 06 02:17:02 1997 Douglas C. Schmidt - - * TAO version 0.0.23, released Thu Nov 06 02:17:02 1997. - -Wed Nov 5 23:44:42 1997 Douglas C. Schmidt - - * tao/{orbobj,iioporb}.h: Made the first parameter to - string_to_object() a const CORBA::String rather than just a - CORBA::String. - - * tao/params (addr): Fixed a bug where we should have been using - const ACE_INET_Addr & rather than just ACE_INET_Addr &. - - * tao/orbobj: Began adding the hooks for a multicast-based - implementation of resolve_initial_references(). - - * tao/params: Added a new set/get interface to optionally set/get - the IOR of the configured Naming Service. - - * tao/orb_core.cpp (init): Added a -ORBnameservice command-line - option. If this option is given, it indicates the IOR where the - Naming Service resides. - - * tao/params: Changed the signature of TAO_ORB_Parameters::addr() - to return a const ACE_INET_Addr & rather than an ACE_INET_Addr. - - * tao/params: Added new get/set name_service_port() methods to - get/set the name service multicast port. - -Wed Nov 5 22:38:08 1997 Sergio Flores - - * tests/Thruput_test/client.cpp (main): - * tests/Thruput_test/server.cpp (main): Fixed missing declarations - and unused variables and labels. Fixed uninitialized and unused - variables. - - * tests/Thruput_test/ttcp_i.cpp (ttcp_sequence_i): - * tests/Thruput_test/ttcp_i.h (class ttcp_sequence_i): Change to - use POA. - - * tests/Cubit/TAO/DII_Cubit/README (server): Changed comment on - how to start the server to indicate the use of "-d" to see the - IOR. - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp (Cubit_Client): Reordered - member initializers to match declaration order - - * tests/Cubit/TAO/DII_Cubit/svr.cpp (main): Fixed comparison of - ">=" on an unsigned variable to compare only ">". - -Wed Nov 05 20:35:52 1997 - - * tao/orb_core.cpp (fini): Close down the connector. Other - ORB_Core specific objects also need to be cleaned up (and - deleted). - - * tests: Made sure that the orb pointer returned by ORB::init() is - correctly freed up. Following files were updated: - - TAO/tests/Cubit/TAO/DII_Cubit/clnt.cpp - TAO/tests/Cubit/TAO/DII_Cubit/svr.cpp - TAO/tests/Cubit/TAO/IDL_Cubit/clnt.cpp - TAO/tests/Cubit/TAO/IDL_Cubit/clnt.h - TAO/tests/Cubit/TAO/IDL_Cubit/svr.cpp - TAO/tests/Cubit/TAO/MT_Cubit/client/Task_Client.cpp - TAO/tests/Cubit/TAO/MT_Cubit/server/svr.cpp - TAO/tests/Cubit/VisiBroker/base_server/server.cpp - -Wed Nov 5 19:37:25 1997 Aniruddha Gokhale - - * TAO_IDL compiler: - - files be_array.cpp, be_interface.cpp, be_sequence.cpp, - be_structure.cpp, be_union.cpp, be_enum.cpp - Added MY_BYTE_SEX to - the typecode generation methods. - - be_operation.cpp, be_argument.cpp, be_state.cpp, be_codegen.* - - Modified to deal with _out parameters that are passed to the - actual upcalls in the server-side skeleton. - - Some minor changes involving removing commented-out code in the - constructors of some classes. - - * tests/Thruput_test: Some modifications. Still needs more work - get it to run. - -Wed Nov 05 19:26:44 1997 - - * tests/Cubit/TAO/DII_Cubit/DII_Cubit.dsp: - * tests/Cubit/TAO/IDL_Cubit/IDL_Cubit.dsp: - * tests/Cubit/TAO/MT_Cubit/client/client.dsp: - * tests/Cubit/TAO/MT_Cubit/server/server.dsp: - * tao/TAO.dsp: Renamed debeg version of TAO library to TAO.dll for - NT. - -Wed Nov 05 13:39:19 1997 David L. Levine - - * TAO_IDL/Makefile: more hacks to not build the IDL compiler - on VxWorks. - -Wed Nov 05 12:53:53 1997 - - * tao/interp.cpp: - - - Win32 does not use "fixed" byte alignment. Fixed the - setup_entry macro to take this into account. - - - (declare_entry) Seperated the declaration of the structs from - their use. This is necessary for the VC++4.2 compiler. - - * tests/Cubit/TAO/DII_Cubit/svr.cpp (main): Commented out debug - message, since obj is not declared. - -Wed Nov 05 01:41:34 1997 Douglas C. Schmidt - - * TAO version 0.0.22, released Wed Nov 05 01:41:34 1997. - -Wed Nov 5 00:48:58 1997 Sergio Flores - - * tests/Thruput_test/utils.cpp: Delete static definitions of - functions. - - * tests/Thruput_test/ttcpS.cpp: - * tests/Thruput_test/ttcpC.cpp (_duplicate): - * tests/Thruput_test/client.cpp (main): - * tests/Thruput_test/ttcp_i.cpp (sendStructSeq): - * tests/Cubit/TAO/DII_Cubit/clnt.cpp: - * tests/Cubit/TAO/DII_Cubit/svr.cpp: Removed a couple of warnings - of unused and uninitialized variables. Included "ace/ACE.h" to - be able to have the _REENTRANT flag. - -Wed Nov 5 00:18:17 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_sequence.cpp: Added code to generate the missing - operator [] for sequences. - -Tue Nov 4 23:38:54 1997 Sumedh Mungee - - * tests/Cubit/TAO/MT_Cubit/{server,client}/Makefile: Removed the - (evil) TAO_HAS_TSS_ORB_CORE flag. Now this functionality is - provided by svc.conf. - - * tests/Cubit/TAO/MT_Cubit/: Fixed the server code to use the new - IDL compiler generated code. - - * TAO/tests/Cubit/TAO/MT_Cubit/client/Task_Client.cpp: Changed the - order of the initializers to remove g++ warnings, and added some - ACE_UNUSED_ARGs. Also removed the hand-crafted stubs, to make way - for the idl-compiler generated files. - -Tue Nov 4 23:21:29 1997 Sergio Flores - - * tests/Cubit/TAO/DII_Cubit/clnt.cpp (main): - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp (run): Changed the format of the - output to be more readable. Also, fixed resolution of the time for - the cube_struct_dii() call. - -Tue Nov 4 21:12:48 1997 Douglas C. Schmidt - - * tao/except.h: Removed print_exception(). It seems unnecessary - and pollutes the global namespace. - -Tue Nov 4 16:58:12 1997 Chris Cleeland - - * {tests/Cubit/TAO/DII_Cubit,tests/Cubit/TAO/IDL_Cubit, - tests/Cubit/TAO/MT_Cubit,tests/Demux_Test, - tests/Thruput_test}/Makefile: Added an explicit definition for - VBIN so that VxWorks can build properly. - - * tao/orb_core.*: Modified TAO_Resource_Factory so that it divides - the information that it tracks between pre-allocated resources and - resources which are allocated by the application. Specifically, - the orb and root poa pointers are in here (though it's possible - that when we move to a full POA implementation that the root poa - can be pre-allocated as well). These pointers are initialized to - zero and are given values by the TAO_ORB_Core instance writing - through back to the TAO_Resource_Factory instance. - - Also, this implementation reduced the number of singletons/TSS - singletons utilized by the resource factory. The initial - "get-it-working" cut used a singleton/tss singleton pair for every - resource, which was quite wasteful in environments such as NT that - don't have many TSS slots available. Perhaps if we get even more - clever this can be reduced even further. - - * tao/except.*: Added print_exception() function for backwards - compatibility. It simply calls - CORBA::Environment::print_exception(). - -Tue Nov 04 10:45:07 1997 - - * TAO_IDL/fe/y.tab.cpp: Enclosed a #pragma ident with #if !defined - ACE_WIN32. Compilers other than SunCC might also need this. - -Tue Nov 4 13:47:26 1997 Aniruddha Gokhale - - * TAO/tests/Cubit/TAO/MT_Cubit: Modified the Makefiles in the - client and server directory so that they use the TAO IDL - compiler. Also added the clean and realclean targets. Updated the - server side cubit.idl because it was different from what the - client was using. - - * TAO_IDL compiler: Fixed the following problems - - (1) Removed the extra call to Release in the generated _narrow - method in be_interface.cpp - - (2) Used ACE_CORBA_1 (Object) instead of CORBA::Object in the - class declaration for interfaces - in be_interface.cpp - - (3) be_interface_fwd.cpp - var_impl had to be updated to generate - code that uses the ptr () method in the calls to _duplicate - - * TAO/tests/Cubit/TAO/IDL_Cubit: Fixed some outstanding issues and - made sure that it works. Updated the README file. - -Tue Nov 04 09:48:51 1997 David L. Levine - - * tao/orb_core.i: disabled the ACE_Hash_Addr::hash_i () - template specialization on g++/VxWorks because g++ - cygnus-2.7.2-960126 can't handle it. - - * tao/except.h (line 118): removed backslash at end of comment line. - Some compilers complain about that. - - * tao/except.cpp (CORBA_SystemException): reordered initializers to - match declaration order. - - * TAO_IDL/Makefile: don't build the IDL compiler on VxWorks. - -Tue Nov 04 06:26:14 1997 Carlos O'Ryan - - * TAO_IDL/be/be_state.cpp: - It still generated fully qualified names for some sequences, - that will not work on NT. - -Tue Nov 04 05:32:44 1997 Douglas C. Schmidt - - * TAO version 0.0.21, released Tue Nov 04 05:32:44 1997. - -Tue Nov 4 04:42:17 1997 Sergio Flores - - * tests/Thruput_test/server.cpp: - * tests/Thruput_test/client.cpp: - * tests/Thruput_test/ttcpS.cpp: - Fixed "print_exception" errors and errors due to some changes in - the orb compiler. - - * tests/Cubit/TAO/MT_Cubit/server/svr.cpp (svc): Use unsigned - int for variable that is used for positive comparisons only. - -Tue Nov 04 01:00:51 1997 - - * tests/Cubit/TAO/IDL_Cubit/IDL_Cubit.dsw: Renamed former test.dsw - to IDL_Cubit.dsw. - - * tests/Cubit/TAO/IDL_Cubit/{client,server}.dsp: Renamed - executables for debug version to client.exe and server.exe on - NT. - - * tests/Cubit/TAO/DII_Cubit/DII_Cubit.dsw: Renamed former test.dsw - to DII_Cubit.dsw. - - * tests/Cubit/TAO/DII_Cubit/{client,server}.dsp: Renamed - executables for debug version to client.exe and server.exe on - NT. - - * tests/Cubit/TAO/IDL_Cubit/Cubit.mak: Added cubit.idl into - makefile and its custom build settings. - - * tests/Cubit/TAO/MT_Cubit/MT_Cubit.dsw: Renamed former - MTCubit.dsw to MT_Cubit.dsw. - -Mon Nov 03 23:16:06 1997 - - * TAO_IDL/ast/ast_expression.cpp (coerce_value): Added an explicit - cast (float) to avoid NT warnging messages. - - * tests/Cubit/TAO/MT_Cubit/server/svr.cpp (svc): Removed - declaration of function print_exception. It's now a member - function of CORBA_Environment. - - * TAO_IDL/fe/y.tab.cpp: Commented out include . This - was causing compilation errors on NT. - - * tests/Cubit/TAO/DII_Cubit/svr.cpp: - * tests/Cubit/TAO/DII_Cubit/clnt.cpp: Changed to use the new - CORBA_Environment::print_exception. - - * tao/except.h (CORBA_Environment): Added ACE_Svc_Export to this - class. - - * tests/Cubit/TAO/MT_Cubit/MTCubit.dsw: - * tests/Cubit/TAO/MT_Cubit/client/client.dsp: - * tests/Cubit/TAO/MT_Cubit/server/server.dsp: - * tests/Cubit/TAO/IDL_Cubit/client.dsp: - * tests/Cubit/TAO/IDL_Cubit/server.dsp: - * tests/Cubit/TAO/IDL_Cubit/test.dsw: Added new workspace and - project files. - - * TAO_IDL/tao_idl.dsp: Moved the output executables to the usual - place. - - * TAO_IDL/be/be.h: Added #ifdef'ed pragma to diable warning 4250 - on NT. This is only temporary and should be fixed later. - - * TAO_IDL/be/be_union.cpp (gen_var_defn): - * TAO_IDL/be/be_structure.cpp (gen_var_defn): - * TAO_IDL/be/be_array.cpp (gen_var_defn): Removed unused local - variables declaration (s). - -Mon Nov 3 23:25:30 1997 Aniruddha Gokhale - - * TAO_IDL Compiler: Files be_sequence.cpp, be_typedef.cpp, - be_state.cpp: Lots of improvements to get sequences to - work. Support for sequences of strings or obj references is - limited. But for all other cases, this seems to be working fine. - - There were some unnecessary lines of code in be_state.cpp that - were giving rise to multiple declarations errors. These are - removed. - -Mon Nov 3 18:30:09 1997 Sergio Flores - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp (main): compare with - "!= 0" rather than "== -1" for errors. - - * tests/Cubit/TAO/IDL_Cubit/cubit.idl (enum discrim): Deleted - enumerations not used. - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp (please_exit): Fixed - unused variable. - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.h (Cubit_Factory_i): - * tests/Cubit/TAO/IDL_Cubit/cubit_i.h (objrefs): Fixed invalid - comparison between a signed and unsigned variable. - - * tests/Cubit/TAO/IDL_Cubit/svr.cpp (main): Fixed comparison of - ">=" on an unsigned variable to compare only ">". - - * TAO_IDL/be/be_typedef.cpp (gen_client_stubs): Removed unused - variable warning. - - * TAO_IDL/fe/y.tab.cpp (yytoks): Added brackets to the array - of structures being initialized. - -Mon Nov 03 18:43:37 1997 Carlos O'Ryan - - * TAO_IDL/be/be_operation.cpp: - "Fixed" skeleton generation code. Sometimes the formal parameter - names for the skeleton can clash with the user defined names for - the (IDL) method parameter names. - To minimize the chances of such a problem I choose very long - parameter names for the skeleton (things like <_tao_enviroment> - instead of just ), but the right solution is to ignore the - user defined parameter names and generate them using some - numbering scheme. - - * TAO_IDL/be/be_predefined_type.cpp: - Generate CORBA::_tc_Object as the TypeCode for all pseudo - object, this is a hack but works for the files we are using - right now (maybe it will fail for complex things, like the - interface repository). - - * TAO_IDL/be/be_sequence.cpp: - Fixed a number of minor problems: - Missing _ptr type for sequences. - The return type for T_var::operator-> was different in the - .h and .i file. - - * TAO_IDL/be/be_type.cpp: - tc_name_ and type_name_ were not initialized, producing some - segfaults under NT. - -Mon Nov 3 13:45:54 1997 Chris Cleeland - - * {tao,TAO_IDL/util,TAO_IDL/narrow,TAO_IDL/fe,TAO_IDL/driver, - TAO_IDL/be,TAO_IDL/ast,Benchmark/benchmark}/Makefile (SHLIB): - Fixed definition so that the extension was(SOEXT) rather than - hard-coded to "so". This makes things compile on VxWorks better. - Thanks to David Levine for pointing this out. - -Sun Nov 02 19:42:08 1997 Douglas C. Schmidt - - * TAO version 0.0.20, released Sun Nov 02 19:42:08 1997. - -Sun Nov 2 19:20:57 1997 Aniruddha Gokhale - - * TAO/tao/except.*: Made the "print_exception" utility function - as a method of class Environment. - - * TAO/tao/giop.cpp: In the TAO_GIOP_Invocation::start method, we - were previously not returning even if the connection establishment - phase was failing. A return statement is inserted. However, there - still are problems when the GIOP_Invocation variable called "call" - goes out of scope. - - * TAO_IDL Compiler: be_interface.cpp - The _bind call now - generates a "char IOR" instead of "static char IOR" since the - latter will be problematic with multiple threads. Thanks to - Arturo Montes for pointing that out. - - * TAO/test/Cubit/TAO/IDL_Cubit : Improved the code so that it uses - the "print_exception" which is now defined on class - CORBA::Environment. The clnt still needs improvement in terms of - handling invalid parameters and gracefully exiting. - - * IDL_Compiler: The bug resulting out of encoding object - references has been fixed atleast on Solaris using g++ as well as - SunCC. Changes made to be_operation.cpp and be_state.cpp such that - the return value for object references is always of type - CORBA::Object_ptr rather than the real interface type. In - addition, keeping in perspective the change that Irfan made and - described below (in encode.cpp), the Any that holds the result - *does not* own the value. In contrast, for the rest of the cases - the result (of type Any) owns the result. - - * be_sequence.cpp: Additional work in progress. Full changelog - entry will be available in the next commit. - -Fri Oct 31 22:20:06 1997 - - * tao/encode.cpp (encode): Changed cast of data from - *(CORBA::Object_ptr *) to (CORBA::Object_ptr). - - * tao/default_server.cpp (parse_args): Manipulation of curarg was - all messed up. Fixed it such that it was not incremented - unnecessarily. - -Fri Oct 31 13:46:04 1997 Chris Cleeland - - * docs/Options.html: Updated to specify new TAO_Resource_Factory - service and its options. - - * docs/releasenotes/orbcore.html: Updated to reflect recent work. - - * tao/orb_core.*: Added the acceptor and related members and - methods from CORBA_ORB. Made TAO_Resource_Factory a Service - Object so that it can be loaded via the Service Configurator. The - option to change its resources between global and thread-specific - is "-ORBresources global" and "-ORBresources tss", respectively. - - * tao/orbobj.*: Moved the acceptor and related members and methods - to TAO_ORB_Core. - - * tests/.../svc.conf: Added Resource Factory as a service. - - * tests/Cubit/TAO/{DII_Cubit,MT_Cubit}/cubitS.cpp, - tests/Thruput_test/ttcpS.cpp, tao/poa.cpp: Changed acceses that - used to go to CORBA_ORB::params() to go to TAO_ORB_Core::params(). - -Fri Oct 31 08:39:54 1997 Aniruddha Gokhale - - * TAO_IDL Compiler - Intermediate commit of all improved features. - - * be/be_type.* : Improved the nested_type_name method such that it - now takes an additional parameter called suffix that has a default - value of NULL. Carlos, Sergio, and myself independently found an - extremely bad piece of code that was getting generated that looked - like the following: - ACE_NESTED_CLASS (XXXX, YYYY)_ptr - - The new convention is to pass the suffix such as "_ptr", or "_var" - or "_out" to this method so that it can generate valid code of the - form: - ACE_NESTED_CLASS (XXXX, YYYY_ptr) - - * be/be_decl.cpp : All the methods such as repoID (), flatname - (), etc now check if the corresponding data member was created or - not. If they are not, the corresponding private method e.g., - compute_repoID (), are invoked. This way we do not have to call - all these private methods in the constructors of all the derived - be classes. The one compelling reason to do it this way is because - the "names" for certain types are not available at construction - time, e.g., sequences. A name to a sequence is assigned from the - context it is in i.e., whether it was a named sequence in the form - of a "typedef" statement or it was an anonymous sequence. - - As of this commit, all calls to such compute_* methods in the - constructors of all the derived be classes are commented out and - will eventually disappear in the next commit. - - * be/be_decl.cpp : One more change in be_decl.cpp is to add the - case for "interface_fwd" in the generation of the _var and _out - definitions and implementations. - - * be/be_helper.* : Added two new methods called "gen_ifdef_macro" - and "gen_endif". These are required to generate the #if !defined - (...) #endif macros. These are very essential if the IDL - has forward declarations of interfaces. Forward declarations of - interfaces must generate a forward class declaration. In addition, - it has to typedef the "_ptr" type and define the "_var" and "_out" - types. However, the real "be_interface" class does this too which - can result in "multiple declarations" errors from the C++ - compiler. Hence we use this scheme. As in the case of the - nested_type_name method mentioned above, this method also takes a - default "suffix" parameter (= 0). This is required for the "_var", - "_ptr", and "_out" suffixes. - - * be/be_interface.cpp - be/be_interface_fwd.cpp: - - Used the TAO_OutStream::gen_ifdef_macro () and gen_endif methods - for the definitions of the _ptr, _var, and _out classes and their - implementations. - - *be/be_sequence.* : Lot of modifications and change in the design - in terms of handling the base types that themselves could be - sequences. Although the AST_Sequence i.e., OMG IDL does not define - a "sequence" to be a scope producing construct like structs or - unions, we choose to make "be_sequence" to be a scope producing - construct. This is no way alters the OMG IDL language because the - front-end is still the same. "be_sequence" was made to inherit - from scope because the sequence mapping gives rise to a C++ class - which is a scoping construct. This way, base types that turn out - to be anonymous sequences can be assigned a parent scope and their - name generation will fall in line with other classes. - - There are certain features missing with sequences at this commit - time, but this should reduce tweaking the generated code to a - large extent. - - * be/be_state.cpp: Update the code for handling sequences and - typedefs. Typedefs should be handled properly now. - - * All other *.cpp files: Either commented out the compute_* calls - in the constructors or removed them. - -Fri Oct 31 03:00:09 1997 Chris Cleeland - - * tao/orb_core.cpp: Moved call to connector's open() into init(), - thus insuring that it gets called only AFTER all the resources are - available from the Resource Factory. - - * tao/orb_core.*: Changed data members to be associations rather - than containment. This allows decoupling of the - "thread-specificness" of these resources from the - thread-specificness of the general TAO_ORB_Core container. Also - added set accessors for those resources. - - Added TAO_Resource_Factory class from which the TAO_ORB_Core - container initializes itself. For now this remains a singleton - which is, at compile-time, determined to be either TSS or not. - But, soon, it will be loaded via the Service Configurator and its - TSS nature determined at runtime. - - * tao/giop.h: Updated to use the new ACE macro - ACE_CLASS_IS_NAMESPACE. - - * tao/default_server.*: Implemented the new open() method so that - it initializes the Reactive and Threaded strategies from the - information in TAO_ORB_Core. - - * tao/server_factory.*: Added open() method to be called after all - ORB resources are loaded up. This method can then be used by a - strategy factory to further initialize its contained strategies if - they require handles to resources to which the ORB might legislate - access. The default implementation does nothing. - -Fri Oct 31 01:03:05 1997 - - * tests/Cubit/TAO/IDL_Cubit/svr.cpp (main): obj was not declared. - Commented out use of obj in dmsg1. - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp (Cubit_Factory_i): - numobjs_ was used before it was assigned. - - * TAO/TAO_IDL/TAO_IDL.{mak,mdp}: Added VC++4.2 make files. - - * TAO_IDL/ast/ast_expression.cpp (dump): Streaming the enum was - ambiguous. Therefore the enum was cast to an int. - -Thu Oct 30 22:50:44 1997 Carlos O'Ryan - - * tao/corba.h: - Added a definition for ACE_NESTED_CLASS, maybe it is defined in - some place else, but I couldn't find it. - - * TAO_IDL/be/be_interface.cpp: - Fixed the definition for skeleton destructors. - - * TAO_IDL/be/be_helper.cpp: - Added a lot of redundant ACE_OS::fflush() calls. Apparently we - have two FILE* or file descriptors over the same file, bt the - fflush hides the problem. - - * TAO_IDL/be/be_decl.cpp: - Fixed inconsistency between operator-> declaration and - definition for _out classes. - -Thu Oct 30 14:06:54 1997 Sergio Flores - - * TAO_IDL/fe/Makefile: - Added an expression to the sed command in the rule to construct - lex.yy.cpp, that replaces ECHO with TAO_ECHO, because a - different ECHO macro is already defined in - /usr/include/sys/termios.h - - * TAO_IDL/fe/idl.ll: - Fixed some warnings about nested comments. - Changed the declaration of variable i to outside of - the 'for' initialization to avoid obsolete binding warnings. - - * TAO_IDL/be/be_interface_fwd.cpp (gen_client_header): - Added ACE_UNUSED_ARG macro to avoid unused variable warning, - for variable i. - - * TAO_IDL/be/be_constant.cpp (exprtype_to_string): - * TAO_IDL/util/utl_error.cpp (exprtype_to_string): - Added case statements to handle the rest of un-handled - enumerations from AST_Expression::ExprType. These will - handle a default value (i.e. NULL). Enumerations added are: - AST_Expression::EV_wstring - AST_Expression::EV_wchar - AST_Expression::EV_longdouble - AST_Expression::EV_ulonglong - AST_Expression::EV_longlong - -Thu Oct 30 09:56:41 1997 Chris Cleeland - - * tao/giop.h: Added comments to TAO_GIOP class explicitly pointing - out its use as a namespace. Concurrently, I also scoped the CTOR, - Copy CTOR, and DTOR as 'private' so nobody can mistakenly - instantiate one of these puppies. - -Thu Oct 30 03:40:26 1997 - - * tests/Cubit/TAO/DII_Cubit/client.dsp: - * tests/Cubit/TAO/DII_Cubit/server.dsp: Updated include files - path and libarary path. - - * tao/giop.cpp (close_connection): Use ACE_HANDLE instead of int. - -Thu Oct 30 02:53:20 1997 Douglas C. Schmidt - - * TAO version 0.0.19, released Thu Oct 30 02:53:20 1997. - -Thu Oct 30 02:20:21 1997 Sergio Flores - - * tests/IDL_Cubit: - Added more comments and changed the header to be ACE'ified. - Make output more consistent. - -Thu Oct 30 02:12:27 1997 Sumedh Mungee - - * tests/{TAO, Cubit}: Changed the directory heirarchy to the - following: tests/Cubit/TAO/ now contains all the Cubit examples, - i.e. IDL_Cubit, MT_Cubit and DII_Cubit, instead of tests/. Updated - the README and Makefiles to reflect this. DII_Cubit is the - handcrafted "original" Cubit example. - - * tests/Cubit/COOL: Added the COOL version of the Cubit test. The - COOL version is written for Chorus COOL version 4.1. - -Wed Oct 29 22:26:10 1997 Douglas C. Schmidt - - * tests/IDL_Cubit/clnt.cpp (init): Fixed the error handling so we - exit correctly when things go wrong. - - * tao/connect.cpp (open): Revised the code to use the new - ACE_LACKS_SOCKET_BUFSIZ to detect when this feature isn't - supported. - - * tao/{giop,connect}: Added a nifty typedef called TAO_SVC_HANDLER - to remove the drudgery of expanding the template each time. - - * tao: Changed the name of TAO_OA_Connection_Handler to - TAO_Server_Connection_Handler to be compliant with the - TAO_Client_Connection_Handler. - -Wed Oct 29 20:47:47 1997 Sergio Flores - - * tests/IDL_Cubit/clnt.cpp: - * tests/IDL_Cubit/clnt.h: - Cleaned up the code. Added ACE_Profile_Timer to time the calls. - Changed copyright header. Added more comments. - -Wed Oct 29 18:55:57 1997 Douglas C. Schmidt - - * tao/giop: Added "_"'s to the data members in - TAO_GIOP_Invocation. - - * tao/giop (send_request): Swaped the order of the parameters for - send_request() so that it would be consistent with recv_request. - - * tao/{connect,giop}: Changed read_message() to recv_request(), - and send_message() to send_request() since these things really - work on GIOP requests. - - * tao/{connect,giop}: Changed read_message() to recv_message(), - which is more like other parts of ACE. - - * tao/connect.cpp: Fixed the calls to read_message() and - send_message() so that they don't try to modify "this." - - * tao/giop: Changed the send_message() and read_message() in the - TAO_GIOP class to take ACE_Svc_Handler rather than TAO_Client_Connection_Handler. - -Wed Oct 29 17:53:12 1997 - - * tao: Added TAO_HAS_TSS_ORB_CORE to tao and Cubit NT makefiles. - This probably needs to be added to the other NT makefiles. - - * tests/Cubit/TAO/svc.conf: Updated files to pass the correct - options to the factory. - -Wed Oct 29 16:07:20 1997 Chris Cleeland - - * tao/giop.*: Changed most methods that took ACE_SOCK_Stream& - parameters to take TAO_Client_Connection_Handler*& parameters. - This makes it easier to clean up properly after errors. Also - #ifdef'd out seemingly unused code (TAO_GIOP::incoming_message). - Fixed call to ACE_Svc_Handler::idle() to not contain an argument. - - * docs/Options.html: Updated the documentation to reflect recent - changes. - -Wed Oct 29 15:59:30 1997 Sergio Flores - - * tests/IDL_Cubit/clnt.cpp: OO'ified the code. Added class - Cubit_Client. - * tests/IDL_Cubit/clnt.h: added this file to contain the class - definition. - -Wed Oct 29 11:01:11 1997 Aniruddha Gokhale - - * TAO_IDL compiler: be_type.cpp::nested_type_name: A quick commit - made that includes an improvement over the previous scheme of - generating ACE_NESTED_CLASS macros. We handle the problem of - generating fully scoped names for types that were defined in some - ancestor of the scope in which that type is being used. - - * Makefiles under TAO_IDL: Fixed a bug in the Makefiles under all - the subdirectories. This bug was reported by "ARTURO MONTES" - . The bug was causing circular - dependencies on the libraru that was getting compiled. - -Wed Oct 29 06:17:36 1997 Nanbor Wang - - * tao/default_server.cpp (parse_args): Must increase the loop - counter. - -Wed Oct 29 02:11:43 1997 Douglas C. Schmidt - - * TAO version 0.0.18, released Wed Oct 29 02:11:43 1997. - -Wed Oct 29 00:56:26 1997 Chris Cleeland - - * tests/Cubit/TAO/svc.conf: Updated documentation comments to - reflect factory option changes. - - * tao/orbobj.*: Wiped argvec_shift and all its bugs off the face - of the earth. Manojkumar Acharya should prove - to be very happy about this turn of events. :-) - - * tao/orbobj.cpp: Weeded out old, dead code here and there and - migrated much of what had been in ORB_init() into - TAO_ORB_Core::init(). - - * tao/orb_core.*: Added methods init() and fini() which perform - ORB Core-related initializations and cleanups, respectively. This - is all in anticipation of having a Unified Factory which provides - ORB Core as well as other information. Also began stubbing out - and migrating various data members and associated accessors so - that they are pointers rather than actual members. The next step - is to actually make them pointers and have everything get - initialized properly and deterministically and keep everything - working. - - * tao/{giop,orb_core}.cpp: Revised code due to recent changes in - ACE related to the Caching connector. - - * tao/default_server.{h,cpp} (parse_args): This method now uses - options of the style -ORBfoo rather than the previously-cryptic - single-letter options. This should allow us to eventually allow - this same routine to parse args from the command line as well as - inside the svc.conf file. The price we pay for consistency, - however, is verbosity to the point of insanity (e.g., - -ORBconcurrency...blech!) These options are briefly documented in - the method header as well as in subsequent svc.conf files. - - * tao/decode.cpp: Added some comments for arguments. - - * tao/connect.{h,cpp}: Moved Connector-related typedefs and - corresponding template instantiations into the proper - file--orb_core.*. - - * tao/orb_core.cpp (init): Moved much of what used to be - ORB_init() into here. Changed the manner in which objref style - was determined--it's no longer via a special ORB name but rather - by the -ORBobjrefstyle option which can have either the value - "IOR" or "URL" (default is URL). - -Tue Oct 28 21:15:36 1997 Douglas C. Schmidt - - * build/SunOS5.5/TAO/tests/IDL_Cubit/clnt.cpp (main): Fixed the - code so that if you give incorrect parameters the program exits - cleanly, rather than segfaulting. - -Tue Oct 28 20:49:28 1997 Nanbor Wang - - * tao/giop.cpp (start): NT Access Violation error, AGAIN! Added - codes to reset this->handler_ so that - ACE_Cached_Connect_Strategy won't complain. - -Tue Oct 28 19:19:05 1997 Aniruddha Gokhale - - * TAO_IDL/be/{be_state.cpp, be_union.cpp, be_struct.cpp}: Added code - that will generate the ACE_NESTED_CLASS macro - - *TAO_IDL/be/be_type.cpp: Implemented be_type::nexted_type_name - that will generate the ACE_NESTED_CLASS macro. However, this may - not be completely correct at this point because we want to see if - teh compiler fails for types defined in some ancestor and whose - fully scoped names are generated . - - * TAO_IDL/be/be_interface.cpp: Added code that will generate the - _bind call on the interface class. - - * TAO/tests/IDL_Cubit: Added the _bind call in clnt.cpp. Improved - the README file. - - *MAXNAMELEN : There was a clash with TAO_CodeGen::MAXNAMELEN. So - it has been substituted by NAMEBUFSIZE as a macro in be_codegen.h - -Mon Oct 27 22:22:22 1997 Aniruddha Gokhale - - * TAO_IDL/be_decl.cpp: Added a ptr () function to the _var classes - hat returns the underlying ptr_ data member. This ptr () member - function is now used to pass a pointer type to constructor and - assignment operator from a T_var class. - - * TAO_IDL/be_state.cpp: Important changes related to generation of - return values of operations in the stubs. In addition, an & was - missing for passing string types. Some additional bugs arising out - of operations with void return type have been fixed. - - * ./tests/IDL_Cubit: This test has been modified to include a - factory interface that reads a key for the cubit object and - produces an obj reference for Cubit. In addition, a preliminary - version of the _bind call has been tested with IDL_Cubit. - - *MAXNAMELEN : Carlos informed me that MAXNAMELEN was a small - constant on some platforms. This has been changed to - TAO_CodeGen::MAXNAMELEN with a value of 100. - -Mon Oct 27 22:07:58 1997 Carlos O'Ryan - - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_helper.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_structure.cpp: - * TAO_IDL/be/be_typedef.cpp: - * TAO_IDL/be/be_union.cpp: - Set this->cli_stub_gen_ to I_TRUE once the code has been - emitted. - -Mon Oct 27 19:34:08 1997 Carlos O'Ryan - - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_enum.cpp: - Set this->cli_stub_gen_ to I_TRUE at the end. - - * TAO_IDL/be/be_typedef.cpp: - Set the state to TAO_CodeGen::TAO_TYPEDEF_CH instead of just - struct. - -Mon Oct 27 15:22:24 1997 Sergio Flores - - * TAO_IDL/be/be_state.cpp: - * TAO_IDL/be_include/be_codegen.h: - * TAO_IDL/be_include/be_factory.h: - * TAO_IDL/be_include/be_state.h: - * tao/iioporb.cpp: - * tao/marshal.cpp: - * tao/optable.cpp: - * tao/optable.h: - * tao/singletons.h: - The ACE_Singleton lock type needs to be changed from - ACE_SYNCH_MUTEX (or ACE_SYNCH_RW_MUTEX) ACE_SYNCH_RECURSIVE_MUTEX. - ACE handles those more efficiently for its singletons. Change - suggested by David Levine. - -Mon Oct 27 11:59:51 1997 Chris Cleeland - - * tao/orbconf.h: Made it so _FAR is defined all the time. Thanks - to Manojkumar Acharya for reporting this. - -Sun Oct 26 22:18:01 1997 Douglas C. Schmidt - - * TAO version 0.0.17, released Sun Oct 26 22:18:01 1997. - -Sun Oct 26 17:53:25 1997 Douglas C. Schmidt - - * {tao,tests}/Makefile: Commented out the TAO_HAS_TSS_ORBCORE in - these Makefiles since it is going away anyhow and is confusing... - - * tests/IDL_Cubit/svc.conf, - tests/Cubit/TAO/svc.conf: - Changed the default concurrency policy to be reactive so that - things work correctly if TAO_HAS_TSS_ORBCORE. Thanks to Sumedh - for pointing this out. - - * tao/orbobj.cpp (ORB_init): Put the TAO_DEFAULT_SERVER_PORT into - ACE's OS.h file and used it in TAO. - -Sun Oct 26 15:07:18 1997 Chris Cleeland - - * tao/params.h: Eliminated forward decls of the now-defunct ROA - class. - - * tao/orb_core.h (TAO_DEFAULT_PORT): Added manifest constant for - default port. - - * tao/orbobj.cpp (ORB_init): Eliminated ugly anonymous constant - use for hbuf's size. Utilized manifest constant for default port. - - * tao/giop.cpp: Changed calls to - TAO_Client_Connection_Handler::in_use() to call the underlying - Svc_Handler::idle(). - - * tao/connect.{h,i}: Eliminated in_use() flags because they're no - longer needed with the new Strategy Connector. - - * tao/iioporb.cpp (string_to_object): Removed setting of the orb - in the underlying CORBA::Object because it's no longer there. - - * tao/object.{h,i} (CORBA_Object): Eliminated the pointer to an orb - within this object. This should help solve some problems in - passing object references across the wire. - - * tao/connect.cpp: Added template instantiations for - ACE_Hash_Map_Iterator to reflect Irfan's recent changes. - - * tests/IDL_Cubit/README: Updated documentation on the server to - reflect current reality. - -Sun Oct 26 01:01:32 1997 Douglas C. Schmidt - - * tao/orbobj.cpp: Redid the template specialization of Hash_Addr - to account for the new changes. - -Sun Oct 26 01:05:36 1997 - - * tao/corba.h: Changed from using Strategies_T.h to Strategies.h. - - * tao/connect.h: Removed a template argument form ACE_Hash_Addr. - Removed explicit instantiation of compare_i. - - * tao/connect.cpp: Removed a template argument from explicit - instantiation of ACE_Hash_Addr. - - * tests/Cubit/TAO/clnt.cpp (main): Added a simple class - ACE_Winsock_proper_shutdown here to shutdown winsock properly. - This class should be removed later once we figure out how to - close down winsock properly from ACE. - - * tests/Cubit/TAO/svc.conf: Changed the name of shared object from - libTAO to TAO. Added configuration lines for using debug - version of TAO library on NT. - -Sun Oct 26 01:47:04 1997 Sergio Flores - - * TAO_IDL/be/be_codegen.cpp (upcase): - * TAO_IDL/util/utl_string.cpp (canonicalize): - * TAO_IDL/be/be_decl.cpp (tc_name2long): - Added "unsigned" to index variable "i" used in for() loop, - to avoid warning "comparison between unsigned and signed" - - * TAO_IDL/be/be_decl.cpp (compute_flatname): - * TAO_IDL/be/be_decl.cpp (compute_repoID): - * TAO_IDL/be/be_interface.cpp (compute_fullskelname): - Fixed error "second - I_FALSE;", should be "second = I_FALSE;" - - * TAO_IDL/be/be_operation.cpp (gen_server_skeletons): - * TAO_IDL/be/be_state.cpp (gen_code): - Initialized pointers to 0 - - * TAO_IDL/driver/drv_preproc.cpp (DRV_pre_proc): - * TAO_IDL/be/be_operation.cpp (gen_server_header): - * TAO_IDL/be/be_operation.cpp (gen_client_header): - * TAO_IDL/be/be_decl.cpp (gen_out_defn): - * TAO_IDL/be/be_decl.cpp (gen_var_defn): - * TAO_IDL/be/be_scope.cpp (gen_client_header): - * TAO_IDL/be/be_state.cpp (gen_code): - * TAO_IDL/be/be_helper.cpp (operator<<): - * TAO_IDL/be/be_union.cpp (tc_encap_len): - * TAO_IDL/be/be_typedef.cpp (gen_client_stubs): - * TAO_IDL/be/be_string.cpp (gen_client_header): - * TAO_IDL/be/be_root.cpp (gen_idl2cplusplus_mapping): - * TAO_IDL/be/be_predefined_type.cpp (gen_typecode): - * TAO_IDL/be/be_interface.cpp (gen_client_stubs): - * TAO_IDL/be/be_interface.cpp (gen_server_skeletons): - * TAO_IDL/be/be_interface.cpp (gen_operation_table): - * TAO_IDL/be/be_interface.cpp (gen_server_inline): - * TAO_IDL/be/be_interface.cpp (tc_encap_len): - * TAO_IDL/be/be_field.cpp (gen_encapsulation): - * TAO_IDL/be/be_field.cpp (tc_encap_len): - * TAO_IDL/be/be_enum_val.cpp (gen_encapsulation): - * TAO_IDL/be/be_enum.cpp (tc_encap_len): - * TAO_IDL/be/be_constant.cpp (gen_client_header): - * TAO_IDL/be/be_constant.cpp (gen_client_stubs): - * TAO_IDL/be/be_argument.cpp (gen_client_header): - * TAO_IDL/be/be_argument.cpp (gen_client_stubs): - * TAO_IDL/be/be_argument.cpp (gen_server_header): - * TAO_IDL/be/be_argument.cpp (gen_server_skeletons): - * TAO_IDL/be/be_array.cpp (be_array): - * TAO_IDL/be/be_array.cpp (gen_client_header): - * TAO_IDL/be/be_array.cpp (gen_client_inline): - * TAO_IDL/be/be_array.cpp (gen_forany_defn): - * TAO_IDL/be/be_array.cpp (gen_forany_impl): - * TAO_IDL/util/utl_stack.cpp (push): - Added ACE_UNUSED_ARG macro to avoid unused variable warning, - for variable slen. - - * TAO_IDL/be_include/be_helper.h (class TAO_OutStream): - Made destructor virtual; we have virtual member functions. - - * TAO_IDL/be/be_codegen.cpp (TAO_CodeGen): - * TAO_IDL/be/be_decl.cpp (be_decl): - * TAO_IDL/util/utl_stack.cpp (UTL_ScopeStack): - * TAO_IDL/util/utl_scope.cpp (UTL_ScopeActiveIterator): - Reordered member initializers to match declaration order to - satisfy the compiler. - - * TAO_IDL/util/utl_scope.cpp (lookup_primitive_type): - Added "default" case to switch to return NULL. - - * TAO_IDL/util/utl_scope.cpp (add_attribute): - * TAO_IDL/util/utl_scope.cpp (add_operation): - * TAO_IDL/util/utl_scope.cpp (add_argument): - * TAO_IDL/util/utl_scope.cpp (add_union_branch): - * TAO_IDL/util/utl_scope.cpp (add_field): - * TAO_IDL/util/utl_scope.cpp (add_typedef): - * TAO_IDL/util/utl_scope.cpp (add_sequence): - * TAO_IDL/util/utl_scope.cpp (add_array): - Use 0 instead of NULL to initialize pointers in the - member initialization list, again to avoid ANSI C++ forbids - implicit (void *) conversions warnings. - -Sun Oct 26 01:01:32 1997 Douglas C. Schmidt - - * TAO version 0.0.16, released Sun Oct 26 01:01:32 1997. - -Sun Oct 26 00:32:29 1997 Douglas C. Schmidt - - * TAO/TAO_IDL/fe/idl.ll: Reverted a change that Carlos had - overwritten. I guess he's not getting enough sleep these - days... ;-) - -Sun Oct 26 00:31:38 1997 - - * tao/orb_core.i (hash_i): Redid the specialization in view of the - new changes. - -Sat Oct 25 18:14:14 1997 Douglas C. Schmidt - - * TAO_IDL/be/be_interface.cpp (be_interface): Worked around a - nasty MSVC++ compiler bug that doesn't like CORBA::Object - (object_ptr). So we use an existing ACE macro for this. - - * TAO_IDL/be/be_interface.cpp (be_interface): Fixed yet another - round of uninitialized data members. It is clear that the - original authors of this code wouldn't pass my ugrad programming - course... - - * TAO_IDL/fe/idl.ll (idl_parse_line_and_file): Had to make a minor - change to skip over the #line directive from Microsoft. In - addition, had to add some code to put Microsoft-style pathnames - into a canonical form (i.e., replacing = '\\' with '\'). Thanks - to Darrell for helping with this. - - * TAO_IDL/fe/idl.ll: Added a new rule to handle the fact - that the Microsoft C++ preprocessor generates tags of the - form - - #line 1 "bar.idl" - - rather than - - #1 "bar.idl" - - which is what UNIX C++ compilers seem to do. - - * TAO_IDL/be/be_decl.cpp (compute_fullname, compute_flatname): - Fixed a nasty bug where the original author thought new always - returned 0'd memory... Sheesh! - - * TAO_IDL/driver/drv_preproc.cpp: Changed fd < 0 to fd == - ACE_INVALID_HANDLE to be more portable. - - * TAO_IDL/be/be_decl.cpp (be_decl): There were two fields, - flatname_ and repoID_, that weren't given initial values of 0. - Thanks to Purify for finding this! - - * TAO_IDL/fe/idl.{yy,ll}: Replaced all uses of type names - (e.g., FLOAT) with IDL_ (e.g., IDL_FLOAT) so that the code - won't bomb on lame systems like NT that typedef basic types to all - capitals (e.g., typedef float FLOAT). - -Sat Oct 25 22:28:42 1997 Carlos O'Ryan - - * TAO_IDL/fe/idl.ll: Since yytext may be an "unsigned char*" under - HP-UX they define an "alias" __yytext. This hack fails miserably - when using flex, since then the yytext thing can change on the - fly. I use an inline function instead. Added support for #line - preprocessor directives. - - * TAO_IDL/driver/drv_preproc.cpp: Documented some of my changes - for NT, namely the fact that unlinking the output file while - still open causes the parsing to fail on NT. - - * TAO_IDL/tao_idl.dsp: Added new folders for source files, header - files, template files, etc. I modelled this based on the ACE - project files. - -Sat Oct 25 22:05:43 1997 Sergio Flores - - * TAO_IDL/ast/ast_constant.cpp (exprtype_to_string): - Added case statements to handle the rest of un-handled - enumerations from AST_Expression::ExprType. These will - handle a default value (i.e. the same case as - AST_Expression::EV_none). - - * TAO_IDL/ast/ast_expression.cpp (operator==): - * TAO_IDL/ast/ast_expression.cpp (compare): - Make the default return value I_FALSE instead of NULL which - was giving "lacks a cast" warning. - - * TAO_IDL/ast/ast_expression.cpp (fill_definition_details): - Use 0 instead of NULL to initialize pointers in the - member initialization list, again to avoid ANSI C++ forbids - implicit (void *) conversions warnings. - - * TAO_IDL/ast/ast_expression.cpp (eval_symbol): - Initialized pointers to 0. - -Sat Oct 25 17:45:17 1997 Aniruddha Gokhale - - * TAO_IDL/driver/drv_preproc.cpp: Fixed the same bug that Sumedh - fixed. In addition, ACEified the calls to strcat and strcmp in - that file. - - * TAO_IDL/fe/idl.ll: Used %array in the defintion section so that - flex uses yytext as an array of characters rather than pointer to - char. The pointer case was resulting in a segmentation fault due - to lack of memory allocation for the yytext variable. However, we - choose to use the array approach to be compatile with "lex" - behavior. - -Sat Oct 25 1997 Sumedh Mungee - - * TAO_IDL/driver/drv_preproc.cpp: Fixed proper tmp filename - creation. - -Sat Oct 25 14:14:53 1997 Carlos O'Ryan - - * TAO_IDL/tao_idl.dsw: - * TAO_IDL/tao_idl.dsp: - Added a MSVC++ project file for the IDL compiler, needs several - revisions byt the NT experts before shipping, but it has served - me well. - - * TAO_IDL/driver/drv_fork.cpp: - * TAO_IDL/driver/drv_preproc.cpp: - We use ACE components to fork&exec subprocesses, get the default - TMP directory and generate protable pathnames. - In one case the mapping to NT is not clear: the use case is fork - to get a "fresh" copy of the process and provide a unit of - protection for the parent; this feature is only used if more - than one IDL file is compiled at the same time. - - * TAO_IDL/be/be_decl.cpp: - Fixed minor bug, it said "second - I_FALSE;", it should be - "second = I_FALSE - - * TAO_IDL/ast/ast_argument.cpp: - * TAO_IDL/ast/ast_array.cpp: - * TAO_IDL/ast/ast_attribute.cpp: - * TAO_IDL/ast/ast_check.cpp: - * TAO_IDL/ast/ast_concrete_type.cpp: - * TAO_IDL/ast/ast_constant.cpp: - * TAO_IDL/ast/ast_decl.cpp: - * TAO_IDL/ast/ast_enum.cpp: - * TAO_IDL/ast/ast_enum_val.cpp: - * TAO_IDL/ast/ast_exception.cpp: - * TAO_IDL/ast/ast_expression.cpp: - * TAO_IDL/ast/ast_field.cpp: - * TAO_IDL/ast/ast_generator.cpp: - * TAO_IDL/ast/ast_interface.cpp: - * TAO_IDL/ast/ast_interface_fwd.cpp: - * TAO_IDL/ast/ast_module.cpp: - * TAO_IDL/ast/ast_operation.cpp: - * TAO_IDL/ast/ast_predefined_type.cpp: - * TAO_IDL/ast/ast_recursive.cpp: - * TAO_IDL/ast/ast_redef.cpp: - * TAO_IDL/ast/ast_root.cpp: - * TAO_IDL/ast/ast_sequence.cpp: - * TAO_IDL/ast/ast_string.cpp: - * TAO_IDL/ast/ast_structure.cpp: - * TAO_IDL/ast/ast_type.cpp: - * TAO_IDL/ast/ast_union.cpp: - * TAO_IDL/ast/ast_union_branch.cpp: - * TAO_IDL/ast/ast_union_label.cpp: - * TAO_IDL/be/be_args.cpp: - * TAO_IDL/be/be_constant.cpp: - * TAO_IDL/be/be_generator.cpp: - * TAO_IDL/be/be_init.cpp: - * TAO_IDL/be/be_produce.cpp: - * TAO_IDL/be_include/be.h: - * TAO_IDL/be_include/be_generator.h: - * TAO_IDL/driver/drv_args.cpp: - * TAO_IDL/driver/drv_fork.cpp: - * TAO_IDL/driver/drv_init.cpp: - * TAO_IDL/driver/drv_main.cpp: - * TAO_IDL/driver/drv_preproc.cpp: - * TAO_IDL/driver/drv_private.cpp: - * TAO_IDL/fe/fe_declarator.cpp: - * TAO_IDL/fe/fe_extern.cpp: - * TAO_IDL/fe/fe_init.cpp: - * TAO_IDL/fe/fe_interface_header.cpp: - * TAO_IDL/fe/fe_private.cpp: - * TAO_IDL/fe/lex.yy.cpp: - * TAO_IDL/fe/y.tab.cpp: - * TAO_IDL/include/ast.h: - * TAO_IDL/include/ast_argument.h: - * TAO_IDL/include/ast_array.h: - * TAO_IDL/include/ast_attribute.h: - * TAO_IDL/include/ast_concrete_type.h: - * TAO_IDL/include/ast_constant.h: - * TAO_IDL/include/ast_decl.h: - * TAO_IDL/include/ast_enum.h: - * TAO_IDL/include/ast_enum_val.h: - * TAO_IDL/include/ast_exception.h: - * TAO_IDL/include/ast_expression.h: - * TAO_IDL/include/ast_extern.h: - * TAO_IDL/include/ast_field.h: - * TAO_IDL/include/ast_generator.h: - * TAO_IDL/include/ast_interface.h: - * TAO_IDL/include/ast_interface_fwd.h: - * TAO_IDL/include/ast_module.h: - * TAO_IDL/include/ast_operation.h: - * TAO_IDL/include/ast_predefined_type.h: - * TAO_IDL/include/ast_root.h: - * TAO_IDL/include/ast_sequence.h: - * TAO_IDL/include/ast_string.h: - * TAO_IDL/include/ast_structure.h: - * TAO_IDL/include/ast_type.h: - * TAO_IDL/include/ast_typedef.h: - * TAO_IDL/include/ast_union.h: - * TAO_IDL/include/ast_union_branch.h: - * TAO_IDL/include/ast_union_label.h: - * TAO_IDL/include/be_extern.h: - * TAO_IDL/include/drv_extern.h: - * TAO_IDL/include/drv_private.h: - * TAO_IDL/include/fe_declarator.h: - * TAO_IDL/include/fe_extern.h: - * TAO_IDL/include/fe_interface_header.h: - * TAO_IDL/include/fe_private.h: - * TAO_IDL/include/global_extern.h: - * TAO_IDL/include/idl.h: - * TAO_IDL/include/idl_bool.h: - * TAO_IDL/include/idl_defines.h: - * TAO_IDL/include/idl_extern.h: - * TAO_IDL/include/idl_fwd.h: - * TAO_IDL/include/idl_global.h: - * TAO_IDL/include/idl_narrow.h: - * TAO_IDL/include/intlmacros.h: - * TAO_IDL/include/nr_extern.h: - * TAO_IDL/include/util.h: - * TAO_IDL/include/utl_decllist.h: - * TAO_IDL/include/utl_error.h: - * TAO_IDL/include/utl_exceptlist.h: - * TAO_IDL/include/utl_exprlist.h: - * TAO_IDL/include/utl_identifier.h: - * TAO_IDL/include/utl_idlist.h: - * TAO_IDL/include/utl_indenter.h: - * TAO_IDL/include/utl_labellist.h: - * TAO_IDL/include/utl_list.h: - * TAO_IDL/include/utl_namelist.h: - * TAO_IDL/include/utl_scope.h: - * TAO_IDL/include/utl_scoped_name.h: - * TAO_IDL/include/utl_stack.h: - * TAO_IDL/include/utl_string.h: - * TAO_IDL/include/utl_strlist.h: - * TAO_IDL/include/utl_tmpl/utl_decllist.h: - * TAO_IDL/include/utl_tmpl/utl_exceptlist.h: - * TAO_IDL/include/utl_tmpl/utl_exprlist.h: - * TAO_IDL/include/utl_tmpl/utl_idlist.h: - * TAO_IDL/include/utl_tmpl/utl_labellist.h: - * TAO_IDL/include/utl_tmpl/utl_list.h: - * TAO_IDL/include/utl_tmpl/utl_namelist.h: - * TAO_IDL/include/utl_tmpl/utl_strlist.h: - * TAO_IDL/narrow/narrow.cpp: - * TAO_IDL/util/utl_decllist.cpp: - * TAO_IDL/util/utl_error.cpp: - * TAO_IDL/util/utl_exceptlist.cpp: - * TAO_IDL/util/utl_exprlist.cpp: - * TAO_IDL/util/utl_global.cpp: - * TAO_IDL/util/utl_identifier.cpp: - * TAO_IDL/util/utl_idlist.cpp: - * TAO_IDL/util/utl_indenter.cpp: - * TAO_IDL/util/utl_labellist.cpp: - * TAO_IDL/util/utl_list.cpp: - * TAO_IDL/util/utl_namelist.cpp: - * TAO_IDL/util/utl_scope.cpp: - * TAO_IDL/util/utl_stack.cpp: - * TAO_IDL/util/utl_string.cpp: - * TAO_IDL/util/utl_strlist.cpp: - * TAO_IDL/util/utl_tmpl/utl_decllist.cpp: - * TAO_IDL/util/utl_tmpl/utl_exceptlist.cpp: - * TAO_IDL/util/utl_tmpl/utl_exprlist.cpp: - * TAO_IDL/util/utl_tmpl/utl_idlist.cpp: - * TAO_IDL/util/utl_tmpl/utl_labellist.cpp: - * TAO_IDL/util/utl_tmpl/utl_list.cpp: - * TAO_IDL/util/utl_tmpl/utl_namelist.cpp: - * TAO_IDL/util/utl_tmpl/utl_strlist.cpp: - Removed a *big* number of warnings, in an attempt to surface - real problems. The main one was "#pragma ident" and some unused - variables. - -Sat Oct 25 06:22:03 1997 Aniruddha Gokhale - - * TAO_IDL/fe/idl.yy: I got errors parsing the idl.yy thru - bison. There were errors indicating "type clash on default action". - - This had to do with the fact that the non-terminal "type_dcl" did not - have any type defined for it, but it had "struct_type", "union_type" - and others on the right-hand side of the rules. The default action of - YACC is supposed to assign1 to. So the type for "struct_type" - that happened to be a AST_Decl node was getting assigned to the - non-terminal "type_dcl" who had no type. - - I am very surprised that the "yacc" on our Sparcs never ever gave this - error, but bison did. - - Hence I have modified idl.yy slightly so that I have {$$ = 0;} as the - default action. In addition, the non-terminal "type_dcl" is now - defined to be of type "ival" which is defined as long inside the - %union clause. - - Above all, the bison generated files required some prototypes. So I - had to add the following to idl.yy in the declarations section. - - int yylex (void); - void yyerror (char *); - extern "C" yywrap (void); - - Somehow, this yywrap had to be under extern "C". I don't know why the - others need not be under extern "C". - - -Sat Oct 25 00:05:05 1997 Douglas C. Schmidt - - * TAO version 0.0.15, released Sat Oct 25 00:05:05 1997. - -Sat Oct 25 02:46:05 1997 Sergio Flores - - * TAO_IDL/fe/Makefile: - Changed the YACC variable to use the bison compiler. - Added "-y" to YFLAGS to make bison generate output files like yacc. - Changed the LEX variable to use the flex parser instead of lex. - These programs generate code that has less warnings and is better - code in general. - Added "-D_REENTRANT" to CPPFLAGS, to be able to eliminate the warnings - in lex.yy.cpp. This could also be fixed if we include "ace/ACE.h" at - the beginning of lex.yy.cpp, but this file is generated with flex. - - * TAO_IDL/fe/idl.yy: - Added ACE_UNUSED_ARG macro to avoid unused variable warning, - for variable "AST_Decl *v". - - * TAO_IDL/fe/idl.ll (idl_atof): - Added ACE_UNUSED_ARG macro to avoid unused variable warning, - for variable f and h. - - * TAO_IDL/include/idl.h: - Added include file "ace/ACE.h". This was necessary to eliminate - warnings of implicit declarations, which were because the _REENTRANT - flag was not defined. - - * TAO_IDL/ast/ast_operation.cpp (AST_Operation): - Reordered member initializers to match declaration order to - eliminate warnings from the compiler. - - * TAO_IDL/ast/ast_operation.cpp (fe_add_exceptions): - Added ACE_UNUSED_ARG macro to avoid unused variable warning, - for variable fs. - - * TAO_IDL/ast/ast_interface.cpp (AST_Interface): - Reordered member initializers to match declaration order to - eliminate warnings from the compiler. - - * TAO_IDL/ast/ast_expression.cpp (operator==): - * TAO_IDL/ast/ast_expression.cpp (coerce): - * TAO_IDL/ast/ast_expression.cpp (coerce_value): - * TAO_IDL/ast/ast_expression.cpp (compare): - * TAO_IDL/ast/ast_expression.cpp (dump_expr_val): - Added case statements to handle the rest of un-handled - enumerations from AST_Expression::ExprType. These will - handle a default value (i.e. the same case as - AST_Expression::EV_none). Enumerations added are: - AST_Expression::EV_wstring - AST_Expression::EV_wchar - AST_Expression::EV_longdouble - AST_Expression::EV_ulonglong - AST_Expression::EV_longlong - - * TAO_IDL/ast/ast_expression.cpp (AST_Expression): - Reordered member initializers to match declaration order to - eliminate warnings from the compiler. - - * TAO_IDL/ast/ast_decl.cpp (AST_Decl): - Reordered member initializers to match declaration order to - eliminate warnings from the compiler. - Also, use 0 instead of NULL to initialize pointers in the - member initialization list, again to avoid ANSI C++ forbids - implicit (void *) conversions warnings. - - * TAO_IDL/ast/ast_array.cpp (dump): - Added "unsigned" to index variable "i" used in for() loop, - to avoid warning "comparison between unsigned and signed" - - * TAO_IDL/ast/ast_array.cpp (compute_dims): - Added "unsigned" to index variable "i" used in for() loop, - to avoid warning "comparison between unsigned and signed" - - * TAO_IDL/ast/ast_array.cpp (AST_Array): - Reordered member initializers to match declaration order to - eliminate warnings from the compiler. - - * TAO_IDL/fe/fe_declarator.cpp (FE_Declarator): - Reordered member initializers to match declaration order to - eliminate warnings from the compiler. - - * TAO_IDL/driver/drv_main.cpp (DRV_drive): - Added ACE_UNUSED_ARG macro to avoid unused variable warning. - - * TAO_IDL/ast/ast_recursive.cpp (AST_illegal_recursive_type): - Initialized pointer variables to avoid warnings. - -Fri Oct 24 19:18:22 1997 Douglas C. Schmidt - - * tao: Changed remaining uses of BOA to POA. - - * cubit_i.cpp (please_exit): Replaced the call to - please_shutdown() on the POA (which no longer exists) with the - shutdown() call on the ORB. - - * tests/IDL_Cubit/svr.cpp: Removed - - oa_ptr->clean_shutdown (env); - - since this is no longer supported in TAO's POA. - - * tao/poa.h: Changed the get_boa() method to get_poa(). Even this - will probably go away soon. - -Fri Oct 24 18:25:00 1997 Aniruddha Gokhale - - * TAO/tao/svrrqst.cpp: Method params was allocating memory even - when the Any's already had memory allocated for the IN and INOUT - parameters. Due to this the params would retrieve results in the - allocated storage whereas the stubs/skeletons would continue to - use variables that they had defined to hold the values. - -Fri Oct 24 17:33:21 1997 Chris Cleeland - - * tao/poa.*: #ifdef'd out the IIOP 1.4 references to shutdown. - I'm leaving them in there right now because they might be useful - as private member later when we need to figure out how to get OAs - to cooperate and shut themselves down in the face of an ORB - shutdown. - - * tao/orbobj.h (shutdown): Fixed up documentation. - - * tao/orbobj.i (shutdown): Provided appropriate arg default. - - * tests/Cubit/TAO/svr.cpp: Eliminated unnecessary Object Adapter - name from POA_init() invocation. - - * tests/Cubit/TAO/cubit_i.cpp (Cubit_please_exit): Revised to use - the new ORB::shutdown() method. - - * tests/Cubit/TAO/clnt.cpp: Got rid of IIOP 1.4-style debug - message calls. - - * tao/orbobj.cpp (CORBA_ORB::ORB_init): Corrected a heinous - problem in the option parsing loop where argvec_shift() would be - asked to shift two argv elements when there was only one. This - could cause problems if an option that required an argument didn't - include the argument. Thanks to Manojkumar Acharya - for sending in a bug report that lead to my - finding this! - -Fri Oct 24 14:08:12 Aniruddha Gokhale - - * Improved the compiler to make Unions work. The most subtle error - was the way the private section of the class for unions was being - generated. TAO's Typecode library expected the union members to be - inside of a C++ union declaration inside the private - section. Whereas the compiler was generating each member - separately. - - Another source of error was bad typecode tables getting - generated. This is now fixed. - - * TAO/tests/IDL_Cubit: The cubit_i.cpp for cube_union was doing - wrong calculations for structs. This was due to my copy-paste - tendency and not verifying if it was correct or not. This has been - fixed. The README file is updated to reflect the fact that this - directory contains code that uses the IDL compiler. - -Fri Oct 24 01:54:00 1997 Douglas C. Schmidt - - * TAO version 0.0.14, released Fri Oct 24 01:54:00 1997. - -Fri Oct 24 01:02:01 1997 Douglas C. Schmidt - - * clnt.cpp: Removed mysterious obsolete definitions of - cube_union_stub() and cube_union_dii(). - - * be_state.h: Added definitions for the methods in class - be_state_attribute. For some reason, they were missing. - - * TAO_IDL/be/be_state.cpp: Added the necessary template - specializations so that the TAO IDL compiler will work with GCC. - -Thu Oct 23 22:46:10 1997 Aniruddha Gokhale - - * TAO IDL Compiler: More progress in terms of getting the Cubit - example to work with the IDL generated code. However, we are still - finding some problems with using the client-side cubit_union_dii - to work properly. - - Much of the improvements were to the server-side skeletons for - operations. In addition, code for union constructors, assignment - operator, and accessor for discriminant added. - - Some bugs in typecode generation are fixed. This had to do with - the encapsulation length for predefined types. It was returning -1 - as opposed to 0. - - * TAO/tests/IDL_Cubit: Added this directory with the cubit - example. Use this to test the IDL compiler. The makefile will - invoke the IDL compiler to create the required files. - -Thu Oct 23 18:34:02 1997 Douglas C. Schmidt - - * tests/*/Makefile: Fixed the Makefiles so that it has the correct - files and dependencies. Thanks to Steven Wohlever - for reporting this. - -Wed Oct 22 20:02:39 1997 Chris Cleeland - - * README.sun: Added an explicit reminder at the top that the - information in this file is historical in nature and does not - necessarily apply to current reality. - - * tao/orbobj.* (shutdown): Added code to the run() event loop so - that it will terminate when it finds a flag set. This involved - adding the flag to the ORB's state and minimally implementing the - shutdown() method. The shutdown method still does not honor the - "wait for completion" flag which can be passed to it, though. - - * README: Updated the season from "summer" to "Fall" ;-) Also - added a note that warned people not to try to link TAO with a - version of ACE that's linked with another ORB library, e.g., - liborbix.so. Thanks to Steven Wohlever for - bringing this instructional omission to our attention. - - * tao/tao_internals.cpp (fake_service_entries_i): Made the body of - this function conditional on the TAO_PLATFORM_SVC_CONF_FILE_NOTSUP - preprocessor definition since it doesn't need to exist in - platforms that grok the Service Configurator. This will also - reduce the memory footprint :-). Thanks to David Miron - for pointing this out! - - * tao/orb_core.cpp (TAO_ORB_Core): Removed explicit CTOR - initialization of reactor_ member. - -Wed Oct 22 19:37:22 1997 Aniruddha Gokhale - - * TAO IDL Compiler: Improvements made so that the server-side - skeletons for operations now generate valid code. The code - generated for the Cubit.idl was compiling cleanly. It is under - test currently to see if it runs. - - * Some progress in handling forward declarations of interfaces. - -Wed Oct 22 12:55:19 1997 - - * tao/poa.h: Added ACE_Svc_Export to class CORBA_POA. - - * tao/TAO.{mdp,mak}: Updated files in project file. - - * tao/TAO.dsp: Removed boa, Orb_Core and added poa, orb_core to - the project file. - -Tue Oct 21 17:21:51 1997 Chris Cleeland - - * docs/releasenotes/orbcore.html: Updated to reflect daily - progress. - - * tests/Cubit/TAO/Makefile: Updated dependencies. - - * tests/Cubit/TAO/svc.conf: Updated to eliminate empty quotes at - the end that tickled a deficiency in the Service Configurator's - grammar. - - * tests/multiCubit/svr.cpp: Updated to reflect POA_init change. - - * tests/Thruput_test/Makefile: Modified to reflect filename - changes. - - * tests/Thruput_test/server.cpp: Changed type of argv so that it - matched properly. - - * tao/boa.*: Renamed to tao/poa.*. - - * tao/Orb_Core.*: Renamed to tao/orb_core.*. - - * tao/{Makefile,corba.h,default_client.cpp,default_server.cpp,orb.h,orbobj.cpp,params.h}: - Modified to reflect filename changes. - -Tue Oct 21 13:23:48 1997 Brian Mendel - - * tao/connect.i: Moved hash_i and compare_i template - specialization to Orb_Core.i. Original code was left comment - out until this mod is checked on all platforms. - - * tao/Orb_Core.i: Added hash_i and compare_i code from connect.i. - -Tue Oct 21 03:23:29 1997 Nanbor Wang - - * tao/Orb_Core.cpp: Removed conditional inclusion of Orb_Core.i - since, according to corba.h, it is always included as an inline - function file. - -Tue Oct 21 02:24:14 1997 Douglas C. Schmidt - - * TAO version 0.0.13, released Tue Oct 21 02:24:14 1997. - -Mon Oct 20 23:42:48 1997 Douglas C. Schmidt - - * TAO/boa: Changed BOA_init() to POA_init() to be - more consistent... - - * TAO_IDL/be/be_interface.cpp, - tests/TAO/Thruput_test/server.cpp, - tests/TAO/Thruput_test/ttcpS.cpp, - tests/TAO/RT_test/Task_Client.cpp, - tests/TAO/RT_test/cubit_impl.cpp, - tests/TAO/multiCubit/cubitS.cpp, - tests/TAO/multiCubit/svr.cpp, - tests/TAO/Demux_Test/server.cpp, - tests/TAO/Demux_Test/CodeGen/skel.cpp, - tests/TAO/MT-Cubit/client/Task_Client.cpp, - tests/TAO/MT-Cubit/server/cubitS.cpp, - tests/TAO/MT-Cubit/server/svr.cpp, - tests/TAO/cubitS.cpp, - tests/TAO/svr.cpp, - tests/TAO/test1_svr.cpp: Changed BOA to POA to reflect the - new naming conventions. - - * tao/stub.i (STUB_Object): Removed a stray default value from the - STUB_Object constructor... Thanks to Carlos for noticing this. - -MOn Oct 20 10:14:09 1997 Aniruddha Gokhale - - * Improved version of the TAO IDL compiler. The executable has - been renamed to tao_idl. There are a number of improvements as - well as shortcomings. These are explained in the - docs/releasenotes/index.html page, which can be viewed online at - http://www.cs.wustl.edu/~schmidt/ACE_wrappers/TAO/docs/releasenotes/. - -Mon Oct 20 16:30:29 1997 Chris Cleeland - - * tao/tao_internals.cpp (fake_service_entries_i): Based the - arguments to the faked server service entry for VxWorks on the - TAO_HAS_TSS_ORBCORE compilation flag. This should hopefully - eliminate the problems Boeing was seeing in the early rounds of - testing the most recent release of TAO. - - * tao/{iiopobj.*,giop.h}: Moved a lock that had been in - TAO_GIOP_Invocation (why? I don't know) into IIOP_Object. It - protects the fwd_profile_ pointer, which has now become private. - Also added accessors for the data member as well as the lock. - Accessors come in two flavors--thead-safe (fwd_profile()) and - non-thread-safe (fwd_profile_i()). The non-thread-safe variety - expect that the lock will be taken and held for the duration of - their usage, but no checking is performed in this respect. - - * tao/giop.cpp: Changed references to the IIOP_Object::fwd_profile - data member to go through the new accessors (see above). - - * tao/stub.i: Created new file with inline methods for - STUB_Object. - - * tao/stub.h: Moved inline method definitions into a new - file--stub.i. - - * tao/orbobj.cpp (BOA_init): Eliminated dead code and unused - variable. - - * tao/except.cpp (print_exception): Eliminated unused argument - warning detected by gcc. - - * tao/corba.h: Re-ordered inclusion of Orb_Core.i to eliminate - 'function used before declared inline' errors detected by gcc. - - * tao/{Orb_Core,boa,corbacom,orb,orbobj,svrrqst}.*: Renamed BOA to - POA. - - * docs/releasenotes*: Moved releasenotes.html into a directory - named "releasenotes" so that the various status pages can live - independently. Currently only the ORB Core's status page is - broken out, but the documentation should eventually turn into two - frames with the one at the top acting as the guide and the lower - frame being the actual status document. - -Fri Oct 17 17:42:27 1997 Chris Cleeland - - * docs/releasenotes.html: Updated to reflect current status. - - * tao/orbobj.*: Added some documentation for open() method. - - * tao/roa.*: Gone. Bye-bye. Removed. - -Fri Oct 17 15:43:04 1997 - - * tao/connect.h: Added template instantiation supression directive - for Win32. VC was complaining about duplicate symbols definition. - -Fri Oct 17 06:25:23 1997 Chris Cleeland - - * tao/{boa,roa}.*: Merged class ROA into class - CORBA_BOA. Hopefully everything still works ;-) - - * docs/releasenotes.html: Quick update for new TODO list. Will be - updated within the next day or so with dates, too. - - * tao/{server_factory,orbobj,Orb_Core}.cpp: Corrected incorrect - explicit template instantiations and added missing ones. - -Thu Oct 16 23:48:04 1997 Douglas C. Schmidt - - * TAO version 0.0.12, released Thu Oct 16 23:48:04 1997. - -Thu Oct 16 11:15:00 1997 Brian R. Mendel - - * tao/server_factory.cpp: Added instantiation pragma for VxWorks for - ACE_Acceptor. Added the template to the specialization section, also. - - * tao/orbobj.cpp: Added instantiation pragma for VxWorks for - ACE_Cached_Connect_Strategy and ACE_Hash_Map_Manager for - ACE_Null_Mutex instantiations. Also, added these to the template - specialization sections. - - * tests/Cubit/Build/default.bld: Added TAO_PLATFORM_SVC_CONF_FILE_NOTSUP - to defines section of GHS build file. - -Tue Oct 14 21:11:20 1997 Douglas C. Schmidt - - * tao/xdr.h: Changed int _fd to ACE_HANDLE _fd to work on NT. - Thanks to Satheesh Kumar for reporting - this. - -Tue Oct 14 02:48:21 1997 Douglas C. Schmidt - - * TAO version 0.0.11, released Tue Oct 14 02:48:21 1997. - -Mon Oct 13 23:30:16 1997 - - * tao/connect.h: If we are using TSS, there is no reason to use - locking in the connector. Therefore, I added a new typedef that - defines the type of lock that should be used for the - cached_connect_strategy. It is ACE_SYNCH_RW_MUTEX in the - non-TSS case, and ACE_SYNCH_NULL_MUTEX in the TSS case. - -Mon Oct 13 21:34:00 1997 Douglas C. Schmidt - - * tao/svrrqst.cpp (oa): Cleaned up the coding style a bit. - -Sun Oct 12 15:38:35 1997 Douglas C. Schmidt - - * tao/client_factory: Gutted the client factory code related to - the Strategy_Connector so that it's either in the TAO_Orb_Core. - - * tao/default_client.h: Removed the connector() from the - Default_Client_Factory entirely since it's all been put into the - TAO_ORB_Core now. - - * tao/giop.cpp (start): Hacked up the code so that we extract our - connector from thread-specific storage if we're using the - thread-per-rate concurrency model. This needs to be integrated - more cleverly in the ORB. - - * tao/orbobj.h: Put an instance of the TAO_CONNECTOR into each - TAO_ORB_Core object so that we don't have to share these things - among all of the threads in a process, but instead can have them - be located in thread-specific storage. - - * tao/orbobj.cpp (perform_work): Updated the run() and - perform_work() methods to take optional ACE_Time_Value *'s (so - they can return from timeouts) and to return error flags if - things go wrong. - - * tao/orbobj.h (CORBA_ORB): Changed the set_up_for_listening() - call to open(), which is more consistent with other usage in - ACE/TAO. - - * tao/orbobj: Changed the name client_acceptor_ to peer_acceptor_ - to reflect the fact that the connection model is more generic - than the notion of client/server interactions (which really take - place as the result of particular communication roles). - - * tao/corba.h: Moved the order of #includes around so that - "connect.h" is included before "client_factory.h" - - * tao/connect.h: Moved the typedef of the ACE_Strategy_Connector<> - from the TAO_Client_Strategy_Factory into the global space and - renamed it TAO_CONNECTOR file so that it will be equivalent with - the TAO_ACCEPTOR. - -Thu Oct 9 23:17:37 1997 Douglas C. Schmidt - - * tao/giop.cpp (invoke): If an error occurs, make sure to mark the - handler_ as no longer being in use before we set it to 0. - - * tao/giop.cpp (TAO_GIOP_Invocation): We need to make sure that - handler_ isn't 0 before we mark it as no longer being in use. - -Thu Oct 9 11:33:46 1997 Carlos O'Ryan - - * tao/giop.cpp: - There was a minor sintax error. - -Tue Oct 07 09:34:35 1997 - - * tao/Orb_Core.h{cpp}: Added ACE_Svc_Export label to global - TAO_ORB_Core_instance() method. Needed for DLL support on NT.i - - * default.bld, tao.bld: Modified VxWorks build files to add new files. - -Tue Oct 07 07:05:38 1997 Douglas C. Schmidt - - * TAO version 0.0.10, released Tue Oct 07 07:05:38 1997. - -Mon Oct 06 22:11:40 1997 - - * tests/Cubit/TAO/cubit_i.cpp (Cubit_please_exit): - * tests/Cubit/TAO/cubitS.cpp (_skel_Cubit): Changed to use the new - TAO_ORB_CORE_instance () global function. - -Mon Oct 6 20:06:05 1997 Chris Cleeland - - * tao/{boa.h,connect.cpp,giop.cpp,giop.h,roa.cpp,roa.h}: - Eliminated unused methods and code. - - * tao/Orb_Core.*: Created new global function called - TAO_ORB_Core_instance() which will return the correct instance of - the ORB Core state. This had previously been accessed using - TAO_ORB_CORE::instance(), but Win32s linking procedures made the - template for TAO_ORB_CORE expand in both the application and the - library/DLL, thus creating two singletons. Bad scene. The - function should force the expansion of the template to only be in - the DLL. - - * tao/{connect,default_client,default_server,orbobj,roa}.cpp: - Changed references to TAO_ORB_CORE::instance() to - TAO_ORB_Core_instance(). - - * tao/singletons.h: Removed definition of TAO_ORB_CORE. - -Sat Oct 4 20:08:57 1997 Nanbor Wang - - * tao/TAO.{dsp,dsw}: Added tao_internals.cpp into project file - list. - - * tao/tao_internals.h (TAO_Internal): Added ACE_Svc_Export and - I d. - - * tao/tao_internals.i (open_services): Added default return value - 0. - - * tao/tao_internals.cpp: Added #include "tao/tao_internals.h" and - the CVS I d field. Also, we should include inline (.i) file - for inline code. - -Fri Oct 3 09:29:05 1997 Chris Cleeland - - * tests/multiCubit/svr.cpp: Changed the key naming scheme back to - not be unique throughout the process. Process-unique code is - still there, but conditionally compiled mutually-exclusive to the - other scheme. - - * tao/server_factory.*: The object_lookup_strategy method is gone - and is replaced by the create_object_table factor method. See - more information below. - - * tao/default_server.*: The server factory no longer holds on to a - single pointer for the object lookup strategy. In previous - incarnations of TAO, this didn't cause problems, but the advent of - ORB-per-thread highlighted the inherent badness in this - implementation choice. Gone is the object_lookup_strategy method, - and in comes the create_object_table factory method, which creates - and returns (and doesn't hold onto) an object table in accordance - with parameters such as size and search algorithm. - - * tao/roa.cpp: Changed to use the create_object_table method. - -Thu Oct 2 13:48:31 1997 Chris Cleeland - - * tests/multiCubit/svr.cpp: Modified the key generation scheme to - include thread ID. This works around a current shortcoming in the - ORB Core in which the object table is shared throughout all object - adapters (yes, this is being fixed). - - * tao/tao_internals.*: Added new class to scope static operations - and data completely internal to the ORB. - - * tao/orbobj.{i,cpp}: Moved CORBA_ORB DTOR into cpp file. Finally - got rid of icky static mutex in ORB_init(). Moved service config - initialization into TAO_Internal method. - - * tao/Orb_Core.h: Added comments. - -Wed Oct 1 12:51:48 1997 Nanbor Wang - - * tao/corbacom.h: Removed CORBA:: name resolution from the class - String_out which is itself defined in class CORBA. MSVC doesn't - like that. - -Wed Oct 1 10:44:55 1997 Aniruddha Gokhale - - * tao/varout.h: Fixed some template errors in class - TAO_Object_out. This was pointed to me by Carlos as he was - compiling TAO in SGI. - -Wed Oct 1 09:10:38 1997 Carlos O'Ryan - - * docs/releasenotes.html: - Updated information on the Event Channel, the use of the Naming - Service is no longer a plan, it is done already. - -Tue Sep 30 20:14:29 1997 Douglas C. Schmidt - - * TAO version 0.0.9, released Tue Sep 30 20:14:29 1997. - -Tue Sep 30 19:42:09 1997 Douglas C. Schmidt - - * Makefile: Removed "docs" from DIRS so we don't try to run - make in this directory. - -Tue Sep 30 17:27:00 1997 Chris Cleeland - - * : Tagged a release for limited consumption until the - Service Configurator bug is fixed. - - * tests/multiCubit/svr.cpp: Added code to properly release CORBA - objects. Delays between task activations simply aid in debugging - and are not necessary. - - * tao/singletons.h: Made TAO_ORB_Core's singleton type - compile-time selectable via the TAO_HAS_TSS_ORBCORE compiler flag. - - * tao/orbobj.cpp: Corrected an incorrect shift count, and the ORB - Core now defaults to using the host name of the local host. - - * tao/Orb_Core.[hi]: Added explicit CTOR. - - * tao/Orb_Core.cpp: Insured that the correct template type was - instantiated. - - * tao/Makefile: Added -DTAO_HAS_TSS_ORBCORE to CPPFLAGS. - -Tue Sep 30 16:43:12 1997 Chris Cleeland - - * docs/releasenotes.html: Added some notes on the ORB Core. - -Mon Sep 29 14:39:51 1997 Chris Cleeland - - * docs/{index,components,releasenotes}.html: Added additional - documentation. - -Mon Sep 29 13:50:34 1997 Aniruddha Gokhale - - * TAO ORB changes: - - any.*: Added _var and _out classes. - - corbacom.{h,i} : Added _out types for primitive types, added _out and - updated _var classes for String. Added corbacom.i for implementing - the String's _var and _out classes - - sequence.{h,i}: Added a number of templates for _var and _out - classes. However, these are yet to be used and tested. - - * Alpha release of TAO IDL compiler added to this release. This is - an alpha release and we are currently putting it to rigorous - test. A large amount of code for the back end is added under the - TAO/TAO_IDL/be_include and TAO/TAO_IDL/be/ directories. - - In addition, some amount of ACEification done to methods belonging - to the TAO/TAO_IDL/utils/ classes. - - A few errors in the IDL grammar have been fixed in - fe/idl.yy. These had to do with the valid types for parameters and - operation return types. There are still some errors recognizing - unions which will be fixed later. The scanner (fe/idl.l) was - modified to recognize the OMG IDL data type "any". - - * The ChangeLog file under TAO/TAO_IDL is removed and its contents - are inserted appropriately in this ChangeLog file - -Sun Sep 28 17:01:27 1997 Chris Cleeland - - * tests/multiCubit: Added a multi-threaded version of Cubit. - - * tao/orbobj.cpp: At long last, Andy has his wish for not having - to provide a "-ORBhost " argument to a server. It now uses - ACE_OS::hostname() to determine the canonical hostname, and - listens on that address. - - * tao/singletons.h: Changed the ORB Core singleton to be a TSS - singleton; this will eventually be conditionally compiled in - (before release). Also added comments and "safety defines". - - * tao/except.cpp: Changed some usage of fputs() in - print_exception() to use ACE_DEBUG. - -Sun Sep 28 03:18:24 1997 Nanbor Wang - - * tests/Cubit/TAO/cubitC.h (Object): Changed references of base - class from "CORBA::Object" to "CORBA_Object." MSVC doesn't - allow this. - - * tao/Orb_Core.h: Added ACE_Svc_Export to TAO_Orb_Core class. - - * tao/corbacom.h: Added ACE_Svc_Export to all IID constants. - Notice that we must put ACE_Svc_Export _after_ extern "C". - -Sat Sep 27 09:31:42 1997 Chris Cleeland - - * tao/Orb_Core.h: Fixed the friend declaration for - CORBA::ORB_init(). - - * tests/Cubit/TAO/svr.cpp: Modified to use ORB::run() for event - loop and eliminated code cruft. - - * tao/orbobj.*: Added stubs for 4 methods on the ORB from the - POA spec: work_pending, perform_work, run, and shutdown. Of all - of these, only run is reasonably implemented, and there not even - according to the spec (because the way the spec works isn't really - good for our purposes...need to work on that). See the docs for - information. - - Moved the initialization of the Acceptor into its own method, - set_up_for_listening (which is a one-shot style method), and - placed a call to this within the aforementioned run method. - - * tao/default_client.h: Miscellaneous comments added. - - * tao/connect.cpp: Corrected an errant ACE_DEBUG () call. - - * tao/Orb_Core.*: Added private methods to allow setting of the - orb and extended the laurel of friendship to CORBA::ORB_init(). - -Fri Sep 26 10:20:06 1997 Chris Cleeland - - * tao/orbobj.*: Added acceptor initialization code to CORBA_ORB - CTOR. (We still need to find a way to NOT do this on the client - side.) Moved CORBA_ORB CTOR into .cpp to avoid nasty - interdependencies caused when it was in the .i file. Moved the - specification of host and port to be ORB parameters rather than OA - parameters, i.e., -OAhost is now -ORBhost and -OAport is now - -ORBport. - - * tao/roa.*: Removed server-side connection endpoint - initialization (Acceptor stuff) and put it into the ORB. - - * tao/connect.h: Renamed ROA_Acceptor to TAO_Acceptor (since it's - not related to the OA any longer), and restored explicit inclusion - of ace headers to avoid having to include "corba.h". - - * tao/boa.h: Removed unneeded get_addr() method. - - * tests/Cubit/TAO/cubitS.cpp: Updates to support changes in ORB - Core. - -Thu Sep 25 12:28:02 1997 Chris Cleeland - - * tao/params.*: Added explicit CTOR & DTOR for - TAO_{OA,ORB}_Parameters classes that somehow got removed in the - previous round of attacks. Also specified all methods which go - into the .i file as "LOCAL_INLINE" within the header. This avoids - having to unravel ugly, complex order interdependencies. - -Thu Sep 25 03:48:02 1997 Chris Cleeland - - * docs/Options.html: Terse documentation on options available for - the abstract factories. - - * tao/Orb_Core.*: Added this class (TAO_ORB_Core) to hold the - "state" of an ORB. The intent is that as we move towards - different concurrency models, this can be thrown into - thread-specific storage and remain a singleton, essentially - allowing the running of an ORB-per-thread. - - * tao/singletons.h: Added this file to contain type definitions - for *ALL* ACE_Singleton<> types used within TAO. This was - motivated by a desire to eliminate the multitude of warnings - generated by g++ regarding methods being called before declared - inline, and the only way to eliminate this was to insure that all - inlined methods were seen by the compiler before the - ACE_Singleton<> definition. Thus, corba.h includes singleton.h as - the very last thing that it does. - - * tao/params.*: TAO_OA_Parameters is no longer a singleton, and - because of new recognition of associations in the object model for - an ORB, lots of data members and their methods have been shuffled - to other places or eliminated. addr() now belongs in - TAO_ORB_Parameters, and root_poa_ is in TAO_ORB_Core. The - using_threads_, thread_flags_, upcall_, and forwarder_ members - have been eliminated and their roles taken over by the Concurrency - Strategies and the new Dispatch call chain implemented in my last - round of changes. - - * tao/orbobj.cpp: Changed references to the ORB singleton to go - through TAO_ORB_CORE::instance(). Also eliminated an unnecessary - global function (_orb()). - - * tao/marshal.h: Moved all ACE_Singleton<> typedefs into - singleton.h. See comment on tao/corba.h for more information. - - * tao/iioporb.h: Removed unnecessary TAO_ORB singleton. This is - now assumed by TAO_ORB_Core instances. - - * tao/corbacom.h: Added CORBA::POA_ptr for upward compatibility. - - * tao/corba.h: Added Orb_Core.[hi] to the appropriate places. - Moved iiop{orb,obj}.i inclusions around and moved typedef'ing of - all ACE_Singletons into singletons.h, which must be #included - AFTER all the inline files. This eliminated all of the - used-before-declared-inline warnings. - - * tao/{connect,default_client,default_server,roa}.*: Updated - singleton usages to go through the TAO_ORB_CORE singleton. - - * tests/Cubit/TAO/{cubitS,cubit_i}.cpp: Updated singleton usages - to go through the TAO_ORB_CORE singleton. - -Wed Sep 17 12:26:56 1997 Nanbor Wang - - * tao/TAO.dsp: Updated source file list. - -Mon Sep 15 16:52:28 1997 Chris Cleeland - - * tests/Cubit/TAO/{cubitS,cubit_i}.cpp: Updated references to oa() - to root_pos(). - - * tao/orbobj.cpp: Corrected some adjustments made for Service - Configurator rework. - - * tao/giop.h: Moved the def for TAO_GIOP_EndOfFile out of the - range of valid GIOP messages. - - * tao/connect.cpp: Added special case for TAO_GIOP_Reply to break - out, and distinguished TAO_GIOP_EndOfFile from other errors by - setting errno. - - * tao/boa.cpp: The complete reply header is now stuck into the - response stream...what a novel concept! - -Fri Sep 12 05:40:50 1997 Chris Cleeland - - * params.h: Renamed oa() method to be root_poa() in preparation - for the future. - - * orbobj.cpp: Adjusted the FAKE_SVC_ENTRY macro to catch up to - recent changes in ACE. - - * giop.*: Major surgery including elimination of GIOP as a giant - namespace (now only static methods are in it). Changed names of - things to TAO_*. - - * {encode,decode,iiopobj,invoke,roa}.*: Name changes resulting - from giop.cpp surgery. - - * corbacom.h: Moved TAO_opaque decl into here. - - * corba.h: Re-ordered the inline #includes so that the stuff that - is ALWAYS inlined is included prior to the stuff that's only - inlined when __ACE_INLINE__ is turned on. - - * connect.*: Modified handle_input() substantially. Added 3 - template methods: read_message, handle_message, and send_response. - - * {cdr,marshal,object,typecode}.h: Removed the old "always include - inlines" hackery. - - * boa.*: Added handle_request() method. - -Wed Sep 03 06:15:00 1997 Brian Mendel - - * tao/default_client.cpp: Added conditional sections around the code for setting the - socket options for VxWorks. VxWorks does not support a 64K buffer size. - -Tue Sep 02 18:32:12 1997 Brian Mendel - - * tao/orbobj.cpp: Added include for Service_Repository.h to orbobj.h - - * tao/debug.cpp: Removed the TAO_NEEDS_UNUSED_VARIABLES #defines - around the debug_stream declaration. debug_stream is used by - dmsg_filter in debug.cpp. Changed SYSTEM_EXCEPTION to - CORBA::SYSTEM_EXCEPTION. - - * tao/default_client.cpp: Removed extra parameter from - ACE_Hash_Map_Entry #pragma instantiate statement. - - * tao/objtable.cpp: Deleted pragmas for instantiating ACE_Guard, - ACE_Read_Guard, and ACE_Write_Guard to eliminate duplicate - instantiations. Also, removed the instantiations from - ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION for the same reason. - - * tao/orbobj.cpp: Added a typecast to void * in argvec_shift - method. - - * tao/default.bld - Modified VxWorks Build File to change template - instantiation modes. - - * tao/tao.bld - Added default_client.cpp, default_server.cpp, - client_factory.cpp, and server_factory.cpp to the VxWorks build - file. - - * tao/tao.dsp - Added default_client.cpp, default_server.cpp, - client_factory.cpp, and server_factory.cpp to the Win NT project - file. - -Tue Sep 2 07:31:45 1997 Chris Cleeland - - * tao/orbobj.cpp (ORB_init): VxWorks doesn't use - ACE_Service_Config for now; the default factories are used. The - Service Repository is still used, but the appropriate values are - "stuffed" in manually. - -Sat Aug 30 17:07:18 1997 Aniruddha Gokhale - - * tests/Thruput: First attempt at ACEifying it and removing the - tremendous amount of unnecessary stuff that was in there. This - modified version still needs testing on other platforms. - -Fri Aug 29 10:59:34 1997 Chris Cleeland - - * tao/Makefile (TAO_ROOT): FINALLY corrected the default - definition of TAO_ROOT. - -Thu Aug 28 14:04:44 1997 Chris Cleeland - - * tao/orbobj.i (CORBA_ORB): Removed assertion that was incorrect - b/c our ORB object is a singleton and not dynamically allocated, - thus the refcount can only reach zero at the end of its life. - - * tao/typecode.cpp (TC_Private_State): Relocated the delete of - tc_discriminator_type_ to be after the deletion of the label list. - This is because the discriminator will be inside each of the - CORBA::Any instances within the label list, and deleting it before - deleting the label list results in extreme badness. - - * tao/typecode.* (operator delete): Added CORBA_TypeCode::operator - delete() to simplify deletion of both automatically and - dynamically allocated instances of CORBA_TypeCode. This fixes the - problem of freeing non-heap memory. - - * tao/nvlist.h (CORBA_NamedValue): Initialized refcount_ in the - CTOR. - -Mon Aug 18 16:39:40 1997 Carlos O'Ryan - - * Makefile for TAO compiler: - (SOEXT) must be used instead of just .so, the former does not - work on all platforms, notably HP-UX. - -Mon Aug 18 16:39:29 1997 Carlos O'Ryan - - * tao/Makefile: - * tests/Demux_Test/CodeGen/Makefile: - (SOEXT) must be used instead of just .so, the former does not - work on all platforms, notably HP-UX. - -Sun Aug 17 16:53:42 1997 Carlos O'Ryan - - * IIOP/test/Orbeline/client/Profile_Timer.h: - * IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.cpp: - * IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.h: - * IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.cpp: - * IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.h: - * tests/Cubit/VisiBroker/base_server/Profile_Timer.cpp: - * tests/Cubit/VisiBroker/base_server/Profile_Timer.h: - * tests/Cubit/VisiBroker/client/Profile_Timer.cpp: - * tests/Cubit/VisiBroker/client/Profile_Timer.h: - We no longer use timestruct_t in ACE, it is a SYSVism; we use - timespec_t instead. - -Sat Aug 16 01:11:56 1997 Chris Cleeland - - * tests/Cubit/TAO/svc.conf: Added this as an example of an - application's service config configuration file. It also serves - as the documentation for various strategy factory options at the - moment. - - * tao/orbobj.cpp: Options parsed by the ORB are now - -ORBsvcconf specifies the service configurator - file to be used - -ORBdaemon turn this into a daemon - -ORBdebug turns debugging on in the service - configurator - - BOA_init() now sets the itself in the TAO_OA_Parameters singleton. - - * tao/orbobj.*: Changed client_factory(), server_factory(), and - params() to return pointers rather than references. - - * tao/{roa,giop}.cpp: Updated code that uses the - CORBA::ORB::client_factory() to deal with the fact that it now - returns a pointer rather than a reference. - - * tao/default_server.cpp (init): This method now properly - initializes the contained reactive and threaded strategies so that - they're actually usable! - - * tao/connect.cpp: Added #endif comments. - -Wed Aug 13 17:42:39 1997 Chris Cleeland - - * tests/Cubit/TAO/*: Converted to the CORBA:: namespace. - - * tao/default_server.h: Eliminated a few strategy accessors since - they aren't provided by this implementation. - - * tao/default_server.cpp: Made this compile. - - * tao/corbacom.h: Slight reformatting of code. More importantly, - added 'static' to the decl of ORB_init(). - - * tao/corba.h: Added fake comment to trigger C++ mode. - - * tao/any.h: Added #endif comments. - -Tue Aug 12 22:37:06 1997 Douglas C. Schmidt - - * tao/{any,typecode,cdr}.h: Finished appeasing the compiler gods - so that we can remove the ACE_INLINE hack. Things now seem to be - in order. - - * tao/corba.h: Got all the frigging header *.i files #included in - the right order so that the GCC compiler stops complaining. - - * tao/giop.cpp: We had method definitions that were defined inline - within the giop.h file. This was causing problems for GCC, which - kept warning that methods in the cdi.i file were being used before - being inlined. I've fixed this by creating a giop.i file. - - * tao/corba.h: Add #include files should be prefixed by "tao/". - I've fixed this in the release. - -Tue Aug 12 16:23:17 1997 Chris Cleeland - - * tao/any.i: Added a missing replace() method used by overloaded - operators. - - * tao/{any,cdr}.h: Added conditional ACE_INLINE before the decl - for a few methods whose usage in other inlined methods appears - prior to their definition. - - * tao/default_client.cpp: Eliminated names of unused arguments to - stop the compiler from complaining. - - * tao/server_factory.cpp: Properly scoped return type names for - several methods. - - * tao/{typecode,decode,deep_copy,debug}.cpp: Bracketed unused - variables with #if defined(TAO_NEEDS_UNUSED_VARIABLES)/#endif; - this leaves them around for right now in case they're important. - - * tao/client_factory.i (connector): Properly scoped return type's - name. - - * tao/{client_factory,default_client}.cpp: Added necessary - template instantiations. - - * tao/{typecode,cdr}.h: Added conditional ACE_INLINE in front of - inlined methods to appease the compiler gods. - - * tao/boa.cpp (dispatch): Declared argument unused to get rid of - warnings. - - * tao/corbacom.h: Moved #include of sequence.h before the decl for - class CORBA. - -Sun Aug 10 10:58:21 1997 Douglas C. Schmidt - - * tao/client_factory: Moved the template specializations from the - *.cpp file into the *.i file in order to get this stuff to link - without multiply defined symbols. Thanks to Brian Mendel for - giving me the idea to do this. - - * tao/client_factory.cpp: Added a template specialization for - ACE_Hash_Addr. - -Sun Aug 10 08:56:20 1997 Aniruddha Gokhale - - * CORBA_ to CORBA:: transformation complete. All the files in the - TAO/tao distribution have been affected. The most notable changes - are: - (1) A file called "tao/corba.h" is now the master file. All *.cpp - files include *just* this file and nothing else. - - (2) "tao/corbacom.h" is the file that defines the CORBA namespace - i.e., class CORBA. Individual CORBA classes such as TypeCode, BOA, - etc are now defined inside the CORBA namespace. This will allow - users and developers to use CORBA::TypeCode as opposed to the - previous CORBA_TypeCode. Instead of nesting the classes, however, - we use typedefs to define individual CORBA classes inside class - CORBA e.g., typedef CORBA_TypeCode TypeCode; - - (3) All *.i files are included at the end of "tao/corba.h" and - nowhere else. However, if __ACE_INLINE__ isnot defined, then each - individual *.i file is not yet included in their corresponding - .cpp file. This will be done next. - - * TAO/tests/Demux_Test: Included code that tests various - demultiplexing strategies in TAO. At this point, however, the code - will not work because of changes in TAO. This will be done - next. A README file provides additional details. - - * TAO/Benchmark: A suite of benchmarking tests have been - included. This is still in the preliminary stages of - development. The idea is to compare various aspects of CORBA such - as marshaling overhead, demux costs, throughput, latency, and - others for a range of ORBs including TAO. Since there are - differences in programming different ORBs, this suite tries to - abstract out all the common features or atleast provide a uniform - interface so that minimal efforts are required to port an - application from one ORB to another. - - Benchmark/benchmark: This directory contains thecommon features - Benchmark/Marshal_Test: Tests marshaling overhead in 3 ORBs - - Orbix, VisiBroker, and TAO. More will be added. There are a few - problems getting DSI to work. The tech support at IONA and - VisiBroker have been contacted. - -Sat Aug 9 14:05:08 1997 Douglas C. Schmidt - - * tao: Continued to clean up all the code so that it is more - consistent with ACE programming style. - - * tao/orbconf.h: Cleaned up a lot of the unnecessary #defines. - - * tao/default_server.h: Make sure we inherit from - TAO_Server_Strategy_Factory, not TAO_Server_Factory. - - * tao/server_factory.cpp: Moved all the inline methods to be - non-inline since this code will always be dynamically bound. - - * tao/client_factory.cpp: Cleaned things up a bit. - -Sat Aug 9 12:37:05 1997 Brian Mendel - - * tao/corba.h: Deleted include for xdr.h from corba.h. xdr.h - is obsolete. - - * tao/objtable.cpp: Deleted pragmas for instantiating ACE_Guard, - ACE_Read_Guard, and ACE_Write_Guard to eliminate duplicate - instantiations. The templates are instantiated by ACE. Can these - templates also be removed from the - ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION section as well? - - * tao/default.bld: Added build file for VxWorks. - - * tao/tao.bld: Added build file for VxWorks. - -Fri Aug 8 14:25:20 1997 Chris Cleeland - - * tao/orbobj.*: Updated various methods to use the new - dynamically-linked strategy factories discussed below. - - * tao/default_client.*: This file now contains the default client - strategy factory which is (a) dynamically linkable by the service - configurator and (b) can be configured by flags passed in via - service configurator. - - * tao/client_factory.*: This file now contains the abstract base - class for the client strategy factory. - - * tao/default_server.*: This file now contains the default server - strategy factory which is (a) dynamically linkable by the service - configurator and (b) can be configured by flags passed in via - service configurator. - - * tao/server_factory.*: This file now contains the abstract base - class for the server strategy factory. - - * tao/params.*: Renamed DEMUX_STRATEGY enum to TAO_Demux_Strategy - and put it at global scope instead of within TAO_OA_Parameters. - - * tao/svc.conf.eg: Created this file to serve as an example of - various lines one might find in an application's svc.conf. - -Thu Aug 7 09:51:31 1997 Aniruddha Gokhale - - * factories.cpp: Incorrect use of ACE_ASSERT in - TAO_Server_Factory::object_lookup_strategy removed. - - * objtable.cpp: The octet sequence object key was being cast into - a char* resulting in undefined behavior at times due to the lack - of a NULL character to terminate it. Changes were made in the bind - and find methods of TAO_Active_Demux_Table. - -Thu Aug 07 03:52:31 1997 Douglas C. Schmidt - - * TAO version 0.0.8, released Thu Aug 07 03:52:31 1997. - -Thu Aug 7 00:43:14 1997 Douglas C. Schmidt - - * tao/typecode.cpp: A couple of errors involving TAO_CONST crept - in when Brian checked in his code. I fixed these. - -Wed Aug 6 18:28:41 1997 Chris Cleeland - - * tests/Cubit/TAO/clnt.cpp (main): Corrected the format - specifications when timing was printing out from %ld to %d. For - some reason this never caused a problem on other platforms. - -Wed Aug 6 17:27:44 1997 Brian R. Mendel - - * tao/typecode.h: Removed qualified name in typecode.h to eliminate - compiler warnings by the GHS compiler. Line 297. - - * tao/decode.cpp: Changed wchar_t* to CORBA_WChar* to eliminate - compiler errors on GHS compiler. Lines 142, 216, 729, 1371, and 1475. - - * tao/typecode.cpp: Deleted unreachable break statements at lines - 429, and 477, 904, and 947. - -Wed Aug 6 16:31:29 1997 Chris Cleeland - - * tao/*: Changed 'const' to 'TAO_CONST' in contexts where the - const didn't make sense. For example, this occurred in situations - where methods declared their return type as 'const CORBA_String', - which does not translate to 'const char*' but rather 'char* - const'. - - * tao/corbacom.h: Added #define for TAO_CONST. See above for - explanation. - - * tao/{connect,factories,giop,iiopobj,marshal,objtable, - optable,orbobj,roa}.cpp: Removed errant trailing semi-colon on all - the #pragma instantiate directives. - -Wed Aug 6 13:56:40 1997 Chris Cleeland - - * tao/{connect,factories,giop,iiopobj,marshal,objtable, - optable,orbobj,roa}.cpp: Changed explicit template instantiations - to use the new ACE enabling macro as well as adding the #pragma - instantiate to placate Edison Design Group compilers. - - * tao/cdr.h: Changed default for CDR CTOR marshal factory to - reflect the new name of the default marshal factory variable. - - * tao/orbobj.cpp (CORBA_ORB_init): Inserted call to - TAO_Marshal::initialize(). - - * tao/marshal.*: Added TAO_Marshal class to scope static - initialization methods for the marshalling engine. - TAO_DEFAULT_MARSHAL_FACTORY has moved inside of this. - -Sun Aug 3 13:12:03 1997 Douglas C. Schmidt - - * tests/Cubit/TAO: Continued to improve the formatting of these - tests. - -Sat Aug 2 13:55:40 1997 Douglas C. Schmidt - - * tests/Cubit/TAO: Cleaned up some of the formatting so that - it is easier to read. - -Thu Jul 31 16:19:43 1997 Chris Cleeland - - * tao/corba.h: Removed incorrect #include "tao/corba.h" in this - file. Bad form. - -Thu Jul 31 15:19:43 1997 Chris Cleeland - - * tests/Cubit/TAO/*.{h,i,cpp}: Changed all #include of specific - header files to include the application-level "tao/corba.h". - - * tests/Cubit/TAO/Makefile (BIN): Removed test1_svr and test1_clnt - for now until we can get them working again. They stopped working - after the BOA API changed and the non-standard get_request() - method removed. - - * tao/any.h: Inserted #includes which insure that this header file - is not position-dependent on other header files. - - * tao/corba.h: Created this catch-all header file for APPLICATIONS - to use as a single entry point. Currently it just includes all - TAO header files, but will eventually be pared down to only those - headers which warrant public exposure. - -Wed Jul 30 16:55:02 1997 Chris Cleeland - - * tao/typecode.i (CORBA_TypeCode): Re-ordered member - initialization to correspond to declaration order. - - * tao/{typecode,orbobj,optable,decode,cdr}.cpp: Added explicit - typecast to CORBA_ULong/unsigned long to eliminate warnings about - comparisons btw. signed and unsigned entities. - - * tao/optable.cpp (bind): Put in explicit return type for - TAO_Active_Demux_OpTable::bind(). - -Wed Jul 30 14:18:02 1997 Chris Cleeland - - * tao/Makefile: Corrected automatic definition of TAO_ROOT and - fixed all dependencies on tao header/inline files. - - * tao/{typecode,object}.i: Moved a few methods to the beginning of the file - so that the compiler KNOWS that they are inlined when it hits the - first reference to them later in the file. - - * tao/object.cpp: Added an end-of-line to silence a very picky SGI - compiler. - -Wed Jul 30 10:05:38 1997 Douglas C. Schmidt - - * tao/connect.cpp: Removed a number of explicit template - instantiations that are already included in ACE. - -Wed Jul 30 14:20:18 1997 Darrell Brunsch - - * tao/boa.{i,h,cpp}: Removed the #include of "tao/objtable.h" and - instead moved the methods that needed it from boa.i to boa.cpp - -Wed Jul 30 13:58:02 1997 Darrell Brunsch - - * tao/boa.h: Added #include of "tao/objtable.h" since it is needed - in boa.i (which is included here when inlining is turned on) - -Wed Jul 30 10:05:38 1997 Douglas C. Schmidt - - * tao/boa.h: Removed the #include of "tao/objtable.h" which seems - to be unnecessary and may cause problems for template - specialization. - - * tao/iiopobj.i (IIOP_Object): Changed the second parameter to the - IIOP_Object constructor so that we can is a const - IIOP::ProfileBody &. This prevents a compiler warning. - - * tao/typecode.cpp (private_id): Removed unused variable status. - - * tao/objtable.cpp (bind): Removed the temp variable, which - was unused. - -Tue Jul 29 19:31:11 1997 Douglas C. Schmidt - - * tao/boa.cpp (get_boa): Added casts of ACE_UINT32 so that we - don't have ambiguous calls to the constructor of ACE_INET_Addr. - - * tao/deep_copy.cpp (deep_copy): Removed an unreachable return - value. - -Mon Jul 21 15:08:36 1997 Chris Cleeland - - * TAO version 0.0.7, released Mon Jul 21 15:08:36 1997. - -Mon Jul 21 12:06:16 1997 Darrell Brunsch - - * tao/object.cpp: removed the #include of object.i since it will - always be #included in object.h - -Thu Jul 17 16:54:38 1997 Douglas C. Schmidt - - * TAO version 0.0.6, released Thu Jul 17 16:54:38 1997. - -Thu Jul 17 16:43:23 1997 Chris Cleeland - - * tao/{optable,objtable}.cpp: Updated the explicit template - instantiations at the end of these files to reflect the changes - that Andy made. - -Thu Jul 17 10:08:45 1997 Aniruddha Gokhale - - * tao/align.h: A very subtle error in "align_binary" was corrected. I - was assuming that align_binary is always called by - "ptr_align_binary". In the original inline function versions of - align_binary and ptr_align_binary, the function align_binary would - subtract 1 from the specified alignment that ptr_align_binary - provided. Since I assumed that "align_binary" would always be - called by "ptr_align_binary", I subtracted the 1 in - ptr_align_binary and passed the result to "align_binary". This - caused all sorts of problems for application code that directly - called "align_binary". This error has been fixed. The macros for - align_binary and ptr_align_binary are now exactly as the original - inline functions. - - * tao/any.{h,cpp}: Added comments. In addition, in the code for - Any::replace, we check if "_value" exists before trying to - DEEP_FREE it. Otherwise this was resulting in a segmentation fault - violation. - - * tao/boa.{h,i}: Added comments and changed "release" to CORBA_release - - * tao/cdr.{h,cpp}: Added some comments and removed some stuff that was - under #if 0 .. #endif - - * tao/corbacom.h: Added lots of comments for the CORBA_String_var class - - * tao/decode.cpp: Made TAO_Marshal_Union::decode to work, added comments. - - * tao/encode.cpp: Made TAO_Marshal_Union::encode to work, added comments. - - * tao/factories.{h,cpp}: Added lots of comments. Removed "void - object_lookup_strategy" method since we do this in the parameters - class. Added code that will use a user defined lookup strategy if - the corresponding flag is set. This needs to be tested. - - * tao/iiopobj.{i,cpp}: In the allocation and deallocation of the buffer - for object key, we now use "new/delete" instead of "malloc/free". - - * tao/interp.cpp: commented out a line that decremented 4 from the - offset provided for indirected typecodes. I guess this was plain - hack to get some broken things to work. - - * tao/objtable.{h,cpp}: Added lots of comments. Added code that will use - template specialization for the dynamic hashing case. In addition, - improved the destructors of the classes since previously, these - were not releasing occupied memory. - - * tao/optable.{h,cpp}: Added lots of comments. Added template - specialization for dynamic hashing scheme. Made dynamic hashing - scheme the default. Added a new definition for "struct - TAO_operation_db_entry". The idea is that an IDL compiler will - generate a database of operations and their corresponding - skel_ptrs. Such a database is now passed to teh constructors of - the operation lookup tables. This way, only one instance of such - lookup tables can be shared by any number of objects implementing - the same interface. - - * tao/params.{h,i,cpp}: Made dynamic hashing the default. Added a hook - by which users can supply their lookup strategies. *Needs testing*. - - * tao/typecode.{h,i,cpp}: Added comments and many changes. The private - state's constructor now takes an argument that is a TCKind - representing the TypeCode kind of the object of which we are the - private state. Removed "child_free". Instead, we introduced a - destructor for the private state that frees all the - children. Another important change is to the constructor of the - TypeCode class. We pass a "parent" pointer, if any, to the - constructor. All children typecodes will share the octet buffer of - the parent. Only freestanding typecodes will allocate octet - buffers. We have a new data member called "non_aligned_buffer_" - because the buffer we allocate may not be aligned on a 4 byte - boundary. As a result, we may start using the buffer at a shifted - position to the right. However, we do not want to lose a handle to - the original buffer that was allocated because at the time of - freeing, this pointer needs to be freed. - - * tests/Cubit/TAO: Modified a few files (method_db.i, cubitS.cpp) - so that they use the modified optable and objtable classes. Added - a README file to indicate how to run the example. - - * tests/Thruput_test: Modified virtually all the files to make it - work with the latest TAO release and its include files. Also, - changes similar to Cubit were necessary due to changes in the - objtable and optable classes. - -Wed Jul 16 14:17:01 1997 Chris Cleeland - - * tao/params.*: Eliminated unnecessary - ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES checks from - TAO_OA_Parameters (unnecessary b/c it's not a template). Also - corrected the type of TAO_OA_Parameters::ace_singleton_lock_. - -Wed Jul 16 11:34:36 1997 Chris Cleeland - - * tao/boa.cpp: Removed some unused code. - - * tao/compat/objbase.h: Added explicit check for prior inclusion - of ace/OS.h, with an error being produced if it's not included. - This will help keep me honest and remember to always include OS.h - beforehand, since I do most of my development on non-WIN32 - platforms. - - * tao/*.{h,cpp}: Added #include "ace/OS.h" before every inclusion - of . This is required on WIN32 platforms because - objbase.h eventually ends up including , which is the - wrong version of winsock from what ACE requires. Thus, by - including OS.h prior to objbase.h, objbase.h ends up not trying to - include a winsock header. - - * tao/orbobj.cpp: Added missing #include for tao/debug.h. - -Wed Jul 16 10:55:55 1997 Darrell Brunsch - - * tao/PC_Install.bat: removed it since it isn't needed anymore - - * tao/TAO.dsp: Changed include path and removed calling of - PC_Install.bat - - * tests/Cubit/TAO/{client,server}.dsp: Changed include path - -Tue Jul 15 16:13:53 1997 Chris Cleeland - - * tests/Cubit/TAO/cubitC.cpp: Added missing calls to Release() - after QueryInterface() calls. The tip-off that this wasn't - happening was the fact that, upon client exit, there were upwards - of 15 references to the object references. Now it's only 5-7 - (more work to go). - - * tests/Cubit/TAO/*: Changed all #include paths to be "tao/...". - Also, changes to orb.h (see below) obviated additional header - inclusion in certain files. - - * tao/compat/*.h: Changed the guts of these files so that they - work more like their "real" counterparts in the VC++ 5.0. This - should encourage compatibility. Note that, unlike the previous - files, objbase.h MUST be included before initguid.h; this is - consistent with the model on WIN32. - - * tao/*.{h,cpp}: Changed all #include paths to be "tao/...". - Also, changes to orb.h (see below) obviated additional header - inclusion in certain files. - - * tao/giop.cpp: Removed get_request() crufty old code. - - * tao/iiopobj.cpp: Backed out many prior special-code additions - for defining IIDs. Hopefully the need for these is negated by - changes elsewhere in the "compat" files. - - * tao/object.cpp: Corrected the conditional compilation switch - used to determine if we define IID_IUnknown. This now happens - whenever WIN32 isn't defined, instead of before when it was only - on unix or vxworks platforms. - - * tao/Makefile: Eliminated the need to copy files into a "proto/" - directory; now, everything is built into and used from the "tao" - directory. - - There is also a new, optional, environment - variable--TAO_ROOT--which should be set to the ".../TAO" - directory. If it's not set, the Makefile will set it to - WRAPPER_ROOT/TAO. - - Lastly, libcorba.* has changed to libTAO.*. - - * tao/orb.h: Eliminated many header files which had been - explicitly included here and were causing all manner of problems - with circular includes. Library components must now be careful to - include appropriate headers for all components they use, and we - will likely have to create a corba.h file for clients to use. - -Fri Jul 11 12:12:40 1997 Darrell Brunsch - - * tao/TAO.dsp: changed to use ace-r.dll in the release - version - - * tests/Cubit/TAO/{client,server}.dsp: changed to use ace-r.dll - and tao-r.dll for the release versions. - -Thu Jul 10 15:47:24 1997 Chris Cleeland - - * docs/: Removed the following obsolete files: README.apm, - BUILDING, and TESTS. - - * tao/params.*: Moved the instance() methods into the .cpp from - the .i, as well as the declaration for the singleton locks. - Having the singleton locks declared in the .i file caused much - consternation when ACE inlining was turned on. - - * tao/iiopobj.cpp: #ifdef'd the IID_STUB_Object declaration added - a few days ago so that it happens one way on NT, and another in - the rest of the Universe. I would have preferred to find a more - general solution, but didn't find one quickly enough to satisfy my - current requirements. - - * tao/roa.*: Removed get_request() method. This should improve - our McCabe scores ;-) - - * tao/boa.h: Removed get_request() method. - -Wed Jul 9 14:44:31 1997 Darrell Brunsch - - * TAO-Install: Added installation instructions for NT - -Tue Jul 8 20:52:06 1997 Darrell Brunsch - - * tao/PC_Install.bat: Made it very quiet. - - * tao/params.{cpp,h,i}: Changed TAO_OA_PARAMS from a - ACE_Singleton to a plain singleton by just integrating the - ACE_Singleton code into the class. - -Tue Jul 8 14:27:47 1997 Darrell Brunsch - - * tao/except.h: added ACE_Svc_Export to SYSEX macro - - * tao/iiopobj.cpp: changed declaration of IID_STUB_Object - to include ACE_Svc_Export - - * tao/stub.h: added ACE_Svc_Export to IID_STUB_Object - -Tue Jul 8 12:44:14 1997 Darrell Brunsch - - * tao/orbobj.cpp: Put the "*" in before the comment since it is - supposed to be there. Put a space between it and the comment - to get rid of the warning which VC was giving originally. - -Tue Jul 8 10:21:27 1997 Darrell Brunsch - - * tao/typecode.cpp: Changed a few loop counters from int to - CORBA_ULong to get rid of unsigned/signed comparison warnings - - * tao/orbobj.cpp: Got rid of a "*" before a comment. Looked like - a typo - - * tao/PC_Install.bat: Replaced "#...." with "rem ...." - -Mon Jul 7 20:59:05 1997 Douglas C. Schmidt - - * tests/Cubit/TAO/test1_{svr,clnt}.cpp (main): Added template - specialization code and updated the formatting. Thanks to Arturo - Montes for reporting this. - - * tests/Cubit/TAO/test1_svr.cpp (main): Added the -i options to - getopt(). Thanks to Arturo Montes for - reporting this. - - * TAO/tao/orbconf.h (SIZEOF_LONG_DOUBLE): Added a - #define for M_UNIX. Thanks to Arturo Montes - for reporting this. - -Sun Jul 06 02:37:24 1997 Douglas C. Schmidt - - * TAO version 0.0.5, released Sun Jul 06 02:37:24 1997. - -Sun Jul 6 00:10:28 1997 Douglas C. Schmidt - - * tao: Fixed all the code so that we put ACE_MT around all the - ACE_GUARD_RETURN macros. - - * tao: Updated all of TAO to make sure we use [] when deleting - arrays in order to avoid memory leaks. This looks like lots of - sloppiness left over from the original SunSoft IIOP code. - -Sat Jul 5 16:12:31 1997 Douglas C. Schmidt - - * tao/{any,iiopobj,nvlist,principa,request,roa,svrrqst,typecode}.cpp: - Fixed a double-deletion of a lock. - - * tao/typecode.i: Cleaned up lots of minor warnings with the code - that are only revealed when running GCC. The code should now - compile almost completely cleanly with -wall. - - * tao/typecode.{i,h}: Changed the name of TC_PRV_State to - TC_Private_State. - - * tao: Replaced ACE_Thread_Mutex with ACE_SYNCH_MUTEX so that the - code will compile on non-threaded and threaded platforms alike. - - * tao/marshal.cpp: Added template specializations for the Marshal - primitives. Thanks to Arturo Montes for - reporting this. - - * tao/Makefile (LDLIBS): Replaced -lcorba with -lACE so that we no - longer have problems with circular link dependencies. Thanks to - Arturo Montes for reporting this. - -Sat Jul 05 13:25:23 1997 Douglas C. Schmidt - - * TAO version 0.0.4, released Sat Jul 05 13:25:23 1997. - -Sat Jul 5 12:39:57 1997 Douglas C. Schmidt - - * tao: All throughout TAO I removed the direct use of system - include files in lieu of using ace/OS.h. - - * tao/{orbobj,typecode}.cpp: orb.h must be included before others - include files. Previous includes prevent correct use of ACE config - flags, therefore, I removed them. Thanks to Arturo Montes - for reporting this. - - * tao/{debug,roa}.cpp: changed _POSIX_THREADS to ACE_HAS_PTHREADS. - Thanks to Arturo Montes for reporting - this. - - * tao/decode.cpp (decode): The casting (CORBA_ULong) kind is - unnessary and wrong so I removed it. Thanks to Arturo Montes - for reporting this. - - * tao/debug.cpp (emit_prefix): Changed line 99 from - - #define emit_prefix (stream) ... - - to - - #define emit_prefix(stream) ... - - The blank character prevent after macro name (emit_prefix) prevent - correct definition. Thanks to Arturo Montes - for reporting this. - -Sat Jul 5 01:04:24 1997 Douglas C. Schmidt - - * TAO/tao/xdr.cpp: Removed unistd.h and string.h from the xdr.cpp - file since those aren't necessary. Thanks to Arturo Montes - for reporting this. - -Fri Jul 4 00:18:21 1997 Douglas C. Schmidt - - * tao/roa.h: Removed derogatory COMments ;-). Thanks to Anton van - Straaten for reporting this. - -Thu Jul 3 16:16:14 1997 Darrell Brunsch - - * Added ACE_Svc_Export to a couple of declarations to make NT - happier - -Thu Jul 3 13:43:20 1997 Darrell Brunsch - - * Added Visual C++ 5.0 project and workspace files for the TAO - library and Cubit test - -Wed Jul 2 12:44:42 1997 Aniruddha Gokhale - - * TAO/tests: Moved tests from TAO/IIOP/tests to TAO/tests - -Wed Jul 02 00:20:28 1997 Douglas C. Schmidt - - * Compiled the first alpha release of TAO on Solaris just - to make sure it still works. So far, so good... hence, - the first alpha release is out the door! - -Tue Jul 1 23:35:53 1997 Douglas C. Schmidt - - * VERSION: Added a VERSION file, starting at version 0.0.0... - -Tue Jul 1 23:00:15 1997 Aniruddha Gokhale - - * Added a new tests directory with the Cubit and TTCP - examples. The older test directory will be deleted soon. - - In addition, the tc_constants in the tc_constants.cpp file are - declared with an ACE_Svc_Export to make the Win NT compiler - happy. Extern declarations in typecode.h had the same changes. - - * Updated the PC_install.bat file. In addition, there was one more - warning in typecode.cpp (Win NT compiler) that was fixed. Finally, - in the the tc_const.cpp file, the ACE_Svc_Export was used - accidently. This has been fixed. - - * A number of files were updated with ACE_Svc_Export so that - variables and classes do not remain unresolved for Win32 - platform. Similarly, Irfan had sent me a list of warnings that the - Win NT compiler was giving. These are fixed. - - * marshal.*: Changed the way make_marshal_object works. Instead of - having a switch statement, we index into a private table of - marshal objects using the TypeCode _kind field. MarshalFactory now - maintains this private table. - -Mon Jun 30 17:39:02 1997 Douglas C. Schmidt - - * Added a new README file and a COPYING file that explains the - contents of TAO and clarifies its copyright status. - -Sun Jun 29 10:06:50 1997 Aniruddha Gokhale - - * marshal.*: Added CORBA_Environment as a parameter to - make_marshal_object factory method. The reason for doing this was - to enable inlining of the CDR::encode and CDR::decode methods. - - * typecode.*: Changed the way typecodes get deleted. Constant - typecodes are now owned by the ORB and their private state freed - when the ORB dies. IDL generated typecodes are not owned by the - ORB and are the only ones whose refcount matters. Typecodes - belonging to the IDL generated typecodes are also not owned by the - ORB and there is no effect on their refcount. They get freed only - if the parent is destroying itself. - - In typecode.i, methods such as length and content_type were not - getting inlined due to presence of switch statements. Converted to - if/else. - - * interp.cpp: Bug fix: Had previously forgotten to update the - size/alignment of the private state of the typecode. - -Fri Jun 27 14:27:49 1997 Aniruddha Gokhale - - * any.cpp: The deep_copy and deep_free optimizations applied. In - the previous release, I had forgotten to add these to the Any - constructor (that calls deep_copy) and Any destructor/replace - (that call deep_free). - - * connect.cp, factories.cpp: Added code that hardcodes the socket - buffer sizes to 64K. This is a hack for the time being. - -Thu Jun 26 10:02:47 1997 Aniruddha Gokhale - - * Some more progress on IDL compiler. Generates the client and - server side files without much contents in it. - -Thu Jun 26 09:49:38 1997 Aniruddha Gokhale - - * Added a full range of optimizations to the TAO IIOP interpretive - marshaling engine. The static methods encoder and decoder have - been removed from the CDR class. Instead, separate classes for - marshaling have been created for each individual data type. The - CDR stream maintains a factory that returns an appropriate - marshaling object depending on the data type to be - marshaled. Files added include marshal.h, marshal.i, encode.cpp, - decode.cpp, deep_free.cpp, and deep_copy.cpp. The marshal.h file - defines classes for an abstract MarshalObject. The factory is - responsible to return a concrete specialized instance of the - MarshalObject. - - * Updated the CORBA_TypeCode class so that it now provides all the - CORBA_2.0 compliant operations. These include length(), - content_type(), member_type(), member_label(), - discriminant_type(), id(), default_index(). The equal() operations - is still not implemented. In addition, precomputation - optimizations are applied to the TypeCode class. This includes - precomputing various parameters (if any) of a TypeCode. For - example, a struct TypeCode keeps track of the member count and - member types. As a result, it is not necessary to interpret the - CDR encapsulated stream to retrieve these parameters. - - * At this time, there are some problems getting the Unions to work. - -Thu Jun 12 15:45:49 1997 Chris Cleeland - - * IIOP/lib/objtable.cpp: Added explicit template instantiations - for ACE_Hash_Map_Manager<>. - - * IIOP/lib/giop.*: Finally got rid of all those methods that took - ACE_HANDLE as the argument. Now, all those operate on - ACE_SOCK_Streams. - -Thu Jun 5 10:15:21 1997 Chris Cleeland - - * IIOP/lib/giop.cpp: Corrected output format in error message. - -Thu Jun 5 10:09:01 1997 Chris Cleeland - - * IIOP/test/svr.cpp: Added a new class to catch SIGINT and - terminate. This was necessary to Quantify the server process. - - * IIOP/lib/orbobj.h: Added ACE_INLINE to forward decls of - CORBA_release() and CORBA_is_nil(). - -Wed May 23 14:39:01 1997 Brian Mendel - - * IIOP/lib/objtable.{h,cpp}: Added template specialization of - ACE_Hash_Map_Manager for char*'s. - - * IIOP/test/cubitS.cpp: Fixed type_id to be of type CORBA_String_var. - Also, added a debug msg to print the object address to show the - object for which the request is made. - - * IIOP/test/svr.cpp: Added capability to create multiple Cubit - objects via command line options. Added -n for number of objects and - -k for specifying a base name. For instance, -k Beevis -n 2 creates - Beevis1 and Beevis2 objects. The clnt can then specify a specific - object for the request as usual. - -Wed May 22 12:28:45 1997 Brian Mendel - - * IIOP/test/clnt.cpp: Deleted VxWorks specific sections. Command - line is now working for VxWorks. - * IIOP/test/svr.cpp: Deleted VxWOrks specific sections. Command line - is now working for VxWorks. - -Wed May 22 11:31:42 1997 Chris Cleeland - - * IIOP/test/svr.cpp: Added better error checking and messages, and - performed general re-formatting. - - * IIOP/test/method_db.i (initialize_method_db): Changed arg type - to use a pointer to the abstract class TAO_Operation_Table. - - * IIOP/test/cubitS.cpp (_skel_Cubit::_skel_Cubit): Added better - error checking and messages. Also defaulted to use the linear - object table implementation rather than the hashed to simplify - debugging. - - * IIOP/test/clnt.cpp: Moved some code around so that more of the - code is common is less is specific to VxWorks and other platforms. - Also did general re-formatting. - - * IIOP/lib/optable.cpp (TAO_Linear_OpTable::find): Initialization - of the loop variable makes the loop work properly. - - * IIOP/lib/objtable.cpp (TAO_Dynamic_Hash_ObjTable::find): - Explicitly specified length of object key in CTOR for ACE_CString - because object keys are not zero-terminated. - - * IIOP/lib/giop.cpp: Added newlines to the end of all ACE_DEBUG() - messages. - - * IIOP/lib/factories.cpp: Added template specializations for - ACE_Hash_Addr. - -Tue May 22 09:32:41 1997 Brian Mendel - - * IIOP/lib/cdr.h: Deleted #define old_value ACE_INLINE and - #define ACE_INLINE old_value lines. Added #undefs for ACE_INLINE - prior to redefines. Changes required to compile on Windows NT. - -Tue May 20 14:47:46 1997 Chris Cleeland - - * IIOP/test/cubitS.h: Removed forward decl of - TAO_Active_Operation_Table. - - * IIOP/test/{cubitC,cubitS}.*: Changed include quoting characters - from [<>] to double-quotes. - - * IIOP/test/Makefile: Removed cubit.o from clnt and svr target - (this has been subsumed by cubit[CS]). - - * IIOP/lib/optable.h: Changed ACE_RW_Mutex to ACE_SYNCH_RW_MUTEX. - - * IIOP/lib/optable.cpp: Inserted explicit template instantiations. - - * IIOP/lib/Makefile: Added optable to the Makefile. - - * IIOP/lib/optable.cpp: Moved ~TAO_Operation_Table() into here. - - * IIOP/lib/object.i: Moved find() and bind() into the cpp file. - Moved ~TAO_Operation_Table() into optable.cpp. - -Tue May 20 14:39:00 1997 Brian Mendel - - * IIOP/test/*: Commited changes to Cubit Example as a current snapshot - of required changes. - - * IIOP/lib/*: Changes required for header file includes. Added - conditionals around _IIOP_BUILD_ - -Tue May 20 13:55:58 1997 Chris Cleeland - - * IIOP/test/*: Commited this stuff in-process so that Brian - M. doesn't have to duplicate effort. - -Tue May 20 13:04:00 1997 Brian Mendel - - * IIOP/lib/debug.cpp: Deleted spaces between flockfile (f) and - funlockfile (f). Changed instances of debug_filter to - TAO_debug_filter. Deleted space between emit_prefix (stream). - - * IIOP/lib/cdr.cpp Added undef(s) for ACE_INLINE and - do_undef_on_ACE_INLINE to eliminate redefinition problems. - - -Tue May 20 10:55:09 1997 Chris Cleeland - - * IIOP/lib/cdr.h: Fixed the automatic inclusion of cdr.i into - cdr.h by checking to see if __ACE_INLINE__ is not defined and, if - so, defining ACE_INLINE to be "inline" (we tidy up the namespace - immediately after the inclusion of cdr.i, too). See source for - comments regarding why this is done. - - * IIOP/lib/optable.cpp (TAO_Linear_OpTable_Entry): Removed setting - of opname and skel_ptr to zero in CTOR since the CTOR for those - already insures this. Moreover, NT's compiler was complaining - about ambiguous resolutions. - - * IIOP/lib/{orbobj,giop,debug,boa}.cpp: Fixed reference to - debug_level so it's TAO_debug_level. - - * IIOP/lib/object.h: Replaced inclusion of optable.h with forward - decl of TAO_Operation_Table. - - * IIOP/lib/optable.cpp: Fixed names of methods that were changed - in the header but never changed in the source. Amazing that - neither g++ nor Sun C++ caught these gaffs! (Finally, the NT - compiler wins). - - * IIOP/lib/{orbobj,object}.h: Changed the forward decls of - CORBA_release() and CORBA_is_nil() so that they are only in effect - when inlining is NOT being used. - - * IIOP/lib/giop.cpp: Fixed incorrect passing of an object to - ACE_DEBUG() where an int is expected. - -Mon May 19 17:16:34 1997 Chris Cleeland - - * IIOP/lib/roa.cpp: Explicit cast rids us of a warning. - - * IIOP/lib/params.h: Fixed CTOR name. Once again I'm surprised - G++ didn't catch this. - - * IIOP/lib/optable.h: Corrected erroneous method signature on - bind(). - - * IIOP/lib/objtable.cpp: Corrected erroneous method signature on - TAO_Linear_ObjTable::bind(). - - * IIOP/lib/{object,orbobj}.h: Forward declaration of - CORBA_release(CORBA_Object_ptr) and CORBA_is_nil(CORBA_Object_ptr) - were commented out. I think this will cause a problem when we - DON'T inline, but I'll cross that bridge later. - - * IIOP/lib/{orb,factories}.h: Made inclusion of some headers - conditional on the compilation phase (building the library or an - application). - - * IIOP/lib/cdr.i: Removed incorrect default arguments (g++ didn't - catch them). - - * IIOP/lib/Makefile: Removed thread from the header list. - -Mon May 19 10:07:00 1997 Chris Cleeland - - * IIOP/lib/optable.cpp: Changed implementation of the operation - table and the parameters repository so that they use the right - class names. - -Sat May 17 17:18:38 1997 Aniruddha Gokhale - - * First pass at providing a backend to the SunSoft's CORBA IDL - compiler front end. - -Fri May 16 17:30:31 1997 Chris Cleeland - - * IIOP/lib/svrrqst.*: Corrected some comments, adjusted some - argument type names to reflect their new, namespace-sanitized - names, and moved short methods into a new inline file. - - * IIOP/lib/stub.h: Corrected some comments and adjusted some - argument type names to reflect their new, namespace-sanitized - names. - - * IIOP/lib/roa.cpp: Corrected syntax error and fixed up typedef. - - * IIOP/lib/params.*: Removed extraneous comments and fixed - argument type on demux_strategy(). - - * IIOP/lib/orbobj.*: Added comments, removed static pointer to - the ORB. - - * IIOP/lib/optable.h: Removed extraneous comments and fixed - typedefs. - - * IIOP/lib/objtable.cpp: Fixed some syntax errors introduced by - reformating. - - * IIOP/lib/object.cpp: Adjusted some argument type names to - reflect their new, namespace-sanitized names. - - * IIOP/lib/invoke.cpp: Removed crufty #includes and adjusted some - argument type names to reflect their new, namespace-sanitized - names. - - * IIOP/lib/iioporb.*: Moved short methods into inline file, added - IIOP_ORB_ptr typedef, and changed data member to conform to ace - standards. - - * IIOP/lib/iiopobj.*: Added the second CTOR that I forgot last - time and adjusted some argument type names to reflect their new, - namespace-sanitized names. - - * IIOP/lib/giop.h: Added comments for various enums and - structures. - - * IIOP/lib/giop.cpp: Switched various GIOP::Invocation methods to - use handler_->peer() for socket communication rather than going - through a file descriptor. Also began the arduous (no other word - could explain it!) process of converting the homegrown debugging - message macro uses into ACE_DEBUG() uses. - - * IIOP/lib/factories.*: Added explicit DTOR for TAO_Client_Factory - and completed all the darn explicit template instantiations. - Changed 'Svc_Handler' to 'TAO_Client_Connection_Handler', and - added the forgotton TAO_Client_Factory::connector() method. - - * IIOP/lib/debug.*: Added 'TAO_' prefix to global debug state - variables and removed crufty #includes. - - * IIOP/lib/connect.cpp: Change ROA_Handler to - TOA_OA_Connection_Handler (missed these the last time through). - - * IIOP/lib/cdr.cpp: Added responsive commentary. - - * IIOP/lib/boa.cpp: Added comments to the dispatching code. - - * IIOP/lib/{any,boa,request,typecode}.cpp: Removed references to - thread.h/connmgr.*. - -Thu May 15 19:08:16 1997 Douglas C. Schmidt - - * Finished updating all the reformatting. - -Thu May 15 15:54:49 1997 Chris Cleeland - - * IIOP/lib/principa.h: Corrected syntax error which eliminated the - _refcount data member. - - * IIOP/lib/{params,roa}.*: Updated class names to reflect ROA --> - TOA_OA pseudo-namespace change. - - * IIOP/lib/orbobj.*: Updated CORBA_ORB_init() to return pointer to - new ORB singleton. - - * IIOP/lib/orb.h: Commented out some include files to eliminate - wierd circular dependencies. - - * IIOP/lib/optable.h: Moved TAP_Operation_Table into here. Put - OpTable* classes into the TAO_Operation_Table* pseudo-namespace. - - * IIOP/lib/objtable.*: Moved TAO_Object_Table into here. Moved - the Entry classes out of the scope of their respective concrete - operation tables, so they're now named _Entry. - - * IIOP/lib/object.*: Moved TAO_Operation_Table into optable.*, and - added a data member which carries a pointer to the ORB with which - the object is associated. - - * IIOP/lib/iioporb.*: Added a singleton typedef for the ORB which - is what CORBA_ORB_init() will now return. Modified - string_to_object() so that it sets the ORB on the CORBA_Object - that it returns. - - * IIOP/lib/{iiopobj,nvlist}.h: Added some responsive commentary. - - * IIOP/lib/giop.cpp: Modified connection establishment code in - GIOP::Invocation::start() to utilize the client connection manager - in the ORB. - - * IIOP/lib/giop.h: Put a TAO_Client_Connection_Handler* into - GIOP::Invocation in place of the client_endpoint. - - * IIOP/lib/factories.*: Updated explicit template instantiations, - added TAO_Client_Connection_Handler. - - * IIOP/lib/connect.*: Renamed things--ROA_Parameters --> - TOA_OA_Parameters, ROA_Handler --> TOA_OA_Connection_Handler. - - * IIOP/lib/boa.h: Moved TAO_Object_Table into objtable.*, added - comments where appropriate. - - * IIOP/lib/{any,cdr,iioporb,invoke}.*: Re-formatting and creation - of inline method file. - -Tue May 13 21:51:22 1997 Douglas C. Schmidt - - * Continued to update the format of the TAO source code so that it - will be consistent with the style used in ACE. - -Mon May 12 17:02:29 1997 Chris Cleeland - - * IIOP/lib/roa.*: Moved short method into an inline file. - Miscellaneous reformatting. Adjustment to new type names - (prefaced by TAO_ for namespace protection). - - * IIOP/lib/object.*: Moved short methods into an inline file. - Changed lookup()/register_op() to find()/bind() for consistency - with established ACE APIs. Miscellaneous reformatting. - - * IIOP/lib/iiopobj.*: Moved short methods into an inline file. - Added CTOR for IIOP::Version and IIOP::ProfileBody. Added - convenience CTOR for IIOP_Object where the profile can be - supplied. Miscellaneous reformatting. - - * IIOP/lib/boa.*: Moved short methods into an inline file. Changed - lookup()/register_obj() to find()/bind() for consistency with - established ACE APIs. - - * headers: Added comments to force C++ mode in emacs for header - files, and changed SCCS version tag info to RCS version tag info. - -Wed May 7 14:49:46 1997 Aniruddha Gokhale - - * IIOP/lib/corbacom.cpp: Some bugs from the CORBA_String_var class - have been fixed. Thanks to Brian Mendel for noticing these. - - * IIOP/lib/boa.cpp: In CORBA_BOA::dispatch, the opname local - variable of type CORBA_String_var is changed to be of type - CORBA_String. This was because the String_var class would assume - ownership of the quantity assigned and delete it. Thanks again to - Brian Mendel for noticing this. - -Tue May 6 14:06:49 1997 Aniruddha Gokhale - - * IIOP/lib/boa.hh: the register_obj's 2nd argument is changed from - CORBA_Object_ptr& to CORBA_Object_ptr - - * IIOP/lib/object.hh: the return type for register_op method on - CORBA_Object is changed from void to int to be consistent. - - Added a new method "get_subclass" to CORBA_Object that returns a - pointer to the subclass. Typeically, this would be pointer to an - object that implements an interface. - - * IIOP/lib/objtable.{hh,cpp}: @nd argument of register_obj changed - from CORBA_Object_ptr& to CORBA_Object_ptr. - - * IIOP/lib/orb.hh: the type signature of "skeleton" is changed to - take CORBA_Object_ptr rather than CORBA_Object_ptr& as its 2nd argument. - -Mon May 5 20:28:54 1997 Aniruddha Gokhale - - * IIOP/lib/boa.cpp: commented out code that uses the "void - *context" field. It doesn't make any sense to have it. - - * IIOP/lib/boa.hh: Added 2 pure virtual methods (shutting_down and - clean_shutdown). - - In addition, the "register_obj" method was added. It was missing before. - - * IIOP/lib/corbacom.cpp: String_var's constructor bug is fixed. It - was trying to free storage that was never allocated. - - * IIOP/lib/iiopobj.{hh,cpp}: Added a method - "get_name" that - retrieves the object name. - - * IIOP/lib/object.{hh,cpp}: Added a method - "get_name" that - retrieves the object's name or key. This is for debugging purposes. - - * IIOP/lib/orbobj.cpp: There was an infinite loop in parsing the - options to BOA_init. Fixed. - - * IIOP/lib/stub.hh: Added the "get_name" virtual method. - -Sat May 3 22:45:23 1997 Aniruddha Gokhale - - * IIOP/lib/boa.cpp: Added code temporarily that invokes the - skeleton that is looked up. We still need to add code that will - handle the case when no match is found on the operation names. - - * IIOP/lib/boa.hh: The register_obj method on TAO_Object_Table - now returns an integer indicating status of registering (-1 => - failure, 0 for success). - - * IIOP/lib/object.hh: The register_op method on - TAO_Operation_Table now returns an integer code (O for success, -1 - for failure). - - * IIOP/lib/objtable.{hh,cpp}: The register_obj method returns an - integer code representing either success or failure. - - * IIOP/lib/optable.{hh,cpp}: Added new files that implement - concrete strategies for operation name lookup. - -Fri May 2 08:48:29 1997 Aniruddha Gokhale - - * IIOP/lib/object.hh: Modified the signature of register_op on - TAO_Operation_Table to take a second argument to be a pointer to - the actual skeleton. - - Thanks to Brian Mendel for reporting this. - -Thu May 1 16:46:11 1997 Aniruddha Gokhale - - * IIOP/lib/object.{hh,cpp}: Added a method that can set the parent - pointer. - - * IIOP/lib/params.cpp: A hook has been provided in ROA_Factory to - enable the user to use a user-defined demux strategy. - -Wed Apr 30 22:00:51 1997 Aniruddha Gokhale - - * IIOP/lib/objtable.{hh,cpp}: Added two new files that define - different object demultiplexing strategies. - - * IIOP/lib/Makefile: Added objtable as additional source file to compile. - - * IIOP/lib/boa.cpp: Provided the default destructor for the - TAO_Object_Table. - - * IIOP/lib/boa.cpp: Provided the default destructor for the - TAO_Operation_Table. - - * IIOP/lib/orbobj.cpp: Added support for the -OAtablesize option - in the call to CORBA_ORB::BOA_init method. - - * IIOP/lib/params.{hh,i,cpp}: Added support to ROA_Factory to return - a specific object lookup strategy. - - *IIOP/lib/roa.cpp: The ROA constructor initializes its "objtable_" - private data member with the object lookup strategy returned by - ROA factory. - -Tue Apr 29 11:52:48 1997 Aniruddha Gokhale - - * IIOP/lib/any.hh: Moved CORBA_Any_ptr declaration to orb.hh. - - * IIOP/lib/boa.{hh,cpp}: Renamed BOA to CORBA_BOA. The CORBA_BOA class - maintains a pointer to an abstract TAO_ObjectTable class. Concrete - classes inheriting from TAO_ObjectTable will provide strategies - for lookup. - - Added virtual functions to do dispatch based on object key. In - addition, added a lookup method based on object key that delegates - the task of looking the object to the object table it maintains. - - Changed the signature of typedef CORBA_BOA::dsi_handler to be pointer to - member function of class CORBA_BOA. Eventually, this will point to - the dispatch method of class CORBA_BOA. - - Moved "struct Dispatch_Context" from roa.hh to boa.hh since we - want BOA to be a full fledged OA eventually and not remain an - abstract class as it is now. All other OA's such as ROA inherit - from BOA and only add extra functionality. - - * IIOP/lib/connect.cpp: There was a syntax error (missing comma) - in one of the ACE_DEBUG statements which has been fixed. - - * IIOP/lib/corbacom.{hh,cpp}: Added class CORBA_String_var as well - as the CORBA compliant CORBA_string_dup. - - * IIOP/lib/except.hh: Moved CORBA_Exception_ptr declaration to orb.hh. - - * IIOP/lib/object.hh: Added an abstract class - TAO_Operation_Table. CORBA_Object maintains a pointer to this - abstract class. The IDL compiler will eventually generate concrete - classes that employ different lookup strategies for operation name - lookup. - - * IIOP/lib/orb.hh: Added forward declarations to all CORBA_* - classes. In addition, moved all the CORBA_*_ptr declarations here. - - * IIOP/lib/orbobj.{hh,cpp}: Added the CORBA compliant BOA_init - method to class CORBA_ORB. Users can now pass arguments to - BOA_init. Eventually, we want to make this method return any of - the specialized OA's depending on the arguments. Right now, we get - a pointer to the ROA. - - * IIOP/lib/params.{hh,i}: Added some more methods and enum - declarations to the ROA_PARAMS singleton. - - * IIOP/lib/principa.hh: Moved the CORBA_Principal_ptr declaration - to orb.hh. - - * IIOP/lib/roa.{hh,cpp}: Moved some functionality to boa.hh. ROA - is now only a specialized form of BOA. - - * IIOP/lib/stub.hh: Moved the typedef for "skeleton" to orb.hh. - - * IIOP/lib/svrrqst.{hh,cpp}: Had to rename BOA to CORBA_BOA. - - * IIOP/lib/typecode.hh: Moved the CORBA_TypeCode_ptr declaration - to orb.hh. - -Tue Apr 22 23:30:19 1997 Chris Cleeland - - * IIOP/lib/connect.cpp (open): Added log message. - - * IIOP/lib/params.cpp (concurrency_strategy): Uses reactive - strategy when appropriate. - - * IIOP/lib/params.hh: Reactive strategy added. - -Tue Apr 22 21:03:15 1997 Chris Cleeland - - * IIOP/lib/giop.cpp: Changed erroneous ACE_GUARD calls to ACE_GUARD_RETURN - calls. - -Tue Apr 22 16:15:52 1997 Chris Cleeland - - * IIOP/lib/roa.cpp: Removed more POSIX thread calls. - - * IIOP/lib/invoke.cpp: Changed ForceSynchronousCancellation to - ACE_Synchronous_Cancellation_Required and made it use the ACE_OS - calls. - - * IIOP/lib/{typecode,svrrqst,request,principa,orbobj,nvlist,iiopobj,giop,except,any}.*: - Removed all vestiges of pthread mutexes...they are now - ACE_Thread_Mutexes. This will likely have to change if we want to - compile something completely devoid of threads, but that's another - day. Also, the mutexes have moved from being globals to being - members on the respective classes. No files should be dependent - on thread.hh any longer. - - * IIOP/lib/connect.cpp (open): Removed code obsoleted by use of - the Strategy_Acceptor. - - * IIOP/lib/{roa.cpp,connect.cpp},IIOP/tests/svr.cpp: Changes to - use new singletons described below. - - * IIOP/lib/params.*: Changed ROA_Parameters and ROA_Factory to use - ACE_Singleton<>. The singleton types are now named ROA_PARAMS and - ROA_FACTORY. - -Mon Apr 21 23:44:34 1997 Douglas C. Schmidt - - * IIOP/lib/roa.cpp (ROA): Changed spelling of clientAcceptor_ to - client_acceptor_ to be consistent with ACE style conventions. - -Mon Apr 21 10:52:42 1997 Chris Cleeland - - * IIOP/test/clnt.cpp: Moved call to CORBA_ORB_init() prior to the - parsing of the command line args. This got switched around during - porting to VxWorks. - - * IIOP/lib/roa.cpp: Changed calls using clientAcceptor_to use APIs - vended by ACE_Strategy_Acceptor. - - * IIOP/lib/roa.hh: Moved default thread flags into ROA_Factory. - - * IIOP/lib/params.*: Added ROA_Factory, a singleton which is the - beginning of an abstract factory dynamically producing runtime - strategies based on information found in ROA_Parameters. - - * IIOP/lib/connect.cpp: Added call to ROA_Handler's base class - CTOR in initializer list. - - * IIOP/lib/connect.hh: Changed ROA_Handler's CTOR so that it can - take an optional ACE_Thread_Manager* arg. This makes it - compatible with the CTORs for the base class. Also changed base - class for ROA_Acceptor to ACE_Strategy_Acceptor. - - * IIOP/lib/svrrqst.*: Changed references to BOA_ptr from TOA_ptr. - - * IIOP/lib/connect.*: ROA_Handler/ROA_Acceptor moved from roa.* - into here. - - * IIOP/lib/params.*: ROA_Parameters moved from roa.* into here. - - * IIOP/lib/boa.*: What used to be TOA is now BOA, and lives in - here. - - * IIOP/lib/roa.*: Major restructuring required removal of all - classes (see other log entries) from here. This file now houses - only the ROA class. - - * IIOP/lib/{tcpoa.*,toa.*}: Removed because of name changes from - TCP_OA->ROA and TOA->BOA. - -Fri Apr 18 08:09:19 1997 Brian Mendel - - * cdr.hh,corbacom.{hh,cpp},giop.cpp,marshall.cpp,typecode.cpp: - Changes required for WChar missed in earlier committed code. - - * connmgr.cpp: Changes required for select statement. - - * nvlist.cpp: Conditional include for memory.h added. VxWorks - does not have memory.h. - - * object.cpp: Added conditional for VXWORKS to define - IID_IUnknown. - - * orbconf.hh: Minor tuning of the configuration file. - - * tcpoa.{hh,cpp}: Added VXWORKS conditional includes. - - * toa.cpp: Added VXWORKS conditional includes. - - -Mon Apr 15 17:01:00 1997 Brian Mendel - - * roa.cpp: Added return statement to ROA_Handler::open(void*) - method. - - * giop.cpp: Modified giop::read_buffer to replace undefined fc - with peer.get_handle(). Modified giop::incoming_message method - parameter list to match function prototype exactly. - - * tcpoa.cpp: Replaced fd instances in debug messages with - peer.get_handle() calls. - -Mon Apr 14 13:45:54 1997 Chris Cleeland - - * roa.{hh,i,cpp},tcpoa.cpp,svr.cpp: Replaced ACE_ROA with - ROA_Parameters, which is a GoF-style singleton. - -Sun Apr 13 00:01:56 1997 Chris Cleeland - - * roa.cpp: Fix continuation condition in ROA_Handler::svc()'s loop - so that it doesn't stop after one iteration. Also added some - debug messages. - - * giop.cpp: Fixed some returns being called with no value. This - should have been caught in the previous round of changes. - -Sat Apr 12 23:10:08 1997 Chris Cleeland - - * tcpoa.{hh,cpp}: TCP_OA::handle_message() now returns a value - indicating how a message was handled. - - * roa.cpp: ROA_Handler::handle_input() now returns a meaningful - value based on what TCP_OA::handle_message() returns. - - * giop.{hh,cpp}: Added end-of-file detection on socket - connections, and that is now propagated all the way back up - through GIOP::incoming_message(). I don't know if I violated - something in the spec by doing this, but it was necessary. I'll - look into it later. - -Thu Apr 10 11:49:44 1997 Chris Cleeland - - * giop.{hh,cpp}: Overloaded all methods dealing with connections - so that there are two, one taking a file descriptor as argument, - the other taking an ACE_SOCK_Stream. Right now, the *_Stream - version simply forwards to the fd-based one. I would have - preferred to get rid of the fd-based methods altogether, but we've - only converted the server runtime; the client is still using the - original sun code, which is effectively fd-based. In the course - of doing this, I also simplified the decls for incoming_message by - creating typedefs for some of the function pointers passed as - args. - - * orbconf.hh: Fixed the stupid auto-endian-ness detector - AGAIN...had my logic reversed! - - * roa.cpp: Adjusted code in accordance with changes to tcpoa.hh. - - * tcpoa.hh: Moved and renamed TCP_OA::dispatch_context to be - ::Dispatch_Context, and changed its endpoint member to be an - ACE_SOCK_Stream. - - * roa.hh: Fixed handle_input() to use the underlying peer() data - member for reading data, rather than using its argument. This is - so that when a different thread handles each connection, - handle_input() can simply be called repeatedly by svc(). - -Wed Apr 9 16:19:21 1997 Chris Cleeland - - * tcpoa.cpp: Fixed a problem that G++ didn't notice regarding - changing the notion of endpoints in servers from server_endpoint - to an ACE_HANDLE. - -Wed Apr 9 15:43:37 1997 Chris Cleeland - - * svr.cpp: The -p option is gone, and -e takes its place and is - required. This requires the user to specify not only the port - number, but also the IP address of on which the server should - listen for requests. See ACE_INET_Addr documentation for valid - string formats for addresses. Also, the -t option sets the "use - threads" global. - - * orbconf.hh: Hopefully resolved the tension between MS and Unix - platforms in inferring endian-ness of the target platform based on - preprocessor defines. We now check for i386, _M_X86, and vax - (yeah, like we really worry about that, but it's easy to do). - - * roa.{hh,i,cpp}: Added support for spawning threads to handle - incoming requests. This involves a state flag for whether or not - to use threads, calling activate() in ROA_Handler::open() if that - flag is set, and creating ROA_Handler::svc() that simply loops - calling handle_input(). - -Tue Apr 8 11:14:57 1997 Chris Cleeland - - * IIOP/test/svr.cpp: Moved setting of upcall(), forwarder(), - context(), etc. into here rather than in TCP_OA::TCP_OA(), which - is where I mistakenly stuck them a few days ago (duh!). - - * IIOP/lib/tcpoa.cpp: Removed setting of ACE_ROA::upcall(), which belongs - in the server code. I got confused because the function names - were so similar: tcpoa.cpp contains ::tcp_oa_dispatcher(), and - svr.cpp contains ::tcpoa_dispatch(). - - * IIOP/lib/roa.{hh,i,cpp}: Added forwarding function to ACE_ROA global namespace - hack. - - * IIOP/lib/orbconf.hh: Fixed preprocessor checks that auto-detect - endian-ness of this processor. - -Mon Apr 7 21:08:24 1997 Chris Cleeland - - * IIOP/test/test1_{clnt,svr}.cpp: THESE HAVE NOT BEEN CONVERTED TO - USE ACE EVENT HANDLING!! This round of changes explicitly - instantiates templates where required. - - * IIOP/test/svr.cpp: Global function ::OA_listen() no longer - exists; its functionality is now fully contained within ::main(). - If USE_ACE_EVENT_HANDLING is defined, a Reactor-based event loop - is used. The original intent was to allow conditional compilation - to select btw. the original method and a Reactor-based method. - However, weaving that into the library proved far more difficult - than anticipated, so more than likely not defining - USE_ACE_EVENT_HANDLING will cause massive grief. - - * IIOP/lib/toa.cpp: Changed call to TCP_OA::init() to reflect new - ACE_INET_Addr argument type. - - * IIOP/lib/tcpoa.cpp (TCP_OA): All initialization methods were - changed, specifically the CTOR and TCP_OA::init, to reflect the - introduction of ACE_INET_Addr. Two side-effects of using - ACE_INET_Addr are that (1) a server can specify the address on - which it wants to listen and (2) best that I can tell, the server - MUST specify the address on which it wants to listen because - otherwise it won't be able to publish a rational IOR. The event - loop is now changed to simply loop on Reactor::handle_events(). - - * IIOP/lib/tcpoa.hh (TCP_OA): Removed vestiges of this component's - use of the original connection management scheme. Where - appropriate, hostnames and ports were replaces by ACE_INET_Addr, - endpoints by ACE_HANDLEs, etc. One particularly nasty thing done - was to declare ROA_Handler as a friend so that handle_message() - can be called from ROA_Handler::handle_input(), which to me - exposes a hole in the original architecture wherein input is - "pulled" rather than waited-for. We might need to re-think how - this is handled within TAO. - - * IIOP/lib/roa.{hh,i,cpp}: These files contain the required - components to support the new server-side ACE-based - connection/event substrate. The client side remains, as always, - using the connection mgmt scheme used by the original Sun IIOP - code. - - * IIOP/lib/giop.cpp: Added explicit template instantiation for - when this is needed. - - * IIOP/lib/corbacom.hh: Now protects itself from multiple - inclusion. - - * IIOP/lib/Makefile: Added roa.* where appropriate. - -Wed Mar 19 10:25:21 1997 Chris Cleeland - - * IIOP/docs/us/codecount/*.count: Added to repository. - - * Makefile: Added to repository. - - * IIOP/objbase.h: Moved to IIOP/compat. - - * IIOP/initguid.h: Moved to IIOP/compat. - -Thu Mar 13 14:06:28 1997 Chris Cleeland - - * ChangeLog: Added the ChangeLog. diff --git a/TAO/IIOP/Build/default.bld b/TAO/IIOP/Build/default.bld deleted file mode 100755 index 7b67d4a13c9..00000000000 --- a/TAO/IIOP/Build/default.bld +++ /dev/null @@ -1,16 +0,0 @@ -#!build -default: - nobuild - :debuglevel=multi -tao.bld - library - :cx_e_option=nomsgnumbers - :dependency=nodepend - :cx_silent=1 - :cx_silent=21 - :cx_silent=191 - :sourcedirs=/home/ace/ACE_wrappers.vxworks - :sourcedirs=../lib - :sourcedirs=.. - :libraries=/home/ace/ACE_wrappers.vxworks/libACE.a - :libraries=/appl/newgreen/vxppc603/indlib.o diff --git a/TAO/IIOP/Build/tao.bld b/TAO/IIOP/Build/tao.bld deleted file mode 100755 index 21007d8ab61..00000000000 --- a/TAO/IIOP/Build/tao.bld +++ /dev/null @@ -1,53 +0,0 @@ -#!build -default: - library - :defines=__IIOP_BUILD - :defines=DEBUG -../lib/any.cpp - C++ -../lib/cdr.cpp - C++ -../lib/connmgr.cpp - C++ -../lib/corbacom.cpp - C++ -../lib/debug.cpp - C++ -../lib/except.cpp - C++ -../lib/giop.cpp - C++ -../lib/iiopobj.cpp - C++ -../lib/iioporb.cpp - C++ -../lib/interp.cpp - C++ -../lib/invoke.cpp - C++ -../lib/marshal.cpp - C++ -../lib/nvlist.cpp - C++ -../lib/object.cpp - C++ -../lib/orbobj.cpp - C++ -../lib/principa.cpp - C++ -../lib/request.cpp - C++ -../lib/svrrqst.cpp - C++ -../lib/t-sizes.cpp - C++ -../lib/tc_const.cpp - C++ -../lib/tcpoa.cpp - C++ -../lib/toa.cpp - C++ -../lib/typecode.cpp - C++ -../lib/roa.cpp - C++ diff --git a/TAO/IIOP/Makefile b/TAO/IIOP/Makefile deleted file mode 100644 index f6dba1717ab..00000000000 --- a/TAO/IIOP/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Top-level Makefile for the ACE-ified Sun Ref. implementation -# of IIOP ORB -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -INFO = - -DIRS = lib #test - -CLONE = - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nolocal.GNU - diff --git a/TAO/IIOP/docs/us/codecounts/align.hh.cccc b/TAO/IIOP/docs/us/codecounts/align.hh.cccc deleted file mode 100644 index 13cb1ddca0e..00000000000 --- a/TAO/IIOP/docs/us/codecounts/align.hh.cccc +++ /dev/null @@ -1,29 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/align.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef unsigned int ptr_arith_t; 1 21 14 2 0 0.1 0.0 -typedef unsigned long ptr_arith_t; 24 24 0 0 0 -typedef unsigned long long ptr_arit 27 27 0 0 0 -static inline ptr_arith_t align_bin 35 46 5 5 1 1.0 0.2 -static inline unsigned char*ptr_ali 49 61 8 4 1 0.5 0.1 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 27 16 2 0.6 0.1 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/any.cpp.cccc b/TAO/IIOP/docs/us/codecounts/any.cpp.cccc deleted file mode 100644 index 44e6cce66e5..00000000000 --- a/TAO/IIOP/docs/us/codecounts/any.cpp.cccc +++ /dev/null @@ -1,41 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/any.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static pthread_mutex_t any_lock=PTH 1 48 34 1 0 0.0 0.0 -CORBA_TypeCode_ptr CORBA_Any::type( 53 57 0 4 1 ! *** ! *** -void*CORBA_Any::value()const{return 59 63 0 4 1 ! *** ! *** -CORBA_Any::CORBA_Any(){} 65 78 7 6 0 0.9 0.0 -CORBA_Any::CORBA_Any(){} 81 97 5 11 0 2.2 0.0 -static CORBA_TypeCode::traverse_sta 100 305 44 ? 131 ! 30 3.0 0.7 -CORBA_Any::CORBA_Any(){} 308 329 4 13 1 3.3 0.3 -static CORBA_TypeCode::traverse_sta 332 457 46 60 ! 21 1.3 0.5 -CORBA_Any::~CORBA_Any(){} 460 481 10 9 2 0.9 0.2 -void CORBA_Any::replace(){} 484 509 3 19 2 6.3 0.7 -DEFINE_GUID(IID_CORBA_Any,0xa201e4c 511 517 4 2 0 0.5 0.0 -ULONG __stdcall CORBA_Any::AddRef() 520 529 0 6 1 ! *** ! *** -ULONG __stdcall CORBA_Any::Release( 531 548 0 10 3 ! *** ! *** -HRESULT __stdcall CORBA_Any::QueryI 550 567 0 14 5 ! *** ! *** -CORBA_Any::CORBA_Any(){} 570 583 4 8 0 2.0 0.0 -CORBA_Any&CORBA_Any::operator=(){} 585 660 16 45 ? 15 2.8 0.9 -CORBA_Any::operator VARIANT(){VARIA 662 670 1 5 1 5.0 1.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 178 365 83 2.1 0.5 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/any.hh.cccc b/TAO/IIOP/docs/us/codecounts/any.hh.cccc deleted file mode 100644 index 6cfac7fd831..00000000000 --- a/TAO/IIOP/docs/us/codecounts/any.hh.cccc +++ /dev/null @@ -1,27 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/any.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef CORBA_Any*CORBA_Any_ptr; 1 10 9 0 0 0.0 0.0 -extern const IID IID_CORBA_Any; 12 12 0 0 0 -class CORBA_Any{}; 14 87 16 46 2 2.9 0.1 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 25 49 2 2.0 0.1 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/cdr.cpp.cccc b/TAO/IIOP/docs/us/codecounts/cdr.cpp.cccc deleted file mode 100644 index aa92c9f81bd..00000000000 --- a/TAO/IIOP/docs/us/codecounts/cdr.cpp.cccc +++ /dev/null @@ -1,36 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/cdr.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -CORBA_Boolean CDR::put_byte(){} 1 60 37 11 4 0.3 0.1 -CORBA_Boolean CDR::put_short(){} 63 90 7 18 4 2.6 0.6 -CORBA_Boolean CDR::put_long(){} 92 120 7 18 4 2.6 0.6 -CORBA_Boolean CDR::put_longlong(){} 122 149 7 18 4 2.6 0.6 -CORBA_Boolean CDR::put_longdouble() 151 178 7 18 4 2.6 0.6 -CORBA_Boolean CDR::get_byte(){} 181 196 3 11 3 3.7 1.0 -CORBA_Boolean CDR::get_short(){} 199 230 6 22 4 3.7 0.7 -CORBA_Boolean CDR::get_long(){} 232 269 10 24 4 2.4 0.4 -CORBA_Boolean CDR::get_longlong(){} 271 312 10 28 4 2.8 0.4 -CORBA_Boolean CDR::get_longdouble() 315 363 9 36 4 4.0 0.4 -CORBA_Boolean CDR::skip_string(){CO 366 377 2 8 4 4.0 2.0 -CORBA_Boolean CDR::grow(){} 380 460 37 34 ? 9 0.9 0.2 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 142 258 52 1.8 0.4 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/cdr.hh.cccc b/TAO/IIOP/docs/us/codecounts/cdr.hh.cccc deleted file mode 100644 index 627ff33a9d9..00000000000 --- a/TAO/IIOP/docs/us/codecounts/cdr.hh.cccc +++ /dev/null @@ -1,26 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/cdr.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -struct _EXPCLASS CDR{enum{SHORT_SIZ 1 362 155 ? 142 ! 25 0.9 0.2 -; 362 362 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 155 143 25 0.9 0.2 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/connmgr.cpp.cccc b/TAO/IIOP/docs/us/codecounts/connmgr.cpp.cccc deleted file mode 100644 index e934a7ebd12..00000000000 --- a/TAO/IIOP/docs/us/codecounts/connmgr.cpp.cccc +++ /dev/null @@ -1,38 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/connmgr.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static client_endpoint*client_list; 1 77 40 2 0 0.1 0.0 -static server_endpoint*server_list; 78 78 0 0 0 -static pthread_mutex_t client_lock= 82 88 6 0 0 0.0 0.0 -static pthread_mutex_t server_lock= 89 89 0 0 0 -static ACE_HANDLE signal_fd; 91 97 6 0 0 0.0 0.0 -static ACE_HANDLE signal_in_fd; 99 103 4 0 0 0.0 0.0 -void client_endpoint::release(){} 108 120 3 6 0 2.0 0.0 -client_endpoint*client_endpoint::lo 123 290 75 69 ? 18 0.9 0.2 -void client_endpoint::dump(){} 295 318 6 12 1 2.0 0.2 -void server_endpoint::release(){} 324 354 17 7 0 0.4 0.0 -server_endpoint*server_endpoint::in 357 507 50 72 ? 16 1.4 0.3 -server_endpoint*server_endpoint::bl 510 742 89 ? 105 ! 27 1.2 0.3 -void server_endpoint::shutdown_conn 744 765 0 16 2 ! *** ! *** -void server_endpoint::dump(){} 770 790 3 12 2 4.0 0.7 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 299 315 66 1.1 0.2 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/connmgr.hh.cccc b/TAO/IIOP/docs/us/codecounts/connmgr.hh.cccc deleted file mode 100644 index e688b27d271..00000000000 --- a/TAO/IIOP/docs/us/codecounts/connmgr.hh.cccc +++ /dev/null @@ -1,27 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/connmgr.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -template<>class autorelease{}; 1 47 14 16 6 1.1 0.4 -struct client_endpoint{}; 50 85 11 15 0 1.4 0.0 -class server_endpoint{}; 88 141 15 27 0 1.8 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 40 61 6 1.5 0.2 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/corbacom.cpp.cccc b/TAO/IIOP/docs/us/codecounts/corbacom.cpp.cccc deleted file mode 100644 index b7859bad94a..00000000000 --- a/TAO/IIOP/docs/us/codecounts/corbacom.cpp.cccc +++ /dev/null @@ -1,32 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/corbacom.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -CORBA_String CORBA_string_alloc(){} 1 26 10 5 1 0.5 0.1 -CORBA_String CORBA_string_copy(){} 28 37 0 7 3 ! *** ! *** -void CORBA_string_free(){} 39 43 0 4 0 ! *** -extern"unsigned wslen(const wchar_t 47 60 4 8 2 2.0 0.5 -extern"wchar_t*wscpy(wchar_t*dest,c 62 70 0 7 2 ! *** ! *** -CORBA_WString CORBA_wstring_alloc() 74 82 4 4 1 1.0 0.3 -CORBA_WString CORBA_wstring_copy(){ 84 92 0 7 3 ! *** ! *** -void CORBA_wstring_free(){} 94 98 0 4 0 ! *** --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 18 54 12 3.0 0.7 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/corbacom.hh.cccc b/TAO/IIOP/docs/us/codecounts/corbacom.hh.cccc deleted file mode 100644 index 256095a8f3e..00000000000 --- a/TAO/IIOP/docs/us/codecounts/corbacom.hh.cccc +++ /dev/null @@ -1,59 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/corbacom.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef bool CORBA_Boolean; 1 13 6 1 0 0.2 0.0 -typedef int CORBA_Boolean; 18 18 0 0 0 -enum{CORBA_B_FALSE=0,CORBA_B_TRUE=1 19 19 0 0 0 -; 19 19 0 0 0 -typedef unsigned char CORBA_Octet; 22 22 0 0 0 -typedef short CORBA_Short; 24 24 0 0 0 -typedef unsigned short CORBA_UShort 25 25 0 0 0 -typedef long CORBA_Long; 27 32 4 0 0 0.0 0.0 -typedef unsigned long CORBA_ULong; 33 33 0 0 0 -typedef int CORBA_Long; 35 36 1 0 0 0.0 0.0 -typedef unsigned CORBA_ULong; 37 37 0 0 0 -typedef long long CORBA_LongLong; 40 47 6 0 0 0.0 0.0 -typedef unsigned long long CORBA_UL 48 48 0 0 0 -typedef long CORBA_LongLong; 50 50 0 0 0 -typedef unsigned long CORBA_ULongLo 51 51 0 0 0 -typedef __int64 CORBA_LongLong; 53 53 0 0 0 -typedef unsigned __int64 CORBA_ULon 54 54 0 0 0 -struct CORBA_LongLong{}; 56 64 6 0 0 0.0 0.0 -struct CORBA_ULongLong{}; 65 65 0 0 0 -struct CORBA_LongLong{}; 67 67 0 0 0 -struct CORBA_ULongLong{}; 68 68 0 0 0 -typedef float CORBA_Float; 72 72 0 0 0 -typedef double CORBA_Double; 73 73 0 0 0 -typedef long double CORBA_LongDoubl 75 83 7 0 0 0.0 0.0 -struct CORBA_LongDouble{}; 86 88 0 2 0 ! *** -typedef char CORBA_Char; 91 91 0 0 0 -typedef CORBA_Char*CORBA_String; 92 92 0 0 0 -CORBA_String CORBA_string_alloc(); 94 94 0 0 0 -CORBA_String CORBA_string_copy(); 95 95 0 0 0 -void CORBA_string_free(); 96 96 0 0 0 -typedef wchar_t CORBA_WChar; 98 104 6 0 0 0.0 0.0 -typedef CORBA_WChar*CORBA_WString; 105 105 0 0 0 -CORBA_WString CORBA_wstring_alloc() 107 107 0 0 0 -CORBA_WString CORBA_wstring_copy(); 108 108 0 0 0 -void CORBA_wstring_free(); 109 109 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 36 37 0 1.0 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/debug.cpp.cccc b/TAO/IIOP/docs/us/codecounts/debug.cpp.cccc deleted file mode 100644 index 486b8373461..00000000000 --- a/TAO/IIOP/docs/us/codecounts/debug.cpp.cccc +++ /dev/null @@ -1,39 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/debug.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -unsigned debug_level=0; 1 43 13 1 0 0.1 0.0 -char*debug_filter="; 44 44 0 0 0 -static FILE*debug_stream=stderr; 45 45 0 0 0 -static pid_t my_pid; 48 63 13 1 0 0.1 0.0 -static pthread_once_t debug_init=PT 68 71 3 0 0 0.0 0.0 -static void setup_once(){} 75 79 0 4 0 ! *** -static void emit_prefix(){} 81 87 0 5 0 ! *** -static void setup(){} 91 102 5 6 1 1.2 0.2 -static void setup(){} 109 120 5 6 1 1.2 0.2 -void _EXPFUNC dmsg_filter(const cha 130 170 3 28 ? 12 ? 9.3 4.0 -void _EXPFUNC dmsg_filter(unsigned 172 193 1 15 3 ?15.0 3.0 -void _EXPFUNC dmsg_v(const char*_FA 195 213 1 13 1 ?13.0 1.0 -void _EXPFUNC _dmsg_x(CORBA_Environ 215 239 1 18 1 ?18.0 1.0 -void _EXPFUNC dmsg_opaque(char*_FAR 241 286 1 38 ? 10 !38.0 ?10.0 -void _EXPFUNC dmsg_opaque_full(char 288 335 1 39 ? 11 !39.0 ?11.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 47 189 40 4.0 0.9 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/debug.hh.cccc b/TAO/IIOP/docs/us/codecounts/debug.hh.cccc deleted file mode 100644 index 932d9fb5a19..00000000000 --- a/TAO/IIOP/docs/us/codecounts/debug.hh.cccc +++ /dev/null @@ -1,29 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/debug.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -extern"char*strerror(int); 1 12 6 1 0 0.2 0.0 -extern unsigned debug_level; 15 22 7 0 0 0.0 0.0 -extern char*debug_filter; 22 23 1 0 0 0.0 0.0 -_dmsg_x(env,s); 23 43 8 3 0 0.4 0.0 -line 43: syntax error at "}" missing Eof --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 42 21 0 0.5 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/except.cpp.cccc b/TAO/IIOP/docs/us/codecounts/except.cpp.cccc deleted file mode 100644 index 8b1b2294821..00000000000 --- a/TAO/IIOP/docs/us/codecounts/except.cpp.cccc +++ /dev/null @@ -1,53 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/except.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static pthread_mutex_t except_lock= 1 31 12 1 0 0.1 0.0 -DEFINE_GUID(IID_CORBA_Exception,0x7 35 45 2 2 0 1.0 0.0 -DEFINE_GUID(IID_CORBA_UserException 47 49 1 1 0 1.0 0.0 -DEFINE_GUID(IID_CORBA_SystemExcepti 51 53 1 1 0 1.0 0.0 -CORBA_Exception::CORBA_Exception(){ 56 66 0 10 1 ! *** ! *** -CORBA_Exception::CORBA_Exception(){ 68 78 0 10 1 ! *** ! *** -CORBA_Exception::~CORBA_Exception() 80 91 5 5 0 1.0 0.0 -CORBA_Exception&CORBA_Exception::op 93 107 0 13 3 ! *** ! *** -const CORBA_String CORBA_Exception: 109 119 0 9 3 ! *** ! *** -const CORBA_TypeCode_ptr CORBA_Exce 121 126 0 5 1 ! *** ! *** -ULONG __stdcall CORBA_Exception::Ad 128 141 3 7 1 2.3 0.3 -ULONG __stdcall CORBA_Exception::Re 143 167 2 12 3 6.0 1.5 -HRESULT __stdcall CORBA_Exception:: 169 192 4 15 5 3.8 1.3 -CORBA_UserException::CORBA_UserExce 195 203 3 5 0 1.7 0.0 -CORBA_UserException::~CORBA_UserExc 205 207 0 2 0 ! *** -CORBA_SystemException::CORBA_System 209 218 0 9 0 ! *** -CORBA_SystemException::~CORBA_Syste 220 222 0 2 0 ! *** -static CORBA_TypeCode_ptr sys_excep 228 228 0 0 0 -CORBA_ExceptionList __system_except 229 229 0 0 0 -static void make_standard_typecode( 231 318 29 49 ? 10 1.7 0.3 -SYSEX(UNKNOWN)SYSEX(BAD_PARAM)SYSEX 321 396 24 36 1 1.5 0.0 -static CORBA_Octet tc_buf_Bounds[]= 400 418 7 11 0 1.6 0.0 -static CORBA_TypeCode tc_std_Bounds 419 420 0 1 0 ! *** -CORBA_TypeCode_ptr _tc_CORBA_Bounds 421 421 0 0 0 -static CORBA_Octet tc_buf_BadKind[] 423 437 3 11 0 3.7 0.0 -static CORBA_TypeCode tc_std_BadKin 438 439 0 1 0 ! *** -CORBA_TypeCode_ptr _tc_CORBA_BadKin 440 440 0 0 0 -CORBA_ExceptionType CORBA_Environme 444 469 8 13 6 1.6 0.8 -void _EXPFUNC print_exception(const 472 535 24 35 7 1.5 0.3 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 128 295 42 2.3 0.3 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/except.hh.cccc b/TAO/IIOP/docs/us/codecounts/except.hh.cccc deleted file mode 100644 index 430ef037b0d..00000000000 --- a/TAO/IIOP/docs/us/codecounts/except.hh.cccc +++ /dev/null @@ -1,37 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/except.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -extern const IID IID_CORBA_Exceptio 1 15 13 1 0 0.1 0.0 -extern const IID IID_CORBA_UserExce 16 16 0 0 0 -extern const IID IID_CORBA_SystemEx 17 17 0 0 0 -class _EXPCLASS CORBA_Exception:pub 19 52 3 25 2 ? 8.3 0.7 -; 52 52 0 0 0 -typedef CORBA_Exception*CORBA_Excep 53 53 0 0 0 -class _EXPCLASS CORBA_UserException 55 65 5 5 0 1.0 0.0 -; 65 65 0 0 0 -enum CORBA_CompletionStatus{}; 67 75 7 1 0 0.1 0.0 -class _EXPCLASS CORBA_SystemExcepti 77 99 2 16 2 ? 8.0 1.0 -; 99 99 0 0 0 -extern CORBA_TypeCode_ptr _tc_CORBA 102 117 6 4 0 0.7 0.0 -line 117: syntax error at "}" missing Eof --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 44 112 6 2.5 0.1 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/generate b/TAO/IIOP/docs/us/codecounts/generate deleted file mode 100755 index c04f8b92e19..00000000000 --- a/TAO/IIOP/docs/us/codecounts/generate +++ /dev/null @@ -1,24 +0,0 @@ -#/bin/sh - -error() -{ - ret=$1; shift - echo "ERROR: " $@ - return $ret -} - -test -x ${CCCC:=/usr/local/bin/cccc} \ - || error 1 "Value of \$CCCC ($CCCC) not found." - -test -d ${TOPDIR:=../../../lib} \ - || error 1 "Unable to locate \$TOPDIR ($TOPDIR)." - -find $TOPDIR \( -name '*.h' -o -name '*.i' -o -name '*.hh' -o -name '*.cpp' \) -print | -while read file -do - outname=`basename $file`.cccc - $CCCC $file > $outname 2>&1 - echo -n "." -done - -echo diff --git a/TAO/IIOP/docs/us/codecounts/giop.cpp.cccc b/TAO/IIOP/docs/us/codecounts/giop.cpp.cccc deleted file mode 100644 index d4aa24bb14b..00000000000 --- a/TAO/IIOP/docs/us/codecounts/giop.cpp.cccc +++ /dev/null @@ -1,50 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/giop.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static pthread_mutex_t fwd_info_loc 1 79 45 2 0 0.0 0.0 -static inline CORBA_Boolean start_m 83 112 6 19 3 3.2 0.5 -static const char digits[]="; 115 115 0 0 0 -static const char*names[]={}; 116 120 0 4 0 ! *** -static void dump_msg(){} 122 136 0 13 4 ! *** ! *** -CORBA_Boolean GIOP::send_message(){ 142 226 30 43 ? 12 1.4 0.4 -static const char close_message[]={ 229 250 16 5 0 0.3 0.0 -void GIOP::close_connection(ACE_HAN 253 272 8 11 0 1.4 0.0 -static const char error_message[]={ 274 286 7 5 0 0.7 0.0 -static inline void send_error(ACE_H 288 297 0 9 0 ! *** -static int read_buffer(){} 300 331 6 18 4 3.0 0.7 -GIOP::MsgType GIOP::read_message(){ 334 481 75 56 ? 18 0.7 0.2 -GIOP::Invocation::Invocation(IIOP_O 484 524 22 14 0 0.6 0.0 -GIOP::Invocation::~Invocation(){} 526 528 0 2 0 ! *** -static const CORBA_Long _oc_opaque[ 530 543 13 0 0 0.0 0.0 -CORBA_TypeCode TC_opaque(); 544 546 0 2 0 ! *** -static const CORBA_Long _oc_svc_ctx 549 610 50 9 0 0.2 0.0 -static CORBA_TypeCode TC_ServiceCon 611 613 0 2 0 ! *** -void GIOP::Invocation::start(CORBA_ 616 729 58 45 ? 15 0.8 0.3 -extern CORBA_ExceptionList __system 731 731 0 0 0 -GIOP::ReplyStatusType GIOP::Invocat 733 1086 175 ? 144 ! 38 0.8 0.2 -void GIOP::incoming_message(){} 1089 1353 79 ? 151 ! 24 1.9 0.3 -template class autorelease 1 37 19 1 0 0.1 0.0 -class IOP{}; 39 109 45 21 0 0.5 0.0 -class GIOP{}; 112 321 65 ? 120 0 1.8 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 129 145 0 1.1 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/iiopobj.cpp.cccc b/TAO/IIOP/docs/us/codecounts/iiopobj.cpp.cccc deleted file mode 100644 index b440bf69b76..00000000000 --- a/TAO/IIOP/docs/us/codecounts/iiopobj.cpp.cccc +++ /dev/null @@ -1,34 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/iiopobj.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static pthread_mutex_t iiopobj_lock 1 30 13 1 0 0.1 0.0 -IIOP::ProfileBody::ProfileBody(cons 35 50 0 13 0 ! *** -CORBA_ULong IIOP_Object::hash(){} 53 81 10 15 2 1.5 0.2 -CORBA_Boolean IIOP_Object::is_equiv 84 124 10 25 ? 9 2.5 0.9 -DEFINE_GUID(IID_IIOP_Object,0xa201e 127 133 4 2 0 0.5 0.0 -DEFINE_GUID(IID_STUB_Object,0xa201e 135 141 4 2 0 0.5 0.0 -DEFINE_GUID(IID_CORBA_Object,0xa201 143 145 1 1 0 1.0 0.0 -ULONG __stdcall IIOP_Object::AddRef 147 160 3 7 1 2.3 0.3 -ULONG __stdcall IIOP_Object::Releas 162 179 0 10 3 ! *** ! *** -HRESULT __stdcall IIOP_Object::Quer 182 214 11 18 7 1.6 0.6 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 56 104 22 1.9 0.4 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/iiopobj.hh.cccc b/TAO/IIOP/docs/us/codecounts/iiopobj.hh.cccc deleted file mode 100644 index 866ab27c769..00000000000 --- a/TAO/IIOP/docs/us/codecounts/iiopobj.hh.cccc +++ /dev/null @@ -1,30 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/iiopobj.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef CORBA_SEQUENCE 1 15 10 1 0 0.1 0.0 -class _EXPCLASS IIOP{public:struct 17 48 8 17 0 2.1 0.0 -; 48 48 0 0 0 -extern"const IID IID_IIOP_Object; 51 59 8 0 0 0.0 0.0 -class _EXPCLASS IIOP_Object:public 61 152 33 47 0 1.4 0.0 -; 152 152 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 59 69 0 1.2 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/iioporb.cpp.cccc b/TAO/IIOP/docs/us/codecounts/iioporb.cpp.cccc deleted file mode 100644 index 6d1e462cf27..00000000000 --- a/TAO/IIOP/docs/us/codecounts/iioporb.cpp.cccc +++ /dev/null @@ -1,35 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/iioporb.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static const char ior_prefix[]="; 1 27 9 1 0 0.1 0.0 -static const char iiop_prefix[]="; 28 28 0 0 0 -static const char xchars[]="; 29 29 0 0 0 -static inline char nibble2hex(unsig 32 39 3 4 1 1.3 0.3 -static inline unsigned char hex2byt 41 51 0 10 5 ! *** ! *** -CORBA_String IIOP_ORB::object_to_st 54 174 42 64 ? 17 1.5 0.4 -static CORBA_Object_ptr ior_string_ 177 231 14 33 ? 10 2.4 0.7 -static CORBA_Object_ptr iiop_string 234 349 34 68 ! 22 2.0 0.6 -CORBA_Object_ptr IIOP_ORB::string_t 352 374 6 13 5 2.2 0.8 -DEFINE_GUID(IID_IIOP_ORB,0xa201e4c4 376 382 4 2 0 0.5 0.0 -HRESULT __stdcall IIOP_ORB::QueryIn 385 408 3 16 6 5.3 2.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 115 222 66 1.9 0.6 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/iioporb.hh.cccc b/TAO/IIOP/docs/us/codecounts/iioporb.hh.cccc deleted file mode 100644 index e016469fd1e..00000000000 --- a/TAO/IIOP/docs/us/codecounts/iioporb.hh.cccc +++ /dev/null @@ -1,28 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/iioporb.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef class IIOP_ORB*IIOP_ORB_ptr 1 13 9 1 0 0.1 0.0 -extern const IID IID_IIOP_ORB; 15 15 0 0 0 -class _EXPCLASS IIOP_ORB:public COR 17 47 4 22 0 5.5 0.0 -; 47 47 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 13 26 0 2.0 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/initguid.h.cccc b/TAO/IIOP/docs/us/codecounts/initguid.h.cccc deleted file mode 100644 index b106c9a8731..00000000000 --- a/TAO/IIOP/docs/us/codecounts/initguid.h.cccc +++ /dev/null @@ -1,25 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/initguid.h -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -const IID name={0} 1 6 2 1 0 0.5 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 2 2 0 1.0 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/interp.cpp.cccc b/TAO/IIOP/docs/us/codecounts/interp.cpp.cccc deleted file mode 100644 index 690563b2274..00000000000 --- a/TAO/IIOP/docs/us/codecounts/interp.cpp.cccc +++ /dev/null @@ -1,40 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/interp.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef size_t attribute_calculator 1 86 69 6 0 0.1 0.0 -static attribute_calculator calc_st 88 88 0 0 0 -static attribute_calculator calc_ex 89 89 0 0 0 -static attribute_calculator calc_un 90 90 0 0 0 -static attribute_calculator calc_al 91 91 0 0 0 -static attribute_calculator calc_ar 92 92 0 0 0 -typedef CORBA_Boolean param_skip_rt 95 99 4 0 0 0.0 0.0 -static CORBA_Boolean skip_encapsula 101 105 0 4 1 ! *** ! *** -static CORBA_Boolean skip_long(){} 107 113 0 5 1 ! *** ! *** -struct table_element{}; 116 139 18 5 0 0.3 0.0 -static table_element table[]={}; 141 188 37 10 0 0.3 0.0 -{struct align_struct_ x one;char du 191 221 23 4 0 0.2 0.0 -; 221 221 0 0 0 -align_struct_ table[t].size=sizeof( 223 224 0 0 0 -table[t].alignment=(char*)&align.tw 225 226 0 1 0 ! *** -line 227: syntax error at "}" missing Eof --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 603 709 174 1.2 0.3 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/invoke.cpp.cccc b/TAO/IIOP/docs/us/codecounts/invoke.cpp.cccc deleted file mode 100644 index a6b006f91e5..00000000000 --- a/TAO/IIOP/docs/us/codecounts/invoke.cpp.cccc +++ /dev/null @@ -1,26 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/invoke.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -void IIOP_Object::do_call(CORBA_Env 1 193 87 77 ! 24 0.9 0.3 -void IIOP_Object::do_dynamic_call(c 196 346 44 85 ! 26 1.9 0.6 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 131 164 50 1.3 0.4 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/marshal.cpp.cccc b/TAO/IIOP/docs/us/codecounts/marshal.cpp.cccc deleted file mode 100644 index 90175d333fb..00000000000 --- a/TAO/IIOP/docs/us/codecounts/marshal.cpp.cccc +++ /dev/null @@ -1,30 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/marshal.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -extern"{unsigned wslen(const wchar_ 1 58 39 4 0 0.1 0.0 -extern CORBA_TypeCode TC_opaque; 61 61 0 0 0 -CORBA_TypeCode::traverse_status CDR 64 494 146 ? 230 ! 71 1.6 0.5 -const CORBA_TypeCode_ptr __tc_const 497 548 23 24 0 1.0 0.0 -; 548 548 0 0 0 -CORBA_TypeCode::traverse_status CDR 551 1107 163 ? 323 ! 88 2.0 0.5 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 371 586 159 1.6 0.4 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/nvlist.cpp.cccc b/TAO/IIOP/docs/us/codecounts/nvlist.cpp.cccc deleted file mode 100644 index d07414860b1..00000000000 --- a/TAO/IIOP/docs/us/codecounts/nvlist.cpp.cccc +++ /dev/null @@ -1,40 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/nvlist.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static pthread_mutex_t nvlist_lock= 1 21 9 1 0 0.1 0.0 -DEFINE_GUID(IID_CORBA_NamedValue,0x 26 32 4 2 0 0.5 0.0 -ULONG __stdcall CORBA_NamedValue::A 35 44 0 6 1 ! *** ! *** -ULONG __stdcall CORBA_NamedValue::R 46 61 0 10 3 ! *** ! *** -HRESULT __stdcall CORBA_NamedValue: 63 80 0 14 5 ! *** ! *** -void CORBA_release(){} 82 90 3 5 1 1.7 0.3 -CORBA_Boolean CORBA_is_nil(){} 92 96 0 4 1 ! *** ! *** -CORBA_NamedValue::~CORBA_NamedValue 98 102 0 4 1 ! *** ! *** -DEFINE_GUID(IID_CORBA_NVList,0x7742 105 111 4 2 0 0.5 0.0 -ULONG __stdcall CORBA_NVList::AddRe 114 123 0 6 1 ! *** ! *** -ULONG __stdcall CORBA_NVList::Relea 125 140 0 10 3 ! *** ! *** -HRESULT __stdcall CORBA_NVList::Que 142 159 0 14 5 ! *** ! *** -void CORBA_release(){} 161 169 3 5 1 1.7 0.3 -CORBA_Boolean CORBA_is_nil(){} 171 175 0 4 1 ! *** ! *** -CORBA_NVList::~CORBA_NVList(){} 177 188 0 9 2 ! *** ! *** -CORBA_NamedValue_ptr CORBA_NVList:: 190 262 32 35 6 1.1 0.2 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 55 147 31 2.7 0.6 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/nvlist.hh.cccc b/TAO/IIOP/docs/us/codecounts/nvlist.hh.cccc deleted file mode 100644 index b680140d4b9..00000000000 --- a/TAO/IIOP/docs/us/codecounts/nvlist.hh.cccc +++ /dev/null @@ -1,37 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/nvlist.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -class _EXPCLASS CORBA_NamedValue; 1 13 12 0 0 0.0 0.0 -void CORBA_release(); 15 15 0 0 0 -CORBA_Boolean CORBA_is_nil(); 16 16 0 0 0 -enum{CORBA_ARG_IN=0x01,CORBA_ARG_OU 18 25 1 6 0 6.0 0.0 -; 25 25 0 0 0 -class _EXPCLASS CORBA_NamedValue{pu 27 57 3 21 3 7.0 1.0 -; 57 57 0 0 0 -class _EXPCLASS CORBA_NVList; 60 71 11 0 0 0.0 0.0 -void CORBA_release(); 73 73 0 0 0 -CORBA_Boolean CORBA_is_nil(); 74 74 0 0 0 -extern"const IID IID_CORBA_NVList; 76 76 0 0 0 -class _EXPCLASS CORBA_NVList{public 78 119 3 31 2 ?10.3 0.7 -; 119 119 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 30 68 5 2.3 0.2 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/objbase.h.cccc b/TAO/IIOP/docs/us/codecounts/objbase.h.cccc deleted file mode 100644 index 02225ed7d9f..00000000000 --- a/TAO/IIOP/docs/us/codecounts/objbase.h.cccc +++ /dev/null @@ -1,37 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/objbase.h -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef unsigned long ULONG; 1 23 18 1 0 0.1 0.0 -typedef unsigned long HRESULT; 24 24 0 0 0 -typedef char IID[16]; 26 36 8 1 0 0.1 0.0 -typedef const IID&REFIID; 36 37 1 0 0 0.0 0.0 -DEFINE_GUID(IID_IUnknown,b,c,d,e,f, 41 55 4 9 0 2.3 0.0 -; 55 55 0 0 0 -typedef unsigned long SCODE; 59 61 1 1 0 1.0 0.0 -inline HRESULT ResultFromScode(SCOD 63 63 0 0 1 ! *** -typedef unsigned short VARTYPE; 69 79 10 0 0 0.0 0.0 -enum VARENUM{}; 80 98 18 0 0 0.0 0.0 -struct CY{}; 100 111 3 5 0 1.7 0.0 -typedef double DATE; 113 117 4 0 0 0.0 0.0 -struct VARIANT{}; 119 160 35 6 0 0.2 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 102 34 1 0.3 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/object.cpp.cccc b/TAO/IIOP/docs/us/codecounts/object.cpp.cccc deleted file mode 100644 index 82d8215949f..00000000000 --- a/TAO/IIOP/docs/us/codecounts/object.cpp.cccc +++ /dev/null @@ -1,55 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/object.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -CORBA_Object::CORBA_Object(){} 1 25 9 5 0 0.6 0.0 -CORBA_Object::~CORBA_Object(){} 27 29 0 2 0 ! *** -void CORBA_release(){} 31 41 3 7 1 2.3 0.3 -CORBA_Object_ptr CORBA_Object::_dup 43 49 0 6 2 ! *** ! *** -CORBA_Object_ptr CORBA_Object::_nil 51 58 3 4 1 1.3 0.3 -CORBA_Boolean CORBA_is_nil(){} 60 64 0 4 1 ! *** ! *** -void __stdcall CORBA_Object::_creat 67 86 6 13 0 2.2 0.0 -CORBA_Request_ptr __stdcall CORBA_O 89 98 0 9 1 ! *** ! *** -static const paramdata Object_get_i 101 108 5 2 0 0.4 0.0 -static const calldata Object_get_in 109 113 0 4 0 ! *** -; 113 113 0 0 0 -CORBA_InterfaceDef_ptr __stdcall CO 116 150 16 15 3 0.9 0.2 -static const paramdata Object_is_a_ 153 160 4 3 0 0.8 0.0 -static const calldata Object_is_a_c 161 165 0 4 0 ! *** -; 165 165 0 0 0 -CORBA_Boolean __stdcall CORBA_Objec 168 218 27 19 6 0.7 0.2 -static const paramdata Object_get_i 221 228 5 2 0 0.4 0.0 -static const calldata Object_get_im 229 233 0 4 0 ! *** -; 233 233 0 0 0 -CORBA_ImplementationDef_ptr __stdca 236 253 0 15 3 ! *** ! *** -static const paramdata Object_non_e 256 263 5 2 0 0.4 0.0 -static const calldata Object_non_ex 264 268 0 4 0 ! *** -; 268 268 0 0 0 -CORBA_Boolean __stdcall CORBA_Objec 271 306 3 28 ? 8 ? 9.3 2.7 -CORBA_ULong __stdcall CORBA_Object: 309 329 4 14 3 3.5 0.8 -CORBA_Boolean __stdcall CORBA_Objec 332 360 7 18 5 2.6 0.7 -DEFINE_GUID(IID_IUnknown,0x77420089 363 374 7 3 0 0.4 0.0 -DEFINE_GUID(IID_CORBA_Object,0xa201 378 380 1 1 0 1.0 0.0 -ULONG __stdcall CORBA_Object::AddRe 384 389 0 5 1 ! *** ! *** -ULONG __stdcall CORBA_Object::Relea 391 396 0 5 1 ! *** ! *** -HRESULT __stdcall CORBA_Object::Que 398 406 0 8 1 ! *** ! *** --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 105 233 37 2.2 0.4 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/object.hh.cccc b/TAO/IIOP/docs/us/codecounts/object.hh.cccc deleted file mode 100644 index b8f3b41f6c5..00000000000 --- a/TAO/IIOP/docs/us/codecounts/object.hh.cccc +++ /dev/null @@ -1,31 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/object.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef class CORBA_Object*CORBA_Ob 1 11 10 0 0 0.0 0.0 -void CORBA_release(); 12 12 0 0 0 -CORBA_Boolean CORBA_is_nil(); 13 13 0 0 0 -extern const IID IID_CORBA_Object; 15 15 0 0 0 -class _EXPCLASS CORBA_Object:public 17 109 28 58 0 2.1 0.0 -; 109 109 0 0 0 -line 112: syntax error at "ÿ" missing Start --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 39 63 0 1.6 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/orb.hh.cccc b/TAO/IIOP/docs/us/codecounts/orb.hh.cccc deleted file mode 100644 index c5687f297f9..00000000000 --- a/TAO/IIOP/docs/us/codecounts/orb.hh.cccc +++ /dev/null @@ -1,33 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/orb.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef class CORBA_TypeCode*CORBA_ 1 112 90 5 0 0.1 0.0 -typedef class CORBA_Any*CORBA_Any_p 113 113 0 0 0 -typedef class CORBA_ImplementationD 115 115 0 0 0 -typedef class CORBA_InterfaceDef*CO 117 117 0 0 0 -typedef class CORBA_Request*CORBA_R 119 119 0 0 0 -typedef class CORBA_NamedValue*CORB 121 121 0 0 0 -typedef class CORBA_NVList*CORBA_NV 123 123 0 0 0 -typedef unsigned CORBA_Flags; 125 125 0 0 0 -line 160: syntax error at "ÿ" missing Start --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 101 17 0 0.2 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/orbconf.hh.cccc b/TAO/IIOP/docs/us/codecounts/orbconf.hh.cccc deleted file mode 100644 index 12c296cc020..00000000000 --- a/TAO/IIOP/docs/us/codecounts/orbconf.hh.cccc +++ /dev/null @@ -1,26 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/orbconf.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef unsigned long pid_t; 1 148 56 24 0 0.4 0.0 -line 183: syntax error at "ÿ" missing Start --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 67 27 0 0.4 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/orbobj.cpp.cccc b/TAO/IIOP/docs/us/codecounts/orbobj.cpp.cccc deleted file mode 100644 index 927fc2f58fb..00000000000 --- a/TAO/IIOP/docs/us/codecounts/orbobj.cpp.cccc +++ /dev/null @@ -1,41 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/orbobj.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -extern void __TC_init_table(); 1 28 10 1 0 0.1 0.0 -extern void __TC_init_standard_exce 29 29 0 0 0 -static pthread_mutex_t refcnt_lock= 32 32 0 0 0 -CORBA_ORB::CORBA_ORB(){} 41 47 3 3 0 1.0 0.0 -CORBA_ORB::~CORBA_ORB(){} 49 52 0 3 0 ! *** -void CORBA_release(){} 54 64 3 7 1 2.3 0.3 -CORBA_ORB_ptr CORBA_ORB::_duplicate 66 72 0 6 2 ! *** ! *** -CORBA_ORB_ptr CORBA_ORB::_nil(){} 74 81 3 4 1 1.3 0.3 -CORBA_Boolean CORBA_is_nil(){} 83 87 0 4 1 ! *** ! *** -DEFINE_GUID(IID_CORBA_ORB,0xa201e4c 90 96 4 2 0 0.5 0.0 -DEFINE_GUID(IID_STUB_Object,0xa201e 99 101 1 1 0 1.0 0.0 -ULONG __stdcall CORBA_ORB::AddRef() 105 114 0 6 1 ! *** ! *** -ULONG __stdcall CORBA_ORB::Release( 116 135 0 11 3 ! *** ! *** -static CORBA_ORB_ptr the_orb; 138 145 7 0 0 0.0 0.0 -CORBA_ORB_ptr CORBA_ORB_init(int&,c 147 290 59 60 ! 23 1.0 0.4 -void CORBA_ORB::create_list(){} 292 308 0 14 1 ! *** ! *** -CORBA_ORB_ptr _orb(){} 311 322 7 4 1 0.6 0.1 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 97 143 34 1.5 0.4 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/orbobj.hh.cccc b/TAO/IIOP/docs/us/codecounts/orbobj.hh.cccc deleted file mode 100644 index ccc192d6a06..00000000000 --- a/TAO/IIOP/docs/us/codecounts/orbobj.hh.cccc +++ /dev/null @@ -1,31 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/orbobj.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef class CORBA_ORB*CORBA_ORB_p 1 8 7 0 0 0.0 0.0 -void CORBA_release(); 9 9 0 0 0 -CORBA_Boolean CORBA_is_nil(); 10 10 0 0 0 -extern const IID IID_CORBA_ORB; 12 12 0 0 0 -CORBA_ORB_ptr CORBA_ORB_init(); 14 23 3 6 0 2.0 0.0 -class _EXPCLASS CORBA_ORB:public IU 25 71 13 26 0 2.0 0.0 -; 71 71 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 23 38 0 1.7 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/principa.cpp.cccc b/TAO/IIOP/docs/us/codecounts/principa.cpp.cccc deleted file mode 100644 index 6486125713e..00000000000 --- a/TAO/IIOP/docs/us/codecounts/principa.cpp.cccc +++ /dev/null @@ -1,33 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/principa.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static pthread_mutex_t principal_lo 1 22 9 1 0 0.1 0.0 -void CORBA_release(){} 26 31 0 5 1 ! *** ! *** -CORBA_Boolean CORBA_is_nil(){} 33 37 0 4 1 ! *** ! *** -CORBA_Principal::CORBA_Principal(){ 39 41 0 2 0 ! *** -CORBA_Principal::~CORBA_Principal() 43 49 0 5 1 ! *** ! *** -DEFINE_GUID(IID_CORBA_Principal,0xa 51 57 4 2 0 0.5 0.0 -ULONG __stdcall CORBA_Principal::Ad 60 69 0 6 1 ! *** ! *** -ULONG __stdcall CORBA_Principal::Re 71 88 0 10 3 ! *** ! *** -HRESULT __stdcall CORBA_Principal:: 90 107 0 14 5 ! *** ! *** --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 13 58 12 4.5 0.9 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/principa.hh.cccc b/TAO/IIOP/docs/us/codecounts/principa.hh.cccc deleted file mode 100644 index eee81276ec6..00000000000 --- a/TAO/IIOP/docs/us/codecounts/principa.hh.cccc +++ /dev/null @@ -1,30 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/principa.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef class CORBA_Principal*CORBA 1 8 7 0 0 0.0 0.0 -void CORBA_release(); 10 10 0 0 0 -CORBA_Boolean CORBA_is_nil(); 11 11 0 0 0 -extern const IID IID_CORBA_Principa 13 13 0 0 0 -class _EXPCLASS CORBA_Principal:pub 15 52 12 17 0 1.4 0.0 -; 52 52 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 19 22 0 1.2 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/request.cpp.cccc b/TAO/IIOP/docs/us/codecounts/request.cpp.cccc deleted file mode 100644 index 5b717985743..00000000000 --- a/TAO/IIOP/docs/us/codecounts/request.cpp.cccc +++ /dev/null @@ -1,36 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/request.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -DEFINE_GUID(IID_CORBA_Request,0x774 1 19 7 2 0 0.3 0.0 -static pthread_mutex_t refcnt_lock= 22 22 0 0 0 -ULONG __stdcall CORBA_Request::AddR 26 35 0 6 1 ! *** ! *** -ULONG __stdcall CORBA_Request::Rele 37 52 0 10 3 ! *** ! *** -HRESULT __stdcall CORBA_Request::Qu 54 71 0 14 5 ! *** ! *** -void CORBA_release(){} 73 81 3 5 1 1.7 0.3 -CORBA_Boolean CORBA_is_nil(){} 83 87 0 4 1 ! *** ! *** -CORBA_Request::CORBA_Request(CORBA_ 89 106 3 14 0 4.7 0.0 -CORBA_Request::CORBA_Request(){} 109 121 0 11 0 ! *** -CORBA_Request::~CORBA_Request(){} 123 131 0 7 0 ! *** -void CORBA_Request::invoke(){} 133 154 8 11 2 1.4 0.3 -void CORBA_Request::send_oneway(){} 156 168 0 11 2 ! *** ! *** --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 21 107 15 5.1 0.7 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/request.hh.cccc b/TAO/IIOP/docs/us/codecounts/request.hh.cccc deleted file mode 100644 index 6859f7eaf38..00000000000 --- a/TAO/IIOP/docs/us/codecounts/request.hh.cccc +++ /dev/null @@ -1,31 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/request.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -void CORBA_release(); 1 8 6 1 0 0.2 0.0 -CORBA_Boolean CORBA_is_nil(); 9 9 0 0 0 -typedef CORBA_SEQUENCE 86 87 1 0 0 0.0 0.0 -template class ACE_Message_Queuestruct CORBA_SEQUENCE{}; 1 21 5 10 0 2.0 0.0 -typedef CORBA_SEQUENCE 23 23 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 5 12 0 2.4 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/stub.hh.cccc b/TAO/IIOP/docs/us/codecounts/stub.hh.cccc deleted file mode 100644 index 2dad231e858..00000000000 --- a/TAO/IIOP/docs/us/codecounts/stub.hh.cccc +++ /dev/null @@ -1,32 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/stub.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -enum param_type{}; 1 27 20 4 0 0.2 0.0 -struct paramdata{}; 29 49 19 1 0 0.1 0.0 -struct calldata{}; 52 83 28 3 0 0.1 0.0 -typedef void(*skeleton)(); 86 98 12 0 0 0.0 0.0 -struct skel_entry{}; 100 103 1 2 0 2.0 0.0 -extern const IID IID_STUB_Object; 107 117 10 0 0 0.0 0.0 -class _EXPCLASS STUB_Object:public 119 224 63 34 0 0.5 0.0 -; 224 224 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 153 51 0 0.3 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/svrrqst.cpp.cccc b/TAO/IIOP/docs/us/codecounts/svrrqst.cpp.cccc deleted file mode 100644 index b9e9230c2e0..00000000000 --- a/TAO/IIOP/docs/us/codecounts/svrrqst.cpp.cccc +++ /dev/null @@ -1,39 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/svrrqst.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -DEFINE_GUID(IID_IIOP_ServerRequest, 1 20 7 2 0 0.3 0.0 -DEFINE_GUID(IID_CORBA_ServerRequest 22 24 1 1 0 1.0 0.0 -static pthread_mutex_t svrqst_lock= 29 29 0 0 0 -IIOP_ServerRequest::~IIOP_ServerReq 33 42 0 9 3 ! *** ! *** -ULONG __stdcall IIOP_ServerRequest: 45 55 0 7 1 ! *** ! *** -ULONG __stdcall IIOP_ServerRequest: 57 73 0 11 3 ! *** ! *** -HRESULT __stdcall IIOP_ServerReques 75 95 0 17 6 ! *** ! *** -void __stdcall IIOP_ServerRequest:: 98 173 36 31 3 0.9 0.1 -void __stdcall IIOP_ServerRequest:: 176 196 6 12 3 2.0 0.5 -void __stdcall IIOP_ServerRequest:: 199 219 4 15 3 3.8 0.8 -CORBA_String __stdcall IIOP_ServerR 222 230 3 5 1 1.7 0.3 -CORBA_Object_ptr __stdcall IIOP_Ser 232 238 1 5 1 5.0 1.0 -CORBA_Principal_ptr __stdcall IIOP_ 240 246 1 5 1 5.0 1.0 -CORBA_ORB_ptr __stdcall IIOP_Server 248 253 0 5 1 ! *** ! *** -TOA_ptr __stdcall IIOP_ServerReques 255 260 0 5 1 ! *** ! *** --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 59 145 27 2.5 0.5 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/svrrqst.hh.cccc b/TAO/IIOP/docs/us/codecounts/svrrqst.hh.cccc deleted file mode 100644 index aa6da40edce..00000000000 --- a/TAO/IIOP/docs/us/codecounts/svrrqst.hh.cccc +++ /dev/null @@ -1,35 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/svrrqst.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef class CORBA_ServerRequest*C 1 16 9 1 0 0.1 0.0 -typedef class CORBA_ORB*CORBA_ORB_p 17 17 0 0 0 -typedef class TOA*TOA_ptr; 18 18 0 0 0 -void CORBA_release(); 20 20 0 0 0 -CORBA_Boolean CORBA_is_nil(); 21 21 0 0 0 -extern const IID IID_CORBA_ServerRe 23 23 0 0 0 -class _EXPCLASS CORBA_ServerRequest 25 78 29 21 0 0.7 0.0 -; 78 78 0 0 0 -extern const IID IID_IIOP_ServerReq 80 80 0 0 0 -class _EXPCLASS IIOP_ServerRequest: 82 159 17 51 0 3.0 0.0 -; 159 159 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 55 82 0 1.5 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/t-sizes.cpp.cccc b/TAO/IIOP/docs/us/codecounts/t-sizes.cpp.cccc deleted file mode 100644 index 24592ade908..00000000000 --- a/TAO/IIOP/docs/us/codecounts/t-sizes.cpp.cccc +++ /dev/null @@ -1,25 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/t-sizes.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -int main(){} 6 15 0 9 0 ! *** --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 0 10 0 ! *** --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/t-xdr.cpp.cccc b/TAO/IIOP/docs/us/codecounts/t-xdr.cpp.cccc deleted file mode 100644 index b32010c4109..00000000000 --- a/TAO/IIOP/docs/us/codecounts/t-xdr.cpp.cccc +++ /dev/null @@ -1,29 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/t-xdr.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef CORBA_SEQUENCE 1 34 12 2 0 0.2 0.0 -struct interesting{}; 36 73 18 12 0 0.7 0.0 -extern CORBA_TypeCode TC_opaque; 75 78 2 1 0 0.5 0.0 -static void do_test(){} 80 225 34 82 ! 30 2.4 0.9 -int main(){} 228 264 3 29 3 ? 9.7 1.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 69 131 33 1.9 0.5 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/tc_const.cpp.cccc b/TAO/IIOP/docs/us/codecounts/tc_const.cpp.cccc deleted file mode 100644 index e606b23721b..00000000000 --- a/TAO/IIOP/docs/us/codecounts/tc_const.cpp.cccc +++ /dev/null @@ -1,68 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/tc_const.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static CORBA_TypeCode tc_null(); 1 25 18 1 0 0.1 0.0 -const CORBA_TypeCode_ptr _tc_CORBA_ 26 26 0 0 0 -CORBA_TypeCode_ptr CORBA_TypeCode:: 28 32 0 4 1 ! *** ! *** -static CORBA_TypeCode tc_void(); 34 34 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 35 35 0 0 0 -static CORBA_TypeCode tc_short(); 37 40 3 0 0 0.0 0.0 -const CORBA_TypeCode_ptr _tc_CORBA_ 41 41 0 0 0 -static CORBA_TypeCode tc_long(); 43 43 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 44 44 0 0 0 -static CORBA_TypeCode tc_longlong() 46 46 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 47 47 0 0 0 -static CORBA_TypeCode tc_ushort(); 49 49 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 50 50 0 0 0 -static CORBA_TypeCode tc_ulong(); 52 52 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 53 53 0 0 0 -static CORBA_TypeCode tc_ulonglong( 55 55 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 56 56 0 0 0 -static CORBA_TypeCode tc_float(); 58 61 3 0 0 0.0 0.0 -const CORBA_TypeCode_ptr _tc_CORBA_ 62 62 0 0 0 -static CORBA_TypeCode tc_double(); 64 64 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 65 65 0 0 0 -static CORBA_TypeCode tc_longdouble 67 67 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 68 68 0 0 0 -static CORBA_TypeCode tc_boolean(); 70 73 3 0 0 0.0 0.0 -const CORBA_TypeCode_ptr _tc_CORBA_ 74 74 0 0 0 -static CORBA_TypeCode tc_octet(); 76 76 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 77 77 0 0 0 -static CORBA_TypeCode tc_char(); 79 84 5 0 0 0.0 0.0 -const CORBA_TypeCode_ptr _tc_CORBA_ 85 85 0 0 0 -static CORBA_TypeCode tc_wchar(); 87 87 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 88 88 0 0 0 -static CORBA_TypeCode tc_string(); 90 90 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 91 91 0 0 0 -static CORBA_TypeCode tc_wstring(); 93 93 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 94 94 0 0 0 -static CORBA_TypeCode tc_any(); 96 100 4 0 0 0.0 0.0 -const CORBA_TypeCode_ptr _tc_CORBA_ 101 101 0 0 0 -static CORBA_TypeCode tc_typecode() 103 103 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 104 104 0 0 0 -static CORBA_TypeCode tc_principal( 106 106 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 107 107 0 0 0 -static const unsigned char oc_objre 109 128 8 11 0 1.4 0.0 -static CORBA_TypeCode tc_objref(); 129 131 0 2 0 ! *** -const CORBA_TypeCode_ptr _tc_CORBA_ 132 132 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 44 62 1 1.4 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/tcpoa.cpp.cccc b/TAO/IIOP/docs/us/codecounts/tcpoa.cpp.cccc deleted file mode 100644 index a5e145edfe2..00000000000 --- a/TAO/IIOP/docs/us/codecounts/tcpoa.cpp.cccc +++ /dev/null @@ -1,51 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/tcpoa.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static TCP_OA*the_oa; 1 44 14 1 0 0.1 0.0 -static pthread_key_t request_key; 47 47 0 0 0 -static pthread_mutex_t tcpoa_mutex= 48 48 0 0 0 -static pthread_mutex_t tcpoa_lock=P 49 49 0 0 0 -static pthread_attr_t thread_attr; 50 50 0 0 0 -static void tcp_oa_dispatcher(){} 53 180 45 59 ? 10 1.3 0.2 -static GIOP::LocateStatusType tcp_o 182 206 4 18 5 4.5 1.3 -TCP_OA::TCP_OA(CORBA_ORB_ptr owning 209 237 5 19 3 3.8 0.6 -TCP_OA::~TCP_OA(){} 239 241 0 2 0 ! *** -TCP_OA_ptr TCP_OA::init(){} 244 288 11 18 3 1.6 0.3 -CORBA_Object_ptr __stdcall TCP_OA:: 291 348 9 41 ? 8 4.6 0.9 -CORBA_OctetSeq*__stdcall TCP_OA::ge 351 364 4 9 1 2.3 0.3 -((GIOP::RequestHeader*)pthread_gets 368 382 9 1 0 0.1 0.0 -CORBA_Object_ptr __stdcall _this(){ 386 436 23 22 6 1.0 0.3 -CORBA_OctetSeq*__stdcall TCP_OA::ge 439 454 6 8 1 1.3 0.2 -CORBA_Principal_ptr __stdcall TCP_O 457 472 6 8 1 1.3 0.2 -void TCP_OA::handle_message(){} 474 489 3 8 1 2.7 0.3 -void*TCP_OA::worker(){} 493 527 16 15 4 0.9 0.3 -void __stdcall TCP_OA::get_request( 531 779 128 82 ? 14 0.6 0.1 -void __stdcall TCP_OA::please_shutd 782 797 3 9 0 3.0 0.0 -void __stdcall TCP_OA::clean_shutdo 799 824 3 15 2 5.0 0.7 -void __stdcall TCP_OA::register_dir 827 848 3 16 2 5.3 0.7 -void __stdcall TCP_OA::get_request( 850 873 9 13 2 1.4 0.2 -DEFINE_GUID(IID_TCP_OA,0xa201e4c4,0 876 882 4 2 0 0.5 0.0 -ULONG __stdcall TCP_OA::AddRef(){Cr 885 894 0 6 1 ! *** ! *** -ULONG __stdcall TCP_OA::Release(){C 896 913 0 10 3 ! *** ! *** -HRESULT __stdcall TCP_OA::QueryInte 915 934 0 16 6 ! *** ! *** --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 305 425 73 1.4 0.2 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/tcpoa.hh.cccc b/TAO/IIOP/docs/us/codecounts/tcpoa.hh.cccc deleted file mode 100644 index 8feca7cce56..00000000000 --- a/TAO/IIOP/docs/us/codecounts/tcpoa.hh.cccc +++ /dev/null @@ -1,31 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/tcpoa.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -class _EXPCLASS TCP_OA; 1 33 26 1 0 0.0 0.0 -typedef TCP_OA*TCP_OA_ptr; 34 34 0 0 0 -extern const IID IID_TCP_OA; 38 38 0 0 0 -class _EXPCLASS TCP_OA:public TOA{p 40 224 93 61 2 0.7 0.0 -; 224 224 0 0 0 -typedef TCP_OA*TCP_OA_ptr; 226 226 0 0 0 -extern CORBA_Object_ptr __stdcall _ 229 245 16 0 0 0.0 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 135 68 2 0.5 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/thread.hh.cccc b/TAO/IIOP/docs/us/codecounts/thread.hh.cccc deleted file mode 100644 index 4b1e08a0cfd..00000000000 --- a/TAO/IIOP/docs/us/codecounts/thread.hh.cccc +++ /dev/null @@ -1,35 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/thread.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef thread_t pthread_t; 1 67 39 4 0 0.1 0.0 -typedef mutex_t pthread_mutex_t; 68 68 0 0 0 -typedef cond_t pthread_cond_t; 69 69 0 0 0 -typedef unsigned long pthread_attr_ 70 70 0 0 0 -typedef thread_key_t pthread_key_t; 71 71 0 0 0 -struct pthread_once_t{}; 81 84 0 3 0 ! *** -inline void pthread_once(pthread_on 88 97 0 9 1 ! *** ! *** -inline void*pthread_getspecific(pth 107 114 0 6 1 ! *** ! *** -inline int pthread_create(pthread_t 118 127 0 9 1 ! *** ! *** -class Critical{}; 133 156 6 14 0 2.3 0.0 -class ForceSynchronousCancel{}; 159 181 10 8 0 0.8 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 55 64 3 1.2 0.1 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/toa.cpp.cccc b/TAO/IIOP/docs/us/codecounts/toa.cpp.cccc deleted file mode 100644 index 98d352ea297..00000000000 --- a/TAO/IIOP/docs/us/codecounts/toa.cpp.cccc +++ /dev/null @@ -1,27 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/toa.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -DEFINE_GUID(IID_TOA,0xa201e4c8,0xf2 1 44 14 3 0 0.2 0.0 -TOA_ptr TOA::get_named_toa(){} 47 102 28 22 5 0.8 0.2 -TOA_ptr TOA::get_toa(){} 105 147 15 22 5 1.5 0.3 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 57 50 10 0.9 0.2 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/toa.hh.cccc b/TAO/IIOP/docs/us/codecounts/toa.hh.cccc deleted file mode 100644 index 3229e548e61..00000000000 --- a/TAO/IIOP/docs/us/codecounts/toa.hh.cccc +++ /dev/null @@ -1,30 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/toa.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef class TOA*TOA_ptr; 1 18 10 1 0 0.1 0.0 -CORBA_Boolean is_nil(); 20 20 0 0 0 -void release(); 21 21 0 0 0 -extern const IID IID_TOA; 23 23 0 0 0 -class TOA:public IUnknown{public:vi 25 187 113 41 0 0.4 0.0 -; 187 187 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 123 47 0 0.4 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/typecode.cpp.cccc b/TAO/IIOP/docs/us/codecounts/typecode.cpp.cccc deleted file mode 100644 index 11a4a8c0c88..00000000000 --- a/TAO/IIOP/docs/us/codecounts/typecode.cpp.cccc +++ /dev/null @@ -1,41 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/typecode.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static pthread_mutex_t refcnt_lock= 1 38 20 1 0 0.1 0.0 -void CORBA_release(){} 42 47 0 5 1 ! *** ! *** -CORBA_Boolean CORBA_is_nil(){} 49 53 0 4 1 ! *** ! *** -CORBA_TypeCode::CORBA_TypeCode(CORB 55 69 4 10 0 2.5 0.0 -CORBA_TypeCode::CORBA_TypeCode(CORB 72 115 20 21 1 1.0 0.1 -CORBA_TypeCode::~CORBA_TypeCode(){} 118 129 5 6 2 1.2 0.4 -DEFINE_GUID(IID_CORBA_TypeCode,0xa2 132 139 5 2 0 0.4 0.0 -ULONG __stdcall CORBA_TypeCode::Add 142 151 0 6 1 ! *** ! *** -ULONG __stdcall CORBA_TypeCode::Rel 153 168 0 11 4 ! *** ! *** -HRESULT __stdcall CORBA_TypeCode::Q 170 187 0 14 5 ! *** ! *** -CORBA_TCKind CORBA_TypeCode::kind(C 190 200 3 7 1 2.3 0.3 -static CORBA_Boolean skip_typecode( 203 252 15 29 ? 9 1.9 0.6 -CORBA_Any_ptr CORBA_TypeCode::membe 255 341 29 44 ? 19 1.5 0.7 -CORBA_ULong CORBA_TypeCode::param_c 344 434 23 53 ! 22 2.3 1.0 -CORBA_ULong CORBA_TypeCode::ulong_p 437 507 26 36 ? 16 1.4 0.6 -CORBA_TypeCode_ptr CORBA_TypeCode:: 510 672 43 99 ! 58 2.3 1.3 -CORBA_String CORBA_TypeCode::id(COR 675 711 15 19 3 1.3 0.2 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 208 384 143 1.8 0.7 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/typecode.hh.cccc b/TAO/IIOP/docs/us/codecounts/typecode.hh.cccc deleted file mode 100644 index 494931168d4..00000000000 --- a/TAO/IIOP/docs/us/codecounts/typecode.hh.cccc +++ /dev/null @@ -1,36 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/typecode.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -enum CORBA_TCKind{}; 1 50 23 26 0 1.1 0.0 -extern CORBA_TypeCode_ptr _tc_CORBA 53 56 3 0 0 0.0 0.0 -class CORBA_Bounds{}; 57 62 0 5 0 ! *** -extern CORBA_TypeCode_ptr _tc_CORBA 64 64 0 0 0 -class CORBA_BadKind{}; 65 70 0 5 0 ! *** -typedef class CORBA_TypeCode*CORBA_ 73 82 9 0 0 0.0 0.0 -void CORBA_release(); 83 83 0 0 0 -CORBA_Boolean CORBA_is_nil(); 84 84 0 0 0 -extern const IID IID_CORBA_TypeCode 86 86 0 0 0 -class _EXPCLASS CORBA_TypeCode:publ 88 266 101 56 2 0.6 0.0 -; 266 266 0 0 0 -extern const CORBA_TypeCode_ptr _tc 268 298 3 21 0 7.0 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 139 124 2 0.9 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/xdr.cpp.cccc b/TAO/IIOP/docs/us/codecounts/xdr.cpp.cccc deleted file mode 100644 index 90d59d8dd98..00000000000 --- a/TAO/IIOP/docs/us/codecounts/xdr.cpp.cccc +++ /dev/null @@ -1,33 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/xdr.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -CORBA_Boolean XDR_stream::put_longl 1 52 31 6 1 0.2 0.0 -CORBA_Boolean XDR_stream::get_longl 54 59 0 5 1 ! *** ! *** -CORBA_Boolean XDR_stream::put_longd 62 70 3 5 1 1.7 0.3 -CORBA_Boolean XDR_stream::get_longd 72 77 0 5 1 ! *** ! *** -CORBA_TypeCode::traverse_status XDR 80 406 82 ? 202 ! 65 2.5 0.8 -extern CORBA_TypeCode_ptr __tc_cons 410 413 3 0 0 0.0 0.0 -CORBA_TypeCode::traverse_status XDR 416 766 82 ? 220 ! 60 2.7 0.7 -CORBA_Boolean XDR_stream::flush_fra 769 801 10 15 3 1.5 0.3 -CORBA_Boolean XDR_stream::read_frag 804 815 5 5 1 1.0 0.2 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 216 472 133 2.2 0.6 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/xdr.hh.cccc b/TAO/IIOP/docs/us/codecounts/xdr.hh.cccc deleted file mode 100644 index 45e2ca773c7..00000000000 --- a/TAO/IIOP/docs/us/codecounts/xdr.hh.cccc +++ /dev/null @@ -1,27 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/xdr.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -class XDR_stream{}; 1 269 78 ? 149 ! 32 1.9 0.4 -inline CORBA_Boolean XDR_stream::ou 271 275 0 4 1 ! *** ! *** -inline CORBA_Boolean XDR_stream::pu 277 287 0 10 4 ! *** ! *** --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 78 166 37 2.1 0.5 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/plan.html b/TAO/IIOP/docs/us/plan.html deleted file mode 100644 index 5650257a330..00000000000 --- a/TAO/IIOP/docs/us/plan.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - IIOP Notes - - - -

IIOP Notes

- -

- The current plan for transforming the Sun IIOP Reference - implementation into the basis of the TAO is: - -

    -
  1. Replace selected portions of code with ACE components while maintaining the current architecture and design. -
  2. Distill the design patterns and begin re-architecting. -
- -

- Please feel free to email additions to this list! - -


-
Chris Cleeland
- - -Last modified: Fri Feb 14 15:46:52 CST - - - diff --git a/TAO/IIOP/docs/us/server b/TAO/IIOP/docs/us/server deleted file mode 100644 index afad69638a8..00000000000 --- a/TAO/IIOP/docs/us/server +++ /dev/null @@ -1,5 +0,0 @@ -This note describes architectural differences between the Sun IIOP -Reference implementation (SIR) and a new architecture based on ACE. -After narrating the SIR architecture, shortcomings of that design are -highlighted, and a solution known as The ACE ORB (TAO) presented. - diff --git a/TAO/IIOP/test/Build/clnt.bld b/TAO/IIOP/test/Build/clnt.bld deleted file mode 100755 index 76e60ef8967..00000000000 --- a/TAO/IIOP/test/Build/clnt.bld +++ /dev/null @@ -1,8 +0,0 @@ -#!build -default: - program - :debuglevel=multi -../cubit.cpp - C++ -../clnt.cpp - C++ diff --git a/TAO/IIOP/test/Build/default.bld b/TAO/IIOP/test/Build/default.bld deleted file mode 100755 index cdf3e2e8210..00000000000 --- a/TAO/IIOP/test/Build/default.bld +++ /dev/null @@ -1,19 +0,0 @@ -#!build -default: - nobuild - :debuglevel=multi - :target=vxwppc - :sourcedirs=/home/ace/ACE_wrappers.vxworks - :sourcedirs=../../proto/include - :sourcedirs=../.. - :libraries=../../proto/lib/tao.a - :libraries=/home/ace/ACE_wrappers.vxworks/ace/libACE.a - :libraries=/appl/newgreen/vxppc603/indlib.o - :defines=DEBUG -clnt.bld - program - :debuglevel=multi -svr.bld - program - :debuglevel=multi - :defines=USE_ACE_EVENT_HANDLING diff --git a/TAO/IIOP/test/Build/svr.bld b/TAO/IIOP/test/Build/svr.bld deleted file mode 100755 index 7c8725356b2..00000000000 --- a/TAO/IIOP/test/Build/svr.bld +++ /dev/null @@ -1,8 +0,0 @@ -#!build -default: - program - :debuglevel=multi -../svr.cpp - C++ -../cubit.cpp - C++ diff --git a/TAO/IIOP/test/Makefile b/TAO/IIOP/test/Makefile deleted file mode 100644 index 9237323f9c8..00000000000 --- a/TAO/IIOP/test/Makefile +++ /dev/null @@ -1,121 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Top-level Makefile for the ACE-ified Sun Ref. implementation -# of IIOP ORB -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -LDLIBS = -lcorba - -PROG_SRCS = svr.cpp clnt.cpp cubit.cpp \ - test1.cpp test1_clnt.cpp test1_svr.cpp \ - echo_clnt.cpp echo_svr.cpp - -LSRC = $(PROG_SRCS) - -CUBIT_SVR_OBJS = svr.o cubit_i.o cubitS.o -CUBIT_CLT_OBJS = clnt.o cubitC.o - -BASIC_SVR_OBJS = test1.o test1_svr.o -BASIC_CLT_OBJS = test1.o test1_clnt.o - -ECHO_SVR_OBJS = test1.o echo_svr.o -ECHO_CLT_OBJS = test1.o echo_clnt.o - -BIN = svr clnt test1_svr test1_clnt -BUILD = $(BIN) -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -# Local modifications to variables imported by includes above. -LDFLAGS += -L../proto/lib -CPPFLAGS += -I../proto/include -DUSE_ACE_EVENT_HANDLING -DDEBUG - -svr: $(addprefix $(VDIR),$(CUBIT_SVR_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -clnt: $(addprefix $(VDIR),$(CUBIT_CLT_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -test1_svr: $(addprefix $(VDIR),$(BASIC_SVR_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -test1_clnt: $(addprefix $(VDIR),$(BASIC_CLT_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -######## -# Sanity check builds by running basic functionality tests. -# -# "sleep 5" in the server startup is usually enough to get the -# objref into the file so the client can read it. -# -check: $(TESTS) - @echo "testing with 'cube' calls, stub + DII, IOR strings" - @./svr -i30 -o non-internet > obj.1 & sleep 5 - @./clnt -n250 -O `cat obj.1` -x - @echo '' - @echo "testing request forwarding with 'cube' calls, stub + DII" - @./svr -f -i30 > obj.2 & sleep 5 - @./clnt -n250 -O `cat obj.2` -x - @echo '' - @echo "testing transmission of primitive data types" - @./test1_svr -i30 > obj.3 & sleep 5 - @./test1_clnt -n50 -O `cat obj.3` -x - @echo '' -# @echo "testing echo of primitive data values" -# @./echo_svr -i30 > obj.4 & sleep 5 -# @./echo_clnt -O `cat obj.4` -x -# @echo '' - @echo "testing with 'cube' calls, MT-ized (no forwarding)" - @./svr -t -i30 -o non-internet > obj.5 & sleep 5 - @./clnt -n250 -O `cat obj.5` -x - @echo '' - -ifdef LOCALRULES -######## -# CUBIT test -svr: svr.o cubit.o - $(LINK.cc) -o svr svr.o cubit.o $(LDLIBS) $(POSTLINK) -clnt: cubit.o clnt.o - $(LINK.cc) -o clnt clnt.o cubit.o $(LDLIBS) $(POSTLINK) - -######## -# BASIC DATATYPES test -test1_clnt: test1.o test1_clnt.o - $(LINK.cc) -o test1_clnt test1_clnt.o test1.o $(LDLIBS) $(POSTLINK) -test1_svr: test1.o test1_svr.o - $(LINK.cc) -o test1_svr test1_svr.o test1.o $(LDLIBS) $(POSTLINK) - -######## -# ECHO test ... "test1" where the operation semantics are violated; -# this aids some porting work, but is a less rigorous test -echo_clnt: test1.o echo_clnt.o - $(LINK.cc) -o echo_clnt echo_clnt.o test1.o $(LDLIBS) $(POSTLINK) -echo_svr: test1.o echo_svr.o - $(LINK.cc) -o echo_svr echo_svr.o test1.o $(LDLIBS) $(POSTLINK) -endif - -clean: - -rm -rf *.o $(BIN) obj.* core Templates.DB .make.state - -install: - -@echo "Nothing to install, these are tests!" - - - - - diff --git a/TAO/IIOP/test/Orbeline/base_server/Makefile b/TAO/IIOP/test/Orbeline/base_server/Makefile deleted file mode 100644 index 9fdad280ffc..00000000000 --- a/TAO/IIOP/test/Orbeline/base_server/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -include stdmk - -EXE = server - -all: $(EXE) - -clean: - -rm -f core *.o cubitC.* cubitS.* $(EXE) - -rm -rf Templates.DB - -cubitS.cpp: cubit.idl - $(ORBCC) cubit.idl - -cubitC.cpp: cubit.idl - $(ORBCC) cubit.idl - -server: cubitS.o cubitC.o server.o Profile_Timer.o cubit_impl.o - $(CC) -o server cubitS.o cubitC.o cubit_impl.o server.o Profile_Timer.o \ - $(LIBPATH) $(LIBORB) $(STDCC_LIBS) diff --git a/TAO/IIOP/test/Orbeline/base_server/Profile_Timer.cpp b/TAO/IIOP/test/Orbeline/base_server/Profile_Timer.cpp deleted file mode 100644 index d20d988f48b..00000000000 --- a/TAO/IIOP/test/Orbeline/base_server/Profile_Timer.cpp +++ /dev/null @@ -1,129 +0,0 @@ -// $Id$ - -#include "Profile_Timer.h" - -/* Initialize interval timer. */ - -Profile_Timer::Profile_Timer (void) -{ - char buf[20]; - ::sprintf(buf, "/proc/%d", ::getpid ()); - - ::memset (&this->end_usage_, 0, sizeof this->end_usage_); - ::memset (&this->begin_usage_, 0, sizeof this->begin_usage_); - ::memset (&this->last_usage_, 0, sizeof this->last_usage_); - if ((this->proc_fd_ = ::open (buf, O_RDONLY, 0)) == -1) - ::perror (buf); -} - -/* Terminate the interval timer. */ -Profile_Timer::~Profile_Timer (void) -{ - if (::close (this->proc_fd_) == -1) - ::perror ("Profile_Timer::~Profile_Timer"); -} - -/* Return the resource utilization. */ - -void -Profile_Timer::get_rusage (prusage_t &rusage) -{ - rusage = this->end_usage_; -} - -/* Compute the amount of resource utilization since the start time. */ - -void -Profile_Timer::elapsed_rusage (prusage_t &rusage) -{ - rusage.pr_lwpid = this->end_usage_.pr_lwpid - this->last_usage_.pr_lwpid; - rusage.pr_count = this->end_usage_.pr_count - this->last_usage_.pr_count; - rusage.pr_minf = this->end_usage_.pr_minf - this->last_usage_.pr_minf; - rusage.pr_majf = this->end_usage_.pr_majf - this->last_usage_.pr_majf; - rusage.pr_inblk = this->end_usage_.pr_inblk - this->last_usage_.pr_inblk; - rusage.pr_oublk = this->end_usage_.pr_oublk - this->last_usage_.pr_oublk; - rusage.pr_msnd = this->end_usage_.pr_msnd - this->last_usage_.pr_msnd; - rusage.pr_mrcv = this->end_usage_.pr_mrcv - this->last_usage_.pr_mrcv; - rusage.pr_sigs = this->end_usage_.pr_sigs - this->last_usage_.pr_sigs; - this->subtract (rusage.pr_wtime, this->end_usage_.pr_wtime, this->last_usage_.pr_wtime); - this->subtract (rusage.pr_ltime, this->end_usage_.pr_ltime, this->last_usage_.pr_ltime); - this->subtract (rusage.pr_slptime, this->end_usage_.pr_slptime, this->last_usage_.pr_slptime); - rusage.pr_vctx = this->end_usage_.pr_vctx - this->last_usage_.pr_vctx; - rusage.pr_ictx = this->end_usage_.pr_ictx - this->last_usage_.pr_ictx; - rusage.pr_sysc = this->end_usage_.pr_sysc - this->last_usage_.pr_sysc; - rusage.pr_ioch = this->end_usage_.pr_ioch - this->last_usage_.pr_ioch; -} - -/* Compute the elapsed time. */ - -void -Profile_Timer::compute_times (Elapsed_Time &et, prusage_t &end, prusage_t &begin) -{ - timespec_t td; - - this->subtract (td, end.pr_tstamp, begin.pr_tstamp); - et.real_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); - this->subtract (td, end.pr_utime, begin.pr_utime); - et.user_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); - this->subtract (td, end.pr_stime, begin.pr_stime); - et.system_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); -} - -/* Compute the amount of time that has elapsed between start and stop. */ - -int -Profile_Timer::elapsed_time (Elapsed_Time &et) -{ - this->compute_times (et, this->end_usage_, this->begin_usage_); - return 0; -} - -/* Determine the difference between T1 and T2. */ - -void -Profile_Timer::subtract (timespec_t &tdiff, timespec_t &t1, timespec_t &t0) -{ - tdiff.tv_sec = t1.tv_sec - t0.tv_sec; - tdiff.tv_nsec = t1.tv_nsec - t0.tv_nsec; - - /* Normalize the time. */ - - while (tdiff.tv_nsec < 0) - { - tdiff.tv_sec--; - tdiff.tv_nsec += (1000 * 1000 * 1000); - } -} - -#if defined (DEBUG) -#include -extern "C" int gettimeofday (timeval *tp); - -const int DEFAULT_ITERATIONS = 1000000; - -int -main (int argc, char *argv[]) -{ - Profile_Timer timer; - int iterations = argc > 1 ? atoi (argv[1]) : DEFAULT_ITERATIONS; - timeval tv; - - timer.start (); - - for (int i = 0; i < iterations; i++) - gettimeofday (&tv); - - timer.stop (); - - Profile_Timer::Elapsed_Time et; - - timer.elapsed_time (et); - - printf ("iterations = %d\n", iterations); - printf ("real time = %f secs, user time = %f secs, system time = %f secs\n", - et.real_time, et.user_time, et.system_time); - - printf ("time per call = %f usecs\n", (et.real_time / double (iterations)) * 1000000); - return 0; -} -#endif /* DEBUG */ diff --git a/TAO/IIOP/test/Orbeline/base_server/Profile_Timer.h b/TAO/IIOP/test/Orbeline/base_server/Profile_Timer.h deleted file mode 100644 index 4198fba9a10..00000000000 --- a/TAO/IIOP/test/Orbeline/base_server/Profile_Timer.h +++ /dev/null @@ -1,62 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -/* An interval timer class using C++. */ - -#if !defined (ACE_PROFILE_TIMER_H) -#define ACE_PROFILE_TIMER_H - -#include -#include -#include -#include -#include -#include - -class Profile_Timer -{ -public: - struct Elapsed_Time - { - double real_time; - double user_time; - double system_time; - }; - - Profile_Timer (void); - ~Profile_Timer (void); - int start (void); - int stop (void); - int elapsed_time (Elapsed_Time &et); - void elapsed_rusage (prusage_t &rusage); - void get_rusage (prusage_t &rusage); - -private: - void subtract (timespec_t &tdiff, timespec_t &t0, timespec_t &t1); - void compute_times (Elapsed_Time &et, prusage_t &, prusage_t &); - - prusage_t begin_usage_; - prusage_t end_usage_; - prusage_t last_usage_; - int proc_fd_; -}; - -/* Start timing */ - -inline int -Profile_Timer::start (void) -{ - return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->begin_usage_); -} - -/* Stop timing */ - -inline int -Profile_Timer::stop (void) -{ - this->last_usage_ = this->end_usage_; - return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->end_usage_); -} - -#endif /* ACE_PROFILE_TIMER_H */ - diff --git a/TAO/IIOP/test/Orbeline/base_server/cubit.idl b/TAO/IIOP/test/Orbeline/base_server/cubit.idl deleted file mode 100644 index 7eedbe786ab..00000000000 --- a/TAO/IIOP/test/Orbeline/base_server/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. -// -//#pragma prefix "Eng.SUN.COM" -//#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/test/Orbeline/base_server/cubit_impl.cpp b/TAO/IIOP/test/Orbeline/base_server/cubit_impl.cpp deleted file mode 100644 index c4313a1fccb..00000000000 --- a/TAO/IIOP/test/Orbeline/base_server/cubit_impl.cpp +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -#include "cubit_impl.h" - -CORBA::Octet Cubit_Impl:: cube_octet (CORBA::Octet o) { - return (CORBA::Octet) (o * o * o); -} - -CORBA::Short Cubit_Impl:: cube_short (CORBA::Short s) { - return (CORBA::Short) (s * s * s); -} - -CORBA::Long Cubit_Impl:: cube_long (CORBA::Long l) { - return (CORBA::Long) (l * l * l); -} - -Cubit::Many Cubit_Impl:: cube_struct (const Cubit::Many& values) { - Cubit::Many out_values; - out_values.o = values.o * values.o * values.o; - out_values.s = values.s * values.s * values.s; - out_values.l = values.l * values.l * values.l; - return out_values; -} - -Cubit::oneof Cubit_Impl:: cube_union (const Cubit::oneof& values) { - Cubit::oneof out_values; - switch (values._d ()) { - case Cubit::e_0th: - out_values.o (values.o () * values.o () * values.o ()); - break; - case Cubit::e_1st: - out_values.s (values.s () * values.s () * values.s ()); - break; - case Cubit::e_2nd: - out_values.l (values.l () * values.l () * values.l ()); - break; - case Cubit::e_3rd: - default: - out_values.cm ().o = values.cm ().o * values.cm ().o * values.cm ().o ; - out_values.cm ().s = values.cm ().s * values.cm ().s * values.cm ().s ; - out_values.cm ().l = values.cm ().l * values.cm ().l * values.cm ().l ; - break; - } - return out_values; -} - -void Cubit_Impl:: please_exit () - {} diff --git a/TAO/IIOP/test/Orbeline/base_server/cubit_impl.h b/TAO/IIOP/test/Orbeline/base_server/cubit_impl.h deleted file mode 100644 index f1f5e3fa3ea..00000000000 --- a/TAO/IIOP/test/Orbeline/base_server/cubit_impl.h +++ /dev/null @@ -1,35 +0,0 @@ -// $Id$ - - -#ifndef cubit_ih -#define cubit_ih - -#include "cubitS.h" - - -#ifdef Cubit_USE_BOA -class Cubit_Impl : public virtual _sk_Cubit { -#else -class Cubit_Impl { -#endif /* Cubit_USE_BOA */ - -public: - -#ifdef Cubit_USE_BOA - Cubit_Impl (const char *obj_name = NULL) : - _sk_Cubit(obj_name) - {} -#else - Cubit_Impl (const char *obj_name = NULL) - {} -#endif /* Cubit_USE_BOA */ - - virtual CORBA::Octet cube_octet(CORBA::Octet o); - virtual CORBA::Short cube_short(CORBA::Short s); - virtual CORBA::Long cube_long(CORBA::Long l); - virtual Cubit::Many cube_struct(const Cubit::Many& values); - virtual Cubit::oneof cube_union(const Cubit::oneof& values); - virtual void please_exit(); -}; - -#endif diff --git a/TAO/IIOP/test/Orbeline/base_server/server.cpp b/TAO/IIOP/test/Orbeline/base_server/server.cpp deleted file mode 100644 index 99c65c6718e..00000000000 --- a/TAO/IIOP/test/Orbeline/base_server/server.cpp +++ /dev/null @@ -1,51 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : tpr_server.cpp -// DESCRIPTION: -// -// Server mainline -// -//**************************************************************************** -#include "cubit_impl.h" // server header file - -int -main (int argc, char** argv) -{ - - CORBA::ORB_var orb = CORBA::ORB_init(argc, argv); - CORBA::BOA_var boa = orb->BOA_init(argc, argv); - -#ifdef Cubit_USE_BOA - Cubit_Impl cb("Cubit"); - cout << "Using BOA approach" << endl; -#else - Cubit_Impl tied("Cubit"); - _tie_Cubit cb(tied, "Cubit"); - - cout << "Using TIE approach" << endl; -#endif /* Cubit_USE_BOA */ - - // - // Go get some work to do.... - // - try { - - boa->obj_is_ready(&cb); - - boa->impl_is_ready(); - - } catch (const CORBA::Exception &excep) { - cerr << "Server error: " << excep << endl; - return -1; - } catch (...) { - cerr << "Unknown exception" << endl; - return -1; - } - - cout << "Cubit server is exiting." << endl; - - - return 0; -} diff --git a/TAO/IIOP/test/Orbeline/base_server/stdmk b/TAO/IIOP/test/Orbeline/base_server/stdmk deleted file mode 100644 index df4125a38d8..00000000000 --- a/TAO/IIOP/test/Orbeline/base_server/stdmk +++ /dev/null @@ -1,36 +0,0 @@ -CC = CC -DEBUG = - -ORBELINEDIR = /project/waltz/Orbeline2.0 - -ORBCC = $(ORBELINEDIR)/bin/orbeline -v C -m S -c cpp -h h - -CCINCLUDES = -I. -I$(ORBELINEDIR)/include -I$(STL_DIR) -I$(ACE_DIR) - -CCFLAGS = -g $(CCINCLUDES) $(DEBUG) -DCubit_USE_BOA - -LIBPATH = -L$(ORBELINEDIR)/lib -L$(ACE_DIR)/ace - -STDCC_LIBS = -lsocket -lnsl -ldl -mt - -LIBORB = -lorb - -LIBACE = -lACE - -.SUFFIXES: .C .o .h .hh .cc .cpp - -.C.o: - $(CC) $(CCFLAGS) -c -o $@ $< - -.cc.o: - $(CC) $(CCFLAGS) -c -o $@ $< -.cpp.o: - $(CC) $(CCFLAGS) -c -o $@ $< - -.C.cpp: - $(CC) -E $(CCFLAGS) $< > $@ - -.cc.cpp: - $(CC) -E $(CCFLAGS) $< > $@ - - diff --git a/TAO/IIOP/test/Orbeline/client/Makefile b/TAO/IIOP/test/Orbeline/client/Makefile deleted file mode 100644 index d9c26fe56f0..00000000000 --- a/TAO/IIOP/test/Orbeline/client/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -include stdmk - -EXE = client - -all: $(EXE) - -clean: - -rm -f core *.o cubitC.* cubitS.* $(EXE) - -rm -rf Templates.DB - -cubitS.cpp: cubit.idl - $(ORBCC) cubit.idl - -cubitC.cpp: cubit.idl - $(ORBCC) cubit.idl - -client: cubitC.o Profile_Timer.o client.o - $(CC) -o client cubitC.o Profile_Timer.o client.o \ - $(LIBPATH) $(LIBORB) $(STDCC_LIBS) diff --git a/TAO/IIOP/test/Orbeline/client/Profile_Timer.cpp b/TAO/IIOP/test/Orbeline/client/Profile_Timer.cpp deleted file mode 100644 index d20d988f48b..00000000000 --- a/TAO/IIOP/test/Orbeline/client/Profile_Timer.cpp +++ /dev/null @@ -1,129 +0,0 @@ -// $Id$ - -#include "Profile_Timer.h" - -/* Initialize interval timer. */ - -Profile_Timer::Profile_Timer (void) -{ - char buf[20]; - ::sprintf(buf, "/proc/%d", ::getpid ()); - - ::memset (&this->end_usage_, 0, sizeof this->end_usage_); - ::memset (&this->begin_usage_, 0, sizeof this->begin_usage_); - ::memset (&this->last_usage_, 0, sizeof this->last_usage_); - if ((this->proc_fd_ = ::open (buf, O_RDONLY, 0)) == -1) - ::perror (buf); -} - -/* Terminate the interval timer. */ -Profile_Timer::~Profile_Timer (void) -{ - if (::close (this->proc_fd_) == -1) - ::perror ("Profile_Timer::~Profile_Timer"); -} - -/* Return the resource utilization. */ - -void -Profile_Timer::get_rusage (prusage_t &rusage) -{ - rusage = this->end_usage_; -} - -/* Compute the amount of resource utilization since the start time. */ - -void -Profile_Timer::elapsed_rusage (prusage_t &rusage) -{ - rusage.pr_lwpid = this->end_usage_.pr_lwpid - this->last_usage_.pr_lwpid; - rusage.pr_count = this->end_usage_.pr_count - this->last_usage_.pr_count; - rusage.pr_minf = this->end_usage_.pr_minf - this->last_usage_.pr_minf; - rusage.pr_majf = this->end_usage_.pr_majf - this->last_usage_.pr_majf; - rusage.pr_inblk = this->end_usage_.pr_inblk - this->last_usage_.pr_inblk; - rusage.pr_oublk = this->end_usage_.pr_oublk - this->last_usage_.pr_oublk; - rusage.pr_msnd = this->end_usage_.pr_msnd - this->last_usage_.pr_msnd; - rusage.pr_mrcv = this->end_usage_.pr_mrcv - this->last_usage_.pr_mrcv; - rusage.pr_sigs = this->end_usage_.pr_sigs - this->last_usage_.pr_sigs; - this->subtract (rusage.pr_wtime, this->end_usage_.pr_wtime, this->last_usage_.pr_wtime); - this->subtract (rusage.pr_ltime, this->end_usage_.pr_ltime, this->last_usage_.pr_ltime); - this->subtract (rusage.pr_slptime, this->end_usage_.pr_slptime, this->last_usage_.pr_slptime); - rusage.pr_vctx = this->end_usage_.pr_vctx - this->last_usage_.pr_vctx; - rusage.pr_ictx = this->end_usage_.pr_ictx - this->last_usage_.pr_ictx; - rusage.pr_sysc = this->end_usage_.pr_sysc - this->last_usage_.pr_sysc; - rusage.pr_ioch = this->end_usage_.pr_ioch - this->last_usage_.pr_ioch; -} - -/* Compute the elapsed time. */ - -void -Profile_Timer::compute_times (Elapsed_Time &et, prusage_t &end, prusage_t &begin) -{ - timespec_t td; - - this->subtract (td, end.pr_tstamp, begin.pr_tstamp); - et.real_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); - this->subtract (td, end.pr_utime, begin.pr_utime); - et.user_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); - this->subtract (td, end.pr_stime, begin.pr_stime); - et.system_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); -} - -/* Compute the amount of time that has elapsed between start and stop. */ - -int -Profile_Timer::elapsed_time (Elapsed_Time &et) -{ - this->compute_times (et, this->end_usage_, this->begin_usage_); - return 0; -} - -/* Determine the difference between T1 and T2. */ - -void -Profile_Timer::subtract (timespec_t &tdiff, timespec_t &t1, timespec_t &t0) -{ - tdiff.tv_sec = t1.tv_sec - t0.tv_sec; - tdiff.tv_nsec = t1.tv_nsec - t0.tv_nsec; - - /* Normalize the time. */ - - while (tdiff.tv_nsec < 0) - { - tdiff.tv_sec--; - tdiff.tv_nsec += (1000 * 1000 * 1000); - } -} - -#if defined (DEBUG) -#include -extern "C" int gettimeofday (timeval *tp); - -const int DEFAULT_ITERATIONS = 1000000; - -int -main (int argc, char *argv[]) -{ - Profile_Timer timer; - int iterations = argc > 1 ? atoi (argv[1]) : DEFAULT_ITERATIONS; - timeval tv; - - timer.start (); - - for (int i = 0; i < iterations; i++) - gettimeofday (&tv); - - timer.stop (); - - Profile_Timer::Elapsed_Time et; - - timer.elapsed_time (et); - - printf ("iterations = %d\n", iterations); - printf ("real time = %f secs, user time = %f secs, system time = %f secs\n", - et.real_time, et.user_time, et.system_time); - - printf ("time per call = %f usecs\n", (et.real_time / double (iterations)) * 1000000); - return 0; -} -#endif /* DEBUG */ diff --git a/TAO/IIOP/test/Orbeline/client/Profile_Timer.h b/TAO/IIOP/test/Orbeline/client/Profile_Timer.h deleted file mode 100644 index 4198fba9a10..00000000000 --- a/TAO/IIOP/test/Orbeline/client/Profile_Timer.h +++ /dev/null @@ -1,62 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -/* An interval timer class using C++. */ - -#if !defined (ACE_PROFILE_TIMER_H) -#define ACE_PROFILE_TIMER_H - -#include -#include -#include -#include -#include -#include - -class Profile_Timer -{ -public: - struct Elapsed_Time - { - double real_time; - double user_time; - double system_time; - }; - - Profile_Timer (void); - ~Profile_Timer (void); - int start (void); - int stop (void); - int elapsed_time (Elapsed_Time &et); - void elapsed_rusage (prusage_t &rusage); - void get_rusage (prusage_t &rusage); - -private: - void subtract (timespec_t &tdiff, timespec_t &t0, timespec_t &t1); - void compute_times (Elapsed_Time &et, prusage_t &, prusage_t &); - - prusage_t begin_usage_; - prusage_t end_usage_; - prusage_t last_usage_; - int proc_fd_; -}; - -/* Start timing */ - -inline int -Profile_Timer::start (void) -{ - return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->begin_usage_); -} - -/* Stop timing */ - -inline int -Profile_Timer::stop (void) -{ - this->last_usage_ = this->end_usage_; - return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->end_usage_); -} - -#endif /* ACE_PROFILE_TIMER_H */ - diff --git a/TAO/IIOP/test/Orbeline/client/client.cpp b/TAO/IIOP/test/Orbeline/client/client.cpp deleted file mode 100644 index d9eb91526d7..00000000000 --- a/TAO/IIOP/test/Orbeline/client/client.cpp +++ /dev/null @@ -1,232 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : client.C -// DESCRIPTION: -// -// Client for the Cubit example -// -//**************************************************************************** - -#include -#include -#include -#include -#include -#include "cubitC.h" -#include "Profile_Timer.h" - -int LOOP_COUNT; -char SERVER_HOST [1024]; - -inline int func (unsigned i) { return i - 117; } -void run_tests (Cubit_var, int); - -// = TITLE -// Parses the command line arguments and returns an error status -// -// = DESCRIPTION -// This method parses the command line arguments -int parse_args(int argc, char *argv[]) -{ - if (argc != 3) { - cerr << "Format: client " << endl; - return -1; - } - - strcpy(SERVER_HOST, argv[1]); - - LOOP_COUNT = atoi(argv[2]); - - return 0; // Indicates successful parsing of command line -} - - -// -// Mainline -// -int -main (int argc, char *argv[]) -{ - if (parse_args (argc, argv) != 0) - return -1; - - Cubit_var cb; - // cout << "attempting to contact server at host " << SERVER_HOST << '\n' ; - - // - // Initialise client's binding to an - // arbitrary cubit server (at some host) - // - try { - cb = Cubit::_bind ("Cubit", SERVER_HOST); - - } catch (const CORBA::Exception & sysEx) { - cerr << "Binding failed: " << endl; - cerr << sysEx; - } catch (...) { - cerr << "Unexpected exception" << endl; - } - - run_tests (cb, LOOP_COUNT); - return 0; -} - - -void -run_tests (Cubit_var cb, int loop_count) -{ - // - // Make the calls in a loop. - // - unsigned i; - unsigned call_count, error_count; - - call_count = 0; - error_count = 0; - - Profile_Timer pt; - - pt.start(); - // - // Cube an octet. - // - - for (i = 0; i < loop_count; i++) - { - - call_count++; - - CORBA::Octet arg_octet = func (i), ret_octet; - - try { - ret_octet = cb->cube_octet (arg_octet); - - } catch (const CORBA::Exception &sysEx) { - cerr << "Call failed: " << endl; - cerr << sysEx; - error_count++; - } catch (...) { - cerr << "Unexpected exception" << endl; - error_count++; - } - - arg_octet = arg_octet * arg_octet * arg_octet; - if (arg_octet != ret_octet) { - printf ("** cube_octet(%d) (--> %d)\n", arg_octet , ret_octet); - error_count++; - } - - - // - // Cube a short. - // - call_count++; - - CORBA::Short arg_short = func (i), ret_short; - - try { - ret_short = cb->cube_short (arg_short); - - } catch (const CORBA::Exception &sysEx) { - cerr << "Call failed: " << endl; - cerr << sysEx; - error_count++; - } catch (...) { - cerr << "Unexpected exception" << endl; - error_count++; - } - - arg_short = arg_short * arg_short * arg_short; - if (arg_short != ret_short) { - printf ("** cube_short(%d) (--> %d)\n", arg_short , ret_short); - error_count++; - } - - // - // Cube a long. - // - - call_count++; - - CORBA::Long arg_long = func (i), ret_long; - - try { - ret_long = cb->cube_long (arg_long); - } catch (const CORBA::Exception &sysEx) { - cerr << "Call failed: " << endl; - cerr << sysEx; - error_count++; - } catch (...) { - cerr << "Unexpected exception" << endl; - error_count++; - } - - arg_long = arg_long * arg_long * arg_long; - if (arg_long != ret_long) { - printf ("** cube_long(%d) (--> %d)\n", arg_long , ret_long); - error_count++; - } - - - // - // Cube a "struct" ... - // - Cubit::Many arg_struct, ret_struct; - - call_count++; - - arg_struct.l = func (i); - arg_struct.s = func (i); - arg_struct.o = func (i); - - try { - ret_struct = cb->cube_struct (arg_struct); - - } catch (const CORBA::Exception &sysEx) { - cerr << "Call failed: " << endl; - cerr << sysEx; - error_count++; - } catch (...) { - cerr << "Unexpected exception" << endl; - error_count++; - } - - - arg_struct.l = arg_struct.l * arg_struct.l * arg_struct.l ; - arg_struct.s = arg_struct.s * arg_struct.s * arg_struct.s ; - arg_struct.o = arg_struct.o * arg_struct.o * arg_struct.o ; - - if (arg_struct.l != ret_struct.l - || arg_struct.s != ret_struct.s - || arg_struct.o != ret_struct.o ) - { - cerr << "** cube_struct ERROR\n"; - error_count++; - } - } - - pt.stop(); - - Elapsed_Time et; - pt.elapsed_time(et); - - if (call_count > 0) - { - if (error_count == 0) - { - unsigned long us = et.real_time * 1000 * 1000; - - us /= call_count; - - if (us > 0) - printf ("cube average call ACE_OS::time\t= %ld.%.03ldms, \t" - "%ld calls/second\n", - us / 1000, us % 1000, - 1000000L / us); - } - - printf ("%d calls, %d errors\n", call_count, error_count); - } -} diff --git a/TAO/IIOP/test/Orbeline/client/cubit.idl b/TAO/IIOP/test/Orbeline/client/cubit.idl deleted file mode 100644 index 7eedbe786ab..00000000000 --- a/TAO/IIOP/test/Orbeline/client/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. -// -//#pragma prefix "Eng.SUN.COM" -//#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/test/Orbeline/client/stdmk b/TAO/IIOP/test/Orbeline/client/stdmk deleted file mode 100644 index df4125a38d8..00000000000 --- a/TAO/IIOP/test/Orbeline/client/stdmk +++ /dev/null @@ -1,36 +0,0 @@ -CC = CC -DEBUG = - -ORBELINEDIR = /project/waltz/Orbeline2.0 - -ORBCC = $(ORBELINEDIR)/bin/orbeline -v C -m S -c cpp -h h - -CCINCLUDES = -I. -I$(ORBELINEDIR)/include -I$(STL_DIR) -I$(ACE_DIR) - -CCFLAGS = -g $(CCINCLUDES) $(DEBUG) -DCubit_USE_BOA - -LIBPATH = -L$(ORBELINEDIR)/lib -L$(ACE_DIR)/ace - -STDCC_LIBS = -lsocket -lnsl -ldl -mt - -LIBORB = -lorb - -LIBACE = -lACE - -.SUFFIXES: .C .o .h .hh .cc .cpp - -.C.o: - $(CC) $(CCFLAGS) -c -o $@ $< - -.cc.o: - $(CC) $(CCFLAGS) -c -o $@ $< -.cpp.o: - $(CC) $(CCFLAGS) -c -o $@ $< - -.C.cpp: - $(CC) -E $(CCFLAGS) $< > $@ - -.cc.cpp: - $(CC) -E $(CCFLAGS) $< > $@ - - diff --git a/TAO/IIOP/test/Orbix/Makefile b/TAO/IIOP/test/Orbix/Makefile deleted file mode 100644 index 96935fb78fc..00000000000 --- a/TAO/IIOP/test/Orbix/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the Gateway application -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -INFO = README - -DIRS = base_server \ - client \ - tpr \ - tpool \ - tps - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nolocal.GNU - diff --git a/TAO/IIOP/test/Orbix/base_server/Makefile b/TAO/IIOP/test/Orbix/base_server/Makefile deleted file mode 100644 index 3bf0684dfd5..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/Makefile +++ /dev/null @@ -1,89 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitS.cpp cubit_impl.cpp server.cpp - -SVR_OBJS = cubitS.o cubit_impl.o server.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -# Remove -DCubit_USE_BOA from below to use the TIE approach - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -DCubit_USE_BOA -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: server - -server: $(addprefix $(VDIR),$(SVR_OBJS)) - $(LINK.cc) -o server $(addprefix $(VDIR),$(SVR_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITSRV) $(VLDLIBS) $(POSTLINK) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubit_impl.o .shobj/cubit_impl.so: cubit_impl.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i -.obj/server.o .shobj/server.so: server.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/test/Orbix/base_server/cubit.h b/TAO/IIOP/test/Orbix/base_server/cubit.h deleted file mode 100644 index 1fd0a2d3c7d..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/cubit.h +++ /dev/null @@ -1,729 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include "ace/OS.h" -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/test/Orbix/base_server/cubit.idl b/TAO/IIOP/test/Orbix/base_server/cubit.idl deleted file mode 100644 index d4f1610e2a8..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/test/Orbix/base_server/cubitC.cpp b/TAO/IIOP/test/Orbix/base_server/cubitC.cpp deleted file mode 100644 index 1d10b058a70..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/cubitC.cpp +++ /dev/null @@ -1,559 +0,0 @@ -// $Id$ - -#include "cubit.h" - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/test/Orbix/base_server/cubitC.h b/TAO/IIOP/test/Orbix/base_server/cubitC.h deleted file mode 100644 index 584efa67c8d..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/cubitC.h +++ /dev/null @@ -1,345 +0,0 @@ -// $Id$ - -#ifndef _cubitC_h -#define _cubitC_h - -/************************************************************************/ -/* */ -/* This file is automatically generated by ORBeline IDL compiler */ -/* Do not modify this file. */ -/* */ -/* ORBeline (c) is copyrighted by PostModern Computing, Inc. */ -/* */ -/* The generated code conforms to OMG's IDL C++ mapping as */ -/* specified in OMG Document Number: 94-9-14. */ -/* */ -/************************************************************************/ - -#include "corba.h" - - - -class Cubit; -typedef Cubit *Cubit_ptr; -typedef Cubit_ptr CubitRef; - -#ifndef _Cubit_var_ -#define _Cubit_var_ -class Cubit_var -{ - public: - Cubit_var(); - Cubit_var(Cubit_ptr); - Cubit_var(const Cubit_var&); - ~Cubit_var(); - Cubit_var& operator=(Cubit_ptr); - operator Cubit_ptr() const { return _ptr; } -#if defined(_HPCC_BUG) - operator Cubit *&() { return _ptr; } -#else - operator Cubit_ptr&() { return _ptr; } -#endif - Cubit_ptr operator->() const { return _ptr;} - friend NCistream& operator>>(NCistream&, Cubit_var&); - friend NCostream& operator<<(NCostream&, const Cubit_var&); - friend istream& operator>>(istream&, Cubit_var&); - friend ostream& operator<<(ostream&, const Cubit_var&); - private: - Cubit_ptr _ptr; - void operator=(const Cubit_var&) {} -}; -#endif -class Cubit: public virtual CORBA_Object -{ - private: - static const CORBA::TypeInfo _class_info; - Cubit(const Cubit&) {} - void operator=(const Cubit&){} - public: - static const CORBA::TypeInfo *_desc(); - virtual const CORBA::TypeInfo *_type_info() const; - virtual void *_safe_narrow(const CORBA::TypeInfo& ) const; - static CORBA::Object *_factory(); - protected: - Cubit(const char *obj_name = NULL) :CORBA_Object(obj_name, 1) {} - Cubit(NCistream& strm) :CORBA_Object(strm) {} - virtual ~Cubit() {} - public: - static Cubit_ptr _duplicate(Cubit_ptr obj) { - if (obj ) obj->_ref(); - return obj; - } - static Cubit_ptr _nil() { return (Cubit_ptr)NULL;} - static Cubit_ptr _narrow(CORBA::Object *obj); - static Cubit_ptr _clone(Cubit_ptr obj) { - CORBA::Object_var obj_var(__clone(obj)); - -#if defined(_HPCC_BUG) - return _narrow(obj_var.operator CORBA::Object_ptr()); -#else - return _narrow(obj_var); -#endif - } - static Cubit_ptr _bind(const char *object_name = NULL, - const char *host_name = NULL, - const CORBA::BindOptions* opt = NULL); - - virtual CORBA::Octet cube_octet(CORBA::Octet o); - - virtual CORBA::Short cube_short(CORBA::Short s); - - virtual CORBA::Long cube_long(CORBA::Long l); - - struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - }; - friend NCostream& operator<<(NCostream&, const Many& ); - friend NCistream& operator>>(NCistream&, Many& ); - - friend ostream& operator<<(ostream&, const Many& ); - inline friend istream& operator>>(istream& _strm, Many& _obj) { - NCistream _istrm(_strm); - _istrm >> _obj; - return _strm; - } - - - typedef Many *Many_ptr; - class Many_var - { - public: - Many_var() { _ptr = (Many*)NULL;} - Many_var(Many *ptr) { - _ptr = ptr; - } - Many_var(const Many_var& var) { - if (var._ptr) - _ptr = new Many(*var._ptr); - else - _ptr = (Many *)NULL; - } - ~Many_var() { - if (_ptr != (Many *)NULL) delete _ptr; - } - Many_var& operator=(Many *ptr) { - if (_ptr != (Many *)NULL) delete _ptr; - _ptr = ptr; - return *this; - } - Many_var& operator=(const Many_var& var) { - if (_ptr != (Many *)NULL) delete _ptr; - if (var._ptr) - _ptr = new Many(*var._ptr); - else - _ptr = (Many *)NULL; - return *this; - } - Many *operator->() { return _ptr; } - operator Many () const { return *_ptr; } - operator Many& () { return *_ptr; } - inline friend NCostream& operator<<(NCostream& strm, - const Many_var& var) { - if (var._ptr == (Many *)NULL) { - throw CORBA::BAD_PARAM(); - } - else - strm << *var._ptr; - return strm; - } - inline friend NCistream& operator>>(NCistream& strm, - Many_var& var) { - if ( ! var._ptr) - var._ptr = new Many; - strm >> *var._ptr; - return strm; - } - private: - Many *_ptr; - }; - - - virtual Cubit::Many cube_struct(const Cubit::Many& values); - - enum discrim { - e_0th, - e_1st, - e_2nd, - e_3rd, - e_4th, - e_5th - }; - inline friend NCostream& operator<<(NCostream& _strm, discrim _enum_type) { - _strm << (CORBA::ULong)_enum_type; - return _strm; - } - inline friend NCistream& operator>>(NCistream& _strm, discrim& _enum_type) { - CORBA::ULong _temp; - _strm >> _temp; - if (_temp >= 6) - throw CORBA::BAD_PARAM(); - _enum_type = discrim(_temp); - return _strm; - } - inline friend ostream& operator<<(ostream& _strm, discrim _enum_type) { - if( &_strm == &cout || &_strm == &cerr || &_strm == &clog) { - _strm << "discrim:"; - switch(_enum_type) { - case e_0th: - _strm << "e_0th" << endl; - break; - case e_1st: - _strm << "e_1st" << endl; - break; - case e_2nd: - _strm << "e_2nd" << endl; - break; - case e_3rd: - _strm << "e_3rd" << endl; - break; - case e_4th: - _strm << "e_4th" << endl; - break; - case e_5th: - _strm << "e_5th" << endl; - break; - } - } - else - _strm << (CORBA::ULong)_enum_type; - return _strm; - } - inline friend istream& operator>>(istream& _strm, discrim& _enum_type) { - CORBA::ULong _temp; - _strm >> _temp; - _enum_type = discrim(_temp); - return _strm; - } - - - class oneof - { - public: - private: - discrim _disc; - CORBA::Octet __o; - CORBA::Short __s; - CORBA::Long __l; - Cubit::Many __cm; - public: - oneof() : _disc(discrim(0)) {} - ~oneof() {} - oneof(const oneof& obj); - oneof& operator=(const oneof& obj); - - void _d(discrim val) { _disc = val; } - discrim _d() const { return _disc; } - - void o(CORBA::Octet val) { - __o = val; - _disc = Cubit::e_0th; - } - CORBA::Octet o() const { return __o; } - - void s(CORBA::Short val) { - __s = val; - _disc = Cubit::e_1st; - } - CORBA::Short s() const { return __s; } - - void l(CORBA::Long val) { - __l = val; - _disc = Cubit::e_2nd; - } - CORBA::Long l() const { return __l; } - - void cm(const Cubit::Many& val) { - __cm = val; - _disc = Cubit::e_3rd; - } - const Cubit::Many& cm() const { return __cm; } - Cubit::Many& cm() { return __cm; } - - friend NCostream& operator<<(NCostream&, const oneof& ); - friend NCistream& operator>>(NCistream&, oneof& ); - friend ostream& operator<<(ostream&, const oneof&); - inline friend istream& operator>>(istream& strm, oneof& obj) { - NCistream istrm(strm); - strm >> obj; - return strm; - } - }; - - typedef oneof *oneof_ptr; - class oneof_var - { - public: - oneof_var() { _ptr = (oneof*)NULL;} - oneof_var(oneof *ptr) { - _ptr = ptr; - } - oneof_var(const oneof_var& var) { - _ptr = new oneof(*var._ptr); - } - ~oneof_var() { - if (_ptr != (oneof *)NULL) delete _ptr; - } - oneof_var& operator=(oneof *ptr) { - if (_ptr != (oneof *)NULL) delete _ptr; - _ptr = ptr; - return *this; - } - oneof_var& operator=(const oneof_var& var) { - if (_ptr != (oneof *)NULL) delete _ptr; - _ptr = new oneof(*var._ptr); - return *this; - } - oneof *operator->() { return _ptr; } - operator oneof () const { return *_ptr; } - operator oneof& () { return *_ptr; } - inline friend NCostream& operator<<(NCostream& strm, - const oneof_var& var) { - if (var._ptr == (oneof *)NULL) { - throw CORBA::BAD_PARAM(); - } - else - strm << *var._ptr; - return strm; - } - inline friend NCistream& operator>>(NCistream& strm, - oneof_var& var) { - if ( ! var._ptr) - var._ptr = new oneof; - strm >> *var._ptr; - return strm; - } - private: - oneof *_ptr; - }; - - - virtual Cubit::oneof cube_union(const Cubit::oneof& values); - - virtual void please_exit(); - - inline friend NCistream& operator>>(NCistream& strm, Cubit_ptr& obj) { - CORBA::Object_var _obj(obj); - _obj = CORBA::Object::_read(strm, Cubit::_desc()); - obj = Cubit::_narrow(_obj); - return strm; - } - inline friend ostream& operator<<(ostream& strm, const Cubit_ptr obj) { - strm << (CORBA::Object_ptr)obj; - return strm; - } - inline friend istream& operator>>(istream& strm, Cubit_ptr& obj) { - NCistream istrm(strm); - istrm >> obj; - return strm; - } -}; - - -#endif - diff --git a/TAO/IIOP/test/Orbix/base_server/cubitS.cpp b/TAO/IIOP/test/Orbix/base_server/cubitS.cpp deleted file mode 100644 index d72803fed0c..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/cubitS.cpp +++ /dev/null @@ -1,228 +0,0 @@ -// $Id$ - -#include "cubit.h" - - -#define Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"cube_octet")) { - CORBA::Octet IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_octet~+o{o},>{o},N{}\ -")) - return 1; - CORBA::Octet o; - - IT_r.extractOctet (o); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_octet ( o, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -o\ -", IT_env)) return 1; - IT_r.insertOctet (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_short")) { - CORBA::Short IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_short~+s{s},>{s},N{}\ -")) - return 1; - CORBA::Short s; - - IT_r >> s; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_short ( s, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -s\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_long")) { - CORBA::Long IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_long~+l{l},>{l},N{}\ -")) - return 1; - CORBA::Long l; - - IT_r >> l; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_long ( l, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -l\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_struct")) { - Cubit::Many IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_struct~+values{R~Cubit::Many~o{o},l{l},s{s}},>{R~Cubit::Many~o{o},l{l},s{s}},N{}\ -")) - return 1; - Cubit::Many values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_struct ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -R~Cubit::Many~o{o},l{l},s{s}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_union")) { - Cubit::oneof IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - IT_r.tcPreAssert ( -"\ -Ro~cube_union~+values{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},>{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,\ -"); - if (!IT_r.tcAssert ("\ -e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},N{}\ -")) - return 1; - Cubit::oneof values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_union ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"please_exit")) { - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~please_exit~>{v},O{}\ -")) - return 1; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - ((Cubit*)IT_pp)->please_exit (IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - IT_r.replyNoResults (CORBA::Flags(CORBA::INV_NO_RESPONSE),IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#include "cubitC.cpp" - diff --git a/TAO/IIOP/test/Orbix/base_server/cubitS.h b/TAO/IIOP/test/Orbix/base_server/cubitS.h deleted file mode 100644 index 3ca717e2b49..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/cubitS.h +++ /dev/null @@ -1,120 +0,0 @@ -// $Id$ - -#ifndef _cubitS_h -#define _cubitS_h - -#include "cubitC.h" - -/************************************************************************/ -/* */ -/* This file is automatically generated by ORBeline IDL compiler */ -/* Do not modify this file. */ -/* */ -/* ORBeline (c) is copyrighted by PostModern Computing, Inc. */ -/* */ -/* The generated code conforms to OMG's IDL C++ mapping as */ -/* specified in OMG Document Number: 94-9-14. */ -/* */ -/************************************************************************/ - -class _sk_Cubit : public Cubit -{ - protected: - _sk_Cubit(const char *object_name = (const char *)NULL); - _sk_Cubit(const char *service_name, const CORBA::ReferenceData& data); - virtual ~_sk_Cubit() {} - public: - static const CORBA::TypeInfo _skel_info; - - // The following operations need to be implemented by the server. - virtual CORBA::Octet cube_octet(CORBA::Octet o) = 0; - virtual CORBA::Short cube_short(CORBA::Short s) = 0; - virtual CORBA::Long cube_long(CORBA::Long l) = 0; - virtual Cubit::Many cube_struct(const Cubit::Many& values) = 0; - virtual Cubit::oneof cube_union(const Cubit::oneof& values) = 0; - virtual void please_exit() = 0; - - // Skeleton Operations implemented automatically - - static void _cube_octet(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_short(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_long(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_struct(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_union(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _please_exit(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - -}; -template -class _tie_Cubit : public Cubit -{ - public: - _tie_Cubit(T& t, const char *obj_name=(char*)NULL) : - Cubit(obj_name), - _ref(t) { - _object_name(obj_name); - } - _tie_Cubit(T& t, const char *service_name, - const CORBA::ReferenceData& id) - :_ref(t) { - _service(service_name, id); - } - ~_tie_Cubit() {} - CORBA::Octet cube_octet(CORBA::Octet o) { - return _ref.cube_octet( - o); - } - CORBA::Short cube_short(CORBA::Short s) { - return _ref.cube_short( - s); - } - CORBA::Long cube_long(CORBA::Long l) { - return _ref.cube_long( - l); - } - Cubit::Many cube_struct(const Cubit::Many& values) { - return _ref.cube_struct( - values); - } - Cubit::oneof cube_union(const Cubit::oneof& values) { - return _ref.cube_union( - values); - } - void please_exit() { - _ref.please_exit(); - } - - private: - T& _ref; -}; - -#endif - diff --git a/TAO/IIOP/test/Orbix/base_server/cubit_impl.cpp b/TAO/IIOP/test/Orbix/base_server/cubit_impl.cpp deleted file mode 100644 index e96b6e33dcd..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/cubit_impl.cpp +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -#include "cubit_impl.h" - -CORBA::Octet Cubit_Impl:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Octet) (o * o * o); -} - -CORBA::Short Cubit_Impl:: cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Short) (s * s * s); -} - -CORBA::Long Cubit_Impl:: cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Long) (l * l * l); -} - -Cubit::Many Cubit_Impl:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::Many out_values; - out_values.o = values.o * values.o * values.o; - out_values.s = values.s * values.s * values.s; - out_values.l = values.l * values.l * values.l; - return out_values; -} - -Cubit::oneof Cubit_Impl:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::oneof out_values; - switch (values._d ()) { - case Cubit::e_0th: - out_values.o (values.o () * values.o () * values.o ()); - break; - case Cubit::e_1st: - out_values.s (values.s () * values.s () * values.s ()); - break; - case Cubit::e_2nd: - out_values.l (values.l () * values.l () * values.l ()); - break; - case Cubit::e_3rd: - default: - out_values.cm ().o = values.cm ().o * values.cm ().o * values.cm ().o ; - out_values.cm ().s = values.cm ().s * values.cm ().s * values.cm ().s ; - out_values.cm ().l = values.cm ().l * values.cm ().l * values.cm ().l ; - break; - } - return out_values; -} - -void Cubit_Impl:: please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException) { -} diff --git a/TAO/IIOP/test/Orbix/base_server/cubit_impl.h b/TAO/IIOP/test/Orbix/base_server/cubit_impl.h deleted file mode 100644 index 033aa7f0cb1..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/cubit_impl.h +++ /dev/null @@ -1,29 +0,0 @@ -// $Id$ - - -#ifndef cubit_ih -#define cubit_ih - -#include "cubit.h" - - -#ifdef Cubit_USE_BOA -class Cubit_Impl : public virtual CubitBOAImpl { -#else -class Cubit_Impl { -#endif /* Cubit_USE_BOA */ - -public: - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); -}; - -#ifndef Cubit_USE_BOA -DEF_TIE_Cubit (Cubit_Impl) -#endif /* Cubit_USE_BOA */ - -#endif diff --git a/TAO/IIOP/test/Orbix/base_server/server.cpp b/TAO/IIOP/test/Orbix/base_server/server.cpp deleted file mode 100644 index 527fa13d76e..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/server.cpp +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : tpr_server.cpp -// DESCRIPTION: -// -// Server mainline -// -//**************************************************************************** -#define IT_EX_MACROS - -#include "cubit_impl.h" // server header file - -int -main (int , char**) -{ - -#ifdef Cubit_USE_BOA - Cubit_var cb = new Cubit_Impl; - cout << "Using BOA approach" << endl; -#else - Cubit_var cb = new TIE_Cubit (Cubit_Impl) (new Cubit_Impl); - cout << "Using TIE approach" << endl; -#endif /* Cubit_USE_BOA */ - - // - // Go get some work to do.... - // - IT_TRY { - CORBA::Orbix.impl_is_ready("Cubit", IT_X); - } - IT_CATCHANY { - cout << IT_X << endl; - } - IT_ENDTRY; - - cout << "Cubit server is exiting." << endl; - - - return 0; -} diff --git a/TAO/IIOP/test/Orbix/base_server/tpr.cpp b/TAO/IIOP/test/Orbix/base_server/tpr.cpp deleted file mode 100644 index da78690cc2c..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/tpr.cpp +++ /dev/null @@ -1,28 +0,0 @@ -// $Id$ - -#include "tpr.h" - -void * -worker(void *vp) -{ - ACE_Thread_Control tc (ACE_Thread_Manager::instance ()); - CORBA::Orbix.continueThreadDispatch (*(CORBA::Request *)vp); - return NULL; -} - - -int -tpr_filter::inRequestPreMarshal(CORBA::Request &r, CORBA::Environment&) -{ -// thread_t tid; -// thr_create(NULL, 0, worker, (void *)&r, THR_DETACHED, &tid); - - ACE_Thread_Manager *thr_mgr = ACE_Thread_Manager::instance (); - thr_mgr->spawn (ACE_THR_FUNC (worker), - (void *) &r, - THR_DETACHED); - - return -1; -} - -tpr_filter tpr_dispatcher; diff --git a/TAO/IIOP/test/Orbix/base_server/tpr.h b/TAO/IIOP/test/Orbix/base_server/tpr.h deleted file mode 100644 index b5e8be94cf1..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/tpr.h +++ /dev/null @@ -1,12 +0,0 @@ -// $Id$ - -#include "cubit.h" -#include "ace/Service_Config.h" -#include "ace/Thread_Manager.h" - -// -// Create a thread filter to dispatch incoming calls -// -class tpr_filter : public CORBA::ThreadFilter { - virtual int inRequestPreMarshal(CORBA::Request &, CORBA::Environment&); -}; diff --git a/TAO/IIOP/test/Orbix/client/Makefile b/TAO/IIOP/test/Orbix/client/Makefile deleted file mode 100644 index 73f775bee2f..00000000000 --- a/TAO/IIOP/test/Orbix/client/Makefile +++ /dev/null @@ -1,89 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitC.cpp client.cpp - -CLT_OBJS = cubitC.o client.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: client - -client: $(addprefix $(VDIR),$(CLT_OBJS)) - $(LINK.cc) -o client $(addprefix $(VDIR),$(CLT_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITCLT) $(VLDLIBS) $(POSTLINK) - - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubitC.o .shobj/cubitC.so: cubitC.cpp cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i -.obj/client.o .shobj/client.so: client.cpp $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i cubit.h - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/test/Orbix/client/client.cpp b/TAO/IIOP/test/Orbix/client/client.cpp deleted file mode 100644 index f199078b601..00000000000 --- a/TAO/IIOP/test/Orbix/client/client.cpp +++ /dev/null @@ -1,234 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : client.C -// DESCRIPTION: -// -// Client for the Cubit example -// -//**************************************************************************** - -#include "ace/OS.h" -#include "ace/Get_Opt.h" -#include "cubit.h" - -int LOOP_COUNT; -char SERVER_HOST [1024]; - -inline int func (unsigned i) { return i - 117; } -void run_tests (Cubit_var, int); - -// = TITLE -// Parses the command line arguments and returns an error status -// -// = DESCRIPTION -// This method parses the command line arguments -int parse_args(int argc, char *argv[]) -{ - ACE_OS::strcpy (SERVER_HOST, "localhost"); - ACE_Get_Opt opts (argc, argv, "dh:n:O:x"); - int c; - - while ((c = opts ()) != -1) - switch (c) { - case 'h': - ACE_OS::strcpy (SERVER_HOST, opts.optarg); - continue; - case 'd': // debug flag - continue; - - case 'n': // loop count - LOOP_COUNT = (unsigned) ACE_OS::atoi (opts.optarg); - continue; - - case 'O': // stringified objref - continue; - - case 'x': - continue; - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-n loopcount]" - " [-h SERVER_HOST]" - " [-x]" - "\n", argv [0] - ); - return 1; - } - - return 0; // Indicates successful parsing of command line -} - - -// -// Mainline -// -int -main (int argc, char *argv[]) -{ - if (parse_args (argc, argv) != 0) - return -1; - - Cubit_var cb; - // cout << "attempting to contact server at host " << SERVER_HOST << '\n' ; - - // - // Initialise client's binding to an - // arbitrary cubit server (at some host) - // - TRY { - cb = Cubit::_bind ("", SERVER_HOST, IT_X); - } - CATCHANY { - cerr << "Binding failed: " << IT_X; - } - ENDTRY; - - run_tests (cb, LOOP_COUNT); - return 0; -} - - -void -run_tests (Cubit_var cb, int loop_count) -{ - // - // Make the calls in a loop. - // - unsigned i; - unsigned call_count, error_count; - - call_count = 0; - error_count = 0; - - ACE_Time_Value before, after; - - before = ACE_OS::gettimeofday(); - - // - // Cube an octet. - // - - for (i = 0; i < loop_count; i++) - { - - call_count++; - - CORBA::Octet arg_octet = func (i), ret_octet; - - TRY { - ret_octet = cb->cube_octet (arg_octet); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_octet = arg_octet * arg_octet * arg_octet; - if (arg_octet != ret_octet) { - ACE_OS::printf ("** cube_octet(%d) (--> %d)\n", arg_octet , ret_octet); - error_count++; - } - - - // - // Cube a short. - // - call_count++; - - CORBA::Short arg_short = func (i), ret_short; - - TRY { - ret_short = cb->cube_short (arg_short); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_short = arg_short * arg_short * arg_short; - if (arg_short != ret_short) { - ACE_OS::printf ("** cube_short(%d) (--> %d)\n", arg_short , ret_short); - error_count++; - } - - // - // Cube a long. - // - - call_count++; - - CORBA::Long arg_long = func (i), ret_long; - - TRY { - ret_long = cb->cube_long (arg_long); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - } - ENDTRY; - arg_long = arg_long * arg_long * arg_long; - if (arg_long != ret_long) { - ACE_OS::printf ("** cube_long(%d) (--> %d)\n", arg_long , ret_long); - error_count++; - } - - - // - // Cube a "struct" ... - // - Cubit::Many arg_struct, ret_struct; - - call_count++; - - arg_struct.l = func (i); - arg_struct.s = func (i); - arg_struct.o = func (i); - - TRY { - ret_struct = cb->cube_struct (arg_struct); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_struct.l = arg_struct.l * arg_struct.l * arg_struct.l ; - arg_struct.s = arg_struct.s * arg_struct.s * arg_struct.s ; - arg_struct.o = arg_struct.o * arg_struct.o * arg_struct.o ; - - if (arg_struct.l != ret_struct.l - || arg_struct.s != ret_struct.s - || arg_struct.o != ret_struct.o ) - { - cerr << "** cube_struct ERROR\n"; - error_count++; - } - } - - - after = ACE_OS::gettimeofday(); - - if (call_count > 0) - { - if (error_count == 0) - { - ACE_Time_Value diff = after - before; - unsigned long us = diff.sec() * 1000 * 1000 + diff.usec(); - - us /= call_count; - - if (us > 0) - ACE_OS::printf ("cube average call ACE_OS::time\t= %ld.%.03ldms, \t" - "%ld calls/second\n", - us / 1000, us % 1000, - 1000000L / us); - } - - ACE_OS::printf ("%d calls, %d errors\n", call_count, error_count); - } -} diff --git a/TAO/IIOP/test/Orbix/client/cubit.h b/TAO/IIOP/test/Orbix/client/cubit.h deleted file mode 100644 index 1fd0a2d3c7d..00000000000 --- a/TAO/IIOP/test/Orbix/client/cubit.h +++ /dev/null @@ -1,729 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include "ace/OS.h" -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/test/Orbix/client/cubit.idl b/TAO/IIOP/test/Orbix/client/cubit.idl deleted file mode 100644 index d4f1610e2a8..00000000000 --- a/TAO/IIOP/test/Orbix/client/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/test/Orbix/client/cubitC.cpp b/TAO/IIOP/test/Orbix/client/cubitC.cpp deleted file mode 100644 index 1d10b058a70..00000000000 --- a/TAO/IIOP/test/Orbix/client/cubitC.cpp +++ /dev/null @@ -1,559 +0,0 @@ -// $Id$ - -#include "cubit.h" - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/test/Orbix/factory_client/Makefile b/TAO/IIOP/test/Orbix/factory_client/Makefile deleted file mode 100644 index 63cc8a65e02..00000000000 --- a/TAO/IIOP/test/Orbix/factory_client/Makefile +++ /dev/null @@ -1,77 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitC.cpp client.cpp - -CLT_OBJS = cubitC.o client.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: client - -client: $(addprefix $(VDIR),$(CLT_OBJS)) - $(LINK.cc) -o client $(addprefix $(VDIR),$(CLT_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITCLT) $(VLDLIBS) $(POSTLINK) - - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubitC.o .shobj/cubitC.so: cubitC.cpp cubit.h -.obj/client.o .shobj/client.so: client.cpp $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i cubit.h - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/test/Orbix/factory_client/client.cpp b/TAO/IIOP/test/Orbix/factory_client/client.cpp deleted file mode 100644 index 1afdecbadf4..00000000000 --- a/TAO/IIOP/test/Orbix/factory_client/client.cpp +++ /dev/null @@ -1,237 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : client.C -// DESCRIPTION: -// -// Client for the Cubit example -// -//**************************************************************************** - -#include "ace/OS.h" -#include "ace/Get_Opt.h" -#include "cubit.h" - -int LOOP_COUNT; -char SERVER_HOST [1024]; - -inline int func (unsigned i) { return i - 117; } -void run_tests (Cubit_var, int); - -// = TITLE -// Parses the command line arguments and returns an error status -// -// = DESCRIPTION -// This method parses the command line arguments -int parse_args(int argc, char *argv[]) -{ - ACE_OS::strcpy (SERVER_HOST, "localhost"); - ACE_Get_Opt opts (argc, argv, "dh:n:O:x"); - int c; - - while ((c = opts ()) != -1) - switch (c) { - case 'h': - ACE_OS::strcpy (SERVER_HOST, opts.optarg); - continue; - case 'd': // debug flag - continue; - - case 'n': // loop count - LOOP_COUNT = (unsigned) ACE_OS::atoi (opts.optarg); - continue; - - case 'O': // stringified objref - continue; - - case 'x': - continue; - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-n loopcount]" - " [-h SERVER_HOST]" - " [-x]" - "\n", argv [0] - ); - return 1; - } - - return 0; // Indicates successful parsing of command line -} - - -// -// Mainline -// -int -main (int argc, char *argv[]) -{ - if (parse_args (argc, argv) != 0) - return -1; - - Cubit_var cb; - Cubit_Factory_var cf; - - // cout << "attempting to contact server at host " << SERVER_HOST << '\n' ; - - // - // Initialise client's binding to an - // arbitrary cubit server (at some host) - // - TRY { - cf = Cubit_Factory::_bind ("", SERVER_HOST, IT_X); - } - CATCHANY { - cerr << "Binding failed: " << IT_X; - } - ENDTRY; - cb = cf->create_cubit ("My_Cubit"); - - run_tests (cb, LOOP_COUNT); - return 0; -} - - -void -run_tests (Cubit_var cb, int loop_count) -{ - // - // Make the calls in a loop. - // - unsigned i; - unsigned call_count, error_count; - - call_count = 0; - error_count = 0; - - ACE_Time_Value before, after; - - before = ACE_OS::gettimeofday(); - - // - // Cube an octet. - // - - for (i = 0; i < loop_count; i++) - { - - call_count++; - - CORBA::Octet arg_octet = func (i), ret_octet; - - TRY { - ret_octet = cb->cube_octet (arg_octet); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_octet = arg_octet * arg_octet * arg_octet; - if (arg_octet != ret_octet) { - ACE_OS::printf ("** cube_octet(%d) (--> %d)\n", arg_octet , ret_octet); - error_count++; - } - - - // - // Cube a short. - // - call_count++; - - CORBA::Short arg_short = func (i), ret_short; - - TRY { - ret_short = cb->cube_short (arg_short); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_short = arg_short * arg_short * arg_short; - if (arg_short != ret_short) { - ACE_OS::printf ("** cube_short(%d) (--> %d)\n", arg_short , ret_short); - error_count++; - } - - // - // Cube a long. - // - - call_count++; - - CORBA::Long arg_long = func (i), ret_long; - - TRY { - ret_long = cb->cube_long (arg_long); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - } - ENDTRY; - arg_long = arg_long * arg_long * arg_long; - if (arg_long != ret_long) { - ACE_OS::printf ("** cube_long(%d) (--> %d)\n", arg_long , ret_long); - error_count++; - } - - - // - // Cube a "struct" ... - // - Cubit::Many arg_struct, ret_struct; - - call_count++; - - arg_struct.l = func (i); - arg_struct.s = func (i); - arg_struct.o = func (i); - - TRY { - ret_struct = cb->cube_struct (arg_struct); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_struct.l = arg_struct.l * arg_struct.l * arg_struct.l ; - arg_struct.s = arg_struct.s * arg_struct.s * arg_struct.s ; - arg_struct.o = arg_struct.o * arg_struct.o * arg_struct.o ; - - if (arg_struct.l != ret_struct.l - || arg_struct.s != ret_struct.s - || arg_struct.o != ret_struct.o ) - { - cerr << "** cube_struct ERROR\n"; - error_count++; - } - } - - - after = ACE_OS::gettimeofday(); - - if (call_count > 0) - { - if (error_count == 0) - { - ACE_Time_Value diff = after - before; - unsigned long us = diff.sec() * 1000 * 1000 + diff.usec(); - - us /= call_count; - - if (us > 0) - ACE_OS::printf ("cube average call ACE_OS::time\t= %ld.%.03ldms, \t" - "%ld calls/second\n", - us / 1000, us % 1000, - 1000000L / us); - } - - ACE_OS::printf ("%d calls, %d errors\n", call_count, error_count); - } -} diff --git a/TAO/IIOP/test/Orbix/factory_client/cubit.h b/TAO/IIOP/test/Orbix/factory_client/cubit.h deleted file mode 100644 index 3a2dd546608..00000000000 --- a/TAO/IIOP/test/Orbix/factory_client/cubit.h +++ /dev/null @@ -1,1113 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include - -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#ifndef _Cubit_Factory_defined -#define _Cubit_Factory_defined -class Cubit_Factory_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_Factory_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch () {} - - Cubit_Factory_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit_Factory; - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - - -#ifndef Cubit_FactoryForwH -#define Cubit_FactoryForwH -CORBA::ObjectRef Cubit_Factory_getBase (void *); -void Cubit_Factory_release (Cubit_Factory *, CORBA::Environment &IT_env); -void Cubit_Factory_release (Cubit_Factory_ptr); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr, CORBA::Environment &IT_env); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr ); -Cubit_Factory_ptr Cubit_Factory_nil (CORBA::Environment &IT_env); -Cubit_Factory_ptr Cubit_Factory_nil (); -#endif -#define Cubit_Factory_IMPL "Cubit_Factory" - - -class Cubit_Factory; - -typedef Cubit_Factory Cubit_FactoryProxy; -#define Cubit_Factory_IR "Cubit_Factory" -#define Cubit_Factory_IMPL "Cubit_Factory" - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - -class Cubit_Factory: public virtual CORBA::Object { -public: - Cubit_Factory (char *IT_OR); - Cubit_Factory (ObjectReference *IT_OR); - Cubit_Factory () : CORBA::Object (1) {} -protected: - Cubit_Factory_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_Factory_ptr _duplicate( - Cubit_Factory_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit_Factory* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _bind (CORBA::Environment &IT_env); - static Cubit_Factory* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_Factory_ptr) CORBA::OBJECT_NIL;} - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef Cubit_FactoryVarH -#define Cubit_FactoryVarH - -#ifndef Cubit_FactoryvPtr -#define Cubit_FactoryvPtr -typedef Cubit_Factory* Cubit_Factory_vPtr; -typedef const Cubit_Factory* Cubit_Factory_cvPtr; -#endif - -class Cubit_Factory_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_Factory_var &IT_s) { - { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_Factory_var (const Cubit_Factory_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_Factory_var () { - _ptr = Cubit_Factory_nil (); - } - - Cubit_Factory_var (Cubit_Factory *IT_p) { - _ptr = IT_p; - } - - Cubit_Factory_var &operator= (Cubit_Factory *IT_p) { - Cubit_Factory_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_Factory_var &operator= (const Cubit_Factory_var &IT_s) { - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_Factory_var () { - Cubit_Factory_release (_ptr); - } - - Cubit_Factory* operator-> () { - return _ptr; - } - - operator Cubit_Factory_cvPtr () const { return _ptr;} - operator Cubit_Factory_vPtr& () { return _ptr;} - - protected: - Cubit_Factory *_ptr; - private: - Cubit_Factory_var &operator= (const CORBA::_var &IT_s); - Cubit_Factory_var (const CORBA::_var &IT_s); - Cubit_Factory_var &operator= (const CORBA::_mgr &IT_s); - Cubit_Factory_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_Factory_var (const CORBA::_mgr &IT_s); - Cubit_Factory_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef Cubit_FactoryMgrH -#define Cubit_FactoryMgrH - -class Cubit_Factory_mgr : public CORBA::_mgr -{ - public: - - Cubit_Factory_mgr () { - _ptr = Cubit_Factory_nil (); - _release = 1; - } - - Cubit_Factory_mgr (const Cubit_Factory_mgr &IT_s) { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_Factory_mgr &operator= (Cubit_Factory *IT_p) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (const Cubit_Factory_mgr &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (Cubit_Factory_var &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_Factory_mgr () { - if (_release) - Cubit_Factory_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit_Factory* () const { - return (Cubit_Factory*) _ptr; - } - - Cubit_Factory_ptr operator-> () const { - return _ptr; - } - - Cubit_Factory *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_Factory_mgr Cubit_Factory_mgr_IT_const; -#endif - -#ifndef Cubit_FactorySeqElemH -#define Cubit_FactorySeqElemH - -class Cubit_Factory_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_Factory_SeqElem (Cubit_Factory_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_Factory_SeqElem &operator= (Cubit_Factory_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_Factory_SeqElem &operator= (const Cubit_Factory_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = Cubit_Factory_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_Factory_ptr () const { - return _ptr ? (Cubit_Factory_ptr) (*_ptr) : Cubit_Factory_nil(); - } - - Cubit_Factory_ptr operator->() const { return *_ptr;} - - protected: - Cubit_Factory_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit_Factory(X) Cubit_Factory##X - -#define DEF_TIE_Cubit_Factory(X) \ - class Cubit_Factory##X : public virtual Cubit_Factory { \ - X* m_obj; \ - public: \ - \ - \ - Cubit_Factory##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit_Factory(), m_obj(objp) { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,m,l,Cubit_Factory_IR,m_obj); \ - } \ - Cubit_Factory##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit_Factory() { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,IT_m,Cubit_Factory_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit_Factory##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit_Factory \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - - - - -class Cubit_FactoryProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - Cubit_FactoryProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_Factory_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern Cubit_FactoryProxyFactoryClass Cubit_FactoryProxyFactory; - -class Cubit_FactoryBOAImpl : public virtual Cubit_Factory { -public: - Cubit_FactoryBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_Factory_IR)) - m_pptr = new Cubit_Factory_dispatch ( (Cubit_Factory*)this, - (CORBA::Object*)this, m, l, Cubit_Factory_IR, this); -} - - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/test/Orbix/factory_client/cubit.hh b/TAO/IIOP/test/Orbix/factory_client/cubit.hh deleted file mode 100644 index 72e2fb81395..00000000000 --- a/TAO/IIOP/test/Orbix/factory_client/cubit.hh +++ /dev/null @@ -1,1111 +0,0 @@ - -#ifndef cubit_hh -#define cubit_hh - -#include - -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#ifndef _Cubit_Factory_defined -#define _Cubit_Factory_defined -class Cubit_Factory_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_Factory_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch () {} - - Cubit_Factory_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit_Factory; - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - - -#ifndef Cubit_FactoryForwH -#define Cubit_FactoryForwH -CORBA::ObjectRef Cubit_Factory_getBase (void *); -void Cubit_Factory_release (Cubit_Factory *, CORBA::Environment &IT_env); -void Cubit_Factory_release (Cubit_Factory_ptr); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr, CORBA::Environment &IT_env); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr ); -Cubit_Factory_ptr Cubit_Factory_nil (CORBA::Environment &IT_env); -Cubit_Factory_ptr Cubit_Factory_nil (); -#endif -#define Cubit_Factory_IMPL "Cubit_Factory" - - -class Cubit_Factory; - -typedef Cubit_Factory Cubit_FactoryProxy; -#define Cubit_Factory_IR "Cubit_Factory" -#define Cubit_Factory_IMPL "Cubit_Factory" - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - -class Cubit_Factory: public virtual CORBA::Object { -public: - Cubit_Factory (char *IT_OR); - Cubit_Factory (ObjectReference *IT_OR); - Cubit_Factory () : CORBA::Object (1) {} -protected: - Cubit_Factory_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_Factory_ptr _duplicate( - Cubit_Factory_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit_Factory* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _bind (CORBA::Environment &IT_env); - static Cubit_Factory* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_Factory_ptr) CORBA::OBJECT_NIL;} - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef Cubit_FactoryVarH -#define Cubit_FactoryVarH - -#ifndef Cubit_FactoryvPtr -#define Cubit_FactoryvPtr -typedef Cubit_Factory* Cubit_Factory_vPtr; -typedef const Cubit_Factory* Cubit_Factory_cvPtr; -#endif - -class Cubit_Factory_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_Factory_var &IT_s) { - { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_Factory_var (const Cubit_Factory_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_Factory_var () { - _ptr = Cubit_Factory_nil (); - } - - Cubit_Factory_var (Cubit_Factory *IT_p) { - _ptr = IT_p; - } - - Cubit_Factory_var &operator= (Cubit_Factory *IT_p) { - Cubit_Factory_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_Factory_var &operator= (const Cubit_Factory_var &IT_s) { - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_Factory_var () { - Cubit_Factory_release (_ptr); - } - - Cubit_Factory* operator-> () { - return _ptr; - } - - operator Cubit_Factory_cvPtr () const { return _ptr;} - operator Cubit_Factory_vPtr& () { return _ptr;} - - protected: - Cubit_Factory *_ptr; - private: - Cubit_Factory_var &operator= (const CORBA::_var &IT_s); - Cubit_Factory_var (const CORBA::_var &IT_s); - Cubit_Factory_var &operator= (const CORBA::_mgr &IT_s); - Cubit_Factory_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_Factory_var (const CORBA::_mgr &IT_s); - Cubit_Factory_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef Cubit_FactoryMgrH -#define Cubit_FactoryMgrH - -class Cubit_Factory_mgr : public CORBA::_mgr -{ - public: - - Cubit_Factory_mgr () { - _ptr = Cubit_Factory_nil (); - _release = 1; - } - - Cubit_Factory_mgr (const Cubit_Factory_mgr &IT_s) { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_Factory_mgr &operator= (Cubit_Factory *IT_p) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (const Cubit_Factory_mgr &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (Cubit_Factory_var &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_Factory_mgr () { - if (_release) - Cubit_Factory_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit_Factory* () const { - return (Cubit_Factory*) _ptr; - } - - Cubit_Factory_ptr operator-> () const { - return _ptr; - } - - Cubit_Factory *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_Factory_mgr Cubit_Factory_mgr_IT_const; -#endif - -#ifndef Cubit_FactorySeqElemH -#define Cubit_FactorySeqElemH - -class Cubit_Factory_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_Factory_SeqElem (Cubit_Factory_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_Factory_SeqElem &operator= (Cubit_Factory_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_Factory_SeqElem &operator= (const Cubit_Factory_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = Cubit_Factory_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_Factory_ptr () const { - return _ptr ? (Cubit_Factory_ptr) (*_ptr) : Cubit_Factory_nil(); - } - - Cubit_Factory_ptr operator->() const { return *_ptr;} - - protected: - Cubit_Factory_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit_Factory(X) Cubit_Factory##X - -#define DEF_TIE_Cubit_Factory(X) \ - class Cubit_Factory##X : public virtual Cubit_Factory { \ - X* m_obj; \ - public: \ - \ - \ - Cubit_Factory##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit_Factory(), m_obj(objp) { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,m,l,Cubit_Factory_IR,m_obj); \ - } \ - Cubit_Factory##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit_Factory() { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,IT_m,Cubit_Factory_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit_Factory##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit_Factory \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - - - - -class Cubit_FactoryProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - Cubit_FactoryProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_Factory_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern Cubit_FactoryProxyFactoryClass Cubit_FactoryProxyFactory; - -class Cubit_FactoryBOAImpl : public virtual Cubit_Factory { -public: - Cubit_FactoryBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_Factory_IR)) - m_pptr = new Cubit_Factory_dispatch ( (Cubit_Factory*)this, - (CORBA::Object*)this, m, l, Cubit_Factory_IR, this); -} - - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/test/Orbix/factory_client/cubit.idl b/TAO/IIOP/test/Orbix/factory_client/cubit.idl deleted file mode 100644 index 41309e997ea..00000000000 --- a/TAO/IIOP/test/Orbix/factory_client/cubit.idl +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - - interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); - }; - - - interface Cubit_Factory { - Cubit create_cubit (in string name); - }; - diff --git a/TAO/IIOP/test/Orbix/factory_client/cubitC.cpp b/TAO/IIOP/test/Orbix/factory_client/cubitC.cpp deleted file mode 100644 index d19c387bcd2..00000000000 --- a/TAO/IIOP/test/Orbix/factory_client/cubitC.cpp +++ /dev/null @@ -1,712 +0,0 @@ -// $Id$ - - - -#include "cubit.h" - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - -Cubit_Factory::Cubit_Factory (char *IT_OR) { - m_pptr = new Cubit_Factory_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit_Factory::Cubit_Factory (ObjectReference *IT_OR) { - m_pptr = new Cubit_Factory_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef Cubit_FactoryForwC -#define Cubit_FactoryForwC -CORBA::ObjectRef Cubit_Factory_getBase(void *IT_p){ - return (Cubit_Factory*) IT_p;} - -void Cubit_Factory_release (Cubit_Factory_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_Factory_release (Cubit_Factory_ptr IT_p) { - Cubit_Factory_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_Factory_ptr Cubit_Factory_nil (CORBA::Environment &) { - return Cubit_Factory:: _nil ();} - -Cubit_Factory_ptr Cubit_Factory_nil () { - return Cubit_Factory_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_Factory_ptr Cubit_Factory_duplicate (Cubit_Factory_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit_Factory::_duplicate(IT_p, IT_env)); } -Cubit_Factory_ptr Cubit_Factory_duplicate (Cubit_Factory_ptr IT_p) { - return Cubit_Factory_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_Factory_ptr Cubit_Factory::_duplicate(Cubit_Factory_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_Factory_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit_Factory* Cubit_Factory:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit_Factory*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_Factory_IMPL, Cubit_Factory_IR); -} - - - -Cubit_Factory* Cubit_Factory:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit_Factory* Cubit_Factory:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit_Factory* Cubit_Factory::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit_Factory:: _nil(); - } - - Cubit_Factory* IT_p = (Cubit_Factory*)CORBA::Object::_castDown (IT_obj, Cubit_Factory_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - -void* Cubit_FactoryProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -void* Cubit_FactoryProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -void* Cubit_FactoryProxyFactoryClass::New2 () { - return new class Cubit_Factory((char*)0);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::New2Object () { - return new class Cubit_Factory((char*)0);} - -void* Cubit_FactoryProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_Factory_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit_Factory*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* Cubit_FactoryProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit_Factory*)IT_p)->_pptr ();} - -void Cubit_FactoryProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_Factory_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -Cubit_FactoryProxyFactoryClass Cubit_FactoryProxyFactory(1); - -Cubit_ptr Cubit_Factory:: create_cubit (const char * name, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return new Cubit; - } - CORBA::Request IT_r (this, "create_cubit",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.encodeStringOp (name); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit_ptr IT_result; - IT_result = (Cubit*) IT_r.decodeObjRef (Cubit_IR); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return new Cubit; -} - - - - - -#ifndef Cubit_Factory_dispatch_impl - -unsigned char Cubit_Factory_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit_Factory"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/test/Orbix/factory_client/cubitS.cpp b/TAO/IIOP/test/Orbix/factory_client/cubitS.cpp deleted file mode 100644 index 56cf33174a6..00000000000 --- a/TAO/IIOP/test/Orbix/factory_client/cubitS.cpp +++ /dev/null @@ -1,284 +0,0 @@ -// $Id$ - - - -#include "cubit.hh" - - -#define Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"cube_octet")) { - CORBA::Octet IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_octet~+o{o},>{o},N{}\ -")) - return 1; - CORBA::Octet o; - - IT_r.extractOctet (o); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_octet ( o, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -o\ -", IT_env)) return 1; - IT_r.insertOctet (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_short")) { - CORBA::Short IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_short~+s{s},>{s},N{}\ -")) - return 1; - CORBA::Short s; - - IT_r >> s; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_short ( s, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -s\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_long")) { - CORBA::Long IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_long~+l{l},>{l},N{}\ -")) - return 1; - CORBA::Long l; - - IT_r >> l; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_long ( l, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -l\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_struct")) { - Cubit::Many IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_struct~+values{R~Cubit::Many~o{o},l{l},s{s}},>{R~Cubit::Many~o{o},l{l},s{s}},N{}\ -")) - return 1; - Cubit::Many values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_struct ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -R~Cubit::Many~o{o},l{l},s{s}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_union")) { - Cubit::oneof IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - IT_r.tcPreAssert ( -"\ -Ro~cube_union~+values{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},>{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,\ -"); - if (!IT_r.tcAssert ("\ -e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},N{}\ -")) - return 1; - Cubit::oneof values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_union ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"please_exit")) { - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~please_exit~>{v},O{}\ -")) - return 1; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - ((Cubit*)IT_pp)->please_exit (IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - IT_r.replyNoResults (CORBA::Flags(CORBA::INV_NO_RESPONSE),IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#define Cubit_Factory_dispatch_impl - -unsigned char Cubit_Factory_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"create_cubit")) { - Cubit_ptr IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~create_cubit~+name{0},>{O~Cubit},N{}\ -")) - return 1; - char * name; - - IT_r.decodeStringOp(name); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit_Factory*)IT_pp)->create_cubit ( name, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - CORBA::string_free (name); - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -O~Cubit\ -", IT_env)) return 1; - { - CORBA::Object* IT_l1 = (CORBA::Object*) IT_result; - IT_r << IT_l1; - } - if (IT_result) Cubit_release (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#include "cubitC.cpp" - diff --git a/TAO/IIOP/test/Orbix/orb.mk b/TAO/IIOP/test/Orbix/orb.mk deleted file mode 100644 index cf7b12d3b1b..00000000000 --- a/TAO/IIOP/test/Orbix/orb.mk +++ /dev/null @@ -1,146 +0,0 @@ -# ------------------------------------------------------------ -# Orbix 2.2 implicit rules for SunOS/GNU Make -# ------------------------------------------------------------ -# -# If you cut'n'paste this into your /usr/include/make/default.mk -# file, beware! This is not officially supported by Iona -# Technologies, and you may want to be a bit of a Makefile hacker -# to make it integrate well with your site's setup. - -# The best thing to do would be put it in a standard place and -# anyone who wants the Orbix implicit rule set can include -# it with an "include /orbix.mk" line in their -# Makefile. A good place to put it might be /usr/include/make. - -# These rules define default C++, C++FLAGS and C++SUFFIX. -# C++ is the C++ compiler to use; C++FLAGS are command-line -# flags to the C++ compiler for use in compiling C++ source -# files into objects; C++SUFFIX is the filename suffix -# indicating C++ source. By default, it's set to "C" for AT&T C++, -# and "cc" for GNU g++. - -# Feel free to override these in your Makefiles *after* -# including this file. - -# IMPORTANT: If the -M switch is specified in IDLFLAGS, the IDL -# compiler appends to the user-specified file. The dependency for -# specified_file.o in the linking target should appear _after_ any use -# of the IDL compiler which takes the -M flag. Putting it _last_ -# is normally the best approach. - -# Note that these rule definitions use pattern matching, -# and therefore only work with SunOS make and GNU make. - -# They may not work with other vendor's versions of make. -# If they do not, you may wish to try using GNU make, which -# is free software produced by the Free Software Foundation. - -# If the version of make you wish to use does not support -# pattern matching, use the sample explicit rule set in -# the comments at the end of this file. - -# ------------------------------------------------------------ -# Essential: set these to the locations into which you -# have installed Orbix' components: - -ORBIX_BINDIR = /opt/Orbix_2.2MT/corba2/bin -ORBIX_LIBDIR = /opt/Orbix_2.2MT/corba2/lib -ORBIX_INCDIR = /opt/Orbix_2.2MT/corba2/include - -#------------------------------------------------------------- -# To compile the demos, you should change these values as -# appropriate for your particular system installation -#------------------------------------------------------------- - -X11BASE = /usr/openwin -X11INCDIR = $(X11BASE)/include -X11LIBDIR = $(X11BASE)/lib - -# C++ = CC -# C++FLAGS = -I$(ORBIX_INCDIR) -I. -mt -D_REENTRANT -# C++SUFFIX = cpp - -# ------------------------------------------------------------ -# ITCLT, IRCLT and ITSRV can be either statically or dynamically linked -# Use -Bdynamic or -Bstatic as appropriate. -# ------------------------------------------------------------ - -ITCLT = -Bstatic -lorbixmt -IRCLT = -Bstatic -lIRcltmt -ITSRV = -Bstatic -lorbixmt -ITIIOP = -Bstatic -liiopmt -ITDSI = -Bstatic -lDSImt -ITIFR = -Bstatic -lifrmt - -# ------------------------------------------------------------ -# SYSLIBS must be dynamically linked; otherwise you can expect to -# get linkage errors for symbols in the nsl library -# ------------------------------------------------------------ - -LDFLAGS += -L$(ORBIX_LIBDIR) -SYSLIBS = -Bdynamic -lnsl -lsocket - -IDL = $(ORBIX_BINDIR)/idl -IDLFLAGS = - -# ------------------------------------------------------------ -# The following section defines implicit rules for creating -# *.{C,S}.C files, rules for compiling those -# into objects, and even a rule for compiling C++ source into -# objects (in case one isn't already defined). - -# ------------------------------------------------------------ -# first, put the new suffixes at the *head* of the suffix list, -# overriding any existing .C compilation method. -.SUFFIXES: -.SUFFIXES: .$(C++SUFFIX) .idl $(SUFFIXES) - -# .SUFFIXES: .$(C++SUFFIX) .idl .hh $(SUFFIXES) -# ------------------------------------------------------------ -# *[CS].o must be compiled here, and depends -# mostly on the C++ files produced from the IDL file. - -%C.o: %C.$(C++SUFFIX) - $(C++) -c $(C++FLAGS) $< - -%S.o: %S.$(C++SUFFIX) - $(C++) -c $(C++FLAGS) $< - -%.o: %.$(C++SUFFIX) - $(C++) -c $(C++FLAGS) $< - -# and here's how to compile C++ files from the IDL file. -# only ONE of these rules will be run at make-time, - -%S.$(C++SUFFIX): %.idl - $(IDL) $(IDLFLAGS) $< - -%C.$(C++SUFFIX): %.idl - $(IDL) $(IDLFLAGS) $< - -%.hh: %.idl - $(IDL) $(IDLFLAGS) $< - -# ------------------------------------------------------------ -# If the version of make you wish to use does not support -# pattern matching, here's a sample of an explicit rule set. - -# We assume the IDL file is called "foobar.idl", we wish -# to compile "foobarC.o", "foobarS.o", and -# "foobar.hh", and the C++ file suffix. -# ------------------------------------------------------------ - -# foobarC.o: foobar.hh foobarC.C -# $(C++) -c ($C++FLAGS) foobarC.C -# -# foobarS.o: foobar.hh foobarS.C -# $(C++) -c ($C++FLAGS) foobarS.C -# -# foobarC.C: foobar.idl -# $(IDL) -c ($IDLFLAGS) foobar.idl -# -# foobarS.C: foobar.idl -# $(IDL) -c ($IDLFLAGS) foobar.idl -# -# foobar.hh: foobar.idl -# $(IDL) -c ($IDLFLAGS) foobar.idl diff --git a/TAO/IIOP/test/Orbix/tpool/Makefile b/TAO/IIOP/test/Orbix/tpool/Makefile deleted file mode 100644 index 0e425af78b1..00000000000 --- a/TAO/IIOP/test/Orbix/tpool/Makefile +++ /dev/null @@ -1,89 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitS.cpp cubit_impl.cpp server.cpp tpool.cpp - -SVR_OBJS = cubitS.o cubit_impl.o server.o tpool.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -# Remove -DCubit_USE_BOA from below to use the TIE approach - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -DCubit_USE_BOA -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: server - -server: $(addprefix $(VDIR),$(SVR_OBJS)) - $(LINK.cc) -o server $(addprefix $(VDIR),$(SVR_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITSRV) $(VLDLIBS) $(POSTLINK) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubit_impl.o .shobj/cubit_impl.so: cubit_impl.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i -.obj/server.o .shobj/server.so: server.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/test/Orbix/tpool/cubit.h b/TAO/IIOP/test/Orbix/tpool/cubit.h deleted file mode 100644 index 1fd0a2d3c7d..00000000000 --- a/TAO/IIOP/test/Orbix/tpool/cubit.h +++ /dev/null @@ -1,729 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include "ace/OS.h" -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/test/Orbix/tpool/cubit.idl b/TAO/IIOP/test/Orbix/tpool/cubit.idl deleted file mode 100644 index d4f1610e2a8..00000000000 --- a/TAO/IIOP/test/Orbix/tpool/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/test/Orbix/tpool/cubitC.cpp b/TAO/IIOP/test/Orbix/tpool/cubitC.cpp deleted file mode 100644 index 1d10b058a70..00000000000 --- a/TAO/IIOP/test/Orbix/tpool/cubitC.cpp +++ /dev/null @@ -1,559 +0,0 @@ -// $Id$ - -#include "cubit.h" - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/test/Orbix/tpool/cubitS.cpp b/TAO/IIOP/test/Orbix/tpool/cubitS.cpp deleted file mode 100644 index d72803fed0c..00000000000 --- a/TAO/IIOP/test/Orbix/tpool/cubitS.cpp +++ /dev/null @@ -1,228 +0,0 @@ -// $Id$ - -#include "cubit.h" - - -#define Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"cube_octet")) { - CORBA::Octet IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_octet~+o{o},>{o},N{}\ -")) - return 1; - CORBA::Octet o; - - IT_r.extractOctet (o); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_octet ( o, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -o\ -", IT_env)) return 1; - IT_r.insertOctet (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_short")) { - CORBA::Short IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_short~+s{s},>{s},N{}\ -")) - return 1; - CORBA::Short s; - - IT_r >> s; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_short ( s, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -s\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_long")) { - CORBA::Long IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_long~+l{l},>{l},N{}\ -")) - return 1; - CORBA::Long l; - - IT_r >> l; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_long ( l, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -l\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_struct")) { - Cubit::Many IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_struct~+values{R~Cubit::Many~o{o},l{l},s{s}},>{R~Cubit::Many~o{o},l{l},s{s}},N{}\ -")) - return 1; - Cubit::Many values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_struct ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -R~Cubit::Many~o{o},l{l},s{s}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_union")) { - Cubit::oneof IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - IT_r.tcPreAssert ( -"\ -Ro~cube_union~+values{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},>{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,\ -"); - if (!IT_r.tcAssert ("\ -e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},N{}\ -")) - return 1; - Cubit::oneof values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_union ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"please_exit")) { - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~please_exit~>{v},O{}\ -")) - return 1; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - ((Cubit*)IT_pp)->please_exit (IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - IT_r.replyNoResults (CORBA::Flags(CORBA::INV_NO_RESPONSE),IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#include "cubitC.cpp" - diff --git a/TAO/IIOP/test/Orbix/tpool/cubit_impl.cpp b/TAO/IIOP/test/Orbix/tpool/cubit_impl.cpp deleted file mode 100644 index e96b6e33dcd..00000000000 --- a/TAO/IIOP/test/Orbix/tpool/cubit_impl.cpp +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -#include "cubit_impl.h" - -CORBA::Octet Cubit_Impl:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Octet) (o * o * o); -} - -CORBA::Short Cubit_Impl:: cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Short) (s * s * s); -} - -CORBA::Long Cubit_Impl:: cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Long) (l * l * l); -} - -Cubit::Many Cubit_Impl:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::Many out_values; - out_values.o = values.o * values.o * values.o; - out_values.s = values.s * values.s * values.s; - out_values.l = values.l * values.l * values.l; - return out_values; -} - -Cubit::oneof Cubit_Impl:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::oneof out_values; - switch (values._d ()) { - case Cubit::e_0th: - out_values.o (values.o () * values.o () * values.o ()); - break; - case Cubit::e_1st: - out_values.s (values.s () * values.s () * values.s ()); - break; - case Cubit::e_2nd: - out_values.l (values.l () * values.l () * values.l ()); - break; - case Cubit::e_3rd: - default: - out_values.cm ().o = values.cm ().o * values.cm ().o * values.cm ().o ; - out_values.cm ().s = values.cm ().s * values.cm ().s * values.cm ().s ; - out_values.cm ().l = values.cm ().l * values.cm ().l * values.cm ().l ; - break; - } - return out_values; -} - -void Cubit_Impl:: please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException) { -} diff --git a/TAO/IIOP/test/Orbix/tpool/cubit_impl.h b/TAO/IIOP/test/Orbix/tpool/cubit_impl.h deleted file mode 100644 index 033aa7f0cb1..00000000000 --- a/TAO/IIOP/test/Orbix/tpool/cubit_impl.h +++ /dev/null @@ -1,29 +0,0 @@ -// $Id$ - - -#ifndef cubit_ih -#define cubit_ih - -#include "cubit.h" - - -#ifdef Cubit_USE_BOA -class Cubit_Impl : public virtual CubitBOAImpl { -#else -class Cubit_Impl { -#endif /* Cubit_USE_BOA */ - -public: - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); -}; - -#ifndef Cubit_USE_BOA -DEF_TIE_Cubit (Cubit_Impl) -#endif /* Cubit_USE_BOA */ - -#endif diff --git a/TAO/IIOP/test/Orbix/tpool/server.cpp b/TAO/IIOP/test/Orbix/tpool/server.cpp deleted file mode 100644 index ac107f69ec4..00000000000 --- a/TAO/IIOP/test/Orbix/tpool/server.cpp +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : tpr_server.cpp -// DESCRIPTION: -// -// Server mainline -// -//**************************************************************************** -#define IT_EX_MACROS - -#include "cubit_impl.h" // server header file -#include "tpool.h" - -int -main (int argc, char** argv) -{ - - -#ifdef Cubit_USE_BOA - Cubit_var cb = new Cubit_Impl; - cout << "Using BOA approach" << endl; -#else - Cubit_var cb = new TIE_Cubit (Cubit_Impl) (new Cubit_Impl); - cout << "Using TIE approach" << endl; -#endif /* Cubit_USE_BOA */ - - // Register our thread-pool dispatcher - int n_threads = argc > 1 ? ACE_OS::atoi (argv[1]) : ACE_DEFAULT_THREADS; - Thread_Pool tpool_dispatcher (n_threads); - - // - // Go get some work to do.... - // - IT_TRY { - CORBA::Orbix.impl_is_ready("Cubit", IT_X); - } - IT_CATCHANY { - cout << IT_X << endl; - } - IT_ENDTRY; - - cout << "Cubit server is exiting." << endl; - - - return 0; -} diff --git a/TAO/IIOP/test/Orbix/tpool/tpool.cpp b/TAO/IIOP/test/Orbix/tpool/tpool.cpp deleted file mode 100644 index 219503a22d7..00000000000 --- a/TAO/IIOP/test/Orbix/tpool/tpool.cpp +++ /dev/null @@ -1,44 +0,0 @@ -// $Id$ - -#include "tpool.h" - -Thread_Pool::Thread_Pool (int n_threads) - : ACE_Task (ACE_Thread_Manager::instance ()) -{ - if (this->activate (THR_DETACHED | THR_NEW_LWP, n_threads) == -1) - ACE_ERROR ((LM_ERROR, "%p\n", "activate failed")); -} - -int -Thread_Pool::svc (void) -{ - cout << "Pool thread activated" << endl; - while (1) - { - // Dequeue message - ACE_Message_Block *mb; - this->msg_queue ()->dequeue_head (mb); - CORBA::Request *vp = (CORBA::Request *) mb->base (); - mb->release (); - // Hand it off to Orbix - CORBA::Orbix.continueThreadDispatch (*vp); - } - return -1; -} - - -int -Thread_Pool::inRequestPreMarshal(CORBA::Request &r, CORBA::Environment&) -{ -// thread_t tid; -// thr_create(NULL, 0, worker, (void *)&r, THR_DETACHED, &tid); - - // Enqueue the request - ACE_Message_Block *mb = new ACE_Message_Block ( (char *) (&r)); - this->msg_queue ()->enqueue (mb); - // Done - return -1; -} - - - diff --git a/TAO/IIOP/test/Orbix/tpool/tpool.h b/TAO/IIOP/test/Orbix/tpool/tpool.h deleted file mode 100644 index 337a7f54e65..00000000000 --- a/TAO/IIOP/test/Orbix/tpool/tpool.h +++ /dev/null @@ -1,17 +0,0 @@ -// $Id$ - -#include "cubit.h" -#include "ace/Service_Config.h" -#include "ace/Thread_Manager.h" -#include "ace/Task.h" - -class Thread_Pool : public ACE_Task, public CORBA::ThreadFilter -{ -public: - Thread_Pool (int n_threads); - virtual int inRequestPreMarshal(CORBA::Request &, CORBA::Environment&); - virtual int svc (void); - -}; - - diff --git a/TAO/IIOP/test/Orbix/tpr/Makefile b/TAO/IIOP/test/Orbix/tpr/Makefile deleted file mode 100644 index 650d6aaf259..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/Makefile +++ /dev/null @@ -1,89 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitS.cpp cubit_impl.cpp server.cpp tpr.cpp - -SVR_OBJS = cubitS.o cubit_impl.o server.o tpr.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -# Remove -DCubit_USE_BOA from below to use the TIE approach - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -DCubit_USE_BOA -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: server - -server: $(addprefix $(VDIR),$(SVR_OBJS)) - $(LINK.cc) -o server $(addprefix $(VDIR),$(SVR_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITSRV) $(VLDLIBS) $(POSTLINK) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubit_impl.o .shobj/cubit_impl.so: cubit_impl.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i -.obj/server.o .shobj/server.so: server.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/test/Orbix/tpr/cubit.h b/TAO/IIOP/test/Orbix/tpr/cubit.h deleted file mode 100644 index 1fd0a2d3c7d..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/cubit.h +++ /dev/null @@ -1,729 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include "ace/OS.h" -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/test/Orbix/tpr/cubit.idl b/TAO/IIOP/test/Orbix/tpr/cubit.idl deleted file mode 100644 index d4f1610e2a8..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/test/Orbix/tpr/cubitC.cpp b/TAO/IIOP/test/Orbix/tpr/cubitC.cpp deleted file mode 100644 index 1d10b058a70..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/cubitC.cpp +++ /dev/null @@ -1,559 +0,0 @@ -// $Id$ - -#include "cubit.h" - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/test/Orbix/tpr/cubitC.h b/TAO/IIOP/test/Orbix/tpr/cubitC.h deleted file mode 100644 index 584efa67c8d..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/cubitC.h +++ /dev/null @@ -1,345 +0,0 @@ -// $Id$ - -#ifndef _cubitC_h -#define _cubitC_h - -/************************************************************************/ -/* */ -/* This file is automatically generated by ORBeline IDL compiler */ -/* Do not modify this file. */ -/* */ -/* ORBeline (c) is copyrighted by PostModern Computing, Inc. */ -/* */ -/* The generated code conforms to OMG's IDL C++ mapping as */ -/* specified in OMG Document Number: 94-9-14. */ -/* */ -/************************************************************************/ - -#include "corba.h" - - - -class Cubit; -typedef Cubit *Cubit_ptr; -typedef Cubit_ptr CubitRef; - -#ifndef _Cubit_var_ -#define _Cubit_var_ -class Cubit_var -{ - public: - Cubit_var(); - Cubit_var(Cubit_ptr); - Cubit_var(const Cubit_var&); - ~Cubit_var(); - Cubit_var& operator=(Cubit_ptr); - operator Cubit_ptr() const { return _ptr; } -#if defined(_HPCC_BUG) - operator Cubit *&() { return _ptr; } -#else - operator Cubit_ptr&() { return _ptr; } -#endif - Cubit_ptr operator->() const { return _ptr;} - friend NCistream& operator>>(NCistream&, Cubit_var&); - friend NCostream& operator<<(NCostream&, const Cubit_var&); - friend istream& operator>>(istream&, Cubit_var&); - friend ostream& operator<<(ostream&, const Cubit_var&); - private: - Cubit_ptr _ptr; - void operator=(const Cubit_var&) {} -}; -#endif -class Cubit: public virtual CORBA_Object -{ - private: - static const CORBA::TypeInfo _class_info; - Cubit(const Cubit&) {} - void operator=(const Cubit&){} - public: - static const CORBA::TypeInfo *_desc(); - virtual const CORBA::TypeInfo *_type_info() const; - virtual void *_safe_narrow(const CORBA::TypeInfo& ) const; - static CORBA::Object *_factory(); - protected: - Cubit(const char *obj_name = NULL) :CORBA_Object(obj_name, 1) {} - Cubit(NCistream& strm) :CORBA_Object(strm) {} - virtual ~Cubit() {} - public: - static Cubit_ptr _duplicate(Cubit_ptr obj) { - if (obj ) obj->_ref(); - return obj; - } - static Cubit_ptr _nil() { return (Cubit_ptr)NULL;} - static Cubit_ptr _narrow(CORBA::Object *obj); - static Cubit_ptr _clone(Cubit_ptr obj) { - CORBA::Object_var obj_var(__clone(obj)); - -#if defined(_HPCC_BUG) - return _narrow(obj_var.operator CORBA::Object_ptr()); -#else - return _narrow(obj_var); -#endif - } - static Cubit_ptr _bind(const char *object_name = NULL, - const char *host_name = NULL, - const CORBA::BindOptions* opt = NULL); - - virtual CORBA::Octet cube_octet(CORBA::Octet o); - - virtual CORBA::Short cube_short(CORBA::Short s); - - virtual CORBA::Long cube_long(CORBA::Long l); - - struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - }; - friend NCostream& operator<<(NCostream&, const Many& ); - friend NCistream& operator>>(NCistream&, Many& ); - - friend ostream& operator<<(ostream&, const Many& ); - inline friend istream& operator>>(istream& _strm, Many& _obj) { - NCistream _istrm(_strm); - _istrm >> _obj; - return _strm; - } - - - typedef Many *Many_ptr; - class Many_var - { - public: - Many_var() { _ptr = (Many*)NULL;} - Many_var(Many *ptr) { - _ptr = ptr; - } - Many_var(const Many_var& var) { - if (var._ptr) - _ptr = new Many(*var._ptr); - else - _ptr = (Many *)NULL; - } - ~Many_var() { - if (_ptr != (Many *)NULL) delete _ptr; - } - Many_var& operator=(Many *ptr) { - if (_ptr != (Many *)NULL) delete _ptr; - _ptr = ptr; - return *this; - } - Many_var& operator=(const Many_var& var) { - if (_ptr != (Many *)NULL) delete _ptr; - if (var._ptr) - _ptr = new Many(*var._ptr); - else - _ptr = (Many *)NULL; - return *this; - } - Many *operator->() { return _ptr; } - operator Many () const { return *_ptr; } - operator Many& () { return *_ptr; } - inline friend NCostream& operator<<(NCostream& strm, - const Many_var& var) { - if (var._ptr == (Many *)NULL) { - throw CORBA::BAD_PARAM(); - } - else - strm << *var._ptr; - return strm; - } - inline friend NCistream& operator>>(NCistream& strm, - Many_var& var) { - if ( ! var._ptr) - var._ptr = new Many; - strm >> *var._ptr; - return strm; - } - private: - Many *_ptr; - }; - - - virtual Cubit::Many cube_struct(const Cubit::Many& values); - - enum discrim { - e_0th, - e_1st, - e_2nd, - e_3rd, - e_4th, - e_5th - }; - inline friend NCostream& operator<<(NCostream& _strm, discrim _enum_type) { - _strm << (CORBA::ULong)_enum_type; - return _strm; - } - inline friend NCistream& operator>>(NCistream& _strm, discrim& _enum_type) { - CORBA::ULong _temp; - _strm >> _temp; - if (_temp >= 6) - throw CORBA::BAD_PARAM(); - _enum_type = discrim(_temp); - return _strm; - } - inline friend ostream& operator<<(ostream& _strm, discrim _enum_type) { - if( &_strm == &cout || &_strm == &cerr || &_strm == &clog) { - _strm << "discrim:"; - switch(_enum_type) { - case e_0th: - _strm << "e_0th" << endl; - break; - case e_1st: - _strm << "e_1st" << endl; - break; - case e_2nd: - _strm << "e_2nd" << endl; - break; - case e_3rd: - _strm << "e_3rd" << endl; - break; - case e_4th: - _strm << "e_4th" << endl; - break; - case e_5th: - _strm << "e_5th" << endl; - break; - } - } - else - _strm << (CORBA::ULong)_enum_type; - return _strm; - } - inline friend istream& operator>>(istream& _strm, discrim& _enum_type) { - CORBA::ULong _temp; - _strm >> _temp; - _enum_type = discrim(_temp); - return _strm; - } - - - class oneof - { - public: - private: - discrim _disc; - CORBA::Octet __o; - CORBA::Short __s; - CORBA::Long __l; - Cubit::Many __cm; - public: - oneof() : _disc(discrim(0)) {} - ~oneof() {} - oneof(const oneof& obj); - oneof& operator=(const oneof& obj); - - void _d(discrim val) { _disc = val; } - discrim _d() const { return _disc; } - - void o(CORBA::Octet val) { - __o = val; - _disc = Cubit::e_0th; - } - CORBA::Octet o() const { return __o; } - - void s(CORBA::Short val) { - __s = val; - _disc = Cubit::e_1st; - } - CORBA::Short s() const { return __s; } - - void l(CORBA::Long val) { - __l = val; - _disc = Cubit::e_2nd; - } - CORBA::Long l() const { return __l; } - - void cm(const Cubit::Many& val) { - __cm = val; - _disc = Cubit::e_3rd; - } - const Cubit::Many& cm() const { return __cm; } - Cubit::Many& cm() { return __cm; } - - friend NCostream& operator<<(NCostream&, const oneof& ); - friend NCistream& operator>>(NCistream&, oneof& ); - friend ostream& operator<<(ostream&, const oneof&); - inline friend istream& operator>>(istream& strm, oneof& obj) { - NCistream istrm(strm); - strm >> obj; - return strm; - } - }; - - typedef oneof *oneof_ptr; - class oneof_var - { - public: - oneof_var() { _ptr = (oneof*)NULL;} - oneof_var(oneof *ptr) { - _ptr = ptr; - } - oneof_var(const oneof_var& var) { - _ptr = new oneof(*var._ptr); - } - ~oneof_var() { - if (_ptr != (oneof *)NULL) delete _ptr; - } - oneof_var& operator=(oneof *ptr) { - if (_ptr != (oneof *)NULL) delete _ptr; - _ptr = ptr; - return *this; - } - oneof_var& operator=(const oneof_var& var) { - if (_ptr != (oneof *)NULL) delete _ptr; - _ptr = new oneof(*var._ptr); - return *this; - } - oneof *operator->() { return _ptr; } - operator oneof () const { return *_ptr; } - operator oneof& () { return *_ptr; } - inline friend NCostream& operator<<(NCostream& strm, - const oneof_var& var) { - if (var._ptr == (oneof *)NULL) { - throw CORBA::BAD_PARAM(); - } - else - strm << *var._ptr; - return strm; - } - inline friend NCistream& operator>>(NCistream& strm, - oneof_var& var) { - if ( ! var._ptr) - var._ptr = new oneof; - strm >> *var._ptr; - return strm; - } - private: - oneof *_ptr; - }; - - - virtual Cubit::oneof cube_union(const Cubit::oneof& values); - - virtual void please_exit(); - - inline friend NCistream& operator>>(NCistream& strm, Cubit_ptr& obj) { - CORBA::Object_var _obj(obj); - _obj = CORBA::Object::_read(strm, Cubit::_desc()); - obj = Cubit::_narrow(_obj); - return strm; - } - inline friend ostream& operator<<(ostream& strm, const Cubit_ptr obj) { - strm << (CORBA::Object_ptr)obj; - return strm; - } - inline friend istream& operator>>(istream& strm, Cubit_ptr& obj) { - NCistream istrm(strm); - istrm >> obj; - return strm; - } -}; - - -#endif - diff --git a/TAO/IIOP/test/Orbix/tpr/cubitS.cpp b/TAO/IIOP/test/Orbix/tpr/cubitS.cpp deleted file mode 100644 index d72803fed0c..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/cubitS.cpp +++ /dev/null @@ -1,228 +0,0 @@ -// $Id$ - -#include "cubit.h" - - -#define Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"cube_octet")) { - CORBA::Octet IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_octet~+o{o},>{o},N{}\ -")) - return 1; - CORBA::Octet o; - - IT_r.extractOctet (o); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_octet ( o, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -o\ -", IT_env)) return 1; - IT_r.insertOctet (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_short")) { - CORBA::Short IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_short~+s{s},>{s},N{}\ -")) - return 1; - CORBA::Short s; - - IT_r >> s; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_short ( s, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -s\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_long")) { - CORBA::Long IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_long~+l{l},>{l},N{}\ -")) - return 1; - CORBA::Long l; - - IT_r >> l; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_long ( l, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -l\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_struct")) { - Cubit::Many IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_struct~+values{R~Cubit::Many~o{o},l{l},s{s}},>{R~Cubit::Many~o{o},l{l},s{s}},N{}\ -")) - return 1; - Cubit::Many values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_struct ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -R~Cubit::Many~o{o},l{l},s{s}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_union")) { - Cubit::oneof IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - IT_r.tcPreAssert ( -"\ -Ro~cube_union~+values{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},>{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,\ -"); - if (!IT_r.tcAssert ("\ -e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},N{}\ -")) - return 1; - Cubit::oneof values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_union ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"please_exit")) { - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~please_exit~>{v},O{}\ -")) - return 1; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - ((Cubit*)IT_pp)->please_exit (IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - IT_r.replyNoResults (CORBA::Flags(CORBA::INV_NO_RESPONSE),IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#include "cubitC.cpp" - diff --git a/TAO/IIOP/test/Orbix/tpr/cubitS.h b/TAO/IIOP/test/Orbix/tpr/cubitS.h deleted file mode 100644 index 3ca717e2b49..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/cubitS.h +++ /dev/null @@ -1,120 +0,0 @@ -// $Id$ - -#ifndef _cubitS_h -#define _cubitS_h - -#include "cubitC.h" - -/************************************************************************/ -/* */ -/* This file is automatically generated by ORBeline IDL compiler */ -/* Do not modify this file. */ -/* */ -/* ORBeline (c) is copyrighted by PostModern Computing, Inc. */ -/* */ -/* The generated code conforms to OMG's IDL C++ mapping as */ -/* specified in OMG Document Number: 94-9-14. */ -/* */ -/************************************************************************/ - -class _sk_Cubit : public Cubit -{ - protected: - _sk_Cubit(const char *object_name = (const char *)NULL); - _sk_Cubit(const char *service_name, const CORBA::ReferenceData& data); - virtual ~_sk_Cubit() {} - public: - static const CORBA::TypeInfo _skel_info; - - // The following operations need to be implemented by the server. - virtual CORBA::Octet cube_octet(CORBA::Octet o) = 0; - virtual CORBA::Short cube_short(CORBA::Short s) = 0; - virtual CORBA::Long cube_long(CORBA::Long l) = 0; - virtual Cubit::Many cube_struct(const Cubit::Many& values) = 0; - virtual Cubit::oneof cube_union(const Cubit::oneof& values) = 0; - virtual void please_exit() = 0; - - // Skeleton Operations implemented automatically - - static void _cube_octet(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_short(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_long(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_struct(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_union(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _please_exit(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - -}; -template -class _tie_Cubit : public Cubit -{ - public: - _tie_Cubit(T& t, const char *obj_name=(char*)NULL) : - Cubit(obj_name), - _ref(t) { - _object_name(obj_name); - } - _tie_Cubit(T& t, const char *service_name, - const CORBA::ReferenceData& id) - :_ref(t) { - _service(service_name, id); - } - ~_tie_Cubit() {} - CORBA::Octet cube_octet(CORBA::Octet o) { - return _ref.cube_octet( - o); - } - CORBA::Short cube_short(CORBA::Short s) { - return _ref.cube_short( - s); - } - CORBA::Long cube_long(CORBA::Long l) { - return _ref.cube_long( - l); - } - Cubit::Many cube_struct(const Cubit::Many& values) { - return _ref.cube_struct( - values); - } - Cubit::oneof cube_union(const Cubit::oneof& values) { - return _ref.cube_union( - values); - } - void please_exit() { - _ref.please_exit(); - } - - private: - T& _ref; -}; - -#endif - diff --git a/TAO/IIOP/test/Orbix/tpr/cubit_impl.cpp b/TAO/IIOP/test/Orbix/tpr/cubit_impl.cpp deleted file mode 100644 index e96b6e33dcd..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/cubit_impl.cpp +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -#include "cubit_impl.h" - -CORBA::Octet Cubit_Impl:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Octet) (o * o * o); -} - -CORBA::Short Cubit_Impl:: cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Short) (s * s * s); -} - -CORBA::Long Cubit_Impl:: cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Long) (l * l * l); -} - -Cubit::Many Cubit_Impl:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::Many out_values; - out_values.o = values.o * values.o * values.o; - out_values.s = values.s * values.s * values.s; - out_values.l = values.l * values.l * values.l; - return out_values; -} - -Cubit::oneof Cubit_Impl:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::oneof out_values; - switch (values._d ()) { - case Cubit::e_0th: - out_values.o (values.o () * values.o () * values.o ()); - break; - case Cubit::e_1st: - out_values.s (values.s () * values.s () * values.s ()); - break; - case Cubit::e_2nd: - out_values.l (values.l () * values.l () * values.l ()); - break; - case Cubit::e_3rd: - default: - out_values.cm ().o = values.cm ().o * values.cm ().o * values.cm ().o ; - out_values.cm ().s = values.cm ().s * values.cm ().s * values.cm ().s ; - out_values.cm ().l = values.cm ().l * values.cm ().l * values.cm ().l ; - break; - } - return out_values; -} - -void Cubit_Impl:: please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException) { -} diff --git a/TAO/IIOP/test/Orbix/tpr/cubit_impl.h b/TAO/IIOP/test/Orbix/tpr/cubit_impl.h deleted file mode 100644 index 033aa7f0cb1..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/cubit_impl.h +++ /dev/null @@ -1,29 +0,0 @@ -// $Id$ - - -#ifndef cubit_ih -#define cubit_ih - -#include "cubit.h" - - -#ifdef Cubit_USE_BOA -class Cubit_Impl : public virtual CubitBOAImpl { -#else -class Cubit_Impl { -#endif /* Cubit_USE_BOA */ - -public: - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); -}; - -#ifndef Cubit_USE_BOA -DEF_TIE_Cubit (Cubit_Impl) -#endif /* Cubit_USE_BOA */ - -#endif diff --git a/TAO/IIOP/test/Orbix/tpr/server.cpp b/TAO/IIOP/test/Orbix/tpr/server.cpp deleted file mode 100644 index 527fa13d76e..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/server.cpp +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : tpr_server.cpp -// DESCRIPTION: -// -// Server mainline -// -//**************************************************************************** -#define IT_EX_MACROS - -#include "cubit_impl.h" // server header file - -int -main (int , char**) -{ - -#ifdef Cubit_USE_BOA - Cubit_var cb = new Cubit_Impl; - cout << "Using BOA approach" << endl; -#else - Cubit_var cb = new TIE_Cubit (Cubit_Impl) (new Cubit_Impl); - cout << "Using TIE approach" << endl; -#endif /* Cubit_USE_BOA */ - - // - // Go get some work to do.... - // - IT_TRY { - CORBA::Orbix.impl_is_ready("Cubit", IT_X); - } - IT_CATCHANY { - cout << IT_X << endl; - } - IT_ENDTRY; - - cout << "Cubit server is exiting." << endl; - - - return 0; -} diff --git a/TAO/IIOP/test/Orbix/tpr/tpr.cpp b/TAO/IIOP/test/Orbix/tpr/tpr.cpp deleted file mode 100644 index da78690cc2c..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/tpr.cpp +++ /dev/null @@ -1,28 +0,0 @@ -// $Id$ - -#include "tpr.h" - -void * -worker(void *vp) -{ - ACE_Thread_Control tc (ACE_Thread_Manager::instance ()); - CORBA::Orbix.continueThreadDispatch (*(CORBA::Request *)vp); - return NULL; -} - - -int -tpr_filter::inRequestPreMarshal(CORBA::Request &r, CORBA::Environment&) -{ -// thread_t tid; -// thr_create(NULL, 0, worker, (void *)&r, THR_DETACHED, &tid); - - ACE_Thread_Manager *thr_mgr = ACE_Thread_Manager::instance (); - thr_mgr->spawn (ACE_THR_FUNC (worker), - (void *) &r, - THR_DETACHED); - - return -1; -} - -tpr_filter tpr_dispatcher; diff --git a/TAO/IIOP/test/Orbix/tpr/tpr.h b/TAO/IIOP/test/Orbix/tpr/tpr.h deleted file mode 100644 index b5e8be94cf1..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/tpr.h +++ /dev/null @@ -1,12 +0,0 @@ -// $Id$ - -#include "cubit.h" -#include "ace/Service_Config.h" -#include "ace/Thread_Manager.h" - -// -// Create a thread filter to dispatch incoming calls -// -class tpr_filter : public CORBA::ThreadFilter { - virtual int inRequestPreMarshal(CORBA::Request &, CORBA::Environment&); -}; diff --git a/TAO/IIOP/test/Orbix/tps/Makefile b/TAO/IIOP/test/Orbix/tps/Makefile deleted file mode 100644 index 69701ba3b63..00000000000 --- a/TAO/IIOP/test/Orbix/tps/Makefile +++ /dev/null @@ -1,349 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitS.cpp cubit_impl.cpp server.cpp tps.cpp - -SVR_OBJS = cubitS.o cubit_impl.o server.o tps.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -# Remove -DCubit_USE_BOA from below to use the TIE approach - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -DCubit_USE_BOA -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: server - -server: $(addprefix $(VDIR),$(SVR_OBJS)) - $(LINK.cc) -o server $(addprefix $(VDIR),$(SVR_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITSRV) $(VLDLIBS) $(POSTLINK) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubitS.o .shobj/cubitS.so: cubitS.cpp cubit.h cubitC.cpp -.obj/cubit_impl.o .shobj/cubit_impl.so: cubit_impl.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Message_Queue.h \ - $(ACE_ROOT)/ace/Message_Block.h \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc.i \ - $(ACE_ROOT)/ace/Malloc_T.h \ - $(ACE_ROOT)/ace/Malloc_T.i \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(ACE_ROOT)/ace/Signal.i \ - $(ACE_ROOT)/ace/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(ACE_ROOT)/ace/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(ACE_ROOT)/ace/Service_Config.i \ - $(ACE_ROOT)/ace/Reactor.h \ - $(ACE_ROOT)/ace/Handle_Set.h \ - $(ACE_ROOT)/ace/Handle_Set.i \ - $(ACE_ROOT)/ace/Timer_Queue.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Token.h \ - $(ACE_ROOT)/ace/Token.i \ - $(ACE_ROOT)/ace/Pipe.h \ - $(ACE_ROOT)/ace/Pipe.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(ACE_ROOT)/ace/IPC_SAP.h \ - $(ACE_ROOT)/ace/IPC_SAP.i \ - $(ACE_ROOT)/ace/SOCK.i \ - $(ACE_ROOT)/ace/SOCK_IO.i \ - $(ACE_ROOT)/ace/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Proactor.h \ - $(ACE_ROOT)/ace/Asynch_IO.h \ - $(ACE_ROOT)/ace/Timer_List.h \ - $(ACE_ROOT)/ace/Timer_List_T.h \ - $(ACE_ROOT)/ace/Timer_Heap.h \ - $(ACE_ROOT)/ace/Timer_Heap_T.h \ - $(ACE_ROOT)/ace/Timer_Wheel.h \ - $(ACE_ROOT)/ace/Timer_Wheel_T.h \ - $(ACE_ROOT)/ace/ReactorEx.h \ - $(ACE_ROOT)/ace/ReactorEx.i \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/Task_T.i -.obj/server.o .shobj/server.so: server.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Message_Queue.h \ - $(ACE_ROOT)/ace/Message_Block.h \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc.i \ - $(ACE_ROOT)/ace/Malloc_T.h \ - $(ACE_ROOT)/ace/Malloc_T.i \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(ACE_ROOT)/ace/Signal.i \ - $(ACE_ROOT)/ace/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(ACE_ROOT)/ace/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(ACE_ROOT)/ace/Service_Config.i \ - $(ACE_ROOT)/ace/Reactor.h \ - $(ACE_ROOT)/ace/Handle_Set.h \ - $(ACE_ROOT)/ace/Handle_Set.i \ - $(ACE_ROOT)/ace/Timer_Queue.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Token.h \ - $(ACE_ROOT)/ace/Token.i \ - $(ACE_ROOT)/ace/Pipe.h \ - $(ACE_ROOT)/ace/Pipe.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(ACE_ROOT)/ace/IPC_SAP.h \ - $(ACE_ROOT)/ace/IPC_SAP.i \ - $(ACE_ROOT)/ace/SOCK.i \ - $(ACE_ROOT)/ace/SOCK_IO.i \ - $(ACE_ROOT)/ace/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Proactor.h \ - $(ACE_ROOT)/ace/Asynch_IO.h \ - $(ACE_ROOT)/ace/Timer_List.h \ - $(ACE_ROOT)/ace/Timer_List_T.h \ - $(ACE_ROOT)/ace/Timer_Heap.h \ - $(ACE_ROOT)/ace/Timer_Heap_T.h \ - $(ACE_ROOT)/ace/Timer_Wheel.h \ - $(ACE_ROOT)/ace/Timer_Wheel_T.h \ - $(ACE_ROOT)/ace/ReactorEx.h \ - $(ACE_ROOT)/ace/ReactorEx.i \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/Task_T.i -.obj/tps.o .shobj/tps.so: tps.cpp tps.h cubit.h cubit_impl.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Message_Queue.h \ - $(ACE_ROOT)/ace/Message_Block.h \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc.i \ - $(ACE_ROOT)/ace/Malloc_T.h \ - $(ACE_ROOT)/ace/Malloc_T.i \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(ACE_ROOT)/ace/Signal.i \ - $(ACE_ROOT)/ace/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(ACE_ROOT)/ace/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(ACE_ROOT)/ace/Service_Config.i \ - $(ACE_ROOT)/ace/Reactor.h \ - $(ACE_ROOT)/ace/Handle_Set.h \ - $(ACE_ROOT)/ace/Handle_Set.i \ - $(ACE_ROOT)/ace/Timer_Queue.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Token.h \ - $(ACE_ROOT)/ace/Token.i \ - $(ACE_ROOT)/ace/Pipe.h \ - $(ACE_ROOT)/ace/Pipe.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(ACE_ROOT)/ace/IPC_SAP.h \ - $(ACE_ROOT)/ace/IPC_SAP.i \ - $(ACE_ROOT)/ace/SOCK.i \ - $(ACE_ROOT)/ace/SOCK_IO.i \ - $(ACE_ROOT)/ace/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Proactor.h \ - $(ACE_ROOT)/ace/Asynch_IO.h \ - $(ACE_ROOT)/ace/Timer_List.h \ - $(ACE_ROOT)/ace/Timer_List_T.h \ - $(ACE_ROOT)/ace/Timer_Heap.h \ - $(ACE_ROOT)/ace/Timer_Heap_T.h \ - $(ACE_ROOT)/ace/Timer_Wheel.h \ - $(ACE_ROOT)/ace/Timer_Wheel_T.h \ - $(ACE_ROOT)/ace/ReactorEx.h \ - $(ACE_ROOT)/ace/ReactorEx.i \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/Task_T.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/test/Orbix/tps/cubit.h b/TAO/IIOP/test/Orbix/tps/cubit.h deleted file mode 100644 index 3a2dd546608..00000000000 --- a/TAO/IIOP/test/Orbix/tps/cubit.h +++ /dev/null @@ -1,1113 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include - -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#ifndef _Cubit_Factory_defined -#define _Cubit_Factory_defined -class Cubit_Factory_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_Factory_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch () {} - - Cubit_Factory_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit_Factory; - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - - -#ifndef Cubit_FactoryForwH -#define Cubit_FactoryForwH -CORBA::ObjectRef Cubit_Factory_getBase (void *); -void Cubit_Factory_release (Cubit_Factory *, CORBA::Environment &IT_env); -void Cubit_Factory_release (Cubit_Factory_ptr); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr, CORBA::Environment &IT_env); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr ); -Cubit_Factory_ptr Cubit_Factory_nil (CORBA::Environment &IT_env); -Cubit_Factory_ptr Cubit_Factory_nil (); -#endif -#define Cubit_Factory_IMPL "Cubit_Factory" - - -class Cubit_Factory; - -typedef Cubit_Factory Cubit_FactoryProxy; -#define Cubit_Factory_IR "Cubit_Factory" -#define Cubit_Factory_IMPL "Cubit_Factory" - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - -class Cubit_Factory: public virtual CORBA::Object { -public: - Cubit_Factory (char *IT_OR); - Cubit_Factory (ObjectReference *IT_OR); - Cubit_Factory () : CORBA::Object (1) {} -protected: - Cubit_Factory_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_Factory_ptr _duplicate( - Cubit_Factory_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit_Factory* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _bind (CORBA::Environment &IT_env); - static Cubit_Factory* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_Factory_ptr) CORBA::OBJECT_NIL;} - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef Cubit_FactoryVarH -#define Cubit_FactoryVarH - -#ifndef Cubit_FactoryvPtr -#define Cubit_FactoryvPtr -typedef Cubit_Factory* Cubit_Factory_vPtr; -typedef const Cubit_Factory* Cubit_Factory_cvPtr; -#endif - -class Cubit_Factory_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_Factory_var &IT_s) { - { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_Factory_var (const Cubit_Factory_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_Factory_var () { - _ptr = Cubit_Factory_nil (); - } - - Cubit_Factory_var (Cubit_Factory *IT_p) { - _ptr = IT_p; - } - - Cubit_Factory_var &operator= (Cubit_Factory *IT_p) { - Cubit_Factory_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_Factory_var &operator= (const Cubit_Factory_var &IT_s) { - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_Factory_var () { - Cubit_Factory_release (_ptr); - } - - Cubit_Factory* operator-> () { - return _ptr; - } - - operator Cubit_Factory_cvPtr () const { return _ptr;} - operator Cubit_Factory_vPtr& () { return _ptr;} - - protected: - Cubit_Factory *_ptr; - private: - Cubit_Factory_var &operator= (const CORBA::_var &IT_s); - Cubit_Factory_var (const CORBA::_var &IT_s); - Cubit_Factory_var &operator= (const CORBA::_mgr &IT_s); - Cubit_Factory_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_Factory_var (const CORBA::_mgr &IT_s); - Cubit_Factory_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef Cubit_FactoryMgrH -#define Cubit_FactoryMgrH - -class Cubit_Factory_mgr : public CORBA::_mgr -{ - public: - - Cubit_Factory_mgr () { - _ptr = Cubit_Factory_nil (); - _release = 1; - } - - Cubit_Factory_mgr (const Cubit_Factory_mgr &IT_s) { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_Factory_mgr &operator= (Cubit_Factory *IT_p) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (const Cubit_Factory_mgr &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (Cubit_Factory_var &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_Factory_mgr () { - if (_release) - Cubit_Factory_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit_Factory* () const { - return (Cubit_Factory*) _ptr; - } - - Cubit_Factory_ptr operator-> () const { - return _ptr; - } - - Cubit_Factory *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_Factory_mgr Cubit_Factory_mgr_IT_const; -#endif - -#ifndef Cubit_FactorySeqElemH -#define Cubit_FactorySeqElemH - -class Cubit_Factory_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_Factory_SeqElem (Cubit_Factory_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_Factory_SeqElem &operator= (Cubit_Factory_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_Factory_SeqElem &operator= (const Cubit_Factory_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = Cubit_Factory_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_Factory_ptr () const { - return _ptr ? (Cubit_Factory_ptr) (*_ptr) : Cubit_Factory_nil(); - } - - Cubit_Factory_ptr operator->() const { return *_ptr;} - - protected: - Cubit_Factory_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit_Factory(X) Cubit_Factory##X - -#define DEF_TIE_Cubit_Factory(X) \ - class Cubit_Factory##X : public virtual Cubit_Factory { \ - X* m_obj; \ - public: \ - \ - \ - Cubit_Factory##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit_Factory(), m_obj(objp) { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,m,l,Cubit_Factory_IR,m_obj); \ - } \ - Cubit_Factory##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit_Factory() { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,IT_m,Cubit_Factory_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit_Factory##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit_Factory \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - - - - -class Cubit_FactoryProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - Cubit_FactoryProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_Factory_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern Cubit_FactoryProxyFactoryClass Cubit_FactoryProxyFactory; - -class Cubit_FactoryBOAImpl : public virtual Cubit_Factory { -public: - Cubit_FactoryBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_Factory_IR)) - m_pptr = new Cubit_Factory_dispatch ( (Cubit_Factory*)this, - (CORBA::Object*)this, m, l, Cubit_Factory_IR, this); -} - - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/test/Orbix/tps/cubit.idl b/TAO/IIOP/test/Orbix/tps/cubit.idl deleted file mode 100644 index 41309e997ea..00000000000 --- a/TAO/IIOP/test/Orbix/tps/cubit.idl +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - - interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); - }; - - - interface Cubit_Factory { - Cubit create_cubit (in string name); - }; - diff --git a/TAO/IIOP/test/Orbix/tps/cubitC.cpp b/TAO/IIOP/test/Orbix/tps/cubitC.cpp deleted file mode 100644 index d19c387bcd2..00000000000 --- a/TAO/IIOP/test/Orbix/tps/cubitC.cpp +++ /dev/null @@ -1,712 +0,0 @@ -// $Id$ - - - -#include "cubit.h" - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - -Cubit_Factory::Cubit_Factory (char *IT_OR) { - m_pptr = new Cubit_Factory_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit_Factory::Cubit_Factory (ObjectReference *IT_OR) { - m_pptr = new Cubit_Factory_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef Cubit_FactoryForwC -#define Cubit_FactoryForwC -CORBA::ObjectRef Cubit_Factory_getBase(void *IT_p){ - return (Cubit_Factory*) IT_p;} - -void Cubit_Factory_release (Cubit_Factory_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_Factory_release (Cubit_Factory_ptr IT_p) { - Cubit_Factory_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_Factory_ptr Cubit_Factory_nil (CORBA::Environment &) { - return Cubit_Factory:: _nil ();} - -Cubit_Factory_ptr Cubit_Factory_nil () { - return Cubit_Factory_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_Factory_ptr Cubit_Factory_duplicate (Cubit_Factory_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit_Factory::_duplicate(IT_p, IT_env)); } -Cubit_Factory_ptr Cubit_Factory_duplicate (Cubit_Factory_ptr IT_p) { - return Cubit_Factory_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_Factory_ptr Cubit_Factory::_duplicate(Cubit_Factory_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_Factory_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit_Factory* Cubit_Factory:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit_Factory*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_Factory_IMPL, Cubit_Factory_IR); -} - - - -Cubit_Factory* Cubit_Factory:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit_Factory* Cubit_Factory:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit_Factory* Cubit_Factory::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit_Factory:: _nil(); - } - - Cubit_Factory* IT_p = (Cubit_Factory*)CORBA::Object::_castDown (IT_obj, Cubit_Factory_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - -void* Cubit_FactoryProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -void* Cubit_FactoryProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -void* Cubit_FactoryProxyFactoryClass::New2 () { - return new class Cubit_Factory((char*)0);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::New2Object () { - return new class Cubit_Factory((char*)0);} - -void* Cubit_FactoryProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_Factory_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit_Factory*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* Cubit_FactoryProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit_Factory*)IT_p)->_pptr ();} - -void Cubit_FactoryProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_Factory_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -Cubit_FactoryProxyFactoryClass Cubit_FactoryProxyFactory(1); - -Cubit_ptr Cubit_Factory:: create_cubit (const char * name, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return new Cubit; - } - CORBA::Request IT_r (this, "create_cubit",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.encodeStringOp (name); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit_ptr IT_result; - IT_result = (Cubit*) IT_r.decodeObjRef (Cubit_IR); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return new Cubit; -} - - - - - -#ifndef Cubit_Factory_dispatch_impl - -unsigned char Cubit_Factory_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit_Factory"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/test/Orbix/tps/cubitS.cpp b/TAO/IIOP/test/Orbix/tps/cubitS.cpp deleted file mode 100644 index e4637a23680..00000000000 --- a/TAO/IIOP/test/Orbix/tps/cubitS.cpp +++ /dev/null @@ -1,284 +0,0 @@ -// $Id$ - - - -#include "cubit.h" - - -#define Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"cube_octet")) { - CORBA::Octet IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_octet~+o{o},>{o},N{}\ -")) - return 1; - CORBA::Octet o; - - IT_r.extractOctet (o); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_octet ( o, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -o\ -", IT_env)) return 1; - IT_r.insertOctet (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_short")) { - CORBA::Short IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_short~+s{s},>{s},N{}\ -")) - return 1; - CORBA::Short s; - - IT_r >> s; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_short ( s, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -s\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_long")) { - CORBA::Long IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_long~+l{l},>{l},N{}\ -")) - return 1; - CORBA::Long l; - - IT_r >> l; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_long ( l, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -l\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_struct")) { - Cubit::Many IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_struct~+values{R~Cubit::Many~o{o},l{l},s{s}},>{R~Cubit::Many~o{o},l{l},s{s}},N{}\ -")) - return 1; - Cubit::Many values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_struct ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -R~Cubit::Many~o{o},l{l},s{s}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_union")) { - Cubit::oneof IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - IT_r.tcPreAssert ( -"\ -Ro~cube_union~+values{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},>{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,\ -"); - if (!IT_r.tcAssert ("\ -e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},N{}\ -")) - return 1; - Cubit::oneof values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_union ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"please_exit")) { - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~please_exit~>{v},O{}\ -")) - return 1; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - ((Cubit*)IT_pp)->please_exit (IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - IT_r.replyNoResults (CORBA::Flags(CORBA::INV_NO_RESPONSE),IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#define Cubit_Factory_dispatch_impl - -unsigned char Cubit_Factory_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"create_cubit")) { - Cubit_ptr IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~create_cubit~+name{0},>{O~Cubit},N{}\ -")) - return 1; - char * name; - - IT_r.decodeStringOp(name); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit_Factory*)IT_pp)->create_cubit ( name, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - CORBA::string_free (name); - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -O~Cubit\ -", IT_env)) return 1; - { - CORBA::Object* IT_l1 = (CORBA::Object*) IT_result; - IT_r << IT_l1; - } - if (IT_result) Cubit_release (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#include "cubitC.cpp" - diff --git a/TAO/IIOP/test/Orbix/tps/cubit_impl.cpp b/TAO/IIOP/test/Orbix/tps/cubit_impl.cpp deleted file mode 100644 index 02c30756efc..00000000000 --- a/TAO/IIOP/test/Orbix/tps/cubit_impl.cpp +++ /dev/null @@ -1,83 +0,0 @@ -// $Id$ - -#include "cubit_impl.h" - -CORBA::Octet Cubit_Impl:: cube_octet (CORBA::Octet o, CORBA::Environment &) throw (CORBA::SystemException) { - return (CORBA::Octet) (o * o * o); -} - -CORBA::Short Cubit_Impl:: cube_short (CORBA::Short s, CORBA::Environment &) throw (CORBA::SystemException) { - return (CORBA::Short) (s * s * s); -} - -CORBA::Long Cubit_Impl:: cube_long (CORBA::Long l, CORBA::Environment &) throw (CORBA::SystemException) { - return (CORBA::Long) (l * l * l); -} - -Cubit::Many Cubit_Impl:: cube_struct (const Cubit::Many& values, CORBA::Environment &) throw (CORBA::SystemException) { - Cubit::Many out_values; - out_values.o = values.o * values.o * values.o; - out_values.s = values.s * values.s * values.s; - out_values.l = values.l * values.l * values.l; - return out_values; -} - -Cubit::oneof Cubit_Impl:: cube_union (const Cubit::oneof& values, CORBA::Environment &) throw (CORBA::SystemException) { - Cubit::oneof out_values; - switch (values._d ()) { - case Cubit::e_0th: - out_values.o (values.o () * values.o () * values.o ()); - break; - case Cubit::e_1st: - out_values.s (values.s () * values.s () * values.s ()); - break; - case Cubit::e_2nd: - out_values.l (values.l () * values.l () * values.l ()); - break; - case Cubit::e_3rd: - default: - out_values.cm ().o = values.cm ().o * values.cm ().o * values.cm ().o ; - out_values.cm ().s = values.cm ().s * values.cm ().s * values.cm ().s ; - out_values.cm ().l = values.cm ().l * values.cm ().l * values.cm ().l ; - break; - } - return out_values; -} - -void Cubit_Impl:: please_exit (CORBA::Environment &) throw (CORBA::SystemException) { -} - -Cubit_ptr Cubit_Factory_Impl:: create_cubit (const char * name, CORBA::Environment &) throw (CORBA::SystemException) { - cerr << "Creating Cubit for " << name << endl; - -#ifdef Cubit_USE_BOA - Cubit_Impl_Task *cubit = new Cubit_Impl_Task (); -#else - Cubit_Impl_Task *cubit = new TIE_Cubit (Cubit_Impl) (new Cubit_Impl_Task); -#endif - Cubit::_duplicate ((Cubit *)cubit); - cubit->activate (1); - return (Cubit *) cubit; -} - -int -Cubit_Impl_Task::svc (void) -{ - while (1) - { - // Dequeue message - ACE_Message_Block *mb; - this->msg_queue ()->dequeue_head (mb); - CORBA::Request *vp = (CORBA::Request *) mb->base (); - mb->release (); - // Hand it off to Orbix - CORBA::Orbix.continueThreadDispatch (*vp); - } - return 0; -} - -void * -Cubit_Impl_Task::_deref (void) -{ - return this; -} diff --git a/TAO/IIOP/test/Orbix/tps/cubit_impl.h b/TAO/IIOP/test/Orbix/tps/cubit_impl.h deleted file mode 100644 index 0fea9857af3..00000000000 --- a/TAO/IIOP/test/Orbix/tps/cubit_impl.h +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - - -#ifndef cubit_ih -#define cubit_ih - -#include "cubit.h" -#include "ace/Task.h" - -#ifdef Cubit_USE_BOA -class Cubit_Impl : public virtual CubitBOAImpl { -#else -class Cubit_Impl { -#endif /* Cubit_USE_BOA */ -public: - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - -}; - -#ifdef Cubit_USE_BOA -class Cubit_Factory_Impl : public virtual Cubit_FactoryBOAImpl { -#else -class Cubit_Factory_Impl { -#endif - -public: - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); -}; - -class Cubit_Impl_Task : public virtual Cubit_Impl, public virtual ACE_Task { -public: - // For ACE_Task - int svc (void); - // for narrowing - virtual void *_deref (); -}; - -#ifndef Cubit_USE_BOA -DEF_TIE_Cubit (Cubit_Impl) -DEF_TIE_Cubit_Factory (Cubit_Factory_Impl) -#endif /* Cubit_USE_BOA */ - -#endif diff --git a/TAO/IIOP/test/Orbix/tps/server.cpp b/TAO/IIOP/test/Orbix/tps/server.cpp deleted file mode 100644 index c90a1603efa..00000000000 --- a/TAO/IIOP/test/Orbix/tps/server.cpp +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : tpr_server.cpp -// DESCRIPTION: -// -// Server mainline -// -//**************************************************************************** -#define IT_EX_MACROS - -#include "cubit_impl.h" // server header file - -int -main (int , char**) -{ - -#ifdef Cubit_USE_BOA - Cubit_Factory_var cf = new Cubit_Factory_Impl; - cout << "Using BOA approach" << endl; -#else - Cubit_Factory_var cf = new TIE_Cubit_Factory (Cubit_Factory) (new Cubit_Factory); - cout << "Using TIE approach" << endl; -#endif /* Cubit_USE_BOA */ - - // - // Go get some work to do.... - // - IT_TRY { - CORBA::Orbix.impl_is_ready("Cubit_Factory", IT_X); - } - IT_CATCHANY { - cout << IT_X << endl; - } - IT_ENDTRY; - - cout << "Cubit server is exiting." << endl; - - - return 0; -} diff --git a/TAO/IIOP/test/Orbix/tps/tps.cpp b/TAO/IIOP/test/Orbix/tps/tps.cpp deleted file mode 100644 index 19a86b75ffd..00000000000 --- a/TAO/IIOP/test/Orbix/tps/tps.cpp +++ /dev/null @@ -1,28 +0,0 @@ -// $Id$ - -#include "tps.h" - -int -TPS_Filter::inRequestPreMarshal(CORBA::Request &r, CORBA::Environment& env) -{ - // Get target - CORBA::Object_ptr obj = r.target (); - Cubit * cb = Cubit::_narrow (obj, env); - - if (env) // Not for our object!! - return 1; // continue in the same thread - - // Enqueue the request - Cubit_Impl_Task *ct; - if (CORBA::is_nil (cb)) - return 1; - ct = (Cubit_Impl_Task *) DEREF(cb); - if (ct) { - ACE_Message_Block *mb = new ACE_Message_Block ( (char *) (&r)); - ct->msg_queue ()->enqueue (mb); - } - // Done - return -1; -} - -TPS_Filter tps_filter; diff --git a/TAO/IIOP/test/Orbix/tps/tps.h b/TAO/IIOP/test/Orbix/tps/tps.h deleted file mode 100644 index 362c9ed4e91..00000000000 --- a/TAO/IIOP/test/Orbix/tps/tps.h +++ /dev/null @@ -1,13 +0,0 @@ -// $Id$ - -#include "cubit.h" -#include "cubit_impl.h" -#include "ace/Service_Config.h" -#include "ace/Thread_Manager.h" -#include "ace/Task.h" - -class TPS_Filter : public ACE_Task, public CORBA::ThreadFilter -{ -public: - virtual int inRequestPreMarshal(CORBA::Request &, CORBA::Environment&); -}; diff --git a/TAO/IIOP/test/clnt.cpp b/TAO/IIOP/test/clnt.cpp deleted file mode 100644 index 3e78e8be2f1..00000000000 --- a/TAO/IIOP/test/clnt.cpp +++ /dev/null @@ -1,510 +0,0 @@ -// $Id$ - -// @(#)clnt.cpp 1.2 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: Simple "cube" client, calling hand-crafted stubs. -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -#include -//#include - -#if unix -# include -# include - -#elif defined (VXWORKS) -# include -# include - -#else // windows - -#endif // unix - -#include "cubitC.h" - -#include - - -#if !defined (_WIN32) -extern char *optarg; // missing on some platforms -#endif - -inline int func (unsigned i) { return i - 117; } - -extern void -print_exception (const CORBA_Exception *, const char *, FILE *f=stdout); - - -// -// forward declarations -// -static void cube_union_stub(unsigned, unsigned&, unsigned&, - CORBA_Object_ptr, CORBA_Environment &); - -static void cube_union_dii(unsigned &, unsigned &, - CORBA_Object_ptr, CORBA_Environment &); - -// Global variables -const char* TAO_arg_ior = 0; -unsigned loop_count = 1; -int exit_later = 0; - -// = TITLE -// Parses the command line arguments and returns an error status -// -// = DESCRIPTION -// This method parses the command line arguments -int parse_args(int argc, char *argv[]) -{ - ACE_Get_Opt opts (argc, argv, "dn:O:x"); - int c; - - while ((c = opts ()) != -1) - switch (c) { - - case 'd': // debug flag - TAO_debug_level++; - continue; - - case 'n': // loop count - loop_count = (unsigned) ACE_OS::atoi (opts.optarg); - continue; - - case 'O': // stringified objref - { - TAO_arg_ior = ACE_OS::strdup(opts.optarg); - } - continue; - - case 'x': - exit_later++; - continue; - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-n loopcount]" - " [-O objref]" - " [-x]" - "\n", argv [0] - ); - return 1; - } - - return 0; // Indicates successful parsing of command line -} - -int -main (int argc, char *argv[]) -{ - CORBA_ORB_ptr orb_ptr; - CORBA_Object_ptr objref = CORBA_Object::_nil(); - CORBA_Environment env; - - orb_ptr = CORBA_ORB_init(argc, argv, "internet", env); - if (env.exception() != 0) - { - print_exception(env.exception(), "ORB initialization"); - return 1; - } - - // - // Parse command line and verify parameters. - // - parse_args(argc, argv); - - if (TAO_arg_ior == 0) - ACE_ERROR_RETURN((LM_ERROR, "%s: must specify an object reference using -O \n", argv[0]), 1); - - objref = orb_ptr->string_to_object ((CORBA_String)TAO_arg_ior, env); - - ACE_OS::free((void*)TAO_arg_ior); - TAO_arg_ior = 0; - - if (env.exception () != 0) - { - print_exception (env.exception (), "string2object"); - return 1; - } - - if (CORBA_is_nil (objref) == CORBA_B_TRUE) - ACE_ERROR_RETURN((LM_ERROR, "%s: must identify non-null target objref\n", argv [0]), 1); - - // Narrow the CORBA_Object reference to the stub object, checking - // the type along the way using _is_a - Cubit_ptr aCubit = Cubit::_narrow(objref); - if (aCubit == 0) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to narrow object reference to a Cubit_ptr.\n"), 1); - - // - // Make the calls in a loop. - // - unsigned i; - unsigned call_count, error_count; - - call_count = 0; - error_count = 0; - - ACE_Time_Value before, after; - - before = ACE_OS::gettimeofday(); - - for (i = 0; i < loop_count; i++) - { - // - // Cube an octet. - // - CORBA_Octet arg_octet, ret_octet; - - call_count++; - ret_octet = aCubit->Cubit_cube_octet (arg_octet = func (i), env); - if (env.exception () != 0) - { - print_exception (env.exception (), "from cube_octet"); - error_count++; - } - else - { - dmsg2 ("cube octet: %d --> %d\n", arg_octet, ret_octet); - arg_octet = arg_octet * arg_octet * arg_octet; - if (arg_octet != ret_octet) { - ACE_OS::printf ("** cube_octet(%d) ERROR (--> %d)\n", - (CORBA_Octet) func (i), ret_octet); - error_count++; - } - } - - // - // Cube a short. - // - CORBA_Short arg_short, ret_short; - - call_count++; - ret_short = aCubit->Cubit_cube_short (arg_short = func (i), env); - if (env.exception () != 0) - { - print_exception (env.exception (), "from cube_short"); - error_count++; - } - else - { - dmsg2 ("cube short: %d --> %d\n", arg_short, ret_short); - arg_short = arg_short * arg_short * arg_short; - if (arg_short != ret_short) - { - ACE_OS::printf ("** cube_short(%d) ERROR (--> %d)\n", - (CORBA_Short) func (i), ret_short); - error_count++; - } - } - - // - // Cube a long. - // - CORBA_Long arg_long, ret_long; - - call_count++; - ret_long = aCubit->Cubit_cube_long (arg_long = func (i), env); - if (env.exception () != 0) - { - print_exception (env.exception (), "from cube_long"); - error_count++; - } - else - { - dmsg2 ("cube long: %d --> %d\n", arg_long, ret_long); - arg_long = arg_long * arg_long * arg_long; - if (arg_long != ret_long) { - ACE_OS::printf ("** cube_long(%ld) ERROR (--> %ld)\n", - (CORBA_Long) func (i), ret_long); - error_count++; - } - } - - // - // Cube a "struct" ... - // - Cubit_Many arg_struct, *ret_struct; - - call_count++; - - arg_struct.l = func (i); - arg_struct.s = func (i); - arg_struct.o = func (i); - - ret_struct = aCubit->Cubit_cube_struct (arg_struct, env); - if (env.exception () != 0) - { - print_exception (env.exception (), "from cube_struct"); - error_count++; - } - else - { - dmsg ("cube struct ..."); - arg_struct.l = arg_struct.l * arg_struct.l * arg_struct.l; - arg_struct.s = arg_struct.s * arg_struct.s * arg_struct.s; - arg_struct.o = arg_struct.o * arg_struct.o * arg_struct.o; - - if (arg_struct.l != ret_struct->l - || arg_struct.s != ret_struct->s - || arg_struct.o != ret_struct->o) - { - ACE_OS::printf ("** cube_struct ERROR\n"); - error_count++; - } - delete ret_struct; - } - - } - - after = ACE_OS::gettimeofday(); - - if (call_count > 0) - { - if (error_count == 0) - { - ACE_Time_Value diff = after - before; - unsigned long us = diff.sec() * 1000 * 1000 + diff.usec(); - - us /= call_count; - - if (us > 0) - ACE_OS::printf ("cube average call ACE_OS::time\t= %ld.%.03ldms, \t" - "%ld calls/second\n", - us / 1000, us % 1000, - 1000000L / us); - } - - ACE_OS::printf ("%d calls, %d errors\n", call_count, error_count); - } - - // - // Simple test for DII: call "cube_struct". (It's not timed - // since the copious mallocation of DII would bias numbers against - // typical stub-based calls.) - // - do { - // - // Create the request ... - // - CORBA_Request_ptr req; - - req = objref->_request ((const CORBA_String) "cube_struct", env); - if (env.exception () != 0) { - print_exception (env.exception (), "DII request create"); - break; - } - - // - // ... initialise the argument list and result ... - // - Cubit_Many arg, *result; - - arg.o = 3; arg.l = 5; arg.s = -7; - - CORBA_Any tmp_arg (TC_Cubit_Many, &arg, CORBA_B_FALSE); - - req->arguments ()->add_value (0, tmp_arg, CORBA_ARG_IN, env); - if (env.exception () != 0) { - print_exception (env.exception (), "DII request arg add"); - CORBA_release (req); - break; - } - - req->result ()->value () - ->replace (TC_Cubit_Many, 0, CORBA_B_TRUE, env); - if (env.exception () != 0) { - print_exception (env.exception (), "DII request result type"); - CORBA_release (req); - break; - } - - // - // Make the invocation, verify the result - // - req->invoke (); - if (req->env ()->exception () != 0) { - print_exception (req->env ()->exception (), "DII invoke"); - CORBA_release (req); - break; - } - - result = (Cubit_Many *) req->result ()->value ()->value (); - - if (result->o != 27 || result->l != 125 || result->s != -343) - ACE_OS::fprintf (stderr, "DII cube_struct -- bad results\n"); - else - dmsg ("DII cube_struct ... success!!"); - - CORBA_release (req); - - } while (0); - - // - // Two more tests, using the "cube_union" function - // - cube_union_dii(call_count, error_count, objref, env); - if (env.exception () != 0) - error_count++; - - cube_union_stub(i, call_count, error_count, objref, env); - if (env.exception () != 0) - error_count++; - - if (exit_later) { - aCubit->Cubit_please_exit (env); - dexc (env, "server, please ACE_OS::exit"); - } - - CORBA_release (objref); - - return (error_count == 0) ? 0 : 1; -} - - -static void -cube_union_stub(unsigned i, - unsigned &call_count, - unsigned &error_count, - CORBA_Object_ptr objref, - CORBA_Environment &env) -{ - Cubit_ptr aCubit = Cubit::_narrow(objref); - // - // Cube a "union" ... - // - Cubit_oneof u, *r; - - call_count++; - - u._disc = e_2nd; - u.l = 3; - - r = aCubit->Cubit_cube_union (u, env); - if (env.exception () != 0) { - print_exception (env.exception (), "from cube_union"); - error_count++; - } else { - dmsg ("cube union ..."); - u.l = u.l * u.l * u.l ; - - if (u.l != r->l) { - ACE_OS::printf ("** cube_union ERROR\n"); - error_count++; - } - - delete r; - } - - // - // Cube another "union" which uses the default arm ... - // - call_count++; - - u._disc = e_5th; - u.cm.l = func (i); - u.cm.s = func (i); - u.cm.o = func (i); - - u.cm.l = 7; - u.cm.s = 5; - u.cm.o = 3; - - r = aCubit->Cubit_cube_union (u, env); - if (env.exception () != 0) { - print_exception (env.exception (), "from cube_union"); - error_count++; - } else { - dmsg ("cube union ..."); - u.cm.l = u.cm.l * u.cm.l * u.cm.l; - u.cm.s = u.cm.s * u.cm.s * u.cm.s; - u.cm.o = u.cm.o * u.cm.o * u.cm.o; - - if (u.cm.l != r->cm.l - || u.cm.s != r->cm.s - || u.cm.o != r->cm.o) { - ACE_OS::printf ("** cube_union ERROR\n"); - error_count++; - } - - delete r; - } -} - - -static void -cube_union_dii (unsigned &call_count, - unsigned &error_count, - CORBA_Object_ptr objref, - CORBA_Environment &env) -{ - // - // Create the request ... - // - CORBA_Request_ptr req; - - call_count++; - - req = objref->_request ((const CORBA_String) "cube_union", env); - if (env.exception () != 0) { - error_count++; - - print_exception (env.exception (), "cube_union_dii request create"); - return; - } - - // - // ... initialise the argument list and result ... - // - Cubit_oneof u, *r; - - u._disc = e_3rd; - u.cm.l = 5; - u.cm.s = -7; - u.cm.o = 3; - - CORBA_Any tmp_arg (TC_Cubit_oneof, &u, CORBA_B_FALSE); - - req->arguments ()->add_value (0, tmp_arg, CORBA_ARG_IN, env); - if (env.exception () != 0) { - error_count++; - print_exception (env.exception (), "cube_union_dii request arg add"); - CORBA_release (req); - return; - } - - req->result ()->value ()->replace (TC_Cubit_oneof, 0, CORBA_B_TRUE, env); - if (env.exception () != 0) { - error_count++; - print_exception (env.exception (), "cube_union_dii result type"); - CORBA_release (req); - return; - } - - // - // Make the invocation, verify the result - // - req->invoke (); - if (req->env ()->exception () != 0) { - error_count++; - print_exception (req->env ()->exception (),"cube_union_dii invoke"); - CORBA_release (req); - return; - } - - r = (Cubit_oneof *) req->result ()->value ()->value (); - - if (r->cm.o != 27 || r->cm.l != 125 || r->cm.s != -343) { - error_count++; - ACE_OS::fprintf (stderr, "cube_union_dii -- bad results\n"); - } - else - dmsg ("cube_union_dii ... success!!"); - - CORBA_release (req); -} diff --git a/TAO/IIOP/test/cubit.cpp b/TAO/IIOP/test/cubit.cpp deleted file mode 100644 index 38f23fac373..00000000000 --- a/TAO/IIOP/test/cubit.cpp +++ /dev/null @@ -1,578 +0,0 @@ -// $Id$ - -// @(#)cubit.cpp 1.2 95/09/29 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: hand-written C-style "Cubit" stubs and "skeletons" -// -// NOTE: these "skeletons" are really the methods, using DSI. No real -// ORB would be implemented in this particular way. Several things would -// be more typical of real (static) skeletons: -// -// * Most of the "in" (and much of the "out") parameter data would -// be preallocated on the stack, not heap allocated. (Static -// preallocation doesnt' really work in a multithreaded system, -// and moreover can waste a lot of space.) -// -// * The ORB core wouldn't be told about parameters using heap -// allocated data structures (e.g. NVList). -// -// * Skeletons would need to some kind of "marshal the response NOW" -// API so that stack-allocated "out" values wouldn't become invalid -// up until they were safely marshaled. -// -// * They'd handle exceptions rather than just generating debugging -// messages when they happen. -// -// * Method code would be called by the skeletons, not written as -// part of the "skeleton" itself! -// -// A key part of turning this code into a complete ORB would be to ensure -// that skeletons were always efficient and correct. They might not need -// to be sharable between different implementations of the same OMG-IDL -// object interface, but many ORBs choose to be structured that way. -// - -#include "cubit.h" // for stubs ... -#include // ... and skeletons - -#include // ... and debugging - - -// -// CUBE OCTET -// - -static const TAO_Param_Data Cubit_cube_octet_params [] = { - { _tc_CORBA_Octet, PARAM_RETURN, 0 }, - { _tc_CORBA_Octet, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_octet_calldata = { - "cube_octet", CORBA_B_TRUE, - 2, &Cubit_cube_octet_params [0], - 0, 0 -}; - - -CORBA_Octet -Cubit_cube_octet ( - Cubit_ptr target, - CORBA_Octet o, - CORBA_Environment &env -) -{ - CORBA_Octet retval = 0; - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &Cubit_cube_octet_calldata, - &retval, &o); - data->Release (); - } - return retval; -} - -static void -_cube_octet_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Octet); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_octet, add value"); - - req.params (nvlist, env); - dexc (env, "cube_octet, get params"); - - CORBA_Octet* value = new CORBA_Octet; - - *value = *(CORBA_Octet *)nv->value ()->value (); - // dmsg1 ("cube octet, parameter '%d'", *value); - *value = (CORBA_Octet) ((*value) * (*value) * (*value)); - // dmsg1 ("cube octet, result '%d'", *value); - - CORBA_Any* any = - new CORBA_Any (_tc_CORBA_Octet, value, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "cube_octet, result"); -} - - -// -// CUBE SHORT -// - -static const TAO_Param_Data Cubit_cube_short_params [] = { - { _tc_CORBA_Short, PARAM_RETURN, 0 }, - { _tc_CORBA_Short, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_short_calldata = { - "cube_short", CORBA_B_TRUE, - 2, &Cubit_cube_short_params [0], - 0, 0 -}; - - -CORBA_Short -Cubit_cube_short (Cubit_ptr target, - CORBA_Short s, - CORBA_Environment &env) -{ - CORBA_Short retval; - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &Cubit_cube_short_calldata, - &retval, &s); - data->Release (); - } - return retval; -} - -static void -_cube_short_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Short); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_short, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_short, get params"); - - CORBA_Short* value = new CORBA_Short; - - *value = *(CORBA_Short *)nv->value ()->value (); - // dmsg1 ("cube short, parameter '%d'", *value); - *value =(CORBA_Short) ((*value) * (*value) * (*value)); - // dmsg1 ("cube short, result '%d'", *value); - - CORBA_Any* any = - new CORBA_Any (_tc_CORBA_Short, value, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "cube_short, result"); -} - - -// -// CUBE LONG -// - -static const TAO_Param_Data Cubit_cube_long_params [] = { - { _tc_CORBA_Long, PARAM_RETURN, 0 }, - { _tc_CORBA_Long, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_long_calldata = { - "cube_long", CORBA_B_TRUE, - 2, &Cubit_cube_long_params [0], - 0, 0 -}; - - -CORBA_Long -Cubit_cube_long (Cubit_ptr target, - CORBA_Long l, - CORBA_Environment &env) -{ - CORBA_Long retval; - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else - { - data->do_call (env, &Cubit_cube_long_calldata, - &retval, &l); - data->Release (); - } - return retval; -} - - -static void -_cube_long_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Long); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_long, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_long, get params"); - - CORBA_Long* value = new CORBA_Long; - - *value = *(CORBA_Long *)nv->value ()->value (); - // dmsg1 ("cube long, parameter '%d'", *value); - *value = (*value) * (*value) * (*value); - // dmsg1 ("cube long, result '%d'", *value); - - CORBA_Any* any = - new CORBA_Any (_tc_CORBA_Long, value, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "cube_long, result"); -} - -// -// Encapsulated parameters for struct "Cubit_Many" typecode. -// None of these parameters is complicated, so this is just -// a linear sequence of element encodings -// -// NOTE: it's important that this be longword aligned!! -// -static const CORBA_Long _oc_Cubit_Many [] = { - 1, // byte order flag (TRICKY!) - - 1, 0, // empty string: repository/type ID - 1, 0, // empty string: struct name - - 3, // three struct elements - - // First structure element: name, typecode for Octet - 1, 0, // empty string: name "o" - tk_octet, - - // Second structure element: name, typecode for Long - 1, 0, // empty string: name "l" - tk_long, - - // Third structure element: name, typecode for Short - 1, 0, // empty string: name "s" - tk_short, -}; - -static CORBA_TypeCode _tc_Cubit_Many (tk_struct, - sizeof _oc_Cubit_Many, (unsigned char *) &_oc_Cubit_Many, - CORBA_B_FALSE); -CORBA_TypeCode_ptr TC_Cubit_Many = &_tc_Cubit_Many; - - -// -// CUBE STRUCT -// - -static const TAO_Param_Data Cubit_cube_struct_params [] = { - { &_tc_Cubit_Many, PARAM_RETURN, sizeof (Cubit_Many) }, - { &_tc_Cubit_Many, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_struct_calldata = { - "cube_struct", CORBA_B_TRUE, - 2, &Cubit_cube_struct_params [0], - 0, 0 -}; - -Cubit_Many * -Cubit_cube_struct (Cubit_ptr target, - Cubit_Many &values, - CORBA_Environment &env) -{ - Cubit_Many *retval; - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else - { - data->do_call (env, &Cubit_cube_struct_calldata, - &retval, &values); - data->Release (); - } - return retval; -} - - -static void -_cube_struct_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (TC_Cubit_Many); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_struct, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_struct, get params"); - - Cubit_Many *value; - Cubit_Many *retval = new Cubit_Many; - - value = (Cubit_Many *)nv->value ()->value (); - - retval->o = (CORBA_Octet) (value->o * value->o * value->o); - retval->s = (CORBA_Short) (value->s * value->s * value->s); - retval->l = value->l * value->l * value->l; - - // dmsg2 ("cube struct.o, %d -> %d", value->o, retval->o); - // dmsg2 ("cube struct.s, %d -> %d", value->s, retval->s); - // dmsg2 ("cube struct.l, %d -> %d", value->l, retval->l); - - CORBA_Any *any = - new CORBA_Any (TC_Cubit_Many, retval, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "cube_struct, result"); -} - -// -// CUBE UNION -// - -// -// NOTE: not all union typecodes can be encoded as an array -// of "long "values, but this one can. Ones with discriminants -// that are one or two bytes long can't easily be coded portably. -// -// The benefit of doing it as an array of "long" values is -// twofold: (a) easier to read; (b) on most systems it's then -// adequately aligned for the typecode interpreter to use, so -// no additional runtime copy needs to be made. -// -static const CORBA_Long _oc_Cubit_oneof [] = { - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted struct name, "oneof" - - // - // discriminant typecode: - // - tk_enum, // tk_enum - 72, // encapsulation length - - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted enum name, "discrim" - 6, // 5 elements in the enum - - 1, 0, // omitted member name, "e_0th" - 1, 0, // omitted member name, "e_1st" - 1, 0, // omitted member name, "e_2nd" - 1, 0, // omitted member name, "e_3rd" - 1, 0, // omitted member name, "e_4th" - 1, 0, // omitted member name, "e_5th" - - 4, // default member index (zero based) - 5, // number of union members - - // the 1st union branch arm - e_0th, // member label value - 1, 0, // omitted member name, "o" - tk_octet, // member typecode - - // the 2nd union branch arm - e_1st, // member label value - 1, 0, // omitted member name, "s" - tk_short, // member typecode - - // the 3rd union branch arm - e_2nd, // member label value - 1, 0, // omitted member name, "l" - tk_long, // member typecode - - // the 4th union branch arm - e_3rd, // member label value - 1, 0, // omitted member name, "cm" - - // the 4th union member typecode - tk_struct, // tk_struct - 60, // encap length - - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted struct name, "Many" - 3, // three struct members - - // First structure element - 1, 0, // omitted member name, "o" - tk_octet, // member type, tk_octet - - // Second structure element - 1, 0, // omitted member name, "l" - tk_long, // member type, tk_long - - // Third structure element - 1, 0, // omitted member name, "s" - tk_short, // member type, tk_short - - // the 5th union branch arm - 4, // the 5th member label value - 1, 0, // omitted member name, "cm" - ~0, // indirected typecode (~0) - -84 // offset to struct "Many" typecode -}; - -static CORBA_TypeCode _tc_Cubit_oneof (tk_union, - (sizeof _oc_Cubit_oneof), (unsigned char *) &_oc_Cubit_oneof, - CORBA_B_FALSE); -CORBA_TypeCode_ptr TC_Cubit_oneof = &_tc_Cubit_oneof; - -static const TAO_Param_Data Cubit_cube_union_params [] = { - { &_tc_Cubit_oneof, PARAM_RETURN, sizeof (Cubit_oneof) }, - { &_tc_Cubit_oneof, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_union_calldata = { - "cube_union", CORBA_B_TRUE, - 2, &Cubit_cube_union_params [0], - 0, 0 -}; - -Cubit_oneof * -Cubit_cube_union (Cubit_ptr target, - Cubit_oneof &values, - CORBA_Environment &env) -{ - Cubit_oneof *retval; - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else - { - data->do_call (env, &Cubit_cube_union_calldata, - &retval, &values); - data->Release (); - } - return retval; -} - - -static void -_cube_union_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (TC_Cubit_oneof); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_union_3rd, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_union_3rd, get params"); - - Cubit_oneof *v; - Cubit_oneof *r = new Cubit_oneof; - - v = (Cubit_oneof *)nv->value ()->value (); - r->_disc = v->_disc; - - switch (v->_disc) { - case e_0th: - r->o = (CORBA_Octet) (v->o * v->o * v->o); - break; - - case e_1st: - r->s = (CORBA_Short) (v->s * v->s * v->s); - break; - - case e_2nd: - r->l = v->l * v->l * v->l; - break; - - case e_3rd: - default: - r->cm.o = (CORBA_Octet) (v->cm.o * v->cm.o * v->cm.o); - r->cm.s = (CORBA_Short) (v->cm.s * v->cm.s * v->cm.s); - r->cm.l = v->cm.l * v->cm.l * v->cm.l; - break; - } - - CORBA_Any *any = new CORBA_Any (TC_Cubit_oneof, r, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "cube_struct, result"); -} - - -// -// PLEASE EXIT -// - -static const TAO_Call_Data Cubit_please_exit_calldata = { - "please_exit", CORBA_B_FALSE, - 0, 0, - 0, 0 -}; - -void -Cubit_please_exit ( - Cubit_ptr target, - CORBA_Environment &env -) -{ - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &Cubit_please_exit_calldata - ); - data->Release (); - } -} - -static void -_please_exit_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - dmsg ("I've been asked to shut down..."); - req.oa ()->please_shutdown (env); - dexc (env, "please_exit, please_shutdown"); -} - - -const CORBA_Char *Cubit__id = (CORBA_Char *) - "IDL:Eng.SUN.COM/Cubit:1.1"; - - -// -// table of all operations, used by operation dispatch to get to the -// right skeleton ... could be sorted by the IDL compiler so bsearch -// is effective, perhaps with help from opname hashes and a small cache -// (e.g. like Obj-C?). for now, just lsearch. -// -const TAO_Skel_Entry Cubit_operations [] = { - { &Cubit_cube_octet_calldata, _cube_octet_skel }, - { &Cubit_cube_short_calldata, _cube_short_skel }, - { &Cubit_cube_long_calldata, _cube_long_skel }, - { &Cubit_cube_struct_calldata, _cube_struct_skel }, - { &Cubit_cube_union_calldata, _cube_union_skel }, - { &Cubit_please_exit_calldata, _please_exit_skel }, - { 0, 0 } // last entry -}; diff --git a/TAO/IIOP/test/cubit.h b/TAO/IIOP/test/cubit.h deleted file mode 100644 index 78d6b604052..00000000000 --- a/TAO/IIOP/test/cubit.h +++ /dev/null @@ -1,108 +0,0 @@ -// $Id$ - -// @(#)cubit.hh 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// Hand-crafted C language binding glue ... -// -// This doesn't use C++ since doing the obvious derivation -// (all parent interfaces are virtual public parents) makes -// object references have different "views". That is, a -// pointer to a Cubit (i.e. a Cubit_ptr) would not have -// the same binary value as a pointer to a CORBA_Object -// (i.e. a CORBA_Object_ptr, generic objref). That'd -// mean lots of narrowing/widening/RTTI infrastructure. -// - -#ifndef _CUBIT_HH -#define _CUBIT_HH - -#ifdef _MSC_VER -#pragma pack (push, 1) // VC++, known padding rules -#endif // VC++ - -#include -#include - - -// -// C style binding -// - -typedef CORBA_Object Cubit; -typedef Cubit *Cubit_ptr, *CubitRef; - -extern CORBA_TypeCode_ptr TC_Cubit_Many; -extern CORBA_TypeCode_ptr TC_Cubit_oneof; - -struct Cubit_Many { - CORBA_Octet o; - CORBA_Long l; - CORBA_Short s; -}; - -enum Cubit_discrim {e_0th = 0, e_1st = 1, e_2nd = 2, - e_3rd = 3, e_4th = 4, e_5th = 5}; - -struct Cubit_oneof { - Cubit_discrim _disc; - - union { - CORBA_Octet o; - CORBA_Short s; - CORBA_Long l; - Cubit_Many cm; - }; -}; - -CORBA_Octet -Cubit_cube_octet ( - Cubit_ptr target, - CORBA_Octet o, - CORBA_Environment &env -); - -CORBA_Short -Cubit_cube_short ( - Cubit_ptr target, - CORBA_Short s, - CORBA_Environment &env -); - -CORBA_Long -Cubit_cube_long ( - Cubit_ptr target, - CORBA_Long l, - CORBA_Environment &env -); - -Cubit_Many * -Cubit_cube_struct ( - Cubit_ptr target, - Cubit_Many &values, - CORBA_Environment &env -); - -Cubit_oneof * -Cubit_cube_union ( - Cubit_ptr target, - Cubit_oneof &values, - CORBA_Environment &env -); - -void -Cubit_please_exit ( - Cubit_ptr target, - CORBA_Environment &env -); - -extern const CORBA_Char *Cubit__id; // type ID - -extern const TAO_Skel_Entry Cubit_operations []; - -#ifdef _MSC_VER -#pragma pack (pop) // VC++, go back to other padding rules -#endif // VC++ - -#endif // _CUBIT_HH diff --git a/TAO/IIOP/test/cubit.idl b/TAO/IIOP/test/cubit.idl deleted file mode 100644 index d4f1610e2a8..00000000000 --- a/TAO/IIOP/test/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/test/cubitC.cpp b/TAO/IIOP/test/cubitC.cpp deleted file mode 100644 index 8bcb0b4f4d9..00000000000 --- a/TAO/IIOP/test/cubitC.cpp +++ /dev/null @@ -1,383 +0,0 @@ -// $Id$ - -// @(#)cubitC.cpp 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -#include "cubitC.h" // for stubs ... - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj) -{ - if (obj) - obj->AddRef(); - - return obj; -} - -Cubit_ptr Cubit::_narrow(CORBA_Object_ptr obj) -{ - CORBA_Environment env; - if (obj->_is_a("IDL:Cubit:1.0", env)) - { - STUB_Object *istub; - if (obj->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - return Cubit::_nil(); - } - Cubit_ptr new_obj = new Cubit(istub); - return Cubit::_duplicate(new_obj); - } - return Cubit::_nil(); -} - -Cubit_ptr Cubit::_nil() -{ - return (Cubit_ptr)NULL; -} - -// -// CUBE OCTET -// - -static const TAO_Param_Data Cubit_cube_octet_params [] = -{ - { _tc_CORBA_Octet, PARAM_RETURN, 0 }, - { _tc_CORBA_Octet, PARAM_IN, 0 } -}; - - -static const TAO_Call_Data Cubit_cube_octet_calldata = -{ - "cube_octet", CORBA_B_TRUE, - 2, &Cubit_cube_octet_params [0], - 0, 0 -}; - - -CORBA_Octet -Cubit::Cubit_cube_octet (CORBA_Octet o, - CORBA_Environment &env) -{ - CORBA_Octet retval; - - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return 0; - } - - istub->do_call (env, &Cubit_cube_octet_calldata, - &retval, &o); - istub->Release (); - - return retval; -} - - -// -// CUBE SHORT -// - -static const TAO_Param_Data Cubit_cube_short_params [] = -{ - { _tc_CORBA_Short, PARAM_RETURN, 0 }, - { _tc_CORBA_Short, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_short_calldata = -{ - "cube_short", CORBA_B_TRUE, - 2, &Cubit_cube_short_params [0], - 0, 0 -}; - - -CORBA_Short -Cubit::Cubit_cube_short (CORBA_Short s, - CORBA_Environment &env) -{ - CORBA_Short retval; - - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return 0; - } - - istub->do_call(env, &Cubit_cube_short_calldata, - &retval, &s); - - istub->Release (); - - return retval; -} - -// -// CUBE LONG -// - -static const TAO_Param_Data Cubit_cube_long_params [] = -{ - { _tc_CORBA_Long, PARAM_RETURN, 0 }, - { _tc_CORBA_Long, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_long_calldata = -{ - "cube_long", CORBA_B_TRUE, - 2, &Cubit_cube_long_params [0], - 0, 0 -}; - - -CORBA_Long -Cubit::Cubit_cube_long (CORBA_Long l, - CORBA_Environment &env) -{ - CORBA_Long retval; - - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return 0; - } - - istub->do_call (env, &Cubit_cube_long_calldata, - &retval, &l); - istub->Release (); - - return retval; -} - - -// -// Encapsulated parameters for struct "Cubit_Many" typecode. -// None of these parameters is complicated, so this is just -// a linear sequence of element encodings -// -// NOTE: it's important that this be longword aligned!! -// -static const CORBA_Long _oc_Cubit_Many [] = -{ - 1, // byte order flag (TRICKY!) - - 1, 0, // empty string: repository/type ID - 1, 0, // empty string: struct name - - 3, // three struct elements - - // First structure element: name, typecode for Octet - 1, 0, // empty string: name "o" - tk_octet, - - // Second structure element: name, typecode for Long - 1, 0, // empty string: name "l" - tk_long, - - // Third structure element: name, typecode for Short - 1, 0, // empty string: name "s" - tk_short, -}; - -static CORBA_TypeCode _tc_Cubit_Many (tk_struct, - sizeof _oc_Cubit_Many, (unsigned char *) &_oc_Cubit_Many, - CORBA_B_FALSE); -CORBA_TypeCode_ptr TC_Cubit_Many = &_tc_Cubit_Many; - - -// -// CUBE STRUCT -// - -static const TAO_Param_Data Cubit_cube_struct_params [] = -{ - { &_tc_Cubit_Many, PARAM_RETURN, sizeof (Cubit_Many) }, - { &_tc_Cubit_Many, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_struct_calldata = -{ - "cube_struct", CORBA_B_TRUE, - 2, &Cubit_cube_struct_params [0], - 0, 0 -}; - -Cubit_Many* -Cubit::Cubit_cube_struct (Cubit_Many &values, - CORBA_Environment &env) -{ - Cubit_Many *retval; - - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return 0; - } - - istub->do_call (env, &Cubit_cube_struct_calldata, - &retval, &values); - istub->Release (); - - return retval; -} - - -// -// CUBE UNION -// - -// -// NOTE: not all union typecodes can be encoded as an array -// of "long "values, but this one can. Ones with discriminants -// that are one or two bytes long can't easily be coded portably. -// -// The benefit of doing it as an array of "long" values is -// twofold: (a) easier to read; (b) on most systems it's then -// adequately aligned for the typecode interpreter to use, so -// no additional runtime copy needs to be made. -// -static const CORBA_Long _oc_Cubit_oneof [] = -{ - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted struct name, "oneof" - - // - // discriminant typecode: - // - tk_enum, // tk_enum - 72, // encapsulation length - - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted enum name, "discrim" - 6, // 5 elements in the enum - - 1, 0, // omitted member name, "e_0th" - 1, 0, // omitted member name, "e_1st" - 1, 0, // omitted member name, "e_2nd" - 1, 0, // omitted member name, "e_3rd" - 1, 0, // omitted member name, "e_4th" - 1, 0, // omitted member name, "e_5th" - - 4, // default member index (zero based) - 5, // number of union members - - // the 1st union branch arm - e_0th, // member label value - 1, 0, // omitted member name, "o" - tk_octet, // member typecode - - // the 2nd union branch arm - e_1st, // member label value - 1, 0, // omitted member name, "s" - tk_short, // member typecode - - // the 3rd union branch arm - e_2nd, // member label value - 1, 0, // omitted member name, "l" - tk_long, // member typecode - - // the 4th union branch arm - e_3rd, // member label value - 1, 0, // omitted member name, "cm" - - // the 4th union member typecode - tk_struct, // tk_struct - 60, // encap length - - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted struct name, "Many" - 3, // three struct members - - // First structure element - 1, 0, // omitted member name, "o" - tk_octet, // member type, tk_octet - - // Second structure element - 1, 0, // omitted member name, "l" - tk_long, // member type, tk_long - - // Third structure element - 1, 0, // omitted member name, "s" - tk_short, // member type, tk_short - - // the 5th union branch arm - 4, // the 5th member label value - 1, 0, // omitted member name, "cm" - ~0, // indirected typecode (~0) - -84 // offset to struct "Many" typecode -}; - -static CORBA_TypeCode _tc_Cubit_oneof (tk_union, - (sizeof _oc_Cubit_oneof), (unsigned char *) &_oc_Cubit_oneof, - CORBA_B_FALSE); -CORBA_TypeCode_ptr TC_Cubit_oneof = &_tc_Cubit_oneof; - -static const TAO_Param_Data Cubit_cube_union_params [] = -{ - { &_tc_Cubit_oneof, PARAM_RETURN, sizeof (Cubit_oneof) }, - { &_tc_Cubit_oneof, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_union_calldata = -{ - "cube_union", CORBA_B_TRUE, - 2, &Cubit_cube_union_params [0], - 0, 0 -}; - -Cubit_oneof* -Cubit::Cubit_cube_union (Cubit_oneof &values, - CORBA_Environment &env) -{ - Cubit_oneof *retval; - - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return 0; - } - - istub->do_call (env, &Cubit_cube_union_calldata, - &retval, &values); - istub->Release (); - - return retval; -} - - - -// -// PLEASE EXIT -// - -static const TAO_Call_Data Cubit_please_exit_calldata = -{ - "please_exit", CORBA_B_FALSE, - 0, 0, - 0, 0 -}; - -void -Cubit::Cubit_please_exit (CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - - istub->do_call (env, &Cubit_please_exit_calldata); - istub->Release (); -} diff --git a/TAO/IIOP/test/cubitC.h b/TAO/IIOP/test/cubitC.h deleted file mode 100644 index 98610b55116..00000000000 --- a/TAO/IIOP/test/cubitC.h +++ /dev/null @@ -1,104 +0,0 @@ -// $Id$ - -// @(#)cubitC.h 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -/************************************************************************** -This file has been hand-crafted to work with the ORB API of the SUN's IIOP -implementation -***************************************************************************/ - -#ifndef _CUBIT_HH -#define _CUBIT_HH - -#ifdef _MSC_VER -#pragma pack (push, 1) // VC++, known padding rules -#endif // VC++ - -#include "corba/orb.h" -#include "corba/stub.h" - -#include - -extern CORBA_TypeCode_ptr TC_Cubit_Many; -extern CORBA_TypeCode_ptr TC_Cubit_oneof; - -struct Cubit_Many -{ - CORBA_Octet o; - CORBA_Long l; - CORBA_Short s; -}; - -enum Cubit_discrim - { e_0th = 0, e_1st = 1, e_2nd = 2, - e_3rd = 3, e_4th = 4, e_5th = 5 }; - -struct Cubit_oneof -{ - Cubit_discrim _disc; - - union - { - CORBA_Octet o; - CORBA_Short s; - CORBA_Long l; - Cubit_Many cm; - }; -}; - -class Cubit; -typedef Cubit *Cubit_ptr; -typedef Cubit_ptr Cubit_ref; - -class Cubit : public virtual CORBA_Object -{ -public: - - static Cubit_ptr _duplicate(Cubit_ptr obj); - static Cubit_ptr _narrow(CORBA_Object_ptr obj); - static Cubit_ptr _nil(); - - virtual - CORBA_Octet Cubit_cube_octet (CORBA_Octet o, - CORBA_Environment &env); - - virtual - CORBA_Short Cubit_cube_short (CORBA_Short s, - CORBA_Environment &env); - - virtual - CORBA_Long Cubit_cube_long (CORBA_Long l, - CORBA_Environment &env); - - virtual - Cubit_Many* Cubit_cube_struct (Cubit_Many &values, - CORBA_Environment &env); - - virtual - Cubit_oneof* Cubit_cube_union (Cubit_oneof &values, - CORBA_Environment &env); - - virtual - void Cubit_please_exit (CORBA_Environment &env); - -protected: - Cubit() { } - Cubit(STUB_Object *objref) - : CORBA_Object(objref) { } - virtual ~Cubit() { } - - -}; - -extern const CORBA_Char *Cubit__id; // type ID - -#ifdef _MSC_VER -#pragma pack (pop) // VC++, go back to other padding rules -#endif // VC++ - -#endif // _CUBIT_HH diff --git a/TAO/IIOP/test/cubitS.cpp b/TAO/IIOP/test/cubitS.cpp deleted file mode 100644 index bf77e70abd6..00000000000 --- a/TAO/IIOP/test/cubitS.cpp +++ /dev/null @@ -1,234 +0,0 @@ -// $Id$ - -// @(#)cubitS.cpp 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: hand-written C-style "Cubit" stubs and "skeletons" -// - -#include "cubitS.h" -#include "cubitC.cpp" - -#include "connect.h" -#include "params.h" - -#include "corba/debug.h" // ... and debugging -#include "corba/optable.h" // TAO Dynamic Operation Table -#include "method_db.i" -#include "iiopobj.h" - -#if defined(CUBIT_USE_DYNAMIC_HASH) -TAO_Dynamic_Hash_OpTable tao_cubit_optable(7); // Dynamic Operation Table -#else -TAO_Linear_OpTable tao_cubit_optable(7); -#endif - -_skel_Cubit::_skel_Cubit(const char* obj_name) -{ - const char* mn = "_skel_Cubit::_skel_Cubit()"; - - // Initialize Method Database - initialize_method_db (&tao_cubit_optable); - - char *type_id = "IDL:Cubit:1.0"; - // CORBA_String type_id = "IDL:Cubit:1.0"; - IIOP_Object *data; - - CORBA_BOA_ptr oa = TAO_OA_PARAMS::instance()->oa(); - if (oa == 0) - { - // We just have to assume that oa will be good, or we have to - // throw an exception. For now we "assume", but we'll - ACE_ERROR((LM_ERROR, "(%P|%t) %s Unable to locate a valid object adapter\n", mn)); - return; - } - - this->optable_ = &tao_cubit_optable; - data = new IIOP_Object(type_id); - - data->profile.iiop_version.major = IIOP::MY_MAJOR; - data->profile.iiop_version.minor = IIOP::MY_MINOR; - data->profile.host = ACE_OS::strdup(oa->get_addr().get_host_name()); - data->profile.port = oa->get_addr().get_port_number(); - data->profile.object_key.length = ACE_OS::strlen(obj_name); - data->profile.object_key.maximum = data->profile.object_key.length; - data->profile.object_key.buffer = new CORBA_Octet [(size_t)data->profile.object_key.length+1]; - - ACE_OS::memcpy (data->profile.object_key.buffer, - obj_name, - data->profile.object_key.length+1); - - this->set_parent(data); - this->sub_ = this; - - if (oa->bind(data->profile.object_key, this) == -1) - { - ACE_ERROR((LM_ERROR, "(%P|%t) %s Unable to bind object to key '%s': %p\n", mn, data->profile.object_key.buffer)); - return; - } -} - -void -_skel_Cubit::_cube_octet_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Octet); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_octet, add value"); - - req.params (nvlist, env); - dexc (env, "cube_octet, get params"); - - // Call Implementation - CORBA_Octet *value = new CORBA_Octet; - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - - *value = the_cubit->Cubit_cube_octet(*(CORBA_Octet *)nv->value()->value(), env); - - CORBA_Any *any = new CORBA_Any (_tc_CORBA_Octet, value, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "cube_octet, result"); -} - -void -_skel_Cubit::_cube_short_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Short); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_short, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_short, get params"); - - // Call Implementation - CORBA_Short *value = new CORBA_Short; - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - *value = the_cubit->Cubit_cube_short(*(CORBA_Short *)nv->value ()->value (), env); - - CORBA_Any *any = new CORBA_Any (_tc_CORBA_Short, value, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "cube_short, result"); -} - -void -_skel_Cubit::_cube_long_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Long); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_long, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_long, get params"); - - // Call Implementation - CORBA_Long *value = new CORBA_Long; - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - *value = the_cubit->Cubit_cube_long(*(CORBA_Long *)nv->value ()->value (), env); - - CORBA_Any *any = - new CORBA_Any (_tc_CORBA_Long, value, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "cube_long, result"); -} - -void -_skel_Cubit::_cube_struct_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (TC_Cubit_Many); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_struct, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_struct, get params"); - - // Call Implementation - Cubit_Many *value; - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - value = the_cubit->Cubit_cube_struct(*(Cubit_Many*)nv->value()->value(), env); - - Cubit_Many *retval = new Cubit_Many; - retval->o = (CORBA_Octet)value->o; - retval->s = (CORBA_Short)value->s; - retval->l = value->l; - - // dmsg2 ("cube struct.o, %d -> %d", value->o, retval->o); - // dmsg2 ("cube struct.s, %d -> %d", value->s, retval->s); - // dmsg2 ("cube struct.l, %d -> %d", value->l, retval->l); - - CORBA_Any *any = new CORBA_Any (TC_Cubit_Many, retval, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "cube_struct, result"); -} - -void -_skel_Cubit::_cube_union_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (TC_Cubit_oneof); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_union_3rd, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_union_3rd, get params"); - - // Call Implementation - Cubit_oneof *v; - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - v = the_cubit->Cubit_cube_union(*(Cubit_oneof *)nv->value ()->value (), env); - - Cubit_oneof *r = new Cubit_oneof; - r->_disc = v->_disc; - r->o = (CORBA_Octet) (v->o); - r->s = (CORBA_Short) (v->s); - r->l = v->l; - r->cm.o = (CORBA_Octet) (v->cm.o); - r->cm.s = (CORBA_Short) (v->cm.s); - r->cm.l = v->cm.l; - - CORBA_Any *any = new CORBA_Any (TC_Cubit_oneof, r, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "cube_struct, result"); -} - -void -_skel_Cubit::_please_exit_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - the_cubit->Cubit_please_exit(env); -} diff --git a/TAO/IIOP/test/cubitS.h b/TAO/IIOP/test/cubitS.h deleted file mode 100644 index a4b4b853901..00000000000 --- a/TAO/IIOP/test/cubitS.h +++ /dev/null @@ -1,84 +0,0 @@ -// $Id$ - -// @(#)cubitS.h 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -/************************************************************************** -This file has been hand-crafted to work with the ORB API of the SUN's IIOP -implementation -***************************************************************************/ - -#ifndef _SKEL_CUBIT_HH -#define _SKEL_CUBIT_HH - -#include "cubitC.h" - -class _skel_Cubit; -typedef _skel_Cubit *_skel_Cubit_ptr; -typedef _skel_Cubit_ptr _skel_Cubit_ref; - -class _skel_Cubit : public Cubit -{ -public: - virtual - CORBA_Octet Cubit_cube_octet (CORBA_Octet o, - CORBA_Environment &env) = 0; - static - void _cube_octet_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - - virtual - CORBA_Short Cubit_cube_short (CORBA_Short s, - CORBA_Environment &env) = 0; - - static - void _cube_short_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - - virtual - CORBA_Long Cubit_cube_long (CORBA_Long l, - CORBA_Environment &env) = 0; - - static - void _cube_long_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - - virtual - Cubit_Many* Cubit_cube_struct (Cubit_Many &values, - CORBA_Environment &env) = 0; - - static - void _cube_struct_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - - virtual - Cubit_oneof* Cubit_cube_union (Cubit_oneof &values, - CORBA_Environment &env) = 0; - - static - void _cube_union_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - - virtual - void Cubit_please_exit (CORBA_Environment &env) = 0; - - static - void _please_exit_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); -protected: - _skel_Cubit(const char* obj_name = 0); - virtual ~_skel_Cubit() { } - -}; - -#endif // _SKEL_CUBIT_HH diff --git a/TAO/IIOP/test/cubit_i.cpp b/TAO/IIOP/test/cubit_i.cpp deleted file mode 100644 index ec3d3717768..00000000000 --- a/TAO/IIOP/test/cubit_i.cpp +++ /dev/null @@ -1,93 +0,0 @@ -// $Id$ - -// @(#)cubit_i.cpp 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: hand-written Cubit Implementation -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -#include "cubit_i.h" - -#include // ... and skeletons -#include // ... and debugging - -#include "connect.h" -#include "params.h" - -Cubit_i::Cubit_i(const char* obj_name) -: _skel_Cubit(obj_name) -{ -} - -Cubit_i::~Cubit_i() -{ -} - -CORBA_Octet -Cubit_i::Cubit_cube_octet (CORBA_Octet o, - CORBA_Environment &env) -{ - - return (CORBA_Octet) (o * o * o); -} - -CORBA_Short -Cubit_i::Cubit_cube_short (CORBA_Short s, - CORBA_Environment &env) -{ - return (CORBA_Short) (s * s * s); -} - - -CORBA_Long -Cubit_i::Cubit_cube_long (CORBA_Long l, - CORBA_Environment &env) -{ - return (CORBA_Long) (l * l * l); -} - -Cubit_Many* -Cubit_i::Cubit_cube_struct (Cubit_Many &values, - CORBA_Environment &env) -{ - values.o = values.o * values.o * values.o; - values.s = values.s * values.s * values.s; - values.l = values.l * values.l * values.l; - - return &values; -} - -Cubit_oneof* -Cubit_i::Cubit_cube_union (Cubit_oneof &values, - CORBA_Environment &env) -{ - switch (values._disc) { - case e_0th: - values.o = (CORBA_Octet) (values.o * values.o * values.o); - break; - case e_1st: - values.s = (CORBA_Short) (values.s * values.s * values.s); - break; - case e_2nd: - values.l = values.l * values.l * values.l; - break; - case e_3rd: - default: - values.cm.o = (CORBA_Octet) (values.cm.o * values.cm.o * values.cm.o); - values.cm.s = (CORBA_Short) (values.cm.s * values.cm.s * values.cm.s); - values.cm.l = values.cm.l * values.cm.l * values.cm.l; - } - return &values; -} - -void Cubit_i::Cubit_please_exit (CORBA_Environment &env) -{ - TAO_OA_Parameters* params = TAO_OA_PARAMS::instance(); - - dmsg ("I've been asked to shut down..."); - params->oa()->please_shutdown(env); - dexc (env, "please_exit, please_shutdown"); -} diff --git a/TAO/IIOP/test/cubit_i.h b/TAO/IIOP/test/cubit_i.h deleted file mode 100644 index 7ddf1947cd3..00000000000 --- a/TAO/IIOP/test/cubit_i.h +++ /dev/null @@ -1,56 +0,0 @@ -// $Id$ - -// @(#)cubit_i.cpp 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: hand-written Cubit Implementation -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -/************************************************************************** -This file has been hand-crafted to work with the ORB API of the SUN's IIOP -implementation -***************************************************************************/ - -#ifndef _CUBIT_I_HH -#define _CUBIT_I_HH - -#include "cubitS.h" - -class Cubit_i; -typedef Cubit_i *Cubit_i_ptr; -typedef Cubit_i_ptr Cubit_i_ref; - -class Cubit_i : public _skel_Cubit -{ -public: - Cubit_i(const char* obj_name = 0); - ~Cubit_i(); - - virtual - CORBA_Octet Cubit_cube_octet (CORBA_Octet o, - CORBA_Environment &env); - - virtual - CORBA_Short Cubit_cube_short (CORBA_Short s, - CORBA_Environment &env); - - virtual - CORBA_Long Cubit_cube_long (CORBA_Long l, - CORBA_Environment &env); - - virtual - Cubit_Many* Cubit_cube_struct (Cubit_Many &values, - CORBA_Environment &env); - - virtual - Cubit_oneof* Cubit_cube_union (Cubit_oneof &values, - CORBA_Environment &env); - - virtual - void Cubit_please_exit (CORBA_Environment &env); -}; - -#endif // _CUBIT_I_HH diff --git a/TAO/IIOP/test/method_db.i b/TAO/IIOP/test/method_db.i deleted file mode 100644 index a95573043ac..00000000000 --- a/TAO/IIOP/test/method_db.i +++ /dev/null @@ -1,69 +0,0 @@ -// $Id$ - -// @(#)method_db.i 05/14/97 - -// This file provides a way of initializing the method database -// Written by: Brian Mendel - -#include "cubitS.h" - -static void -is_a_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_String); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - - req.params (nvlist, env); - if (env.exception () != 0) - { - dexc (env, "is_a_skel, get params"); - return; - } - - CORBA_Boolean *retval; - CORBA_String value = *(CORBA_String *) nv->value()->value(); - - if (ACE_OS::strcmp ((char*)value, "IDL:Cubit:1.0") == 0 - || ACE_OS::strcmp ((char *)value, _tc_CORBA_Object->id (env)) == 0) - retval = new CORBA_Boolean (CORBA_B_TRUE); - else - retval = new CORBA_Boolean (CORBA_B_FALSE); - - CORBA_Any *any = new CORBA_Any (_tc_CORBA_Boolean, retval, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "_is_a, result"); -} - - -struct method_db -{ - CORBA_String opname; - TAO_Skeleton skel_ptr; -}; - -static const method_db cubit_operations[] = { - { "_is_a", &is_a_skel }, - { "cube_octet", &_skel_Cubit::_cube_octet_skel }, - { "cube_short", &_skel_Cubit::_cube_short_skel }, - { "cube_long", &_skel_Cubit::_cube_long_skel }, - { "cube_struct", &_skel_Cubit::_cube_struct_skel }, - { "cube_union", &_skel_Cubit::_cube_union_skel }, - { "please_exit", &_skel_Cubit::_please_exit_skel }, - { 0, 0 } -}; - - -void initialize_method_db (TAO_Operation_Table *the_optable) -{ - for (int ndx = 0; ndx < 7; ndx++) - the_optable->bind(cubit_operations[ndx].opname, - cubit_operations[ndx].skel_ptr); - -} diff --git a/TAO/IIOP/test/results/Orbix b/TAO/IIOP/test/results/Orbix deleted file mode 100644 index c3abce78d3f..00000000000 --- a/TAO/IIOP/test/results/Orbix +++ /dev/null @@ -1,133 +0,0 @@ -Cubit results over Ethernet with 20,000 calls ---------------------------------------------- - - Clients Latency (ms) Calls/Sec - -MT-Orbix without filters 1 1.876 533 - 2 2.202 454 - 3 2.740 364 - -MT-Orbix Thread-Per-Request 1 1.886 530 - 2 3.1 322 - 3 5.0 200 - -MT-Orbix Thread-Pool (25) 1 1.875 533 - 2 3.1 322 - 3 5.1 196 - -MT-Orbix Thread-Per-Session 1 2.002 499 - 2 3.306 302 - 3 5.15 194 - - -Cubit results over ATM with 20,000 calls ----------------------------------------- - - Clients Latency (ms) Calls/Sec - -MT-Orbix without filters 1 1.818 550 - 2 1.968 508 - 3 2.803 356 - - -MT-Orbix Thread-Per-Request 1 1.846 541 - 2 3.1 322 - 3 4.98 200 - -MT-Orbix Thread-Pool (25) 1 1.913 522 - 2 3.18 314 - 3 5.1 196 - -MT-Orbix Thread-Per-Session 1 1.959 510 - 2 3.29 303 - 3 5.15 194 - - -Prime_Factor results over ATM with 20,000 calls ------------------------------------------------ - - Clients Latency (ms) Calls/Sec - -MT-Orbix without filters 1 7.918 126 - 2 14.300 70 - 3 21.000 47 - - -MT-Orbix Thread-Per-Request 1 8.302 120 - 2 10.128 98 - 3 13.722 72 - -MT-Orbix Thread-Pool (25) 1 8.442 118 - 2 15.764 63 - 3 22.595 44 - -MT-Orbix Thread-Per-Session 1 8.956 111 - 2 9.581 104 - 3 16.702 59 - -IO-intensive results over ATM with 20,000 calls ------------------------------------------------ - - Clients Latency (ms) Calls/Sec - -MT-Orbix without filters 1 6.667 149 - 2 12.165 82 - 3 18.634 54 - - -MT-Orbix Thread-Per-Request 1 6.812 146 - 2 6.937 144 - 3 7.706 128 - -MT-Orbix Thread-Pool (25) 1 6.813 146 - 2 6.954 144 - 3 7.776 128 - -MT-Orbix Thread-Per-Session 1 6.85 145 - 2 7.253 137 - 3 7.645 130 - - TNF client-side profile for MT-Orbix without filters for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -cond_wait 6.23 4250.242 1824 2.330 106.171 1.205 0.091 -mutex_lock 0.23 159.830 56662 0.003 1.215 0.002 0.000 -mutex_unlock 0.22 146.756 56663 0.003 0.326 0.002 0.000 -cond_signal 0.09 61.030 1825 0.033 0.475 0.009 0.000 -rw_rdlock 0.01 7.179 1826 0.004 0.014 0.003 0.000 -rw_unlock 0.01 6.548 1827 0.004 0.014 0.003 0.000 -rw_wrlock 0.00 0.004 1 0.004 0.004 0.004 0.000 - - TNF server-side profile for MT-Orbix without filters for 20000 calls - - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -cond_timedwait 1.25 923.527 797 1.159 20.219 0.324 0.028 -mutex_lock 0.21 153.839 56435 0.003 4.342 0.002 0.000 -mutex_unlock 0.20 149.208 56433 0.003 3.559 0.002 0.000 -cond_signal 0.03 21.506 809 0.027 1.826 0.003 0.002 -rw_unlock 0.02 16.058 3224 0.005 2.915 0.003 0.001 -rw_rdlock 0.02 11.924 3221 0.004 0.087 0.003 0.000 -rw_wrlock 0.00 0.010 2 0.005 0.005 0.004 0.000 - - TNF server-side profile for MT-Orbix with thread-per-request for 20000 calls - - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 0.55 797.890 57618 0.014 4.624 0.002 0.000 -cond_timedwait 0.52 748.560 478 1.566 3.918 0.222 0.019 -mutex_unlock 0.36 514.627 57616 0.009 3.975 0.002 0.000 -cond_signal 0.02 24.216 1151 0.021 1.161 0.002 0.001 -rw_rdlock 0.01 13.120 2301 0.006 1.180 0.003 0.001 -rw_unlock 0.01 10.575 2307 0.005 0.316 0.003 0.000 -thr_sigsetmask 0.00 1.949 30 0.065 1.064 0.013 0.035 -rw_wrlock 0.00 0.033 6 0.006 0.008 0.004 0.001 - - - diff --git a/TAO/IIOP/test/results/TAO b/TAO/IIOP/test/results/TAO deleted file mode 100644 index de4a7bf23ae..00000000000 --- a/TAO/IIOP/test/results/TAO +++ /dev/null @@ -1,92 +0,0 @@ -Cubit results over Ethernet with 20,000 calls ---------------------------------------------- - - Clients Latency (ms) Calls/Sec - -TAO reactive 1 1.172 853 - 2 1.342 745 - 3 1.902 525 - -TAO threaded version 1 1.174 851 - 2 1.219 820 - 3 1.600 625 - - -Cubit results over ATM with 20,000 calls ---------------------------------------------- - - Clients Latency (ms) Calls/Sec - -TAO reactive 1 1.161 861 - 2 1.302 768 - 3 1.732 577 - -TAO threaded version 1 1.170 854 - 2 1.3 769 - 3 1.600 625 - - -Cubit results over ATM after optimizations with 20,000 calls ------------------------------------------------------------- - - Clients Latency (ms) Calls/Sec - -TAO reactive 1 1.127 887 - 2 1.238 807 - 3 1.501 666 - -TAO threaded version 1 1.057 946 - 2 1.225 816 - 3 1.471 679 - -Prime_Factor results over ATM with 20,000 calls -------------------------------------------------- - - Clients Latency (ms) Calls/Sec - -TAO reactive 1 7.407 135 - 2 13.7 73 - 3 19.7 51 - -TAO threaded version 1 7.389 135 - 2 8.080 124 - 3 10.726 93 - -IO-bound results over ATM with 20,000 calls --------------------------------------------- - - Clients Latency (ms) Calls/Sec - -TAO reactive 1 6.404 156 - 2 11.909 83 - 3 17.324 57 - -TAO threaded version 1 6.378 156 - 2 6.449 155 - 3 6.500 153 - - - - - Sample client-side profile for TAO for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -rw_rdlock 0.40 146.579 20006 0.007 1.200 0.005 0.000 -rw_unlock 0.25 91.386 20009 0.005 0.058 0.004 0.000 -mutex_lock 0.06 21.087 5265 0.004 0.178 0.002 0.000 -mutex_unlock 0.04 14.372 5271 0.003 0.075 0.002 0.000 -rw_wrlock 0.00 0.045 3 0.015 0.034 0.005 0.008 - - - Sample server-side profile for TAO for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 1.12 154.491 54507 0.003 0.140 0.002 0.000 -mutex_unlock 1.06 145.638 54508 0.003 0.310 0.002 0.000 -rw_rdlock 0.27 37.265 6813 0.005 0.037 0.004 0.000 -rw_unlock 0.20 27.792 6813 0.004 0.045 0.004 0.000 - diff --git a/TAO/IIOP/test/results/Visibroker b/TAO/IIOP/test/results/Visibroker deleted file mode 100644 index 8d6bb2457c7..00000000000 --- a/TAO/IIOP/test/results/Visibroker +++ /dev/null @@ -1,79 +0,0 @@ -Cubit results over Ethernet with 20,000 calls ---------------------------------------------- - - Clients Latency (ms) Calls/Sec - - -Visibroker reactive 1 1.167 856 - 2 1.39 718 - 3 1.664 600 - -Visibroker thr-per-connection 1 1.077 928 - 2 1.228 814 - 3 1.789 558 - - - -Cubit results over ATM with 20,000 calls ----------------------------------------- - - Clients Latency (ms) Calls/Sec - -Visibroker reactive 1 1.195 836 - 2 1.241 805 - 3 1.56 641 - -Visibroker thr-per-connection 1 1.060 943 - 2 1.327 753 - 3 2.108 474 - - -Prime_Factor results over ATM with 20,000 calls ------------------------------------------------ - - Clients Latency (ms) Calls/Sec - -Visibroker reactive 1 7.43 134 - 2 13.652 73 - 3 17.738 56 - -Visibroker thr-per-connection 1 7.371 135 - 2 8.561 116 - 3 11.376 87 - -IO-intensive results over ATM with 20,000 calls ------------------------------------------------ - - Clients Latency (ms) Calls/Sec - -Visibroker reactive 1 6.424 155 - 2 11.895 84 - 3 17.468 57 - -Visibroker thr-per-connection 1 6.41 156 - 2 6.496 154 - 3 6.524 153 - - - - - TNF client-side profile for Visibroker for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_unlock 1.31 188.930 61797 0.003 1.027 0.002 0.000 -mutex_lock 1.21 175.465 61790 0.003 0.330 0.002 0.000 - - - TNF server-side profile for Visibroker for 20000 calls - - Profile - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 0.18 165.141 60432 0.003 0.501 0.002 0.000 -mutex_unlock 0.16 153.891 60432 0.003 0.373 0.002 0.000 - - diff --git a/TAO/IIOP/test/results/orbs.xls b/TAO/IIOP/test/results/orbs.xls deleted file mode 100644 index 149078dd383..00000000000 Binary files a/TAO/IIOP/test/results/orbs.xls and /dev/null differ diff --git a/TAO/IIOP/test/svr.cpp b/TAO/IIOP/test/svr.cpp deleted file mode 100644 index f96a537dbb4..00000000000 --- a/TAO/IIOP/test/svr.cpp +++ /dev/null @@ -1,214 +0,0 @@ -// $Id$ - -// @(#)svr.cpp 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: simple IIOP server for "cubit.idl" interface. -// -// Starts up, builds an objref, prints its string in debug mode, -// listens for messages, responds to them. -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -#include "ace/Get_Opt.h" -#include "ace/Log_Msg.h" - -#include "corba/orb.h" -#include "corba/debug.h" -#include "connect.h" - -#include "cubit_i.h" - -extern void -print_exception (const CORBA_Exception *, const char *, FILE *f=stdout); - -// Global Variables -CORBA_String key = (CORBA_String)"key0"; -int num_of_objs = 1; - -// = TITLE -// Parses the command line arguments and returns an error status -// -// = DESCRIPTION -// This method parses the command line arguments -int parse_args(int argc, char *argv[]) -{ - ACE_Get_Opt opts (argc, argv, "dk:n:"); - int c; - - while ((c = opts ()) != -1) - switch (c) { - - case 'd': // debug flag - TAO_debug_level++; - continue; - - case 'k': // key (str) - key = (CORBA_String) opts.optarg; - continue; - - case 'n': // idle seconds b4 exit - num_of_objs = ACE_OS::atoi(opts.optarg); - continue; - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-k {object_key}]" - "\n", argv [0] - ); - return 1; - } - - return 0; // Indicates successful parsing of command line -} - - -// -// Standard command line parsing utilities used. -// -int -main (int argc, char *argv[]) -{ - CORBA_Environment env; - CORBA_Object_ptr obj = 0; - CORBA_ORB_ptr orb_ptr; - CORBA_BOA_ptr oa_ptr; - char *orb_name = "internet"; - int idle = -1; - - orb_ptr = CORBA_ORB_init (argc, argv, orb_name, env); - if (env.exception () != 0) { - print_exception (env.exception (), "ORB init"); - return 1; - } - - // Initialize the Basic Object Adapter - oa_ptr = orb_ptr->BOA_init(argc, argv, "ROA"); - if (oa_ptr == 0) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to initialize the BOA.\n"), 1); - - - // - // Parse remaining command line and verify parameters. - // - parse_args(argc, argv); - - // Create implementation object with user specified key - Cubit_i_ptr *my_cubit = new Cubit_i_ptr[num_of_objs]; - for (int ndx = 0; ndx < num_of_objs; ndx++) - { - CORBA_String obj_str = CORBA_string_alloc(ACE_OS::strlen ((char *)key)+2); - sprintf(obj_str, "%s%d", (char*)key, ndx); - my_cubit[ndx] = new Cubit_i(obj_str); - if (my_cubit[ndx] == 0) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to create implementation object&d\n", ndx), 2); - - if (TAO_debug_level >= 1) - { - // Why are we getting the BOA_ptr from here when we've already - // got it above? - CORBA_OctetSeq obj_key; - obj_key.buffer = (CORBA_Octet *) obj_str; - obj_key.length = obj_key.maximum = ACE_OS::strlen (obj_str); - - if (oa_ptr->find(obj_key, obj) == -1) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to locate object with key '%s', %p\n", key), 3); - - // - // Stringify the objref we'll be implementing, and - // print it to stdout. Someone will take that string - // and give it to some client. Then release the object. - // - CORBA_String str; - - str = orb_ptr->object_to_string (obj, env); - if (env.exception () != 0) { - print_exception (env.exception (), "object2string"); - return 1; - } - ACE_OS::puts ((char *)str); - ACE_OS::fflush (stdout); - dmsg1 ("Object Created at: '%ul'", obj); - dmsg1 ("listening as object '%s'", str); - - } - CORBA_string_free(obj_str); - } -// Cubit_i_ptr my_cubit = new Cubit_i(key); -// if (my_cubit1 == 0) -// ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to create implementation object\n"), 2); - -/* if (TAO_debug_level >= 1) - { - // Why are we getting the BOA_ptr from here when we've already - // got it above? - CORBA_OctetSeq obj_key; - obj_key.buffer = (CORBA_Octet *) key; - obj_key.length = obj_key.maximum = ACE_OS::strlen ((char *)key); - - if (oa_ptr->find(obj_key, obj) == -1) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to locate object with key '%s', %p\n", key), 3); - - // - // Stringify the objref we'll be implementing, and - // print it to stdout. Someone will take that string - // and give it to some client. Then release the object. - // - CORBA_String str; - - str = orb_ptr->object_to_string (obj, env); - if (env.exception () != 0) { - print_exception (env.exception (), "object2string"); - return 1; - } - ACE_OS::puts ((char *)str); - ACE_OS::fflush (stdout); - dmsg1 ("listening as object '%s'", str); - - obj_key.buffer = (CORBA_Octet *)"key1"; - obj_key.length = obj_key.maximum = 4; - if (oa_ptr->find(obj_key, obj) == -1) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to locate object with key '%s', %p\n", key), 3); - - str = orb_ptr->object_to_string (obj, env); - if (env.exception () != 0) { - print_exception (env.exception (), "object2string"); - return 1; - } - ACE_OS::puts ((char *)str); - ACE_OS::fflush (stdout); - dmsg1 ("listening as object '%s'", str); - } -*/ - // Handle requests for this object until we're killed, or one of - // the methods asks us to exit. - // - int terminationStatus = 0; - - -#if !defined(USE_HOMEBREW_EVENT_LOOP) - ACE_Reactor::run_event_loop(); -#else - while (1) - { - int result = params->reactor()->handle_events (); - - if (result == -1) - { - terminationStatus = -1; - break; - } - } -#endif - - // - // Shut down the OA -- recycles all underlying resources (e.g. file - // descriptors, etc). - // - oa_ptr->clean_shutdown (env); - return 0; -} diff --git a/TAO/IIOP/test/test.mak b/TAO/IIOP/test/test.mak deleted file mode 100644 index a27147d5f32..00000000000 --- a/TAO/IIOP/test/test.mak +++ /dev/null @@ -1,463 +0,0 @@ -# Microsoft Developer Studio Generated NMAKE File, Format Version 4.20 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -!IF "$(CFG)" == "" -CFG=server - Win32 Debug -!MESSAGE No configuration specified. Defaulting to server - Win32 Debug. -!ENDIF - -!IF "$(CFG)" != "client - Win32 Release" && "$(CFG)" != "client - Win32 Debug"\ - && "$(CFG)" != "server - Win32 Release" && "$(CFG)" != "server - Win32 Debug" -!MESSAGE Invalid configuration "$(CFG)" specified. -!MESSAGE You can specify a configuration when running NMAKE on this makefile -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "test.mak" CFG="server - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "client - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "client - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE "server - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "server - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE -!ERROR An invalid configuration is specified. -!ENDIF - -!IF "$(OS)" == "Windows_NT" -NULL= -!ELSE -NULL=nul -!ENDIF -################################################################################ -# Begin Project -# PROP Target_Last_Scanned "server - Win32 Debug" -RSC=rc.exe -CPP=cl.exe - -!IF "$(CFG)" == "client - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "client\Release" -# PROP BASE Intermediate_Dir "client\Release" -# PROP BASE Target_Dir "client" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Release" -# PROP Target_Dir "client" -OUTDIR=. -INTDIR=.\Release - -ALL : "$(OUTDIR)\client.exe" - -CLEAN : - -@erase "$(INTDIR)\clnt.obj" - -@erase "$(INTDIR)\cubitC.obj" - -@erase "$(OUTDIR)\client.exe" - -"$(INTDIR)" : - if not exist "$(INTDIR)/$(NULL)" mkdir "$(INTDIR)" - -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c -# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\proto\include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c -CPP_PROJ=/nologo /MD /W3 /GX /O2 /I "..\proto\include" /D "WIN32" /D "NDEBUG"\ - /D "_CONSOLE" /Fp"$(INTDIR)/client.pch" /YX /Fo"$(INTDIR)/" /c -CPP_OBJS=.\Release/ -CPP_SBRS=.\. -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -BSC32_FLAGS=/nologo /o"$(OUTDIR)/client.bsc" -BSC32_SBRS= \ - -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 ace.lib ..\lib\TAO.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -LINK32_FLAGS=ace.lib ..\lib\TAO.lib kernel32.lib user32.lib gdi32.lib\ - winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib\ - uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:no\ - /pdb:"$(OUTDIR)/client.pdb" /machine:I386 /out:"$(OUTDIR)/client.exe" -LINK32_OBJS= \ - "$(INTDIR)\clnt.obj" \ - "$(INTDIR)\cubitC.obj" - -"$(OUTDIR)\client.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ELSEIF "$(CFG)" == "client - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "client\Debug" -# PROP BASE Intermediate_Dir "client\Debug" -# PROP BASE Target_Dir "client" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Debug" -# PROP Target_Dir "client" -OUTDIR=. -INTDIR=.\Debug - -ALL : "$(OUTDIR)\client.exe" - -CLEAN : - -@erase "$(INTDIR)\clnt.obj" - -@erase "$(INTDIR)\cubitC.obj" - -@erase "$(INTDIR)\vc40.idb" - -@erase "$(INTDIR)\vc40.pdb" - -@erase "$(OUTDIR)\client.exe" - -@erase "$(OUTDIR)\client.ilk" - -@erase "$(OUTDIR)\client.pdb" - -"$(INTDIR)" : - if not exist "$(INTDIR)/$(NULL)" mkdir "$(INTDIR)" - -# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\proto\include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c -CPP_PROJ=/nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\proto\include" /D "WIN32" /D\ - "_DEBUG" /D "_CONSOLE" /Fp"$(INTDIR)/client.pch" /YX /Fo"$(INTDIR)/"\ - /Fd"$(INTDIR)/" /c -CPP_OBJS=.\Debug/ -CPP_SBRS=.\. -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -BSC32_FLAGS=/nologo /o"$(OUTDIR)/client.bsc" -BSC32_SBRS= \ - -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 -# ADD LINK32 aced.lib ..\lib\TAO.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 -LINK32_FLAGS=aced.lib ..\lib\TAO.lib kernel32.lib user32.lib gdi32.lib\ - winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib\ - uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes\ - /pdb:"$(OUTDIR)/client.pdb" /debug /machine:I386 /out:"$(OUTDIR)/client.exe" -LINK32_OBJS= \ - "$(INTDIR)\clnt.obj" \ - "$(INTDIR)\cubitC.obj" - -"$(OUTDIR)\client.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ELSEIF "$(CFG)" == "server - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "server\Release" -# PROP BASE Intermediate_Dir "server\Release" -# PROP BASE Target_Dir "server" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Release" -# PROP Target_Dir "server" -OUTDIR=. -INTDIR=.\Release - -ALL : "$(OUTDIR)\server.exe" - -CLEAN : - -@erase "$(INTDIR)\cubit_i.obj" - -@erase "$(INTDIR)\cubitS.obj" - -@erase "$(INTDIR)\svr.obj" - -@erase "$(OUTDIR)\server.exe" - -"$(INTDIR)" : - if not exist "$(INTDIR)/$(NULL)" mkdir "$(INTDIR)" - -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c -# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\proto\include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c -CPP_PROJ=/nologo /MD /W3 /GX /O2 /I "..\proto\include" /D "WIN32" /D "NDEBUG"\ - /D "_CONSOLE" /Fp"$(INTDIR)/server.pch" /YX /Fo"$(INTDIR)/" /c -CPP_OBJS=.\Release/ -CPP_SBRS=.\. -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -BSC32_FLAGS=/nologo /o"$(OUTDIR)/server.bsc" -BSC32_SBRS= \ - -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 ace.lib ..\lib\TAO.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -LINK32_FLAGS=ace.lib ..\lib\TAO.lib kernel32.lib user32.lib gdi32.lib\ - winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib\ - uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:no\ - /pdb:"$(OUTDIR)/server.pdb" /machine:I386 /out:"$(OUTDIR)/server.exe" -LINK32_OBJS= \ - "$(INTDIR)\cubit_i.obj" \ - "$(INTDIR)\cubitS.obj" \ - "$(INTDIR)\svr.obj" - -"$(OUTDIR)\server.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ELSEIF "$(CFG)" == "server - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "server\Debug" -# PROP BASE Intermediate_Dir "server\Debug" -# PROP BASE Target_Dir "server" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Debug" -# PROP Target_Dir "server" -OUTDIR=. -INTDIR=.\Debug - -ALL : "$(OUTDIR)\server.exe" - -CLEAN : - -@erase "$(INTDIR)\cubit_i.obj" - -@erase "$(INTDIR)\cubitS.obj" - -@erase "$(INTDIR)\svr.obj" - -@erase "$(INTDIR)\vc40.idb" - -@erase "$(INTDIR)\vc40.pdb" - -@erase "$(OUTDIR)\server.exe" - -@erase "$(OUTDIR)\server.ilk" - -@erase "$(OUTDIR)\server.pdb" - -"$(INTDIR)" : - if not exist "$(INTDIR)/$(NULL)" mkdir "$(INTDIR)" - -# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\proto\include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c -CPP_PROJ=/nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\proto\include" /D "WIN32" /D\ - "_DEBUG" /D "_CONSOLE" /Fp"$(INTDIR)/server.pch" /YX /Fo"$(INTDIR)/"\ - /Fd"$(INTDIR)/" /c -CPP_OBJS=.\Debug/ -CPP_SBRS=.\. -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -BSC32_FLAGS=/nologo /o"$(OUTDIR)/server.bsc" -BSC32_SBRS= \ - -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 -# ADD LINK32 aced.lib ..\lib\TAO.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 -LINK32_FLAGS=aced.lib ..\lib\TAO.lib kernel32.lib user32.lib gdi32.lib\ - winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib\ - uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes\ - /pdb:"$(OUTDIR)/server.pdb" /debug /machine:I386 /out:"$(OUTDIR)/server.exe" -LINK32_OBJS= \ - "$(INTDIR)\cubit_i.obj" \ - "$(INTDIR)\cubitS.obj" \ - "$(INTDIR)\svr.obj" - -"$(OUTDIR)\server.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ENDIF - -.c{$(CPP_OBJS)}.obj: - $(CPP) $(CPP_PROJ) $< - -.cpp{$(CPP_OBJS)}.obj: - $(CPP) $(CPP_PROJ) $< - -.cxx{$(CPP_OBJS)}.obj: - $(CPP) $(CPP_PROJ) $< - -.c{$(CPP_SBRS)}.sbr: - $(CPP) $(CPP_PROJ) $< - -.cpp{$(CPP_SBRS)}.sbr: - $(CPP) $(CPP_PROJ) $< - -.cxx{$(CPP_SBRS)}.sbr: - $(CPP) $(CPP_PROJ) $< - -################################################################################ -# Begin Target - -# Name "client - Win32 Release" -# Name "client - Win32 Debug" - -!IF "$(CFG)" == "client - Win32 Release" - -!ELSEIF "$(CFG)" == "client - Win32 Debug" - -!ENDIF - -################################################################################ -# Begin Source File - -SOURCE=.\clnt.cpp -DEP_CPP_CLNT_=\ - "..\..\..\ace\config-win32.h"\ - ".\cubitC.h"\ - {$(INCLUDE)}"\ace\ACE.h"\ - {$(INCLUDE)}"\ace\ACE.i"\ - {$(INCLUDE)}"\ace\Auto_Ptr.cpp"\ - {$(INCLUDE)}"\ace\Auto_Ptr.h"\ - {$(INCLUDE)}"\ace\Auto_Ptr.i"\ - {$(INCLUDE)}"\ace\config-win32-common.h"\ - {$(INCLUDE)}"\ace\config.h"\ - {$(INCLUDE)}"\ace\Get_Opt.h"\ - {$(INCLUDE)}"\ace\Get_Opt.i"\ - {$(INCLUDE)}"\ace\Log_Msg.h"\ - {$(INCLUDE)}"\ace\Log_Priority.h"\ - {$(INCLUDE)}"\ace\Log_Record.h"\ - {$(INCLUDE)}"\ace\Log_Record.i"\ - {$(INCLUDE)}"\ace\Object_Manager.h"\ - {$(INCLUDE)}"\ace\Object_Manager.i"\ - {$(INCLUDE)}"\ace\OS.h"\ - {$(INCLUDE)}"\ace\OS.i"\ - {$(INCLUDE)}"\ace\SString.h"\ - {$(INCLUDE)}"\ace\SString.i"\ - {$(INCLUDE)}"\ace\stdcpp.h"\ - {$(INCLUDE)}"\ace\Trace.h"\ - {$(INCLUDE)}"\ace\ws2tcpip.h"\ - -NODEP_CPP_CLNT_=\ - ".\corba\orb.h"\ - ".\corba\stub.h"\ - - -"$(INTDIR)\clnt.obj" : $(SOURCE) $(DEP_CPP_CLNT_) "$(INTDIR)" - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\cubitC.cpp -DEP_CPP_CUBIT=\ - ".\cubitC.h"\ - -NODEP_CPP_CUBIT=\ - ".\corba\orb.h"\ - ".\corba\stub.h"\ - - -"$(INTDIR)\cubitC.obj" : $(SOURCE) $(DEP_CPP_CUBIT) "$(INTDIR)" - - -# End Source File -# End Target -################################################################################ -# Begin Target - -# Name "server - Win32 Release" -# Name "server - Win32 Debug" - -!IF "$(CFG)" == "server - Win32 Release" - -!ELSEIF "$(CFG)" == "server - Win32 Debug" - -!ENDIF - -################################################################################ -# Begin Source File - -SOURCE=.\cubitS.cpp -DEP_CPP_CUBITS=\ - ".\cubitC.cpp"\ - ".\cubitC.h"\ - ".\cubitS.h"\ - ".\method_db.i"\ - -NODEP_CPP_CUBITS=\ - ".\connect.h"\ - ".\corba\debug.h"\ - ".\corba\optable.h"\ - ".\corba\orb.h"\ - ".\corba\stub.h"\ - ".\iiopobj.h"\ - ".\params.h"\ - - -"$(INTDIR)\cubitS.obj" : $(SOURCE) $(DEP_CPP_CUBITS) "$(INTDIR)" - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\cubit_i.cpp -DEP_CPP_CUBIT_=\ - ".\cubit_i.h"\ - ".\cubitC.h"\ - ".\cubitS.h"\ - -NODEP_CPP_CUBIT_=\ - ".\connect.h"\ - ".\corba\orb.h"\ - ".\corba\stub.h"\ - ".\params.h"\ - - -"$(INTDIR)\cubit_i.obj" : $(SOURCE) $(DEP_CPP_CUBIT_) "$(INTDIR)" - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\svr.cpp -DEP_CPP_SVR_C=\ - "..\..\..\ace\config-win32.h"\ - ".\cubit_i.h"\ - ".\cubitC.h"\ - ".\cubitS.h"\ - {$(INCLUDE)}"\ace\ACE.h"\ - {$(INCLUDE)}"\ace\ACE.i"\ - {$(INCLUDE)}"\ace\Auto_Ptr.cpp"\ - {$(INCLUDE)}"\ace\Auto_Ptr.h"\ - {$(INCLUDE)}"\ace\Auto_Ptr.i"\ - {$(INCLUDE)}"\ace\config-win32-common.h"\ - {$(INCLUDE)}"\ace\config.h"\ - {$(INCLUDE)}"\ace\Get_Opt.h"\ - {$(INCLUDE)}"\ace\Get_Opt.i"\ - {$(INCLUDE)}"\ace\Log_Msg.h"\ - {$(INCLUDE)}"\ace\Log_Priority.h"\ - {$(INCLUDE)}"\ace\Log_Record.h"\ - {$(INCLUDE)}"\ace\Log_Record.i"\ - {$(INCLUDE)}"\ace\Object_Manager.h"\ - {$(INCLUDE)}"\ace\Object_Manager.i"\ - {$(INCLUDE)}"\ace\OS.h"\ - {$(INCLUDE)}"\ace\OS.i"\ - {$(INCLUDE)}"\ace\SString.h"\ - {$(INCLUDE)}"\ace\SString.i"\ - {$(INCLUDE)}"\ace\stdcpp.h"\ - {$(INCLUDE)}"\ace\Trace.h"\ - {$(INCLUDE)}"\ace\ws2tcpip.h"\ - -NODEP_CPP_SVR_C=\ - ".\connect.h"\ - ".\corba\debug.h"\ - ".\corba\orb.h"\ - ".\corba\stub.h"\ - - -"$(INTDIR)\svr.obj" : $(SOURCE) $(DEP_CPP_SVR_C) "$(INTDIR)" - - -# End Source File -# End Target -# End Project -################################################################################ diff --git a/TAO/IIOP/test/test.mdp b/TAO/IIOP/test/test.mdp deleted file mode 100644 index dc1aea7d5be..00000000000 Binary files a/TAO/IIOP/test/test.mdp and /dev/null differ diff --git a/TAO/IIOP/test/test1.cpp b/TAO/IIOP/test/test1.cpp deleted file mode 100644 index 753a3784e43..00000000000 --- a/TAO/IIOP/test/test1.cpp +++ /dev/null @@ -1,392 +0,0 @@ -// $Id$ - -// @(#)test1.cpp 1.4 95/09/28 -// Copyright 1995 by Sun Microsystems, Inc. -// All Rights Reserved -// -// TEST stubs for "test1" -// - -#include - -#include "test1.h" - - -// -// Define all the stubs ... it's a lot less error prone to do it with -// macros than by hand! -// -// NOTE: the "calldata" is exported for use by the skeletons. At some -// point skeletons will probably be fully abstracted; for now they aren't. -// -// Also, for some reason, name mangling is changed by the explicit -// declaration as "extern" -- if it's not done, linking fails. -// -#define DEFINE_TEST3(typename, truetype, truetypename) \ - static const TAO_Param_Data test1_ ## typename ## _paramdata [4] = { \ - { _tc_CORBA_ ## truetypename, PARAM_RETURN, 0 }, \ - { _tc_CORBA_ ## truetypename, PARAM_IN, 0 }, \ - { _tc_CORBA_ ## truetypename, PARAM_OUT, 0 }, \ - { _tc_CORBA_ ## truetypename, PARAM_INOUT, 0 }, \ - }; \ - \ - extern const TAO_Call_Data test1_ ## typename ## _calldata; \ - \ - const TAO_Call_Data test1_ ## typename ## _calldata = { \ - "test_" #typename, CORBA_B_TRUE, \ - 4, &test1_ ## typename ## _paramdata [0], \ - 0, 0, \ - }; \ - \ - CORBA_ ## truetype \ - test1_test_ ## typename (test1_ptr target, \ - CORBA_ ## truetype in_a1, \ - CORBA_ ## truetype &out_a2, \ - CORBA_ ## truetype &inout_a3, \ - CORBA_Environment &env) { \ - CORBA_ ## truetype _retval; \ - STUB_Object *_obj; \ - if (target->QueryInterface (IID_STUB_Object, (void **)&_obj) \ - != NOERROR) \ - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); \ - else { \ - _obj->do_call (env, &test1_ ## typename ## _calldata, \ - &_retval, &in_a1, &out_a2, &inout_a3); \ - _obj->Release (); \ - } \ - return _retval; \ - } - -// changed extern const calldata test1_ ## typename ## _calldata; -// to const calldata test1_ ## typename ## _calldata; \ - -// changed CORBA_ ## truetype _retval = 0; to changed CORBA_ ## truetype _retval; - -#define DEFINE_TEST(typename, truetype) \ - DEFINE_TEST3(typename, truetype, truetype) - - -// -// Generate a system exception, passing an operation ID that's -// not allowed by IIOP (much less this interface) and verifying -// that the server returns some kind of system exception. -// -static const TAO_Call_Data illegal_calldata = { - "+_illegal", CORBA_B_TRUE, - 0, 0, - 0, 0 -}; - -void -test_illegal (test1_ptr target, CORBA_Environment &env) -{ - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &illegal_calldata - ); - data->Release (); - } -} - - -extern const TAO_Call_Data test1_void_calldata; -const TAO_Call_Data test1_void_calldata = { - "test_void", CORBA_B_TRUE, - 0, 0, - 0, 0 -}; - -void -test1_test_void (test1_ptr target, CORBA_Environment &env) -{ - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &test1_void_calldata - ); - data->Release (); - } -} - -DEFINE_TEST (short, Short); -DEFINE_TEST (long, Long); -DEFINE_TEST (ushort, UShort); -DEFINE_TEST (ulong, ULong); - -#if defined(MIPS) -// -// NOTE: C/C++ compilers as a rule pass a "float" in the space that -// a "double" takes up. Conversions are evidently optional; portability -// forces the following "explicit temporary" hack to work on at least -// one MIPS platform, which converts the parameter to "double" and -// hence changes the binary representation. (Even if that is a compiler -// bug, it's probably required by now for binary compatibility!) -// -// A "-k ansi" compiler flag may be needed to get correct behaviour; -// passing the "in" parameters by reference apparently works too. At -// this time, none of these solutions is used by default. -// -// This stub-level hackery seems like it could be replaced inside of the -// stub interpreter, which could just manually convert "float" parameters -// (all of them) as special cases. But of course, that would slow the -// interpreter down on _every_ call, not just the ones that require it -// (such as this one). Tradeoffs! -// -static const TAO_Param_Data test1_float_paramdata [4] = { - { _tc_CORBA_Float , PARAM_RETURN , 0 }, - { _tc_CORBA_Float , PARAM_IN , 0 }, - { _tc_CORBA_Float , PARAM_OUT , 0 }, - { _tc_CORBA_Float , PARAM_INOUT , 0 } -}; - -extern const TAO_Call_Data test1_float_calldata; - -const TAO_Call_Data test1_float_calldata = { - "test_float", CORBA_B_TRUE, - 4 , &test1_float_paramdata [0], - 0 , 0 -}; - -CORBA_Float -test1_test_float ( - test1_ptr target, - CORBA_Float in_a1, - CORBA_Float &out_a2, - CORBA_Float &inout_a3, - CORBA_Environment &env -) -{ - CORBA_Float _retval; - - // These three temporaries required due to MIPS compiler bug - CORBA_Float _in_a1 = in_a1; - CORBA_Float _out_a2 = out_a2; - CORBA_Float _inout_a3 = inout_a3; - - target -> data -> do_call (env, - &test1_float_calldata, - &_retval, - &_in_a1, - &_out_a2, - &_inout_a3); - return _retval; -} - -#else -DEFINE_TEST (float, Float); -#endif // MIPS - - -DEFINE_TEST (double, Double); -DEFINE_TEST (boolean, Boolean); -DEFINE_TEST (char, Char); -DEFINE_TEST (octet, Octet); - -/* -CORBA_Any * -test1_test_any (test1_ptr target, - const CORBA_Any &in_a1, - CORBA_Any *&out_a2, - CORBA_Any &inout_a3, - CORBA_Environment &env) -{ - // XXX implement this stub! ... annoying that C++ mapping - // calls for so much special casing -} -*/ - - -DEFINE_TEST3 (TypeCode, TypeCode_ptr, TypeCode); -DEFINE_TEST3 (Principal, Principal_ptr, Principal); -DEFINE_TEST3 (Object, Object_ptr, Object); - -// NOTE: C++ mapping has "in" strings as "const", which doesn't -// show up in this macro ... -DEFINE_TEST3 (string, Char *, String); - -DEFINE_TEST (longlong, LongLong); -DEFINE_TEST (ulonglong, ULongLong); -DEFINE_TEST (wchar, WChar); - -// NOTE: C++ mapping has "in" strings as "const", which doesn't -// show up in this macro ... -DEFINE_TEST3 (wstring, WChar *, WString); - -#if !defined(NONNATIVE_LONGDOUBLE) -DEFINE_TEST (longdouble, LongDouble); -#endif - -#undef DEFINE_TEST - - -// -// Utility macros used to construct octet codes that are aligned -// on longword boundaries, and with a known byte order. This -// happens to use big endian encoding since it was convenient. -// (Longword alignment is a happy accident of the specification -// of OMG-IDL ... it could have been much worse!) -// -// It'd be much simpler to lay out such data in assembler! -// - -#if defined (WORDS_BIGENDIAN) -# define MAKE_BIG_LONG(a,b,c,d) \ - ((((a) & 0xff) << 24) | (((b) & 0xff) << 16) \ - | (((c) & 0xff) << 8) | ((d) & 0xff)) -# define BIG_ENDIAN_LONG(x) (x) - -#else // LITTLE_ENDIAN -# define MAKE_BIG_LONG(a,b,c,d) \ - ((((d) & 0xff) << 24) | (((c) & 0xff) << 16) \ - | (((b) & 0xff) << 8) | ((a) & 0xff)) -# define BYTE_FROM(n,integer) (((integer)>>(8*(n)))&0xff) -# define BIG_ENDIAN_LONG(integer) \ - MAKE_BIG_LONG (BYTE_FROM(3,integer), BYTE_FROM(2,integer),\ - BYTE_FROM(1,integer), BYTE_FROM(0,integer)) -#endif - - - -// -// "x1" exception typecode ... must be longword aligned -// -static CORBA_Long oc_x1 [] = { - 0, // big endian flag + padding - BIG_ENDIAN_LONG (29), // length of ID string + NUL - MAKE_BIG_LONG ('I', 'D', 'L', ':'), // bytes of ID string - MAKE_BIG_LONG ('E', 'n', 'g', '.'), - MAKE_BIG_LONG ('S', 'U', 'N', '.'), - MAKE_BIG_LONG ('C', 'O', 'M', '/'), - MAKE_BIG_LONG ('t', 'e', 's', 't'), - MAKE_BIG_LONG ('1', '/', 'x', '1'), - MAKE_BIG_LONG (':', '1', '.', '0'), - 0, - BIG_ENDIAN_LONG (1), // (empty) namelen + NUL - 0, - BIG_ENDIAN_LONG (1), // only one struct member - BIG_ENDIAN_LONG (1), // (empty) member name + NUL - 0, - BIG_ENDIAN_LONG (tk_long) -}; -static CORBA_TypeCode tc_x1 (tk_except, sizeof oc_x1, - (unsigned char *)&oc_x1, CORBA_B_FALSE); -CORBA_TypeCode_ptr _tc_test1_x1 = &tc_x1; - - - -// -// "x2" exception typecode ... must be longword aligned -// -static CORBA_Long oc_x2 [] = { - 0, // big endian flag + padding - BIG_ENDIAN_LONG (29), // length of ID string + NUL - MAKE_BIG_LONG ('I', 'D', 'L', ':'), // bytes of ID string - MAKE_BIG_LONG ('E', 'n', 'g', '.'), - MAKE_BIG_LONG ('S', 'U', 'N', '.'), - MAKE_BIG_LONG ('C', 'O', 'M', '/'), - MAKE_BIG_LONG ('t', 'e', 's', 't'), - MAKE_BIG_LONG ('1', '/', 'x', '2'), - MAKE_BIG_LONG (':', '1', '.', '0'), - 0, - BIG_ENDIAN_LONG (1), // (empty) namelen + NUL - 0, - BIG_ENDIAN_LONG (2), // two struct members - - BIG_ENDIAN_LONG (1), // (empty) member name + NUL - 0, - BIG_ENDIAN_LONG (tk_objref), - BIG_ENDIAN_LONG (29), // type ID + NUL - MAKE_BIG_LONG ('I', 'D', 'L', ':'), // bytes of ID string - MAKE_BIG_LONG ('o', 'm', 'g', '.'), - MAKE_BIG_LONG ('o', 'r', 'g', '/'), - MAKE_BIG_LONG ('C', 'O', 'R', 'B'), - MAKE_BIG_LONG ('A', '/', 'O', 'b'), - MAKE_BIG_LONG ('j', 'e', 'c', 't'), - MAKE_BIG_LONG (':', '1', '.', '0'), - 0, - - BIG_ENDIAN_LONG (1), // (empty) member name + NUL - 0, - BIG_ENDIAN_LONG (tk_long) -}; -static CORBA_TypeCode tc_x2 (tk_except, sizeof oc_x2, - (unsigned char *)&oc_x2, CORBA_B_FALSE); -CORBA_TypeCode_ptr _tc_test1_x2 = &tc_x2; - - -// -// parameter, exception, and call descriptions for "test_throw" -// -static const TAO_Param_Data test1_test_throw_paramdata [1] = { - { _tc_CORBA_Long, PARAM_IN, 0 } -}; - -static CORBA_TypeCode_ptr test1_test_throw_excepts [2] = { - &tc_x1, &tc_x2 -}; - -extern const TAO_Call_Data test1_test_throw_calldata; - -const TAO_Call_Data test1_test_throw_calldata = { - "test_throw", CORBA_B_TRUE, - 1, &test1_test_throw_paramdata [0], - 2, &test1_test_throw_excepts [0] -}; - -// -// "test_throw" stub -// -void -test1_test_throw ( - test1_ptr target, - CORBA_Long case_num, - CORBA_Environment &env // throw (x1, x2) -) -{ - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &test1_test_throw_calldata, - &case_num); - data->Release (); - } -} - -// -// PLEASE EXIT -// - -static const TAO_Call_Data test1_please_exit_calldata = { - "please_exit", CORBA_B_FALSE, - 0, 0, - 0, 0 -}; - -void -test1_please_exit ( - test1_ptr target, - CORBA_Environment &env -) -{ - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &test1_please_exit_calldata - ); - data->Release (); - } -} - diff --git a/TAO/IIOP/test/test1.h b/TAO/IIOP/test/test1.h deleted file mode 100644 index 63e409d36c3..00000000000 --- a/TAO/IIOP/test/test1.h +++ /dev/null @@ -1,126 +0,0 @@ -// $Id$ - -// @(#)test1.hh 1.2 95/09/12 -// Copyright 1995 by Sun Microsystems, Inc. -// All Rights Reserved -// -// TEST interface for "test1" -// - -#ifndef _TEST1_HH -#define _TEST1_HH - -#include -#include - - -#ifdef _MSC_VER -#pragma pack (push, 1) // VC++, known padding rules -#endif // VC++ - -typedef CORBA_UShort test1_ushort; -typedef CORBA_ULong test1_ulong; - -typedef CORBA_LongLong test1_longlong; -typedef CORBA_ULongLong test1_ulonglong; -typedef CORBA_LongDouble test1_longdouble; - -typedef CORBA_Object test1; -typedef test1 *test1_ptr; - -#define DECL_TEST(typename, truetype) \ - truetype \ - test1_test_ ## typename ( \ - test1_ptr target, \ - truetype in_a1, \ - truetype &out_a2, \ - truetype &inout_a3, \ - CORBA_Environment &env \ - ) - -void test_illegal (test1_ptr target, CORBA_Environment &env); -void test1_test_void (test1_ptr target, CORBA_Environment &env); - -DECL_TEST (short, CORBA_Short); -DECL_TEST (long, CORBA_Long); -DECL_TEST (ushort, CORBA_UShort); -DECL_TEST (ulong, CORBA_ULong); -DECL_TEST (float, CORBA_Float); -DECL_TEST (double, CORBA_Double); -DECL_TEST (boolean, CORBA_Boolean); -DECL_TEST (char, CORBA_Char); -DECL_TEST (octet, CORBA_Octet); - -CORBA_Any * -test1_test_any ( - test1_ptr target, - const CORBA_Any &in_a1, - CORBA_Any *&out_a2, - CORBA_Any &inout_a3, - CORBA_Environment &env -); - -DECL_TEST (TypeCode, CORBA_TypeCode_ptr); -DECL_TEST (Principal, CORBA_Principal_ptr); -DECL_TEST (Object, CORBA_Object_ptr); - -// NOTE: CORBA C++ mapping says the "in" string is const -DECL_TEST (string, CORBA_String); - -DECL_TEST (longlong, CORBA_LongLong); -DECL_TEST (ulonglong, CORBA_ULongLong); -DECL_TEST (wchar, CORBA_WChar); - -// NOTE: CORBA C++ mapping says the "in" string is const -DECL_TEST (wstring, CORBA_WString); - -DECL_TEST (longdouble, CORBA_LongDouble); - -#undef DECL_TEST - -extern CORBA_TypeCode_ptr _tc_test1_x1; - -class test1_x1 : public CORBA_UserException { - public: - CORBA_Long case_num; - - test1_x1 (CORBA_Long n) - : CORBA_UserException (_tc_test1_x1), case_num (n) - { } -}; - -extern CORBA_TypeCode_ptr _tc_test1_x2; - -class test1_x2 : public CORBA_UserException { - public: - CORBA_Object_ptr obj; - CORBA_Long case_num; - - test1_x2 (CORBA_Object_ptr obj1, - CORBA_Long n) - : CORBA_UserException (_tc_test1_x2), - obj (obj1), case_num (n) { } - - ~test1_x2 () - { CORBA_release (obj); } -}; - -void -test1_test_throw ( - test1_ptr target, - CORBA_Long case_num, - CORBA_Environment &env // throw (x1, x2) -); - -void -test1_please_exit ( - test1_ptr target, - CORBA_Environment &env -); - -#ifdef _MSC_VER -#pragma pack (pop) // VC++, go back to other padding rules -#endif // VC++ - -#endif // _TEST1_HH - diff --git a/TAO/IIOP/test/test1.idl b/TAO/IIOP/test/test1.idl deleted file mode 100644 index d47ab676ef5..00000000000 --- a/TAO/IIOP/test/test1.idl +++ /dev/null @@ -1,80 +0,0 @@ -// $Id$ - -// @(#)test1.idl 1.1 95/09/11 -// Copyright 1994-1995 by Sun Microsystems, Inc. -// -// TEST basic marshaling tests for all IDL primitive types, modes -// -// This test omits constructed types (struct, union, enum, sequence, and -// array types), and only tests very simple user defined exceptions. -// -// Values returned are well defined functions of the input values: -// -// * For numeric types (octet, short, long, longlong, float, double, -// longdouble, and unsigned variants) the value is cubed. -// * For Boolean, it's the negation. -// * For Any, TypeCode, Principal, Object, char and wchar, -// string and wstring, it's the input value. -// -// The "return" and "out" parameter is the function of the "in" parameter; -// the "inout" parameter is the function of its original value. -// -// The "echo" test has all output values be the input values, with no -// changes to the bit patterns originally transmitted. While easier to -// use to identify some kinds of problem, it is not as complete a test. -// - -#define DECL_TEST(type) \ - type test_ ## type ( in type a1, out type a2, inout type a3) - -#pragma prefix "Eng.SUN.COM" // only for Sun-defined interfaces - -interface test1 { - void test_void (); - - typedef unsigned short ushort; - typedef unsigned long ulong; - - typedef long long longlong; - typedef unsigned long long ulonglong; - typedef long double longdouble; - - DECL_TEST (short); - DECL_TEST (long); - DECL_TEST (ushort); - DECL_TEST (ulong); - DECL_TEST (float); - DECL_TEST (double); - DECL_TEST (boolean); - DECL_TEST (char); - DECL_TEST (octet); - DECL_TEST (any); - DECL_TEST (TypeCode); - DECL_TEST (Principal); - DECL_TEST (Object); // CORBA::Object - DECL_TEST (string); // unbounded string - - DECL_TEST (longlong); - DECL_TEST (ulonglong); - DECL_TEST (wchar); - DECL_TEST (wstring); // unbounded wstring - DECL_TEST (longdouble); - - // - // All cases, "case_num" in the exception is the same as the 'in' param - // * negative or zero, throws x1 - // * positive even cases, throws x2 with obj = null objref - // * positive odd cases, throws x2 with obj = target objref - // - exception x1 { long case_num; }; - exception x2 { Object obj; long case_num; }; - - void test_throw (in long case_num) raises (x1, x2); - - // - // Aid for test cleanup in case server's not told to quit after - // being idle for some time period - // - oneway void please_exit (); -}; - diff --git a/TAO/IIOP/test/test1_clnt.cpp b/TAO/IIOP/test/test1_clnt.cpp deleted file mode 100644 index ea6705afa1c..00000000000 --- a/TAO/IIOP/test/test1_clnt.cpp +++ /dev/null @@ -1,638 +0,0 @@ -// $Id$ - -// @(#)test1_clnt.cpp 1.5 95/09/24 -// Copyright 1995 by Sun Microsystems, Inc. -// All Rights Reserved -// -// TEST client driver for "test1" -// - -#ifdef USE_IOSTREAM -#include -#endif - -#include -#include -#include - -#if unix -# include - -#else // windows - -#endif // unix - -#include "test1.h" -#include - - -#if !defined (_WIN32) -extern char *optarg; // missing on some platforms -#endif - -extern void -print_exception (const CORBA_Exception *, const char *, FILE *f=stdout); - - -// -// All tests are specified so that the return value and "out" (second) -// parameters are easily tested functions of the "in" (first) parameter, -// and the "inout" (third) parameter is the same function the its -// initial value. Caller is expected to specify two different "in" -// values. This helps make the marshaled bits vary, and turn up a class -// of potential problems that'd be hidden if parameter order had no -// effect on the test. -// -// PERFORM_TEST calls a test for a given type, reporting in cases where -// the ORB or operation failed. The COMPARE symbol can be redefined -// to achieve different functions -- e.g. cubing numbers, identity, -// negation, etc. It should return true iff the correct result was -// returned. -// -// BAD_COMPARE_VALUES is to produce diagnostics when a test fails, -// showing the actual and expected values of returned parameters. -// This helps diagnose specific porting problems. -// -// The RELEASE symbol may be defined to free memory, eliminating client -// side memory leaks in the test. -// -#define RELEASE(X) // NOP by default -#define PERFORM_TEST(name,type,value1,value2) \ - { \ - CORBA_ ## type v1, v2, v3; \ - \ - v1 = (CORBA_ ## type)(value1); \ - v2 = 0; \ - v3 = (CORBA_ ## type)(value2); \ - \ - test_count++; \ - v1 = test1_test_ ## name (target, v1, v2, v3, env); \ - if (env.exception () != 0) { \ - print_exception (env.exception (), "perform test_" #name); \ - error_count++; \ - } else if (!COMPARE (CORBA_ ## type, v1, value1) \ - || !COMPARE (CORBA_ ## type, v2, value1) \ - || !COMPARE (CORBA_ ## type, v3, value2) ) { \ - ACE_OS::fprintf (stderr, "bad comparison, test_" #name "\n"); \ - BAD_COMPARE_VALUES(type,v1,v2,v3,value1,value2) \ - error_count++; \ - } \ - RELEASE (v1); RELEASE (v2); RELEASE (v3); \ - } - -// -// This messing about is because the ostream op << cannot always -// be used with all kinds of data ... e.g. LongDouble, TypeCode. -// -#ifdef USE_IOSTREAM -# define DO_IO(x) x -#else -# define DO_IO(x) -#endif -#define BAD_COMPARE_VALUE_OUT(type,v1,v2,v3,value1,value2) \ - DO_IO( cerr << " v1=" << v1; \ - cerr << " expecting " << EXPVAL(CORBA_ ## type, value1) << "\n"; \ - cerr << " v2=" << v2; \ - cerr << " expecting " << EXPVAL(CORBA_ ## type, value1) << "\n"; \ - cerr << " v3=" << v3; \ - cerr << " expecting " << EXPVAL(CORBA_ ## type, value2) << "\n"); -#define BAD_COMPARE_VALUES(type,v1,v2,v3,value1,value2) \ - BAD_COMPARE_VALUE_OUT(type,v1,v2,v3,value1,value2) - - -// -// test utility -- should be able to just use is_equivalent() directly -// but this implementation uses null pointers for nil, so this must -// check for nulls first. (May be noncompliant with C++ mapping!) -// -static CORBA_Boolean -compare_objrefs ( - CORBA_Object_ptr v1, - CORBA_Object_ptr v2 -) -{ - CORBA_Boolean temp; - CORBA_Environment env; - - if (v1 == v2) - return CORBA_B_TRUE; - - if (CORBA_is_nil (v1)) - return CORBA_is_nil (v2); - - temp = v1->_is_equivalent (v2, env); - if (env.exception () != 0) { - print_exception (env.exception (), "compare objref"); - return CORBA_B_FALSE; - } - return temp; -} - - -// -// Helper routine to help sure math (especially for floating point) -// gets done correctly. -// -template -Type cube (Type arg) -{ - Type temp = arg; - - temp = temp * arg; - temp = temp * arg; - return temp; -} - - -static int skip_longdouble = 0; - -// -// This just performs the tests ... -// -void -do_tests ( - test1_ptr target, - unsigned loop_count, - unsigned &test_count, - unsigned &error_count -) -{ - int count; - - for (count = 0; count < loop_count; count++) { - CORBA_Environment env; - CORBA_Environment env2; // XXX - - // - // test_void - // - test_count++; - test1_test_void (target, env); - if (env.exception () != 0) { - print_exception (env.exception (), "perform test_void"); - error_count++; - } - - // - // Numeric tests ... try some variety in computation, no real - // rationale in the choice of initial parameter values except - // not to use the same values all the time. - // -#define EXPVAL(type,original_value) ((type) cube((type)(original_value))) -#define COMPARE(type,retval,original_value) \ - ((retval) == EXPVAL(type, original_value)) - - PERFORM_TEST (octet, Octet, count + 29, count - 22); - - PERFORM_TEST (short, Short, count - 23, count + 19); - PERFORM_TEST (ushort, UShort, count + 23, count - 19); - - PERFORM_TEST (long, Long, count - 17, count + 20); - PERFORM_TEST (ulong, ULong, count + 17, count - 20); - -#if !defined (NONNATIVE_LONGLONG) - // don't try this on platforms that don't support - // math on longlongs ... - PERFORM_TEST (longlong, LongLong, count - 177, count + 3); - PERFORM_TEST (ulonglong, ULongLong, count + 177, count - 3); -#endif // !NONNATIVE_LONGLONG - -#if !defined (i386) - // - // XXX not sure what's wrong with the COMPARE macro with respect to - // floating point on x86, since fprintf shows the values basically - // look correct ... but these float/double tests fail. - // - PERFORM_TEST (float, Float, count - 0.29, count + 3.14159); - PERFORM_TEST (double, Double, count * 1.77, count * 2.71); -#endif // !defined (i386) - - -#ifndef NONNATIVE_LONGDOUBLE -#undef BAD_COMPARE_VALUES -#define BAD_COMPARE_VALUES(type,v1,v2,v3,value1,value2) // NOP - - // - // don't try this between two platforms that don't provide - // arithmetic support for LongDouble values ... - // - if (!skip_longdouble) { - PERFORM_TEST (longdouble, LongDouble, - count - 2.33, count * 3.14159); - } - -# undef BAD_COMPARE_VALUES -# define BAD_COMPARE_VALUES(type,v1,v2,v3,value1,value2) \ - BAD_COMPARE_VALUE_OUT(type,v1,v2,v3,value1,value2) -#endif // !NONNATIVE_LONGDOUBLE - -#undef COMPARE -#undef EXPVAL - - - // - // Boolean -- negation - // -#define EXPVAL(type,original_value) (!(type)(original_value)) -#define COMPARE(type,retval,original_value) \ - (((type)(retval)) == EXPVAL(type,original_value)) - - PERFORM_TEST (boolean, Boolean, - (count & 0x01) != 0, (count & 0x01) == 0); -#undef COMPARE -#undef EXPVAL - - // - // Char, WChar -- identity - // -#define EXPVAL(type,original_value) ((type)(original_value)) -#define COMPARE(type,retval,original_value) \ - (((type)(retval)) == EXPVAL(type,original_value)) - - PERFORM_TEST (char, Char, count + 26, count - 5); - PERFORM_TEST (wchar, WChar, count, count + 25); -#undef COMPARE -#undef EXPVAL - - // - // Object_ptr -- identity (special comparision) - // -#define EXPVAL(type,original_value) ((type)(original_value)) -#define COMPARE(type,retval,original_value) \ - (compare_objrefs (retval, original_value) == CORBA_B_TRUE) -#undef RELEASE -#define RELEASE(obj) \ - { CORBA_release (obj); } - - PERFORM_TEST (Object, Object_ptr, target, CORBA_Object::_nil ()); -#undef COMPARE -#undef EXPVAL - - // - // TypeCode_ptr -- identity (special comparision), and verifies - // that most of the built-in typecode constants exist. - // - // XXX should try this on all standard and system exceptions! - // - // XXX this currently tests only marshaling/unmarshaling of - // "no parameter" TypeCodes ... complex ones (objref, struct, - // union, enum, sequence, array, alias, exception) are _NOT_ - // currently attempted. - // - // XXX for the simple typecodes (string, wstring), the single - // "bound" parameter isn't exercised/verified as it should be. - // -#define EXPVAL(type,original_value) ((type)(original_value)) -#define COMPARE(type,retval,original) \ - (((retval) == (original)) || \ - ((retval)->_kind == (original)->_kind)) - -#undef RELEASE -#define RELEASE(tc) \ - { CORBA_release (tc); } - -#undef BAD_COMPARE_VALUES -#define BAD_COMPARE_VALUES(type,v1,v2,v3,value1,value2) // NOP - - { - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Null, _tc_CORBA_Void); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Short, _tc_CORBA_UShort); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Long, _tc_CORBA_ULong); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_LongLong, _tc_CORBA_ULongLong); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Float, _tc_CORBA_Double); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Boolean, _tc_CORBA_Octet); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Any, _tc_CORBA_TypeCode); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_LongDouble, _tc_CORBA_Principal); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Char, _tc_CORBA_String); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_WChar, _tc_CORBA_WString); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_LongDouble, _tc_CORBA_Octet); - - // - // Try all of the standard exception typecodes. - // - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_UNKNOWN, _tc_CORBA_BAD_PARAM); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_NO_MEMORY, _tc_CORBA_IMP_LIMIT); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_COMM_FAILURE, _tc_CORBA_INV_OBJREF); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_OBJECT_NOT_EXIST, _tc_CORBA_NO_PERMISSION); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_INTERNAL, _tc_CORBA_MARSHAL); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_INITIALIZE, _tc_CORBA_NO_IMPLEMENT); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_BAD_TYPECODE, _tc_CORBA_BAD_OPERATION); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_NO_RESOURCES, _tc_CORBA_NO_RESPONSE); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_PERSIST_STORE, _tc_CORBA_BAD_INV_ORDER); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_TRANSIENT, _tc_CORBA_FREE_MEM); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_INV_IDENT, _tc_CORBA_INV_FLAG); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_INTF_REPOS, _tc_CORBA_BAD_CONTEXT); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_OBJ_ADAPTER, _tc_CORBA_DATA_CONVERSION); - - // - // All the built-in "user defined" system exceptions. - // - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_BadKind, _tc_CORBA_Bounds); - } -#undef COMPARE -#undef RELEASE - - // - // string (unbounded)-- identity (special comparision) - // -#define COMPARE(type,retval,original_value) \ - (strcmp ((char *)(retval), (char*)(original_value)) == 0) -#undef RELEASE -#define RELEASE(obj) CORBA_string_free(obj) - static const CORBA_Char str1 [] = "small"; - static const CORBA_Char str2 [] = - "relatively long string, constructed" - " with the aid of C++ implicit string" - " catenation, which simplifies much stuff"; - PERFORM_TEST (string, String, str1, str2); -#undef COMPARE -#undef RELEASE - - - // XXX any, principal, wstring ... output _is_ input - - - // - // Three test cases involve throwing user-defined exceptions. - // - { - CORBA_Exception *xp; - - // - // Case one: with parameter <= zero, must throw - // an "x1" exception whose "case_num" is that parameter - // - test_count++; - - test1_test_throw (target, -5, env); - if (env.exception () != 0) { - xp = env.exception (); - - if (strcmp ((char *)xp->id (), - (char *) _tc_test1_x1->id (env2)) != 0) { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 1, " - "wrong exception thrown (id = '%s')\n", - xp->id ()); - } else { - test1_x1 *xp2 = (test1_x1 *) xp; - - if (xp2->case_num != -5) { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 1, " - "wrong value (case_num = '%ld')\n", - xp2->case_num); - } - - // else, right exception was thrown - } - } else { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 1, " - "no exception thrown !!\n"); - } - - - // - // Case two: with positive odd parameter, must throw - // an "x2" exception whose obj is null, and whose case_num - // is that parameter - // - test_count++; - - test1_test_throw (target, 101, env); - if (env.exception () != 0) { - xp = env.exception (); - - if (strcmp ((char *)xp->id (), - (char *) _tc_test1_x2->id (env2)) != 0) { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 2, " - "wrong exception thrown (id = '%s')\n", - xp->id ()); - } else { - test1_x2 *xp2 = (test1_x2 *) xp; - - if (xp2->case_num != 101) { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 2, " - "wrong value (case_num = '%ld')\n", - xp2->case_num); - } - - if (!CORBA_is_nil (xp2->obj)) { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 2, " - "non-null objref thrown\n"); - } - - // else, right exception was thrown - } - } else { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 2, " - "no exception thrown !!\n"); - } - - -#if 0 -// 18-sept-95: commented this out. Work remains to be done in -// this area: (a) ServerRequest::target operation unimplemented, -// so for the servers of current interest this test is no help; -// (b) probable pointer leak in exceptions holding data. - - // - // Case three: with positive even parameter, must throw - // an "x2" exception whose obj is the target, and whose - // case_num is that parameter - // - test_count++; - - test1_test_throw (target, 42, env); - if (env.exception () != 0) { - xp = env.exception (); - - if (strcmp ((char *)xp->id (), - (char *) _tc_test1_x2->id (env2)) != 0) { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 3, " - "wrong exception thrown (id = '%s')\n", - xp->id ()); - } else { - test1_x2 *xp2 = (test1_x2 *) xp; - - if (xp2->case_num != 42) { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 3, " - "wrong value (case_num = '%ld')\n", - xp2->case_num); - } - - CORBA_Boolean status; - - status = target->_is_equivalent (xp2->obj, env); - - if (env.exception () != 0) { - error_count++; - print_exception (env.exception (), - "test_throw/3 call to is_equivalent"); - } else if (status != CORBA_B_TRUE) { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 3, " - "non-equivalent objref thrown\n"); - } - - // else, right exception was thrown - } - } else { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 3, " - "no exception thrown !!\n"); - } - - env.clear (); -#endif // 0 - - } - - // - // test_illegal -- generate a BAD_OPERATION system exception - // from the remote process - // - test_count++; - test_illegal (target, env); - if (env.exception () == 0 - || ACE_OS::strcmp ((char *) env.exception()->id(), - (char *) _tc_CORBA_BAD_OPERATION->id (env2)) != 0) { - ACE_OS::fprintf (stderr, "couldn't generate BAD_OPERATION exception\n"); - error_count++; - } - } -} - - -int -main (int argc, char *argv[]) -{ - CORBA_ORB_ptr orb_ptr; - CORBA_Environment env; - CORBA_Object_ptr objref = CORBA_Object::_nil(); - unsigned loop_count = 1; - unsigned tests = 0, errors = 0; - int exit_later = 0; - - orb_ptr = CORBA_ORB_init (argc, argv, "internet", env); - if (env.exception () != 0) { - dexc (env, "ORB initialisation"); - return 1; - } - - // - // Parse and verify parameters. - // - ACE_Get_Opt get_opt (argc, argv, "dln:O:x"); - int c; - - while ((c = get_opt ()) != -1) - switch (c) { - case 'd': // debug flag - TAO_debug_level++; - continue; - - case 'l': // skip "long double" test - skip_longdouble++; - continue; - - case 'n': // loop count - loop_count = (unsigned) ACE_OS::atoi (get_opt.optarg); - continue; - - case 'O': // stringified objref - { - objref = orb_ptr->string_to_object ( - (CORBA_String)get_opt.optarg, env); - if (env.exception () != 0) { - dexc (env, "string2object"); - return 1; - } - } - continue; - - case 'x': - exit_later++; - continue; - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-l]" - " [-n loopcount]" - " [-O objref]" - " [-x]" - "\n", argv [0] - ); - return 1; - } - - if (CORBA_is_nil (objref) == CORBA_B_TRUE) { - ACE_OS::fprintf (stderr, "%s: must identify non-null target objref\n", - argv [0]); - return 1; - } - - - do_tests (objref, loop_count, tests, errors); - - char *progname = ACE_OS::strrchr (argv [0], '/'); - - if (progname != 0) - progname += 1; - else - progname = argv [0]; - - ACE_OS::fprintf (stderr, "%s: %d loops, %d tests (%d errors)\n", - progname, loop_count, tests, errors); - - if (exit_later) { - test1_please_exit (objref, env); - if (env.exception () != 0) - print_exception (env.exception (), "test1_please_exit"); - } - - CORBA_release (objref); - - return errors != 0; -} diff --git a/TAO/IIOP/test/test1_svr.cpp b/TAO/IIOP/test/test1_svr.cpp deleted file mode 100644 index 64d548a189a..00000000000 --- a/TAO/IIOP/test/test1_svr.cpp +++ /dev/null @@ -1,672 +0,0 @@ -// $Id$ - -// @(#)test1_svr.cpp 1.7 95/09/25 -// Copyright 1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: simple IIOP server for "test1.idl" interface. -// -// Starts up, builds an objref, prints its string, listens for -// messages, responds to them. -// - -#include -#include -#include - -#if unix -# include // for getopt on some systems - -#else // windows - -#endif - -#include "test1.h" -#include -#include - -#include - - - -#if !defined (_WIN32) -extern char *optarg; // missing on some platforms -#endif - -// -// Skeleton code ... just a macro for a bunch of DSI-based method code, -// in lieu of having an IDL compmiler generate static skeletons. Static -// skeletons would be more efficient; most mallocation could go away. -// -// Use by: defining OPERATION macro, call DEFINE_SKEL3 as needed, then -// undef OPERATION. -// -// NOTE: "v1_copy" below is needed to work around a bug with the -// HP9000 G++ 2.6.3 compiler, with "LongLong". -// -// XXX this could probably be a template ... or could even be merged -// directly into the Dynamic Implementation Routine below. -// -// XXX we must currently use IN_COPY_VALUE since the memory consumed -// by the parameters must be deallocated by the ORB. When we get an -// updated version of DSI which provides "send it now" semantics, -// these should preallocate the values and not use IN_COPY_VALUE. A -// net decrease in malloc overhead can be had that way. (NVList should -// also get a public constructor, and a way to provide the buffer.) -// -#define DEFINE_SKEL3(name,truetype,truetypename) \ - static void \ - _test1_test_ ## name ( \ - CORBA_ServerRequest &req, \ - CORBA_Object_ptr obj, \ - CORBA_Environment &env \ - ) \ - { \ - CORBA_NVList_ptr nvlist; \ - CORBA_ ## truetype scratch = 0; \ - CORBA_Any temp_value (_tc_CORBA_ ## truetypename, \ - &scratch, CORBA_B_FALSE); \ - \ - req.orb ()->create_list (3, nvlist); \ - (void) nvlist->add_value (0, temp_value, \ - CORBA_IN_COPY_VALUE|CORBA_ARG_IN, env); \ - (void) nvlist->add_value (0, temp_value, \ - CORBA_IN_COPY_VALUE|CORBA_ARG_OUT, env); \ - (void) nvlist->add_value (0, temp_value, \ - CORBA_IN_COPY_VALUE|CORBA_ARG_INOUT, env); \ - \ - req.params (nvlist, env); \ - if (env.exception () != 0) { \ - dexc (env, "test1_test_" # name "skeleton, req.params"); \ - return; \ - } \ - \ - CORBA_ ## truetype *v1, *v2, *retval; \ - \ - v1 = (CORBA_ ## truetype *) nvlist->item (0)->value ()->value (); \ - v2 = new CORBA_ ## truetype; \ - *v2 = (CORBA_ ## truetype) OPERATION (*v1); \ - retval = new CORBA_ ## truetype; \ - *retval = (CORBA_ ## truetype) OPERATION (*v1); \ - \ - CORBA_Any_ptr any_val; \ - \ - any_val = nvlist->item (1)->value (); \ - any_val->replace (any_val->type (), v2, CORBA_B_TRUE, env); \ - if (env.exception () != 0) { \ - dexc (env, "test1_test_" # name "skeleton, val2 replace"); \ - return; \ - } \ - \ - v1 = (CORBA_ ## truetype *) nvlist->item (2)->value ()->value (); \ - CORBA_ ## truetype v1copy = *v1; \ - *v1 = (CORBA_ ## truetype) OPERATION (v1copy); \ - \ - any_val = new CORBA_Any (_tc_CORBA_ ## truetypename, \ - retval, CORBA_B_TRUE); \ - req.result (any_val, env); \ - if (env.exception () != 0) { \ - dexc (env, "test1_test_" # name "skeleton, result"); \ - return; \ - } \ - } \ - extern TAO_Call_Data test1_ ## name ## _calldata; - - -extern const TAO_Call_Data test1_void_calldata; - -static void -_test1_test_void (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - - req.orb ()->create_list (0, nvlist); - req.params (nvlist, env); - - if (env.exception () != 0) - dexc (env, "test_throw, get params"); -} - - -// -// Dynamic Skeleton methods for numeric types ... these all just -// cube their parameters in various permutations -// -template -Type cube (Type arg) -{ - Type temp = arg; - - temp = temp * arg; - temp = temp * arg; - return temp; -} - -#define OPERATION(n) cube(n) - -DEFINE_SKEL3 (octet, Octet, Octet) - -DEFINE_SKEL3 (short, Short, Short) -DEFINE_SKEL3 (ushort, UShort, UShort) - -DEFINE_SKEL3 (long, Long, Long) -DEFINE_SKEL3 (ulong, ULong, ULong) - -#if !defined (NONNATIVE_LONGLONG) - // don't try this on platforms that don't support - // math on longlongs ... -DEFINE_SKEL3 (longlong, LongLong, LongLong) -DEFINE_SKEL3 (ulonglong, ULongLong, ULongLong) -#endif // !NONNATIVE_LONGLONG - -DEFINE_SKEL3 (float, Float, Float) -DEFINE_SKEL3 (double, Double, Double) - -#if !defined (NONNATIVE_LONGDOUBLE) - // don't try this on platforms that don't support - // math on long doubles ... -DEFINE_SKEL3 (longdouble, LongDouble, LongDouble) -#endif // !NONNATIVE_LONGDOUBLE - -#undef OPERATION - -// -// Dynamic Skeleton methods for Boolean type ... just negates its -// parameters -// -#define OPERATION(x) (!(x)) -DEFINE_SKEL3 (boolean, Boolean, Boolean) -#undef OPERATION - -// -// For character types, output is same as input, no magic needed. -// -#define OPERATION(x) (x) -DEFINE_SKEL3 (char, Char, Char) -DEFINE_SKEL3 (wchar, WChar, WChar) -#undef OPERATION - -// -// For objref, typecode, output is same as input but duplication -// is needed -// -#define OPERATION(x) ((x) ? (x)->AddRef() : 0, x) -DEFINE_SKEL3 (Object, Object_ptr, Object) -DEFINE_SKEL3 (TypeCode, TypeCode_ptr, TypeCode) -#undef OPERATION - -// -// For string, output is copy of input -// -#define OPERATION(x) (CORBA_string_copy(x)) -DEFINE_SKEL3 (string, String, String) -#undef OPERATION - -// -// For wstring, output is copy of input -// -#define OPERATION(x) (CORBA_wstring_copy(x)) -DEFINE_SKEL3 (wstring, WString, WString) -#undef OPERATION - -// -// XXX IMPLEMENT THE REST OF THE DATA TYPES -// -// any, principal -- out is in -// - - -// -// All cases, "case_num" in the exception is the same as the 'in' param -// * negative or zero, throws x1 -// * positive even cases, throws x2 with obj = null objref -// * positive odd cases, throws x2 with obj = target objref -// -// exception x1 { long case_num; }; -// exception x2 { Object obj; long case_num; }; -// -// void test_throw (in long case_num) raises (x1, x2); -// - -extern const TAO_Call_Data test1_test_throw_calldata; - -static void -_test1_test_throw (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Long); - CORBA_Long value; - - req.orb ()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - - req.params (nvlist, env); - if (env.exception () != 0) - { - dexc (env, "test_throw, get params"); - return; - } - - value = *(CORBA_Long *)nv->value ()->value (); - if (env.exception () != 0) - { - dexc (env, "test_throw, param value"); - return; - } - - CORBA_Any_ptr any; - - if (value <= 0) - { - test1_x1 *x; - - x = new test1_x1 (value); - any = new CORBA_Any (_tc_test1_x1, x, CORBA_B_TRUE); - - } - else if (value & 0x01) - { - test1_x2 *x; - - x = new test1_x2 (CORBA_Object::_nil (), value); - any = new CORBA_Any (_tc_test1_x2, x, CORBA_B_TRUE); - - } - else - { -#if 0 - test1_x2 *x; - - x = new test1_x2 (req.oa()->target (), value); - any = new CORBA_Any (_tc_test1_x2, x, CORBA_B_TRUE); -#else - // - // XXX right now, we don't have a target() operation on the - // BOA ... needs to be added. Verify the client side memory - // leak of pointers embedded in user exceptions is fixed, too. - // - env.exception (new CORBA_IMP_LIMIT (COMPLETED_NO)); - return; -#endif - } - - req.exception (USER_EXCEPTION, any, env); -} - - -// -// This table is used to associate operation names with the Dynamic -// Skeleton method ... someday it could return static skeletons. -// -#define DECL_SKEL(name) \ - { & test1_ ## name ## _calldata, _test1_test_ ## name } - -static const TAO_Skel_Entry test1_operations [] = { - DECL_SKEL (void), - - DECL_SKEL (octet), - DECL_SKEL (char), - - DECL_SKEL (wchar), - - DECL_SKEL (short), - DECL_SKEL (ushort), - DECL_SKEL (long), - DECL_SKEL (ulong), - -#if !defined (NONNATIVE_LONGLONG) - // don't try this on platforms that don't support - // math on longlongs ... - DECL_SKEL (longlong), - DECL_SKEL (ulonglong), -#endif - - DECL_SKEL (float), - DECL_SKEL (double), - -#if !defined (NONNATIVE_LONGDOUBLE) - // don't try this on platforms that don't support - // math on long doubles ... - DECL_SKEL (longdouble), -#endif // !NONNATIVE_LONGDOUBLE - - DECL_SKEL (boolean), - - DECL_SKEL (Object), - DECL_SKEL (TypeCode), - - DECL_SKEL (string), - DECL_SKEL (wstring), - - { & test1_test_throw_calldata, _test1_test_throw }, - - { 0, 0 } -}; - - -// -// Dispatch to method code ... -// -// Knows how to interpret "context" to get target objref, and where to -// get second level skeletons for that target. Both of those operations -// will generally be abstracted (into library and stub code) so the main -// body of this routine would be invisible to most applications. -// -// However, there are applications that need to do this stuff themselves -// (like bridging between environments, e.g. different ORBs, languages, or -// other object systems). Everything needed to work without using an IDL -// compiler is a public, supported API. -// -static void -level1_skeleton ( - CORBA_OctetSeq &key, - CORBA_ServerRequest &req, - void *context, - CORBA_Environment &env -) -{ - // - // Verify that the target object and "this" object have the - // same key. Normally, this would be used to figure out - // which object was the target, and hence which operations - // vector to dispatch the request. - // - CORBA_OctetSeq *obj_key; - - obj_key = (CORBA_OctetSeq *) context; - if (obj_key->length != key.length - || ACE_OS::memcmp (obj_key->buffer, key.buffer, - obj_key->length) != 0) - { - env.exception (new CORBA_OBJECT_NOT_EXIST (COMPLETED_NO)); -#ifdef DEBUG - if (TAO_debug_level) - dmsg_opaque ("request to nonexistent object, key = ", - key.buffer, key.length); -#endif - return; - } - - // - // Find a "level 2 skeleton" for this operation, then - // call it with the right per-object state. - // - const TAO_Skel_Entry *entry; - CORBA_String opname; - - opname = req.op_name (); - for (entry = &test1_operations [0]; entry->op_descriptor; entry++) - { - if (strcmp ((char *)opname, entry->op_descriptor->opname) == 0) - { - // We pass a bogus object because this version of the cubit example is - // so tightly coupled that it doesn't use it. Future modifications will, - // hopefully! - CORBA_Object_ptr bogus_object = 0; - entry->impl_skeleton (req, bogus_object, env); - return; - } - } - - // - // XXX True top-level skeleton code would also have to understand - // the built-in operations: - // - // * _is_a (for narrowing tests) ... can be derived by searching an - // appropriately structured graph of level2 skeletons. - // - // * _non_existent ... if the level1 skeleton consults a module - // which understands object lifespans, this should be simple. - // - // * _get_interface ... could either (a) fail; (b) return the ref - // from some IFR; or most interestingly (c) return a ref to some - // code in this process that can answer all IFR queries from the - // skeleton data structures. - // - // * _get_implementation ... return some administrative hook to - // the object implementation: - // - // No other legal operations start with a character that's not an - // ASCII alphanumeric, for what it's worth. - // - // The skeleton might want to use data in the object key to find - // the objref's type; if it's integrated with object creation, and - // an per-process implementation repository, this should be easy. - // - - // - // bypass level 2 skeletons for this one ... - // - if (strcmp ((char *) opname, "please_exit") == 0) - { - dmsg ("I've been asked to shut down..."); - req.oa ()->please_shutdown (env); - dexc (env, "please_exit, please_shutdown"); - return; - } - - // - // No match. Operation not implemented; say so. - // - dmsg1 ("unknown operation, %s", opname); - env.exception (new CORBA_BAD_OPERATION (COMPLETED_NO)); -} - - -// -// Create and print the objref, listen for calls on it until done. -// -extern void -print_exception (const CORBA_Exception *, const char *, FILE *f=stdout); - -int -OA_listen (CORBA_ORB_ptr orb_ptr, - CORBA_BOA_ptr oa_ptr, - CORBA_String key, - int idle) -{ - // - // Create the object we'll be implementing. - // - CORBA_OctetSeq obj_key; - CORBA_Object_ptr obj; - CORBA_Environment env; - - obj_key.buffer = (CORBA_Octet *) key; - obj_key.length = obj_key.maximum = ACE_OS::strlen (key); - - obj = oa_ptr->create (obj_key, (CORBA_String) "", env); - if (env.exception () != 0) - { - print_exception (env.exception (), "BOA::create"); - return 1; - } - - // - // Stringify the objref we'll be implementing, and - // print it to stdout. Someone will take that string - // and give it to some client. - // - CORBA_String str; - - str = orb_ptr->object_to_string (obj, env); - if (env.exception () != 0) - { - print_exception (env.exception (), "object2string"); - return 1; - } - ACE_OS::puts ((char *)str); - ACE_OS::fflush (stdout); - dmsg1 ("listening as object '%s'", str); - - // - // Clean up -- "key" is sufficient to dispatch all requests. - // - CORBA_release (obj); - CORBA_string_free (str); - env.clear (); - - // - // Handle requests for this object until we're killed, or one of - // the methods makes us exit. - // - // NOTE: apart from registering the top level skeleton, the rest - // of this loop is exactly what BOA::run() does. It's here to - // show there's no magic. - // -#if 0 - oa_ptr->register_dir (level1_skeleton, &obj_key, env); -#else - oa_ptr->register_dir (oa_ptr->dispatch, &obj_key, env); -#endif - if (env.exception () != 0) - { - print_exception (env.exception (), "register_dir"); - return 1; - } - - for (;;) { - if (idle == -1) - oa_ptr->get_request (CORBA_B_FALSE, 0, env); - else - { - timeval tv; - - tv.tv_sec = idle; - tv.tv_usec = 0; - oa_ptr->get_request (CORBA_B_FALSE, &tv, env); - } - - CORBA_Exception_ptr xp; - - if ((xp = env.exception ()) != 0) - { - CORBA_Environment env2; // XXX - char *id; - - id = env.exception ()->id (); - - // - // We get BAD_INV_ORDER if we call get_request() after - // shutdown was initiated. Simpler to rely on that - // than to arrange any handshaking in this simple app. - // - if (strcmp (id, _tc_CORBA_BAD_INV_ORDER->id (env2)) == 0) - { - break; - - // - // Other exceptions are errors. - // - } - else - { - print_exception (env.exception (), "BOA::get_request"); - return 1; - } - } - env.clear (); - } - - // - // Shut down the OA -- recycles all underlying resources (e.g. file - // descriptors, etc). - // - // XXX shutdown is not quite the same as release, unless we want mem - // leaks to cause some rude failure modes. BOA just hasn't been - // updated yet to have any handshake about this though. - // - oa_ptr->Release (); - return 0; -} - - -// -// Standard command line parsing utilities used. -// -int -main (int argc, char *argv[]) -{ - CORBA_Environment env; - CORBA_ORB_ptr orb_ptr; - CORBA_BOA_ptr oa_ptr; - CORBA_String key = (CORBA_String) "elvis"; - char *oa_name = 0; - char *orb_name = "internet"; - int idle = -1; - - // - // Parse the command line, get options - // - ACE_Get_Opt get_opt (argc, argv, "dln:O:x"); - int c; - - while ((c = get_opt ()) != -1) - switch (c) - { - case 'd': // more debug noise - TAO_debug_level++; - continue; - - case 'i': // idle seconds b4 exit - idle = ACE_OS::atoi (get_opt.optarg); - continue; - - case 'k': // key (str) - key = (CORBA_String) get_opt.optarg; - continue; - - case 'o': // orb name - orb_name = get_opt.optarg; - continue; - - case 'p': // portnum - oa_name = get_opt.optarg; - continue; - - // XXX set debug filters ... - - // - // XXX ignore OMG-specified options ... hope nobody ever tries - // to use that "-ORB* param" and "-OA* param" syntax, it flies - // in the face of standard command parsing algorithms which - // require single-character option specifiers. - // - - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-i idle_seconds]" - " [-k object_key=elvis]" - " [-o orbname=internet]" - " [-p oa_name]" - "\n", argv [0] - ); - return 1; - } - - orb_ptr = CORBA_ORB_init (argc, argv, orb_name, env); - if (env.exception () != 0) { - print_exception (env.exception (), "ORB init"); - return 1; - } - - // - // The BOA may or may not actually be named ... - // - oa_ptr = CORBA_BOA::get_named_boa (orb_ptr, oa_name, env); - if (env.exception () != 0) { - print_exception (env.exception (), "OA init"); - return 1; - } - - return OA_listen (orb_ptr, oa_ptr, key, idle); -} - diff --git a/TAO/IIOP/test/tnf/Orbix.svr.summary b/TAO/IIOP/test/tnf/Orbix.svr.summary deleted file mode 100644 index 1c01995f7d5..00000000000 --- a/TAO/IIOP/test/tnf/Orbix.svr.summary +++ /dev/null @@ -1,32 +0,0 @@ - Profile for 10000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 0.04 8.505 3386 0.003 0.349 0.002 0.000 -mutex_unlock 0.04 8.205 3386 0.002 0.127 0.002 0.000 - - - Profile for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 0.01 8.875 3386 0.003 0.373 0.002 0.000 -mutex_unlock 0.01 8.353 3386 0.002 0.093 0.002 0.000 - - Profile for 30000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 0.02 8.979 3386 0.003 0.386 0.002 0.000 -mutex_unlock 0.02 8.465 3386 0.002 0.030 0.002 0.000 - - Profile for 40000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 0.01 8.849 3388 0.003 0.355 0.002 0.000 -mutex_unlock 0.01 7.937 3388 0.002 0.029 0.002 0.000 diff --git a/TAO/IIOP/test/tnf/clnt.summary b/TAO/IIOP/test/tnf/clnt.summary deleted file mode 100644 index bed4a22d35e..00000000000 --- a/TAO/IIOP/test/tnf/clnt.summary +++ /dev/null @@ -1,43 +0,0 @@ - Profile for 10000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -rw_rdlock 0.28 53.642 10006 0.005 0.192 0.004 0.000 -rw_unlock 0.28 52.672 10009 0.005 0.037 0.005 0.000 -mutex_lock 0.06 11.366 2765 0.004 0.161 0.002 0.000 -mutex_unlock 0.04 6.996 2771 0.003 0.028 0.002 0.000 -rw_wrlock 0.00 0.047 3 0.016 0.034 0.006 0.007 - - Profile for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -rw_rdlock 0.40 146.579 20006 0.007 1.200 0.005 0.000 -rw_unlock 0.25 91.386 20009 0.005 0.058 0.004 0.000 -mutex_lock 0.06 21.087 5265 0.004 0.178 0.002 0.000 -mutex_unlock 0.04 14.372 5271 0.003 0.075 0.002 0.000 -rw_wrlock 0.00 0.045 3 0.015 0.034 0.005 0.008 - - Profile for 30000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -rw_rdlock 0.41 241.807 30006 0.008 1.181 0.005 0.000 -rw_unlock 0.24 141.506 30009 0.005 0.503 0.004 0.000 -mutex_lock 0.07 38.545 7765 0.005 0.171 0.002 0.000 -mutex_unlock 0.03 19.591 7771 0.003 0.078 0.002 0.000 -rw_wrlock 0.00 0.045 3 0.015 0.033 0.005 0.007 - - Profile for 40000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -rw_rdlock 0.39 307.763 40006 0.008 2.031 0.005 0.000 -rw_unlock 0.23 184.537 40009 0.005 0.138 0.004 0.000 -mutex_lock 0.05 38.808 10265 0.004 0.173 0.002 0.000 -mutex_unlock 0.03 25.931 10271 0.003 0.078 0.002 0.000 -rw_wrlock 0.00 0.043 3 0.014 0.033 0.004 0.008 diff --git a/TAO/IIOP/test/tnf/svr.summary b/TAO/IIOP/test/tnf/svr.summary deleted file mode 100644 index 6e1c024aacd..00000000000 --- a/TAO/IIOP/test/tnf/svr.summary +++ /dev/null @@ -1,49 +0,0 @@ - Profile for 10000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_unlock 1.18 191.077 54588 0.004 1.158 0.003 0.000 -mutex_lock 1.18 190.652 54587 0.003 0.198 0.003 0.000 -rw_rdlock 0.29 46.844 6823 0.007 0.173 0.004 0.000 -rw_unlock 0.18 28.419 6823 0.004 0.064 0.004 0.000 - - Profile for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 1.12 154.491 54507 0.003 0.140 0.002 0.000 -mutex_unlock 1.06 145.638 54508 0.003 0.310 0.002 0.000 -rw_rdlock 0.27 37.265 6813 0.005 0.037 0.004 0.000 -rw_unlock 0.20 27.792 6813 0.004 0.045 0.004 0.000 - - Profile for 30000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 1.19 150.344 54654 0.003 0.621 0.002 0.000 -mutex_unlock 1.15 144.776 54655 0.003 0.071 0.002 0.000 -rw_rdlock 0.27 33.772 6832 0.005 0.078 0.004 0.000 -rw_unlock 0.19 23.613 6832 0.003 0.105 0.003 0.000 - - Profile for 40000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_unlock 1.48 209.259 54770 0.004 18.223 0.002 0.000 -mutex_lock 1.46 206.619 54769 0.004 10.473 0.002 0.000 -rw_rdlock 0.78 110.047 6846 0.016 38.115 0.003 0.006 -rw_unlock 0.17 23.844 6846 0.003 0.112 0.003 0.000 - - Profile for 50000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_unlock 1.19 150.149 54477 0.003 0.152 0.002 0.000 -mutex_lock 1.18 149.113 54477 0.003 1.376 0.002 0.000 -rw_rdlock 0.34 43.048 6809 0.006 10.113 0.003 0.001 -rw_unlock 0.19 23.796 6810 0.003 0.326 0.003 0.000 diff --git a/TAO/IIOP/tests/Cubit/Build/clnt.bld b/TAO/IIOP/tests/Cubit/Build/clnt.bld deleted file mode 100755 index 76e60ef8967..00000000000 --- a/TAO/IIOP/tests/Cubit/Build/clnt.bld +++ /dev/null @@ -1,8 +0,0 @@ -#!build -default: - program - :debuglevel=multi -../cubit.cpp - C++ -../clnt.cpp - C++ diff --git a/TAO/IIOP/tests/Cubit/Build/default.bld b/TAO/IIOP/tests/Cubit/Build/default.bld deleted file mode 100755 index cdf3e2e8210..00000000000 --- a/TAO/IIOP/tests/Cubit/Build/default.bld +++ /dev/null @@ -1,19 +0,0 @@ -#!build -default: - nobuild - :debuglevel=multi - :target=vxwppc - :sourcedirs=/home/ace/ACE_wrappers.vxworks - :sourcedirs=../../proto/include - :sourcedirs=../.. - :libraries=../../proto/lib/tao.a - :libraries=/home/ace/ACE_wrappers.vxworks/ace/libACE.a - :libraries=/appl/newgreen/vxppc603/indlib.o - :defines=DEBUG -clnt.bld - program - :debuglevel=multi -svr.bld - program - :debuglevel=multi - :defines=USE_ACE_EVENT_HANDLING diff --git a/TAO/IIOP/tests/Cubit/Build/svr.bld b/TAO/IIOP/tests/Cubit/Build/svr.bld deleted file mode 100755 index 7c8725356b2..00000000000 --- a/TAO/IIOP/tests/Cubit/Build/svr.bld +++ /dev/null @@ -1,8 +0,0 @@ -#!build -default: - program - :debuglevel=multi -../svr.cpp - C++ -../cubit.cpp - C++ diff --git a/TAO/IIOP/tests/Cubit/Orbix/Makefile b/TAO/IIOP/tests/Cubit/Orbix/Makefile deleted file mode 100644 index 96935fb78fc..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the Gateway application -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -INFO = README - -DIRS = base_server \ - client \ - tpr \ - tpool \ - tps - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nolocal.GNU - diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/Makefile b/TAO/IIOP/tests/Cubit/Orbix/base_server/Makefile deleted file mode 100644 index 3bf0684dfd5..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/Makefile +++ /dev/null @@ -1,89 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitS.cpp cubit_impl.cpp server.cpp - -SVR_OBJS = cubitS.o cubit_impl.o server.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -# Remove -DCubit_USE_BOA from below to use the TIE approach - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -DCubit_USE_BOA -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: server - -server: $(addprefix $(VDIR),$(SVR_OBJS)) - $(LINK.cc) -o server $(addprefix $(VDIR),$(SVR_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITSRV) $(VLDLIBS) $(POSTLINK) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubit_impl.o .shobj/cubit_impl.so: cubit_impl.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i -.obj/server.o .shobj/server.so: server.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.h b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.h deleted file mode 100644 index 1fd0a2d3c7d..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.h +++ /dev/null @@ -1,729 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include "ace/OS.h" -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.idl b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.idl deleted file mode 100644 index d4f1610e2a8..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.cpp b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.cpp deleted file mode 100644 index 1d10b058a70..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.cpp +++ /dev/null @@ -1,559 +0,0 @@ -// $Id$ - -#include "cubit.h" - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.h b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.h deleted file mode 100644 index 584efa67c8d..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.h +++ /dev/null @@ -1,345 +0,0 @@ -// $Id$ - -#ifndef _cubitC_h -#define _cubitC_h - -/************************************************************************/ -/* */ -/* This file is automatically generated by ORBeline IDL compiler */ -/* Do not modify this file. */ -/* */ -/* ORBeline (c) is copyrighted by PostModern Computing, Inc. */ -/* */ -/* The generated code conforms to OMG's IDL C++ mapping as */ -/* specified in OMG Document Number: 94-9-14. */ -/* */ -/************************************************************************/ - -#include "corba.h" - - - -class Cubit; -typedef Cubit *Cubit_ptr; -typedef Cubit_ptr CubitRef; - -#ifndef _Cubit_var_ -#define _Cubit_var_ -class Cubit_var -{ - public: - Cubit_var(); - Cubit_var(Cubit_ptr); - Cubit_var(const Cubit_var&); - ~Cubit_var(); - Cubit_var& operator=(Cubit_ptr); - operator Cubit_ptr() const { return _ptr; } -#if defined(_HPCC_BUG) - operator Cubit *&() { return _ptr; } -#else - operator Cubit_ptr&() { return _ptr; } -#endif - Cubit_ptr operator->() const { return _ptr;} - friend NCistream& operator>>(NCistream&, Cubit_var&); - friend NCostream& operator<<(NCostream&, const Cubit_var&); - friend istream& operator>>(istream&, Cubit_var&); - friend ostream& operator<<(ostream&, const Cubit_var&); - private: - Cubit_ptr _ptr; - void operator=(const Cubit_var&) {} -}; -#endif -class Cubit: public virtual CORBA_Object -{ - private: - static const CORBA::TypeInfo _class_info; - Cubit(const Cubit&) {} - void operator=(const Cubit&){} - public: - static const CORBA::TypeInfo *_desc(); - virtual const CORBA::TypeInfo *_type_info() const; - virtual void *_safe_narrow(const CORBA::TypeInfo& ) const; - static CORBA::Object *_factory(); - protected: - Cubit(const char *obj_name = NULL) :CORBA_Object(obj_name, 1) {} - Cubit(NCistream& strm) :CORBA_Object(strm) {} - virtual ~Cubit() {} - public: - static Cubit_ptr _duplicate(Cubit_ptr obj) { - if (obj ) obj->_ref(); - return obj; - } - static Cubit_ptr _nil() { return (Cubit_ptr)NULL;} - static Cubit_ptr _narrow(CORBA::Object *obj); - static Cubit_ptr _clone(Cubit_ptr obj) { - CORBA::Object_var obj_var(__clone(obj)); - -#if defined(_HPCC_BUG) - return _narrow(obj_var.operator CORBA::Object_ptr()); -#else - return _narrow(obj_var); -#endif - } - static Cubit_ptr _bind(const char *object_name = NULL, - const char *host_name = NULL, - const CORBA::BindOptions* opt = NULL); - - virtual CORBA::Octet cube_octet(CORBA::Octet o); - - virtual CORBA::Short cube_short(CORBA::Short s); - - virtual CORBA::Long cube_long(CORBA::Long l); - - struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - }; - friend NCostream& operator<<(NCostream&, const Many& ); - friend NCistream& operator>>(NCistream&, Many& ); - - friend ostream& operator<<(ostream&, const Many& ); - inline friend istream& operator>>(istream& _strm, Many& _obj) { - NCistream _istrm(_strm); - _istrm >> _obj; - return _strm; - } - - - typedef Many *Many_ptr; - class Many_var - { - public: - Many_var() { _ptr = (Many*)NULL;} - Many_var(Many *ptr) { - _ptr = ptr; - } - Many_var(const Many_var& var) { - if (var._ptr) - _ptr = new Many(*var._ptr); - else - _ptr = (Many *)NULL; - } - ~Many_var() { - if (_ptr != (Many *)NULL) delete _ptr; - } - Many_var& operator=(Many *ptr) { - if (_ptr != (Many *)NULL) delete _ptr; - _ptr = ptr; - return *this; - } - Many_var& operator=(const Many_var& var) { - if (_ptr != (Many *)NULL) delete _ptr; - if (var._ptr) - _ptr = new Many(*var._ptr); - else - _ptr = (Many *)NULL; - return *this; - } - Many *operator->() { return _ptr; } - operator Many () const { return *_ptr; } - operator Many& () { return *_ptr; } - inline friend NCostream& operator<<(NCostream& strm, - const Many_var& var) { - if (var._ptr == (Many *)NULL) { - throw CORBA::BAD_PARAM(); - } - else - strm << *var._ptr; - return strm; - } - inline friend NCistream& operator>>(NCistream& strm, - Many_var& var) { - if ( ! var._ptr) - var._ptr = new Many; - strm >> *var._ptr; - return strm; - } - private: - Many *_ptr; - }; - - - virtual Cubit::Many cube_struct(const Cubit::Many& values); - - enum discrim { - e_0th, - e_1st, - e_2nd, - e_3rd, - e_4th, - e_5th - }; - inline friend NCostream& operator<<(NCostream& _strm, discrim _enum_type) { - _strm << (CORBA::ULong)_enum_type; - return _strm; - } - inline friend NCistream& operator>>(NCistream& _strm, discrim& _enum_type) { - CORBA::ULong _temp; - _strm >> _temp; - if (_temp >= 6) - throw CORBA::BAD_PARAM(); - _enum_type = discrim(_temp); - return _strm; - } - inline friend ostream& operator<<(ostream& _strm, discrim _enum_type) { - if( &_strm == &cout || &_strm == &cerr || &_strm == &clog) { - _strm << "discrim:"; - switch(_enum_type) { - case e_0th: - _strm << "e_0th" << endl; - break; - case e_1st: - _strm << "e_1st" << endl; - break; - case e_2nd: - _strm << "e_2nd" << endl; - break; - case e_3rd: - _strm << "e_3rd" << endl; - break; - case e_4th: - _strm << "e_4th" << endl; - break; - case e_5th: - _strm << "e_5th" << endl; - break; - } - } - else - _strm << (CORBA::ULong)_enum_type; - return _strm; - } - inline friend istream& operator>>(istream& _strm, discrim& _enum_type) { - CORBA::ULong _temp; - _strm >> _temp; - _enum_type = discrim(_temp); - return _strm; - } - - - class oneof - { - public: - private: - discrim _disc; - CORBA::Octet __o; - CORBA::Short __s; - CORBA::Long __l; - Cubit::Many __cm; - public: - oneof() : _disc(discrim(0)) {} - ~oneof() {} - oneof(const oneof& obj); - oneof& operator=(const oneof& obj); - - void _d(discrim val) { _disc = val; } - discrim _d() const { return _disc; } - - void o(CORBA::Octet val) { - __o = val; - _disc = Cubit::e_0th; - } - CORBA::Octet o() const { return __o; } - - void s(CORBA::Short val) { - __s = val; - _disc = Cubit::e_1st; - } - CORBA::Short s() const { return __s; } - - void l(CORBA::Long val) { - __l = val; - _disc = Cubit::e_2nd; - } - CORBA::Long l() const { return __l; } - - void cm(const Cubit::Many& val) { - __cm = val; - _disc = Cubit::e_3rd; - } - const Cubit::Many& cm() const { return __cm; } - Cubit::Many& cm() { return __cm; } - - friend NCostream& operator<<(NCostream&, const oneof& ); - friend NCistream& operator>>(NCistream&, oneof& ); - friend ostream& operator<<(ostream&, const oneof&); - inline friend istream& operator>>(istream& strm, oneof& obj) { - NCistream istrm(strm); - strm >> obj; - return strm; - } - }; - - typedef oneof *oneof_ptr; - class oneof_var - { - public: - oneof_var() { _ptr = (oneof*)NULL;} - oneof_var(oneof *ptr) { - _ptr = ptr; - } - oneof_var(const oneof_var& var) { - _ptr = new oneof(*var._ptr); - } - ~oneof_var() { - if (_ptr != (oneof *)NULL) delete _ptr; - } - oneof_var& operator=(oneof *ptr) { - if (_ptr != (oneof *)NULL) delete _ptr; - _ptr = ptr; - return *this; - } - oneof_var& operator=(const oneof_var& var) { - if (_ptr != (oneof *)NULL) delete _ptr; - _ptr = new oneof(*var._ptr); - return *this; - } - oneof *operator->() { return _ptr; } - operator oneof () const { return *_ptr; } - operator oneof& () { return *_ptr; } - inline friend NCostream& operator<<(NCostream& strm, - const oneof_var& var) { - if (var._ptr == (oneof *)NULL) { - throw CORBA::BAD_PARAM(); - } - else - strm << *var._ptr; - return strm; - } - inline friend NCistream& operator>>(NCistream& strm, - oneof_var& var) { - if ( ! var._ptr) - var._ptr = new oneof; - strm >> *var._ptr; - return strm; - } - private: - oneof *_ptr; - }; - - - virtual Cubit::oneof cube_union(const Cubit::oneof& values); - - virtual void please_exit(); - - inline friend NCistream& operator>>(NCistream& strm, Cubit_ptr& obj) { - CORBA::Object_var _obj(obj); - _obj = CORBA::Object::_read(strm, Cubit::_desc()); - obj = Cubit::_narrow(_obj); - return strm; - } - inline friend ostream& operator<<(ostream& strm, const Cubit_ptr obj) { - strm << (CORBA::Object_ptr)obj; - return strm; - } - inline friend istream& operator>>(istream& strm, Cubit_ptr& obj) { - NCistream istrm(strm); - istrm >> obj; - return strm; - } -}; - - -#endif - diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.cpp b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.cpp deleted file mode 100644 index d72803fed0c..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.cpp +++ /dev/null @@ -1,228 +0,0 @@ -// $Id$ - -#include "cubit.h" - - -#define Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"cube_octet")) { - CORBA::Octet IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_octet~+o{o},>{o},N{}\ -")) - return 1; - CORBA::Octet o; - - IT_r.extractOctet (o); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_octet ( o, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -o\ -", IT_env)) return 1; - IT_r.insertOctet (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_short")) { - CORBA::Short IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_short~+s{s},>{s},N{}\ -")) - return 1; - CORBA::Short s; - - IT_r >> s; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_short ( s, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -s\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_long")) { - CORBA::Long IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_long~+l{l},>{l},N{}\ -")) - return 1; - CORBA::Long l; - - IT_r >> l; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_long ( l, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -l\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_struct")) { - Cubit::Many IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_struct~+values{R~Cubit::Many~o{o},l{l},s{s}},>{R~Cubit::Many~o{o},l{l},s{s}},N{}\ -")) - return 1; - Cubit::Many values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_struct ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -R~Cubit::Many~o{o},l{l},s{s}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_union")) { - Cubit::oneof IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - IT_r.tcPreAssert ( -"\ -Ro~cube_union~+values{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},>{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,\ -"); - if (!IT_r.tcAssert ("\ -e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},N{}\ -")) - return 1; - Cubit::oneof values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_union ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"please_exit")) { - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~please_exit~>{v},O{}\ -")) - return 1; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - ((Cubit*)IT_pp)->please_exit (IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - IT_r.replyNoResults (CORBA::Flags(CORBA::INV_NO_RESPONSE),IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#include "cubitC.cpp" - diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.h b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.h deleted file mode 100644 index 3ca717e2b49..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.h +++ /dev/null @@ -1,120 +0,0 @@ -// $Id$ - -#ifndef _cubitS_h -#define _cubitS_h - -#include "cubitC.h" - -/************************************************************************/ -/* */ -/* This file is automatically generated by ORBeline IDL compiler */ -/* Do not modify this file. */ -/* */ -/* ORBeline (c) is copyrighted by PostModern Computing, Inc. */ -/* */ -/* The generated code conforms to OMG's IDL C++ mapping as */ -/* specified in OMG Document Number: 94-9-14. */ -/* */ -/************************************************************************/ - -class _sk_Cubit : public Cubit -{ - protected: - _sk_Cubit(const char *object_name = (const char *)NULL); - _sk_Cubit(const char *service_name, const CORBA::ReferenceData& data); - virtual ~_sk_Cubit() {} - public: - static const CORBA::TypeInfo _skel_info; - - // The following operations need to be implemented by the server. - virtual CORBA::Octet cube_octet(CORBA::Octet o) = 0; - virtual CORBA::Short cube_short(CORBA::Short s) = 0; - virtual CORBA::Long cube_long(CORBA::Long l) = 0; - virtual Cubit::Many cube_struct(const Cubit::Many& values) = 0; - virtual Cubit::oneof cube_union(const Cubit::oneof& values) = 0; - virtual void please_exit() = 0; - - // Skeleton Operations implemented automatically - - static void _cube_octet(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_short(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_long(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_struct(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_union(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _please_exit(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - -}; -template -class _tie_Cubit : public Cubit -{ - public: - _tie_Cubit(T& t, const char *obj_name=(char*)NULL) : - Cubit(obj_name), - _ref(t) { - _object_name(obj_name); - } - _tie_Cubit(T& t, const char *service_name, - const CORBA::ReferenceData& id) - :_ref(t) { - _service(service_name, id); - } - ~_tie_Cubit() {} - CORBA::Octet cube_octet(CORBA::Octet o) { - return _ref.cube_octet( - o); - } - CORBA::Short cube_short(CORBA::Short s) { - return _ref.cube_short( - s); - } - CORBA::Long cube_long(CORBA::Long l) { - return _ref.cube_long( - l); - } - Cubit::Many cube_struct(const Cubit::Many& values) { - return _ref.cube_struct( - values); - } - Cubit::oneof cube_union(const Cubit::oneof& values) { - return _ref.cube_union( - values); - } - void please_exit() { - _ref.please_exit(); - } - - private: - T& _ref; -}; - -#endif - diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit_impl.cpp b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit_impl.cpp deleted file mode 100644 index e96b6e33dcd..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit_impl.cpp +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -#include "cubit_impl.h" - -CORBA::Octet Cubit_Impl:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Octet) (o * o * o); -} - -CORBA::Short Cubit_Impl:: cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Short) (s * s * s); -} - -CORBA::Long Cubit_Impl:: cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Long) (l * l * l); -} - -Cubit::Many Cubit_Impl:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::Many out_values; - out_values.o = values.o * values.o * values.o; - out_values.s = values.s * values.s * values.s; - out_values.l = values.l * values.l * values.l; - return out_values; -} - -Cubit::oneof Cubit_Impl:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::oneof out_values; - switch (values._d ()) { - case Cubit::e_0th: - out_values.o (values.o () * values.o () * values.o ()); - break; - case Cubit::e_1st: - out_values.s (values.s () * values.s () * values.s ()); - break; - case Cubit::e_2nd: - out_values.l (values.l () * values.l () * values.l ()); - break; - case Cubit::e_3rd: - default: - out_values.cm ().o = values.cm ().o * values.cm ().o * values.cm ().o ; - out_values.cm ().s = values.cm ().s * values.cm ().s * values.cm ().s ; - out_values.cm ().l = values.cm ().l * values.cm ().l * values.cm ().l ; - break; - } - return out_values; -} - -void Cubit_Impl:: please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException) { -} diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit_impl.h b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit_impl.h deleted file mode 100644 index 033aa7f0cb1..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit_impl.h +++ /dev/null @@ -1,29 +0,0 @@ -// $Id$ - - -#ifndef cubit_ih -#define cubit_ih - -#include "cubit.h" - - -#ifdef Cubit_USE_BOA -class Cubit_Impl : public virtual CubitBOAImpl { -#else -class Cubit_Impl { -#endif /* Cubit_USE_BOA */ - -public: - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); -}; - -#ifndef Cubit_USE_BOA -DEF_TIE_Cubit (Cubit_Impl) -#endif /* Cubit_USE_BOA */ - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/server.cpp b/TAO/IIOP/tests/Cubit/Orbix/base_server/server.cpp deleted file mode 100644 index 527fa13d76e..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/server.cpp +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : tpr_server.cpp -// DESCRIPTION: -// -// Server mainline -// -//**************************************************************************** -#define IT_EX_MACROS - -#include "cubit_impl.h" // server header file - -int -main (int , char**) -{ - -#ifdef Cubit_USE_BOA - Cubit_var cb = new Cubit_Impl; - cout << "Using BOA approach" << endl; -#else - Cubit_var cb = new TIE_Cubit (Cubit_Impl) (new Cubit_Impl); - cout << "Using TIE approach" << endl; -#endif /* Cubit_USE_BOA */ - - // - // Go get some work to do.... - // - IT_TRY { - CORBA::Orbix.impl_is_ready("Cubit", IT_X); - } - IT_CATCHANY { - cout << IT_X << endl; - } - IT_ENDTRY; - - cout << "Cubit server is exiting." << endl; - - - return 0; -} diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.cpp b/TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.cpp deleted file mode 100644 index da78690cc2c..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.cpp +++ /dev/null @@ -1,28 +0,0 @@ -// $Id$ - -#include "tpr.h" - -void * -worker(void *vp) -{ - ACE_Thread_Control tc (ACE_Thread_Manager::instance ()); - CORBA::Orbix.continueThreadDispatch (*(CORBA::Request *)vp); - return NULL; -} - - -int -tpr_filter::inRequestPreMarshal(CORBA::Request &r, CORBA::Environment&) -{ -// thread_t tid; -// thr_create(NULL, 0, worker, (void *)&r, THR_DETACHED, &tid); - - ACE_Thread_Manager *thr_mgr = ACE_Thread_Manager::instance (); - thr_mgr->spawn (ACE_THR_FUNC (worker), - (void *) &r, - THR_DETACHED); - - return -1; -} - -tpr_filter tpr_dispatcher; diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.h b/TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.h deleted file mode 100644 index b5e8be94cf1..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.h +++ /dev/null @@ -1,12 +0,0 @@ -// $Id$ - -#include "cubit.h" -#include "ace/Service_Config.h" -#include "ace/Thread_Manager.h" - -// -// Create a thread filter to dispatch incoming calls -// -class tpr_filter : public CORBA::ThreadFilter { - virtual int inRequestPreMarshal(CORBA::Request &, CORBA::Environment&); -}; diff --git a/TAO/IIOP/tests/Cubit/Orbix/client/Makefile b/TAO/IIOP/tests/Cubit/Orbix/client/Makefile deleted file mode 100644 index 73f775bee2f..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/client/Makefile +++ /dev/null @@ -1,89 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitC.cpp client.cpp - -CLT_OBJS = cubitC.o client.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: client - -client: $(addprefix $(VDIR),$(CLT_OBJS)) - $(LINK.cc) -o client $(addprefix $(VDIR),$(CLT_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITCLT) $(VLDLIBS) $(POSTLINK) - - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubitC.o .shobj/cubitC.so: cubitC.cpp cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i -.obj/client.o .shobj/client.so: client.cpp $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i cubit.h - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/tests/Cubit/Orbix/client/client.cpp b/TAO/IIOP/tests/Cubit/Orbix/client/client.cpp deleted file mode 100644 index f199078b601..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/client/client.cpp +++ /dev/null @@ -1,234 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : client.C -// DESCRIPTION: -// -// Client for the Cubit example -// -//**************************************************************************** - -#include "ace/OS.h" -#include "ace/Get_Opt.h" -#include "cubit.h" - -int LOOP_COUNT; -char SERVER_HOST [1024]; - -inline int func (unsigned i) { return i - 117; } -void run_tests (Cubit_var, int); - -// = TITLE -// Parses the command line arguments and returns an error status -// -// = DESCRIPTION -// This method parses the command line arguments -int parse_args(int argc, char *argv[]) -{ - ACE_OS::strcpy (SERVER_HOST, "localhost"); - ACE_Get_Opt opts (argc, argv, "dh:n:O:x"); - int c; - - while ((c = opts ()) != -1) - switch (c) { - case 'h': - ACE_OS::strcpy (SERVER_HOST, opts.optarg); - continue; - case 'd': // debug flag - continue; - - case 'n': // loop count - LOOP_COUNT = (unsigned) ACE_OS::atoi (opts.optarg); - continue; - - case 'O': // stringified objref - continue; - - case 'x': - continue; - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-n loopcount]" - " [-h SERVER_HOST]" - " [-x]" - "\n", argv [0] - ); - return 1; - } - - return 0; // Indicates successful parsing of command line -} - - -// -// Mainline -// -int -main (int argc, char *argv[]) -{ - if (parse_args (argc, argv) != 0) - return -1; - - Cubit_var cb; - // cout << "attempting to contact server at host " << SERVER_HOST << '\n' ; - - // - // Initialise client's binding to an - // arbitrary cubit server (at some host) - // - TRY { - cb = Cubit::_bind ("", SERVER_HOST, IT_X); - } - CATCHANY { - cerr << "Binding failed: " << IT_X; - } - ENDTRY; - - run_tests (cb, LOOP_COUNT); - return 0; -} - - -void -run_tests (Cubit_var cb, int loop_count) -{ - // - // Make the calls in a loop. - // - unsigned i; - unsigned call_count, error_count; - - call_count = 0; - error_count = 0; - - ACE_Time_Value before, after; - - before = ACE_OS::gettimeofday(); - - // - // Cube an octet. - // - - for (i = 0; i < loop_count; i++) - { - - call_count++; - - CORBA::Octet arg_octet = func (i), ret_octet; - - TRY { - ret_octet = cb->cube_octet (arg_octet); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_octet = arg_octet * arg_octet * arg_octet; - if (arg_octet != ret_octet) { - ACE_OS::printf ("** cube_octet(%d) (--> %d)\n", arg_octet , ret_octet); - error_count++; - } - - - // - // Cube a short. - // - call_count++; - - CORBA::Short arg_short = func (i), ret_short; - - TRY { - ret_short = cb->cube_short (arg_short); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_short = arg_short * arg_short * arg_short; - if (arg_short != ret_short) { - ACE_OS::printf ("** cube_short(%d) (--> %d)\n", arg_short , ret_short); - error_count++; - } - - // - // Cube a long. - // - - call_count++; - - CORBA::Long arg_long = func (i), ret_long; - - TRY { - ret_long = cb->cube_long (arg_long); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - } - ENDTRY; - arg_long = arg_long * arg_long * arg_long; - if (arg_long != ret_long) { - ACE_OS::printf ("** cube_long(%d) (--> %d)\n", arg_long , ret_long); - error_count++; - } - - - // - // Cube a "struct" ... - // - Cubit::Many arg_struct, ret_struct; - - call_count++; - - arg_struct.l = func (i); - arg_struct.s = func (i); - arg_struct.o = func (i); - - TRY { - ret_struct = cb->cube_struct (arg_struct); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_struct.l = arg_struct.l * arg_struct.l * arg_struct.l ; - arg_struct.s = arg_struct.s * arg_struct.s * arg_struct.s ; - arg_struct.o = arg_struct.o * arg_struct.o * arg_struct.o ; - - if (arg_struct.l != ret_struct.l - || arg_struct.s != ret_struct.s - || arg_struct.o != ret_struct.o ) - { - cerr << "** cube_struct ERROR\n"; - error_count++; - } - } - - - after = ACE_OS::gettimeofday(); - - if (call_count > 0) - { - if (error_count == 0) - { - ACE_Time_Value diff = after - before; - unsigned long us = diff.sec() * 1000 * 1000 + diff.usec(); - - us /= call_count; - - if (us > 0) - ACE_OS::printf ("cube average call ACE_OS::time\t= %ld.%.03ldms, \t" - "%ld calls/second\n", - us / 1000, us % 1000, - 1000000L / us); - } - - ACE_OS::printf ("%d calls, %d errors\n", call_count, error_count); - } -} diff --git a/TAO/IIOP/tests/Cubit/Orbix/client/cubit.h b/TAO/IIOP/tests/Cubit/Orbix/client/cubit.h deleted file mode 100644 index 1fd0a2d3c7d..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/client/cubit.h +++ /dev/null @@ -1,729 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include "ace/OS.h" -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/client/cubit.idl b/TAO/IIOP/tests/Cubit/Orbix/client/cubit.idl deleted file mode 100644 index d4f1610e2a8..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/client/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/tests/Cubit/Orbix/client/cubitC.cpp b/TAO/IIOP/tests/Cubit/Orbix/client/cubitC.cpp deleted file mode 100644 index 1d10b058a70..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/client/cubitC.cpp +++ /dev/null @@ -1,559 +0,0 @@ -// $Id$ - -#include "cubit.h" - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/tests/Cubit/Orbix/factory_client/Makefile b/TAO/IIOP/tests/Cubit/Orbix/factory_client/Makefile deleted file mode 100644 index 63cc8a65e02..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/factory_client/Makefile +++ /dev/null @@ -1,77 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitC.cpp client.cpp - -CLT_OBJS = cubitC.o client.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: client - -client: $(addprefix $(VDIR),$(CLT_OBJS)) - $(LINK.cc) -o client $(addprefix $(VDIR),$(CLT_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITCLT) $(VLDLIBS) $(POSTLINK) - - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubitC.o .shobj/cubitC.so: cubitC.cpp cubit.h -.obj/client.o .shobj/client.so: client.cpp $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i cubit.h - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/tests/Cubit/Orbix/factory_client/client.cpp b/TAO/IIOP/tests/Cubit/Orbix/factory_client/client.cpp deleted file mode 100644 index 1afdecbadf4..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/factory_client/client.cpp +++ /dev/null @@ -1,237 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : client.C -// DESCRIPTION: -// -// Client for the Cubit example -// -//**************************************************************************** - -#include "ace/OS.h" -#include "ace/Get_Opt.h" -#include "cubit.h" - -int LOOP_COUNT; -char SERVER_HOST [1024]; - -inline int func (unsigned i) { return i - 117; } -void run_tests (Cubit_var, int); - -// = TITLE -// Parses the command line arguments and returns an error status -// -// = DESCRIPTION -// This method parses the command line arguments -int parse_args(int argc, char *argv[]) -{ - ACE_OS::strcpy (SERVER_HOST, "localhost"); - ACE_Get_Opt opts (argc, argv, "dh:n:O:x"); - int c; - - while ((c = opts ()) != -1) - switch (c) { - case 'h': - ACE_OS::strcpy (SERVER_HOST, opts.optarg); - continue; - case 'd': // debug flag - continue; - - case 'n': // loop count - LOOP_COUNT = (unsigned) ACE_OS::atoi (opts.optarg); - continue; - - case 'O': // stringified objref - continue; - - case 'x': - continue; - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-n loopcount]" - " [-h SERVER_HOST]" - " [-x]" - "\n", argv [0] - ); - return 1; - } - - return 0; // Indicates successful parsing of command line -} - - -// -// Mainline -// -int -main (int argc, char *argv[]) -{ - if (parse_args (argc, argv) != 0) - return -1; - - Cubit_var cb; - Cubit_Factory_var cf; - - // cout << "attempting to contact server at host " << SERVER_HOST << '\n' ; - - // - // Initialise client's binding to an - // arbitrary cubit server (at some host) - // - TRY { - cf = Cubit_Factory::_bind ("", SERVER_HOST, IT_X); - } - CATCHANY { - cerr << "Binding failed: " << IT_X; - } - ENDTRY; - cb = cf->create_cubit ("My_Cubit"); - - run_tests (cb, LOOP_COUNT); - return 0; -} - - -void -run_tests (Cubit_var cb, int loop_count) -{ - // - // Make the calls in a loop. - // - unsigned i; - unsigned call_count, error_count; - - call_count = 0; - error_count = 0; - - ACE_Time_Value before, after; - - before = ACE_OS::gettimeofday(); - - // - // Cube an octet. - // - - for (i = 0; i < loop_count; i++) - { - - call_count++; - - CORBA::Octet arg_octet = func (i), ret_octet; - - TRY { - ret_octet = cb->cube_octet (arg_octet); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_octet = arg_octet * arg_octet * arg_octet; - if (arg_octet != ret_octet) { - ACE_OS::printf ("** cube_octet(%d) (--> %d)\n", arg_octet , ret_octet); - error_count++; - } - - - // - // Cube a short. - // - call_count++; - - CORBA::Short arg_short = func (i), ret_short; - - TRY { - ret_short = cb->cube_short (arg_short); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_short = arg_short * arg_short * arg_short; - if (arg_short != ret_short) { - ACE_OS::printf ("** cube_short(%d) (--> %d)\n", arg_short , ret_short); - error_count++; - } - - // - // Cube a long. - // - - call_count++; - - CORBA::Long arg_long = func (i), ret_long; - - TRY { - ret_long = cb->cube_long (arg_long); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - } - ENDTRY; - arg_long = arg_long * arg_long * arg_long; - if (arg_long != ret_long) { - ACE_OS::printf ("** cube_long(%d) (--> %d)\n", arg_long , ret_long); - error_count++; - } - - - // - // Cube a "struct" ... - // - Cubit::Many arg_struct, ret_struct; - - call_count++; - - arg_struct.l = func (i); - arg_struct.s = func (i); - arg_struct.o = func (i); - - TRY { - ret_struct = cb->cube_struct (arg_struct); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_struct.l = arg_struct.l * arg_struct.l * arg_struct.l ; - arg_struct.s = arg_struct.s * arg_struct.s * arg_struct.s ; - arg_struct.o = arg_struct.o * arg_struct.o * arg_struct.o ; - - if (arg_struct.l != ret_struct.l - || arg_struct.s != ret_struct.s - || arg_struct.o != ret_struct.o ) - { - cerr << "** cube_struct ERROR\n"; - error_count++; - } - } - - - after = ACE_OS::gettimeofday(); - - if (call_count > 0) - { - if (error_count == 0) - { - ACE_Time_Value diff = after - before; - unsigned long us = diff.sec() * 1000 * 1000 + diff.usec(); - - us /= call_count; - - if (us > 0) - ACE_OS::printf ("cube average call ACE_OS::time\t= %ld.%.03ldms, \t" - "%ld calls/second\n", - us / 1000, us % 1000, - 1000000L / us); - } - - ACE_OS::printf ("%d calls, %d errors\n", call_count, error_count); - } -} diff --git a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.h b/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.h deleted file mode 100644 index 3a2dd546608..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.h +++ /dev/null @@ -1,1113 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include - -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#ifndef _Cubit_Factory_defined -#define _Cubit_Factory_defined -class Cubit_Factory_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_Factory_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch () {} - - Cubit_Factory_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit_Factory; - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - - -#ifndef Cubit_FactoryForwH -#define Cubit_FactoryForwH -CORBA::ObjectRef Cubit_Factory_getBase (void *); -void Cubit_Factory_release (Cubit_Factory *, CORBA::Environment &IT_env); -void Cubit_Factory_release (Cubit_Factory_ptr); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr, CORBA::Environment &IT_env); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr ); -Cubit_Factory_ptr Cubit_Factory_nil (CORBA::Environment &IT_env); -Cubit_Factory_ptr Cubit_Factory_nil (); -#endif -#define Cubit_Factory_IMPL "Cubit_Factory" - - -class Cubit_Factory; - -typedef Cubit_Factory Cubit_FactoryProxy; -#define Cubit_Factory_IR "Cubit_Factory" -#define Cubit_Factory_IMPL "Cubit_Factory" - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - -class Cubit_Factory: public virtual CORBA::Object { -public: - Cubit_Factory (char *IT_OR); - Cubit_Factory (ObjectReference *IT_OR); - Cubit_Factory () : CORBA::Object (1) {} -protected: - Cubit_Factory_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_Factory_ptr _duplicate( - Cubit_Factory_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit_Factory* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _bind (CORBA::Environment &IT_env); - static Cubit_Factory* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_Factory_ptr) CORBA::OBJECT_NIL;} - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef Cubit_FactoryVarH -#define Cubit_FactoryVarH - -#ifndef Cubit_FactoryvPtr -#define Cubit_FactoryvPtr -typedef Cubit_Factory* Cubit_Factory_vPtr; -typedef const Cubit_Factory* Cubit_Factory_cvPtr; -#endif - -class Cubit_Factory_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_Factory_var &IT_s) { - { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_Factory_var (const Cubit_Factory_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_Factory_var () { - _ptr = Cubit_Factory_nil (); - } - - Cubit_Factory_var (Cubit_Factory *IT_p) { - _ptr = IT_p; - } - - Cubit_Factory_var &operator= (Cubit_Factory *IT_p) { - Cubit_Factory_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_Factory_var &operator= (const Cubit_Factory_var &IT_s) { - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_Factory_var () { - Cubit_Factory_release (_ptr); - } - - Cubit_Factory* operator-> () { - return _ptr; - } - - operator Cubit_Factory_cvPtr () const { return _ptr;} - operator Cubit_Factory_vPtr& () { return _ptr;} - - protected: - Cubit_Factory *_ptr; - private: - Cubit_Factory_var &operator= (const CORBA::_var &IT_s); - Cubit_Factory_var (const CORBA::_var &IT_s); - Cubit_Factory_var &operator= (const CORBA::_mgr &IT_s); - Cubit_Factory_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_Factory_var (const CORBA::_mgr &IT_s); - Cubit_Factory_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef Cubit_FactoryMgrH -#define Cubit_FactoryMgrH - -class Cubit_Factory_mgr : public CORBA::_mgr -{ - public: - - Cubit_Factory_mgr () { - _ptr = Cubit_Factory_nil (); - _release = 1; - } - - Cubit_Factory_mgr (const Cubit_Factory_mgr &IT_s) { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_Factory_mgr &operator= (Cubit_Factory *IT_p) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (const Cubit_Factory_mgr &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (Cubit_Factory_var &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_Factory_mgr () { - if (_release) - Cubit_Factory_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit_Factory* () const { - return (Cubit_Factory*) _ptr; - } - - Cubit_Factory_ptr operator-> () const { - return _ptr; - } - - Cubit_Factory *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_Factory_mgr Cubit_Factory_mgr_IT_const; -#endif - -#ifndef Cubit_FactorySeqElemH -#define Cubit_FactorySeqElemH - -class Cubit_Factory_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_Factory_SeqElem (Cubit_Factory_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_Factory_SeqElem &operator= (Cubit_Factory_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_Factory_SeqElem &operator= (const Cubit_Factory_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = Cubit_Factory_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_Factory_ptr () const { - return _ptr ? (Cubit_Factory_ptr) (*_ptr) : Cubit_Factory_nil(); - } - - Cubit_Factory_ptr operator->() const { return *_ptr;} - - protected: - Cubit_Factory_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit_Factory(X) Cubit_Factory##X - -#define DEF_TIE_Cubit_Factory(X) \ - class Cubit_Factory##X : public virtual Cubit_Factory { \ - X* m_obj; \ - public: \ - \ - \ - Cubit_Factory##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit_Factory(), m_obj(objp) { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,m,l,Cubit_Factory_IR,m_obj); \ - } \ - Cubit_Factory##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit_Factory() { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,IT_m,Cubit_Factory_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit_Factory##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit_Factory \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - - - - -class Cubit_FactoryProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - Cubit_FactoryProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_Factory_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern Cubit_FactoryProxyFactoryClass Cubit_FactoryProxyFactory; - -class Cubit_FactoryBOAImpl : public virtual Cubit_Factory { -public: - Cubit_FactoryBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_Factory_IR)) - m_pptr = new Cubit_Factory_dispatch ( (Cubit_Factory*)this, - (CORBA::Object*)this, m, l, Cubit_Factory_IR, this); -} - - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.hh b/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.hh deleted file mode 100644 index 72e2fb81395..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.hh +++ /dev/null @@ -1,1111 +0,0 @@ - -#ifndef cubit_hh -#define cubit_hh - -#include - -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#ifndef _Cubit_Factory_defined -#define _Cubit_Factory_defined -class Cubit_Factory_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_Factory_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch () {} - - Cubit_Factory_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit_Factory; - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - - -#ifndef Cubit_FactoryForwH -#define Cubit_FactoryForwH -CORBA::ObjectRef Cubit_Factory_getBase (void *); -void Cubit_Factory_release (Cubit_Factory *, CORBA::Environment &IT_env); -void Cubit_Factory_release (Cubit_Factory_ptr); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr, CORBA::Environment &IT_env); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr ); -Cubit_Factory_ptr Cubit_Factory_nil (CORBA::Environment &IT_env); -Cubit_Factory_ptr Cubit_Factory_nil (); -#endif -#define Cubit_Factory_IMPL "Cubit_Factory" - - -class Cubit_Factory; - -typedef Cubit_Factory Cubit_FactoryProxy; -#define Cubit_Factory_IR "Cubit_Factory" -#define Cubit_Factory_IMPL "Cubit_Factory" - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - -class Cubit_Factory: public virtual CORBA::Object { -public: - Cubit_Factory (char *IT_OR); - Cubit_Factory (ObjectReference *IT_OR); - Cubit_Factory () : CORBA::Object (1) {} -protected: - Cubit_Factory_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_Factory_ptr _duplicate( - Cubit_Factory_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit_Factory* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _bind (CORBA::Environment &IT_env); - static Cubit_Factory* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_Factory_ptr) CORBA::OBJECT_NIL;} - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef Cubit_FactoryVarH -#define Cubit_FactoryVarH - -#ifndef Cubit_FactoryvPtr -#define Cubit_FactoryvPtr -typedef Cubit_Factory* Cubit_Factory_vPtr; -typedef const Cubit_Factory* Cubit_Factory_cvPtr; -#endif - -class Cubit_Factory_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_Factory_var &IT_s) { - { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_Factory_var (const Cubit_Factory_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_Factory_var () { - _ptr = Cubit_Factory_nil (); - } - - Cubit_Factory_var (Cubit_Factory *IT_p) { - _ptr = IT_p; - } - - Cubit_Factory_var &operator= (Cubit_Factory *IT_p) { - Cubit_Factory_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_Factory_var &operator= (const Cubit_Factory_var &IT_s) { - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_Factory_var () { - Cubit_Factory_release (_ptr); - } - - Cubit_Factory* operator-> () { - return _ptr; - } - - operator Cubit_Factory_cvPtr () const { return _ptr;} - operator Cubit_Factory_vPtr& () { return _ptr;} - - protected: - Cubit_Factory *_ptr; - private: - Cubit_Factory_var &operator= (const CORBA::_var &IT_s); - Cubit_Factory_var (const CORBA::_var &IT_s); - Cubit_Factory_var &operator= (const CORBA::_mgr &IT_s); - Cubit_Factory_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_Factory_var (const CORBA::_mgr &IT_s); - Cubit_Factory_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef Cubit_FactoryMgrH -#define Cubit_FactoryMgrH - -class Cubit_Factory_mgr : public CORBA::_mgr -{ - public: - - Cubit_Factory_mgr () { - _ptr = Cubit_Factory_nil (); - _release = 1; - } - - Cubit_Factory_mgr (const Cubit_Factory_mgr &IT_s) { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_Factory_mgr &operator= (Cubit_Factory *IT_p) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (const Cubit_Factory_mgr &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (Cubit_Factory_var &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_Factory_mgr () { - if (_release) - Cubit_Factory_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit_Factory* () const { - return (Cubit_Factory*) _ptr; - } - - Cubit_Factory_ptr operator-> () const { - return _ptr; - } - - Cubit_Factory *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_Factory_mgr Cubit_Factory_mgr_IT_const; -#endif - -#ifndef Cubit_FactorySeqElemH -#define Cubit_FactorySeqElemH - -class Cubit_Factory_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_Factory_SeqElem (Cubit_Factory_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_Factory_SeqElem &operator= (Cubit_Factory_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_Factory_SeqElem &operator= (const Cubit_Factory_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = Cubit_Factory_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_Factory_ptr () const { - return _ptr ? (Cubit_Factory_ptr) (*_ptr) : Cubit_Factory_nil(); - } - - Cubit_Factory_ptr operator->() const { return *_ptr;} - - protected: - Cubit_Factory_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit_Factory(X) Cubit_Factory##X - -#define DEF_TIE_Cubit_Factory(X) \ - class Cubit_Factory##X : public virtual Cubit_Factory { \ - X* m_obj; \ - public: \ - \ - \ - Cubit_Factory##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit_Factory(), m_obj(objp) { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,m,l,Cubit_Factory_IR,m_obj); \ - } \ - Cubit_Factory##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit_Factory() { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,IT_m,Cubit_Factory_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit_Factory##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit_Factory \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - - - - -class Cubit_FactoryProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - Cubit_FactoryProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_Factory_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern Cubit_FactoryProxyFactoryClass Cubit_FactoryProxyFactory; - -class Cubit_FactoryBOAImpl : public virtual Cubit_Factory { -public: - Cubit_FactoryBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_Factory_IR)) - m_pptr = new Cubit_Factory_dispatch ( (Cubit_Factory*)this, - (CORBA::Object*)this, m, l, Cubit_Factory_IR, this); -} - - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.idl b/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.idl deleted file mode 100644 index 41309e997ea..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.idl +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - - interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); - }; - - - interface Cubit_Factory { - Cubit create_cubit (in string name); - }; - diff --git a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubitC.cpp b/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubitC.cpp deleted file mode 100644 index d19c387bcd2..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubitC.cpp +++ /dev/null @@ -1,712 +0,0 @@ -// $Id$ - - - -#include "cubit.h" - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - -Cubit_Factory::Cubit_Factory (char *IT_OR) { - m_pptr = new Cubit_Factory_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit_Factory::Cubit_Factory (ObjectReference *IT_OR) { - m_pptr = new Cubit_Factory_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef Cubit_FactoryForwC -#define Cubit_FactoryForwC -CORBA::ObjectRef Cubit_Factory_getBase(void *IT_p){ - return (Cubit_Factory*) IT_p;} - -void Cubit_Factory_release (Cubit_Factory_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_Factory_release (Cubit_Factory_ptr IT_p) { - Cubit_Factory_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_Factory_ptr Cubit_Factory_nil (CORBA::Environment &) { - return Cubit_Factory:: _nil ();} - -Cubit_Factory_ptr Cubit_Factory_nil () { - return Cubit_Factory_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_Factory_ptr Cubit_Factory_duplicate (Cubit_Factory_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit_Factory::_duplicate(IT_p, IT_env)); } -Cubit_Factory_ptr Cubit_Factory_duplicate (Cubit_Factory_ptr IT_p) { - return Cubit_Factory_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_Factory_ptr Cubit_Factory::_duplicate(Cubit_Factory_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_Factory_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit_Factory* Cubit_Factory:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit_Factory*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_Factory_IMPL, Cubit_Factory_IR); -} - - - -Cubit_Factory* Cubit_Factory:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit_Factory* Cubit_Factory:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit_Factory* Cubit_Factory::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit_Factory:: _nil(); - } - - Cubit_Factory* IT_p = (Cubit_Factory*)CORBA::Object::_castDown (IT_obj, Cubit_Factory_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - -void* Cubit_FactoryProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -void* Cubit_FactoryProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -void* Cubit_FactoryProxyFactoryClass::New2 () { - return new class Cubit_Factory((char*)0);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::New2Object () { - return new class Cubit_Factory((char*)0);} - -void* Cubit_FactoryProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_Factory_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit_Factory*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* Cubit_FactoryProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit_Factory*)IT_p)->_pptr ();} - -void Cubit_FactoryProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_Factory_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -Cubit_FactoryProxyFactoryClass Cubit_FactoryProxyFactory(1); - -Cubit_ptr Cubit_Factory:: create_cubit (const char * name, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return new Cubit; - } - CORBA::Request IT_r (this, "create_cubit",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.encodeStringOp (name); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit_ptr IT_result; - IT_result = (Cubit*) IT_r.decodeObjRef (Cubit_IR); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return new Cubit; -} - - - - - -#ifndef Cubit_Factory_dispatch_impl - -unsigned char Cubit_Factory_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit_Factory"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubitS.cpp b/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubitS.cpp deleted file mode 100644 index 56cf33174a6..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubitS.cpp +++ /dev/null @@ -1,284 +0,0 @@ -// $Id$ - - - -#include "cubit.hh" - - -#define Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"cube_octet")) { - CORBA::Octet IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_octet~+o{o},>{o},N{}\ -")) - return 1; - CORBA::Octet o; - - IT_r.extractOctet (o); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_octet ( o, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -o\ -", IT_env)) return 1; - IT_r.insertOctet (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_short")) { - CORBA::Short IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_short~+s{s},>{s},N{}\ -")) - return 1; - CORBA::Short s; - - IT_r >> s; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_short ( s, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -s\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_long")) { - CORBA::Long IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_long~+l{l},>{l},N{}\ -")) - return 1; - CORBA::Long l; - - IT_r >> l; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_long ( l, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -l\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_struct")) { - Cubit::Many IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_struct~+values{R~Cubit::Many~o{o},l{l},s{s}},>{R~Cubit::Many~o{o},l{l},s{s}},N{}\ -")) - return 1; - Cubit::Many values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_struct ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -R~Cubit::Many~o{o},l{l},s{s}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_union")) { - Cubit::oneof IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - IT_r.tcPreAssert ( -"\ -Ro~cube_union~+values{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},>{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,\ -"); - if (!IT_r.tcAssert ("\ -e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},N{}\ -")) - return 1; - Cubit::oneof values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_union ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"please_exit")) { - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~please_exit~>{v},O{}\ -")) - return 1; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - ((Cubit*)IT_pp)->please_exit (IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - IT_r.replyNoResults (CORBA::Flags(CORBA::INV_NO_RESPONSE),IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#define Cubit_Factory_dispatch_impl - -unsigned char Cubit_Factory_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"create_cubit")) { - Cubit_ptr IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~create_cubit~+name{0},>{O~Cubit},N{}\ -")) - return 1; - char * name; - - IT_r.decodeStringOp(name); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit_Factory*)IT_pp)->create_cubit ( name, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - CORBA::string_free (name); - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -O~Cubit\ -", IT_env)) return 1; - { - CORBA::Object* IT_l1 = (CORBA::Object*) IT_result; - IT_r << IT_l1; - } - if (IT_result) Cubit_release (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#include "cubitC.cpp" - diff --git a/TAO/IIOP/tests/Cubit/Orbix/orb.mk b/TAO/IIOP/tests/Cubit/Orbix/orb.mk deleted file mode 100644 index cf7b12d3b1b..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/orb.mk +++ /dev/null @@ -1,146 +0,0 @@ -# ------------------------------------------------------------ -# Orbix 2.2 implicit rules for SunOS/GNU Make -# ------------------------------------------------------------ -# -# If you cut'n'paste this into your /usr/include/make/default.mk -# file, beware! This is not officially supported by Iona -# Technologies, and you may want to be a bit of a Makefile hacker -# to make it integrate well with your site's setup. - -# The best thing to do would be put it in a standard place and -# anyone who wants the Orbix implicit rule set can include -# it with an "include /orbix.mk" line in their -# Makefile. A good place to put it might be /usr/include/make. - -# These rules define default C++, C++FLAGS and C++SUFFIX. -# C++ is the C++ compiler to use; C++FLAGS are command-line -# flags to the C++ compiler for use in compiling C++ source -# files into objects; C++SUFFIX is the filename suffix -# indicating C++ source. By default, it's set to "C" for AT&T C++, -# and "cc" for GNU g++. - -# Feel free to override these in your Makefiles *after* -# including this file. - -# IMPORTANT: If the -M switch is specified in IDLFLAGS, the IDL -# compiler appends to the user-specified file. The dependency for -# specified_file.o in the linking target should appear _after_ any use -# of the IDL compiler which takes the -M flag. Putting it _last_ -# is normally the best approach. - -# Note that these rule definitions use pattern matching, -# and therefore only work with SunOS make and GNU make. - -# They may not work with other vendor's versions of make. -# If they do not, you may wish to try using GNU make, which -# is free software produced by the Free Software Foundation. - -# If the version of make you wish to use does not support -# pattern matching, use the sample explicit rule set in -# the comments at the end of this file. - -# ------------------------------------------------------------ -# Essential: set these to the locations into which you -# have installed Orbix' components: - -ORBIX_BINDIR = /opt/Orbix_2.2MT/corba2/bin -ORBIX_LIBDIR = /opt/Orbix_2.2MT/corba2/lib -ORBIX_INCDIR = /opt/Orbix_2.2MT/corba2/include - -#------------------------------------------------------------- -# To compile the demos, you should change these values as -# appropriate for your particular system installation -#------------------------------------------------------------- - -X11BASE = /usr/openwin -X11INCDIR = $(X11BASE)/include -X11LIBDIR = $(X11BASE)/lib - -# C++ = CC -# C++FLAGS = -I$(ORBIX_INCDIR) -I. -mt -D_REENTRANT -# C++SUFFIX = cpp - -# ------------------------------------------------------------ -# ITCLT, IRCLT and ITSRV can be either statically or dynamically linked -# Use -Bdynamic or -Bstatic as appropriate. -# ------------------------------------------------------------ - -ITCLT = -Bstatic -lorbixmt -IRCLT = -Bstatic -lIRcltmt -ITSRV = -Bstatic -lorbixmt -ITIIOP = -Bstatic -liiopmt -ITDSI = -Bstatic -lDSImt -ITIFR = -Bstatic -lifrmt - -# ------------------------------------------------------------ -# SYSLIBS must be dynamically linked; otherwise you can expect to -# get linkage errors for symbols in the nsl library -# ------------------------------------------------------------ - -LDFLAGS += -L$(ORBIX_LIBDIR) -SYSLIBS = -Bdynamic -lnsl -lsocket - -IDL = $(ORBIX_BINDIR)/idl -IDLFLAGS = - -# ------------------------------------------------------------ -# The following section defines implicit rules for creating -# *.{C,S}.C files, rules for compiling those -# into objects, and even a rule for compiling C++ source into -# objects (in case one isn't already defined). - -# ------------------------------------------------------------ -# first, put the new suffixes at the *head* of the suffix list, -# overriding any existing .C compilation method. -.SUFFIXES: -.SUFFIXES: .$(C++SUFFIX) .idl $(SUFFIXES) - -# .SUFFIXES: .$(C++SUFFIX) .idl .hh $(SUFFIXES) -# ------------------------------------------------------------ -# *[CS].o must be compiled here, and depends -# mostly on the C++ files produced from the IDL file. - -%C.o: %C.$(C++SUFFIX) - $(C++) -c $(C++FLAGS) $< - -%S.o: %S.$(C++SUFFIX) - $(C++) -c $(C++FLAGS) $< - -%.o: %.$(C++SUFFIX) - $(C++) -c $(C++FLAGS) $< - -# and here's how to compile C++ files from the IDL file. -# only ONE of these rules will be run at make-time, - -%S.$(C++SUFFIX): %.idl - $(IDL) $(IDLFLAGS) $< - -%C.$(C++SUFFIX): %.idl - $(IDL) $(IDLFLAGS) $< - -%.hh: %.idl - $(IDL) $(IDLFLAGS) $< - -# ------------------------------------------------------------ -# If the version of make you wish to use does not support -# pattern matching, here's a sample of an explicit rule set. - -# We assume the IDL file is called "foobar.idl", we wish -# to compile "foobarC.o", "foobarS.o", and -# "foobar.hh", and the C++ file suffix. -# ------------------------------------------------------------ - -# foobarC.o: foobar.hh foobarC.C -# $(C++) -c ($C++FLAGS) foobarC.C -# -# foobarS.o: foobar.hh foobarS.C -# $(C++) -c ($C++FLAGS) foobarS.C -# -# foobarC.C: foobar.idl -# $(IDL) -c ($IDLFLAGS) foobar.idl -# -# foobarS.C: foobar.idl -# $(IDL) -c ($IDLFLAGS) foobar.idl -# -# foobar.hh: foobar.idl -# $(IDL) -c ($IDLFLAGS) foobar.idl diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/Makefile b/TAO/IIOP/tests/Cubit/Orbix/tpool/Makefile deleted file mode 100644 index 0e425af78b1..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/Makefile +++ /dev/null @@ -1,89 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitS.cpp cubit_impl.cpp server.cpp tpool.cpp - -SVR_OBJS = cubitS.o cubit_impl.o server.o tpool.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -# Remove -DCubit_USE_BOA from below to use the TIE approach - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -DCubit_USE_BOA -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: server - -server: $(addprefix $(VDIR),$(SVR_OBJS)) - $(LINK.cc) -o server $(addprefix $(VDIR),$(SVR_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITSRV) $(VLDLIBS) $(POSTLINK) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubit_impl.o .shobj/cubit_impl.so: cubit_impl.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i -.obj/server.o .shobj/server.so: server.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.h b/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.h deleted file mode 100644 index 1fd0a2d3c7d..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.h +++ /dev/null @@ -1,729 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include "ace/OS.h" -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.idl b/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.idl deleted file mode 100644 index d4f1610e2a8..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubitC.cpp b/TAO/IIOP/tests/Cubit/Orbix/tpool/cubitC.cpp deleted file mode 100644 index 1d10b058a70..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubitC.cpp +++ /dev/null @@ -1,559 +0,0 @@ -// $Id$ - -#include "cubit.h" - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubitS.cpp b/TAO/IIOP/tests/Cubit/Orbix/tpool/cubitS.cpp deleted file mode 100644 index d72803fed0c..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubitS.cpp +++ /dev/null @@ -1,228 +0,0 @@ -// $Id$ - -#include "cubit.h" - - -#define Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"cube_octet")) { - CORBA::Octet IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_octet~+o{o},>{o},N{}\ -")) - return 1; - CORBA::Octet o; - - IT_r.extractOctet (o); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_octet ( o, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -o\ -", IT_env)) return 1; - IT_r.insertOctet (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_short")) { - CORBA::Short IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_short~+s{s},>{s},N{}\ -")) - return 1; - CORBA::Short s; - - IT_r >> s; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_short ( s, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -s\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_long")) { - CORBA::Long IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_long~+l{l},>{l},N{}\ -")) - return 1; - CORBA::Long l; - - IT_r >> l; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_long ( l, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -l\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_struct")) { - Cubit::Many IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_struct~+values{R~Cubit::Many~o{o},l{l},s{s}},>{R~Cubit::Many~o{o},l{l},s{s}},N{}\ -")) - return 1; - Cubit::Many values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_struct ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -R~Cubit::Many~o{o},l{l},s{s}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_union")) { - Cubit::oneof IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - IT_r.tcPreAssert ( -"\ -Ro~cube_union~+values{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},>{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,\ -"); - if (!IT_r.tcAssert ("\ -e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},N{}\ -")) - return 1; - Cubit::oneof values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_union ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"please_exit")) { - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~please_exit~>{v},O{}\ -")) - return 1; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - ((Cubit*)IT_pp)->please_exit (IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - IT_r.replyNoResults (CORBA::Flags(CORBA::INV_NO_RESPONSE),IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#include "cubitC.cpp" - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit_impl.cpp b/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit_impl.cpp deleted file mode 100644 index e96b6e33dcd..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit_impl.cpp +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -#include "cubit_impl.h" - -CORBA::Octet Cubit_Impl:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Octet) (o * o * o); -} - -CORBA::Short Cubit_Impl:: cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Short) (s * s * s); -} - -CORBA::Long Cubit_Impl:: cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Long) (l * l * l); -} - -Cubit::Many Cubit_Impl:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::Many out_values; - out_values.o = values.o * values.o * values.o; - out_values.s = values.s * values.s * values.s; - out_values.l = values.l * values.l * values.l; - return out_values; -} - -Cubit::oneof Cubit_Impl:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::oneof out_values; - switch (values._d ()) { - case Cubit::e_0th: - out_values.o (values.o () * values.o () * values.o ()); - break; - case Cubit::e_1st: - out_values.s (values.s () * values.s () * values.s ()); - break; - case Cubit::e_2nd: - out_values.l (values.l () * values.l () * values.l ()); - break; - case Cubit::e_3rd: - default: - out_values.cm ().o = values.cm ().o * values.cm ().o * values.cm ().o ; - out_values.cm ().s = values.cm ().s * values.cm ().s * values.cm ().s ; - out_values.cm ().l = values.cm ().l * values.cm ().l * values.cm ().l ; - break; - } - return out_values; -} - -void Cubit_Impl:: please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException) { -} diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit_impl.h b/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit_impl.h deleted file mode 100644 index 033aa7f0cb1..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit_impl.h +++ /dev/null @@ -1,29 +0,0 @@ -// $Id$ - - -#ifndef cubit_ih -#define cubit_ih - -#include "cubit.h" - - -#ifdef Cubit_USE_BOA -class Cubit_Impl : public virtual CubitBOAImpl { -#else -class Cubit_Impl { -#endif /* Cubit_USE_BOA */ - -public: - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); -}; - -#ifndef Cubit_USE_BOA -DEF_TIE_Cubit (Cubit_Impl) -#endif /* Cubit_USE_BOA */ - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/server.cpp b/TAO/IIOP/tests/Cubit/Orbix/tpool/server.cpp deleted file mode 100644 index ac107f69ec4..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/server.cpp +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : tpr_server.cpp -// DESCRIPTION: -// -// Server mainline -// -//**************************************************************************** -#define IT_EX_MACROS - -#include "cubit_impl.h" // server header file -#include "tpool.h" - -int -main (int argc, char** argv) -{ - - -#ifdef Cubit_USE_BOA - Cubit_var cb = new Cubit_Impl; - cout << "Using BOA approach" << endl; -#else - Cubit_var cb = new TIE_Cubit (Cubit_Impl) (new Cubit_Impl); - cout << "Using TIE approach" << endl; -#endif /* Cubit_USE_BOA */ - - // Register our thread-pool dispatcher - int n_threads = argc > 1 ? ACE_OS::atoi (argv[1]) : ACE_DEFAULT_THREADS; - Thread_Pool tpool_dispatcher (n_threads); - - // - // Go get some work to do.... - // - IT_TRY { - CORBA::Orbix.impl_is_ready("Cubit", IT_X); - } - IT_CATCHANY { - cout << IT_X << endl; - } - IT_ENDTRY; - - cout << "Cubit server is exiting." << endl; - - - return 0; -} diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.cpp b/TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.cpp deleted file mode 100644 index 219503a22d7..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.cpp +++ /dev/null @@ -1,44 +0,0 @@ -// $Id$ - -#include "tpool.h" - -Thread_Pool::Thread_Pool (int n_threads) - : ACE_Task (ACE_Thread_Manager::instance ()) -{ - if (this->activate (THR_DETACHED | THR_NEW_LWP, n_threads) == -1) - ACE_ERROR ((LM_ERROR, "%p\n", "activate failed")); -} - -int -Thread_Pool::svc (void) -{ - cout << "Pool thread activated" << endl; - while (1) - { - // Dequeue message - ACE_Message_Block *mb; - this->msg_queue ()->dequeue_head (mb); - CORBA::Request *vp = (CORBA::Request *) mb->base (); - mb->release (); - // Hand it off to Orbix - CORBA::Orbix.continueThreadDispatch (*vp); - } - return -1; -} - - -int -Thread_Pool::inRequestPreMarshal(CORBA::Request &r, CORBA::Environment&) -{ -// thread_t tid; -// thr_create(NULL, 0, worker, (void *)&r, THR_DETACHED, &tid); - - // Enqueue the request - ACE_Message_Block *mb = new ACE_Message_Block ( (char *) (&r)); - this->msg_queue ()->enqueue (mb); - // Done - return -1; -} - - - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.h b/TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.h deleted file mode 100644 index 337a7f54e65..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.h +++ /dev/null @@ -1,17 +0,0 @@ -// $Id$ - -#include "cubit.h" -#include "ace/Service_Config.h" -#include "ace/Thread_Manager.h" -#include "ace/Task.h" - -class Thread_Pool : public ACE_Task, public CORBA::ThreadFilter -{ -public: - Thread_Pool (int n_threads); - virtual int inRequestPreMarshal(CORBA::Request &, CORBA::Environment&); - virtual int svc (void); - -}; - - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/Makefile b/TAO/IIOP/tests/Cubit/Orbix/tpr/Makefile deleted file mode 100644 index 650d6aaf259..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/Makefile +++ /dev/null @@ -1,89 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitS.cpp cubit_impl.cpp server.cpp tpr.cpp - -SVR_OBJS = cubitS.o cubit_impl.o server.o tpr.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -# Remove -DCubit_USE_BOA from below to use the TIE approach - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -DCubit_USE_BOA -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: server - -server: $(addprefix $(VDIR),$(SVR_OBJS)) - $(LINK.cc) -o server $(addprefix $(VDIR),$(SVR_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITSRV) $(VLDLIBS) $(POSTLINK) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubit_impl.o .shobj/cubit_impl.so: cubit_impl.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i -.obj/server.o .shobj/server.so: server.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.h b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.h deleted file mode 100644 index 1fd0a2d3c7d..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.h +++ /dev/null @@ -1,729 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include "ace/OS.h" -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.idl b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.idl deleted file mode 100644 index d4f1610e2a8..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.cpp b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.cpp deleted file mode 100644 index 1d10b058a70..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.cpp +++ /dev/null @@ -1,559 +0,0 @@ -// $Id$ - -#include "cubit.h" - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.h b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.h deleted file mode 100644 index 584efa67c8d..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.h +++ /dev/null @@ -1,345 +0,0 @@ -// $Id$ - -#ifndef _cubitC_h -#define _cubitC_h - -/************************************************************************/ -/* */ -/* This file is automatically generated by ORBeline IDL compiler */ -/* Do not modify this file. */ -/* */ -/* ORBeline (c) is copyrighted by PostModern Computing, Inc. */ -/* */ -/* The generated code conforms to OMG's IDL C++ mapping as */ -/* specified in OMG Document Number: 94-9-14. */ -/* */ -/************************************************************************/ - -#include "corba.h" - - - -class Cubit; -typedef Cubit *Cubit_ptr; -typedef Cubit_ptr CubitRef; - -#ifndef _Cubit_var_ -#define _Cubit_var_ -class Cubit_var -{ - public: - Cubit_var(); - Cubit_var(Cubit_ptr); - Cubit_var(const Cubit_var&); - ~Cubit_var(); - Cubit_var& operator=(Cubit_ptr); - operator Cubit_ptr() const { return _ptr; } -#if defined(_HPCC_BUG) - operator Cubit *&() { return _ptr; } -#else - operator Cubit_ptr&() { return _ptr; } -#endif - Cubit_ptr operator->() const { return _ptr;} - friend NCistream& operator>>(NCistream&, Cubit_var&); - friend NCostream& operator<<(NCostream&, const Cubit_var&); - friend istream& operator>>(istream&, Cubit_var&); - friend ostream& operator<<(ostream&, const Cubit_var&); - private: - Cubit_ptr _ptr; - void operator=(const Cubit_var&) {} -}; -#endif -class Cubit: public virtual CORBA_Object -{ - private: - static const CORBA::TypeInfo _class_info; - Cubit(const Cubit&) {} - void operator=(const Cubit&){} - public: - static const CORBA::TypeInfo *_desc(); - virtual const CORBA::TypeInfo *_type_info() const; - virtual void *_safe_narrow(const CORBA::TypeInfo& ) const; - static CORBA::Object *_factory(); - protected: - Cubit(const char *obj_name = NULL) :CORBA_Object(obj_name, 1) {} - Cubit(NCistream& strm) :CORBA_Object(strm) {} - virtual ~Cubit() {} - public: - static Cubit_ptr _duplicate(Cubit_ptr obj) { - if (obj ) obj->_ref(); - return obj; - } - static Cubit_ptr _nil() { return (Cubit_ptr)NULL;} - static Cubit_ptr _narrow(CORBA::Object *obj); - static Cubit_ptr _clone(Cubit_ptr obj) { - CORBA::Object_var obj_var(__clone(obj)); - -#if defined(_HPCC_BUG) - return _narrow(obj_var.operator CORBA::Object_ptr()); -#else - return _narrow(obj_var); -#endif - } - static Cubit_ptr _bind(const char *object_name = NULL, - const char *host_name = NULL, - const CORBA::BindOptions* opt = NULL); - - virtual CORBA::Octet cube_octet(CORBA::Octet o); - - virtual CORBA::Short cube_short(CORBA::Short s); - - virtual CORBA::Long cube_long(CORBA::Long l); - - struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - }; - friend NCostream& operator<<(NCostream&, const Many& ); - friend NCistream& operator>>(NCistream&, Many& ); - - friend ostream& operator<<(ostream&, const Many& ); - inline friend istream& operator>>(istream& _strm, Many& _obj) { - NCistream _istrm(_strm); - _istrm >> _obj; - return _strm; - } - - - typedef Many *Many_ptr; - class Many_var - { - public: - Many_var() { _ptr = (Many*)NULL;} - Many_var(Many *ptr) { - _ptr = ptr; - } - Many_var(const Many_var& var) { - if (var._ptr) - _ptr = new Many(*var._ptr); - else - _ptr = (Many *)NULL; - } - ~Many_var() { - if (_ptr != (Many *)NULL) delete _ptr; - } - Many_var& operator=(Many *ptr) { - if (_ptr != (Many *)NULL) delete _ptr; - _ptr = ptr; - return *this; - } - Many_var& operator=(const Many_var& var) { - if (_ptr != (Many *)NULL) delete _ptr; - if (var._ptr) - _ptr = new Many(*var._ptr); - else - _ptr = (Many *)NULL; - return *this; - } - Many *operator->() { return _ptr; } - operator Many () const { return *_ptr; } - operator Many& () { return *_ptr; } - inline friend NCostream& operator<<(NCostream& strm, - const Many_var& var) { - if (var._ptr == (Many *)NULL) { - throw CORBA::BAD_PARAM(); - } - else - strm << *var._ptr; - return strm; - } - inline friend NCistream& operator>>(NCistream& strm, - Many_var& var) { - if ( ! var._ptr) - var._ptr = new Many; - strm >> *var._ptr; - return strm; - } - private: - Many *_ptr; - }; - - - virtual Cubit::Many cube_struct(const Cubit::Many& values); - - enum discrim { - e_0th, - e_1st, - e_2nd, - e_3rd, - e_4th, - e_5th - }; - inline friend NCostream& operator<<(NCostream& _strm, discrim _enum_type) { - _strm << (CORBA::ULong)_enum_type; - return _strm; - } - inline friend NCistream& operator>>(NCistream& _strm, discrim& _enum_type) { - CORBA::ULong _temp; - _strm >> _temp; - if (_temp >= 6) - throw CORBA::BAD_PARAM(); - _enum_type = discrim(_temp); - return _strm; - } - inline friend ostream& operator<<(ostream& _strm, discrim _enum_type) { - if( &_strm == &cout || &_strm == &cerr || &_strm == &clog) { - _strm << "discrim:"; - switch(_enum_type) { - case e_0th: - _strm << "e_0th" << endl; - break; - case e_1st: - _strm << "e_1st" << endl; - break; - case e_2nd: - _strm << "e_2nd" << endl; - break; - case e_3rd: - _strm << "e_3rd" << endl; - break; - case e_4th: - _strm << "e_4th" << endl; - break; - case e_5th: - _strm << "e_5th" << endl; - break; - } - } - else - _strm << (CORBA::ULong)_enum_type; - return _strm; - } - inline friend istream& operator>>(istream& _strm, discrim& _enum_type) { - CORBA::ULong _temp; - _strm >> _temp; - _enum_type = discrim(_temp); - return _strm; - } - - - class oneof - { - public: - private: - discrim _disc; - CORBA::Octet __o; - CORBA::Short __s; - CORBA::Long __l; - Cubit::Many __cm; - public: - oneof() : _disc(discrim(0)) {} - ~oneof() {} - oneof(const oneof& obj); - oneof& operator=(const oneof& obj); - - void _d(discrim val) { _disc = val; } - discrim _d() const { return _disc; } - - void o(CORBA::Octet val) { - __o = val; - _disc = Cubit::e_0th; - } - CORBA::Octet o() const { return __o; } - - void s(CORBA::Short val) { - __s = val; - _disc = Cubit::e_1st; - } - CORBA::Short s() const { return __s; } - - void l(CORBA::Long val) { - __l = val; - _disc = Cubit::e_2nd; - } - CORBA::Long l() const { return __l; } - - void cm(const Cubit::Many& val) { - __cm = val; - _disc = Cubit::e_3rd; - } - const Cubit::Many& cm() const { return __cm; } - Cubit::Many& cm() { return __cm; } - - friend NCostream& operator<<(NCostream&, const oneof& ); - friend NCistream& operator>>(NCistream&, oneof& ); - friend ostream& operator<<(ostream&, const oneof&); - inline friend istream& operator>>(istream& strm, oneof& obj) { - NCistream istrm(strm); - strm >> obj; - return strm; - } - }; - - typedef oneof *oneof_ptr; - class oneof_var - { - public: - oneof_var() { _ptr = (oneof*)NULL;} - oneof_var(oneof *ptr) { - _ptr = ptr; - } - oneof_var(const oneof_var& var) { - _ptr = new oneof(*var._ptr); - } - ~oneof_var() { - if (_ptr != (oneof *)NULL) delete _ptr; - } - oneof_var& operator=(oneof *ptr) { - if (_ptr != (oneof *)NULL) delete _ptr; - _ptr = ptr; - return *this; - } - oneof_var& operator=(const oneof_var& var) { - if (_ptr != (oneof *)NULL) delete _ptr; - _ptr = new oneof(*var._ptr); - return *this; - } - oneof *operator->() { return _ptr; } - operator oneof () const { return *_ptr; } - operator oneof& () { return *_ptr; } - inline friend NCostream& operator<<(NCostream& strm, - const oneof_var& var) { - if (var._ptr == (oneof *)NULL) { - throw CORBA::BAD_PARAM(); - } - else - strm << *var._ptr; - return strm; - } - inline friend NCistream& operator>>(NCistream& strm, - oneof_var& var) { - if ( ! var._ptr) - var._ptr = new oneof; - strm >> *var._ptr; - return strm; - } - private: - oneof *_ptr; - }; - - - virtual Cubit::oneof cube_union(const Cubit::oneof& values); - - virtual void please_exit(); - - inline friend NCistream& operator>>(NCistream& strm, Cubit_ptr& obj) { - CORBA::Object_var _obj(obj); - _obj = CORBA::Object::_read(strm, Cubit::_desc()); - obj = Cubit::_narrow(_obj); - return strm; - } - inline friend ostream& operator<<(ostream& strm, const Cubit_ptr obj) { - strm << (CORBA::Object_ptr)obj; - return strm; - } - inline friend istream& operator>>(istream& strm, Cubit_ptr& obj) { - NCistream istrm(strm); - istrm >> obj; - return strm; - } -}; - - -#endif - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.cpp b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.cpp deleted file mode 100644 index d72803fed0c..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.cpp +++ /dev/null @@ -1,228 +0,0 @@ -// $Id$ - -#include "cubit.h" - - -#define Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"cube_octet")) { - CORBA::Octet IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_octet~+o{o},>{o},N{}\ -")) - return 1; - CORBA::Octet o; - - IT_r.extractOctet (o); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_octet ( o, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -o\ -", IT_env)) return 1; - IT_r.insertOctet (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_short")) { - CORBA::Short IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_short~+s{s},>{s},N{}\ -")) - return 1; - CORBA::Short s; - - IT_r >> s; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_short ( s, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -s\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_long")) { - CORBA::Long IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_long~+l{l},>{l},N{}\ -")) - return 1; - CORBA::Long l; - - IT_r >> l; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_long ( l, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -l\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_struct")) { - Cubit::Many IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_struct~+values{R~Cubit::Many~o{o},l{l},s{s}},>{R~Cubit::Many~o{o},l{l},s{s}},N{}\ -")) - return 1; - Cubit::Many values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_struct ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -R~Cubit::Many~o{o},l{l},s{s}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_union")) { - Cubit::oneof IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - IT_r.tcPreAssert ( -"\ -Ro~cube_union~+values{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},>{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,\ -"); - if (!IT_r.tcAssert ("\ -e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},N{}\ -")) - return 1; - Cubit::oneof values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_union ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"please_exit")) { - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~please_exit~>{v},O{}\ -")) - return 1; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - ((Cubit*)IT_pp)->please_exit (IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - IT_r.replyNoResults (CORBA::Flags(CORBA::INV_NO_RESPONSE),IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#include "cubitC.cpp" - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.h b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.h deleted file mode 100644 index 3ca717e2b49..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.h +++ /dev/null @@ -1,120 +0,0 @@ -// $Id$ - -#ifndef _cubitS_h -#define _cubitS_h - -#include "cubitC.h" - -/************************************************************************/ -/* */ -/* This file is automatically generated by ORBeline IDL compiler */ -/* Do not modify this file. */ -/* */ -/* ORBeline (c) is copyrighted by PostModern Computing, Inc. */ -/* */ -/* The generated code conforms to OMG's IDL C++ mapping as */ -/* specified in OMG Document Number: 94-9-14. */ -/* */ -/************************************************************************/ - -class _sk_Cubit : public Cubit -{ - protected: - _sk_Cubit(const char *object_name = (const char *)NULL); - _sk_Cubit(const char *service_name, const CORBA::ReferenceData& data); - virtual ~_sk_Cubit() {} - public: - static const CORBA::TypeInfo _skel_info; - - // The following operations need to be implemented by the server. - virtual CORBA::Octet cube_octet(CORBA::Octet o) = 0; - virtual CORBA::Short cube_short(CORBA::Short s) = 0; - virtual CORBA::Long cube_long(CORBA::Long l) = 0; - virtual Cubit::Many cube_struct(const Cubit::Many& values) = 0; - virtual Cubit::oneof cube_union(const Cubit::oneof& values) = 0; - virtual void please_exit() = 0; - - // Skeleton Operations implemented automatically - - static void _cube_octet(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_short(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_long(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_struct(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_union(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _please_exit(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - -}; -template -class _tie_Cubit : public Cubit -{ - public: - _tie_Cubit(T& t, const char *obj_name=(char*)NULL) : - Cubit(obj_name), - _ref(t) { - _object_name(obj_name); - } - _tie_Cubit(T& t, const char *service_name, - const CORBA::ReferenceData& id) - :_ref(t) { - _service(service_name, id); - } - ~_tie_Cubit() {} - CORBA::Octet cube_octet(CORBA::Octet o) { - return _ref.cube_octet( - o); - } - CORBA::Short cube_short(CORBA::Short s) { - return _ref.cube_short( - s); - } - CORBA::Long cube_long(CORBA::Long l) { - return _ref.cube_long( - l); - } - Cubit::Many cube_struct(const Cubit::Many& values) { - return _ref.cube_struct( - values); - } - Cubit::oneof cube_union(const Cubit::oneof& values) { - return _ref.cube_union( - values); - } - void please_exit() { - _ref.please_exit(); - } - - private: - T& _ref; -}; - -#endif - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit_impl.cpp b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit_impl.cpp deleted file mode 100644 index e96b6e33dcd..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit_impl.cpp +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -#include "cubit_impl.h" - -CORBA::Octet Cubit_Impl:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Octet) (o * o * o); -} - -CORBA::Short Cubit_Impl:: cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Short) (s * s * s); -} - -CORBA::Long Cubit_Impl:: cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Long) (l * l * l); -} - -Cubit::Many Cubit_Impl:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::Many out_values; - out_values.o = values.o * values.o * values.o; - out_values.s = values.s * values.s * values.s; - out_values.l = values.l * values.l * values.l; - return out_values; -} - -Cubit::oneof Cubit_Impl:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::oneof out_values; - switch (values._d ()) { - case Cubit::e_0th: - out_values.o (values.o () * values.o () * values.o ()); - break; - case Cubit::e_1st: - out_values.s (values.s () * values.s () * values.s ()); - break; - case Cubit::e_2nd: - out_values.l (values.l () * values.l () * values.l ()); - break; - case Cubit::e_3rd: - default: - out_values.cm ().o = values.cm ().o * values.cm ().o * values.cm ().o ; - out_values.cm ().s = values.cm ().s * values.cm ().s * values.cm ().s ; - out_values.cm ().l = values.cm ().l * values.cm ().l * values.cm ().l ; - break; - } - return out_values; -} - -void Cubit_Impl:: please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException) { -} diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit_impl.h b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit_impl.h deleted file mode 100644 index 033aa7f0cb1..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit_impl.h +++ /dev/null @@ -1,29 +0,0 @@ -// $Id$ - - -#ifndef cubit_ih -#define cubit_ih - -#include "cubit.h" - - -#ifdef Cubit_USE_BOA -class Cubit_Impl : public virtual CubitBOAImpl { -#else -class Cubit_Impl { -#endif /* Cubit_USE_BOA */ - -public: - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); -}; - -#ifndef Cubit_USE_BOA -DEF_TIE_Cubit (Cubit_Impl) -#endif /* Cubit_USE_BOA */ - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/server.cpp b/TAO/IIOP/tests/Cubit/Orbix/tpr/server.cpp deleted file mode 100644 index 527fa13d76e..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/server.cpp +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : tpr_server.cpp -// DESCRIPTION: -// -// Server mainline -// -//**************************************************************************** -#define IT_EX_MACROS - -#include "cubit_impl.h" // server header file - -int -main (int , char**) -{ - -#ifdef Cubit_USE_BOA - Cubit_var cb = new Cubit_Impl; - cout << "Using BOA approach" << endl; -#else - Cubit_var cb = new TIE_Cubit (Cubit_Impl) (new Cubit_Impl); - cout << "Using TIE approach" << endl; -#endif /* Cubit_USE_BOA */ - - // - // Go get some work to do.... - // - IT_TRY { - CORBA::Orbix.impl_is_ready("Cubit", IT_X); - } - IT_CATCHANY { - cout << IT_X << endl; - } - IT_ENDTRY; - - cout << "Cubit server is exiting." << endl; - - - return 0; -} diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.cpp b/TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.cpp deleted file mode 100644 index da78690cc2c..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.cpp +++ /dev/null @@ -1,28 +0,0 @@ -// $Id$ - -#include "tpr.h" - -void * -worker(void *vp) -{ - ACE_Thread_Control tc (ACE_Thread_Manager::instance ()); - CORBA::Orbix.continueThreadDispatch (*(CORBA::Request *)vp); - return NULL; -} - - -int -tpr_filter::inRequestPreMarshal(CORBA::Request &r, CORBA::Environment&) -{ -// thread_t tid; -// thr_create(NULL, 0, worker, (void *)&r, THR_DETACHED, &tid); - - ACE_Thread_Manager *thr_mgr = ACE_Thread_Manager::instance (); - thr_mgr->spawn (ACE_THR_FUNC (worker), - (void *) &r, - THR_DETACHED); - - return -1; -} - -tpr_filter tpr_dispatcher; diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.h b/TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.h deleted file mode 100644 index b5e8be94cf1..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.h +++ /dev/null @@ -1,12 +0,0 @@ -// $Id$ - -#include "cubit.h" -#include "ace/Service_Config.h" -#include "ace/Thread_Manager.h" - -// -// Create a thread filter to dispatch incoming calls -// -class tpr_filter : public CORBA::ThreadFilter { - virtual int inRequestPreMarshal(CORBA::Request &, CORBA::Environment&); -}; diff --git a/TAO/IIOP/tests/Cubit/Orbix/tps/Makefile b/TAO/IIOP/tests/Cubit/Orbix/tps/Makefile deleted file mode 100644 index 69701ba3b63..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tps/Makefile +++ /dev/null @@ -1,349 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitS.cpp cubit_impl.cpp server.cpp tps.cpp - -SVR_OBJS = cubitS.o cubit_impl.o server.o tps.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -# Remove -DCubit_USE_BOA from below to use the TIE approach - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -DCubit_USE_BOA -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: server - -server: $(addprefix $(VDIR),$(SVR_OBJS)) - $(LINK.cc) -o server $(addprefix $(VDIR),$(SVR_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITSRV) $(VLDLIBS) $(POSTLINK) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubitS.o .shobj/cubitS.so: cubitS.cpp cubit.h cubitC.cpp -.obj/cubit_impl.o .shobj/cubit_impl.so: cubit_impl.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Message_Queue.h \ - $(ACE_ROOT)/ace/Message_Block.h \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc.i \ - $(ACE_ROOT)/ace/Malloc_T.h \ - $(ACE_ROOT)/ace/Malloc_T.i \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(ACE_ROOT)/ace/Signal.i \ - $(ACE_ROOT)/ace/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(ACE_ROOT)/ace/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(ACE_ROOT)/ace/Service_Config.i \ - $(ACE_ROOT)/ace/Reactor.h \ - $(ACE_ROOT)/ace/Handle_Set.h \ - $(ACE_ROOT)/ace/Handle_Set.i \ - $(ACE_ROOT)/ace/Timer_Queue.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Token.h \ - $(ACE_ROOT)/ace/Token.i \ - $(ACE_ROOT)/ace/Pipe.h \ - $(ACE_ROOT)/ace/Pipe.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(ACE_ROOT)/ace/IPC_SAP.h \ - $(ACE_ROOT)/ace/IPC_SAP.i \ - $(ACE_ROOT)/ace/SOCK.i \ - $(ACE_ROOT)/ace/SOCK_IO.i \ - $(ACE_ROOT)/ace/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Proactor.h \ - $(ACE_ROOT)/ace/Asynch_IO.h \ - $(ACE_ROOT)/ace/Timer_List.h \ - $(ACE_ROOT)/ace/Timer_List_T.h \ - $(ACE_ROOT)/ace/Timer_Heap.h \ - $(ACE_ROOT)/ace/Timer_Heap_T.h \ - $(ACE_ROOT)/ace/Timer_Wheel.h \ - $(ACE_ROOT)/ace/Timer_Wheel_T.h \ - $(ACE_ROOT)/ace/ReactorEx.h \ - $(ACE_ROOT)/ace/ReactorEx.i \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/Task_T.i -.obj/server.o .shobj/server.so: server.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Message_Queue.h \ - $(ACE_ROOT)/ace/Message_Block.h \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc.i \ - $(ACE_ROOT)/ace/Malloc_T.h \ - $(ACE_ROOT)/ace/Malloc_T.i \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(ACE_ROOT)/ace/Signal.i \ - $(ACE_ROOT)/ace/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(ACE_ROOT)/ace/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(ACE_ROOT)/ace/Service_Config.i \ - $(ACE_ROOT)/ace/Reactor.h \ - $(ACE_ROOT)/ace/Handle_Set.h \ - $(ACE_ROOT)/ace/Handle_Set.i \ - $(ACE_ROOT)/ace/Timer_Queue.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Token.h \ - $(ACE_ROOT)/ace/Token.i \ - $(ACE_ROOT)/ace/Pipe.h \ - $(ACE_ROOT)/ace/Pipe.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(ACE_ROOT)/ace/IPC_SAP.h \ - $(ACE_ROOT)/ace/IPC_SAP.i \ - $(ACE_ROOT)/ace/SOCK.i \ - $(ACE_ROOT)/ace/SOCK_IO.i \ - $(ACE_ROOT)/ace/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Proactor.h \ - $(ACE_ROOT)/ace/Asynch_IO.h \ - $(ACE_ROOT)/ace/Timer_List.h \ - $(ACE_ROOT)/ace/Timer_List_T.h \ - $(ACE_ROOT)/ace/Timer_Heap.h \ - $(ACE_ROOT)/ace/Timer_Heap_T.h \ - $(ACE_ROOT)/ace/Timer_Wheel.h \ - $(ACE_ROOT)/ace/Timer_Wheel_T.h \ - $(ACE_ROOT)/ace/ReactorEx.h \ - $(ACE_ROOT)/ace/ReactorEx.i \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/Task_T.i -.obj/tps.o .shobj/tps.so: tps.cpp tps.h cubit.h cubit_impl.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Message_Queue.h \ - $(ACE_ROOT)/ace/Message_Block.h \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc.i \ - $(ACE_ROOT)/ace/Malloc_T.h \ - $(ACE_ROOT)/ace/Malloc_T.i \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(ACE_ROOT)/ace/Signal.i \ - $(ACE_ROOT)/ace/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(ACE_ROOT)/ace/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(ACE_ROOT)/ace/Service_Config.i \ - $(ACE_ROOT)/ace/Reactor.h \ - $(ACE_ROOT)/ace/Handle_Set.h \ - $(ACE_ROOT)/ace/Handle_Set.i \ - $(ACE_ROOT)/ace/Timer_Queue.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Token.h \ - $(ACE_ROOT)/ace/Token.i \ - $(ACE_ROOT)/ace/Pipe.h \ - $(ACE_ROOT)/ace/Pipe.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(ACE_ROOT)/ace/IPC_SAP.h \ - $(ACE_ROOT)/ace/IPC_SAP.i \ - $(ACE_ROOT)/ace/SOCK.i \ - $(ACE_ROOT)/ace/SOCK_IO.i \ - $(ACE_ROOT)/ace/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Proactor.h \ - $(ACE_ROOT)/ace/Asynch_IO.h \ - $(ACE_ROOT)/ace/Timer_List.h \ - $(ACE_ROOT)/ace/Timer_List_T.h \ - $(ACE_ROOT)/ace/Timer_Heap.h \ - $(ACE_ROOT)/ace/Timer_Heap_T.h \ - $(ACE_ROOT)/ace/Timer_Wheel.h \ - $(ACE_ROOT)/ace/Timer_Wheel_T.h \ - $(ACE_ROOT)/ace/ReactorEx.h \ - $(ACE_ROOT)/ace/ReactorEx.i \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/Task_T.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/tests/Cubit/Orbix/tps/cubit.h b/TAO/IIOP/tests/Cubit/Orbix/tps/cubit.h deleted file mode 100644 index 3a2dd546608..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tps/cubit.h +++ /dev/null @@ -1,1113 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include - -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#ifndef _Cubit_Factory_defined -#define _Cubit_Factory_defined -class Cubit_Factory_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_Factory_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch () {} - - Cubit_Factory_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit_Factory; - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - - -#ifndef Cubit_FactoryForwH -#define Cubit_FactoryForwH -CORBA::ObjectRef Cubit_Factory_getBase (void *); -void Cubit_Factory_release (Cubit_Factory *, CORBA::Environment &IT_env); -void Cubit_Factory_release (Cubit_Factory_ptr); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr, CORBA::Environment &IT_env); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr ); -Cubit_Factory_ptr Cubit_Factory_nil (CORBA::Environment &IT_env); -Cubit_Factory_ptr Cubit_Factory_nil (); -#endif -#define Cubit_Factory_IMPL "Cubit_Factory" - - -class Cubit_Factory; - -typedef Cubit_Factory Cubit_FactoryProxy; -#define Cubit_Factory_IR "Cubit_Factory" -#define Cubit_Factory_IMPL "Cubit_Factory" - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - -class Cubit_Factory: public virtual CORBA::Object { -public: - Cubit_Factory (char *IT_OR); - Cubit_Factory (ObjectReference *IT_OR); - Cubit_Factory () : CORBA::Object (1) {} -protected: - Cubit_Factory_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_Factory_ptr _duplicate( - Cubit_Factory_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit_Factory* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _bind (CORBA::Environment &IT_env); - static Cubit_Factory* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_Factory_ptr) CORBA::OBJECT_NIL;} - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef Cubit_FactoryVarH -#define Cubit_FactoryVarH - -#ifndef Cubit_FactoryvPtr -#define Cubit_FactoryvPtr -typedef Cubit_Factory* Cubit_Factory_vPtr; -typedef const Cubit_Factory* Cubit_Factory_cvPtr; -#endif - -class Cubit_Factory_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_Factory_var &IT_s) { - { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_Factory_var (const Cubit_Factory_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_Factory_var () { - _ptr = Cubit_Factory_nil (); - } - - Cubit_Factory_var (Cubit_Factory *IT_p) { - _ptr = IT_p; - } - - Cubit_Factory_var &operator= (Cubit_Factory *IT_p) { - Cubit_Factory_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_Factory_var &operator= (const Cubit_Factory_var &IT_s) { - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_Factory_var () { - Cubit_Factory_release (_ptr); - } - - Cubit_Factory* operator-> () { - return _ptr; - } - - operator Cubit_Factory_cvPtr () const { return _ptr;} - operator Cubit_Factory_vPtr& () { return _ptr;} - - protected: - Cubit_Factory *_ptr; - private: - Cubit_Factory_var &operator= (const CORBA::_var &IT_s); - Cubit_Factory_var (const CORBA::_var &IT_s); - Cubit_Factory_var &operator= (const CORBA::_mgr &IT_s); - Cubit_Factory_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_Factory_var (const CORBA::_mgr &IT_s); - Cubit_Factory_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef Cubit_FactoryMgrH -#define Cubit_FactoryMgrH - -class Cubit_Factory_mgr : public CORBA::_mgr -{ - public: - - Cubit_Factory_mgr () { - _ptr = Cubit_Factory_nil (); - _release = 1; - } - - Cubit_Factory_mgr (const Cubit_Factory_mgr &IT_s) { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_Factory_mgr &operator= (Cubit_Factory *IT_p) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (const Cubit_Factory_mgr &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (Cubit_Factory_var &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_Factory_mgr () { - if (_release) - Cubit_Factory_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit_Factory* () const { - return (Cubit_Factory*) _ptr; - } - - Cubit_Factory_ptr operator-> () const { - return _ptr; - } - - Cubit_Factory *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_Factory_mgr Cubit_Factory_mgr_IT_const; -#endif - -#ifndef Cubit_FactorySeqElemH -#define Cubit_FactorySeqElemH - -class Cubit_Factory_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_Factory_SeqElem (Cubit_Factory_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_Factory_SeqElem &operator= (Cubit_Factory_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_Factory_SeqElem &operator= (const Cubit_Factory_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = Cubit_Factory_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_Factory_ptr () const { - return _ptr ? (Cubit_Factory_ptr) (*_ptr) : Cubit_Factory_nil(); - } - - Cubit_Factory_ptr operator->() const { return *_ptr;} - - protected: - Cubit_Factory_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit_Factory(X) Cubit_Factory##X - -#define DEF_TIE_Cubit_Factory(X) \ - class Cubit_Factory##X : public virtual Cubit_Factory { \ - X* m_obj; \ - public: \ - \ - \ - Cubit_Factory##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit_Factory(), m_obj(objp) { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,m,l,Cubit_Factory_IR,m_obj); \ - } \ - Cubit_Factory##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit_Factory() { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,IT_m,Cubit_Factory_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit_Factory##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit_Factory \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - - - - -class Cubit_FactoryProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - Cubit_FactoryProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_Factory_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern Cubit_FactoryProxyFactoryClass Cubit_FactoryProxyFactory; - -class Cubit_FactoryBOAImpl : public virtual Cubit_Factory { -public: - Cubit_FactoryBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_Factory_IR)) - m_pptr = new Cubit_Factory_dispatch ( (Cubit_Factory*)this, - (CORBA::Object*)this, m, l, Cubit_Factory_IR, this); -} - - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/tps/cubit.idl b/TAO/IIOP/tests/Cubit/Orbix/tps/cubit.idl deleted file mode 100644 index 41309e997ea..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tps/cubit.idl +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - - interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); - }; - - - interface Cubit_Factory { - Cubit create_cubit (in string name); - }; - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tps/cubitC.cpp b/TAO/IIOP/tests/Cubit/Orbix/tps/cubitC.cpp deleted file mode 100644 index d19c387bcd2..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tps/cubitC.cpp +++ /dev/null @@ -1,712 +0,0 @@ -// $Id$ - - - -#include "cubit.h" - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - -Cubit_Factory::Cubit_Factory (char *IT_OR) { - m_pptr = new Cubit_Factory_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit_Factory::Cubit_Factory (ObjectReference *IT_OR) { - m_pptr = new Cubit_Factory_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef Cubit_FactoryForwC -#define Cubit_FactoryForwC -CORBA::ObjectRef Cubit_Factory_getBase(void *IT_p){ - return (Cubit_Factory*) IT_p;} - -void Cubit_Factory_release (Cubit_Factory_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_Factory_release (Cubit_Factory_ptr IT_p) { - Cubit_Factory_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_Factory_ptr Cubit_Factory_nil (CORBA::Environment &) { - return Cubit_Factory:: _nil ();} - -Cubit_Factory_ptr Cubit_Factory_nil () { - return Cubit_Factory_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_Factory_ptr Cubit_Factory_duplicate (Cubit_Factory_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit_Factory::_duplicate(IT_p, IT_env)); } -Cubit_Factory_ptr Cubit_Factory_duplicate (Cubit_Factory_ptr IT_p) { - return Cubit_Factory_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_Factory_ptr Cubit_Factory::_duplicate(Cubit_Factory_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_Factory_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit_Factory* Cubit_Factory:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit_Factory*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_Factory_IMPL, Cubit_Factory_IR); -} - - - -Cubit_Factory* Cubit_Factory:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit_Factory* Cubit_Factory:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit_Factory* Cubit_Factory::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit_Factory:: _nil(); - } - - Cubit_Factory* IT_p = (Cubit_Factory*)CORBA::Object::_castDown (IT_obj, Cubit_Factory_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - -void* Cubit_FactoryProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -void* Cubit_FactoryProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -void* Cubit_FactoryProxyFactoryClass::New2 () { - return new class Cubit_Factory((char*)0);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::New2Object () { - return new class Cubit_Factory((char*)0);} - -void* Cubit_FactoryProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_Factory_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit_Factory*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* Cubit_FactoryProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit_Factory*)IT_p)->_pptr ();} - -void Cubit_FactoryProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_Factory_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -Cubit_FactoryProxyFactoryClass Cubit_FactoryProxyFactory(1); - -Cubit_ptr Cubit_Factory:: create_cubit (const char * name, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return new Cubit; - } - CORBA::Request IT_r (this, "create_cubit",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.encodeStringOp (name); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit_ptr IT_result; - IT_result = (Cubit*) IT_r.decodeObjRef (Cubit_IR); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return new Cubit; -} - - - - - -#ifndef Cubit_Factory_dispatch_impl - -unsigned char Cubit_Factory_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit_Factory"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tps/cubitS.cpp b/TAO/IIOP/tests/Cubit/Orbix/tps/cubitS.cpp deleted file mode 100644 index e4637a23680..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tps/cubitS.cpp +++ /dev/null @@ -1,284 +0,0 @@ -// $Id$ - - - -#include "cubit.h" - - -#define Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"cube_octet")) { - CORBA::Octet IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_octet~+o{o},>{o},N{}\ -")) - return 1; - CORBA::Octet o; - - IT_r.extractOctet (o); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_octet ( o, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -o\ -", IT_env)) return 1; - IT_r.insertOctet (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_short")) { - CORBA::Short IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_short~+s{s},>{s},N{}\ -")) - return 1; - CORBA::Short s; - - IT_r >> s; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_short ( s, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -s\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_long")) { - CORBA::Long IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_long~+l{l},>{l},N{}\ -")) - return 1; - CORBA::Long l; - - IT_r >> l; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_long ( l, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -l\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_struct")) { - Cubit::Many IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_struct~+values{R~Cubit::Many~o{o},l{l},s{s}},>{R~Cubit::Many~o{o},l{l},s{s}},N{}\ -")) - return 1; - Cubit::Many values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_struct ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -R~Cubit::Many~o{o},l{l},s{s}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_union")) { - Cubit::oneof IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - IT_r.tcPreAssert ( -"\ -Ro~cube_union~+values{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},>{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,\ -"); - if (!IT_r.tcAssert ("\ -e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},N{}\ -")) - return 1; - Cubit::oneof values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_union ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"please_exit")) { - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~please_exit~>{v},O{}\ -")) - return 1; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - ((Cubit*)IT_pp)->please_exit (IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - IT_r.replyNoResults (CORBA::Flags(CORBA::INV_NO_RESPONSE),IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#define Cubit_Factory_dispatch_impl - -unsigned char Cubit_Factory_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"create_cubit")) { - Cubit_ptr IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~create_cubit~+name{0},>{O~Cubit},N{}\ -")) - return 1; - char * name; - - IT_r.decodeStringOp(name); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit_Factory*)IT_pp)->create_cubit ( name, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - CORBA::string_free (name); - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -O~Cubit\ -", IT_env)) return 1; - { - CORBA::Object* IT_l1 = (CORBA::Object*) IT_result; - IT_r << IT_l1; - } - if (IT_result) Cubit_release (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#include "cubitC.cpp" - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.cpp b/TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.cpp deleted file mode 100644 index 02c30756efc..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.cpp +++ /dev/null @@ -1,83 +0,0 @@ -// $Id$ - -#include "cubit_impl.h" - -CORBA::Octet Cubit_Impl:: cube_octet (CORBA::Octet o, CORBA::Environment &) throw (CORBA::SystemException) { - return (CORBA::Octet) (o * o * o); -} - -CORBA::Short Cubit_Impl:: cube_short (CORBA::Short s, CORBA::Environment &) throw (CORBA::SystemException) { - return (CORBA::Short) (s * s * s); -} - -CORBA::Long Cubit_Impl:: cube_long (CORBA::Long l, CORBA::Environment &) throw (CORBA::SystemException) { - return (CORBA::Long) (l * l * l); -} - -Cubit::Many Cubit_Impl:: cube_struct (const Cubit::Many& values, CORBA::Environment &) throw (CORBA::SystemException) { - Cubit::Many out_values; - out_values.o = values.o * values.o * values.o; - out_values.s = values.s * values.s * values.s; - out_values.l = values.l * values.l * values.l; - return out_values; -} - -Cubit::oneof Cubit_Impl:: cube_union (const Cubit::oneof& values, CORBA::Environment &) throw (CORBA::SystemException) { - Cubit::oneof out_values; - switch (values._d ()) { - case Cubit::e_0th: - out_values.o (values.o () * values.o () * values.o ()); - break; - case Cubit::e_1st: - out_values.s (values.s () * values.s () * values.s ()); - break; - case Cubit::e_2nd: - out_values.l (values.l () * values.l () * values.l ()); - break; - case Cubit::e_3rd: - default: - out_values.cm ().o = values.cm ().o * values.cm ().o * values.cm ().o ; - out_values.cm ().s = values.cm ().s * values.cm ().s * values.cm ().s ; - out_values.cm ().l = values.cm ().l * values.cm ().l * values.cm ().l ; - break; - } - return out_values; -} - -void Cubit_Impl:: please_exit (CORBA::Environment &) throw (CORBA::SystemException) { -} - -Cubit_ptr Cubit_Factory_Impl:: create_cubit (const char * name, CORBA::Environment &) throw (CORBA::SystemException) { - cerr << "Creating Cubit for " << name << endl; - -#ifdef Cubit_USE_BOA - Cubit_Impl_Task *cubit = new Cubit_Impl_Task (); -#else - Cubit_Impl_Task *cubit = new TIE_Cubit (Cubit_Impl) (new Cubit_Impl_Task); -#endif - Cubit::_duplicate ((Cubit *)cubit); - cubit->activate (1); - return (Cubit *) cubit; -} - -int -Cubit_Impl_Task::svc (void) -{ - while (1) - { - // Dequeue message - ACE_Message_Block *mb; - this->msg_queue ()->dequeue_head (mb); - CORBA::Request *vp = (CORBA::Request *) mb->base (); - mb->release (); - // Hand it off to Orbix - CORBA::Orbix.continueThreadDispatch (*vp); - } - return 0; -} - -void * -Cubit_Impl_Task::_deref (void) -{ - return this; -} diff --git a/TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.h b/TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.h deleted file mode 100644 index 0fea9857af3..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.h +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - - -#ifndef cubit_ih -#define cubit_ih - -#include "cubit.h" -#include "ace/Task.h" - -#ifdef Cubit_USE_BOA -class Cubit_Impl : public virtual CubitBOAImpl { -#else -class Cubit_Impl { -#endif /* Cubit_USE_BOA */ -public: - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - -}; - -#ifdef Cubit_USE_BOA -class Cubit_Factory_Impl : public virtual Cubit_FactoryBOAImpl { -#else -class Cubit_Factory_Impl { -#endif - -public: - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); -}; - -class Cubit_Impl_Task : public virtual Cubit_Impl, public virtual ACE_Task { -public: - // For ACE_Task - int svc (void); - // for narrowing - virtual void *_deref (); -}; - -#ifndef Cubit_USE_BOA -DEF_TIE_Cubit (Cubit_Impl) -DEF_TIE_Cubit_Factory (Cubit_Factory_Impl) -#endif /* Cubit_USE_BOA */ - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/tps/tps.cpp b/TAO/IIOP/tests/Cubit/Orbix/tps/tps.cpp deleted file mode 100644 index 19a86b75ffd..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tps/tps.cpp +++ /dev/null @@ -1,28 +0,0 @@ -// $Id$ - -#include "tps.h" - -int -TPS_Filter::inRequestPreMarshal(CORBA::Request &r, CORBA::Environment& env) -{ - // Get target - CORBA::Object_ptr obj = r.target (); - Cubit * cb = Cubit::_narrow (obj, env); - - if (env) // Not for our object!! - return 1; // continue in the same thread - - // Enqueue the request - Cubit_Impl_Task *ct; - if (CORBA::is_nil (cb)) - return 1; - ct = (Cubit_Impl_Task *) DEREF(cb); - if (ct) { - ACE_Message_Block *mb = new ACE_Message_Block ( (char *) (&r)); - ct->msg_queue ()->enqueue (mb); - } - // Done - return -1; -} - -TPS_Filter tps_filter; diff --git a/TAO/IIOP/tests/Cubit/Orbix/tps/tps.h b/TAO/IIOP/tests/Cubit/Orbix/tps/tps.h deleted file mode 100644 index 362c9ed4e91..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tps/tps.h +++ /dev/null @@ -1,13 +0,0 @@ -// $Id$ - -#include "cubit.h" -#include "cubit_impl.h" -#include "ace/Service_Config.h" -#include "ace/Thread_Manager.h" -#include "ace/Task.h" - -class TPS_Filter : public ACE_Task, public CORBA::ThreadFilter -{ -public: - virtual int inRequestPreMarshal(CORBA::Request &, CORBA::Environment&); -}; diff --git a/TAO/IIOP/tests/Cubit/README b/TAO/IIOP/tests/Cubit/README deleted file mode 100644 index 5eaf42ec2e3..00000000000 --- a/TAO/IIOP/tests/Cubit/README +++ /dev/null @@ -1,7 +0,0 @@ - Cubit - -This is the example from the SunSoft's IIOP 1.4 distribution modified -to work with TAO. There is a Cubit example for Orbix and -VisiBroker. - -Benchmarking results are under results and tnf directories. diff --git a/TAO/IIOP/tests/Cubit/TAO/Makefile b/TAO/IIOP/tests/Cubit/TAO/Makefile deleted file mode 100644 index 04f34a6cc36..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/Makefile +++ /dev/null @@ -1,121 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Top-level Makefile for the ACE-ified Sun Ref. implementation -# of IIOP ORB -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -LDLIBS = -lcorba - -PROG_SRCS = svr.cpp clnt.cpp cubit.cpp \ - test1.cpp test1_clnt.cpp test1_svr.cpp \ - echo_clnt.cpp echo_svr.cpp - -LSRC = $(PROG_SRCS) - -CUBIT_SVR_OBJS = svr.o cubit_i.o cubitS.o -CUBIT_CLT_OBJS = clnt.o cubitC.o - -BASIC_SVR_OBJS = test1.o test1_svr.o -BASIC_CLT_OBJS = test1.o test1_clnt.o - -ECHO_SVR_OBJS = test1.o echo_svr.o -ECHO_CLT_OBJS = test1.o echo_clnt.o - -BIN = svr clnt test1_svr test1_clnt -BUILD = $(BIN) -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -#include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -# Local modifications to variables imported by includes above. -LDFLAGS += -L../../../proto/lib -CPPFLAGS += -I../../../proto/include -DUSE_ACE_EVENT_HANDLING -DDEBUG - -svr: $(addprefix $(VDIR),$(CUBIT_SVR_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -clnt: $(addprefix $(VDIR),$(CUBIT_CLT_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -test1_svr: $(addprefix $(VDIR),$(BASIC_SVR_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -test1_clnt: $(addprefix $(VDIR),$(BASIC_CLT_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -######## -# Sanity check builds by running basic functionality tests. -# -# "sleep 5" in the server startup is usually enough to get the -# objref into the file so the client can read it. -# -check: $(TESTS) - @echo "testing with 'cube' calls, stub + DII, IOR strings" - @./svr -i30 -o non-internet > obj.1 & sleep 5 - @./clnt -n250 -O `cat obj.1` -x - @echo '' - @echo "testing request forwarding with 'cube' calls, stub + DII" - @./svr -f -i30 > obj.2 & sleep 5 - @./clnt -n250 -O `cat obj.2` -x - @echo '' - @echo "testing transmission of primitive data types" - @./test1_svr -i30 > obj.3 & sleep 5 - @./test1_clnt -n50 -O `cat obj.3` -x - @echo '' -# @echo "testing echo of primitive data values" -# @./echo_svr -i30 > obj.4 & sleep 5 -# @./echo_clnt -O `cat obj.4` -x -# @echo '' - @echo "testing with 'cube' calls, MT-ized (no forwarding)" - @./svr -t -i30 -o non-internet > obj.5 & sleep 5 - @./clnt -n250 -O `cat obj.5` -x - @echo '' - -ifdef LOCALRULES -######## -# CUBIT test -svr: svr.o cubit.o - $(LINK.cc) -o svr svr.o cubit.o $(LDLIBS) $(POSTLINK) -clnt: cubit.o clnt.o - $(LINK.cc) -o clnt clnt.o cubit.o $(LDLIBS) $(POSTLINK) - -######## -# BASIC DATATYPES test -test1_clnt: test1.o test1_clnt.o - $(LINK.cc) -o test1_clnt test1_clnt.o test1.o $(LDLIBS) $(POSTLINK) -test1_svr: test1.o test1_svr.o - $(LINK.cc) -o test1_svr test1_svr.o test1.o $(LDLIBS) $(POSTLINK) - -######## -# ECHO test ... "test1" where the operation semantics are violated; -# this aids some porting work, but is a less rigorous test -echo_clnt: test1.o echo_clnt.o - $(LINK.cc) -o echo_clnt echo_clnt.o test1.o $(LDLIBS) $(POSTLINK) -echo_svr: test1.o echo_svr.o - $(LINK.cc) -o echo_svr echo_svr.o test1.o $(LDLIBS) $(POSTLINK) -endif - -clean: - -rm -rf *.o $(BIN) obj.* core Templates.DB .make.state - -install: - -@echo "Nothing to install, these are tests!" - - - - - diff --git a/TAO/IIOP/tests/Cubit/TAO/clnt.cpp b/TAO/IIOP/tests/Cubit/TAO/clnt.cpp deleted file mode 100644 index 3e78e8be2f1..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/clnt.cpp +++ /dev/null @@ -1,510 +0,0 @@ -// $Id$ - -// @(#)clnt.cpp 1.2 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: Simple "cube" client, calling hand-crafted stubs. -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -#include -//#include - -#if unix -# include -# include - -#elif defined (VXWORKS) -# include -# include - -#else // windows - -#endif // unix - -#include "cubitC.h" - -#include - - -#if !defined (_WIN32) -extern char *optarg; // missing on some platforms -#endif - -inline int func (unsigned i) { return i - 117; } - -extern void -print_exception (const CORBA_Exception *, const char *, FILE *f=stdout); - - -// -// forward declarations -// -static void cube_union_stub(unsigned, unsigned&, unsigned&, - CORBA_Object_ptr, CORBA_Environment &); - -static void cube_union_dii(unsigned &, unsigned &, - CORBA_Object_ptr, CORBA_Environment &); - -// Global variables -const char* TAO_arg_ior = 0; -unsigned loop_count = 1; -int exit_later = 0; - -// = TITLE -// Parses the command line arguments and returns an error status -// -// = DESCRIPTION -// This method parses the command line arguments -int parse_args(int argc, char *argv[]) -{ - ACE_Get_Opt opts (argc, argv, "dn:O:x"); - int c; - - while ((c = opts ()) != -1) - switch (c) { - - case 'd': // debug flag - TAO_debug_level++; - continue; - - case 'n': // loop count - loop_count = (unsigned) ACE_OS::atoi (opts.optarg); - continue; - - case 'O': // stringified objref - { - TAO_arg_ior = ACE_OS::strdup(opts.optarg); - } - continue; - - case 'x': - exit_later++; - continue; - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-n loopcount]" - " [-O objref]" - " [-x]" - "\n", argv [0] - ); - return 1; - } - - return 0; // Indicates successful parsing of command line -} - -int -main (int argc, char *argv[]) -{ - CORBA_ORB_ptr orb_ptr; - CORBA_Object_ptr objref = CORBA_Object::_nil(); - CORBA_Environment env; - - orb_ptr = CORBA_ORB_init(argc, argv, "internet", env); - if (env.exception() != 0) - { - print_exception(env.exception(), "ORB initialization"); - return 1; - } - - // - // Parse command line and verify parameters. - // - parse_args(argc, argv); - - if (TAO_arg_ior == 0) - ACE_ERROR_RETURN((LM_ERROR, "%s: must specify an object reference using -O \n", argv[0]), 1); - - objref = orb_ptr->string_to_object ((CORBA_String)TAO_arg_ior, env); - - ACE_OS::free((void*)TAO_arg_ior); - TAO_arg_ior = 0; - - if (env.exception () != 0) - { - print_exception (env.exception (), "string2object"); - return 1; - } - - if (CORBA_is_nil (objref) == CORBA_B_TRUE) - ACE_ERROR_RETURN((LM_ERROR, "%s: must identify non-null target objref\n", argv [0]), 1); - - // Narrow the CORBA_Object reference to the stub object, checking - // the type along the way using _is_a - Cubit_ptr aCubit = Cubit::_narrow(objref); - if (aCubit == 0) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to narrow object reference to a Cubit_ptr.\n"), 1); - - // - // Make the calls in a loop. - // - unsigned i; - unsigned call_count, error_count; - - call_count = 0; - error_count = 0; - - ACE_Time_Value before, after; - - before = ACE_OS::gettimeofday(); - - for (i = 0; i < loop_count; i++) - { - // - // Cube an octet. - // - CORBA_Octet arg_octet, ret_octet; - - call_count++; - ret_octet = aCubit->Cubit_cube_octet (arg_octet = func (i), env); - if (env.exception () != 0) - { - print_exception (env.exception (), "from cube_octet"); - error_count++; - } - else - { - dmsg2 ("cube octet: %d --> %d\n", arg_octet, ret_octet); - arg_octet = arg_octet * arg_octet * arg_octet; - if (arg_octet != ret_octet) { - ACE_OS::printf ("** cube_octet(%d) ERROR (--> %d)\n", - (CORBA_Octet) func (i), ret_octet); - error_count++; - } - } - - // - // Cube a short. - // - CORBA_Short arg_short, ret_short; - - call_count++; - ret_short = aCubit->Cubit_cube_short (arg_short = func (i), env); - if (env.exception () != 0) - { - print_exception (env.exception (), "from cube_short"); - error_count++; - } - else - { - dmsg2 ("cube short: %d --> %d\n", arg_short, ret_short); - arg_short = arg_short * arg_short * arg_short; - if (arg_short != ret_short) - { - ACE_OS::printf ("** cube_short(%d) ERROR (--> %d)\n", - (CORBA_Short) func (i), ret_short); - error_count++; - } - } - - // - // Cube a long. - // - CORBA_Long arg_long, ret_long; - - call_count++; - ret_long = aCubit->Cubit_cube_long (arg_long = func (i), env); - if (env.exception () != 0) - { - print_exception (env.exception (), "from cube_long"); - error_count++; - } - else - { - dmsg2 ("cube long: %d --> %d\n", arg_long, ret_long); - arg_long = arg_long * arg_long * arg_long; - if (arg_long != ret_long) { - ACE_OS::printf ("** cube_long(%ld) ERROR (--> %ld)\n", - (CORBA_Long) func (i), ret_long); - error_count++; - } - } - - // - // Cube a "struct" ... - // - Cubit_Many arg_struct, *ret_struct; - - call_count++; - - arg_struct.l = func (i); - arg_struct.s = func (i); - arg_struct.o = func (i); - - ret_struct = aCubit->Cubit_cube_struct (arg_struct, env); - if (env.exception () != 0) - { - print_exception (env.exception (), "from cube_struct"); - error_count++; - } - else - { - dmsg ("cube struct ..."); - arg_struct.l = arg_struct.l * arg_struct.l * arg_struct.l; - arg_struct.s = arg_struct.s * arg_struct.s * arg_struct.s; - arg_struct.o = arg_struct.o * arg_struct.o * arg_struct.o; - - if (arg_struct.l != ret_struct->l - || arg_struct.s != ret_struct->s - || arg_struct.o != ret_struct->o) - { - ACE_OS::printf ("** cube_struct ERROR\n"); - error_count++; - } - delete ret_struct; - } - - } - - after = ACE_OS::gettimeofday(); - - if (call_count > 0) - { - if (error_count == 0) - { - ACE_Time_Value diff = after - before; - unsigned long us = diff.sec() * 1000 * 1000 + diff.usec(); - - us /= call_count; - - if (us > 0) - ACE_OS::printf ("cube average call ACE_OS::time\t= %ld.%.03ldms, \t" - "%ld calls/second\n", - us / 1000, us % 1000, - 1000000L / us); - } - - ACE_OS::printf ("%d calls, %d errors\n", call_count, error_count); - } - - // - // Simple test for DII: call "cube_struct". (It's not timed - // since the copious mallocation of DII would bias numbers against - // typical stub-based calls.) - // - do { - // - // Create the request ... - // - CORBA_Request_ptr req; - - req = objref->_request ((const CORBA_String) "cube_struct", env); - if (env.exception () != 0) { - print_exception (env.exception (), "DII request create"); - break; - } - - // - // ... initialise the argument list and result ... - // - Cubit_Many arg, *result; - - arg.o = 3; arg.l = 5; arg.s = -7; - - CORBA_Any tmp_arg (TC_Cubit_Many, &arg, CORBA_B_FALSE); - - req->arguments ()->add_value (0, tmp_arg, CORBA_ARG_IN, env); - if (env.exception () != 0) { - print_exception (env.exception (), "DII request arg add"); - CORBA_release (req); - break; - } - - req->result ()->value () - ->replace (TC_Cubit_Many, 0, CORBA_B_TRUE, env); - if (env.exception () != 0) { - print_exception (env.exception (), "DII request result type"); - CORBA_release (req); - break; - } - - // - // Make the invocation, verify the result - // - req->invoke (); - if (req->env ()->exception () != 0) { - print_exception (req->env ()->exception (), "DII invoke"); - CORBA_release (req); - break; - } - - result = (Cubit_Many *) req->result ()->value ()->value (); - - if (result->o != 27 || result->l != 125 || result->s != -343) - ACE_OS::fprintf (stderr, "DII cube_struct -- bad results\n"); - else - dmsg ("DII cube_struct ... success!!"); - - CORBA_release (req); - - } while (0); - - // - // Two more tests, using the "cube_union" function - // - cube_union_dii(call_count, error_count, objref, env); - if (env.exception () != 0) - error_count++; - - cube_union_stub(i, call_count, error_count, objref, env); - if (env.exception () != 0) - error_count++; - - if (exit_later) { - aCubit->Cubit_please_exit (env); - dexc (env, "server, please ACE_OS::exit"); - } - - CORBA_release (objref); - - return (error_count == 0) ? 0 : 1; -} - - -static void -cube_union_stub(unsigned i, - unsigned &call_count, - unsigned &error_count, - CORBA_Object_ptr objref, - CORBA_Environment &env) -{ - Cubit_ptr aCubit = Cubit::_narrow(objref); - // - // Cube a "union" ... - // - Cubit_oneof u, *r; - - call_count++; - - u._disc = e_2nd; - u.l = 3; - - r = aCubit->Cubit_cube_union (u, env); - if (env.exception () != 0) { - print_exception (env.exception (), "from cube_union"); - error_count++; - } else { - dmsg ("cube union ..."); - u.l = u.l * u.l * u.l ; - - if (u.l != r->l) { - ACE_OS::printf ("** cube_union ERROR\n"); - error_count++; - } - - delete r; - } - - // - // Cube another "union" which uses the default arm ... - // - call_count++; - - u._disc = e_5th; - u.cm.l = func (i); - u.cm.s = func (i); - u.cm.o = func (i); - - u.cm.l = 7; - u.cm.s = 5; - u.cm.o = 3; - - r = aCubit->Cubit_cube_union (u, env); - if (env.exception () != 0) { - print_exception (env.exception (), "from cube_union"); - error_count++; - } else { - dmsg ("cube union ..."); - u.cm.l = u.cm.l * u.cm.l * u.cm.l; - u.cm.s = u.cm.s * u.cm.s * u.cm.s; - u.cm.o = u.cm.o * u.cm.o * u.cm.o; - - if (u.cm.l != r->cm.l - || u.cm.s != r->cm.s - || u.cm.o != r->cm.o) { - ACE_OS::printf ("** cube_union ERROR\n"); - error_count++; - } - - delete r; - } -} - - -static void -cube_union_dii (unsigned &call_count, - unsigned &error_count, - CORBA_Object_ptr objref, - CORBA_Environment &env) -{ - // - // Create the request ... - // - CORBA_Request_ptr req; - - call_count++; - - req = objref->_request ((const CORBA_String) "cube_union", env); - if (env.exception () != 0) { - error_count++; - - print_exception (env.exception (), "cube_union_dii request create"); - return; - } - - // - // ... initialise the argument list and result ... - // - Cubit_oneof u, *r; - - u._disc = e_3rd; - u.cm.l = 5; - u.cm.s = -7; - u.cm.o = 3; - - CORBA_Any tmp_arg (TC_Cubit_oneof, &u, CORBA_B_FALSE); - - req->arguments ()->add_value (0, tmp_arg, CORBA_ARG_IN, env); - if (env.exception () != 0) { - error_count++; - print_exception (env.exception (), "cube_union_dii request arg add"); - CORBA_release (req); - return; - } - - req->result ()->value ()->replace (TC_Cubit_oneof, 0, CORBA_B_TRUE, env); - if (env.exception () != 0) { - error_count++; - print_exception (env.exception (), "cube_union_dii result type"); - CORBA_release (req); - return; - } - - // - // Make the invocation, verify the result - // - req->invoke (); - if (req->env ()->exception () != 0) { - error_count++; - print_exception (req->env ()->exception (),"cube_union_dii invoke"); - CORBA_release (req); - return; - } - - r = (Cubit_oneof *) req->result ()->value ()->value (); - - if (r->cm.o != 27 || r->cm.l != 125 || r->cm.s != -343) { - error_count++; - ACE_OS::fprintf (stderr, "cube_union_dii -- bad results\n"); - } - else - dmsg ("cube_union_dii ... success!!"); - - CORBA_release (req); -} diff --git a/TAO/IIOP/tests/Cubit/TAO/cubit.cpp b/TAO/IIOP/tests/Cubit/TAO/cubit.cpp deleted file mode 100644 index 38f23fac373..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/cubit.cpp +++ /dev/null @@ -1,578 +0,0 @@ -// $Id$ - -// @(#)cubit.cpp 1.2 95/09/29 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: hand-written C-style "Cubit" stubs and "skeletons" -// -// NOTE: these "skeletons" are really the methods, using DSI. No real -// ORB would be implemented in this particular way. Several things would -// be more typical of real (static) skeletons: -// -// * Most of the "in" (and much of the "out") parameter data would -// be preallocated on the stack, not heap allocated. (Static -// preallocation doesnt' really work in a multithreaded system, -// and moreover can waste a lot of space.) -// -// * The ORB core wouldn't be told about parameters using heap -// allocated data structures (e.g. NVList). -// -// * Skeletons would need to some kind of "marshal the response NOW" -// API so that stack-allocated "out" values wouldn't become invalid -// up until they were safely marshaled. -// -// * They'd handle exceptions rather than just generating debugging -// messages when they happen. -// -// * Method code would be called by the skeletons, not written as -// part of the "skeleton" itself! -// -// A key part of turning this code into a complete ORB would be to ensure -// that skeletons were always efficient and correct. They might not need -// to be sharable between different implementations of the same OMG-IDL -// object interface, but many ORBs choose to be structured that way. -// - -#include "cubit.h" // for stubs ... -#include // ... and skeletons - -#include // ... and debugging - - -// -// CUBE OCTET -// - -static const TAO_Param_Data Cubit_cube_octet_params [] = { - { _tc_CORBA_Octet, PARAM_RETURN, 0 }, - { _tc_CORBA_Octet, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_octet_calldata = { - "cube_octet", CORBA_B_TRUE, - 2, &Cubit_cube_octet_params [0], - 0, 0 -}; - - -CORBA_Octet -Cubit_cube_octet ( - Cubit_ptr target, - CORBA_Octet o, - CORBA_Environment &env -) -{ - CORBA_Octet retval = 0; - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &Cubit_cube_octet_calldata, - &retval, &o); - data->Release (); - } - return retval; -} - -static void -_cube_octet_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Octet); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_octet, add value"); - - req.params (nvlist, env); - dexc (env, "cube_octet, get params"); - - CORBA_Octet* value = new CORBA_Octet; - - *value = *(CORBA_Octet *)nv->value ()->value (); - // dmsg1 ("cube octet, parameter '%d'", *value); - *value = (CORBA_Octet) ((*value) * (*value) * (*value)); - // dmsg1 ("cube octet, result '%d'", *value); - - CORBA_Any* any = - new CORBA_Any (_tc_CORBA_Octet, value, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "cube_octet, result"); -} - - -// -// CUBE SHORT -// - -static const TAO_Param_Data Cubit_cube_short_params [] = { - { _tc_CORBA_Short, PARAM_RETURN, 0 }, - { _tc_CORBA_Short, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_short_calldata = { - "cube_short", CORBA_B_TRUE, - 2, &Cubit_cube_short_params [0], - 0, 0 -}; - - -CORBA_Short -Cubit_cube_short (Cubit_ptr target, - CORBA_Short s, - CORBA_Environment &env) -{ - CORBA_Short retval; - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &Cubit_cube_short_calldata, - &retval, &s); - data->Release (); - } - return retval; -} - -static void -_cube_short_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Short); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_short, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_short, get params"); - - CORBA_Short* value = new CORBA_Short; - - *value = *(CORBA_Short *)nv->value ()->value (); - // dmsg1 ("cube short, parameter '%d'", *value); - *value =(CORBA_Short) ((*value) * (*value) * (*value)); - // dmsg1 ("cube short, result '%d'", *value); - - CORBA_Any* any = - new CORBA_Any (_tc_CORBA_Short, value, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "cube_short, result"); -} - - -// -// CUBE LONG -// - -static const TAO_Param_Data Cubit_cube_long_params [] = { - { _tc_CORBA_Long, PARAM_RETURN, 0 }, - { _tc_CORBA_Long, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_long_calldata = { - "cube_long", CORBA_B_TRUE, - 2, &Cubit_cube_long_params [0], - 0, 0 -}; - - -CORBA_Long -Cubit_cube_long (Cubit_ptr target, - CORBA_Long l, - CORBA_Environment &env) -{ - CORBA_Long retval; - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else - { - data->do_call (env, &Cubit_cube_long_calldata, - &retval, &l); - data->Release (); - } - return retval; -} - - -static void -_cube_long_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Long); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_long, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_long, get params"); - - CORBA_Long* value = new CORBA_Long; - - *value = *(CORBA_Long *)nv->value ()->value (); - // dmsg1 ("cube long, parameter '%d'", *value); - *value = (*value) * (*value) * (*value); - // dmsg1 ("cube long, result '%d'", *value); - - CORBA_Any* any = - new CORBA_Any (_tc_CORBA_Long, value, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "cube_long, result"); -} - -// -// Encapsulated parameters for struct "Cubit_Many" typecode. -// None of these parameters is complicated, so this is just -// a linear sequence of element encodings -// -// NOTE: it's important that this be longword aligned!! -// -static const CORBA_Long _oc_Cubit_Many [] = { - 1, // byte order flag (TRICKY!) - - 1, 0, // empty string: repository/type ID - 1, 0, // empty string: struct name - - 3, // three struct elements - - // First structure element: name, typecode for Octet - 1, 0, // empty string: name "o" - tk_octet, - - // Second structure element: name, typecode for Long - 1, 0, // empty string: name "l" - tk_long, - - // Third structure element: name, typecode for Short - 1, 0, // empty string: name "s" - tk_short, -}; - -static CORBA_TypeCode _tc_Cubit_Many (tk_struct, - sizeof _oc_Cubit_Many, (unsigned char *) &_oc_Cubit_Many, - CORBA_B_FALSE); -CORBA_TypeCode_ptr TC_Cubit_Many = &_tc_Cubit_Many; - - -// -// CUBE STRUCT -// - -static const TAO_Param_Data Cubit_cube_struct_params [] = { - { &_tc_Cubit_Many, PARAM_RETURN, sizeof (Cubit_Many) }, - { &_tc_Cubit_Many, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_struct_calldata = { - "cube_struct", CORBA_B_TRUE, - 2, &Cubit_cube_struct_params [0], - 0, 0 -}; - -Cubit_Many * -Cubit_cube_struct (Cubit_ptr target, - Cubit_Many &values, - CORBA_Environment &env) -{ - Cubit_Many *retval; - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else - { - data->do_call (env, &Cubit_cube_struct_calldata, - &retval, &values); - data->Release (); - } - return retval; -} - - -static void -_cube_struct_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (TC_Cubit_Many); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_struct, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_struct, get params"); - - Cubit_Many *value; - Cubit_Many *retval = new Cubit_Many; - - value = (Cubit_Many *)nv->value ()->value (); - - retval->o = (CORBA_Octet) (value->o * value->o * value->o); - retval->s = (CORBA_Short) (value->s * value->s * value->s); - retval->l = value->l * value->l * value->l; - - // dmsg2 ("cube struct.o, %d -> %d", value->o, retval->o); - // dmsg2 ("cube struct.s, %d -> %d", value->s, retval->s); - // dmsg2 ("cube struct.l, %d -> %d", value->l, retval->l); - - CORBA_Any *any = - new CORBA_Any (TC_Cubit_Many, retval, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "cube_struct, result"); -} - -// -// CUBE UNION -// - -// -// NOTE: not all union typecodes can be encoded as an array -// of "long "values, but this one can. Ones with discriminants -// that are one or two bytes long can't easily be coded portably. -// -// The benefit of doing it as an array of "long" values is -// twofold: (a) easier to read; (b) on most systems it's then -// adequately aligned for the typecode interpreter to use, so -// no additional runtime copy needs to be made. -// -static const CORBA_Long _oc_Cubit_oneof [] = { - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted struct name, "oneof" - - // - // discriminant typecode: - // - tk_enum, // tk_enum - 72, // encapsulation length - - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted enum name, "discrim" - 6, // 5 elements in the enum - - 1, 0, // omitted member name, "e_0th" - 1, 0, // omitted member name, "e_1st" - 1, 0, // omitted member name, "e_2nd" - 1, 0, // omitted member name, "e_3rd" - 1, 0, // omitted member name, "e_4th" - 1, 0, // omitted member name, "e_5th" - - 4, // default member index (zero based) - 5, // number of union members - - // the 1st union branch arm - e_0th, // member label value - 1, 0, // omitted member name, "o" - tk_octet, // member typecode - - // the 2nd union branch arm - e_1st, // member label value - 1, 0, // omitted member name, "s" - tk_short, // member typecode - - // the 3rd union branch arm - e_2nd, // member label value - 1, 0, // omitted member name, "l" - tk_long, // member typecode - - // the 4th union branch arm - e_3rd, // member label value - 1, 0, // omitted member name, "cm" - - // the 4th union member typecode - tk_struct, // tk_struct - 60, // encap length - - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted struct name, "Many" - 3, // three struct members - - // First structure element - 1, 0, // omitted member name, "o" - tk_octet, // member type, tk_octet - - // Second structure element - 1, 0, // omitted member name, "l" - tk_long, // member type, tk_long - - // Third structure element - 1, 0, // omitted member name, "s" - tk_short, // member type, tk_short - - // the 5th union branch arm - 4, // the 5th member label value - 1, 0, // omitted member name, "cm" - ~0, // indirected typecode (~0) - -84 // offset to struct "Many" typecode -}; - -static CORBA_TypeCode _tc_Cubit_oneof (tk_union, - (sizeof _oc_Cubit_oneof), (unsigned char *) &_oc_Cubit_oneof, - CORBA_B_FALSE); -CORBA_TypeCode_ptr TC_Cubit_oneof = &_tc_Cubit_oneof; - -static const TAO_Param_Data Cubit_cube_union_params [] = { - { &_tc_Cubit_oneof, PARAM_RETURN, sizeof (Cubit_oneof) }, - { &_tc_Cubit_oneof, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_union_calldata = { - "cube_union", CORBA_B_TRUE, - 2, &Cubit_cube_union_params [0], - 0, 0 -}; - -Cubit_oneof * -Cubit_cube_union (Cubit_ptr target, - Cubit_oneof &values, - CORBA_Environment &env) -{ - Cubit_oneof *retval; - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else - { - data->do_call (env, &Cubit_cube_union_calldata, - &retval, &values); - data->Release (); - } - return retval; -} - - -static void -_cube_union_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (TC_Cubit_oneof); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_union_3rd, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_union_3rd, get params"); - - Cubit_oneof *v; - Cubit_oneof *r = new Cubit_oneof; - - v = (Cubit_oneof *)nv->value ()->value (); - r->_disc = v->_disc; - - switch (v->_disc) { - case e_0th: - r->o = (CORBA_Octet) (v->o * v->o * v->o); - break; - - case e_1st: - r->s = (CORBA_Short) (v->s * v->s * v->s); - break; - - case e_2nd: - r->l = v->l * v->l * v->l; - break; - - case e_3rd: - default: - r->cm.o = (CORBA_Octet) (v->cm.o * v->cm.o * v->cm.o); - r->cm.s = (CORBA_Short) (v->cm.s * v->cm.s * v->cm.s); - r->cm.l = v->cm.l * v->cm.l * v->cm.l; - break; - } - - CORBA_Any *any = new CORBA_Any (TC_Cubit_oneof, r, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "cube_struct, result"); -} - - -// -// PLEASE EXIT -// - -static const TAO_Call_Data Cubit_please_exit_calldata = { - "please_exit", CORBA_B_FALSE, - 0, 0, - 0, 0 -}; - -void -Cubit_please_exit ( - Cubit_ptr target, - CORBA_Environment &env -) -{ - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &Cubit_please_exit_calldata - ); - data->Release (); - } -} - -static void -_please_exit_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - dmsg ("I've been asked to shut down..."); - req.oa ()->please_shutdown (env); - dexc (env, "please_exit, please_shutdown"); -} - - -const CORBA_Char *Cubit__id = (CORBA_Char *) - "IDL:Eng.SUN.COM/Cubit:1.1"; - - -// -// table of all operations, used by operation dispatch to get to the -// right skeleton ... could be sorted by the IDL compiler so bsearch -// is effective, perhaps with help from opname hashes and a small cache -// (e.g. like Obj-C?). for now, just lsearch. -// -const TAO_Skel_Entry Cubit_operations [] = { - { &Cubit_cube_octet_calldata, _cube_octet_skel }, - { &Cubit_cube_short_calldata, _cube_short_skel }, - { &Cubit_cube_long_calldata, _cube_long_skel }, - { &Cubit_cube_struct_calldata, _cube_struct_skel }, - { &Cubit_cube_union_calldata, _cube_union_skel }, - { &Cubit_please_exit_calldata, _please_exit_skel }, - { 0, 0 } // last entry -}; diff --git a/TAO/IIOP/tests/Cubit/TAO/cubit.h b/TAO/IIOP/tests/Cubit/TAO/cubit.h deleted file mode 100644 index 78d6b604052..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/cubit.h +++ /dev/null @@ -1,108 +0,0 @@ -// $Id$ - -// @(#)cubit.hh 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// Hand-crafted C language binding glue ... -// -// This doesn't use C++ since doing the obvious derivation -// (all parent interfaces are virtual public parents) makes -// object references have different "views". That is, a -// pointer to a Cubit (i.e. a Cubit_ptr) would not have -// the same binary value as a pointer to a CORBA_Object -// (i.e. a CORBA_Object_ptr, generic objref). That'd -// mean lots of narrowing/widening/RTTI infrastructure. -// - -#ifndef _CUBIT_HH -#define _CUBIT_HH - -#ifdef _MSC_VER -#pragma pack (push, 1) // VC++, known padding rules -#endif // VC++ - -#include -#include - - -// -// C style binding -// - -typedef CORBA_Object Cubit; -typedef Cubit *Cubit_ptr, *CubitRef; - -extern CORBA_TypeCode_ptr TC_Cubit_Many; -extern CORBA_TypeCode_ptr TC_Cubit_oneof; - -struct Cubit_Many { - CORBA_Octet o; - CORBA_Long l; - CORBA_Short s; -}; - -enum Cubit_discrim {e_0th = 0, e_1st = 1, e_2nd = 2, - e_3rd = 3, e_4th = 4, e_5th = 5}; - -struct Cubit_oneof { - Cubit_discrim _disc; - - union { - CORBA_Octet o; - CORBA_Short s; - CORBA_Long l; - Cubit_Many cm; - }; -}; - -CORBA_Octet -Cubit_cube_octet ( - Cubit_ptr target, - CORBA_Octet o, - CORBA_Environment &env -); - -CORBA_Short -Cubit_cube_short ( - Cubit_ptr target, - CORBA_Short s, - CORBA_Environment &env -); - -CORBA_Long -Cubit_cube_long ( - Cubit_ptr target, - CORBA_Long l, - CORBA_Environment &env -); - -Cubit_Many * -Cubit_cube_struct ( - Cubit_ptr target, - Cubit_Many &values, - CORBA_Environment &env -); - -Cubit_oneof * -Cubit_cube_union ( - Cubit_ptr target, - Cubit_oneof &values, - CORBA_Environment &env -); - -void -Cubit_please_exit ( - Cubit_ptr target, - CORBA_Environment &env -); - -extern const CORBA_Char *Cubit__id; // type ID - -extern const TAO_Skel_Entry Cubit_operations []; - -#ifdef _MSC_VER -#pragma pack (pop) // VC++, go back to other padding rules -#endif // VC++ - -#endif // _CUBIT_HH diff --git a/TAO/IIOP/tests/Cubit/TAO/cubit.idl b/TAO/IIOP/tests/Cubit/TAO/cubit.idl deleted file mode 100644 index d4f1610e2a8..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/tests/Cubit/TAO/cubitC.cpp b/TAO/IIOP/tests/Cubit/TAO/cubitC.cpp deleted file mode 100644 index 8bcb0b4f4d9..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/cubitC.cpp +++ /dev/null @@ -1,383 +0,0 @@ -// $Id$ - -// @(#)cubitC.cpp 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -#include "cubitC.h" // for stubs ... - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj) -{ - if (obj) - obj->AddRef(); - - return obj; -} - -Cubit_ptr Cubit::_narrow(CORBA_Object_ptr obj) -{ - CORBA_Environment env; - if (obj->_is_a("IDL:Cubit:1.0", env)) - { - STUB_Object *istub; - if (obj->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - return Cubit::_nil(); - } - Cubit_ptr new_obj = new Cubit(istub); - return Cubit::_duplicate(new_obj); - } - return Cubit::_nil(); -} - -Cubit_ptr Cubit::_nil() -{ - return (Cubit_ptr)NULL; -} - -// -// CUBE OCTET -// - -static const TAO_Param_Data Cubit_cube_octet_params [] = -{ - { _tc_CORBA_Octet, PARAM_RETURN, 0 }, - { _tc_CORBA_Octet, PARAM_IN, 0 } -}; - - -static const TAO_Call_Data Cubit_cube_octet_calldata = -{ - "cube_octet", CORBA_B_TRUE, - 2, &Cubit_cube_octet_params [0], - 0, 0 -}; - - -CORBA_Octet -Cubit::Cubit_cube_octet (CORBA_Octet o, - CORBA_Environment &env) -{ - CORBA_Octet retval; - - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return 0; - } - - istub->do_call (env, &Cubit_cube_octet_calldata, - &retval, &o); - istub->Release (); - - return retval; -} - - -// -// CUBE SHORT -// - -static const TAO_Param_Data Cubit_cube_short_params [] = -{ - { _tc_CORBA_Short, PARAM_RETURN, 0 }, - { _tc_CORBA_Short, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_short_calldata = -{ - "cube_short", CORBA_B_TRUE, - 2, &Cubit_cube_short_params [0], - 0, 0 -}; - - -CORBA_Short -Cubit::Cubit_cube_short (CORBA_Short s, - CORBA_Environment &env) -{ - CORBA_Short retval; - - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return 0; - } - - istub->do_call(env, &Cubit_cube_short_calldata, - &retval, &s); - - istub->Release (); - - return retval; -} - -// -// CUBE LONG -// - -static const TAO_Param_Data Cubit_cube_long_params [] = -{ - { _tc_CORBA_Long, PARAM_RETURN, 0 }, - { _tc_CORBA_Long, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_long_calldata = -{ - "cube_long", CORBA_B_TRUE, - 2, &Cubit_cube_long_params [0], - 0, 0 -}; - - -CORBA_Long -Cubit::Cubit_cube_long (CORBA_Long l, - CORBA_Environment &env) -{ - CORBA_Long retval; - - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return 0; - } - - istub->do_call (env, &Cubit_cube_long_calldata, - &retval, &l); - istub->Release (); - - return retval; -} - - -// -// Encapsulated parameters for struct "Cubit_Many" typecode. -// None of these parameters is complicated, so this is just -// a linear sequence of element encodings -// -// NOTE: it's important that this be longword aligned!! -// -static const CORBA_Long _oc_Cubit_Many [] = -{ - 1, // byte order flag (TRICKY!) - - 1, 0, // empty string: repository/type ID - 1, 0, // empty string: struct name - - 3, // three struct elements - - // First structure element: name, typecode for Octet - 1, 0, // empty string: name "o" - tk_octet, - - // Second structure element: name, typecode for Long - 1, 0, // empty string: name "l" - tk_long, - - // Third structure element: name, typecode for Short - 1, 0, // empty string: name "s" - tk_short, -}; - -static CORBA_TypeCode _tc_Cubit_Many (tk_struct, - sizeof _oc_Cubit_Many, (unsigned char *) &_oc_Cubit_Many, - CORBA_B_FALSE); -CORBA_TypeCode_ptr TC_Cubit_Many = &_tc_Cubit_Many; - - -// -// CUBE STRUCT -// - -static const TAO_Param_Data Cubit_cube_struct_params [] = -{ - { &_tc_Cubit_Many, PARAM_RETURN, sizeof (Cubit_Many) }, - { &_tc_Cubit_Many, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_struct_calldata = -{ - "cube_struct", CORBA_B_TRUE, - 2, &Cubit_cube_struct_params [0], - 0, 0 -}; - -Cubit_Many* -Cubit::Cubit_cube_struct (Cubit_Many &values, - CORBA_Environment &env) -{ - Cubit_Many *retval; - - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return 0; - } - - istub->do_call (env, &Cubit_cube_struct_calldata, - &retval, &values); - istub->Release (); - - return retval; -} - - -// -// CUBE UNION -// - -// -// NOTE: not all union typecodes can be encoded as an array -// of "long "values, but this one can. Ones with discriminants -// that are one or two bytes long can't easily be coded portably. -// -// The benefit of doing it as an array of "long" values is -// twofold: (a) easier to read; (b) on most systems it's then -// adequately aligned for the typecode interpreter to use, so -// no additional runtime copy needs to be made. -// -static const CORBA_Long _oc_Cubit_oneof [] = -{ - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted struct name, "oneof" - - // - // discriminant typecode: - // - tk_enum, // tk_enum - 72, // encapsulation length - - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted enum name, "discrim" - 6, // 5 elements in the enum - - 1, 0, // omitted member name, "e_0th" - 1, 0, // omitted member name, "e_1st" - 1, 0, // omitted member name, "e_2nd" - 1, 0, // omitted member name, "e_3rd" - 1, 0, // omitted member name, "e_4th" - 1, 0, // omitted member name, "e_5th" - - 4, // default member index (zero based) - 5, // number of union members - - // the 1st union branch arm - e_0th, // member label value - 1, 0, // omitted member name, "o" - tk_octet, // member typecode - - // the 2nd union branch arm - e_1st, // member label value - 1, 0, // omitted member name, "s" - tk_short, // member typecode - - // the 3rd union branch arm - e_2nd, // member label value - 1, 0, // omitted member name, "l" - tk_long, // member typecode - - // the 4th union branch arm - e_3rd, // member label value - 1, 0, // omitted member name, "cm" - - // the 4th union member typecode - tk_struct, // tk_struct - 60, // encap length - - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted struct name, "Many" - 3, // three struct members - - // First structure element - 1, 0, // omitted member name, "o" - tk_octet, // member type, tk_octet - - // Second structure element - 1, 0, // omitted member name, "l" - tk_long, // member type, tk_long - - // Third structure element - 1, 0, // omitted member name, "s" - tk_short, // member type, tk_short - - // the 5th union branch arm - 4, // the 5th member label value - 1, 0, // omitted member name, "cm" - ~0, // indirected typecode (~0) - -84 // offset to struct "Many" typecode -}; - -static CORBA_TypeCode _tc_Cubit_oneof (tk_union, - (sizeof _oc_Cubit_oneof), (unsigned char *) &_oc_Cubit_oneof, - CORBA_B_FALSE); -CORBA_TypeCode_ptr TC_Cubit_oneof = &_tc_Cubit_oneof; - -static const TAO_Param_Data Cubit_cube_union_params [] = -{ - { &_tc_Cubit_oneof, PARAM_RETURN, sizeof (Cubit_oneof) }, - { &_tc_Cubit_oneof, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_union_calldata = -{ - "cube_union", CORBA_B_TRUE, - 2, &Cubit_cube_union_params [0], - 0, 0 -}; - -Cubit_oneof* -Cubit::Cubit_cube_union (Cubit_oneof &values, - CORBA_Environment &env) -{ - Cubit_oneof *retval; - - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return 0; - } - - istub->do_call (env, &Cubit_cube_union_calldata, - &retval, &values); - istub->Release (); - - return retval; -} - - - -// -// PLEASE EXIT -// - -static const TAO_Call_Data Cubit_please_exit_calldata = -{ - "please_exit", CORBA_B_FALSE, - 0, 0, - 0, 0 -}; - -void -Cubit::Cubit_please_exit (CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - - istub->do_call (env, &Cubit_please_exit_calldata); - istub->Release (); -} diff --git a/TAO/IIOP/tests/Cubit/TAO/cubitC.h b/TAO/IIOP/tests/Cubit/TAO/cubitC.h deleted file mode 100644 index 98610b55116..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/cubitC.h +++ /dev/null @@ -1,104 +0,0 @@ -// $Id$ - -// @(#)cubitC.h 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -/************************************************************************** -This file has been hand-crafted to work with the ORB API of the SUN's IIOP -implementation -***************************************************************************/ - -#ifndef _CUBIT_HH -#define _CUBIT_HH - -#ifdef _MSC_VER -#pragma pack (push, 1) // VC++, known padding rules -#endif // VC++ - -#include "corba/orb.h" -#include "corba/stub.h" - -#include - -extern CORBA_TypeCode_ptr TC_Cubit_Many; -extern CORBA_TypeCode_ptr TC_Cubit_oneof; - -struct Cubit_Many -{ - CORBA_Octet o; - CORBA_Long l; - CORBA_Short s; -}; - -enum Cubit_discrim - { e_0th = 0, e_1st = 1, e_2nd = 2, - e_3rd = 3, e_4th = 4, e_5th = 5 }; - -struct Cubit_oneof -{ - Cubit_discrim _disc; - - union - { - CORBA_Octet o; - CORBA_Short s; - CORBA_Long l; - Cubit_Many cm; - }; -}; - -class Cubit; -typedef Cubit *Cubit_ptr; -typedef Cubit_ptr Cubit_ref; - -class Cubit : public virtual CORBA_Object -{ -public: - - static Cubit_ptr _duplicate(Cubit_ptr obj); - static Cubit_ptr _narrow(CORBA_Object_ptr obj); - static Cubit_ptr _nil(); - - virtual - CORBA_Octet Cubit_cube_octet (CORBA_Octet o, - CORBA_Environment &env); - - virtual - CORBA_Short Cubit_cube_short (CORBA_Short s, - CORBA_Environment &env); - - virtual - CORBA_Long Cubit_cube_long (CORBA_Long l, - CORBA_Environment &env); - - virtual - Cubit_Many* Cubit_cube_struct (Cubit_Many &values, - CORBA_Environment &env); - - virtual - Cubit_oneof* Cubit_cube_union (Cubit_oneof &values, - CORBA_Environment &env); - - virtual - void Cubit_please_exit (CORBA_Environment &env); - -protected: - Cubit() { } - Cubit(STUB_Object *objref) - : CORBA_Object(objref) { } - virtual ~Cubit() { } - - -}; - -extern const CORBA_Char *Cubit__id; // type ID - -#ifdef _MSC_VER -#pragma pack (pop) // VC++, go back to other padding rules -#endif // VC++ - -#endif // _CUBIT_HH diff --git a/TAO/IIOP/tests/Cubit/TAO/cubitS.cpp b/TAO/IIOP/tests/Cubit/TAO/cubitS.cpp deleted file mode 100644 index bf77e70abd6..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/cubitS.cpp +++ /dev/null @@ -1,234 +0,0 @@ -// $Id$ - -// @(#)cubitS.cpp 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: hand-written C-style "Cubit" stubs and "skeletons" -// - -#include "cubitS.h" -#include "cubitC.cpp" - -#include "connect.h" -#include "params.h" - -#include "corba/debug.h" // ... and debugging -#include "corba/optable.h" // TAO Dynamic Operation Table -#include "method_db.i" -#include "iiopobj.h" - -#if defined(CUBIT_USE_DYNAMIC_HASH) -TAO_Dynamic_Hash_OpTable tao_cubit_optable(7); // Dynamic Operation Table -#else -TAO_Linear_OpTable tao_cubit_optable(7); -#endif - -_skel_Cubit::_skel_Cubit(const char* obj_name) -{ - const char* mn = "_skel_Cubit::_skel_Cubit()"; - - // Initialize Method Database - initialize_method_db (&tao_cubit_optable); - - char *type_id = "IDL:Cubit:1.0"; - // CORBA_String type_id = "IDL:Cubit:1.0"; - IIOP_Object *data; - - CORBA_BOA_ptr oa = TAO_OA_PARAMS::instance()->oa(); - if (oa == 0) - { - // We just have to assume that oa will be good, or we have to - // throw an exception. For now we "assume", but we'll - ACE_ERROR((LM_ERROR, "(%P|%t) %s Unable to locate a valid object adapter\n", mn)); - return; - } - - this->optable_ = &tao_cubit_optable; - data = new IIOP_Object(type_id); - - data->profile.iiop_version.major = IIOP::MY_MAJOR; - data->profile.iiop_version.minor = IIOP::MY_MINOR; - data->profile.host = ACE_OS::strdup(oa->get_addr().get_host_name()); - data->profile.port = oa->get_addr().get_port_number(); - data->profile.object_key.length = ACE_OS::strlen(obj_name); - data->profile.object_key.maximum = data->profile.object_key.length; - data->profile.object_key.buffer = new CORBA_Octet [(size_t)data->profile.object_key.length+1]; - - ACE_OS::memcpy (data->profile.object_key.buffer, - obj_name, - data->profile.object_key.length+1); - - this->set_parent(data); - this->sub_ = this; - - if (oa->bind(data->profile.object_key, this) == -1) - { - ACE_ERROR((LM_ERROR, "(%P|%t) %s Unable to bind object to key '%s': %p\n", mn, data->profile.object_key.buffer)); - return; - } -} - -void -_skel_Cubit::_cube_octet_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Octet); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_octet, add value"); - - req.params (nvlist, env); - dexc (env, "cube_octet, get params"); - - // Call Implementation - CORBA_Octet *value = new CORBA_Octet; - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - - *value = the_cubit->Cubit_cube_octet(*(CORBA_Octet *)nv->value()->value(), env); - - CORBA_Any *any = new CORBA_Any (_tc_CORBA_Octet, value, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "cube_octet, result"); -} - -void -_skel_Cubit::_cube_short_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Short); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_short, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_short, get params"); - - // Call Implementation - CORBA_Short *value = new CORBA_Short; - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - *value = the_cubit->Cubit_cube_short(*(CORBA_Short *)nv->value ()->value (), env); - - CORBA_Any *any = new CORBA_Any (_tc_CORBA_Short, value, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "cube_short, result"); -} - -void -_skel_Cubit::_cube_long_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Long); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_long, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_long, get params"); - - // Call Implementation - CORBA_Long *value = new CORBA_Long; - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - *value = the_cubit->Cubit_cube_long(*(CORBA_Long *)nv->value ()->value (), env); - - CORBA_Any *any = - new CORBA_Any (_tc_CORBA_Long, value, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "cube_long, result"); -} - -void -_skel_Cubit::_cube_struct_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (TC_Cubit_Many); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_struct, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_struct, get params"); - - // Call Implementation - Cubit_Many *value; - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - value = the_cubit->Cubit_cube_struct(*(Cubit_Many*)nv->value()->value(), env); - - Cubit_Many *retval = new Cubit_Many; - retval->o = (CORBA_Octet)value->o; - retval->s = (CORBA_Short)value->s; - retval->l = value->l; - - // dmsg2 ("cube struct.o, %d -> %d", value->o, retval->o); - // dmsg2 ("cube struct.s, %d -> %d", value->s, retval->s); - // dmsg2 ("cube struct.l, %d -> %d", value->l, retval->l); - - CORBA_Any *any = new CORBA_Any (TC_Cubit_Many, retval, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "cube_struct, result"); -} - -void -_skel_Cubit::_cube_union_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (TC_Cubit_oneof); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_union_3rd, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_union_3rd, get params"); - - // Call Implementation - Cubit_oneof *v; - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - v = the_cubit->Cubit_cube_union(*(Cubit_oneof *)nv->value ()->value (), env); - - Cubit_oneof *r = new Cubit_oneof; - r->_disc = v->_disc; - r->o = (CORBA_Octet) (v->o); - r->s = (CORBA_Short) (v->s); - r->l = v->l; - r->cm.o = (CORBA_Octet) (v->cm.o); - r->cm.s = (CORBA_Short) (v->cm.s); - r->cm.l = v->cm.l; - - CORBA_Any *any = new CORBA_Any (TC_Cubit_oneof, r, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "cube_struct, result"); -} - -void -_skel_Cubit::_please_exit_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - the_cubit->Cubit_please_exit(env); -} diff --git a/TAO/IIOP/tests/Cubit/TAO/cubitS.h b/TAO/IIOP/tests/Cubit/TAO/cubitS.h deleted file mode 100644 index a4b4b853901..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/cubitS.h +++ /dev/null @@ -1,84 +0,0 @@ -// $Id$ - -// @(#)cubitS.h 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -/************************************************************************** -This file has been hand-crafted to work with the ORB API of the SUN's IIOP -implementation -***************************************************************************/ - -#ifndef _SKEL_CUBIT_HH -#define _SKEL_CUBIT_HH - -#include "cubitC.h" - -class _skel_Cubit; -typedef _skel_Cubit *_skel_Cubit_ptr; -typedef _skel_Cubit_ptr _skel_Cubit_ref; - -class _skel_Cubit : public Cubit -{ -public: - virtual - CORBA_Octet Cubit_cube_octet (CORBA_Octet o, - CORBA_Environment &env) = 0; - static - void _cube_octet_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - - virtual - CORBA_Short Cubit_cube_short (CORBA_Short s, - CORBA_Environment &env) = 0; - - static - void _cube_short_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - - virtual - CORBA_Long Cubit_cube_long (CORBA_Long l, - CORBA_Environment &env) = 0; - - static - void _cube_long_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - - virtual - Cubit_Many* Cubit_cube_struct (Cubit_Many &values, - CORBA_Environment &env) = 0; - - static - void _cube_struct_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - - virtual - Cubit_oneof* Cubit_cube_union (Cubit_oneof &values, - CORBA_Environment &env) = 0; - - static - void _cube_union_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - - virtual - void Cubit_please_exit (CORBA_Environment &env) = 0; - - static - void _please_exit_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); -protected: - _skel_Cubit(const char* obj_name = 0); - virtual ~_skel_Cubit() { } - -}; - -#endif // _SKEL_CUBIT_HH diff --git a/TAO/IIOP/tests/Cubit/TAO/cubit_i.cpp b/TAO/IIOP/tests/Cubit/TAO/cubit_i.cpp deleted file mode 100644 index ec3d3717768..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/cubit_i.cpp +++ /dev/null @@ -1,93 +0,0 @@ -// $Id$ - -// @(#)cubit_i.cpp 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: hand-written Cubit Implementation -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -#include "cubit_i.h" - -#include // ... and skeletons -#include // ... and debugging - -#include "connect.h" -#include "params.h" - -Cubit_i::Cubit_i(const char* obj_name) -: _skel_Cubit(obj_name) -{ -} - -Cubit_i::~Cubit_i() -{ -} - -CORBA_Octet -Cubit_i::Cubit_cube_octet (CORBA_Octet o, - CORBA_Environment &env) -{ - - return (CORBA_Octet) (o * o * o); -} - -CORBA_Short -Cubit_i::Cubit_cube_short (CORBA_Short s, - CORBA_Environment &env) -{ - return (CORBA_Short) (s * s * s); -} - - -CORBA_Long -Cubit_i::Cubit_cube_long (CORBA_Long l, - CORBA_Environment &env) -{ - return (CORBA_Long) (l * l * l); -} - -Cubit_Many* -Cubit_i::Cubit_cube_struct (Cubit_Many &values, - CORBA_Environment &env) -{ - values.o = values.o * values.o * values.o; - values.s = values.s * values.s * values.s; - values.l = values.l * values.l * values.l; - - return &values; -} - -Cubit_oneof* -Cubit_i::Cubit_cube_union (Cubit_oneof &values, - CORBA_Environment &env) -{ - switch (values._disc) { - case e_0th: - values.o = (CORBA_Octet) (values.o * values.o * values.o); - break; - case e_1st: - values.s = (CORBA_Short) (values.s * values.s * values.s); - break; - case e_2nd: - values.l = values.l * values.l * values.l; - break; - case e_3rd: - default: - values.cm.o = (CORBA_Octet) (values.cm.o * values.cm.o * values.cm.o); - values.cm.s = (CORBA_Short) (values.cm.s * values.cm.s * values.cm.s); - values.cm.l = values.cm.l * values.cm.l * values.cm.l; - } - return &values; -} - -void Cubit_i::Cubit_please_exit (CORBA_Environment &env) -{ - TAO_OA_Parameters* params = TAO_OA_PARAMS::instance(); - - dmsg ("I've been asked to shut down..."); - params->oa()->please_shutdown(env); - dexc (env, "please_exit, please_shutdown"); -} diff --git a/TAO/IIOP/tests/Cubit/TAO/cubit_i.h b/TAO/IIOP/tests/Cubit/TAO/cubit_i.h deleted file mode 100644 index 7ddf1947cd3..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/cubit_i.h +++ /dev/null @@ -1,56 +0,0 @@ -// $Id$ - -// @(#)cubit_i.cpp 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: hand-written Cubit Implementation -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -/************************************************************************** -This file has been hand-crafted to work with the ORB API of the SUN's IIOP -implementation -***************************************************************************/ - -#ifndef _CUBIT_I_HH -#define _CUBIT_I_HH - -#include "cubitS.h" - -class Cubit_i; -typedef Cubit_i *Cubit_i_ptr; -typedef Cubit_i_ptr Cubit_i_ref; - -class Cubit_i : public _skel_Cubit -{ -public: - Cubit_i(const char* obj_name = 0); - ~Cubit_i(); - - virtual - CORBA_Octet Cubit_cube_octet (CORBA_Octet o, - CORBA_Environment &env); - - virtual - CORBA_Short Cubit_cube_short (CORBA_Short s, - CORBA_Environment &env); - - virtual - CORBA_Long Cubit_cube_long (CORBA_Long l, - CORBA_Environment &env); - - virtual - Cubit_Many* Cubit_cube_struct (Cubit_Many &values, - CORBA_Environment &env); - - virtual - Cubit_oneof* Cubit_cube_union (Cubit_oneof &values, - CORBA_Environment &env); - - virtual - void Cubit_please_exit (CORBA_Environment &env); -}; - -#endif // _CUBIT_I_HH diff --git a/TAO/IIOP/tests/Cubit/TAO/method_db.i b/TAO/IIOP/tests/Cubit/TAO/method_db.i deleted file mode 100644 index a95573043ac..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/method_db.i +++ /dev/null @@ -1,69 +0,0 @@ -// $Id$ - -// @(#)method_db.i 05/14/97 - -// This file provides a way of initializing the method database -// Written by: Brian Mendel - -#include "cubitS.h" - -static void -is_a_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_String); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - - req.params (nvlist, env); - if (env.exception () != 0) - { - dexc (env, "is_a_skel, get params"); - return; - } - - CORBA_Boolean *retval; - CORBA_String value = *(CORBA_String *) nv->value()->value(); - - if (ACE_OS::strcmp ((char*)value, "IDL:Cubit:1.0") == 0 - || ACE_OS::strcmp ((char *)value, _tc_CORBA_Object->id (env)) == 0) - retval = new CORBA_Boolean (CORBA_B_TRUE); - else - retval = new CORBA_Boolean (CORBA_B_FALSE); - - CORBA_Any *any = new CORBA_Any (_tc_CORBA_Boolean, retval, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "_is_a, result"); -} - - -struct method_db -{ - CORBA_String opname; - TAO_Skeleton skel_ptr; -}; - -static const method_db cubit_operations[] = { - { "_is_a", &is_a_skel }, - { "cube_octet", &_skel_Cubit::_cube_octet_skel }, - { "cube_short", &_skel_Cubit::_cube_short_skel }, - { "cube_long", &_skel_Cubit::_cube_long_skel }, - { "cube_struct", &_skel_Cubit::_cube_struct_skel }, - { "cube_union", &_skel_Cubit::_cube_union_skel }, - { "please_exit", &_skel_Cubit::_please_exit_skel }, - { 0, 0 } -}; - - -void initialize_method_db (TAO_Operation_Table *the_optable) -{ - for (int ndx = 0; ndx < 7; ndx++) - the_optable->bind(cubit_operations[ndx].opname, - cubit_operations[ndx].skel_ptr); - -} diff --git a/TAO/IIOP/tests/Cubit/TAO/svr.cpp b/TAO/IIOP/tests/Cubit/TAO/svr.cpp deleted file mode 100644 index f96a537dbb4..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/svr.cpp +++ /dev/null @@ -1,214 +0,0 @@ -// $Id$ - -// @(#)svr.cpp 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: simple IIOP server for "cubit.idl" interface. -// -// Starts up, builds an objref, prints its string in debug mode, -// listens for messages, responds to them. -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -#include "ace/Get_Opt.h" -#include "ace/Log_Msg.h" - -#include "corba/orb.h" -#include "corba/debug.h" -#include "connect.h" - -#include "cubit_i.h" - -extern void -print_exception (const CORBA_Exception *, const char *, FILE *f=stdout); - -// Global Variables -CORBA_String key = (CORBA_String)"key0"; -int num_of_objs = 1; - -// = TITLE -// Parses the command line arguments and returns an error status -// -// = DESCRIPTION -// This method parses the command line arguments -int parse_args(int argc, char *argv[]) -{ - ACE_Get_Opt opts (argc, argv, "dk:n:"); - int c; - - while ((c = opts ()) != -1) - switch (c) { - - case 'd': // debug flag - TAO_debug_level++; - continue; - - case 'k': // key (str) - key = (CORBA_String) opts.optarg; - continue; - - case 'n': // idle seconds b4 exit - num_of_objs = ACE_OS::atoi(opts.optarg); - continue; - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-k {object_key}]" - "\n", argv [0] - ); - return 1; - } - - return 0; // Indicates successful parsing of command line -} - - -// -// Standard command line parsing utilities used. -// -int -main (int argc, char *argv[]) -{ - CORBA_Environment env; - CORBA_Object_ptr obj = 0; - CORBA_ORB_ptr orb_ptr; - CORBA_BOA_ptr oa_ptr; - char *orb_name = "internet"; - int idle = -1; - - orb_ptr = CORBA_ORB_init (argc, argv, orb_name, env); - if (env.exception () != 0) { - print_exception (env.exception (), "ORB init"); - return 1; - } - - // Initialize the Basic Object Adapter - oa_ptr = orb_ptr->BOA_init(argc, argv, "ROA"); - if (oa_ptr == 0) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to initialize the BOA.\n"), 1); - - - // - // Parse remaining command line and verify parameters. - // - parse_args(argc, argv); - - // Create implementation object with user specified key - Cubit_i_ptr *my_cubit = new Cubit_i_ptr[num_of_objs]; - for (int ndx = 0; ndx < num_of_objs; ndx++) - { - CORBA_String obj_str = CORBA_string_alloc(ACE_OS::strlen ((char *)key)+2); - sprintf(obj_str, "%s%d", (char*)key, ndx); - my_cubit[ndx] = new Cubit_i(obj_str); - if (my_cubit[ndx] == 0) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to create implementation object&d\n", ndx), 2); - - if (TAO_debug_level >= 1) - { - // Why are we getting the BOA_ptr from here when we've already - // got it above? - CORBA_OctetSeq obj_key; - obj_key.buffer = (CORBA_Octet *) obj_str; - obj_key.length = obj_key.maximum = ACE_OS::strlen (obj_str); - - if (oa_ptr->find(obj_key, obj) == -1) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to locate object with key '%s', %p\n", key), 3); - - // - // Stringify the objref we'll be implementing, and - // print it to stdout. Someone will take that string - // and give it to some client. Then release the object. - // - CORBA_String str; - - str = orb_ptr->object_to_string (obj, env); - if (env.exception () != 0) { - print_exception (env.exception (), "object2string"); - return 1; - } - ACE_OS::puts ((char *)str); - ACE_OS::fflush (stdout); - dmsg1 ("Object Created at: '%ul'", obj); - dmsg1 ("listening as object '%s'", str); - - } - CORBA_string_free(obj_str); - } -// Cubit_i_ptr my_cubit = new Cubit_i(key); -// if (my_cubit1 == 0) -// ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to create implementation object\n"), 2); - -/* if (TAO_debug_level >= 1) - { - // Why are we getting the BOA_ptr from here when we've already - // got it above? - CORBA_OctetSeq obj_key; - obj_key.buffer = (CORBA_Octet *) key; - obj_key.length = obj_key.maximum = ACE_OS::strlen ((char *)key); - - if (oa_ptr->find(obj_key, obj) == -1) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to locate object with key '%s', %p\n", key), 3); - - // - // Stringify the objref we'll be implementing, and - // print it to stdout. Someone will take that string - // and give it to some client. Then release the object. - // - CORBA_String str; - - str = orb_ptr->object_to_string (obj, env); - if (env.exception () != 0) { - print_exception (env.exception (), "object2string"); - return 1; - } - ACE_OS::puts ((char *)str); - ACE_OS::fflush (stdout); - dmsg1 ("listening as object '%s'", str); - - obj_key.buffer = (CORBA_Octet *)"key1"; - obj_key.length = obj_key.maximum = 4; - if (oa_ptr->find(obj_key, obj) == -1) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to locate object with key '%s', %p\n", key), 3); - - str = orb_ptr->object_to_string (obj, env); - if (env.exception () != 0) { - print_exception (env.exception (), "object2string"); - return 1; - } - ACE_OS::puts ((char *)str); - ACE_OS::fflush (stdout); - dmsg1 ("listening as object '%s'", str); - } -*/ - // Handle requests for this object until we're killed, or one of - // the methods asks us to exit. - // - int terminationStatus = 0; - - -#if !defined(USE_HOMEBREW_EVENT_LOOP) - ACE_Reactor::run_event_loop(); -#else - while (1) - { - int result = params->reactor()->handle_events (); - - if (result == -1) - { - terminationStatus = -1; - break; - } - } -#endif - - // - // Shut down the OA -- recycles all underlying resources (e.g. file - // descriptors, etc). - // - oa_ptr->clean_shutdown (env); - return 0; -} diff --git a/TAO/IIOP/tests/Cubit/TAO/test.mak b/TAO/IIOP/tests/Cubit/TAO/test.mak deleted file mode 100644 index 58b77c28283..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/test.mak +++ /dev/null @@ -1,463 +0,0 @@ -# Microsoft Developer Studio Generated NMAKE File, Format Version 4.20 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -!IF "$(CFG)" == "" -CFG=server - Win32 Debug -!MESSAGE No configuration specified. Defaulting to server - Win32 Debug. -!ENDIF - -!IF "$(CFG)" != "client - Win32 Release" && "$(CFG)" != "client - Win32 Debug"\ - && "$(CFG)" != "server - Win32 Release" && "$(CFG)" != "server - Win32 Debug" -!MESSAGE Invalid configuration "$(CFG)" specified. -!MESSAGE You can specify a configuration when running NMAKE on this makefile -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "test.mak" CFG="server - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "client - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "client - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE "server - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "server - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE -!ERROR An invalid configuration is specified. -!ENDIF - -!IF "$(OS)" == "Windows_NT" -NULL= -!ELSE -NULL=nul -!ENDIF -################################################################################ -# Begin Project -# PROP Target_Last_Scanned "server - Win32 Debug" -RSC=rc.exe -CPP=cl.exe - -!IF "$(CFG)" == "client - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "client\Release" -# PROP BASE Intermediate_Dir "client\Release" -# PROP BASE Target_Dir "client" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Release" -# PROP Target_Dir "client" -OUTDIR=. -INTDIR=.\Release - -ALL : "$(OUTDIR)\client.exe" - -CLEAN : - -@erase "$(INTDIR)\clnt.obj" - -@erase "$(INTDIR)\cubitC.obj" - -@erase "$(OUTDIR)\client.exe" - -"$(INTDIR)" : - if not exist "$(INTDIR)/$(NULL)" mkdir "$(INTDIR)" - -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c -# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\proto\include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c -CPP_PROJ=/nologo /MD /W3 /GX /O2 /I "..\proto\include" /D "WIN32" /D "NDEBUG"\ - /D "_CONSOLE" /Fp"$(INTDIR)/client.pch" /YX /Fo"$(INTDIR)/" /c -CPP_OBJS=.\Release/ -CPP_SBRS=.\. -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -BSC32_FLAGS=/nologo /o"$(OUTDIR)/client.bsc" -BSC32_SBRS= \ - -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 ace.lib ..\lib\TAO.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -LINK32_FLAGS=ace.lib ..\lib\TAO.lib kernel32.lib user32.lib gdi32.lib\ - winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib\ - uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:no\ - /pdb:"$(OUTDIR)/client.pdb" /machine:I386 /out:"$(OUTDIR)/client.exe" -LINK32_OBJS= \ - "$(INTDIR)\clnt.obj" \ - "$(INTDIR)\cubitC.obj" - -"$(OUTDIR)\client.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ELSEIF "$(CFG)" == "client - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "client\Debug" -# PROP BASE Intermediate_Dir "client\Debug" -# PROP BASE Target_Dir "client" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Debug" -# PROP Target_Dir "client" -OUTDIR=. -INTDIR=.\Debug - -ALL : "$(OUTDIR)\client.exe" - -CLEAN : - -@erase "$(INTDIR)\clnt.obj" - -@erase "$(INTDIR)\cubitC.obj" - -@erase "$(INTDIR)\vc40.idb" - -@erase "$(INTDIR)\vc40.pdb" - -@erase "$(OUTDIR)\client.exe" - -@erase "$(OUTDIR)\client.ilk" - -@erase "$(OUTDIR)\client.pdb" - -"$(INTDIR)" : - if not exist "$(INTDIR)/$(NULL)" mkdir "$(INTDIR)" - -# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\proto\include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c -CPP_PROJ=/nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\proto\include" /D "WIN32" /D\ - "_DEBUG" /D "_CONSOLE" /Fp"$(INTDIR)/client.pch" /YX /Fo"$(INTDIR)/"\ - /Fd"$(INTDIR)/" /c -CPP_OBJS=.\Debug/ -CPP_SBRS=.\. -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -BSC32_FLAGS=/nologo /o"$(OUTDIR)/client.bsc" -BSC32_SBRS= \ - -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 -# ADD LINK32 aced.lib ..\lib\TAO.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 -LINK32_FLAGS=aced.lib ..\lib\TAO.lib kernel32.lib user32.lib gdi32.lib\ - winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib\ - uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes\ - /pdb:"$(OUTDIR)/client.pdb" /debug /machine:I386 /out:"$(OUTDIR)/client.exe" -LINK32_OBJS= \ - "$(INTDIR)\clnt.obj" \ - "$(INTDIR)\cubitC.obj" - -"$(OUTDIR)\client.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ELSEIF "$(CFG)" == "server - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "server\Release" -# PROP BASE Intermediate_Dir "server\Release" -# PROP BASE Target_Dir "server" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Release" -# PROP Target_Dir "server" -OUTDIR=. -INTDIR=.\Release - -ALL : "$(OUTDIR)\server.exe" - -CLEAN : - -@erase "$(INTDIR)\cubit_i.obj" - -@erase "$(INTDIR)\cubitS.obj" - -@erase "$(INTDIR)\svr.obj" - -@erase "$(OUTDIR)\server.exe" - -"$(INTDIR)" : - if not exist "$(INTDIR)/$(NULL)" mkdir "$(INTDIR)" - -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c -# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\proto\include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c -CPP_PROJ=/nologo /MD /W3 /GX /O2 /I "..\proto\include" /D "WIN32" /D "NDEBUG"\ - /D "_CONSOLE" /Fp"$(INTDIR)/server.pch" /YX /Fo"$(INTDIR)/" /c -CPP_OBJS=.\Release/ -CPP_SBRS=.\. -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -BSC32_FLAGS=/nologo /o"$(OUTDIR)/server.bsc" -BSC32_SBRS= \ - -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 ace.lib ..\lib\TAO.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -LINK32_FLAGS=ace.lib ..\lib\TAO.lib kernel32.lib user32.lib gdi32.lib\ - winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib\ - uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:no\ - /pdb:"$(OUTDIR)/server.pdb" /machine:I386 /out:"$(OUTDIR)/server.exe" -LINK32_OBJS= \ - "$(INTDIR)\cubit_i.obj" \ - "$(INTDIR)\cubitS.obj" \ - "$(INTDIR)\svr.obj" - -"$(OUTDIR)\server.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ELSEIF "$(CFG)" == "server - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "server\Debug" -# PROP BASE Intermediate_Dir "server\Debug" -# PROP BASE Target_Dir "server" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Debug" -# PROP Target_Dir "server" -OUTDIR=. -INTDIR=.\Debug - -ALL : "$(OUTDIR)\server.exe" - -CLEAN : - -@erase "$(INTDIR)\cubit_i.obj" - -@erase "$(INTDIR)\cubitS.obj" - -@erase "$(INTDIR)\svr.obj" - -@erase "$(INTDIR)\vc40.idb" - -@erase "$(INTDIR)\vc40.pdb" - -@erase "$(OUTDIR)\server.exe" - -@erase "$(OUTDIR)\server.ilk" - -@erase "$(OUTDIR)\server.pdb" - -"$(INTDIR)" : - if not exist "$(INTDIR)/$(NULL)" mkdir "$(INTDIR)" - -# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\proto\include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c -CPP_PROJ=/nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\proto\include" /D "WIN32" /D\ - "_DEBUG" /D "_CONSOLE" /Fp"$(INTDIR)/server.pch" /YX /Fo"$(INTDIR)/"\ - /Fd"$(INTDIR)/" /c -CPP_OBJS=.\Debug/ -CPP_SBRS=.\. -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -BSC32_FLAGS=/nologo /o"$(OUTDIR)/server.bsc" -BSC32_SBRS= \ - -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 -# ADD LINK32 aced.lib ..\lib\TAO.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 -LINK32_FLAGS=aced.lib ..\lib\TAO.lib kernel32.lib user32.lib gdi32.lib\ - winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib\ - uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes\ - /pdb:"$(OUTDIR)/server.pdb" /debug /machine:I386 /out:"$(OUTDIR)/server.exe" -LINK32_OBJS= \ - "$(INTDIR)\cubit_i.obj" \ - "$(INTDIR)\cubitS.obj" \ - "$(INTDIR)\svr.obj" - -"$(OUTDIR)\server.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ENDIF - -.c{$(CPP_OBJS)}.obj: - $(CPP) $(CPP_PROJ) $< - -.cpp{$(CPP_OBJS)}.obj: - $(CPP) $(CPP_PROJ) $< - -.cxx{$(CPP_OBJS)}.obj: - $(CPP) $(CPP_PROJ) $< - -.c{$(CPP_SBRS)}.sbr: - $(CPP) $(CPP_PROJ) $< - -.cpp{$(CPP_SBRS)}.sbr: - $(CPP) $(CPP_PROJ) $< - -.cxx{$(CPP_SBRS)}.sbr: - $(CPP) $(CPP_PROJ) $< - -################################################################################ -# Begin Target - -# Name "client - Win32 Release" -# Name "client - Win32 Debug" - -!IF "$(CFG)" == "client - Win32 Release" - -!ELSEIF "$(CFG)" == "client - Win32 Debug" - -!ENDIF - -################################################################################ -# Begin Source File - -SOURCE=.\clnt.cpp -DEP_CPP_CLNT_=\ - "..\..\..\..\..\ace\config-win32.h"\ - ".\cubitC.h"\ - {$(INCLUDE)}"\ace\ACE.h"\ - {$(INCLUDE)}"\ace\ACE.i"\ - {$(INCLUDE)}"\ace\Auto_Ptr.cpp"\ - {$(INCLUDE)}"\ace\Auto_Ptr.h"\ - {$(INCLUDE)}"\ace\Auto_Ptr.i"\ - {$(INCLUDE)}"\ace\config-win32-common.h"\ - {$(INCLUDE)}"\ace\config.h"\ - {$(INCLUDE)}"\ace\Get_Opt.h"\ - {$(INCLUDE)}"\ace\Get_Opt.i"\ - {$(INCLUDE)}"\ace\Log_Msg.h"\ - {$(INCLUDE)}"\ace\Log_Priority.h"\ - {$(INCLUDE)}"\ace\Log_Record.h"\ - {$(INCLUDE)}"\ace\Log_Record.i"\ - {$(INCLUDE)}"\ace\Object_Manager.h"\ - {$(INCLUDE)}"\ace\Object_Manager.i"\ - {$(INCLUDE)}"\ace\OS.h"\ - {$(INCLUDE)}"\ace\OS.i"\ - {$(INCLUDE)}"\ace\SString.h"\ - {$(INCLUDE)}"\ace\SString.i"\ - {$(INCLUDE)}"\ace\stdcpp.h"\ - {$(INCLUDE)}"\ace\Trace.h"\ - {$(INCLUDE)}"\ace\ws2tcpip.h"\ - -NODEP_CPP_CLNT_=\ - ".\corba\orb.h"\ - ".\corba\stub.h"\ - - -"$(INTDIR)\clnt.obj" : $(SOURCE) $(DEP_CPP_CLNT_) "$(INTDIR)" - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\cubitC.cpp -DEP_CPP_CUBIT=\ - ".\cubitC.h"\ - -NODEP_CPP_CUBIT=\ - ".\corba\orb.h"\ - ".\corba\stub.h"\ - - -"$(INTDIR)\cubitC.obj" : $(SOURCE) $(DEP_CPP_CUBIT) "$(INTDIR)" - - -# End Source File -# End Target -################################################################################ -# Begin Target - -# Name "server - Win32 Release" -# Name "server - Win32 Debug" - -!IF "$(CFG)" == "server - Win32 Release" - -!ELSEIF "$(CFG)" == "server - Win32 Debug" - -!ENDIF - -################################################################################ -# Begin Source File - -SOURCE=.\cubitS.cpp -DEP_CPP_CUBITS=\ - ".\cubitC.cpp"\ - ".\cubitC.h"\ - ".\cubitS.h"\ - ".\method_db.i"\ - -NODEP_CPP_CUBITS=\ - ".\connect.h"\ - ".\corba\debug.h"\ - ".\corba\optable.h"\ - ".\corba\orb.h"\ - ".\corba\stub.h"\ - ".\iiopobj.h"\ - ".\params.h"\ - - -"$(INTDIR)\cubitS.obj" : $(SOURCE) $(DEP_CPP_CUBITS) "$(INTDIR)" - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\cubit_i.cpp -DEP_CPP_CUBIT_=\ - ".\cubit_i.h"\ - ".\cubitC.h"\ - ".\cubitS.h"\ - -NODEP_CPP_CUBIT_=\ - ".\connect.h"\ - ".\corba\orb.h"\ - ".\corba\stub.h"\ - ".\params.h"\ - - -"$(INTDIR)\cubit_i.obj" : $(SOURCE) $(DEP_CPP_CUBIT_) "$(INTDIR)" - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\svr.cpp -DEP_CPP_SVR_C=\ - "..\..\..\..\..\ace\config-win32.h"\ - ".\cubit_i.h"\ - ".\cubitC.h"\ - ".\cubitS.h"\ - {$(INCLUDE)}"\ace\ACE.h"\ - {$(INCLUDE)}"\ace\ACE.i"\ - {$(INCLUDE)}"\ace\Auto_Ptr.cpp"\ - {$(INCLUDE)}"\ace\Auto_Ptr.h"\ - {$(INCLUDE)}"\ace\Auto_Ptr.i"\ - {$(INCLUDE)}"\ace\config-win32-common.h"\ - {$(INCLUDE)}"\ace\config.h"\ - {$(INCLUDE)}"\ace\Get_Opt.h"\ - {$(INCLUDE)}"\ace\Get_Opt.i"\ - {$(INCLUDE)}"\ace\Log_Msg.h"\ - {$(INCLUDE)}"\ace\Log_Priority.h"\ - {$(INCLUDE)}"\ace\Log_Record.h"\ - {$(INCLUDE)}"\ace\Log_Record.i"\ - {$(INCLUDE)}"\ace\Object_Manager.h"\ - {$(INCLUDE)}"\ace\Object_Manager.i"\ - {$(INCLUDE)}"\ace\OS.h"\ - {$(INCLUDE)}"\ace\OS.i"\ - {$(INCLUDE)}"\ace\SString.h"\ - {$(INCLUDE)}"\ace\SString.i"\ - {$(INCLUDE)}"\ace\stdcpp.h"\ - {$(INCLUDE)}"\ace\Trace.h"\ - {$(INCLUDE)}"\ace\ws2tcpip.h"\ - -NODEP_CPP_SVR_C=\ - ".\connect.h"\ - ".\corba\debug.h"\ - ".\corba\orb.h"\ - ".\corba\stub.h"\ - - -"$(INTDIR)\svr.obj" : $(SOURCE) $(DEP_CPP_SVR_C) "$(INTDIR)" - - -# End Source File -# End Target -# End Project -################################################################################ diff --git a/TAO/IIOP/tests/Cubit/TAO/test.mdp b/TAO/IIOP/tests/Cubit/TAO/test.mdp deleted file mode 100644 index eccc5e94b69..00000000000 Binary files a/TAO/IIOP/tests/Cubit/TAO/test.mdp and /dev/null differ diff --git a/TAO/IIOP/tests/Cubit/TAO/test1.cpp b/TAO/IIOP/tests/Cubit/TAO/test1.cpp deleted file mode 100644 index 753a3784e43..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/test1.cpp +++ /dev/null @@ -1,392 +0,0 @@ -// $Id$ - -// @(#)test1.cpp 1.4 95/09/28 -// Copyright 1995 by Sun Microsystems, Inc. -// All Rights Reserved -// -// TEST stubs for "test1" -// - -#include - -#include "test1.h" - - -// -// Define all the stubs ... it's a lot less error prone to do it with -// macros than by hand! -// -// NOTE: the "calldata" is exported for use by the skeletons. At some -// point skeletons will probably be fully abstracted; for now they aren't. -// -// Also, for some reason, name mangling is changed by the explicit -// declaration as "extern" -- if it's not done, linking fails. -// -#define DEFINE_TEST3(typename, truetype, truetypename) \ - static const TAO_Param_Data test1_ ## typename ## _paramdata [4] = { \ - { _tc_CORBA_ ## truetypename, PARAM_RETURN, 0 }, \ - { _tc_CORBA_ ## truetypename, PARAM_IN, 0 }, \ - { _tc_CORBA_ ## truetypename, PARAM_OUT, 0 }, \ - { _tc_CORBA_ ## truetypename, PARAM_INOUT, 0 }, \ - }; \ - \ - extern const TAO_Call_Data test1_ ## typename ## _calldata; \ - \ - const TAO_Call_Data test1_ ## typename ## _calldata = { \ - "test_" #typename, CORBA_B_TRUE, \ - 4, &test1_ ## typename ## _paramdata [0], \ - 0, 0, \ - }; \ - \ - CORBA_ ## truetype \ - test1_test_ ## typename (test1_ptr target, \ - CORBA_ ## truetype in_a1, \ - CORBA_ ## truetype &out_a2, \ - CORBA_ ## truetype &inout_a3, \ - CORBA_Environment &env) { \ - CORBA_ ## truetype _retval; \ - STUB_Object *_obj; \ - if (target->QueryInterface (IID_STUB_Object, (void **)&_obj) \ - != NOERROR) \ - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); \ - else { \ - _obj->do_call (env, &test1_ ## typename ## _calldata, \ - &_retval, &in_a1, &out_a2, &inout_a3); \ - _obj->Release (); \ - } \ - return _retval; \ - } - -// changed extern const calldata test1_ ## typename ## _calldata; -// to const calldata test1_ ## typename ## _calldata; \ - -// changed CORBA_ ## truetype _retval = 0; to changed CORBA_ ## truetype _retval; - -#define DEFINE_TEST(typename, truetype) \ - DEFINE_TEST3(typename, truetype, truetype) - - -// -// Generate a system exception, passing an operation ID that's -// not allowed by IIOP (much less this interface) and verifying -// that the server returns some kind of system exception. -// -static const TAO_Call_Data illegal_calldata = { - "+_illegal", CORBA_B_TRUE, - 0, 0, - 0, 0 -}; - -void -test_illegal (test1_ptr target, CORBA_Environment &env) -{ - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &illegal_calldata - ); - data->Release (); - } -} - - -extern const TAO_Call_Data test1_void_calldata; -const TAO_Call_Data test1_void_calldata = { - "test_void", CORBA_B_TRUE, - 0, 0, - 0, 0 -}; - -void -test1_test_void (test1_ptr target, CORBA_Environment &env) -{ - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &test1_void_calldata - ); - data->Release (); - } -} - -DEFINE_TEST (short, Short); -DEFINE_TEST (long, Long); -DEFINE_TEST (ushort, UShort); -DEFINE_TEST (ulong, ULong); - -#if defined(MIPS) -// -// NOTE: C/C++ compilers as a rule pass a "float" in the space that -// a "double" takes up. Conversions are evidently optional; portability -// forces the following "explicit temporary" hack to work on at least -// one MIPS platform, which converts the parameter to "double" and -// hence changes the binary representation. (Even if that is a compiler -// bug, it's probably required by now for binary compatibility!) -// -// A "-k ansi" compiler flag may be needed to get correct behaviour; -// passing the "in" parameters by reference apparently works too. At -// this time, none of these solutions is used by default. -// -// This stub-level hackery seems like it could be replaced inside of the -// stub interpreter, which could just manually convert "float" parameters -// (all of them) as special cases. But of course, that would slow the -// interpreter down on _every_ call, not just the ones that require it -// (such as this one). Tradeoffs! -// -static const TAO_Param_Data test1_float_paramdata [4] = { - { _tc_CORBA_Float , PARAM_RETURN , 0 }, - { _tc_CORBA_Float , PARAM_IN , 0 }, - { _tc_CORBA_Float , PARAM_OUT , 0 }, - { _tc_CORBA_Float , PARAM_INOUT , 0 } -}; - -extern const TAO_Call_Data test1_float_calldata; - -const TAO_Call_Data test1_float_calldata = { - "test_float", CORBA_B_TRUE, - 4 , &test1_float_paramdata [0], - 0 , 0 -}; - -CORBA_Float -test1_test_float ( - test1_ptr target, - CORBA_Float in_a1, - CORBA_Float &out_a2, - CORBA_Float &inout_a3, - CORBA_Environment &env -) -{ - CORBA_Float _retval; - - // These three temporaries required due to MIPS compiler bug - CORBA_Float _in_a1 = in_a1; - CORBA_Float _out_a2 = out_a2; - CORBA_Float _inout_a3 = inout_a3; - - target -> data -> do_call (env, - &test1_float_calldata, - &_retval, - &_in_a1, - &_out_a2, - &_inout_a3); - return _retval; -} - -#else -DEFINE_TEST (float, Float); -#endif // MIPS - - -DEFINE_TEST (double, Double); -DEFINE_TEST (boolean, Boolean); -DEFINE_TEST (char, Char); -DEFINE_TEST (octet, Octet); - -/* -CORBA_Any * -test1_test_any (test1_ptr target, - const CORBA_Any &in_a1, - CORBA_Any *&out_a2, - CORBA_Any &inout_a3, - CORBA_Environment &env) -{ - // XXX implement this stub! ... annoying that C++ mapping - // calls for so much special casing -} -*/ - - -DEFINE_TEST3 (TypeCode, TypeCode_ptr, TypeCode); -DEFINE_TEST3 (Principal, Principal_ptr, Principal); -DEFINE_TEST3 (Object, Object_ptr, Object); - -// NOTE: C++ mapping has "in" strings as "const", which doesn't -// show up in this macro ... -DEFINE_TEST3 (string, Char *, String); - -DEFINE_TEST (longlong, LongLong); -DEFINE_TEST (ulonglong, ULongLong); -DEFINE_TEST (wchar, WChar); - -// NOTE: C++ mapping has "in" strings as "const", which doesn't -// show up in this macro ... -DEFINE_TEST3 (wstring, WChar *, WString); - -#if !defined(NONNATIVE_LONGDOUBLE) -DEFINE_TEST (longdouble, LongDouble); -#endif - -#undef DEFINE_TEST - - -// -// Utility macros used to construct octet codes that are aligned -// on longword boundaries, and with a known byte order. This -// happens to use big endian encoding since it was convenient. -// (Longword alignment is a happy accident of the specification -// of OMG-IDL ... it could have been much worse!) -// -// It'd be much simpler to lay out such data in assembler! -// - -#if defined (WORDS_BIGENDIAN) -# define MAKE_BIG_LONG(a,b,c,d) \ - ((((a) & 0xff) << 24) | (((b) & 0xff) << 16) \ - | (((c) & 0xff) << 8) | ((d) & 0xff)) -# define BIG_ENDIAN_LONG(x) (x) - -#else // LITTLE_ENDIAN -# define MAKE_BIG_LONG(a,b,c,d) \ - ((((d) & 0xff) << 24) | (((c) & 0xff) << 16) \ - | (((b) & 0xff) << 8) | ((a) & 0xff)) -# define BYTE_FROM(n,integer) (((integer)>>(8*(n)))&0xff) -# define BIG_ENDIAN_LONG(integer) \ - MAKE_BIG_LONG (BYTE_FROM(3,integer), BYTE_FROM(2,integer),\ - BYTE_FROM(1,integer), BYTE_FROM(0,integer)) -#endif - - - -// -// "x1" exception typecode ... must be longword aligned -// -static CORBA_Long oc_x1 [] = { - 0, // big endian flag + padding - BIG_ENDIAN_LONG (29), // length of ID string + NUL - MAKE_BIG_LONG ('I', 'D', 'L', ':'), // bytes of ID string - MAKE_BIG_LONG ('E', 'n', 'g', '.'), - MAKE_BIG_LONG ('S', 'U', 'N', '.'), - MAKE_BIG_LONG ('C', 'O', 'M', '/'), - MAKE_BIG_LONG ('t', 'e', 's', 't'), - MAKE_BIG_LONG ('1', '/', 'x', '1'), - MAKE_BIG_LONG (':', '1', '.', '0'), - 0, - BIG_ENDIAN_LONG (1), // (empty) namelen + NUL - 0, - BIG_ENDIAN_LONG (1), // only one struct member - BIG_ENDIAN_LONG (1), // (empty) member name + NUL - 0, - BIG_ENDIAN_LONG (tk_long) -}; -static CORBA_TypeCode tc_x1 (tk_except, sizeof oc_x1, - (unsigned char *)&oc_x1, CORBA_B_FALSE); -CORBA_TypeCode_ptr _tc_test1_x1 = &tc_x1; - - - -// -// "x2" exception typecode ... must be longword aligned -// -static CORBA_Long oc_x2 [] = { - 0, // big endian flag + padding - BIG_ENDIAN_LONG (29), // length of ID string + NUL - MAKE_BIG_LONG ('I', 'D', 'L', ':'), // bytes of ID string - MAKE_BIG_LONG ('E', 'n', 'g', '.'), - MAKE_BIG_LONG ('S', 'U', 'N', '.'), - MAKE_BIG_LONG ('C', 'O', 'M', '/'), - MAKE_BIG_LONG ('t', 'e', 's', 't'), - MAKE_BIG_LONG ('1', '/', 'x', '2'), - MAKE_BIG_LONG (':', '1', '.', '0'), - 0, - BIG_ENDIAN_LONG (1), // (empty) namelen + NUL - 0, - BIG_ENDIAN_LONG (2), // two struct members - - BIG_ENDIAN_LONG (1), // (empty) member name + NUL - 0, - BIG_ENDIAN_LONG (tk_objref), - BIG_ENDIAN_LONG (29), // type ID + NUL - MAKE_BIG_LONG ('I', 'D', 'L', ':'), // bytes of ID string - MAKE_BIG_LONG ('o', 'm', 'g', '.'), - MAKE_BIG_LONG ('o', 'r', 'g', '/'), - MAKE_BIG_LONG ('C', 'O', 'R', 'B'), - MAKE_BIG_LONG ('A', '/', 'O', 'b'), - MAKE_BIG_LONG ('j', 'e', 'c', 't'), - MAKE_BIG_LONG (':', '1', '.', '0'), - 0, - - BIG_ENDIAN_LONG (1), // (empty) member name + NUL - 0, - BIG_ENDIAN_LONG (tk_long) -}; -static CORBA_TypeCode tc_x2 (tk_except, sizeof oc_x2, - (unsigned char *)&oc_x2, CORBA_B_FALSE); -CORBA_TypeCode_ptr _tc_test1_x2 = &tc_x2; - - -// -// parameter, exception, and call descriptions for "test_throw" -// -static const TAO_Param_Data test1_test_throw_paramdata [1] = { - { _tc_CORBA_Long, PARAM_IN, 0 } -}; - -static CORBA_TypeCode_ptr test1_test_throw_excepts [2] = { - &tc_x1, &tc_x2 -}; - -extern const TAO_Call_Data test1_test_throw_calldata; - -const TAO_Call_Data test1_test_throw_calldata = { - "test_throw", CORBA_B_TRUE, - 1, &test1_test_throw_paramdata [0], - 2, &test1_test_throw_excepts [0] -}; - -// -// "test_throw" stub -// -void -test1_test_throw ( - test1_ptr target, - CORBA_Long case_num, - CORBA_Environment &env // throw (x1, x2) -) -{ - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &test1_test_throw_calldata, - &case_num); - data->Release (); - } -} - -// -// PLEASE EXIT -// - -static const TAO_Call_Data test1_please_exit_calldata = { - "please_exit", CORBA_B_FALSE, - 0, 0, - 0, 0 -}; - -void -test1_please_exit ( - test1_ptr target, - CORBA_Environment &env -) -{ - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &test1_please_exit_calldata - ); - data->Release (); - } -} - diff --git a/TAO/IIOP/tests/Cubit/TAO/test1.h b/TAO/IIOP/tests/Cubit/TAO/test1.h deleted file mode 100644 index 63e409d36c3..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/test1.h +++ /dev/null @@ -1,126 +0,0 @@ -// $Id$ - -// @(#)test1.hh 1.2 95/09/12 -// Copyright 1995 by Sun Microsystems, Inc. -// All Rights Reserved -// -// TEST interface for "test1" -// - -#ifndef _TEST1_HH -#define _TEST1_HH - -#include -#include - - -#ifdef _MSC_VER -#pragma pack (push, 1) // VC++, known padding rules -#endif // VC++ - -typedef CORBA_UShort test1_ushort; -typedef CORBA_ULong test1_ulong; - -typedef CORBA_LongLong test1_longlong; -typedef CORBA_ULongLong test1_ulonglong; -typedef CORBA_LongDouble test1_longdouble; - -typedef CORBA_Object test1; -typedef test1 *test1_ptr; - -#define DECL_TEST(typename, truetype) \ - truetype \ - test1_test_ ## typename ( \ - test1_ptr target, \ - truetype in_a1, \ - truetype &out_a2, \ - truetype &inout_a3, \ - CORBA_Environment &env \ - ) - -void test_illegal (test1_ptr target, CORBA_Environment &env); -void test1_test_void (test1_ptr target, CORBA_Environment &env); - -DECL_TEST (short, CORBA_Short); -DECL_TEST (long, CORBA_Long); -DECL_TEST (ushort, CORBA_UShort); -DECL_TEST (ulong, CORBA_ULong); -DECL_TEST (float, CORBA_Float); -DECL_TEST (double, CORBA_Double); -DECL_TEST (boolean, CORBA_Boolean); -DECL_TEST (char, CORBA_Char); -DECL_TEST (octet, CORBA_Octet); - -CORBA_Any * -test1_test_any ( - test1_ptr target, - const CORBA_Any &in_a1, - CORBA_Any *&out_a2, - CORBA_Any &inout_a3, - CORBA_Environment &env -); - -DECL_TEST (TypeCode, CORBA_TypeCode_ptr); -DECL_TEST (Principal, CORBA_Principal_ptr); -DECL_TEST (Object, CORBA_Object_ptr); - -// NOTE: CORBA C++ mapping says the "in" string is const -DECL_TEST (string, CORBA_String); - -DECL_TEST (longlong, CORBA_LongLong); -DECL_TEST (ulonglong, CORBA_ULongLong); -DECL_TEST (wchar, CORBA_WChar); - -// NOTE: CORBA C++ mapping says the "in" string is const -DECL_TEST (wstring, CORBA_WString); - -DECL_TEST (longdouble, CORBA_LongDouble); - -#undef DECL_TEST - -extern CORBA_TypeCode_ptr _tc_test1_x1; - -class test1_x1 : public CORBA_UserException { - public: - CORBA_Long case_num; - - test1_x1 (CORBA_Long n) - : CORBA_UserException (_tc_test1_x1), case_num (n) - { } -}; - -extern CORBA_TypeCode_ptr _tc_test1_x2; - -class test1_x2 : public CORBA_UserException { - public: - CORBA_Object_ptr obj; - CORBA_Long case_num; - - test1_x2 (CORBA_Object_ptr obj1, - CORBA_Long n) - : CORBA_UserException (_tc_test1_x2), - obj (obj1), case_num (n) { } - - ~test1_x2 () - { CORBA_release (obj); } -}; - -void -test1_test_throw ( - test1_ptr target, - CORBA_Long case_num, - CORBA_Environment &env // throw (x1, x2) -); - -void -test1_please_exit ( - test1_ptr target, - CORBA_Environment &env -); - -#ifdef _MSC_VER -#pragma pack (pop) // VC++, go back to other padding rules -#endif // VC++ - -#endif // _TEST1_HH - diff --git a/TAO/IIOP/tests/Cubit/TAO/test1.idl b/TAO/IIOP/tests/Cubit/TAO/test1.idl deleted file mode 100644 index d47ab676ef5..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/test1.idl +++ /dev/null @@ -1,80 +0,0 @@ -// $Id$ - -// @(#)test1.idl 1.1 95/09/11 -// Copyright 1994-1995 by Sun Microsystems, Inc. -// -// TEST basic marshaling tests for all IDL primitive types, modes -// -// This test omits constructed types (struct, union, enum, sequence, and -// array types), and only tests very simple user defined exceptions. -// -// Values returned are well defined functions of the input values: -// -// * For numeric types (octet, short, long, longlong, float, double, -// longdouble, and unsigned variants) the value is cubed. -// * For Boolean, it's the negation. -// * For Any, TypeCode, Principal, Object, char and wchar, -// string and wstring, it's the input value. -// -// The "return" and "out" parameter is the function of the "in" parameter; -// the "inout" parameter is the function of its original value. -// -// The "echo" test has all output values be the input values, with no -// changes to the bit patterns originally transmitted. While easier to -// use to identify some kinds of problem, it is not as complete a test. -// - -#define DECL_TEST(type) \ - type test_ ## type ( in type a1, out type a2, inout type a3) - -#pragma prefix "Eng.SUN.COM" // only for Sun-defined interfaces - -interface test1 { - void test_void (); - - typedef unsigned short ushort; - typedef unsigned long ulong; - - typedef long long longlong; - typedef unsigned long long ulonglong; - typedef long double longdouble; - - DECL_TEST (short); - DECL_TEST (long); - DECL_TEST (ushort); - DECL_TEST (ulong); - DECL_TEST (float); - DECL_TEST (double); - DECL_TEST (boolean); - DECL_TEST (char); - DECL_TEST (octet); - DECL_TEST (any); - DECL_TEST (TypeCode); - DECL_TEST (Principal); - DECL_TEST (Object); // CORBA::Object - DECL_TEST (string); // unbounded string - - DECL_TEST (longlong); - DECL_TEST (ulonglong); - DECL_TEST (wchar); - DECL_TEST (wstring); // unbounded wstring - DECL_TEST (longdouble); - - // - // All cases, "case_num" in the exception is the same as the 'in' param - // * negative or zero, throws x1 - // * positive even cases, throws x2 with obj = null objref - // * positive odd cases, throws x2 with obj = target objref - // - exception x1 { long case_num; }; - exception x2 { Object obj; long case_num; }; - - void test_throw (in long case_num) raises (x1, x2); - - // - // Aid for test cleanup in case server's not told to quit after - // being idle for some time period - // - oneway void please_exit (); -}; - diff --git a/TAO/IIOP/tests/Cubit/TAO/test1_clnt.cpp b/TAO/IIOP/tests/Cubit/TAO/test1_clnt.cpp deleted file mode 100644 index 85853f13c8f..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/test1_clnt.cpp +++ /dev/null @@ -1,680 +0,0 @@ -// $Id$ - -// @(#)test1_clnt.cpp 1.5 95/09/24 -// Copyright 1995 by Sun Microsystems, Inc. -// All Rights Reserved -// -// TEST client driver for "test1" -// - -#ifdef USE_IOSTREAM -#include -#endif - -#include -#include -#include - -#if unix -# include - -#else // windows - -#endif // unix - -#include "test1.h" -#include - - -#if !defined (_WIN32) -extern char *optarg; // missing on some platforms -#endif - -extern void -print_exception (const CORBA_Exception *, const char *, FILE *f=stdout); - -// All tests are specified so that the return value and "out" (second) -// parameters are easily tested functions of the "in" (first) -// parameter, and the "inout" (third) parameter is the same function -// the its initial value. Caller is expected to specify two different -// "in" values. This helps make the marshaled bits vary, and turn up -// a class of potential problems that'd be hidden if parameter order -// had no effect on the test. -// -// PERFORM_TEST calls a test for a given type, reporting in cases -// where the ORB or operation failed. The COMPARE symbol can be -// redefined to achieve different functions -- e.g. cubing numbers, -// identity, negation, etc. It should return true iff the correct -// result was returned. -// -// BAD_COMPARE_VALUES is to produce diagnostics when a test fails, -// showing the actual and expected values of returned parameters. -// This helps diagnose specific porting problems. -// -// The RELEASE symbol may be defined to free memory, eliminating -// client side memory leaks in the test. -// -#define RELEASE(X) // NOP by default -#define PERFORM_TEST(name,type,value1,value2) \ - { \ - CORBA_ ## type v1, v2, v3; \ - \ - v1 = (CORBA_ ## type)(value1); \ - v2 = 0; \ - v3 = (CORBA_ ## type)(value2); \ - \ - test_count++; \ - v1 = test1_test_ ## name (target, v1, v2, v3, env); \ - if (env.exception () != 0) { \ - print_exception (env.exception (), "perform test_" #name); \ - error_count++; \ - } else if (!COMPARE (CORBA_ ## type, v1, value1) \ - || !COMPARE (CORBA_ ## type, v2, value1) \ - || !COMPARE (CORBA_ ## type, v3, value2) ) { \ - ACE_OS::fprintf (stderr, "bad comparison, test_" #name "\n"); \ - BAD_COMPARE_VALUES(type,v1,v2,v3,value1,value2) \ - error_count++; \ - } \ - RELEASE (v1); RELEASE (v2); RELEASE (v3); \ - } - -// -// This messing about is because the ostream op << cannot always -// be used with all kinds of data ... e.g. LongDouble, TypeCode. -// -#ifdef USE_IOSTREAM -# define DO_IO(x) x -#else -# define DO_IO(x) -#endif -#define BAD_COMPARE_VALUE_OUT(type,v1,v2,v3,value1,value2) \ - DO_IO( cerr << " v1=" << v1; \ - cerr << " expecting " << EXPVAL(CORBA_ ## type, value1) << "\n"; \ - cerr << " v2=" << v2; \ - cerr << " expecting " << EXPVAL(CORBA_ ## type, value1) << "\n"; \ - cerr << " v3=" << v3; \ - cerr << " expecting " << EXPVAL(CORBA_ ## type, value2) << "\n"); -#define BAD_COMPARE_VALUES(type,v1,v2,v3,value1,value2) \ - BAD_COMPARE_VALUE_OUT(type,v1,v2,v3,value1,value2) - -// test utility -- should be able to just use is_equivalent() directly -// but this implementation uses null pointers for nil, so this must -// check for nulls first. (May be noncompliant with C++ mapping!) - -static CORBA_Boolean -compare_objrefs (CORBA_Object_ptr v1, - CORBA_Object_ptr v2) -{ - CORBA_Boolean temp; - CORBA_Environment env; - - if (v1 == v2) - return CORBA_B_TRUE; - - if (CORBA_is_nil (v1)) - return CORBA_is_nil (v2); - - temp = v1->_is_equivalent (v2, env); - - if (env.exception () != 0) - { - print_exception (env.exception (), "compare objref"); - return CORBA_B_FALSE; - } - return temp; -} - - -// -// Helper routine to help sure math (especially for floating point) -// gets done correctly. -// -template -Type cube (Type arg) -{ - Type temp = arg; - - temp = temp * arg; - temp = temp * arg; - return temp; -} - -static int skip_longdouble = 0; - -// This just performs the tests ... - -void -do_tests (test1_ptr target, - unsigned loop_count, - unsigned &test_count, - unsigned &error_count) -{ - int count; - - for (count = 0; count < loop_count; count++) - { - CORBA_Environment env; - CORBA_Environment env2; // XXX - - // - // test_void - // - test_count++; - test1_test_void (target, env); - if (env.exception () != 0) - { - print_exception (env.exception (), "perform test_void"); - error_count++; - } - - // - // Numeric tests ... try some variety in computation, no real - // rationale in the choice of initial parameter values except - // not to use the same values all the time. - // -#define EXPVAL(type,original_value) ((type) cube((type)(original_value))) -#define COMPARE(type,retval,original_value) \ - ((retval) == EXPVAL(type, original_value)) - - PERFORM_TEST (octet, Octet, count + 29, count - 22); - - PERFORM_TEST (short, Short, count - 23, count + 19); - PERFORM_TEST (ushort, UShort, count + 23, count - 19); - - PERFORM_TEST (long, Long, count - 17, count + 20); - PERFORM_TEST (ulong, ULong, count + 17, count - 20); - -#if !defined (NONNATIVE_LONGLONG) - // don't try this on platforms that don't support - // math on longlongs ... - PERFORM_TEST (longlong, LongLong, count - 177, count + 3); - PERFORM_TEST (ulonglong, ULongLong, count + 177, count - 3); -#endif // !NONNATIVE_LONGLONG - -#if !defined (i386) - // - // XXX not sure what's wrong with the COMPARE macro with respect to - // floating point on x86, since fprintf shows the values basically - // look correct ... but these float/double tests fail. - // - PERFORM_TEST (float, Float, count - 0.29, count + 3.14159); - PERFORM_TEST (double, Double, count * 1.77, count * 2.71); -#endif // !defined (i386) - - -#ifndef NONNATIVE_LONGDOUBLE -#undef BAD_COMPARE_VALUES -#define BAD_COMPARE_VALUES(type,v1,v2,v3,value1,value2) // NOP - - // - // don't try this between two platforms that don't provide - // arithmetic support for LongDouble values ... - // - if (!skip_longdouble) - PERFORM_TEST (longdouble, LongDouble, - count - 2.33, count * 3.14159); - -# undef BAD_COMPARE_VALUES -# define BAD_COMPARE_VALUES(type,v1,v2,v3,value1,value2) \ - BAD_COMPARE_VALUE_OUT(type,v1,v2,v3,value1,value2) -#endif // !NONNATIVE_LONGDOUBLE - -#undef COMPARE -#undef EXPVAL - - - // - // Boolean -- negation - // -#define EXPVAL(type,original_value) (!(type)(original_value)) -#define COMPARE(type,retval,original_value) \ - (((type)(retval)) == EXPVAL(type,original_value)) - - PERFORM_TEST (boolean, Boolean, - (count & 0x01) != 0, (count & 0x01) == 0); -#undef COMPARE -#undef EXPVAL - - // - // Char, WChar -- identity - // -#define EXPVAL(type,original_value) ((type)(original_value)) -#define COMPARE(type,retval,original_value) \ - (((type)(retval)) == EXPVAL(type,original_value)) - - PERFORM_TEST (char, Char, count + 26, count - 5); - PERFORM_TEST (wchar, WChar, count, count + 25); -#undef COMPARE -#undef EXPVAL - - // - // Object_ptr -- identity (special comparision) - // -#define EXPVAL(type,original_value) ((type)(original_value)) -#define COMPARE(type,retval,original_value) \ - (compare_objrefs (retval, original_value) == CORBA_B_TRUE) -#undef RELEASE -#define RELEASE(obj) \ - { CORBA_release (obj); } - - PERFORM_TEST (Object, Object_ptr, target, CORBA_Object::_nil ()); -#undef COMPARE -#undef EXPVAL - - // - // TypeCode_ptr -- identity (special comparision), and verifies - // that most of the built-in typecode constants exist. - // - // XXX should try this on all standard and system exceptions! - // - // XXX this currently tests only marshaling/unmarshaling of - // "no parameter" TypeCodes ... complex ones (objref, struct, - // union, enum, sequence, array, alias, exception) are _NOT_ - // currently attempted. - // - // XXX for the simple typecodes (string, wstring), the single - // "bound" parameter isn't exercised/verified as it should be. - // -#define EXPVAL(type,original_value) ((type)(original_value)) -#define COMPARE(type,retval,original) \ - (((retval) == (original)) || \ - ((retval)->_kind == (original)->_kind)) - -#undef RELEASE -#define RELEASE(tc) \ - { CORBA_release (tc); } - -#undef BAD_COMPARE_VALUES -#define BAD_COMPARE_VALUES(type,v1,v2,v3,value1,value2) // NOP - - { - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Null, _tc_CORBA_Void); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Short, _tc_CORBA_UShort); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Long, _tc_CORBA_ULong); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_LongLong, _tc_CORBA_ULongLong); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Float, _tc_CORBA_Double); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Boolean, _tc_CORBA_Octet); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Any, _tc_CORBA_TypeCode); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_LongDouble, _tc_CORBA_Principal); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Char, _tc_CORBA_String); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_WChar, _tc_CORBA_WString); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_LongDouble, _tc_CORBA_Octet); - - // - // Try all of the standard exception typecodes. - // - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_UNKNOWN, _tc_CORBA_BAD_PARAM); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_NO_MEMORY, _tc_CORBA_IMP_LIMIT); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_COMM_FAILURE, _tc_CORBA_INV_OBJREF); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_OBJECT_NOT_EXIST, _tc_CORBA_NO_PERMISSION); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_INTERNAL, _tc_CORBA_MARSHAL); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_INITIALIZE, _tc_CORBA_NO_IMPLEMENT); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_BAD_TYPECODE, _tc_CORBA_BAD_OPERATION); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_NO_RESOURCES, _tc_CORBA_NO_RESPONSE); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_PERSIST_STORE, _tc_CORBA_BAD_INV_ORDER); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_TRANSIENT, _tc_CORBA_FREE_MEM); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_INV_IDENT, _tc_CORBA_INV_FLAG); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_INTF_REPOS, _tc_CORBA_BAD_CONTEXT); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_OBJ_ADAPTER, _tc_CORBA_DATA_CONVERSION); - - // - // All the built-in "user defined" system exceptions. - // - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_BadKind, _tc_CORBA_Bounds); - } -#undef COMPARE -#undef RELEASE - - // - // string (unbounded)-- identity (special comparision) - // -#define COMPARE(type,retval,original_value) \ - (strcmp ((char *)(retval), (char*)(original_value)) == 0) -#undef RELEASE -#define RELEASE(obj) CORBA_string_free(obj) - static const CORBA_Char str1 [] = "small"; - static const CORBA_Char str2 [] = - "relatively long string, constructed" - " with the aid of C++ implicit string" - " catenation, which simplifies much stuff"; - PERFORM_TEST (string, String, str1, str2); -#undef COMPARE -#undef RELEASE - - - // XXX any, principal, wstring ... output _is_ input - - - // - // Three test cases involve throwing user-defined exceptions. - // - { - CORBA_Exception *xp; - - // - // Case one: with parameter <= zero, must throw - // an "x1" exception whose "case_num" is that parameter - // - test_count++; - - test1_test_throw (target, -5, env); - if (env.exception () != 0) { - xp = env.exception (); - - if (strcmp ((char *)xp->id (), - (char *) _tc_test1_x1->id (env2)) != 0) - { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 1, " - "wrong exception thrown (id = '%s')\n", - xp->id ()); - } - else - { - test1_x1 *xp2 = (test1_x1 *) xp; - - if (xp2->case_num != -5) - { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 1, " - "wrong value (case_num = '%ld')\n", - xp2->case_num); - } - - // else, right exception was thrown - } - } - else - { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 1, " - "no exception thrown !!\n"); - } - - - // - // Case two: with positive odd parameter, must throw - // an "x2" exception whose obj is null, and whose case_num - // is that parameter - // - test_count++; - - test1_test_throw (target, 101, env); - if (env.exception () != 0) - { - xp = env.exception (); - - if (strcmp ((char *)xp->id (), - (char *) _tc_test1_x2->id (env2)) != 0) - { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 2, " - "wrong exception thrown (id = '%s')\n", - xp->id ()); - } - else - { - test1_x2 *xp2 = (test1_x2 *) xp; - - if (xp2->case_num != 101) - { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 2, " - "wrong value (case_num = '%ld')\n", - xp2->case_num); - } - - if (!CORBA_is_nil (xp2->obj)) - { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 2, " - "non-null objref thrown\n"); - } - - // else, right exception was thrown - } - } - else - { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 2, " - "no exception thrown !!\n"); - } - - -#if 0 - // 18-sept-95: commented this out. Work remains to be done in - // this area: (a) ServerRequest::target operation unimplemented, - // so for the servers of current interest this test is no help; - // (b) probable pointer leak in exceptions holding data. - - // - // Case three: with positive even parameter, must throw - // an "x2" exception whose obj is the target, and whose - // case_num is that parameter - // - test_count++; - - test1_test_throw (target, 42, env); - if (env.exception () != 0) - { - xp = env.exception (); - - if (strcmp ((char *)xp->id (), - (char *) _tc_test1_x2->id (env2)) != 0) - { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 3, " - "wrong exception thrown (id = '%s')\n", - xp->id ()); - } - else - { - test1_x2 *xp2 = (test1_x2 *) xp; - - if (xp2->case_num != 42) { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 3, " - "wrong value (case_num = '%ld')\n", - xp2->case_num); - } - - CORBA_Boolean status; - - status = target->_is_equivalent (xp2->obj, env); - - if (env.exception () != 0) - { - error_count++; - print_exception (env.exception (), - "test_throw/3 call to is_equivalent"); - } - else if (status != CORBA_B_TRUE) - { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 3, " - "non-equivalent objref thrown\n"); - } - - // else, right exception was thrown - } - } - else - { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 3, " - "no exception thrown !!\n"); - } - - env.clear (); -#endif // 0 - - } - - // - // test_illegal -- generate a BAD_OPERATION system exception - // from the remote process - // - test_count++; - test_illegal (target, env); - if (env.exception () == 0 - || ACE_OS::strcmp ((char *) env.exception()->id(), - (char *) _tc_CORBA_BAD_OPERATION->id (env2)) != 0) - { - ACE_OS::fprintf (stderr, "couldn't generate BAD_OPERATION exception\n"); - error_count++; - } - } -} - -int -main (int argc, char *argv[]) -{ - CORBA_ORB_ptr orb_ptr; - CORBA_Environment env; - CORBA_Object_ptr objref = CORBA_Object::_nil(); - unsigned loop_count = 1; - unsigned tests = 0, errors = 0; - int exit_later = 0; - - orb_ptr = CORBA_ORB_init (argc, argv, "internet", env); - - if (env.exception () != 0) - { - dexc (env, "ORB initialisation"); - return 1; - } - - // - // Parse and verify parameters. - // - ACE_Get_Opt get_opt (argc, argv, "dln:O:x"); - int c; - - while ((c = get_opt ()) != -1) - switch (c) - { - case 'd': // debug flag - TAO_debug_level++; - continue; - - case 'l': // skip "long double" test - skip_longdouble++; - continue; - - case 'n': // loop count - loop_count = (unsigned) ACE_OS::atoi (get_opt.optarg); - continue; - - case 'O': // stringified objref - { - objref = orb_ptr->string_to_object ( - (CORBA_String)get_opt.optarg, env); - if (env.exception () != 0) - { - dexc (env, "string2object"); - return 1; - } - } - continue; - - case 'x': - exit_later++; - continue; - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-l]" - " [-n loopcount]" - " [-O objref]" - " [-x]" - "\n", argv [0] - ); - return 1; - } - - if (CORBA_is_nil (objref) == CORBA_B_TRUE) { - ACE_OS::fprintf (stderr, "%s: must identify non-null target objref\n", - argv [0]); - return 1; - } - - - do_tests (objref, loop_count, tests, errors); - - char *progname = ACE_OS::strrchr (argv [0], '/'); - - if (progname != 0) - progname += 1; - else - progname = argv [0]; - - ACE_OS::fprintf (stderr, "%s: %d loops, %d tests (%d errors)\n", - progname, loop_count, tests, errors); - - if (exit_later) - { - test1_please_exit (objref, env); - if (env.exception () != 0) - print_exception (env.exception (), "test1_please_exit"); - } - - CORBA_release (objref); - - return errors != 0; -} - -#if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION) -template CORBA_Octet cube(CORBA_Octet); -template CORBA_Short cube(CORBA_Short); -template CORBA_UShort cube(CORBA_UShort); -template CORBA_Long cube(CORBA_Long); -template CORBA_ULong cube(CORBA_ULong); -#if !defined (NONNATIVE_LONGLONG) - // don't try this on platforms that don't support - // math on longlongs ... -template CORBA_LongLong cube(CORBA_LongLong); -template CORBA_ULongLong cube(CORBA_ULongLong); -#endif // !NONNATIVE_LONGLONG -template CORBA_Float cube(CORBA_Float); -template CORBA_Double cube(CORBA_Double); -#if !defined (NONNATIVE_LONGDOUBLE) - // don't try this on platforms that don't support - // math on long doubles ... -template CORBA_LongDouble cube(CORBA_LongDouble); -#endif // !NONNATIVE_LONGDOUBLE -#endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */ diff --git a/TAO/IIOP/tests/Cubit/TAO/test1_svr.cpp b/TAO/IIOP/tests/Cubit/TAO/test1_svr.cpp deleted file mode 100644 index 8ea34d15fc1..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/test1_svr.cpp +++ /dev/null @@ -1,693 +0,0 @@ -// $Id$ - -// @(#)test1_svr.cpp 1.7 95/09/25 -// Copyright 1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: simple IIOP server for "test1.idl" interface. -// -// Starts up, builds an objref, prints its string, listens for -// messages, responds to them. -// - -#include -#include -#include - -#if unix -# include // for getopt on some systems - -#else // windows - -#endif - -#include "test1.h" -#include -#include - -#include - - - -#if !defined (_WIN32) -extern char *optarg; // missing on some platforms -#endif - -// -// Skeleton code ... just a macro for a bunch of DSI-based method -// code, in lieu of having an IDL compmiler generate static skeletons. -// Static skeletons would be more efficient; most mallocation could go -// away. -// -// Use by: defining OPERATION macro, call DEFINE_SKEL3 as needed, then -// undef OPERATION. -// -// NOTE: "v1_copy" below is needed to work around a bug with the -// HP9000 G++ 2.6.3 compiler, with "LongLong". -// -// XXX this could probably be a template ... or could even be merged -// directly into the Dynamic Implementation Routine below. -// -// XXX we must currently use IN_COPY_VALUE since the memory consumed -// by the parameters must be deallocated by the ORB. When we get an -// updated version of DSI which provides "send it now" semantics, -// these should preallocate the values and not use IN_COPY_VALUE. A -// net decrease in malloc overhead can be had that way. (NVList -// should also get a public constructor, and a way to provide the -// buffer.) -// -#define DEFINE_SKEL3(name,truetype,truetypename) \ - static void \ - _test1_test_ ## name ( \ - CORBA_ServerRequest &req, \ - CORBA_Object_ptr obj, \ - CORBA_Environment &env \ - ) \ - { \ - CORBA_NVList_ptr nvlist; \ - CORBA_ ## truetype scratch = 0; \ - CORBA_Any temp_value (_tc_CORBA_ ## truetypename, \ - &scratch, CORBA_B_FALSE); \ - \ - req.orb ()->create_list (3, nvlist); \ - (void) nvlist->add_value (0, temp_value, \ - CORBA_IN_COPY_VALUE|CORBA_ARG_IN, env); \ - (void) nvlist->add_value (0, temp_value, \ - CORBA_IN_COPY_VALUE|CORBA_ARG_OUT, env); \ - (void) nvlist->add_value (0, temp_value, \ - CORBA_IN_COPY_VALUE|CORBA_ARG_INOUT, env); \ - \ - req.params (nvlist, env); \ - if (env.exception () != 0) { \ - dexc (env, "test1_test_" # name "skeleton, req.params"); \ - return; \ - } \ - \ - CORBA_ ## truetype *v1, *v2, *retval; \ - \ - v1 = (CORBA_ ## truetype *) nvlist->item (0)->value ()->value (); \ - v2 = new CORBA_ ## truetype; \ - *v2 = (CORBA_ ## truetype) OPERATION (*v1); \ - retval = new CORBA_ ## truetype; \ - *retval = (CORBA_ ## truetype) OPERATION (*v1); \ - \ - CORBA_Any_ptr any_val; \ - \ - any_val = nvlist->item (1)->value (); \ - any_val->replace (any_val->type (), v2, CORBA_B_TRUE, env); \ - if (env.exception () != 0) { \ - dexc (env, "test1_test_" # name "skeleton, val2 replace"); \ - return; \ - } \ - \ - v1 = (CORBA_ ## truetype *) nvlist->item (2)->value ()->value (); \ - CORBA_ ## truetype v1copy = *v1; \ - *v1 = (CORBA_ ## truetype) OPERATION (v1copy); \ - \ - any_val = new CORBA_Any (_tc_CORBA_ ## truetypename, \ - retval, CORBA_B_TRUE); \ - req.result (any_val, env); \ - if (env.exception () != 0) { \ - dexc (env, "test1_test_" # name "skeleton, result"); \ - return; \ - } \ - } \ - extern TAO_Call_Data test1_ ## name ## _calldata; - - -extern const TAO_Call_Data test1_void_calldata; - -static void -_test1_test_void (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - - req.orb ()->create_list (0, nvlist); - req.params (nvlist, env); - - if (env.exception () != 0) - dexc (env, "test_throw, get params"); -} - - -// -// Dynamic Skeleton methods for numeric types ... these all just -// cube their parameters in various permutations -// -template -Type cube (Type arg) -{ - Type temp = arg; - - temp = temp * arg; - temp = temp * arg; - return temp; -} - -#define OPERATION(n) cube(n) - -DEFINE_SKEL3 (octet, Octet, Octet) - -DEFINE_SKEL3 (short, Short, Short) -DEFINE_SKEL3 (ushort, UShort, UShort) - -DEFINE_SKEL3 (long, Long, Long) -DEFINE_SKEL3 (ulong, ULong, ULong) - -#if !defined (NONNATIVE_LONGLONG) - // don't try this on platforms that don't support - // math on longlongs ... -DEFINE_SKEL3 (longlong, LongLong, LongLong) -DEFINE_SKEL3 (ulonglong, ULongLong, ULongLong) -#endif // !NONNATIVE_LONGLONG - -DEFINE_SKEL3 (float, Float, Float) -DEFINE_SKEL3 (double, Double, Double) - -#if !defined (NONNATIVE_LONGDOUBLE) - // don't try this on platforms that don't support - // math on long doubles ... -DEFINE_SKEL3 (longdouble, LongDouble, LongDouble) -#endif // !NONNATIVE_LONGDOUBLE - -#undef OPERATION - -// -// Dynamic Skeleton methods for Boolean type ... just negates its -// parameters -// -#define OPERATION(x) (!(x)) -DEFINE_SKEL3 (boolean, Boolean, Boolean) -#undef OPERATION - -// -// For character types, output is same as input, no magic needed. -// -#define OPERATION(x) (x) -DEFINE_SKEL3 (char, Char, Char) -DEFINE_SKEL3 (wchar, WChar, WChar) -#undef OPERATION - -// -// For objref, typecode, output is same as input but duplication -// is needed -// -#define OPERATION(x) ((x) ? (x)->AddRef() : 0, x) -DEFINE_SKEL3 (Object, Object_ptr, Object) -DEFINE_SKEL3 (TypeCode, TypeCode_ptr, TypeCode) -#undef OPERATION - -// -// For string, output is copy of input -// -#define OPERATION(x) (CORBA_string_copy(x)) -DEFINE_SKEL3 (string, String, String) -#undef OPERATION - -// -// For wstring, output is copy of input -// -#define OPERATION(x) (CORBA_wstring_copy(x)) -DEFINE_SKEL3 (wstring, WString, WString) -#undef OPERATION - -// -// XXX IMPLEMENT THE REST OF THE DATA TYPES -// -// any, principal -- out is in -// - - -// -// All cases, "case_num" in the exception is the same as the 'in' param -// * negative or zero, throws x1 -// * positive even cases, throws x2 with obj = null objref -// * positive odd cases, throws x2 with obj = target objref -// -// exception x1 { long case_num; }; -// exception x2 { Object obj; long case_num; }; -// -// void test_throw (in long case_num) raises (x1, x2); -// - -extern const TAO_Call_Data test1_test_throw_calldata; - -static void -_test1_test_throw (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Long); - CORBA_Long value; - - req.orb ()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - - req.params (nvlist, env); - if (env.exception () != 0) - { - dexc (env, "test_throw, get params"); - return; - } - - value = *(CORBA_Long *)nv->value ()->value (); - if (env.exception () != 0) - { - dexc (env, "test_throw, param value"); - return; - } - - CORBA_Any_ptr any; - - if (value <= 0) - { - test1_x1 *x; - - x = new test1_x1 (value); - any = new CORBA_Any (_tc_test1_x1, x, CORBA_B_TRUE); - - } - else if (value & 0x01) - { - test1_x2 *x; - - x = new test1_x2 (CORBA_Object::_nil (), value); - any = new CORBA_Any (_tc_test1_x2, x, CORBA_B_TRUE); - - } - else - { -#if 0 - test1_x2 *x; - - x = new test1_x2 (req.oa()->target (), value); - any = new CORBA_Any (_tc_test1_x2, x, CORBA_B_TRUE); -#else - // - // XXX right now, we don't have a target() operation on the - // BOA ... needs to be added. Verify the client side memory - // leak of pointers embedded in user exceptions is fixed, too. - // - env.exception (new CORBA_IMP_LIMIT (COMPLETED_NO)); - return; -#endif - } - - req.exception (USER_EXCEPTION, any, env); -} - - -// -// This table is used to associate operation names with the Dynamic -// Skeleton method ... someday it could return static skeletons. -// -#define DECL_SKEL(name) \ - { & test1_ ## name ## _calldata, _test1_test_ ## name } - -static const TAO_Skel_Entry test1_operations [] = { - DECL_SKEL (void), - - DECL_SKEL (octet), - DECL_SKEL (char), - - DECL_SKEL (wchar), - - DECL_SKEL (short), - DECL_SKEL (ushort), - DECL_SKEL (long), - DECL_SKEL (ulong), - -#if !defined (NONNATIVE_LONGLONG) - // don't try this on platforms that don't support - // math on longlongs ... - DECL_SKEL (longlong), - DECL_SKEL (ulonglong), -#endif - - DECL_SKEL (float), - DECL_SKEL (double), - -#if !defined (NONNATIVE_LONGDOUBLE) - // don't try this on platforms that don't support - // math on long doubles ... - DECL_SKEL (longdouble), -#endif // !NONNATIVE_LONGDOUBLE - - DECL_SKEL (boolean), - - DECL_SKEL (Object), - DECL_SKEL (TypeCode), - - DECL_SKEL (string), - DECL_SKEL (wstring), - - { & test1_test_throw_calldata, _test1_test_throw }, - - { 0, 0 } -}; - - -// -// Dispatch to method code ... -// -// Knows how to interpret "context" to get target objref, and where to -// get second level skeletons for that target. Both of those operations -// will generally be abstracted (into library and stub code) so the main -// body of this routine would be invisible to most applications. -// -// However, there are applications that need to do this stuff themselves -// (like bridging between environments, e.g. different ORBs, languages, or -// other object systems). Everything needed to work without using an IDL -// compiler is a public, supported API. -// -static void -level1_skeleton (CORBA_OctetSeq &key, - CORBA_ServerRequest &req, - void *context, - CORBA_Environment &env) -{ - // - // Verify that the target object and "this" object have the - // same key. Normally, this would be used to figure out - // which object was the target, and hence which operations - // vector to dispatch the request. - // - CORBA_OctetSeq *obj_key; - - obj_key = (CORBA_OctetSeq *) context; - if (obj_key->length != key.length - || ACE_OS::memcmp (obj_key->buffer, key.buffer, - obj_key->length) != 0) - { - env.exception (new CORBA_OBJECT_NOT_EXIST (COMPLETED_NO)); -#ifdef DEBUG - if (TAO_debug_level) - dmsg_opaque ("request to nonexistent object, key = ", - key.buffer, key.length); -#endif - return; - } - - // - // Find a "level 2 skeleton" for this operation, then - // call it with the right per-object state. - // - const TAO_Skel_Entry *entry; - CORBA_String opname; - - opname = req.op_name (); - for (entry = &test1_operations [0]; entry->op_descriptor; entry++) - { - if (strcmp ((char *)opname, entry->op_descriptor->opname) == 0) - { - // We pass a bogus object because this version of the cubit example is - // so tightly coupled that it doesn't use it. Future modifications will, - // hopefully! - CORBA_Object_ptr bogus_object = 0; - entry->impl_skeleton (req, bogus_object, env); - return; - } - } - - // - // XXX True top-level skeleton code would also have to understand - // the built-in operations: - // - // * _is_a (for narrowing tests) ... can be derived by searching an - // appropriately structured graph of level2 skeletons. - // - // * _non_existent ... if the level1 skeleton consults a module - // which understands object lifespans, this should be simple. - // - // * _get_interface ... could either (a) fail; (b) return the ref - // from some IFR; or most interestingly (c) return a ref to some - // code in this process that can answer all IFR queries from the - // skeleton data structures. - // - // * _get_implementation ... return some administrative hook to - // the object implementation: - // - // No other legal operations start with a character that's not an - // ASCII alphanumeric, for what it's worth. - // - // The skeleton might want to use data in the object key to find - // the objref's type; if it's integrated with object creation, and - // an per-process implementation repository, this should be easy. - // - - // - // bypass level 2 skeletons for this one ... - // - if (strcmp ((char *) opname, "please_exit") == 0) - { - dmsg ("I've been asked to shut down..."); - req.oa ()->please_shutdown (env); - dexc (env, "please_exit, please_shutdown"); - return; - } - - // - // No match. Operation not implemented; say so. - // - dmsg1 ("unknown operation, %s", opname); - env.exception (new CORBA_BAD_OPERATION (COMPLETED_NO)); -} - - -// -// Create and print the objref, listen for calls on it until done. -// -extern void -print_exception (const CORBA_Exception *, const char *, FILE *f=stdout); - -int -OA_listen (CORBA_ORB_ptr orb_ptr, - CORBA_BOA_ptr oa_ptr, - CORBA_String key, - int idle) -{ - // - // Create the object we'll be implementing. - // - CORBA_OctetSeq obj_key; - CORBA_Object_ptr obj; - CORBA_Environment env; - - obj_key.buffer = (CORBA_Octet *) key; - obj_key.length = obj_key.maximum = ACE_OS::strlen (key); - - obj = oa_ptr->create (obj_key, (CORBA_String) "", env); - if (env.exception () != 0) - { - print_exception (env.exception (), "BOA::create"); - return 1; - } - - // - // Stringify the objref we'll be implementing, and - // print it to stdout. Someone will take that string - // and give it to some client. - // - CORBA_String str; - - str = orb_ptr->object_to_string (obj, env); - if (env.exception () != 0) - { - print_exception (env.exception (), "object2string"); - return 1; - } - ACE_OS::puts ((char *)str); - ACE_OS::fflush (stdout); - dmsg1 ("listening as object '%s'", str); - - // - // Clean up -- "key" is sufficient to dispatch all requests. - // - CORBA_release (obj); - CORBA_string_free (str); - env.clear (); - - // - // Handle requests for this object until we're killed, or one of - // the methods makes us exit. - // - // NOTE: apart from registering the top level skeleton, the rest - // of this loop is exactly what BOA::run() does. It's here to - // show there's no magic. - // -#if 0 - oa_ptr->register_dir (level1_skeleton, &obj_key, env); -#else - oa_ptr->register_dir (oa_ptr->dispatch, &obj_key, env); -#endif - if (env.exception () != 0) - { - print_exception (env.exception (), "register_dir"); - return 1; - } - - for (;;) { - if (idle == -1) - oa_ptr->get_request (CORBA_B_FALSE, 0, env); - else - { - timeval tv; - - tv.tv_sec = idle; - tv.tv_usec = 0; - oa_ptr->get_request (CORBA_B_FALSE, &tv, env); - } - - CORBA_Exception_ptr xp; - - if ((xp = env.exception ()) != 0) - { - CORBA_Environment env2; // XXX - char *id; - - id = env.exception ()->id (); - - // - // We get BAD_INV_ORDER if we call get_request() after - // shutdown was initiated. Simpler to rely on that - // than to arrange any handshaking in this simple app. - // - if (strcmp (id, _tc_CORBA_BAD_INV_ORDER->id (env2)) == 0) - { - break; - - // - // Other exceptions are errors. - // - } - else - { - print_exception (env.exception (), "BOA::get_request"); - return 1; - } - } - env.clear (); - } - - // - // Shut down the OA -- recycles all underlying resources (e.g. file - // descriptors, etc). - // - // XXX shutdown is not quite the same as release, unless we want mem - // leaks to cause some rude failure modes. BOA just hasn't been - // updated yet to have any handshake about this though. - // - oa_ptr->Release (); - return 0; -} - - -// -// Standard command line parsing utilities used. -// -int -main (int argc, char *argv[]) -{ - CORBA_Environment env; - CORBA_ORB_ptr orb_ptr; - CORBA_BOA_ptr oa_ptr; - CORBA_String key = (CORBA_String) "elvis"; - char *oa_name = 0; - char *orb_name = "internet"; - int idle = -1; - - // - // Parse the command line, get options - // - ACE_Get_Opt get_opt (argc, argv, "di:ln:O:x"); - int c; - - while ((c = get_opt ()) != -1) - switch (c) - { - case 'd': // more debug noise - TAO_debug_level++; - continue; - - case 'i': // idle seconds b4 exit - idle = ACE_OS::atoi (get_opt.optarg); - continue; - - case 'k': // key (str) - key = (CORBA_String) get_opt.optarg; - continue; - - case 'o': // orb name - orb_name = get_opt.optarg; - continue; - - case 'p': // portnum - oa_name = get_opt.optarg; - continue; - - // XXX set debug filters ... - - // - // XXX ignore OMG-specified options ... hope nobody ever tries - // to use that "-ORB* param" and "-OA* param" syntax, it flies - // in the face of standard command parsing algorithms which - // require single-character option specifiers. - // - - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-i idle_seconds]" - " [-k object_key=elvis]" - " [-o orbname=internet]" - " [-p oa_name]" - "\n", argv [0] - ); - return 1; - } - - orb_ptr = CORBA_ORB_init (argc, argv, orb_name, env); - if (env.exception () != 0) { - print_exception (env.exception (), "ORB init"); - return 1; - } - - // - // The BOA may or may not actually be named ... - // - oa_ptr = CORBA_BOA::get_named_boa (orb_ptr, oa_name, env); - if (env.exception () != 0) - { - print_exception (env.exception (), "OA init"); - return 1; - } - - return OA_listen (orb_ptr, oa_ptr, key, idle); -} - -#if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION) -template CORBA_Octet cube(CORBA_Octet); -template CORBA_Short cube(CORBA_Short); -template CORBA_UShort cube(CORBA_UShort); -template CORBA_Long cube(CORBA_Long); -template CORBA_ULong cube(CORBA_ULong); -#if !defined (NONNATIVE_LONGLONG) - // don't try this on platforms that don't support - // math on longlongs ... -template CORBA_LongLong cube(CORBA_LongLong); -template CORBA_ULongLong cube(CORBA_ULongLong); -#endif // !NONNATIVE_LONGLONG -template CORBA_Float cube(CORBA_Float); -template CORBA_Double cube(CORBA_Double); -#if !defined (NONNATIVE_LONGDOUBLE) - // don't try this on platforms that don't support - // math on long doubles ... -template CORBA_LongDouble cube(CORBA_LongDouble); -#endif // !NONNATIVE_LONGDOUBLE -#endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */ diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Makefile b/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Makefile deleted file mode 100644 index 9fdad280ffc..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -include stdmk - -EXE = server - -all: $(EXE) - -clean: - -rm -f core *.o cubitC.* cubitS.* $(EXE) - -rm -rf Templates.DB - -cubitS.cpp: cubit.idl - $(ORBCC) cubit.idl - -cubitC.cpp: cubit.idl - $(ORBCC) cubit.idl - -server: cubitS.o cubitC.o server.o Profile_Timer.o cubit_impl.o - $(CC) -o server cubitS.o cubitC.o cubit_impl.o server.o Profile_Timer.o \ - $(LIBPATH) $(LIBORB) $(STDCC_LIBS) diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.cpp b/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.cpp deleted file mode 100644 index d20d988f48b..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.cpp +++ /dev/null @@ -1,129 +0,0 @@ -// $Id$ - -#include "Profile_Timer.h" - -/* Initialize interval timer. */ - -Profile_Timer::Profile_Timer (void) -{ - char buf[20]; - ::sprintf(buf, "/proc/%d", ::getpid ()); - - ::memset (&this->end_usage_, 0, sizeof this->end_usage_); - ::memset (&this->begin_usage_, 0, sizeof this->begin_usage_); - ::memset (&this->last_usage_, 0, sizeof this->last_usage_); - if ((this->proc_fd_ = ::open (buf, O_RDONLY, 0)) == -1) - ::perror (buf); -} - -/* Terminate the interval timer. */ -Profile_Timer::~Profile_Timer (void) -{ - if (::close (this->proc_fd_) == -1) - ::perror ("Profile_Timer::~Profile_Timer"); -} - -/* Return the resource utilization. */ - -void -Profile_Timer::get_rusage (prusage_t &rusage) -{ - rusage = this->end_usage_; -} - -/* Compute the amount of resource utilization since the start time. */ - -void -Profile_Timer::elapsed_rusage (prusage_t &rusage) -{ - rusage.pr_lwpid = this->end_usage_.pr_lwpid - this->last_usage_.pr_lwpid; - rusage.pr_count = this->end_usage_.pr_count - this->last_usage_.pr_count; - rusage.pr_minf = this->end_usage_.pr_minf - this->last_usage_.pr_minf; - rusage.pr_majf = this->end_usage_.pr_majf - this->last_usage_.pr_majf; - rusage.pr_inblk = this->end_usage_.pr_inblk - this->last_usage_.pr_inblk; - rusage.pr_oublk = this->end_usage_.pr_oublk - this->last_usage_.pr_oublk; - rusage.pr_msnd = this->end_usage_.pr_msnd - this->last_usage_.pr_msnd; - rusage.pr_mrcv = this->end_usage_.pr_mrcv - this->last_usage_.pr_mrcv; - rusage.pr_sigs = this->end_usage_.pr_sigs - this->last_usage_.pr_sigs; - this->subtract (rusage.pr_wtime, this->end_usage_.pr_wtime, this->last_usage_.pr_wtime); - this->subtract (rusage.pr_ltime, this->end_usage_.pr_ltime, this->last_usage_.pr_ltime); - this->subtract (rusage.pr_slptime, this->end_usage_.pr_slptime, this->last_usage_.pr_slptime); - rusage.pr_vctx = this->end_usage_.pr_vctx - this->last_usage_.pr_vctx; - rusage.pr_ictx = this->end_usage_.pr_ictx - this->last_usage_.pr_ictx; - rusage.pr_sysc = this->end_usage_.pr_sysc - this->last_usage_.pr_sysc; - rusage.pr_ioch = this->end_usage_.pr_ioch - this->last_usage_.pr_ioch; -} - -/* Compute the elapsed time. */ - -void -Profile_Timer::compute_times (Elapsed_Time &et, prusage_t &end, prusage_t &begin) -{ - timespec_t td; - - this->subtract (td, end.pr_tstamp, begin.pr_tstamp); - et.real_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); - this->subtract (td, end.pr_utime, begin.pr_utime); - et.user_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); - this->subtract (td, end.pr_stime, begin.pr_stime); - et.system_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); -} - -/* Compute the amount of time that has elapsed between start and stop. */ - -int -Profile_Timer::elapsed_time (Elapsed_Time &et) -{ - this->compute_times (et, this->end_usage_, this->begin_usage_); - return 0; -} - -/* Determine the difference between T1 and T2. */ - -void -Profile_Timer::subtract (timespec_t &tdiff, timespec_t &t1, timespec_t &t0) -{ - tdiff.tv_sec = t1.tv_sec - t0.tv_sec; - tdiff.tv_nsec = t1.tv_nsec - t0.tv_nsec; - - /* Normalize the time. */ - - while (tdiff.tv_nsec < 0) - { - tdiff.tv_sec--; - tdiff.tv_nsec += (1000 * 1000 * 1000); - } -} - -#if defined (DEBUG) -#include -extern "C" int gettimeofday (timeval *tp); - -const int DEFAULT_ITERATIONS = 1000000; - -int -main (int argc, char *argv[]) -{ - Profile_Timer timer; - int iterations = argc > 1 ? atoi (argv[1]) : DEFAULT_ITERATIONS; - timeval tv; - - timer.start (); - - for (int i = 0; i < iterations; i++) - gettimeofday (&tv); - - timer.stop (); - - Profile_Timer::Elapsed_Time et; - - timer.elapsed_time (et); - - printf ("iterations = %d\n", iterations); - printf ("real time = %f secs, user time = %f secs, system time = %f secs\n", - et.real_time, et.user_time, et.system_time); - - printf ("time per call = %f usecs\n", (et.real_time / double (iterations)) * 1000000); - return 0; -} -#endif /* DEBUG */ diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.h b/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.h deleted file mode 100644 index 4198fba9a10..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.h +++ /dev/null @@ -1,62 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -/* An interval timer class using C++. */ - -#if !defined (ACE_PROFILE_TIMER_H) -#define ACE_PROFILE_TIMER_H - -#include -#include -#include -#include -#include -#include - -class Profile_Timer -{ -public: - struct Elapsed_Time - { - double real_time; - double user_time; - double system_time; - }; - - Profile_Timer (void); - ~Profile_Timer (void); - int start (void); - int stop (void); - int elapsed_time (Elapsed_Time &et); - void elapsed_rusage (prusage_t &rusage); - void get_rusage (prusage_t &rusage); - -private: - void subtract (timespec_t &tdiff, timespec_t &t0, timespec_t &t1); - void compute_times (Elapsed_Time &et, prusage_t &, prusage_t &); - - prusage_t begin_usage_; - prusage_t end_usage_; - prusage_t last_usage_; - int proc_fd_; -}; - -/* Start timing */ - -inline int -Profile_Timer::start (void) -{ - return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->begin_usage_); -} - -/* Stop timing */ - -inline int -Profile_Timer::stop (void) -{ - this->last_usage_ = this->end_usage_; - return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->end_usage_); -} - -#endif /* ACE_PROFILE_TIMER_H */ - diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit.idl b/TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit.idl deleted file mode 100644 index 7eedbe786ab..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. -// -//#pragma prefix "Eng.SUN.COM" -//#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit_impl.cpp b/TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit_impl.cpp deleted file mode 100644 index c4313a1fccb..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit_impl.cpp +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -#include "cubit_impl.h" - -CORBA::Octet Cubit_Impl:: cube_octet (CORBA::Octet o) { - return (CORBA::Octet) (o * o * o); -} - -CORBA::Short Cubit_Impl:: cube_short (CORBA::Short s) { - return (CORBA::Short) (s * s * s); -} - -CORBA::Long Cubit_Impl:: cube_long (CORBA::Long l) { - return (CORBA::Long) (l * l * l); -} - -Cubit::Many Cubit_Impl:: cube_struct (const Cubit::Many& values) { - Cubit::Many out_values; - out_values.o = values.o * values.o * values.o; - out_values.s = values.s * values.s * values.s; - out_values.l = values.l * values.l * values.l; - return out_values; -} - -Cubit::oneof Cubit_Impl:: cube_union (const Cubit::oneof& values) { - Cubit::oneof out_values; - switch (values._d ()) { - case Cubit::e_0th: - out_values.o (values.o () * values.o () * values.o ()); - break; - case Cubit::e_1st: - out_values.s (values.s () * values.s () * values.s ()); - break; - case Cubit::e_2nd: - out_values.l (values.l () * values.l () * values.l ()); - break; - case Cubit::e_3rd: - default: - out_values.cm ().o = values.cm ().o * values.cm ().o * values.cm ().o ; - out_values.cm ().s = values.cm ().s * values.cm ().s * values.cm ().s ; - out_values.cm ().l = values.cm ().l * values.cm ().l * values.cm ().l ; - break; - } - return out_values; -} - -void Cubit_Impl:: please_exit () - {} diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit_impl.h b/TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit_impl.h deleted file mode 100644 index f1f5e3fa3ea..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit_impl.h +++ /dev/null @@ -1,35 +0,0 @@ -// $Id$ - - -#ifndef cubit_ih -#define cubit_ih - -#include "cubitS.h" - - -#ifdef Cubit_USE_BOA -class Cubit_Impl : public virtual _sk_Cubit { -#else -class Cubit_Impl { -#endif /* Cubit_USE_BOA */ - -public: - -#ifdef Cubit_USE_BOA - Cubit_Impl (const char *obj_name = NULL) : - _sk_Cubit(obj_name) - {} -#else - Cubit_Impl (const char *obj_name = NULL) - {} -#endif /* Cubit_USE_BOA */ - - virtual CORBA::Octet cube_octet(CORBA::Octet o); - virtual CORBA::Short cube_short(CORBA::Short s); - virtual CORBA::Long cube_long(CORBA::Long l); - virtual Cubit::Many cube_struct(const Cubit::Many& values); - virtual Cubit::oneof cube_union(const Cubit::oneof& values); - virtual void please_exit(); -}; - -#endif diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/server.cpp b/TAO/IIOP/tests/Cubit/VisiBroker/base_server/server.cpp deleted file mode 100644 index 99c65c6718e..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/server.cpp +++ /dev/null @@ -1,51 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : tpr_server.cpp -// DESCRIPTION: -// -// Server mainline -// -//**************************************************************************** -#include "cubit_impl.h" // server header file - -int -main (int argc, char** argv) -{ - - CORBA::ORB_var orb = CORBA::ORB_init(argc, argv); - CORBA::BOA_var boa = orb->BOA_init(argc, argv); - -#ifdef Cubit_USE_BOA - Cubit_Impl cb("Cubit"); - cout << "Using BOA approach" << endl; -#else - Cubit_Impl tied("Cubit"); - _tie_Cubit cb(tied, "Cubit"); - - cout << "Using TIE approach" << endl; -#endif /* Cubit_USE_BOA */ - - // - // Go get some work to do.... - // - try { - - boa->obj_is_ready(&cb); - - boa->impl_is_ready(); - - } catch (const CORBA::Exception &excep) { - cerr << "Server error: " << excep << endl; - return -1; - } catch (...) { - cerr << "Unknown exception" << endl; - return -1; - } - - cout << "Cubit server is exiting." << endl; - - - return 0; -} diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/stdmk b/TAO/IIOP/tests/Cubit/VisiBroker/base_server/stdmk deleted file mode 100644 index df4125a38d8..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/stdmk +++ /dev/null @@ -1,36 +0,0 @@ -CC = CC -DEBUG = - -ORBELINEDIR = /project/waltz/Orbeline2.0 - -ORBCC = $(ORBELINEDIR)/bin/orbeline -v C -m S -c cpp -h h - -CCINCLUDES = -I. -I$(ORBELINEDIR)/include -I$(STL_DIR) -I$(ACE_DIR) - -CCFLAGS = -g $(CCINCLUDES) $(DEBUG) -DCubit_USE_BOA - -LIBPATH = -L$(ORBELINEDIR)/lib -L$(ACE_DIR)/ace - -STDCC_LIBS = -lsocket -lnsl -ldl -mt - -LIBORB = -lorb - -LIBACE = -lACE - -.SUFFIXES: .C .o .h .hh .cc .cpp - -.C.o: - $(CC) $(CCFLAGS) -c -o $@ $< - -.cc.o: - $(CC) $(CCFLAGS) -c -o $@ $< -.cpp.o: - $(CC) $(CCFLAGS) -c -o $@ $< - -.C.cpp: - $(CC) -E $(CCFLAGS) $< > $@ - -.cc.cpp: - $(CC) -E $(CCFLAGS) $< > $@ - - diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/client/Makefile b/TAO/IIOP/tests/Cubit/VisiBroker/client/Makefile deleted file mode 100644 index d9c26fe56f0..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/client/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -include stdmk - -EXE = client - -all: $(EXE) - -clean: - -rm -f core *.o cubitC.* cubitS.* $(EXE) - -rm -rf Templates.DB - -cubitS.cpp: cubit.idl - $(ORBCC) cubit.idl - -cubitC.cpp: cubit.idl - $(ORBCC) cubit.idl - -client: cubitC.o Profile_Timer.o client.o - $(CC) -o client cubitC.o Profile_Timer.o client.o \ - $(LIBPATH) $(LIBORB) $(STDCC_LIBS) diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.cpp b/TAO/IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.cpp deleted file mode 100644 index d20d988f48b..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.cpp +++ /dev/null @@ -1,129 +0,0 @@ -// $Id$ - -#include "Profile_Timer.h" - -/* Initialize interval timer. */ - -Profile_Timer::Profile_Timer (void) -{ - char buf[20]; - ::sprintf(buf, "/proc/%d", ::getpid ()); - - ::memset (&this->end_usage_, 0, sizeof this->end_usage_); - ::memset (&this->begin_usage_, 0, sizeof this->begin_usage_); - ::memset (&this->last_usage_, 0, sizeof this->last_usage_); - if ((this->proc_fd_ = ::open (buf, O_RDONLY, 0)) == -1) - ::perror (buf); -} - -/* Terminate the interval timer. */ -Profile_Timer::~Profile_Timer (void) -{ - if (::close (this->proc_fd_) == -1) - ::perror ("Profile_Timer::~Profile_Timer"); -} - -/* Return the resource utilization. */ - -void -Profile_Timer::get_rusage (prusage_t &rusage) -{ - rusage = this->end_usage_; -} - -/* Compute the amount of resource utilization since the start time. */ - -void -Profile_Timer::elapsed_rusage (prusage_t &rusage) -{ - rusage.pr_lwpid = this->end_usage_.pr_lwpid - this->last_usage_.pr_lwpid; - rusage.pr_count = this->end_usage_.pr_count - this->last_usage_.pr_count; - rusage.pr_minf = this->end_usage_.pr_minf - this->last_usage_.pr_minf; - rusage.pr_majf = this->end_usage_.pr_majf - this->last_usage_.pr_majf; - rusage.pr_inblk = this->end_usage_.pr_inblk - this->last_usage_.pr_inblk; - rusage.pr_oublk = this->end_usage_.pr_oublk - this->last_usage_.pr_oublk; - rusage.pr_msnd = this->end_usage_.pr_msnd - this->last_usage_.pr_msnd; - rusage.pr_mrcv = this->end_usage_.pr_mrcv - this->last_usage_.pr_mrcv; - rusage.pr_sigs = this->end_usage_.pr_sigs - this->last_usage_.pr_sigs; - this->subtract (rusage.pr_wtime, this->end_usage_.pr_wtime, this->last_usage_.pr_wtime); - this->subtract (rusage.pr_ltime, this->end_usage_.pr_ltime, this->last_usage_.pr_ltime); - this->subtract (rusage.pr_slptime, this->end_usage_.pr_slptime, this->last_usage_.pr_slptime); - rusage.pr_vctx = this->end_usage_.pr_vctx - this->last_usage_.pr_vctx; - rusage.pr_ictx = this->end_usage_.pr_ictx - this->last_usage_.pr_ictx; - rusage.pr_sysc = this->end_usage_.pr_sysc - this->last_usage_.pr_sysc; - rusage.pr_ioch = this->end_usage_.pr_ioch - this->last_usage_.pr_ioch; -} - -/* Compute the elapsed time. */ - -void -Profile_Timer::compute_times (Elapsed_Time &et, prusage_t &end, prusage_t &begin) -{ - timespec_t td; - - this->subtract (td, end.pr_tstamp, begin.pr_tstamp); - et.real_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); - this->subtract (td, end.pr_utime, begin.pr_utime); - et.user_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); - this->subtract (td, end.pr_stime, begin.pr_stime); - et.system_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); -} - -/* Compute the amount of time that has elapsed between start and stop. */ - -int -Profile_Timer::elapsed_time (Elapsed_Time &et) -{ - this->compute_times (et, this->end_usage_, this->begin_usage_); - return 0; -} - -/* Determine the difference between T1 and T2. */ - -void -Profile_Timer::subtract (timespec_t &tdiff, timespec_t &t1, timespec_t &t0) -{ - tdiff.tv_sec = t1.tv_sec - t0.tv_sec; - tdiff.tv_nsec = t1.tv_nsec - t0.tv_nsec; - - /* Normalize the time. */ - - while (tdiff.tv_nsec < 0) - { - tdiff.tv_sec--; - tdiff.tv_nsec += (1000 * 1000 * 1000); - } -} - -#if defined (DEBUG) -#include -extern "C" int gettimeofday (timeval *tp); - -const int DEFAULT_ITERATIONS = 1000000; - -int -main (int argc, char *argv[]) -{ - Profile_Timer timer; - int iterations = argc > 1 ? atoi (argv[1]) : DEFAULT_ITERATIONS; - timeval tv; - - timer.start (); - - for (int i = 0; i < iterations; i++) - gettimeofday (&tv); - - timer.stop (); - - Profile_Timer::Elapsed_Time et; - - timer.elapsed_time (et); - - printf ("iterations = %d\n", iterations); - printf ("real time = %f secs, user time = %f secs, system time = %f secs\n", - et.real_time, et.user_time, et.system_time); - - printf ("time per call = %f usecs\n", (et.real_time / double (iterations)) * 1000000); - return 0; -} -#endif /* DEBUG */ diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.h b/TAO/IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.h deleted file mode 100644 index 4198fba9a10..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.h +++ /dev/null @@ -1,62 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -/* An interval timer class using C++. */ - -#if !defined (ACE_PROFILE_TIMER_H) -#define ACE_PROFILE_TIMER_H - -#include -#include -#include -#include -#include -#include - -class Profile_Timer -{ -public: - struct Elapsed_Time - { - double real_time; - double user_time; - double system_time; - }; - - Profile_Timer (void); - ~Profile_Timer (void); - int start (void); - int stop (void); - int elapsed_time (Elapsed_Time &et); - void elapsed_rusage (prusage_t &rusage); - void get_rusage (prusage_t &rusage); - -private: - void subtract (timespec_t &tdiff, timespec_t &t0, timespec_t &t1); - void compute_times (Elapsed_Time &et, prusage_t &, prusage_t &); - - prusage_t begin_usage_; - prusage_t end_usage_; - prusage_t last_usage_; - int proc_fd_; -}; - -/* Start timing */ - -inline int -Profile_Timer::start (void) -{ - return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->begin_usage_); -} - -/* Stop timing */ - -inline int -Profile_Timer::stop (void) -{ - this->last_usage_ = this->end_usage_; - return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->end_usage_); -} - -#endif /* ACE_PROFILE_TIMER_H */ - diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/client/client.cpp b/TAO/IIOP/tests/Cubit/VisiBroker/client/client.cpp deleted file mode 100644 index d9eb91526d7..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/client/client.cpp +++ /dev/null @@ -1,232 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : client.C -// DESCRIPTION: -// -// Client for the Cubit example -// -//**************************************************************************** - -#include -#include -#include -#include -#include -#include "cubitC.h" -#include "Profile_Timer.h" - -int LOOP_COUNT; -char SERVER_HOST [1024]; - -inline int func (unsigned i) { return i - 117; } -void run_tests (Cubit_var, int); - -// = TITLE -// Parses the command line arguments and returns an error status -// -// = DESCRIPTION -// This method parses the command line arguments -int parse_args(int argc, char *argv[]) -{ - if (argc != 3) { - cerr << "Format: client " << endl; - return -1; - } - - strcpy(SERVER_HOST, argv[1]); - - LOOP_COUNT = atoi(argv[2]); - - return 0; // Indicates successful parsing of command line -} - - -// -// Mainline -// -int -main (int argc, char *argv[]) -{ - if (parse_args (argc, argv) != 0) - return -1; - - Cubit_var cb; - // cout << "attempting to contact server at host " << SERVER_HOST << '\n' ; - - // - // Initialise client's binding to an - // arbitrary cubit server (at some host) - // - try { - cb = Cubit::_bind ("Cubit", SERVER_HOST); - - } catch (const CORBA::Exception & sysEx) { - cerr << "Binding failed: " << endl; - cerr << sysEx; - } catch (...) { - cerr << "Unexpected exception" << endl; - } - - run_tests (cb, LOOP_COUNT); - return 0; -} - - -void -run_tests (Cubit_var cb, int loop_count) -{ - // - // Make the calls in a loop. - // - unsigned i; - unsigned call_count, error_count; - - call_count = 0; - error_count = 0; - - Profile_Timer pt; - - pt.start(); - // - // Cube an octet. - // - - for (i = 0; i < loop_count; i++) - { - - call_count++; - - CORBA::Octet arg_octet = func (i), ret_octet; - - try { - ret_octet = cb->cube_octet (arg_octet); - - } catch (const CORBA::Exception &sysEx) { - cerr << "Call failed: " << endl; - cerr << sysEx; - error_count++; - } catch (...) { - cerr << "Unexpected exception" << endl; - error_count++; - } - - arg_octet = arg_octet * arg_octet * arg_octet; - if (arg_octet != ret_octet) { - printf ("** cube_octet(%d) (--> %d)\n", arg_octet , ret_octet); - error_count++; - } - - - // - // Cube a short. - // - call_count++; - - CORBA::Short arg_short = func (i), ret_short; - - try { - ret_short = cb->cube_short (arg_short); - - } catch (const CORBA::Exception &sysEx) { - cerr << "Call failed: " << endl; - cerr << sysEx; - error_count++; - } catch (...) { - cerr << "Unexpected exception" << endl; - error_count++; - } - - arg_short = arg_short * arg_short * arg_short; - if (arg_short != ret_short) { - printf ("** cube_short(%d) (--> %d)\n", arg_short , ret_short); - error_count++; - } - - // - // Cube a long. - // - - call_count++; - - CORBA::Long arg_long = func (i), ret_long; - - try { - ret_long = cb->cube_long (arg_long); - } catch (const CORBA::Exception &sysEx) { - cerr << "Call failed: " << endl; - cerr << sysEx; - error_count++; - } catch (...) { - cerr << "Unexpected exception" << endl; - error_count++; - } - - arg_long = arg_long * arg_long * arg_long; - if (arg_long != ret_long) { - printf ("** cube_long(%d) (--> %d)\n", arg_long , ret_long); - error_count++; - } - - - // - // Cube a "struct" ... - // - Cubit::Many arg_struct, ret_struct; - - call_count++; - - arg_struct.l = func (i); - arg_struct.s = func (i); - arg_struct.o = func (i); - - try { - ret_struct = cb->cube_struct (arg_struct); - - } catch (const CORBA::Exception &sysEx) { - cerr << "Call failed: " << endl; - cerr << sysEx; - error_count++; - } catch (...) { - cerr << "Unexpected exception" << endl; - error_count++; - } - - - arg_struct.l = arg_struct.l * arg_struct.l * arg_struct.l ; - arg_struct.s = arg_struct.s * arg_struct.s * arg_struct.s ; - arg_struct.o = arg_struct.o * arg_struct.o * arg_struct.o ; - - if (arg_struct.l != ret_struct.l - || arg_struct.s != ret_struct.s - || arg_struct.o != ret_struct.o ) - { - cerr << "** cube_struct ERROR\n"; - error_count++; - } - } - - pt.stop(); - - Elapsed_Time et; - pt.elapsed_time(et); - - if (call_count > 0) - { - if (error_count == 0) - { - unsigned long us = et.real_time * 1000 * 1000; - - us /= call_count; - - if (us > 0) - printf ("cube average call ACE_OS::time\t= %ld.%.03ldms, \t" - "%ld calls/second\n", - us / 1000, us % 1000, - 1000000L / us); - } - - printf ("%d calls, %d errors\n", call_count, error_count); - } -} diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/client/cubit.idl b/TAO/IIOP/tests/Cubit/VisiBroker/client/cubit.idl deleted file mode 100644 index 7eedbe786ab..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/client/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. -// -//#pragma prefix "Eng.SUN.COM" -//#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/client/stdmk b/TAO/IIOP/tests/Cubit/VisiBroker/client/stdmk deleted file mode 100644 index df4125a38d8..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/client/stdmk +++ /dev/null @@ -1,36 +0,0 @@ -CC = CC -DEBUG = - -ORBELINEDIR = /project/waltz/Orbeline2.0 - -ORBCC = $(ORBELINEDIR)/bin/orbeline -v C -m S -c cpp -h h - -CCINCLUDES = -I. -I$(ORBELINEDIR)/include -I$(STL_DIR) -I$(ACE_DIR) - -CCFLAGS = -g $(CCINCLUDES) $(DEBUG) -DCubit_USE_BOA - -LIBPATH = -L$(ORBELINEDIR)/lib -L$(ACE_DIR)/ace - -STDCC_LIBS = -lsocket -lnsl -ldl -mt - -LIBORB = -lorb - -LIBACE = -lACE - -.SUFFIXES: .C .o .h .hh .cc .cpp - -.C.o: - $(CC) $(CCFLAGS) -c -o $@ $< - -.cc.o: - $(CC) $(CCFLAGS) -c -o $@ $< -.cpp.o: - $(CC) $(CCFLAGS) -c -o $@ $< - -.C.cpp: - $(CC) -E $(CCFLAGS) $< > $@ - -.cc.cpp: - $(CC) -E $(CCFLAGS) $< > $@ - - diff --git a/TAO/IIOP/tests/Cubit/results/Orbix b/TAO/IIOP/tests/Cubit/results/Orbix deleted file mode 100644 index c3abce78d3f..00000000000 --- a/TAO/IIOP/tests/Cubit/results/Orbix +++ /dev/null @@ -1,133 +0,0 @@ -Cubit results over Ethernet with 20,000 calls ---------------------------------------------- - - Clients Latency (ms) Calls/Sec - -MT-Orbix without filters 1 1.876 533 - 2 2.202 454 - 3 2.740 364 - -MT-Orbix Thread-Per-Request 1 1.886 530 - 2 3.1 322 - 3 5.0 200 - -MT-Orbix Thread-Pool (25) 1 1.875 533 - 2 3.1 322 - 3 5.1 196 - -MT-Orbix Thread-Per-Session 1 2.002 499 - 2 3.306 302 - 3 5.15 194 - - -Cubit results over ATM with 20,000 calls ----------------------------------------- - - Clients Latency (ms) Calls/Sec - -MT-Orbix without filters 1 1.818 550 - 2 1.968 508 - 3 2.803 356 - - -MT-Orbix Thread-Per-Request 1 1.846 541 - 2 3.1 322 - 3 4.98 200 - -MT-Orbix Thread-Pool (25) 1 1.913 522 - 2 3.18 314 - 3 5.1 196 - -MT-Orbix Thread-Per-Session 1 1.959 510 - 2 3.29 303 - 3 5.15 194 - - -Prime_Factor results over ATM with 20,000 calls ------------------------------------------------ - - Clients Latency (ms) Calls/Sec - -MT-Orbix without filters 1 7.918 126 - 2 14.300 70 - 3 21.000 47 - - -MT-Orbix Thread-Per-Request 1 8.302 120 - 2 10.128 98 - 3 13.722 72 - -MT-Orbix Thread-Pool (25) 1 8.442 118 - 2 15.764 63 - 3 22.595 44 - -MT-Orbix Thread-Per-Session 1 8.956 111 - 2 9.581 104 - 3 16.702 59 - -IO-intensive results over ATM with 20,000 calls ------------------------------------------------ - - Clients Latency (ms) Calls/Sec - -MT-Orbix without filters 1 6.667 149 - 2 12.165 82 - 3 18.634 54 - - -MT-Orbix Thread-Per-Request 1 6.812 146 - 2 6.937 144 - 3 7.706 128 - -MT-Orbix Thread-Pool (25) 1 6.813 146 - 2 6.954 144 - 3 7.776 128 - -MT-Orbix Thread-Per-Session 1 6.85 145 - 2 7.253 137 - 3 7.645 130 - - TNF client-side profile for MT-Orbix without filters for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -cond_wait 6.23 4250.242 1824 2.330 106.171 1.205 0.091 -mutex_lock 0.23 159.830 56662 0.003 1.215 0.002 0.000 -mutex_unlock 0.22 146.756 56663 0.003 0.326 0.002 0.000 -cond_signal 0.09 61.030 1825 0.033 0.475 0.009 0.000 -rw_rdlock 0.01 7.179 1826 0.004 0.014 0.003 0.000 -rw_unlock 0.01 6.548 1827 0.004 0.014 0.003 0.000 -rw_wrlock 0.00 0.004 1 0.004 0.004 0.004 0.000 - - TNF server-side profile for MT-Orbix without filters for 20000 calls - - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -cond_timedwait 1.25 923.527 797 1.159 20.219 0.324 0.028 -mutex_lock 0.21 153.839 56435 0.003 4.342 0.002 0.000 -mutex_unlock 0.20 149.208 56433 0.003 3.559 0.002 0.000 -cond_signal 0.03 21.506 809 0.027 1.826 0.003 0.002 -rw_unlock 0.02 16.058 3224 0.005 2.915 0.003 0.001 -rw_rdlock 0.02 11.924 3221 0.004 0.087 0.003 0.000 -rw_wrlock 0.00 0.010 2 0.005 0.005 0.004 0.000 - - TNF server-side profile for MT-Orbix with thread-per-request for 20000 calls - - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 0.55 797.890 57618 0.014 4.624 0.002 0.000 -cond_timedwait 0.52 748.560 478 1.566 3.918 0.222 0.019 -mutex_unlock 0.36 514.627 57616 0.009 3.975 0.002 0.000 -cond_signal 0.02 24.216 1151 0.021 1.161 0.002 0.001 -rw_rdlock 0.01 13.120 2301 0.006 1.180 0.003 0.001 -rw_unlock 0.01 10.575 2307 0.005 0.316 0.003 0.000 -thr_sigsetmask 0.00 1.949 30 0.065 1.064 0.013 0.035 -rw_wrlock 0.00 0.033 6 0.006 0.008 0.004 0.001 - - - diff --git a/TAO/IIOP/tests/Cubit/results/TAO b/TAO/IIOP/tests/Cubit/results/TAO deleted file mode 100644 index de4a7bf23ae..00000000000 --- a/TAO/IIOP/tests/Cubit/results/TAO +++ /dev/null @@ -1,92 +0,0 @@ -Cubit results over Ethernet with 20,000 calls ---------------------------------------------- - - Clients Latency (ms) Calls/Sec - -TAO reactive 1 1.172 853 - 2 1.342 745 - 3 1.902 525 - -TAO threaded version 1 1.174 851 - 2 1.219 820 - 3 1.600 625 - - -Cubit results over ATM with 20,000 calls ---------------------------------------------- - - Clients Latency (ms) Calls/Sec - -TAO reactive 1 1.161 861 - 2 1.302 768 - 3 1.732 577 - -TAO threaded version 1 1.170 854 - 2 1.3 769 - 3 1.600 625 - - -Cubit results over ATM after optimizations with 20,000 calls ------------------------------------------------------------- - - Clients Latency (ms) Calls/Sec - -TAO reactive 1 1.127 887 - 2 1.238 807 - 3 1.501 666 - -TAO threaded version 1 1.057 946 - 2 1.225 816 - 3 1.471 679 - -Prime_Factor results over ATM with 20,000 calls -------------------------------------------------- - - Clients Latency (ms) Calls/Sec - -TAO reactive 1 7.407 135 - 2 13.7 73 - 3 19.7 51 - -TAO threaded version 1 7.389 135 - 2 8.080 124 - 3 10.726 93 - -IO-bound results over ATM with 20,000 calls --------------------------------------------- - - Clients Latency (ms) Calls/Sec - -TAO reactive 1 6.404 156 - 2 11.909 83 - 3 17.324 57 - -TAO threaded version 1 6.378 156 - 2 6.449 155 - 3 6.500 153 - - - - - Sample client-side profile for TAO for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -rw_rdlock 0.40 146.579 20006 0.007 1.200 0.005 0.000 -rw_unlock 0.25 91.386 20009 0.005 0.058 0.004 0.000 -mutex_lock 0.06 21.087 5265 0.004 0.178 0.002 0.000 -mutex_unlock 0.04 14.372 5271 0.003 0.075 0.002 0.000 -rw_wrlock 0.00 0.045 3 0.015 0.034 0.005 0.008 - - - Sample server-side profile for TAO for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 1.12 154.491 54507 0.003 0.140 0.002 0.000 -mutex_unlock 1.06 145.638 54508 0.003 0.310 0.002 0.000 -rw_rdlock 0.27 37.265 6813 0.005 0.037 0.004 0.000 -rw_unlock 0.20 27.792 6813 0.004 0.045 0.004 0.000 - diff --git a/TAO/IIOP/tests/Cubit/results/Visibroker b/TAO/IIOP/tests/Cubit/results/Visibroker deleted file mode 100644 index 8d6bb2457c7..00000000000 --- a/TAO/IIOP/tests/Cubit/results/Visibroker +++ /dev/null @@ -1,79 +0,0 @@ -Cubit results over Ethernet with 20,000 calls ---------------------------------------------- - - Clients Latency (ms) Calls/Sec - - -Visibroker reactive 1 1.167 856 - 2 1.39 718 - 3 1.664 600 - -Visibroker thr-per-connection 1 1.077 928 - 2 1.228 814 - 3 1.789 558 - - - -Cubit results over ATM with 20,000 calls ----------------------------------------- - - Clients Latency (ms) Calls/Sec - -Visibroker reactive 1 1.195 836 - 2 1.241 805 - 3 1.56 641 - -Visibroker thr-per-connection 1 1.060 943 - 2 1.327 753 - 3 2.108 474 - - -Prime_Factor results over ATM with 20,000 calls ------------------------------------------------ - - Clients Latency (ms) Calls/Sec - -Visibroker reactive 1 7.43 134 - 2 13.652 73 - 3 17.738 56 - -Visibroker thr-per-connection 1 7.371 135 - 2 8.561 116 - 3 11.376 87 - -IO-intensive results over ATM with 20,000 calls ------------------------------------------------ - - Clients Latency (ms) Calls/Sec - -Visibroker reactive 1 6.424 155 - 2 11.895 84 - 3 17.468 57 - -Visibroker thr-per-connection 1 6.41 156 - 2 6.496 154 - 3 6.524 153 - - - - - TNF client-side profile for Visibroker for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_unlock 1.31 188.930 61797 0.003 1.027 0.002 0.000 -mutex_lock 1.21 175.465 61790 0.003 0.330 0.002 0.000 - - - TNF server-side profile for Visibroker for 20000 calls - - Profile - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 0.18 165.141 60432 0.003 0.501 0.002 0.000 -mutex_unlock 0.16 153.891 60432 0.003 0.373 0.002 0.000 - - diff --git a/TAO/IIOP/tests/Cubit/results/orbs.xls b/TAO/IIOP/tests/Cubit/results/orbs.xls deleted file mode 100644 index 149078dd383..00000000000 Binary files a/TAO/IIOP/tests/Cubit/results/orbs.xls and /dev/null differ diff --git a/TAO/IIOP/tests/Thruput_test/Makefile b/TAO/IIOP/tests/Thruput_test/Makefile deleted file mode 100644 index f6b0e338f8b..00000000000 --- a/TAO/IIOP/tests/Thruput_test/Makefile +++ /dev/null @@ -1,53 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Top-level Makefile for the TAO_TTCP benchmark -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -LDLIBS = -lcorba - -PROG_SRCS = client.cpp ttcpC.cpp ttcpS.cpp ttcp_i.cpp server.cpp utils.cpp - -LSRC = $(PROG_SRCS) - -TTCP_CLIENT_OBJS = client.o ttcpC.o utils.o - -TTCP_SERVER_OBJS = server.o ttcpC.o ttcpS.o ttcp_i.o utils.o - -BIN = client server - -BUILD = $(BIN) - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -#include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Local modifications to variables imported by includes above. -#---------------------------------------------------------------------------- - -LDFLAGS += -L../../proto/lib -CPPFLAGS += -I../../proto/include -DUSE_ACE_EVENT_HANDLING -DDEBUG #-DONEWAY - -server: $(addprefix $(VDIR),$(TTCP_SERVER_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -client: $(addprefix $(VDIR),$(TTCP_CLIENT_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - - - diff --git a/TAO/IIOP/tests/Thruput_test/README b/TAO/IIOP/tests/Thruput_test/README deleted file mode 100644 index 628ef0c50a4..00000000000 --- a/TAO/IIOP/tests/Thruput_test/README +++ /dev/null @@ -1,50 +0,0 @@ - TAO_TTCP Benchmark README file - -This directory contains a modified version of the TTCP benchmark that -uses the TAO ORB. TAO_TTCP is used to measure the throughput of TAO -for sending different data types. This code tests sequences of short, -long, octet, char, double, and richly-typed data such as a struct. -This benchmark uses an interpretive form of marshaling the data by -using the dynamic invocation interfaces provided by the TAO ORB. - -Organization ------------- - -client.cpp Client main program -server.cpp Server main program -ttcpC.cpp Client side stubs -ttcpS.cpp Server side skeletons -ttcpC.h Header file for stubs -ttcpS.h Header file for the skeletons -ttcp_i.cpp Implementaion of the interface -ttcp_i.h Header for the implementation -utils.cpp Utilities to calculate throughput -ttcp_decls.h Common declarations - -Results -------- -Throughput results are stored under the results directory. If testing -for REMOTE transfers, use the ./results/REMOTE directory. - -Running the tests ------------------ -Three scripts are provided - -(1) run_server : runs the server. Be sure to change the host name -(2) run_client : runs tests for various data types -(3) run_test : called by run_client - -Compiling ---------- - -Type make - -To provide for 2way tests (no data is sent in the reverse -direction. Sender blocks for a minimal ACK), comment out the -DONEWAY -flag from the CPPFLAGS - -TO-DO ------ - - --Aniruddha Gokhale \ No newline at end of file diff --git a/TAO/IIOP/tests/Thruput_test/client.cpp b/TAO/IIOP/tests/Thruput_test/client.cpp deleted file mode 100644 index cdf3004892d..00000000000 --- a/TAO/IIOP/tests/Thruput_test/client.cpp +++ /dev/null @@ -1,338 +0,0 @@ -// $Id$ - -#include "ttcp_decl.h" -#include "debug.h" - -#include -#include - -void print_exception (const CORBA_Exception *x, - const char *info, - FILE *stream - ); - -char Usage[] = "\ -Usage: client [-options] [ORBeline options] host \n\ -Common options:\n\ --l ## length of bufs read from or written to network (default 8192)\n\ --A align the start of buffers to this modulus (default 16384)\n\ --o start buffers at this offset from the modulus (default 0)\n\ --v verbose: print more statistics\n\ --d set SO_DEBUG socket option\n\ --b ## set socket buffer size (if supported)\n\ --f X format for rate: k,K = kilo{bit,byte}; m,M = mega; g,G = giga\n\ --n ## number of source bufs written to network (default 2048)\n\ --x Use new lines after each entry in output file\n\ --h ## Remote host to send data to\n\ --D don't buffer TCP writes (sets TCP_NODELAY socket option)\n\ --L ## Output file name for the data type used\n\ --S \n\ --q Send Sequence: Enumeration for various data types:\n\ -s = short, l = long, d = double, c = char\n\ -o = octet, S = struct, C = composite\n\ -"; - -#if !defined (__cplusplus) -typedef void (*SIG_TYP)(); -#endif - -#ifdef SVR4 -void -sigpipe (int foo) -#else - void -sigpipe () -#endif -{ -} - -int fromlen; -int domain = PF_INET; /* Default is to use Internet domain sockets. */ -char *domainname; /* Rendezvous address for UNIX domain sockets. */ -int fd; /* fd of network socket */ -int buflen = 8 * 1024; /* length of buffer */ -char *buf; /* ptr to dynamic buffer */ -int nbuf = 2 * 1024; /* number of buffers to send in sinkmode */ - -int bufoffset = 0; /* align buffer to this */ -int bufalign = 16 * 1024; /* modulo this */ - -int udp = 0; /* 0 = tcp, !0 = udp */ -int options = 0; /* socket options */ -int one = 1; /* for 4.3 BSD style setsockopt() */ -short port = 5001; /* TCP port number */ -char *host; /* ptr to name of host */ -int trans =1; /* 0=receive, !0=transmit mode */ -int sinkmode = 1; /* 0=normal I/O, !0=sink/source mode */ -int verbose = 0; /* 0=print basic info, 1=print cpu rate, proc -* resource usage. */ -int nodelay = 0; /* set TCP_NODELAY socket option */ -int b_flag = 0; /* use mread() */ -int sockbufsize = 0; /* socket buffer size to use */ -int new_line=0; /* This is a special flag */ -int write_to_file=1; /* indecates writing to file (default)*/ -char fmt = 'K'; /* output format:k=kilobits,K=kilobytes, -* m = megabits, M = megabytes, -* g = gigabits, G = gigabytes */ -int touchdata = 0; /* access data after reading */ - -struct hostent *addr; -char *title = 0; - -char stats[128]; -unsigned long srcDataSize; /* Total amount of source data */ -unsigned long nbytes; /* bytes on net */ -unsigned long numCalls; /* # of I/O system calls */ -double cput, realt; /* user, real time (seconds) */ -unsigned long dt; - -/* declare struct variables for various message types */ -ttcp_sequence::ShortSeq *sseq; -ttcp_sequence::LongSeq *lseq; -ttcp_sequence::OctetSeq *oseq; -ttcp_sequence::DoubleSeq *dseq; -ttcp_sequence::CharSeq *cseq; -ttcp_sequence::StructSeq *Sseq; - -static const char ior_prefix [] = "IOR:"; -static const char iiop_prefix [] = "iiop:"; - -int -main (int argc, char *argv[]) -{ - - unsigned long addr_tmp; - unsigned short done = 0; - int c; - - CORBA_ORB_ptr orb_ptr; - CORBA_Environment env; - CORBA_Object_ptr objref = CORBA_Object::_nil(); - ttcp_sequence_ptr ttcp_seq; - unsigned loop_count = 1; - int exit_later = 0; - CORBA_String str; - fstream iorfile; - - if (argc < 2) - goto usage; - - TAO_debug_level = 0; - while (!done && ((c = getopt (argc, argv, "d:vDb:h:f:l:n:A:o:L:xS:q:")) != -1)) - { - switch (c) - { - case 'h': - host = optarg; - break; - case 'x': - new_line = 1; - break; - case 'L': - title = optarg; - break; - case 'd': - TAO_debug_level = atoi(optarg); - if (TAO_debug_level > 10) - TAO_debug_level = 10; - break; - case 'D': -#ifdef TCP_NODELAY - nodelay = 1; -#else - fprintf (stderr, - "ttcp: -D option ignored: TCP_NODELAY socket option not supported\n"); -#endif - break; - case 'n': - nbuf = atoi (optarg); - break; - case 'l': - buflen = atoi (optarg); - break; - case 'v': - verbose = 1; - break; - case 'A': - bufalign = atoi (optarg); - break; - case 'o': - bufoffset = atoi (optarg); - break; - case 'b': -#if defined(SO_SNDBUF) || defined(SO_RCVBUF) - sockbufsize = atoi (optarg); -#else - fprintf (stderr, - "ttcp: -b option ignored: SO_SNDBUF/SO_RCVBUF socket options not supported\n"); -#endif - break; - case 'f': - fmt = *optarg; - break; - case 'S': /* total source data to send. */ - /* modify nbuf accordingly */ - srcDataSize = atoi(optarg); - break; - case 'q': /* Send sequence of desired data type */ - switch(*optarg){ - case 's': - dt = SEND_SHORT; - break; - case 'l': - dt = SEND_LONG; - break; - case 'd': - dt = SEND_DOUBLE; - break; - case 'c': - dt = SEND_CHAR; - break; - case 'o': - dt = SEND_OCTET; - break; - case 'S': - dt = SEND_STRUCT; - break; - case 'C': - dt = SEND_COMPOSITE; - break; - } - break; - case '?': - done = 1; - break; - default: - goto usage; - } - } - - // - // Transmitter - // - orb_ptr = CORBA_ORB_init(argc, argv, "internet", env); - if (env.exception () != 0) { - print_exception (env.exception (), "ORB initialization", stdout); - return 1; - } - - str = CORBA_string_alloc(500); - - // read the IOR from the file ior.txt - iorfile.open("ior.txt", ios::in); - iorfile >> ((char *)str); - iorfile.close(); - - cout << "Read IOR string as: " << ((char *)str) << endl; - - objref = orb_ptr->string_to_object(str, env); - if (env.exception() != 0){ - print_exception(env.exception(), "string2object", stdout); - return 1; - } - CORBA_string_free(str); - - - if (!CORBA_is_nil(objref)){ - ttcp_seq = ttcp_sequence::_narrow(objref); - - if (!CORBA_is_nil(ttcp_seq)){ - - /* modify nbuf according to Total data size */ - nbuf = srcDataSize/buflen; - fprintf(stderr, "data size = %d, buflen = %d, nbuf = %d\n",srcDataSize, buflen, nbuf); - - // - // Prepare the Message to be sent - // - - errno = 0; - if ((buf = (char *) malloc (buflen + bufalign)) == (char *) NULL) - err ("malloc"); - if (bufalign != 0) - buf += (bufalign - ((int) buf % bufalign) + bufoffset) % bufalign; - - - cout << "Sizeof PerfStruct = " << sizeof(PerfStruct) << endl; - // fill the appropriate buffers - FillPattern (buf, buflen, dt); - // - // Start the timers on the client and server sides - // - - prep_timer (); - ttcp_seq->start_timer (env); - if (env.exception () != 0) { - print_exception (env.exception (), "start_timer operation", stdout); - return 1; - } -#if defined (USE_QUANTIFY) - /* start recording quantify data from here */ - quantify_clear_data(); - quantify_start_recording_data(); -#endif - while (nbuf--) - { - switch(dt){ - case SEND_SHORT: - ttcp_seq->sendShortSeq(*sseq, env); - nbytes += sseq->length()*sizeof(CORBA_Short); - break; - case SEND_LONG: - ttcp_seq->sendLongSeq(*lseq, env); - nbytes += lseq->length()*sizeof(CORBA_Long); - break; - case SEND_OCTET: - ttcp_seq->sendOctetSeq(*oseq, env); - nbytes += oseq->length()*sizeof(CORBA_Octet); - break; - case SEND_DOUBLE: - ttcp_seq->sendDoubleSeq(*dseq, env); - nbytes += dseq->length()*sizeof(CORBA_Double); - break; - case SEND_CHAR: - ttcp_seq->sendCharSeq(*cseq, env); - nbytes += cseq->length()*sizeof(CORBA_Char); - break; - case SEND_STRUCT: - ttcp_seq->sendStructSeq(*Sseq, env); - nbytes += Sseq->length()*sizeof(PerfStruct); - break; - } - numCalls++; - if (env.exception () != 0) { - print_exception (env.exception (), "send operation", stdout); - return 1; - } - } -#if defined(USE_QUANTIFY) - quantify_stop_recording_data(); -#endif - // - // Stop the timer - // - ttcp_seq->stop_timer(env); - if (env.exception () != 0) { - print_exception (env.exception (), "stop_timer operation", stdout); - return 1; - } - (void) read_timer (stats, sizeof (stats)); - - // print results - PrintStats(); - - } - } - - CORBA_release(ttcp_seq); - return(0); -usage: - fprintf (stderr, Usage); - return 1; -} - - - - - - diff --git a/TAO/IIOP/tests/Thruput_test/run b/TAO/IIOP/tests/Thruput_test/run deleted file mode 100755 index b746a09536d..00000000000 --- a/TAO/IIOP/tests/Thruput_test/run +++ /dev/null @@ -1 +0,0 @@ -client -S 67108864 -f m -D -l $1 -L temp -q $2 -b 65536 -d $3 diff --git a/TAO/IIOP/tests/Thruput_test/run_client b/TAO/IIOP/tests/Thruput_test/run_client deleted file mode 100755 index 41f9fd5bc51..00000000000 --- a/TAO/IIOP/tests/Thruput_test/run_client +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/csh -f -# All ATM tests: 64k socket Queue Size -# -# shorts -run_test 67108864 128 mambo-atm.wustl.edu ./results/REMOTE/$1/sun-iiop.atm.64 s -sleep 5 -# longs -run_test 67108864 128 mambo-atm.wustl.edu ./results/REMOTE/$1/sun-iiop.atm.64 l -sleep 5 -# octets -run_test 67108864 128 mambo-atm.wustl.edu ./results/REMOTE/$1/sun-iiop.atm.64 o -sleep 5 -# doubles -run_test 67108864 128 mambo-atm.wustl.edu ./results/REMOTE/$1/sun-iiop.atm.64 d -sleep 5 -# chars -#run_test 67108864 128 mambo-atm.wustl.edu ./results/REMOTE/$1/sun-iiop.atm.64 c -#sleep 5 -# structures -run_test 67108864 128 mambo-atm.wustl.edu ./results/REMOTE/$1/sun-iiop.atm.64 S -sleep 5 -# Composite Structs -#run_test 67108864 128 mambo-atm.wustl.edu ./results/REMOTE/$1/sun-iiop.atm.64 C -#sleep 5 -# diff --git a/TAO/IIOP/tests/Thruput_test/run_server b/TAO/IIOP/tests/Thruput_test/run_server deleted file mode 100755 index 9ce44a510b1..00000000000 --- a/TAO/IIOP/tests/Thruput_test/run_server +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/csh -# -# Usage: server -# -u : use IOR -# -f m : output results in Mbps -# -b ** not implemented ** -# -OAhost ************* must provide this for this version -# -OAthread : use threaded version as opposed to reactive -# -server -u -f m -b 65536 -OAhost mambo-cip #-OAthread diff --git a/TAO/IIOP/tests/Thruput_test/run_test b/TAO/IIOP/tests/Thruput_test/run_test deleted file mode 100755 index e36938f42b6..00000000000 --- a/TAO/IIOP/tests/Thruput_test/run_test +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/csh -f -if ($#argv < 3) then - echo "Usage: sclt " - exit 1 -endif -# -@ msize=1024 -@ limit= ($argv[2] * 1024) -#echo $limit -#echo $msize -echo "Iteration#" 1 ": client -S" $1 "-D -f m -s -t -l" $msize "-h" $3 "-x -L" $4 "-q" $5 -b 65536 -client -S $1 -D -f m -l $msize -h $3 -x -L $4 -q $5 -b 65536 -set flag=0 -while ($msize <= $limit) - if ($flag == 0) goto label - echo "Iteration#" 1 ": client -S" $1 "-D -f m -l" $msize "-h" $3 "-x -L" $4 "-q" $5 -b 65536 - client -S $1 -D -f m -l $msize -h $3 -x -L $4 -q $5 -b 65536 - label: - set flag=1 - sleep 5 - foreach i (2) - echo "Iteration#" $i ": client -S" $1 "-D -f m -s -t -l" $msize "-h" $3 "-x -L " $4 "-q" $5 -b 65536 - client -S $1 -D -f m -l $msize -h $3 -x -L $4 -q $5 -b 65536 - end - echo "---------------------------" - @ msize = ($msize * 2) - sleep 5 -end - -echo " " -echo "Done at:" -date diff --git a/TAO/IIOP/tests/Thruput_test/server.cpp b/TAO/IIOP/tests/Thruput_test/server.cpp deleted file mode 100644 index b2a10d91510..00000000000 --- a/TAO/IIOP/tests/Thruput_test/server.cpp +++ /dev/null @@ -1,226 +0,0 @@ -// $Id$ - -#include "ttcp_i.h" - -#include -#include - -void print_exception (const CORBA_Exception *x, - const char *info, - FILE *stream - ); - -char Usage[] = "\ -Usage: server [options] \n\ -Common options:\n\ --l ## length of bufs read from or written to network (default 8192)\n\ --A align the start of buffers to this modulus (default 16384)\n\ --O start buffers at this offset from the modulus (default 0)\n\ --v verbose: print more statistics\n\ --d set SO_DEBUG socket option\n\ --b ## set socket buffer size (if supported)\n\ --f X format for rate: k,K = kilo{bit,byte}; m,M = mega; g,G = giga\n\ --L ## Output file name for the data type used\n\ -Options specific to -r:\n\ --B for -s, only output full blocks as specified by -l (for TAR)\n\ --T \"touch\": access each byte as it's read\n\ -"; - -#if !defined (__cplusplus) -typedef void (*SIG_TYP)(); -#endif - -#ifdef SVR4 -void -sigpipe (int foo) -#else - void -sigpipe () -#endif -{ -} - -int fromlen; -int domain = PF_INET; /* Default is to use Internet domain sockets. */ -char *domainname; /* Rendezvous address for UNIX domain sockets. */ -int fd; /* fd of network socket */ -int buflen = 8 * 1024; /* length of buffer */ -char *buf; /* ptr to dynamic buffer */ -int nbuf = 2 * 1024; /* number of buffers to send in sinkmode */ - -int bufoffset = 0; /* align buffer to this */ -int bufalign = 16 * 1024; /* modulo this */ - -int udp = 0; /* 0 = tcp, !0 = udp */ -int options = 0; /* socket options */ -int one = 1; /* for 4.3 BSD style setsockopt() */ -short port = 5001; /* TCP port number */ -char *host; /* ptr to name of host */ -int trans; /* 0=receive, !0=transmit mode */ -int sinkmode = 0; /* 0=normal I/O, !0=sink/source mode */ -int verbose = 0; /* 0=print basic info, 1=print cpu rate, proc - * resource usage. */ -int nodelay = 0; /* set TCP_NODELAY socket option */ -int b_flag = 0; /* use mread() */ -int sockbufsize = 0; /* socket buffer size to use */ -int new_line=0; /* This is a special flag */ -int write_to_file=1; /* indecates writing to file (default)*/ -char fmt = 'K'; /* output format:k=kilobits,K=kilobytes, - * m = megabits, M = megabytes, - * g = gigabits, G = gigabytes */ -int touchdata = 0; /* access data after reading */ - -struct hostent *addr; -char *title = 0; - -char stats[128]; -unsigned long srcDataSize; /* Total amount of source data */ -unsigned long nbytes; /* bytes on net */ -unsigned long numCalls; /* # of I/O system calls */ -double cput, realt; /* user, real time (seconds) */ -unsigned long dt; - -/* declare struct variables for various message types */ -ttcp_sequence::ShortSeq *sseq; -ttcp_sequence::LongSeq *lseq; -ttcp_sequence::OctetSeq *oseq; -ttcp_sequence::DoubleSeq *dseq; -ttcp_sequence::CharSeq *cseq; -ttcp_sequence::StructSeq *Sseq; - -unsigned short isDone = 0; -ttcp_sequence_i *my_ttcp; - -// -// forwarding support -// -static CORBA_Object_ptr fwd_ref; - -int -main (int argc, char *const *argv) -{ - - unsigned long addr_tmp; - int c; - unsigned short done = 0; - CORBA_Environment env; - CORBA_ORB_ptr orb_ptr; - CORBA_BOA_ptr oa_ptr; - CORBA_Boolean do_fork = CORBA_B_FALSE; - CORBA_Boolean do_threads = CORBA_B_FALSE; - CORBA_String key = (CORBA_String) "key0"; - char *oa_name = "ROA"; - char *orb_name = "internet"; - int idle = -1; - int use_ior = 0; - fstream iorfile; - CORBA_String str; - - - if (argc < 2) - goto usage; - - orb_ptr = CORBA_ORB_init (argc, argv, orb_name, env); - if (env.exception () != 0) { - print_exception (env.exception (), "ORB init", stdout); - return 1; - } - - oa_ptr = orb_ptr->BOA_init(argc, argv, oa_name); - if (env.exception () != 0) { - print_exception (env.exception (), "OA init", stdout); - return 1; - } - - TAO_debug_level = 0; - // Now process the options other than Orbix specific options - while (!done && ((c = getopt (argc, argv, "ui:d:vb:f:l:L:")) != -1)) - { - switch (c) - { - case 'u': - use_ior = 1; - orb_name = ""; - break; - case 'L': - title = optarg; - break; - case 'd': - TAO_debug_level = atoi(optarg); - if (TAO_debug_level > 10) - TAO_debug_level = 10; - break; - case 'l': - buflen = atoi (optarg); - break; - case 'i': - idle = atoi (optarg); - break; - case 'v': - verbose = 1; - break; - case 'b': -#if defined(SO_SNDBUF) || defined(SO_RCVBUF) - sockbufsize = atoi (optarg); -#else - fprintf (stderr, - "ttcp: -b option ignored: SO_SNDBUF/SO_RCVBUF socket options not supported\n"); -#endif - break; - case 'f': - fmt = *optarg; - break; - case 'O': - case '?': - done = 1; - break; - default: - goto usage; - } - } - - // - // Receiver - // - - iorfile.open("ior.txt", ios::out); - my_ttcp = new ttcp_sequence_i("TTCP_IIOP_test"); - str = orb_ptr->object_to_string(my_ttcp, env); - if (env.exception() != 0) - { - print_exception (env.exception(), "object_to_string", stdout); - return 1; - } - iorfile << ((char *)str) << endl; - -#if defined (USE_QUANTIFY) - quantify_clear_data(); - quantify_start_recording_data(); -#endif - - ACE_Reactor::run_event_loop(); - -#if 0 - while (1) - { - int result = params->reactor()->handle_events (); - - if (result == -1) - { - terminationStatus = -1; - break; - } - } -#endif - return 0; -usage: - fprintf (stderr, Usage); - return(1); -} - - - - - - - diff --git a/TAO/IIOP/tests/Thruput_test/ttcp.idl b/TAO/IIOP/tests/Thruput_test/ttcp.idl deleted file mode 100644 index ff13a4b664b..00000000000 --- a/TAO/IIOP/tests/Thruput_test/ttcp.idl +++ /dev/null @@ -1,34 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -struct PerfStruct{ - short s; - char c; - long l; - octet o; - double d; - octet pad[8]; // to make it 32 bytes -}; - -// Richly typed data -interface ttcp_sequence -{ - typedef sequence ShortSeq; - typedef sequence LongSeq; - typedef sequence DoubleSeq; - typedef sequence CharSeq; - typedef sequence OctetSeq; - typedef sequence StructSeq; - - - // Routines to send sequences of various data types - oneway void sendShortSeq (in ShortSeq ttcp_seq); - oneway void sendLongSeq (in LongSeq ttcp_seq); - oneway void sendDoubleSeq (in DoubleSeq ttcp_seq); - oneway void sendCharSeq (in CharSeq ttcp_seq); - oneway void sendOctetSeq (in OctetSeq ttcp_seq); - oneway void sendStructSeq (in StructSeq ttcp_seq); - - oneway void start_timer (); - oneway void stop_timer (); -}; diff --git a/TAO/IIOP/tests/Thruput_test/ttcpC.cpp b/TAO/IIOP/tests/Thruput_test/ttcpC.cpp deleted file mode 100644 index 6f96d387c25..00000000000 --- a/TAO/IIOP/tests/Thruput_test/ttcpC.cpp +++ /dev/null @@ -1,1007 +0,0 @@ -// $Id$ - -#include -#include "ttcpC.h" - -// constructor -ttcp_sequence::ttcp_sequence(STUB_Object *refdata) - : CORBA_Object(refdata) -{ -} - -// static duplicate method -ttcp_sequence_ptr ttcp_sequence::_duplicate(ttcp_sequence_ptr obj) -{ - void *dupl; - - if (obj) - { - obj->AddRef(); - } - return obj; -} - -// static _narrow method -ttcp_sequence_ptr ttcp_sequence::_narrow(CORBA_Object_ptr obj) -{ - CORBA_Environment env; - if (obj->_is_a("IDL:ttcp_sequence:1.0", env)){ - STUB_Object *istub; - if (obj->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR){ - return ttcp_sequence::_nil(); - } - ttcp_sequence_ptr new_obj = new ttcp_sequence(istub); - return ttcp_sequence::_duplicate(new_obj); - } - return ttcp_sequence::_nil(); -} - -ttcp_sequence_ptr ttcp_sequence::_nil() -{ - return (ttcp_sequence_ptr)NULL; -} - -ttcp_sequence::ShortSeq::ShortSeq() - : _maximum(0), - _length(0), - _buffer(0), - _release(CORBA_B_FALSE) -{ -} - -ttcp_sequence::ShortSeq::ShortSeq(CORBA_ULong max) - : _maximum(max), - _length(0), - _release(CORBA_B_FALSE) -{ - if (this->_maximum > 0){ - this->_buffer = new CORBA_Short[this->_maximum]; - } else { - this->_buffer = 0; - } -} - -ttcp_sequence::ShortSeq::ShortSeq(CORBA_ULong max, CORBA_ULong length, - CORBA_Short *value, CORBA_Boolean release) - : _maximum(max), - _length(length), - _buffer(value), - _release(release) -{ -} - -ttcp_sequence::ShortSeq::~ShortSeq() -{ - this->_maximum = this->_length = 0; - if (this->_release != CORBA_B_FALSE) - delete this->_buffer; -} - -void ttcp_sequence::ShortSeq::length(CORBA_ULong newlen) -{ - if (newlen > this->_maximum) { - CORBA_Short *temp = new CORBA_Short[newlen]; - ::memcpy(temp, this->_buffer, (size_t(this->_length) * sizeof(CORBA_Short))); - if (this->_release) - delete this->_buffer; - else - this->_release = 1; - - this->_maximum = newlen; - this->_buffer = temp; - } - if (newlen > this->_length) - memset(&this->_buffer[this->_length], 0, size_t(newlen - this->_length) * - sizeof(CORBA_Short)); - this->_length = newlen; -} - -CORBA_ULong ttcp_sequence::ShortSeq::length() const -{ - return this->_length; -} - -CORBA_Short& ttcp_sequence::ShortSeq::operator[](CORBA_ULong index) -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -const CORBA_Short& ttcp_sequence::ShortSeq::operator[](CORBA_ULong index) const -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -// LongSeq -ttcp_sequence::LongSeq::LongSeq() - : _maximum(0), - _length(0), - _buffer(0), - _release(CORBA_B_FALSE) -{ -} - -ttcp_sequence::LongSeq::LongSeq(CORBA_ULong max) - : _maximum(max), - _length(0), - _release(CORBA_B_FALSE) -{ - if (this->_maximum > 0){ - this->_buffer = new CORBA_Long[this->_maximum]; - } else { - this->_buffer = 0; - } -} - -ttcp_sequence::LongSeq::LongSeq(CORBA_ULong max, CORBA_ULong length, - CORBA_Long *value, CORBA_Boolean release) - : _maximum(max), - _length(length), - _buffer(value), - _release(release) -{ -} - -ttcp_sequence::LongSeq::~LongSeq() -{ - this->_maximum = this->_length = 0; - if (this->_release != CORBA_B_FALSE) - delete this->_buffer; -} - -void ttcp_sequence::LongSeq::length(CORBA_ULong newlen) -{ - if (newlen > this->_maximum) { - CORBA_Long *temp = new CORBA_Long[newlen]; - ::memcpy(temp, this->_buffer, (size_t(this->_length) * sizeof(CORBA_Long))); - if (this->_release) - delete this->_buffer; - else - this->_release = 1; - - this->_maximum = newlen; - this->_buffer = temp; - } - if (newlen > this->_length) - memset(&this->_buffer[this->_length], 0, size_t(newlen - this->_length) * - sizeof(CORBA_Long)); - this->_length = newlen; -} - -CORBA_ULong ttcp_sequence::LongSeq::length() const -{ - return this->_length; -} - -CORBA_Long& ttcp_sequence::LongSeq::operator[](CORBA_ULong index) -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -const CORBA_Long& ttcp_sequence::LongSeq::operator[](CORBA_ULong index) const -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -// DoubleSeq -ttcp_sequence::DoubleSeq::DoubleSeq() - : _maximum(0), - _length(0), - _buffer(0), - _release(CORBA_B_FALSE) -{ -} - -ttcp_sequence::DoubleSeq::DoubleSeq(CORBA_ULong max) - : _maximum(max), - _length(0), - _release(CORBA_B_FALSE) -{ - if (this->_maximum > 0){ - this->_buffer = new CORBA_Double[this->_maximum]; - } else { - this->_buffer = 0; - } -} - -ttcp_sequence::DoubleSeq::DoubleSeq(CORBA_ULong max, CORBA_ULong length, - CORBA_Double *value, CORBA_Boolean release) - : _maximum(max), - _length(length), - _buffer(value), - _release(release) -{ -} - -ttcp_sequence::DoubleSeq::~DoubleSeq() -{ - this->_maximum = this->_length = 0; - if (this->_release != CORBA_B_FALSE) - delete this->_buffer; -} - -void ttcp_sequence::DoubleSeq::length(CORBA_ULong newlen) -{ - if (newlen > this->_maximum) { - CORBA_Double *temp = new CORBA_Double[newlen]; - ::memcpy(temp, this->_buffer, (size_t(this->_length) * sizeof(CORBA_Double))); - if (this->_release) - delete this->_buffer; - else - this->_release = 1; - - this->_maximum = newlen; - this->_buffer = temp; - } - if (newlen > this->_length) - memset(&this->_buffer[this->_length], 0, size_t(newlen - this->_length) * - sizeof(CORBA_Double)); - this->_length = newlen; -} - -CORBA_ULong ttcp_sequence::DoubleSeq::length() const -{ - return this->_length; -} - -CORBA_Double& ttcp_sequence::DoubleSeq::operator[](CORBA_ULong index) -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -const CORBA_Double& ttcp_sequence::DoubleSeq::operator[](CORBA_ULong index) const -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -// Char seq -ttcp_sequence::CharSeq::CharSeq() - : _maximum(0), - _length(0), - _buffer(0), - _release(CORBA_B_FALSE) -{ -} - -ttcp_sequence::CharSeq::CharSeq(CORBA_ULong max) - : _maximum(max), - _length(0), - _release(CORBA_B_FALSE) -{ - if (this->_maximum > 0){ - this->_buffer = new CORBA_Char[this->_maximum]; - } else { - this->_buffer = 0; - } -} - -ttcp_sequence::CharSeq::CharSeq(CORBA_ULong max, CORBA_ULong length, - CORBA_Char *value, CORBA_Boolean release) - : _maximum(max), - _length(length), - _buffer(value), - _release(release) -{ -} - -ttcp_sequence::CharSeq::~CharSeq() -{ - this->_maximum = this->_length = 0; - if (this->_release != CORBA_B_FALSE) - delete this->_buffer; -} - -void ttcp_sequence::CharSeq::length(CORBA_ULong newlen) -{ - if (newlen > this->_maximum) { - CORBA_Char *temp = new CORBA_Char[newlen]; - ::memcpy(temp, this->_buffer, (size_t(this->_length) * sizeof(CORBA_Char))); - if (this->_release) - delete this->_buffer; - else - this->_release = 1; - - this->_maximum = newlen; - this->_buffer = temp; - } - if (newlen > this->_length) - memset(&this->_buffer[this->_length], 0, size_t(newlen - this->_length) * - sizeof(CORBA_Char)); - this->_length = newlen; -} - -CORBA_ULong ttcp_sequence::CharSeq::length() const -{ - return this->_length; -} - -CORBA_Char& ttcp_sequence::CharSeq::operator[](CORBA_ULong index) -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -const CORBA_Char& ttcp_sequence::CharSeq::operator[](CORBA_ULong index) const -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -//Octet Seq -ttcp_sequence::OctetSeq::OctetSeq() - : _maximum(0), - _length(0), - _buffer(0), - _release(CORBA_B_FALSE) -{ -} - -ttcp_sequence::OctetSeq::OctetSeq(CORBA_ULong max) - : _maximum(max), - _length(0), - _release(CORBA_B_FALSE) -{ - if (this->_maximum > 0){ - this->_buffer = new CORBA_Octet[this->_maximum]; - } else { - this->_buffer = 0; - } -} - -ttcp_sequence::OctetSeq::OctetSeq(CORBA_ULong max, CORBA_ULong length, - CORBA_Octet *value, CORBA_Boolean release) - : _maximum(max), - _length(length), - _buffer(value), - _release(release) -{ -} - -ttcp_sequence::OctetSeq::~OctetSeq() -{ - this->_maximum = this->_length = 0; - if (this->_release != CORBA_B_FALSE) - delete this->_buffer; -} - -void ttcp_sequence::OctetSeq::length(CORBA_ULong newlen) -{ - if (newlen > this->_maximum) { - CORBA_Octet *temp = new CORBA_Octet[newlen]; - ::memcpy(temp, this->_buffer, (size_t(this->_length) * sizeof(CORBA_Octet))); - if (this->_release) - delete this->_buffer; - else - this->_release = 1; - - this->_maximum = newlen; - this->_buffer = temp; - } - if (newlen > this->_length) - memset(&this->_buffer[this->_length], 0, size_t(newlen - this->_length) * - sizeof(CORBA_Octet)); - this->_length = newlen; -} - -CORBA_ULong ttcp_sequence::OctetSeq::length() const -{ - return this->_length; -} - -CORBA_Octet& ttcp_sequence::OctetSeq::operator[](CORBA_ULong index) -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -const CORBA_Octet& ttcp_sequence::OctetSeq::operator[](CORBA_ULong index) const -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - - -//struct seq -ttcp_sequence::StructSeq::StructSeq() - : _maximum(0), - _length(0), - _buffer(0), - _release(CORBA_B_FALSE) -{ -} - -ttcp_sequence::StructSeq::StructSeq(CORBA_ULong max) - : _maximum(max), - _length(0), - _release(CORBA_B_FALSE) -{ - if (this->_maximum > 0){ - this->_buffer = new PerfStruct[this->_maximum]; - } else { - this->_buffer = 0; - } -} - -ttcp_sequence::StructSeq::StructSeq(CORBA_ULong max, CORBA_ULong length, - PerfStruct *value, CORBA_Boolean release) - : _maximum(max), - _length(length), - _buffer(value), - _release(release) -{ -} - -ttcp_sequence::StructSeq::~StructSeq() -{ - this->_maximum = this->_length = 0; - if (this->_release != CORBA_B_FALSE) - delete this->_buffer; -} - -void ttcp_sequence::StructSeq::length(CORBA_ULong newlen) -{ - if (newlen > this->_maximum) { - PerfStruct *temp = new PerfStruct[newlen]; - ::memcpy(temp, this->_buffer, (size_t(this->_length) * sizeof(PerfStruct))); - if (this->_release) - delete this->_buffer; - else - this->_release = 1; - - this->_maximum = newlen; - this->_buffer = temp; - } - if (newlen > this->_length) - memset(&this->_buffer[this->_length], 0, size_t(newlen - this->_length) * - sizeof(PerfStruct)); - this->_length = newlen; -} - -CORBA_ULong ttcp_sequence::StructSeq::length() const -{ - return this->_length; -} - -PerfStruct& ttcp_sequence::StructSeq::operator[](CORBA_ULong index) -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -const PerfStruct& ttcp_sequence::StructSeq::operator[](CORBA_ULong index) const -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - - -/***************** TypeCodes **************/ - -// encapsulated parameters for struct PerfStruct typecode -static const CORBA_Long _oc_PerfStruct [] = { - // strings are encoded as length followed by the string. A length of 1 stands - // for the NULL character - MY_BYTE_SEX, // byte order - 1, 0, // empty string, repoID - 1, 0, // empty string, struct name - 6, // 6 struct elements - - // short - 1, 0, // empty string - tk_short, - - // char - 1, 0, - tk_char, - - // long - 1, 0, - tk_long, - - // octet - 1, 0, - tk_octet, - - // double - 1, 0, - tk_double, - - // padding - 1, 0, - tk_array, - 12, // encapsulation length - MY_BYTE_SEX, - tk_octet, - 8 -}; - - -static CORBA_TypeCode _tc__tc_PerfStruct(tk_struct, - sizeof _oc_PerfStruct, - (unsigned char *) &_oc_PerfStruct, - CORBA_B_FALSE); -CORBA_TypeCode_ptr _tc_PerfStruct = &_tc__tc_PerfStruct; - -// Typecodes for all the sequences - -// StructSeq -static const CORBA_Long _oc_ttcp_sequence_StructSeq [] = { - MY_BYTE_SEX, // byte order - tk_struct, // sequence of struct - 112, // encapsulaton length - MY_BYTE_SEX, // byte order - 1, 0, // empty string, repoID - 1, 0, // empty string, struct name - 6, // 6 struct elements - - // short - 1, 0, // empty string - tk_short, - - // char - 1, 0, - tk_char, - - // long - 1, 0, - tk_long, - - // octet - 1, 0, - tk_octet, - - // double - 1, 0, - tk_double, - - // padding - 1, 0, - tk_array, // array - 12, //encapsulation length - MY_BYTE_SEX, - tk_octet, - 8, - 0, // a length of 0 => unbounded sequence -}; -static CORBA_TypeCode _tc__tc_ttcp_sequence_StructSeq(tk_sequence, - sizeof - _oc_ttcp_sequence_StructSeq, - (unsigned char *) - &_oc_ttcp_sequence_StructSeq, - CORBA_B_FALSE); -CORBA_TypeCode_ptr ttcp_sequence::_tc_StructSeq = &_tc__tc_ttcp_sequence_StructSeq; - -// ShortSeq -static const CORBA_Long _oc_ttcp_sequence_ShortSeq [] = { - MY_BYTE_SEX, // byte order - tk_short, // sequence of short - 0, // a length of 0 => unbounded sequence -}; -static CORBA_TypeCode _tc__tc_ttcp_sequence_ShortSeq(tk_sequence, - sizeof - _oc_ttcp_sequence_ShortSeq, - (unsigned char *) - &_oc_ttcp_sequence_ShortSeq, - CORBA_B_FALSE); -CORBA_TypeCode_ptr ttcp_sequence::_tc_ShortSeq = &_tc__tc_ttcp_sequence_ShortSeq; - -// LongSeq -static const CORBA_Long _oc_ttcp_sequence_LongSeq [] = { - MY_BYTE_SEX, // byte order - tk_long, // sequence of long - 0, // a length of 0 => unbounded sequence -}; -static CORBA_TypeCode _tc__tc_ttcp_sequence_LongSeq(tk_sequence, - sizeof - _oc_ttcp_sequence_LongSeq, - (unsigned char *) - &_oc_ttcp_sequence_LongSeq, - CORBA_B_FALSE); -CORBA_TypeCode_ptr ttcp_sequence::_tc_LongSeq = &_tc__tc_ttcp_sequence_LongSeq; - -// DoubleSeq -static const CORBA_Long _oc_ttcp_sequence_DoubleSeq [] = { - MY_BYTE_SEX, // byte order - tk_double, // sequence of doubles - 0, // a length of 0 => unbounded sequence -}; -static CORBA_TypeCode _tc__tc_ttcp_sequence_DoubleSeq(tk_sequence, - sizeof - _oc_ttcp_sequence_DoubleSeq, - (unsigned char *) - &_oc_ttcp_sequence_DoubleSeq, - CORBA_B_FALSE); -CORBA_TypeCode_ptr ttcp_sequence::_tc_DoubleSeq = &_tc__tc_ttcp_sequence_DoubleSeq; - -// CharSeq -static const CORBA_Long _oc_ttcp_sequence_CharSeq [] = { - MY_BYTE_SEX, // byte order - tk_char, // sequence of chars - 0, // a length of 0 => unbounded sequence -}; -static CORBA_TypeCode _tc__tc_ttcp_sequence_CharSeq(tk_sequence, - sizeof - _oc_ttcp_sequence_CharSeq, - (unsigned char *) - &_oc_ttcp_sequence_CharSeq, - CORBA_B_FALSE); -CORBA_TypeCode_ptr ttcp_sequence::_tc_CharSeq = &_tc__tc_ttcp_sequence_CharSeq; - -//OctetSeq -static const CORBA_Long _oc_ttcp_sequence_OctetSeq [] = { - MY_BYTE_SEX, // byte order - tk_octet, // sequence of octets - 0, // a length of 0 => unbounded sequence -}; -static CORBA_TypeCode _tc__tc_ttcp_sequence_OctetSeq(tk_sequence, - sizeof - _oc_ttcp_sequence_OctetSeq, - (unsigned char *) - &_oc_ttcp_sequence_OctetSeq, - CORBA_B_FALSE); -CORBA_TypeCode_ptr ttcp_sequence::_tc_OctetSeq = &_tc__tc_ttcp_sequence_OctetSeq; - - - -/***************** All the methods ********************/ - -//sendShortSeq -static const TAO_Param_Data ttcp_sequence_sendShortSeq_params [] = { -#ifndef ONEWAY - { _tc_CORBA_Void, - PARAM_RETURN, - 0 - }, -#endif - { ttcp_sequence::_tc_ShortSeq, - PARAM_IN, - 0 - } -}; - -static const TAO_Call_Data ttcp_sequence_sendShortSeq_TAO_Call_Data = { - "sendShortSeq", // opname -#ifndef ONEWAY - CORBA_B_TRUE, // twoway - 2, // param count -#else - CORBA_B_FALSE, // oneway - 1, -#endif - &ttcp_sequence_sendShortSeq_params [0], - 0, 0 -}; - -// stub -void ttcp_sequence::sendShortSeq(const ttcp_sequence::ShortSeq &ttcp_seq, - CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } -#ifndef ONEWAY - // twoway - istub->do_call(env, &ttcp_sequence_sendShortSeq_TAO_Call_Data, 0, &ttcp_seq); -#else - istub->do_call(env, &ttcp_sequence_sendShortSeq_TAO_Call_Data, &ttcp_seq); -#endif -} - -//sendLongSeq -static const TAO_Param_Data ttcp_sequence_sendLongSeq_params [] = { -#ifndef ONEWAY - { _tc_CORBA_Void, - PARAM_RETURN, - 0 - }, -#endif - { ttcp_sequence::_tc_LongSeq, - PARAM_IN, - 0 - } -}; - -static const TAO_Call_Data ttcp_sequence_sendLongSeq_TAO_Call_Data = { - "sendLongSeq", // opname -#ifndef ONEWAY - CORBA_B_TRUE, // twoway - 2, // param count -#else - CORBA_B_FALSE, // oneway - 1, -#endif - &ttcp_sequence_sendLongSeq_params [0], - 0, 0 -}; - -// stub -void ttcp_sequence::sendLongSeq(const ttcp_sequence::LongSeq &ttcp_seq, - CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } -#ifndef ONEWAY - // twoway - istub->do_call(env, &ttcp_sequence_sendLongSeq_TAO_Call_Data, 0, &ttcp_seq); -#else - istub->do_call(env, &ttcp_sequence_sendLongSeq_TAO_Call_Data, &ttcp_seq); -#endif -} - -//sendDoubleSeq -static const TAO_Param_Data ttcp_sequence_sendDoubleSeq_params [] = { -#ifndef ONEWAY - { _tc_CORBA_Void, - PARAM_RETURN, - 0 - }, -#endif - { ttcp_sequence::_tc_DoubleSeq, - PARAM_IN, - 0 - } -}; - -static const TAO_Call_Data ttcp_sequence_sendDoubleSeq_TAO_Call_Data = { - "sendDoubleSeq", // opname -#ifndef ONEWAY - CORBA_B_TRUE, // twoway - 2, // param count -#else - CORBA_B_FALSE, // oneway - 1, -#endif - &ttcp_sequence_sendDoubleSeq_params [0], - 0, 0 -}; - -// stub -void ttcp_sequence::sendDoubleSeq(const ttcp_sequence::DoubleSeq &ttcp_seq, - CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } -#ifndef ONEWAY - // twoway - istub->do_call(env, &ttcp_sequence_sendDoubleSeq_TAO_Call_Data, 0, &ttcp_seq); -#else - istub->do_call(env, &ttcp_sequence_sendDoubleSeq_TAO_Call_Data, &ttcp_seq); -#endif -} - -//sendCharSeq -static const TAO_Param_Data ttcp_sequence_sendCharSeq_params [] = { -#ifndef ONEWAY - { _tc_CORBA_Void, - PARAM_RETURN, - 0 - }, -#endif - { ttcp_sequence::_tc_CharSeq, - PARAM_IN, - 0 - } -}; - -static const TAO_Call_Data ttcp_sequence_sendCharSeq_TAO_Call_Data = { - "sendCharSeq", // opname -#ifndef ONEWAY - CORBA_B_TRUE, // twoway - 2, // param count -#else - CORBA_B_FALSE, // oneway - 1, -#endif - &ttcp_sequence_sendCharSeq_params [0], - 0, 0 -}; - -// stub -void ttcp_sequence::sendCharSeq(const ttcp_sequence::CharSeq &ttcp_seq, - CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } -#ifndef ONEWAY - // twoway - istub->do_call(env, &ttcp_sequence_sendCharSeq_TAO_Call_Data, 0, &ttcp_seq); -#else - istub->do_call(env, &ttcp_sequence_sendCharSeq_TAO_Call_Data, &ttcp_seq); -#endif -} - -//sendOctetSeq -static const TAO_Param_Data ttcp_sequence_sendOctetSeq_params [] = { -#ifndef ONEWAY - { _tc_CORBA_Void, - PARAM_RETURN, - 0 - }, -#endif - { ttcp_sequence::_tc_OctetSeq, - PARAM_IN, - 0 - } -}; - -static const TAO_Call_Data ttcp_sequence_sendOctetSeq_TAO_Call_Data = { - "sendOctetSeq", // opname -#ifndef ONEWAY - CORBA_B_TRUE, // twoway - 2, // param count -#else - CORBA_B_FALSE, // oneway - 1, -#endif - &ttcp_sequence_sendOctetSeq_params [0], - 0, 0 -}; - -// stub -void ttcp_sequence::sendOctetSeq(const ttcp_sequence::OctetSeq &ttcp_seq, - CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } -#ifndef ONEWAY - // twoway - istub->do_call(env, &ttcp_sequence_sendOctetSeq_TAO_Call_Data, 0, &ttcp_seq); -#else - istub->do_call(env, &ttcp_sequence_sendOctetSeq_TAO_Call_Data, &ttcp_seq); -#endif -} - -//sendStructSeq -static const TAO_Param_Data ttcp_sequence_sendStructSeq_params [] = { -#ifndef ONEWAY - { _tc_CORBA_Void, - PARAM_RETURN, - 0 - }, -#endif - { ttcp_sequence::_tc_StructSeq, - PARAM_IN, - 0 - } -}; - -static const TAO_Call_Data ttcp_sequence_sendStructSeq_TAO_Call_Data = { - "sendStructSeq", // opname -#ifndef ONEWAY - CORBA_B_TRUE, // twoway - 2, // param count -#else - CORBA_B_FALSE, // oneway - 1, -#endif - &ttcp_sequence_sendStructSeq_params [0], - 0, 0 -}; - -// stub -void ttcp_sequence::sendStructSeq(const ttcp_sequence::StructSeq &ttcp_seq, - CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } -#ifndef ONEWAY - // twoway - istub->do_call(env, &ttcp_sequence_sendStructSeq_TAO_Call_Data, 0, &ttcp_seq); -#else - istub->do_call(env, &ttcp_sequence_sendStructSeq_TAO_Call_Data, &ttcp_seq); -#endif -} - -// start timer -#ifndef ONEWAY -static const TAO_Param_Data ttcp_sequence_start_timer_params [] = { - { _tc_CORBA_Void, - PARAM_RETURN, - 0 - } -}; -#endif - -static const TAO_Call_Data ttcp_sequence_start_timer_TAO_Call_Data = { - "start_timer", -#ifndef ONEWAY - CORBA_B_TRUE, // twoway - 1, - &ttcp_sequence_start_timer_params [0], -#else - CORBA_B_FALSE, // oneway - 0, - 0, -#endif - 0, 0 -}; - -//stub -void ttcp_sequence::start_timer(CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } -#ifndef ONEWAY - // twoway - istub->do_call(env, &ttcp_sequence_start_timer_TAO_Call_Data); -#else - istub->do_call(env, &ttcp_sequence_start_timer_TAO_Call_Data); -#endif -} - -// stop timer -#ifndef ONEWAY -static const TAO_Param_Data ttcp_sequence_stop_timer_params [] = { - { _tc_CORBA_Void, - PARAM_RETURN, - 0 - } -}; -#endif - -static const TAO_Call_Data ttcp_sequence_stop_timer_TAO_Call_Data = { - "stop_timer", -#ifndef ONEWAY - CORBA_B_TRUE, - 1, - &ttcp_sequence_stop_timer_params[0], -#else - CORBA_B_FALSE, // oneway - 0, - 0, -#endif - 0, 0 -}; - -//stub -void ttcp_sequence::stop_timer(CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } -#ifndef ONEWAY - // twoway - istub->do_call(env, &ttcp_sequence_stop_timer_TAO_Call_Data); -#else - istub->do_call(env, &ttcp_sequence_stop_timer_TAO_Call_Data); -#endif -} diff --git a/TAO/IIOP/tests/Thruput_test/ttcpC.h b/TAO/IIOP/tests/Thruput_test/ttcpC.h deleted file mode 100644 index faeee26c94d..00000000000 --- a/TAO/IIOP/tests/Thruput_test/ttcpC.h +++ /dev/null @@ -1,229 +0,0 @@ -// $Id$ - -/************************************************************************** -This file has been hand-crafted to work with the ORB API of TAO -***************************************************************************/ - -#ifndef TTCP_SEQUENCE_C_H -#define TTCP_SEQUENCE_C_H - -#include -#include - -#include "corba/orb.h" -#include "corba/stub.h" -#include "debug.h" - -// mapping for PerfStruct -struct PerfStruct{ - CORBA_Short s; - CORBA_Char c; - CORBA_Long l; - CORBA_Octet o; - CORBA_Double d; - CORBA_Octet pad[8]; - - - typedef CORBA_Octet pad_slice; - typedef pad_slice *pad_slice_ptr; - - static inline pad_slice *pad_alloc() { - return new CORBA_Octet[8]; - } - - static inline void pad_free(pad_slice *data) { - if (data) delete[] data; - } - -}; -extern CORBA_TypeCode_ptr _tc_PerfStruct; - -class ttcp_sequence; -typedef ttcp_sequence *ttcp_sequence_ptr; -typedef ttcp_sequence_ptr ttcp_sequenceRef; - -class ttcp_sequence: public virtual CORBA_Object -{ -public: - static ttcp_sequence_ptr _duplicate(ttcp_sequence_ptr obj); - static ttcp_sequence_ptr _narrow(CORBA_Object_ptr obj); - static ttcp_sequence_ptr _nil(); - - - class ShortSeq - { - public: - ShortSeq(); - ShortSeq(CORBA_ULong max); - ShortSeq(CORBA_ULong max, - CORBA_ULong length, - CORBA_Short *value, - CORBA_Boolean release = CORBA_B_FALSE - ); - // ShortSeq(const ShortSeq&); - ~ShortSeq(); - CORBA_ULong maximum() const; - void length(CORBA_ULong); - CORBA_ULong length() const; - CORBA_Short &operator[](CORBA_ULong index); - const CORBA_Short &operator[](CORBA_ULong index) const; - private: - CORBA_ULong _maximum; - CORBA_ULong _length; - CORBA_Short *_buffer; - CORBA_Boolean _release; - }; - static CORBA_TypeCode_ptr _tc_ShortSeq; - - class LongSeq - { - public: - LongSeq(); - LongSeq(CORBA_ULong max); - LongSeq(CORBA_ULong max, - CORBA_ULong length, - CORBA_Long *value, - CORBA_Boolean release = CORBA_B_FALSE - ); - // LongSeq(const LongSeq&); - ~LongSeq(); - CORBA_ULong maximum() const; - void length(CORBA_ULong); - CORBA_ULong length() const; - CORBA_Long &operator[](CORBA_ULong index); - const CORBA_Long &operator[](CORBA_ULong index) const; - private: - CORBA_ULong _maximum; - CORBA_ULong _length; - CORBA_Long *_buffer; - CORBA_Boolean _release; - }; - static CORBA_TypeCode_ptr _tc_LongSeq; - - class DoubleSeq - { - public: - DoubleSeq(); - DoubleSeq(CORBA_ULong max); - DoubleSeq(CORBA_ULong max, - CORBA_ULong length, - CORBA_Double *value, - CORBA_Boolean release = CORBA_B_FALSE - ); - // DoubleSeq(const DoubleSeq&); - ~DoubleSeq(); - CORBA_ULong maximum() const; - void length(CORBA_ULong); - CORBA_ULong length() const; - CORBA_Double &operator[](CORBA_ULong index); - const CORBA_Double &operator[](CORBA_ULong index) const; - private: - CORBA_ULong _maximum; - CORBA_ULong _length; - CORBA_Double *_buffer; - CORBA_Boolean _release; - }; - static CORBA_TypeCode_ptr _tc_DoubleSeq; - - class CharSeq - { - public: - CharSeq(); - CharSeq(CORBA_ULong max); - CharSeq(CORBA_ULong max, - CORBA_ULong length, - CORBA_Char *value, - CORBA_Boolean release = CORBA_B_FALSE - ); - // CharSeq(const CharSeq&); - ~CharSeq(); - CORBA_ULong maximum() const; - void length(CORBA_ULong); - CORBA_ULong length() const; - CORBA_Char &operator[](CORBA_ULong index); - const CORBA_Char &operator[](CORBA_ULong index) const; - private: - CORBA_ULong _maximum; - CORBA_ULong _length; - CORBA_Char *_buffer; - CORBA_Boolean _release; - }; - static CORBA_TypeCode_ptr _tc_CharSeq; - - class OctetSeq - { - public: - OctetSeq(); - OctetSeq(CORBA_ULong max); - OctetSeq(CORBA_ULong max, - CORBA_ULong length, - CORBA_Octet *value, - CORBA_Boolean release = CORBA_B_FALSE - ); - // OctetSeq(const OctetSeq&); - ~OctetSeq(); - CORBA_ULong maximum() const; - void length(CORBA_ULong); - CORBA_ULong length() const; - CORBA_Octet &operator[](CORBA_ULong index); - const CORBA_Octet &operator[](CORBA_ULong index) const; - private: - CORBA_ULong _maximum; - CORBA_ULong _length; - CORBA_Octet *_buffer; - CORBA_Boolean _release; - }; - static CORBA_TypeCode_ptr _tc_OctetSeq; - - class StructSeq - { - public: - StructSeq(); - StructSeq(CORBA_ULong max); - StructSeq(CORBA_ULong max, - CORBA_ULong length, - PerfStruct *value, - CORBA_Boolean release = CORBA_B_FALSE - ); - // StructSeq(const StructSeq&); - ~StructSeq(); - CORBA_ULong maximum() const; - void length(CORBA_ULong); - CORBA_ULong length() const; - PerfStruct &operator[](CORBA_ULong index); - const PerfStruct &operator[](CORBA_ULong index) const; - private: - CORBA_ULong _maximum; - CORBA_ULong _length; - PerfStruct *_buffer; - CORBA_Boolean _release; - }; - static CORBA_TypeCode_ptr _tc_StructSeq; - - - // now the methods - virtual void sendShortSeq(const ShortSeq& ttcp_seq, CORBA_Environment &); - virtual void sendLongSeq(const LongSeq& ttcp_seq, CORBA_Environment &); - virtual void sendDoubleSeq(const DoubleSeq& ttcp_seq, CORBA_Environment &); - virtual void sendOctetSeq(const OctetSeq& ttcp_seq, CORBA_Environment &); - virtual void sendCharSeq(const CharSeq& ttcp_seq, CORBA_Environment &); - virtual void sendStructSeq(const StructSeq& ttcp_seq, CORBA_Environment &); - - virtual void start_timer(CORBA_Environment &); - virtual void stop_timer(CORBA_Environment &); - -protected: - ttcp_sequence() {} - ttcp_sequence(STUB_Object *refdata); - virtual ~ttcp_sequence() {} - -private: - ttcp_sequence(const ttcp_sequence &) {} - void operator=(const ttcp_sequence &) {} -}; - -#endif - - - - diff --git a/TAO/IIOP/tests/Thruput_test/ttcpS.cpp b/TAO/IIOP/tests/Thruput_test/ttcpS.cpp deleted file mode 100644 index 33fb95c8bcd..00000000000 --- a/TAO/IIOP/tests/Thruput_test/ttcpS.cpp +++ /dev/null @@ -1,323 +0,0 @@ -// $Id$ - -#include -#include "ttcpS.h" -#include "corba/orb.h" -#include "params.h" -#include "iiopobj.h" -#include "corba/optable.h" // for registering our methods -#include "corba/corbacom.h" - -TAO_Dynamic_Hash_OpTable tao_ttcp_sequence_optable(9); // 8 + 1 operations on our - // interface -// operation database -struct method_db -{ - CORBA_String opname; - TAO_Skeleton skel_ptr; -}; - -static const method_db ttcp_sequence_operations[] = { - {"_is_a", &_skel_ttcp_sequence::_ttcp_sequence_is_a_skel}, - { "sendShortSeq", &_skel_ttcp_sequence::_ttcp_sequence_sendShortSeq_skel}, - { "sendLongSeq", &_skel_ttcp_sequence::_ttcp_sequence_sendLongSeq_skel}, - { "sendDoubleSeq", &_skel_ttcp_sequence::_ttcp_sequence_sendDoubleSeq_skel}, - { "sendOctetSeq", &_skel_ttcp_sequence::_ttcp_sequence_sendOctetSeq_skel}, - { "sendCharSeq", &_skel_ttcp_sequence::_ttcp_sequence_sendCharSeq_skel}, - { "sendStructSeq", &_skel_ttcp_sequence::_ttcp_sequence_sendStructSeq_skel}, - { "start_timer", &_skel_ttcp_sequence::_ttcp_sequence_start_timer_skel}, - { "stop_timer", &_skel_ttcp_sequence::_ttcp_sequence_stop_timer_skel}, - { 0, 0 } -}; - -// constructor -_skel_ttcp_sequence::_skel_ttcp_sequence(const char *obj_name) -{ - CORBA_String_var type_id = "IDL:ttcp_sequence:1.0"; // repository ID - IIOP_Object *data; // IIOP object - CORBA_BOA_ptr oa = TAO_OA_PARAMS::instance()->oa(); // underlying BOA - this->optable_ = &tao_ttcp_sequence_optable; // operation database - CORBA_Long i; - - // insert operation names into the operation table - for (i=0; i < 9; i++) - { - this->optable_->bind(ttcp_sequence_operations[i].opname, - ttcp_sequence_operations[i].skel_ptr); - } - - // setup an IIOP object - data = new IIOP_Object(type_id); - data->profile.iiop_version.major = IIOP::MY_MAJOR; - data->profile.iiop_version.minor = IIOP::MY_MINOR; - data->profile.host = ACE_OS::strdup(oa->get_addr().get_host_name()); - data->profile.port = oa->get_addr().get_port_number(); - data->profile.object_key.length = ACE_OS::strlen(obj_name); - data->profile.object_key.maximum = data->profile.object_key.length; - data->profile.object_key.buffer = new CORBA_Octet [(size_t)data->profile.object_key.length+1]; - ACE_OS::memcpy(data->profile.object_key.buffer, obj_name, - data->profile.object_key.length); // set the object key - this->set_parent(data); // store the IIOP obj reference with ourselves - this->sub_ = this; // set the most derived class to be ourselves - if (oa) oa->bind(data->profile.object_key, this);// register ourselves -} - -// skeleton sendShortSeq -void _skel_ttcp_sequence::_ttcp_sequence_sendShortSeq_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value(ttcp_sequence::_tc_ShortSeq); - ttcp_sequence_ptr impl; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value(0, temp_value, CORBA_ARG_IN, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - ttcp_sequence::ShortSeq *value = (ttcp_sequence::ShortSeq *)nv->value()->value(); - - // now invoke the implementation - impl = (ttcp_sequence_ptr)(obj->get_subclass()); - // now the magic of dynamic binding - impl->sendShortSeq(*value, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, CORBA_B_TRUE); - req.result(any, env); -} - -// skeleton sendLongSeq -void _skel_ttcp_sequence::_ttcp_sequence_sendLongSeq_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value(ttcp_sequence::_tc_LongSeq); - ttcp_sequence_ptr impl; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value(0, temp_value, CORBA_ARG_IN, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - ttcp_sequence::LongSeq *value = (ttcp_sequence::LongSeq *)nv->value()->value(); - - // now invoke the implementation - impl = (ttcp_sequence_ptr)(obj->get_subclass()); - // now the magic of dynamic binding - impl->sendLongSeq(*value, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, CORBA_B_TRUE); - req.result(any, env); -} - -// skeleton sendDoubleSeq -void _skel_ttcp_sequence::_ttcp_sequence_sendDoubleSeq_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value(ttcp_sequence::_tc_DoubleSeq); - ttcp_sequence_ptr impl; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value(0, temp_value, CORBA_ARG_IN, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - ttcp_sequence::DoubleSeq *value = (ttcp_sequence::DoubleSeq *)nv->value()->value(); - - // now invoke the implementation - impl = (ttcp_sequence_ptr)(obj->get_subclass()); - // now the magic of dynamic binding - impl->sendDoubleSeq(*value, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, CORBA_B_TRUE); - req.result(any, env); -} - -// skeleton sendOctetSeq -void _skel_ttcp_sequence::_ttcp_sequence_sendOctetSeq_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value(ttcp_sequence::_tc_OctetSeq); - ttcp_sequence_ptr impl; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value(0, temp_value, CORBA_ARG_IN, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - ttcp_sequence::OctetSeq *value = (ttcp_sequence::OctetSeq *)nv->value()->value(); - - // now invoke the implementation - impl = (ttcp_sequence_ptr)(obj->get_subclass()); - // now the magic of dynamic binding - impl->sendOctetSeq(*value, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, CORBA_B_TRUE); - req.result(any, env); -} - -// skeleton sendCharSeq -void _skel_ttcp_sequence::_ttcp_sequence_sendCharSeq_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value(ttcp_sequence::_tc_CharSeq); - ttcp_sequence_ptr impl; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value(0, temp_value, CORBA_ARG_IN, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - ttcp_sequence::CharSeq *value = (ttcp_sequence::CharSeq *)nv->value()->value(); - - // now invoke the implementation - impl = (ttcp_sequence_ptr)(obj->get_subclass()); - // now the magic of dynamic binding - impl->sendCharSeq(*value, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, CORBA_B_TRUE); - req.result(any, env); -} - -// skeleton sendStructSeq -void _skel_ttcp_sequence::_ttcp_sequence_sendStructSeq_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value(ttcp_sequence::_tc_StructSeq); - ttcp_sequence_ptr impl; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value(0, temp_value, CORBA_ARG_IN, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - ttcp_sequence::StructSeq *value = (ttcp_sequence::StructSeq *)nv->value()->value(); - - // now invoke the implementation - impl = (ttcp_sequence_ptr)(obj->get_subclass()); - // now the magic of dynamic binding - impl->sendStructSeq(*value, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, CORBA_B_TRUE); - req.result(any, env); -} - -// skeleton start_timer -void _skel_ttcp_sequence::_ttcp_sequence_start_timer_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - ttcp_sequence_ptr impl; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - // now invoke the implementation - impl = (ttcp_sequence_ptr)(obj->get_subclass()); - // now the magic of dynamic binding - impl->start_timer(env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, CORBA_B_TRUE); - req.result(any, env); -} - -// skeleton stop_timer -void _skel_ttcp_sequence::_ttcp_sequence_stop_timer_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - ttcp_sequence_ptr impl; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - // now invoke the implementation - impl = (ttcp_sequence_ptr)(obj->get_subclass()); - // now the magic of dynamic binding - impl->stop_timer(env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, CORBA_B_TRUE); - req.result(any, env); -} - -void _skel_ttcp_sequence::_ttcp_sequence_is_a_skel ( - CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env - ) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_String); - char *type_id = "IDL:ttcp_sequence:1.0"; - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - - req.params (nvlist, env); - if (env.exception () != 0) { - dexc (env, "is_a_skel, get params"); - return; - } - - CORBA_Boolean *retval; - CORBA_String value = *(CORBA_String *)nv->value ()->value (); - - cout << "object id = " << ((char *)value) << endl; - if (strcmp ((char *)value, (char *)type_id) == 0 - || strcmp ((char *)value, _tc_CORBA_Object->id(env)) == 0) - retval = new CORBA_Boolean (CORBA_B_TRUE); - else - retval = new CORBA_Boolean (CORBA_B_FALSE); - - CORBA_Any *any = - new CORBA_Any (_tc_CORBA_Boolean, retval, CORBA_B_TRUE); - - req.result (any, env); - dexc (env, "_is_a, result"); -} - diff --git a/TAO/IIOP/tests/Thruput_test/ttcpS.h b/TAO/IIOP/tests/Thruput_test/ttcpS.h deleted file mode 100644 index 14ff95379e3..00000000000 --- a/TAO/IIOP/tests/Thruput_test/ttcpS.h +++ /dev/null @@ -1,70 +0,0 @@ -// $Id$ - -/************************************************************************** -This file has been hand-crafted to work with the ORB API of TAO -***************************************************************************/ - -#ifndef TTCP_SEQUENCE_S_H -#define TTCP_SEQUENCE_S_H - -#include -#include - -#include "ttcpC.h" - - -class _skel_ttcp_sequence; -typedef _skel_ttcp_sequence *_skel_ttcp_sequence_ptr; -typedef _skel_ttcp_sequence *_skel_ttcp_sequence_ref; - -class _skel_ttcp_sequence: public ttcp_sequence -{ -public: - // pure virtual functions implemented by the implementation class - virtual void sendShortSeq(const ShortSeq& ttcp_seq, CORBA_Environment &) = 0; - virtual void sendLongSeq(const LongSeq& ttcp_seq, CORBA_Environment &) = 0; - virtual void sendDoubleSeq(const DoubleSeq& ttcp_seq, CORBA_Environment &) = 0; - virtual void sendOctetSeq(const OctetSeq& ttcp_seq, CORBA_Environment &) = 0; - virtual void sendCharSeq(const CharSeq& ttcp_seq, CORBA_Environment &) = 0; - virtual void sendStructSeq(const StructSeq& ttcp_seq, CORBA_Environment &) = 0; - virtual void start_timer(CORBA_Environment &) = 0; - virtual void stop_timer(CORBA_Environment &) = 0; - - // skeletons that do the upcall - static void _ttcp_sequence_is_a_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _ttcp_sequence_sendShortSeq_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _ttcp_sequence_sendLongSeq_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _ttcp_sequence_sendDoubleSeq_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _ttcp_sequence_sendOctetSeq_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _ttcp_sequence_sendCharSeq_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _ttcp_sequence_sendStructSeq_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _ttcp_sequence_start_timer_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _ttcp_sequence_stop_timer_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); -protected: - _skel_ttcp_sequence(const char *obj_name = 0); - virtual ~_skel_ttcp_sequence() {} -}; - -#endif - - - - diff --git a/TAO/IIOP/tests/Thruput_test/ttcp_decl.h b/TAO/IIOP/tests/Thruput_test/ttcp_decl.h deleted file mode 100644 index 769e4bd2915..00000000000 --- a/TAO/IIOP/tests/Thruput_test/ttcp_decl.h +++ /dev/null @@ -1,153 +0,0 @@ -// $Id$ - - -/* - * T T C P Header File - * - */ - -/* This file includes all the declarations and prototypes */ - -#ifndef _TTCP_DECL_H_ -#define _TTCP_DECL_H_ - -#include "ttcpC.h" - -/* #define BSD43 */ -/* #define BSD42 */ -/* #define BSD41a */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include /* struct itimerval */ -#include -#include -#include -#include -#include - -/* File to be included if Quantify is to be used */ -#if defined (USE_QUANTIFY) -#include -#endif - - -#if defined(SYSV) -#define bcopy(b1,b2,n) memcpy(b2,b1,n) -#define bzero(b1,n) memset(b1,0,n) -#include -#include -#endif - -#if defined(SUNOS54) -struct rusage - { - struct timeval ru_utime, ru_stime; - }; -#define RUSAGE_SELF 0 -#else -#include -#endif - -/* define the data types to be sent */ -#define SEND_SHORT ((unsigned long)(1)) -#define SEND_LONG ((unsigned long)(2)) -#define SEND_CHAR ((unsigned long)(3)) -#define SEND_OCTET ((unsigned long)(4)) -#define SEND_DOUBLE ((unsigned long)(5)) -#define SEND_STRUCT ((unsigned long)(6)) -#define SEND_COMPOSITE ((unsigned long)(7)) - -/************** -// Prototypes -***************/ -void err (char *s); -void mes (char *s); -char *outfmt (double b); -//static void getrusage (int ignored, register struct rusage *ru); -static void gettimeofday (struct timeval *tp, struct timezone *zp); -void prep_timer (void); -double read_timer (char *str, int len); -static void prusage (register struct rusage *r0, struct rusage *r1, struct timeval *e, struct timeval *b, char *outp); -static void tvadd (struct timeval *tsum, struct timeval *t0, struct timeval *t1); -static void tvsub (struct timeval *tdiff, struct timeval *t1, struct timeval *t0); -static void psecs (long l, register char *cp); -void delay (int us); -int mread (int fd, register char *bufp, unsigned n); -int Nread (int fd, void *buf, int count); -int Nwrite (int fd, void *buf, int count); -void FillPattern(register char *cp, register int bufLen, unsigned long dt); -void PrintStats(); -int SetSocketBufferSize(int size, unsigned short isTrans); -int SetNoDelay(); -void ProcessArguments(int argc, char **argv, unsigned short isTrans); - -/* Global variables defined here as extern */ -extern int fromlen; -extern int domain; /* Default is to use Internet domain sockets. */ -extern char *domainname; /* Rendezvous address for UNIX domain sockets. */ -extern int fd; /* fd of network socket */ - -extern int buflen; /* length of buffer */ -extern char *buf; /* ptr to dynamic buffer */ -extern int nbuf; /* number of buffers to send in sinkmode */ - -extern int bufoffset; /* align buffer to this */ -extern int bufalign; /* modulo this */ - -extern int udp; /* 0 = tcp, !0 = udp */ -extern int options; /* socket options */ -extern int one; /* for 4.3 BSD style setsockopt() */ -extern short port; /* TCP port number */ -extern char *host; /* ptr to name of host */ -extern int trans; /* 0=receive, !0=transmit mode */ -extern int sinkmode; /* 0=normal I/O, !0=sink/source mode */ -extern int verbose; /* 0=print basic info, 1=print cpu rate, proc - * resource usage. */ -extern int nodelay; /* set TCP_NODELAY socket option */ -extern int b_flag; /* use mread() */ -extern int sockbufsize; /* socket buffer size to use */ -extern int new_line; /* This is a special flag */ -extern int write_to_file; /* indecates writing to file (default)*/ -extern char fmt; /* output format:k=kilobits,K=kilobytes, - * m = megabits, M = megabytes, - * g = gigabits, G = gigabytes */ -extern int touchdata; /* access data after reading */ - -extern struct hostent *addr; -extern int errno; -extern int optind; -extern char *optarg; -extern char *title; - -extern char stats[128]; -extern unsigned long srcDataSize; /* Total amount of source data */ -extern unsigned long nbytes; /* bytes on net */ -extern unsigned long numCalls; /* # of I/O system calls */ -extern double cput, realt; /* user, real time (seconds) */ -extern unsigned long dt; - -extern unsigned short isDone; - -/* declare struct variables for various message types */ -extern ttcp_sequence::ShortSeq *sseq; -extern ttcp_sequence::LongSeq *lseq; -extern ttcp_sequence::OctetSeq *oseq; -extern ttcp_sequence::DoubleSeq *dseq; -extern ttcp_sequence::CharSeq *cseq; -extern ttcp_sequence::StructSeq *Sseq; - -#endif diff --git a/TAO/IIOP/tests/Thruput_test/ttcp_i.cpp b/TAO/IIOP/tests/Thruput_test/ttcp_i.cpp deleted file mode 100644 index d98fcd1b4b3..00000000000 --- a/TAO/IIOP/tests/Thruput_test/ttcp_i.cpp +++ /dev/null @@ -1,90 +0,0 @@ -// $Id$ - -#include "ttcp_i.h" -#include - -/* the ttcp_i class implementation */ -ttcp_sequence_i::ttcp_sequence_i(const char *obj_name) - :_skel_ttcp_sequence(obj_name) -{ - this->nbytes_ = 0; - numCalls = 0; -} - - -void -ttcp_sequence_i::start_timer (CORBA_Environment &IT_env) -{ - this->nbytes_ = 0; - ::prep_timer (); -} - -void -ttcp_sequence_i::stop_timer (CORBA_Environment &IT_env) -{ - (void) ::read_timer (stats, sizeof (stats)); - ::nbytes = this->nbytes_; - ::PrintStats(); - // reset - this->nbytes_ = 0; - numCalls = 0; -#if defined (USE_QUANTIFY) - quantify_stop_recording_data(); - ACE_Reactor::end_event_loop(); - cerr << "*********** just before exiting " << endl; -#endif -} - -void -ttcp_sequence_i::sendShortSeq(const ttcp_sequence::ShortSeq& ttcp_seq, CORBA_Environment &IT_env) -{ - numCalls++; - this->nbytes_ += ttcp_seq.length()*sizeof(CORBA_Short); -} - -void -ttcp_sequence_i::sendLongSeq(const ttcp_sequence::LongSeq& ttcp_seq, CORBA_Environment &IT_env) -{ - numCalls++; - this->nbytes_ += ttcp_seq.length()*sizeof(CORBA_Long) ; -} - -void -ttcp_sequence_i::sendOctetSeq(const ttcp_sequence::OctetSeq& ttcp_seq, CORBA_Environment &IT_env) -{ - numCalls++; - this->nbytes_ += ttcp_seq.length()*sizeof(CORBA_Octet) ; -} - -void -ttcp_sequence_i::sendDoubleSeq(const ttcp_sequence::DoubleSeq& ttcp_seq, CORBA_Environment &IT_env) -{ - numCalls++; - this->nbytes_ += ttcp_seq.length()*sizeof(CORBA_Double) ; -} - -void -ttcp_sequence_i::sendCharSeq(const ttcp_sequence::CharSeq& ttcp_seq, CORBA_Environment &IT_env) -{ - numCalls++; - this->nbytes_ += ttcp_seq.length()*sizeof(CORBA_Char) ; -} - -void -ttcp_sequence_i::sendStructSeq(const ttcp_sequence::StructSeq& ttcp_seq, CORBA_Environment &IT_env) -{ - numCalls++; - this->nbytes_ += ttcp_seq.length()*sizeof(PerfStruct) ; -#ifdef DEBUG - // cout << "Bytes received so far = " << this->nbytes_ << endl; -#endif -} - - - - - - - - - diff --git a/TAO/IIOP/tests/Thruput_test/ttcp_i.h b/TAO/IIOP/tests/Thruput_test/ttcp_i.h deleted file mode 100644 index 71d2266e334..00000000000 --- a/TAO/IIOP/tests/Thruput_test/ttcp_i.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - - -// ttcp_i.h -// -// This header file provides facility to use it either as a BOA approach or as -// a TIE approach. -// -#if !defined (TTCP_I_H) -#define TTCP_I_H - -#include "ttcp_decl.h" -#include "ttcpS.h" - -/* define the data types to be sent */ -#define SEND_SHORT ((unsigned long)(1)) -#define SEND_LONG ((unsigned long)(2)) -#define SEND_CHAR ((unsigned long)(3)) -#define SEND_OCTET ((unsigned long)(4)) -#define SEND_DOUBLE ((unsigned long)(5)) -#define SEND_STRUCT ((unsigned long)(6)) - - -class ttcp_sequence_i: public _skel_ttcp_sequence -{ -public: - ttcp_sequence_i(const char *obj_name = 0); - - virtual void sendShortSeq (const ttcp_sequence::ShortSeq& ttcp_seq, - CORBA_Environment &IT_env); - virtual void sendLongSeq (const ttcp_sequence::LongSeq& ttcp_seq, - CORBA_Environment &IT_env); - virtual void sendDoubleSeq (const ttcp_sequence::DoubleSeq& ttcp_seq, - CORBA_Environment &IT_env); - virtual void sendCharSeq (const ttcp_sequence::CharSeq& ttcp_seq, - CORBA_Environment &IT_env); - virtual void sendStructSeq (const ttcp_sequence::StructSeq& ttcp_seq, - CORBA_Environment &IT_env); - virtual void sendOctetSeq (const ttcp_sequence::OctetSeq& ttcp_seq, - CORBA_Environment &IT_env); - - /* Routines to calculate the time required to transfer */ - virtual void start_timer (CORBA_Environment &IT_env); - virtual void stop_timer (CORBA_Environment &IT_env); - -private: - unsigned long nbytes_; -}; - -#endif // defined (TTCP_I_H) - diff --git a/TAO/IIOP/tests/Thruput_test/utils.cpp b/TAO/IIOP/tests/Thruput_test/utils.cpp deleted file mode 100644 index f1e30507799..00000000000 --- a/TAO/IIOP/tests/Thruput_test/utils.cpp +++ /dev/null @@ -1,561 +0,0 @@ -// $Id$ - -#include "ttcp_decl.h" - -int SetSocketBufferSize(int size, unsigned short isTrans) -{ - // go thru open file descriptors and check if its is a socket and - // if so, set its socket size to "size" - struct rlimit rlm; - memset(&rlm, 0, sizeof(struct rlimit)); - (void) getrlimit(RLIMIT_NOFILE, &rlm); - cout << "Total file descriptors = " << rlm.rlim_max << endl; - for (int i=3; i < rlm.rlim_max; i++){ - if (isTrans) - (void) setsockopt(i, SOL_SOCKET, SO_SNDBUF, - (char *) &size, sizeof(size)); - else - (void) setsockopt(i, SOL_SOCKET, SO_RCVBUF, - (char *) &size, sizeof(size)); - } - return 1; -} - -void -err (char *s) -{ - fprintf (stderr, "ttcp%s: ", trans ? "-t" : "-r"); - perror (s); - fprintf (stderr, "errno=%d\n", errno); - exit (1); -} - -void -mes (char *s) -{ - fprintf (stderr, "ttcp%s: %s\n", trans ? "-t" : "-r", s); -} - -char * -outfmt (double b) -{ - static char obuf[50]; - switch (fmt) - { - case 'G': - sprintf (obuf, "%.2f GB", b / 1024.0 / 1024.0 / 1024.0); - break; - default: - case 'K': - sprintf (obuf, "%.2f KB", b / 1024.0); - break; - case 'M': - sprintf (obuf, "%.2f MB", b / 1024.0 / 1024.0); - break; - case 'g': - sprintf (obuf, "%.2f Gbit", b * 8.0 / 1024.0 / 1024.0 / 1024.0); - break; - case 'k': - sprintf (obuf, "%.2f Kbit", b * 8.0 / 1024.0); - break; - case 'm': - sprintf (obuf, "%.2f Mbit", b * 8.0 / 1024.0 / 1024.0); - break; - } - return obuf; -} - -static struct itimerval itime0; /* Time at which timing started */ -static struct rusage ru0; /* Resource utilization at the start */ - -#if defined(SYSV) -/*ARGSUSED */ -static void -getrusage (int ignored, register struct rusage *ru) -{ - struct tms buf; - - times (&buf); - - /* Assumption: HZ <= 2147 (LONG_MAX/1000000) */ - ru->ru_stime.tv_sec = buf.tms_stime / HZ; - ru->ru_stime.tv_usec = ((buf.tms_stime % HZ) * 1000000) / HZ; - ru->ru_utime.tv_sec = buf.tms_utime / HZ; - ru->ru_utime.tv_usec = ((buf.tms_utime % HZ) * 1000000) / HZ; -} - -/*ARGSUSED */ -static void -gettimeofday (struct timeval *tp, struct timezone *zp) -{ - tp->tv_sec = time (0); - tp->tv_usec = 0; -} -#endif /* SYSV */ -/* - * P R E P _ T I M E R - */ -void -prep_timer () -{ - itime0.it_interval.tv_sec = 0; - itime0.it_interval.tv_usec = 0; - itime0.it_value.tv_sec = LONG_MAX / 22; /* greatest possible value , itimer() count backwards */ - itime0.it_value.tv_usec = 0; - - - getrusage (RUSAGE_SELF, &ru0); - - /* Init REAL Timer */ - if (setitimer (ITIMER_REAL, &itime0, NULL)) - { - perror ("Setting 'itimer' REAL failed"); - return; - } - -} - -/* - * R E A D _ T I M E R - * - */ -double -read_timer (char *str, int len) -{ - struct itimerval itimedol; - struct rusage ru1; - struct timeval td; - struct timeval tend, tstart; - char line[132]; - - getrusage (RUSAGE_SELF, &ru1); - - if (getitimer (ITIMER_REAL, &itimedol)) - { - perror ("Getting 'itimer' REAL failed"); - return (0.0); - } - - prusage (&ru0, &ru1, &itime0.it_value, &itimedol.it_value, line); - (void) strncpy (str, line, len); - - /* Get real time */ - tvsub (&td, &itime0.it_value, &itimedol.it_value); - realt = td.tv_sec + ((double) td.tv_usec) / 1000000; - - /* Get CPU time (user+sys) */ - tvadd (&tend, &ru1.ru_utime, &ru1.ru_stime); - tvadd (&tstart, &ru0.ru_utime, &ru0.ru_stime); - tvsub (&td, &tend, &tstart); - cput = td.tv_sec + ((double) td.tv_usec) / 1000000; - if (cput < 0.00001) - cput = 0.00001; - return (cput); -} - -static void -prusage (register struct rusage *r0, struct rusage *r1, - struct timeval *e, struct timeval *b, char *outp) -{ - struct timeval tdiff; - register time_t t; - register char *cp; - register int i; - int ms; - - t = (r1->ru_utime.tv_sec - r0->ru_utime.tv_sec) * 100 + - (r1->ru_utime.tv_usec - r0->ru_utime.tv_usec) / 10000 + - (r1->ru_stime.tv_sec - r0->ru_stime.tv_sec) * 100 + - (r1->ru_stime.tv_usec - r0->ru_stime.tv_usec) / 10000; - ms = (e->tv_sec - b->tv_sec) * 100 + (e->tv_usec - b->tv_usec) / 10000; - -#define END(x) {while(*x) x++;} -#if defined(SYSV) - cp = "%Uuser %Ssys %Ereal %P"; -#else -#if defined(sgi) /* IRIX 3.3 will show 0 for %M,%F,%R,%C */ - cp = "%Uuser %Ssys %Ereal %P %Mmaxrss %F+%Rpf %Ccsw"; -#else - cp = "%Uuser %Ssys %Ereal %P %Xi+%Dd %Mmaxrss %F+%Rpf %Ccsw"; -#endif -#endif - for (; *cp; cp++) - { - if (*cp != '%') - *outp++ = *cp; - else if (cp[1]) - switch (*++cp) - { - - case 'U': - tvsub (&tdiff, &r1->ru_utime, &r0->ru_utime); - sprintf (outp, "%d.%01d", tdiff.tv_sec, tdiff.tv_usec / 100000); - END (outp); - break; - - case 'S': - tvsub (&tdiff, &r1->ru_stime, &r0->ru_stime); - sprintf (outp, "%d.%01d", tdiff.tv_sec, tdiff.tv_usec / 100000); - END (outp); - break; - - case 'E': - psecs (ms / 100, outp); - END (outp); - break; - - case 'P': - sprintf (outp, "%d%%", (int) (t * 100 / ((ms ? ms : 1)))); - END (outp); - break; - -#if !defined(SYSV) - case 'W': - i = r1->ru_nswap - r0->ru_nswap; - sprintf (outp, "%d", i); - END (outp); - break; - - case 'X': - sprintf (outp, "%d", t == 0 ? 0 : (r1->ru_ixrss - r0->ru_ixrss) / t); - END (outp); - break; - - case 'D': - sprintf (outp, "%d", t == 0 ? 0 : - (r1->ru_idrss + r1->ru_isrss - (r0->ru_idrss + r0->ru_isrss)) / t); - END (outp); - break; - - case 'K': - sprintf (outp, "%d", t == 0 ? 0 : - ((r1->ru_ixrss + r1->ru_isrss + r1->ru_idrss) - - (r0->ru_ixrss + r0->ru_idrss + r0->ru_isrss)) / t); - END (outp); - break; - - case 'M': - sprintf (outp, "%d", r1->ru_maxrss / 2); - END (outp); - break; - - case 'F': - sprintf (outp, "%d", r1->ru_majflt - r0->ru_majflt); - END (outp); - break; - - case 'R': - sprintf (outp, "%d", r1->ru_minflt - r0->ru_minflt); - END (outp); - break; - - case 'I': - sprintf (outp, "%d", r1->ru_inblock - r0->ru_inblock); - END (outp); - break; - - case 'O': - sprintf (outp, "%d", r1->ru_oublock - r0->ru_oublock); - END (outp); - break; - case 'C': - sprintf (outp, "%d+%d", r1->ru_nvcsw - r0->ru_nvcsw, - r1->ru_nivcsw - r0->ru_nivcsw); - END (outp); - break; -#endif /* !SYSV */ - } - } - *outp = '\0'; -} - -static void -tvadd (struct timeval *tsum, struct timeval *t0, struct timeval *t1) -{ - - tsum->tv_sec = t0->tv_sec + t1->tv_sec; - tsum->tv_usec = t0->tv_usec + t1->tv_usec; - if (tsum->tv_usec > 1000000) - tsum->tv_sec++, tsum->tv_usec -= 1000000; -} - -static void -tvsub (struct timeval *tdiff, struct timeval *t1, struct timeval *t0) -{ - - tdiff->tv_sec = t1->tv_sec - t0->tv_sec; - tdiff->tv_usec = t1->tv_usec - t0->tv_usec; - if (tdiff->tv_usec < 0) - tdiff->tv_sec--, tdiff->tv_usec += 1000000; -} - -static void -psecs (long l, register char *cp) -{ - register int i; - - i = l / 3600; - if (i) - { - sprintf (cp, "%d:", i); - END (cp); - i = l % 3600; - sprintf (cp, "%d%d", (i / 60) / 10, (i / 60) % 10); - END (cp); - } - else - { - i = l; - sprintf (cp, "%d", i / 60); - END (cp); - } - i %= 60; - *cp++ = ':'; - sprintf (cp, "%d%d", i / 10, i % 10); -} - -/* - * N R E A D - */ -int -Nread (int fd, void *buf, int count) -{ - struct sockaddr_in from; - int len = sizeof (from); - register int cnt; - if (udp) - { - cnt = recvfrom (fd, (char *) buf, count, 0, (struct sockaddr *) &from, &len); - numCalls++; - } - else - { - if (b_flag) - cnt = mread (fd, (char *) buf, count); /* fill buf */ - else - { - cnt = read (fd, buf, count); - numCalls++; - } - if (touchdata && cnt > 0) - { - register int c = cnt, sum; - register char *b = (char *) buf; - while (c--) - sum += *b++; - } - } - return (cnt); -} - - -/* - * N W R I T E - */ -int -Nwrite (int fd, void *buf, int count) -{ - return 0; -} - -void -delay (int us) -{ - struct timeval tv; - - tv.tv_sec = 0; - tv.tv_usec = us; - (void) select (1, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, &tv); -} - -/* - * M R E A D - * - * This function performs the function of a read(II) but will - * call read(II) multiple times in order to get the requested - * number of characters. This can be necessary because - * network connections don't deliver data with the same - * grouping as it is written with. Written by Robert S. Miles, BRL. - */ -int -mread (int fd, register char *bufp, unsigned n) -{ - register unsigned count = 0; - register int nread; - - do - { - nread = read (fd, bufp, n - count); - numCalls++; - if (nread < 0) - { - perror ("ttcp_mread"); - return (-1); - } - if (nread == 0) - return ((int) count); - count += (unsigned) nread; - bufp += nread; - } - while (count < n); - - return ((int) count); -} - -void -FillPattern (register char *cp, register int bufLen, unsigned long dt) -{ - unsigned long - num, i; - - switch(dt){ - case SEND_SHORT: - { - register short *SeqPtr = (short *)cp; - num = bufLen/sizeof(short); - for (i=0; i < num; i++) - SeqPtr[i] = (short)lrand48(); - sseq = new ttcp_sequence::ShortSeq(num,num, SeqPtr); - } - break; - case SEND_LONG: - { - register long *SeqPtr = (long *)cp; - num = bufLen/sizeof(long); - for (i=0; i < num; i++) - SeqPtr[i] = lrand48(); - lseq = new ttcp_sequence::LongSeq(num, num, SeqPtr); - } - break; - case SEND_DOUBLE: - { - register double *SeqPtr = (double *)cp; - num = bufLen/sizeof(double); - for (i=0; i < num; i++) - SeqPtr[i] = drand48(); - dseq = new ttcp_sequence::DoubleSeq(num, num, SeqPtr); - } - break; - case SEND_CHAR: - { - register CORBA_Char *SeqPtr = (CORBA_Char *)cp; - register char c = 0; - num = bufLen/sizeof(char); - for(i=0; i < num; i++){ - while (!isprint(c & 0x7f)) - c++; - SeqPtr[i] = (c++ & 0x7f); - } - cseq = new ttcp_sequence::CharSeq(num, num, SeqPtr); - } - break; - case SEND_STRUCT: - { - register PerfStruct *SeqPtr = (PerfStruct *)cp; - register char c = 0; - num = bufLen/sizeof(PerfStruct); - for (i=0; i < num; i++){ - SeqPtr[i].s = (short)lrand48(); - SeqPtr[i].l = lrand48(); - SeqPtr[i].d = drand48(); - while (!isprint(c & 0x7f)) - c++; - SeqPtr[i].c = (c++ & 0x7f); - while (!isprint(c & 0x7f)) - c++; - SeqPtr[i].o = (unsigned char)(c++ & 0x7f); - } - Sseq = new ttcp_sequence::StructSeq(num, num, SeqPtr); - - } - break; - case SEND_OCTET: - default: - { - register CORBA_Octet *SeqPtr = (CORBA_Octet *)cp; - register char c = 0; - num = bufLen/sizeof(CORBA_Octet); - for(i=0; i < num; i++){ - while (!isprint(c & 0x7f)) - c++; - SeqPtr[i] = (c++ & 0x7f); - } - oseq = new ttcp_sequence::OctetSeq(num, num, SeqPtr); - } - break; - } -} -void PrintStats() -{ - if (cput <= 0.0) - cput = 0.001; - if (realt <= 0.0) - realt = 0.001; - -//#if defined (LM_RESULTS) - if (trans && (title != 0)) - { - double tmp; - FILE *outFile; - char filename[BUFSIZ]; - - strcpy(filename, title); - switch(dt){ - case SEND_SHORT: - strcat(filename, ".shortSeq.results"); - break; - case SEND_LONG: - strcat(filename, ".longSeq.results"); - break; - case SEND_DOUBLE: - strcat(filename, ".doubleSeq.results"); - break; - case SEND_CHAR: - strcat(filename, ".charSeq.results"); - break; - case SEND_STRUCT: - strcat(filename, ".structSeq.results"); - break; - case SEND_COMPOSITE: - strcat(filename, ".compositeSeq.results"); - break; - case SEND_OCTET: - default: - strcat(filename, ".octetSeq.results"); - break; - } - outFile = fopen (filename, "a+"); - if (new_line) - fprintf (outFile, "\n -l %ldk \t", buflen / 1024); - tmp = ((double) nbytes) / realt; - fprintf (outFile, "%.2f ", tmp * 8.0 / 1024.0 / 1024.0); - fclose (outFile); - } -//#endif - - fprintf (stdout, - "ttcp%s: %ld bytes in %.2f real seconds = %s/sec +++\n", - trans ? "-t" : "-r", - nbytes, realt, outfmt (((double) nbytes) / realt)); - if (verbose) - { - fprintf (stdout, - "ttcp%s: %ld bytes in %.2f CPU seconds = %s/cpu sec\n", - trans ? "-t" : "-r", - nbytes, cput, outfmt (((double) nbytes) / cput)); - } - fprintf (stdout, - "ttcp%s: %d Server Method calls, msec/call = %.2f, calls/sec = %.2f\n", - trans ? "-t" : "-r", - numCalls, - 1024.0 * realt / ((double) numCalls), - ((double) numCalls) / realt); - fprintf (stdout, "ttcp%s: %s\n", trans ? "-t" : "-r", stats); - if (verbose) - { - fprintf (stdout, - "ttcp%s: buffer address %#x\n", - trans ? "-t" : "-r", - buf); - } -} diff --git a/TAO/LICENSE.sun b/TAO/LICENSE.sun deleted file mode 100644 index 8bb53b36807..00000000000 --- a/TAO/LICENSE.sun +++ /dev/null @@ -1,64 +0,0 @@ -This notice applies to all files in this software distribution that -were originally derived from SunSoft IIOP code (these files contain -Sun Microsystems copyright notices). - -COPYRIGHT AND LICENSING ------------------------ - -Copyright 1995 Sun Microsystems, Inc. -Printed in the United States of America. -All Rights Reserved. - -This software product (LICENSED PRODUCT), implementing the Object Management -Group's "Internet Inter-ORB Protocol", is protected by copyright and is -distributed under the following license restricting its use. Portions of -LICENSED PRODUCT may be protected by one or more U.S. or foreign patents, or -pending applications. - -LICENSED PRODUCT is made available for your use provided that you include -this license and copyright notice on all media and documentation and the -software program in which this product is incorporated in whole or part. - -You may copy, modify, distribute, or sublicense the LICENCED PRODUCT without -charge as part of a product or software program developed by you, so long as -you preserve the functionality of interoperating with the Object Management -Group's "Internet Inter-ORB Protocol" version one. However, any uses other -than the foregoing uses shall require the express written consent of Sun -Microsystems, Inc. - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of the LICENSED PRODUCT as permitted herein. - -This license is effective until terminated by Sun for failure to comply with -this license. Upon termination, you shall destroy or return all code and -documentation for the LICENSED PRODUCT. - -LICENSED PRODUCT IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING -THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR -PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF DEALING, USAGE OR -TRADE PRACTICE. - -LICENSED PRODUCT IS PROVIDED WITH NO SUPPORT AND WITHOUT ANY OBLIGATION ON -THE PART OF SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES TO ASSIST IN ITS -USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -LICENSED PRODUCT OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to restrictions -as set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and -Computer Software clause at DFARS 252.227-7013 and FAR 52.227-19. - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems and the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - diff --git a/TAO/Makefile b/TAO/Makefile deleted file mode 100644 index 1cf9054bda4..00000000000 --- a/TAO/Makefile +++ /dev/null @@ -1,95 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Top-level Makefile for the TAO -#---------------------------------------------------------------------------- - -#### The "release" targets can be used to create the ACE+TAO kit. By -#### default, it creates a new beta release. To create a new minor or -#### major release, add "REL=minor" or "REL=major", respectively, to -#### the make invocation. -#### -#### To see what make release would do without actually doing it, add -#### "CHECK=-n" to the invocation. - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -INFO = README \ - VERSION - -DIRS = tao \ - TAO_IDL \ - orbsvcs \ - tests \ - -CLONE = Makefile \ - tao \ - TAO_IDL \ - orbsvcs \ - tests \ - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nolocal.GNU - -# For the following to work you need to compile the -# $(ACE_ROOT)/bin/clone.cpp file and install it in your ~/bin -# directory (or some place similar). - -.PHONY: clone -clone: - @for dir in $(CLONE) ;\ - do \ - (clone -s $(ACE_ROOT)/$$dir $$dir) \ - done - -CONTROLLED_FILES = ChangeLog \ - TAO-INSTALL.html \ - COPYING \ - COPYING.sun \ - release.chk \ - rules.tao.GNU \ - taoconfig.mk \ - docs \ - LICENSE.sun \ - Makefile \ - README \ - README.sun \ - tao \ - TAO_IDL \ - orbsvcs \ - tests \ - VERSION - -RELEASE_FILES = $(addprefix TAO/,$(CONTROLLED_FILES)) \ - TAO/INSTALL \ - TAO/orbsvcs/README - -.PHONY: INSTALL -INSTALL: TAO-INSTALL.html - @lynx -dump $^ > $@; chmod a+r $@ - -orbsvcs/README: docs/orbsvcs.html - @lynx -dump $^ > $@; chmod a+r $@ - -.PHONY: release - -REL = beta -CHECK = - -#### The call to make_release below doesn't actually create the kit. -#### If creating a release in /project/adaptive/ACE_wrappers/TAO, it -#### just updates the VERSION and ChangeLog files, and tags the release. -#### Then, make releasetao is invoked to actually create the kit. -release: INSTALL - @$(ACE_ROOT)/bin/make_release $(CHECK) -k tao -t $(REL) \ - -c "$(CONTROLLED_FILES)" -r "$(RELEASE_FILES)" && \ - cd .. && make releasetao diff --git a/TAO/README b/TAO/README deleted file mode 100644 index 822803d1567..00000000000 --- a/TAO/README +++ /dev/null @@ -1,77 +0,0 @@ -Welcome to the latest release of The ACE ORB (TAO). TAO is an -implementation of a CORBA 2.x-compliant ORB that supports real-time -extensions. Please see http://www.cs.wustl.edu/~schmidt/TAO.html for -more information on TAO. - -Some detailed information on this version of TAO is available in the -'docs' subdirectory in HTML format. - -The current alpha release of TAO contains the following: - - * An ORB Core based on ACE C++ components. This ORB Core provides 3 - concurrency models: (1) Reactive, (2) Thread-per-Connection, - and (3) Thread-per-Rate (which is optimized for certain types - of deterministic real-time systems). - - * An optimized version of the SunSoft IIOP protocol - interpreter; - - * An implementation of the Portable Object Adapter (POA) - specification. - - * A prototype IDL compiler, based on the SunSoft IDL - compiler. This IDL compiler generates stubs and skeletons that - utilize the SunSoft IIOP protocol engine. - - * A Real-time Scheduling Service that determines the priority at - which Client requests are dispatched by the ORB. - - * A Real-time Event Service that dispatches CORBA events in - real-time. - - * Implementations of the CORBA COS Naming service and Trader - service, as well as a logging service. - - * Various tests illustrating how to use TAO. - -The current version of TAO contains source code and tests that are -around 1.5 Megabytes when compressed using GNU gzip. - -We've gotten TAO to interoperate with other ORBs (e.g., Orbix, -VisiBroker, miniCOOL, and CORBAplus), so we're confident that its -implementation of IIOP is robust. We're currently working on the -following features for TAO: - - * An IDL compiler that generates optimized compiled stubs and - skeletons. For this, we're planning to use the Flick IDL - compiler from University of Utah. - - * A highly extensible, highly optimized set of request - demultiplexing strategies that provide constant time lookup of - servants based on object keys and operation names contained in - CORBA requests. - - * An implementation of the new OMG Audio/Video Streaming - service, as well as the Property service. - -We plan to release these features throughout the spring of 1998. You -can keep track of our progress online at URL - -http://www.cs.wustl.edu/~schmidt/ACE_wrappers/TAO/docs/releasenotes/ - -A quick build note for users who have used ACE with other ORBs: -linking TAO with a version of ACE that must also be linked against -another ORB vendor's library, e.g., liborbix.so, will produce -undefined and most likely unpredictable and erroneous results. - -We welcome suggestions for improvement, bug fixes, portability -enhancements, etc. and will strive to integrate correct bug fixes -quickly! If you have any questions or problems with TAO, please post -them to the ACE mailing list (ace-users@cs.wustl.edu) or send email to -Douglas C. Schmidt (schmidt@cs.wustl.edu) and Chris Cleeland -(cleeland@cs.wustl.edu). - -Thanks, - - Douglas C. Schmidt - schmidt@cs.wustl.edu diff --git a/TAO/README.sun b/TAO/README.sun deleted file mode 100644 index 5fbfaeacbdc..00000000000 --- a/TAO/README.sun +++ /dev/null @@ -1,256 +0,0 @@ -======================================== - -This file contains the original README that came with the SunSoft IIOP -release. This information in this file is historical in nature and -the much of the specific information probably is inaccurate with -respect to the current state of TAO. Please see the ./README file -that comes with TAO for up-to-date information. - -Specifically, some of the files referred to below have been renamed in -TAO. - -======================================== - -@(#)README 1.2 97/02/03 - -Inter-ORB Engine -================ - -02-Feb, 1997 -Version 1.4 - - -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- - - As of today, this is the most current version of the "IIOP Engine". - It's doubtful that a later one will be released by Sun Microsystems. - - This still supports only IIOP v1.0 (no fragmentation or security - extensions) and contains a few bugs (GIOP service context typecode - is wrong). This version was completed before the COM/CORBA - "Part A" RFP cycle, as well as the "Secure IOP" work. - - It's different from other versions in that it has (a) the benefit - of much performance work, including support for multithreading, - (b) the source code is reorganized to display more of the internal - structure, and (c) it incorporates a simple COM glue layer (which - is not the same as the one later standardized by the OMG). There - is surely more; for example, experimental XDR marshaling support. - - Documentation hasn't particularly been updated. It'll need more work - to run "out of the box" since it doesn't use autoconf just now. - - Please drop me a line (brownell@ix.netcom.com) if you're using this. - - - Dave - - -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- - - -INTRODUCTION ------------- -Welcome to the Inter-ORB Engine! This is the source code version of -SunSoft's portable implementation of the CORBA 2.0 mandatory "IIOP" -interoperability protocol for networked ORBs. - -This is a preliminary version. This software is made available AS IS and -WITH NO GUARANTEES. Please make sure you read and understand the copyright -and license notice under which this software is distributed. This notice -may be found in the "LICENSE" file that is part of this distribution, and -also in the corba/orb.hh header file used by every source file. Note that -both commercial and noncommercial usage is allowed. - -The rest of this document includes these sections: - - - ENGINE OVERVIEW - - TARGET AUDIENCE - - HOW TO OBTAIN THIS SOFTWARE - - CONTACT POINT AND WORKING ALIAS - - ABOUT THIS IIOP SOFTWARE DISTRIBUTION - - WHAT ARE: IOP, IIOP, GIOP, ESIOP, AND DCE-CIOP? - -For instructions on how to build and test this software, see the file -named "BUILDING" in the "docs" directory. [Note, this is renamed to -TAO-Install.html for TAO]. - -ENGINE OVERVIEW ---------------- -The Inter-ORB Engine implementation is composed of four parts. Each of -these is found in a top level directory with the name used here: - - * "runtime" ... this defines the public binary interface to the engine, as - used by application (and test) programs. It has three main parts: - - - A CDR (Common Data Representation) marshaling engine, which encodes - simple OMG-IDL data types directly and uses a TypeCode interpreter - to marshal complex ones; - - - The TypeCode interpreter is used to manipulate all legal OMG-IDL - data types using just standard OMG-IDL TypeCodes; - - - The runtime framework itself includes a partial ORB implementation. - Its programming interfaces are specified in CORBA and it provides - the OMG-IDL C++ mapping of those abstractions in most cases; - - * "bridge" ... this is an IIOP-specific module which talks to the runtime - and to TCP-based sockets to send, receive, and dispatch IIOP messages. - - * "test" ... code for a few basic functional tests is included. - - * "docs" ... text files, such as this one, describe the way the - implementation works. This is oriented toward people who are - maintaining, porting, or otherwise enhancing this code. - -The package is not a full ORB. It doesn't support the full set of CORBA -APIs, an IDL compiler, an Interface Repository, a standard object adapter, -and more. You could use this software to help build an ORB, but you -would need to enhance it. - -If you have an interest in using an IDL compiler to generate TypeCodes, -stubs, and/or skeletons, you may be interested in the portable front end -for an OMG-IDL compiler which is available through the OMG FTP server. -Further information may be found in this file: - - ftp.omg.org:/pub/OMG_IDL/ANNOUNCEMENT - - -TARGET AUDIENCE ---------------- -Who should use this release? - -- Organizations which are providing their own implementations of the IIOP - should use this software to perform protocol testing, helping to ensure - that they can in fact interoperate with each other. - -- Bridge builders, including ORB implementors who have their own ORB - protocols, can use this software to bootstrap bridge construction work. - This includes bridge builders working to bridge COM and CORBA. - -- ORB implementors can use this to acquire a TypeCode interpreter. (ORBs - compliant with CORBA 2.0 CORE need one to support the dynamic runtime - typing APIs, such as Any, DII, and DSI.) - -- ORB implementors without their own protocols can use this software to add - networked object capabilities to their systems, using the Internet IOP. - -- Implementors of systems which are intended to talk with ORBs may wish to - use this software when bridging to ORBs from non-CORBA systems. A few - examples: (a) specialized applications that don't need a full ORB as - infrastructure; (b) "legacy" code which needs either to use an ORB or to - be used by one; (c) users or providers other object systems, such as - programming environments, which want ORB connectivity. - -- And of course, this is the core of a portable ORB, and may be used as - one by providing the rest of the CORBA 2.0 programming interfaces and - development tools such as one or more IDL compilers. - - -HOW TO OBTAIN THIS SOFTWARE ---------------------------- -There are several distribution sites for this software, and it may also be -restributed through other ones. Not all sites will necessarily have the -most recent version. - -OMG MAIL SERVER -- You can use a mail server program to retrieve this -software. Send email with a body line 'help' to iiop-bridging@omg.org, and -the mail server will respond with a copy of this README file. Send email -with a body line "iiop" and it will return a SHAR file of this software. - -OMG FTP SERVER -- You may also use anonymous FTP to the "ftp.omg.org" server. -To do this the classic (pre-Web) Internet way, use FTP to sign on with the -username "ftp" and your Internet email address as your password. Then change -directory to "/pub/interop" and retrieve: - - - "iiop.sh.Z" ... compressed SHAR format, for UNIX systems - - "iiop.tar.Z" ... compressed TAR format, also for UNIX systems - - "iiop.zip" ... ZIP format, for MS-Windows systems - -In Web-speak, those files are named by these URLs: - - ftp://ftp.omg.org/pub/interop/iiop.sh.Z ... compressed SHAR format - ftp://ftp.omg.org/pub/interop/iiop.tar.Z ... compressed TAR format - ftp://ftp.omg.org/pub/interop/iiop.zip ... PC ZIP format - -Copies of this software may be made available from archives other than -omg.org. New versions made available by Sun will be placed on omg.org and a -message will be sent to the comp.object newsgroup announcing availability. - - -CONTACT POINT AND WORKING ALIAS -------------------------------- -Please let us know who you are if you decide to use this software, and how -you use it. Please send e-mail to: - - omg-iiop-bridge@sun.com - -This address can also be used to report problems, bugs (or better yet, fixes!), -suggestions and send general comments. It is not a general mailing list for -discussion about IIOP implementations. - -There is at least one general access alias intended for discussion about -IIOP implementations. You can subscribe by sending email with a subject -line of "subscribe" to: - - iiop-impl-request@jsoft.com - - -ABOUT THIS IIOP SOFTWARE DISTRIBUTION -------------------------------------- -On some platforms POSIX threads (P1003.1c; draft 10 became the standard) -will be available to users of this distribution. There are still legal -client side message sequences which will not be emitted by this distribution -(namely, requests being sent on a connection while a response is pending), -though by definition the server side must (and will!) accept them when they -are produced by other implementations of the IIOP. - -Also, note that although this is written in C++, ANSI C++ exceptions are not -required. This derives from a goal to have this software be highly portable. -(Few C++ compilers fully comply with the C++ exception specifications.) - -Developers should not be surprised to find implementation or specification -problems at this point in time. When they do, they are encouraged to -communicate such problems through the contact point (for problems with this -implementation of IIOP; see above) or the OMG interoperability revision -task force (for specification problems; see the REFERENCES file) so that -they can be resolved. If you need complete and final ORB software, you -should use a commercially available ORB product. - -There are areas where the software is known to be incomplete; for example, -it does not provide Interface Repository APIs. It is expected that bridge -and ORB implementors will add the missing pieces as appropriate for their -environments. In some cases these may be added in future distributions -of this software. - -See the "DIFFERENCES" file for information about where this software differs -from current OMG specifications. As a rule, these differences are to -establish compatibility with CORBA 2.0 specifications which are being -prepared but which are not (as of this writing) available. In some cases, -they address recently recognized problems that are yet to be resolved. - -For a brief description of the implementation, including goals, notes, and -an overview of the source file organization, see the "IMPLEMENTATION" file. - -For a brief overview of the functional tests, see the "TESTS" file. - - -WHAT ARE: IOP, IIOP, GIOP, ESIOP, AND DCE-CIOP? ------------------------------------------------- -Inter-ORB Protocols (IOPs) support communication between or within ORBs. - -The "Internet IOP" (IIOP) is the protocol adopted by OMG that is required -to be supported by CORBA 2.0 compliant Networked ORBs, either as a native -protocol or through half bridges. It is a mapping of the "General IOP" -(GIOP) onto the Internet's TCP transport layer. Mappings onto other -transport layers may be defined in the future. - -ORBs are free to support optional Environment Specific IOPs (ESIOPs) as -their preferred ORB protocols. The "DCE-Common IOP" (DCE-CIOP) is the the -first such protocol that has been publicly specified. It uses a subset of -DCE-RPC facilities, and reuses parts of the GIOP. ORB implementors building -on top of DCE are likely to comply with DCE-CIOP, and bridge to the IIOP -for communication with ORBs not using the DCE-CIOP. - -Of course, other ESIOPs exist and will continue to exist, both in ORBs built -on top of other distributed computing environments such as ONC+ and ones -independent of such environments. Due to the prevalence of such ESIOPs, -most ORBs are expected to interoperate through bridging to the IIOP. - diff --git a/TAO/TAO-INSTALL.html b/TAO/TAO-INSTALL.html deleted file mode 100644 index f4584f70d6a..00000000000 --- a/TAO/TAO-INSTALL.html +++ /dev/null @@ -1,198 +0,0 @@ - - -Building and Installing TAO - - - -
-

Building and Installing TAO

- -TAO has been ported and tested Windows NT, Solaris, VxWorks, and -Linux. I expect that major portions of the release will port easily -to other platforms that ACE has been ported to. If you can help port -TAO to other platforms we'd appreciate it.

- -TAO can be obtained electronically -via the WWW and ftp. Bundled with the TAO release is ACE. You will -need the most recent version of ACE because TAO tends to track changes -to ACE rather closely.

- -A quick build note for users who have used ACE with other ORBs: -linking TAO with a version of ACE that is also linked against another -ORB vendor's library, e.g., liborbix.so, will produce -undefined and most likely unpredictable and erroneous results.

- -


-

On UNIX platforms

- -
    -
  1. Set ACE_ROOT environment variable as outlined in - the ACE - installation notes.

    - -

  2. Build and install ACE under $ACE_ROOT.

    - -

      -
    • Change directory to $ACE_ROOT/ace and execute - make.

      -

    - -
  3. Set TAO_ROOT environment variable to - $ACE_ROOT/TAO.

    - -

  4. Build and install the TAO release under $TAO_ROOT.

    - -

      -
    • Change directory to $TAO_ROOT/tao and - execute make.

    • -
    - -
  5. Change directory to $TAO_ROOT/tests and - execute make.

    - -

  6. Follow instructions on executing the various examples under - $TAO_ROOT/tests.

    - -

- -

A Note On Make

- -

-Since TAO is built on top ofACE, TAO re-uses ACE's Makefile structure -as well. Thus, just like ACE requires GNU Make, so too does TAO. -More exactly, versions of make which are known to -not work include those from Solaris 4.x and 5.x, HP-UX, the -latest BSD, etc.

- -

A Note On Make

- -Since TAO is built atop ACE, TAO re-uses ACE's Makefile structure as -well. Thus, just like ACE requires GNU Make, so too does TAO. More -exactly, versions of make which are known to not -work include those from Solaris 4.x and 5.x, HP-UX, the latest BSD, -etc.

- -GNU Make can be obtained from various places in source form.

- -


- -

On Windows NT

- -To compile TAO_IDL on NT, you may need to set the -environment variable CPP_PATH to where CL.exe is -installed on your machine. By default, we set this variable to -"C:/Program Files/DevStudio/VC/bin". Your location may vary, however. -Notice that if you forget to set this variable before compiling -TAO_IDL, you can use CPP_LOCATION to specify -the absolute pathname to CL.exe. We set it to "C:/Program -Files/DevStudio/VC/bin/CL.exe" when we do use it.

- -Remember to set -up ACE before building TAO. - -

Visual C++ 5.0

- -

It works best if TAO is placed in ACE_wrappers so TAO ends up in -ACE_wrappers\TAO because the Visual C++ 5 Project files -are set up to work in this configuration. If you move it, then make -sure you change the project file to look for the include and library -files in the correct place. If you are using TAOACE.dsw then you shouldn't need to worry about -this.

- -
    -
  1. Make sure ACE is built (For Visual C++ 5.0, use ace.dsw or - ace-vc50.dsw, whichever is in your copy of ACE).

    - -

  2. Load the workspace tao\TAO.dsw and build the TAO - library.

    - -

  3. To build the Cubit test, load the workspace - tests\Cubit\TAO\test.dsw and build both client - and server.

    -

- -

TAOACE.dsw

- -

TAOACE.dsw is a Visual C++ 5 workspace that loads the projects -ACE, TAO, TAO_IDL (the compiler), and orbsvcs. The dependencies are -set up to correctly between the projects so for example, ACE will -be built automatically when TAO is built.

- -

Visual C++ 4.x

- -
    -
  1. In Tools|Options, go to the Directories page and make sure that include - files paths includes ACE_wrappers\ and the root directory of TAO (which - can be ACE_wrappers\TAO if installed there). The library files - paths should include ACE_wrappers\ace.

    - -

  2. Load the project file tao\TAO.mdp and build the TAO library.

    - -

  3. To build the Cubit test, load the project file tests\Cubit\TAO\test.mdp - and build both client and server.

    -

- -
-

-How to add IDL files into your Visual C++ projects

-Point of contact: Nanbor Wang. - -

Each IDL file generates .h, .i and .cpp files. Here is an example of -adding an IDL file named foobar.idl into a VC project. -

    -
  1. -Create/open the workspace. Create server project and client project if -you haven't had them ready. Add the IDL file <foobar.idl> and other -non-IDL generated files into both client and server projects.
  2. - -
  3. -Added foobarC.h, foobarC.i, foobarC.cpp, foobarS.h, foobarS.i, and foobarS.cpp -into the server project and foobarC.h, foobarC.i, and foobarC.cpp into -the client project.
  4. - -
  5. -Now open the project setting window (Project -> Setting... or just press -Alt-F7.) Select the IDL files in both client and server projects. Choose -to set the setting for "All Configuration." Make sure the "Exclude from -build" under the "General" tab is unchecked.
  6. - -
  7. -Click on the "Custom Build" tab. Add this entry as the build command for -IDL files:
  8. - -
    ..\..\..\TAO_IDL\tao_idl $(InputName).idl
    -Notice that your absolute path to TAO_IDL may vary. -
  9. -Now add the following entries as "Output file(s)."
  10. - -
              $(InputName)S.h
    -          $(InputName)S.i
    -          $(InputName)S.cpp
    -          $(InputName)C.h
    -          $(InputName)C.i
    -          $(InputName)C.cpp
    -Add only one entry in each line. -
  11. -We are all set. Click OK.
  12. - -
  13. -Add foobarC.cpp to client project and foobarC.cpp and foobarS.cpp to server -project.
  14. -
-Notice that these procedures only setup the IDL compiler to perform correctly. - -

p.s. If anyone knows how to set a default setting in VC so we don't -need to perform these procedures every time a new project gets set up, -please let us know. Thanks. - -

-


-

-Back to the TAO home page. - - - - diff --git a/TAO/TAOACE.dsw b/TAO/TAOACE.dsw deleted file mode 100644 index 979417360d2..00000000000 --- a/TAO/TAOACE.dsw +++ /dev/null @@ -1,80 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 5.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "ACE dynamic library"=..\ace\ace_dll.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "TAO"=.\tao\TAO.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ - Begin Project Dependency - Project_Dep_Name ACE dynamic library - End Project Dependency -}}} - -############################################################################### - -Project: "orbsvcs"=.\orbsvcs\orbsvcs\orbsvcs.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ - Begin Project Dependency - Project_Dep_Name TAO - End Project Dependency - Begin Project Dependency - Project_Dep_Name ACE dynamic library - End Project Dependency - Begin Project Dependency - Project_Dep_Name tao_idl - End Project Dependency -}}} - -############################################################################### - -Project: "tao_idl"=.\TAO_IDL\tao_idl.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ - Begin Project Dependency - Project_Dep_Name ACE dynamic library - End Project Dependency -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/TAO_IDL/ANNOUNCEMENT b/TAO/TAO_IDL/ANNOUNCEMENT deleted file mode 100644 index 870db6f6006..00000000000 --- a/TAO/TAO_IDL/ANNOUNCEMENT +++ /dev/null @@ -1,131 +0,0 @@ -WHAT: - -SunSoft, Inc., Mountain View, California, has placed the source code to -Project DOE's Interface Definition Language (IDL) compiler front end -(CFE) on OMG's file server, making the implementation publicly -available. This release is identified by the version number 1.3. - -Project DOE is SunSoft's corporate-wide development effort to integrate -distributed object technology into the Solaris O/S. OMG (Object Management -Group) is the industry wide body formed to create specifications for -distributed object technology. It currently has more than 370 members. OMG -IDL is part of OMG's CORBA 1.1 specification and provides a standardized -way for defining object interfaces. OMG IDL forms the basis for distributed -object interactionin Project DOE. - -The SunSoft OMG IDL CFE provides a complete framework for building -CORBA 1.1-compliant preprocessors for OMG IDL. By using this standard -implementation, developers of OMG IDL compilers will save many months -of work and enhance the portability and interoperability of OMG -IDL-interfaced objects. - -The SunSoft OMG IDL CFE allows convenient and fast integration of new back -ends to the compiler. The release consists of a front end which converts -OMG IDL to an intermediate format, a compiler framework driver, an example -implementation of a compiler back end, and a set of protocols for -interaction between the front and back ends. The SunSoft OMG IDL CFE -parser uses components generated by yacc and lex. - -The SunSoft OMG IDL CFE is designed to allow easy extension of OMG IDL -without impacting existing back-end implementations. As the CORBA -specification evolves, any new updates to the IDE CFE will be placed -by SunSoft on the OMG server. - -This release provides a directory with many examples of OMG IDL -specifications to allow users to become familiar with the process of -writing OMG IDL code. - -For more information send email to idl-cfe@sun.com. - -HOW: - -The SunSoft OMG IDL CFE is available at no charge through anonymous FTP -in source form on the OMG file server, omg.org. Please retrieve the -file OMG_IDL_CFE_1.3.tar.Z from the directory pub/OMG_IDL_CFE_1.3. Please -let us know who you are if you retrieve the compiler front end using this -method, by sending email to idl-cfe@sun.com. - -You can also retrieve the software by using the OMG mail server program. -Send email with the subject 'help' to omg_idl@omg.org, and the mail server -will respond with instructions on how to retrieve the software. - -WHEN: - -The SunSoft OMG IDL CFE is available now. - -CONTACT: - -Please let us know who you are if you decide to use this software, and how -you use it. Please send email to: - - idl-cfe@sun.com - -This address can also be used to report problems, bugs, suggestions and -send general comments. - -We ask that if you make extensions or modifications to this source release, -please make these extensions available to others using the OMG IDL compiler -front end, by sending the modified sources to the above email address. This -will help us evaluate your extensions for inclusion in a future version. It -also ensures your investment in these extensions when new versions of the -CFE are released. - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - -COPYRIGHT NOTICE: - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 diff --git a/TAO/TAO_IDL/CHANGES b/TAO/TAO_IDL/CHANGES deleted file mode 100644 index ae6fca7bcea..00000000000 --- a/TAO/TAO_IDL/CHANGES +++ /dev/null @@ -1,122 +0,0 @@ -CHANGES WHICH AFFECT BE WRITERS --=============================- - -INTRODUCTION - -This file describes changes that affect BE writers. It contains IMPORTANT -INFORMATION for BE writers who wish to migrate a BE written to operate with -release 1.2 to operate with release 1.3. It is likely that not following -these instructions will result in a compilable but malfunctioning compiler. - -AST INHERITANCE CHANGES - -The AST has been reorganized so that AST_Union and AST_Exception now -inherit from AST_Structure. This means that constructors of BE classes -which inherit from AST_Union or AST_Exception now need to explicitly call -an initializer for AST_Structure in their init section. - -We repeat below the information given in the file WRITING_A_BE, in the -section entitled "WRITING A BE". - -AST_EXCEPTION - -The signature for constructors of classes inheriting from AST_Exception -should now be: - - BE_Exception::BE_Exception(UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(AST_Decl::NT_except, n, p), - AST_Structure(AST_Decl::NT_except, n, p), - UTL_Scope(AST_Decl::NT_except) - -AST_UNION - -The signature for constructors of classes inheriting from AST_Union should -now be: - - BE_Union::BE_Union(AST_ConcreteType *dt, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Union(dt, n, p), - AST_Structure(AST_Decl::NT_union, n, p), - AST_Decl(AST_Decl::NT_union, n, p), - UTL_Scope(AST_Decl::NT_union) - -IDL_BOOL TYPE - -To increase portability and reduce dependency of the sources on POSIX -compliance in targets of ports, IDL now provides its own boolean type which -is named idl_bool. It provides two truth values, I_TRUE and I_FALSE. - -UTL_SCOPEDNAME TYPE - -The UTL_ScopedName type is now a list of Identifier nodes; in previous -releases it used to be a list of String nodes. If your BE constructs scoped -names this change will prevent recompilation until you modify your -constructor calls to invoke constructors for Identifier instead of for -String. The signature of the constructor is: - - Identifier::Identifier(char *, long x=1, long y=0, long z=I_FALSE) - -The additional arguments which can be defaulted to the values indicated are -included for future use. - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. diff --git a/TAO/TAO_IDL/GenExportH.BAT b/TAO/TAO_IDL/GenExportH.BAT deleted file mode 100755 index 2c56945b0ac..00000000000 --- a/TAO/TAO_IDL/GenExportH.BAT +++ /dev/null @@ -1,48 +0,0 @@ -@Echo off -REM -REM $Id$ -REM -REM Usage: -REM GenExportH.BAT > -REM -REM Author: Nanbor Wang -REM - -if "%1" == "" goto emptyexport -Echo // Definition for Win32 Export directives. -Echo // This file is generated automatically by -Echo // ${TAO_ROOT}/TAO_IDL/GenExportH.BAT -Echo // ------------------------------ -Echo #if !defined (%1_EXPORT_H) -Echo #define %1_EXPORT_H -Echo. -Echo #include "ace/OS.h" -Echo. -Echo #if defined (%1_HAS_DLL) -Echo # if (%1_HAS_DLL == 1) -Echo # if defined (%1_BUILD_DLL) -Echo # define %1_Export ACE_Proper_Export_Flag -Echo # define %1_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) -Echo # define %1_SINGLETON_INSTANTIATION(T) ACE_PROPER_SINGLETON_INSTANTIATION (T) -Echo # else -Echo # define %1_Export ACE_Proper_Import_Flag -Echo # define %1_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) -Echo # define %1_SINGLETON_INSTANTIATION(T) -Echo # endif /* %1_BUILD_DLL */ -Echo # else -Echo # define %1_Export -Echo # define %1_SINGLETON_DECLARATION(T) -Echo # define %1_SINGLETON_INSTANTIATION(T) -Echo # endif /* ! %1_HAS_DLL == 1 */ -Echo #else -Echo # define %1_Export -Echo # define %1_SINGLETON_DECLARATION(T) -Echo # define %1_SINGLETON_INSTANTIATION(T) -Echo #endif /* %1_HAS_DLL */ -Echo. -Echo #endif /* %1_EXPORT_H */ -Echo // End of auto generated file. -goto endrun -:emptyexport -Echo #error usage: GenExportH.BAT EXPORT_TAG (Remember to redirect the output to a file.) -:endrun \ No newline at end of file diff --git a/TAO/TAO_IDL/INSTALL b/TAO/TAO_IDL/INSTALL deleted file mode 100644 index 6fcaa710042..00000000000 --- a/TAO/TAO_IDL/INSTALL +++ /dev/null @@ -1,229 +0,0 @@ -INTERFACE DEFINITION LANGUAGE INSTALLATION GUIDE --==============================================- - -INTRODUCTION - -This file describes the installation process for OMG_IDL_CFE version 1.3. -This file explains how to: - -- install the source code -- modify the sources to customize them for different configurations -- modify the sources to implement your own back end - -TESTED CONFIGURATIONS - -This release has been tested and is believed to operate correctly on: -- SunPro Sparcworks 2.x and 3.0 on SunOS 4.1.x -- SunPro Sparcworks 2.x and 3.0 on Solaris 2.3 -- g++ 2.5.8 on SunOS 4.1.x -- g++ 2.5.8 on Solaris 2.3 - -This is the first release of OMG IDL CFE which is preconfigured to compile -correctly for Solaris 2.x and with SunPro SparcWorks compilers. - -CUSTOMIZATION - -The release contains a file idl_make_vars in the current directory, which -is included in each Makefile. This file defines all the customizable -variables for the CFE. - -OSV should be set to a string denoting the operating system upon which you -wish to build the CFE. The CFE as shipped is preconfigured to compile -correctly on Solaris 2.x (OSV=SOLARIS2), and has also been tested on SunOS -4.1.x (OSV=SUNOS4). It contains code donated by HP which enables it to be -compiled on Apollo Domain systems (OSV=apollo) and HPUX systems (OSV=hpux), -but these two configurations have not been tested. - -C++ and CCC should be set to identify the C++ compiler you will use to -compile this release. Their values should be identical. Both are set to -address differences between various make programs - some predefine CCC, -others use C++ to denote the C++ compiler. The possible values are CC -(which uses the Sparcworks compilers on SunOS 4.1 and Solaris 2.3) and g++, -which uses the installed version of GNU C++. - -CCFLAGS should be set to a list of flags to pass to the C++ compiler. As -shipped, this list is -g. NOTE: We have not extensively tested the release -with optimization turned on. - -CPP_FLAGS should be set to a list of flags to pass to the C++ preprocessor. -Use this variable to enable or disable specific customizations you make to -the BE or CFE sources. - -YFLAGS should be set to a list of flags to pass to the Yacc program. As -shipped, the list is -d -t, which causes Yacc to generate y.tab.h and -y.tab.c files. - -LEXFLAGS should be set to a list of flags to pass to the Lex program. As -shipped, the list -t. - -RANLIB should be set to the location of the ranlib program on your system. -As shipped this is ranlib. If your system has no ranlib you can set this -variable to ':' or /bin/true. As shipped the variable is preset to -/bin/true since Solaris 2.x does not use ranlib. - -AR should be set to the location of the ar program on your system. As -shipped this is ar. If your system has a different mechanism for creating -libraries, you should modify the value of this variable accordingly. - -ARFLAGS should be set to the flags to be passed to the ar program. As -shipped this is 'crv'. - -INSTALLATION - -a. Disk space requirements - -This distribution requires approximately 350 KBytes when compressed. When -uncompressed, untarred and compiled, approximately 10 MBytes of disk space -are consumed on a Sun 4. - -b. Getting the software - -Use anonymous FTP to omg.org and supply your e-mail address as password. -Change directories to pub/OMG_IDL_CFE_1.3, set bin and get the compressed -tar file OMG_IDL_CFE_1.3.tar.Z. - -The distribution may, in the future, be made available from other archives -on the Internet. However, omg.org will always have the most up-to-date -version of this software. - -After transferring this file, uncompress it and untar it in a directory of -your choice. - -c. Compiling it - -If you are using a Sparcstation running Solaris 2.x and have the SunPro -Sparcworks compilers installed, you may directly install the software. If -your hardware or operating system configurations are different, read and -follow the instructions in the previous section first. - -At the root directory of the release, issue - - % make - -or - - % make all - -This will compile the provided sources and the sources found in the be -directory. Executing this make target causes 'make all' to be invoked in -each subdirectory, resulting in building the libraries for each component -and finally a link step producing an executable IDL compiler. - -In order to make only the compiler front end components, without compiling -the sources found in the be directory and without building an executable, -issue - - % make libs - -This will build the libraries in the ast, fe, util, driver and narrow -directories. To build only the be, issue - - % make be - -To build all libraries without creating an executable, issue - - % make all_libs - -To remove all files created by the build process, issue - - % make clean - -This will not remove any files created by Yacc and Lex, because you may be -using the ones provided in the distribution (see below). - -d. Yacc and Lex - -Some installations may not have a C++ aware Yacc and Lex processor. For -these installations, we have included the output of yacc and lex in the -release. If you need to use these files to build the release because you -don't have access to a C++ capable Yacc or Lex, go to the "fe" directory, -issue the command: - - % touch lex.yy.cc y.tab.cc y.tab.hh - -This will ensure that the processed files appear to be newer than the -source files they were produced from and will cause "make" to skip their -production. - -NOTE: The files provided in the distribution have been produced on Solaris -2.3 and may contain OS-specific #include directives. If you intend to use -these files, you may have to edit them to make them work in your -environment. The provided files are known to compile cleanly without -modification with both SunPro Sparcworks compilers and GNU C++ on both -SunOS 4.1 and Solaris 2.3. We have not tested the grammar and lexer input -files with bison or flex. - -IMPLEMENTING A BACK END - -To implement your own back end, you can start with the provided sources in -the be directory and modify them. The Makefile understands the 'make all' -target and will generate libbe.a in the demo_be directory. As set up, the -variable CPP_FLAGS allows you to place include files either in the current -directory or in the include directory. Alternatively, you can place your -include files in a new directory and modify CPP_FLAGS to cause the C++ -preprocessor to search this new directory for referenced include files, by -adding a new -I directive. - -Additional detail on the structure and function of back ends, and on the -protocol which a back end must implement, are found in the document -entitled WRITING_A_BE. - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. diff --git a/TAO/TAO_IDL/Makefile b/TAO/TAO_IDL/Makefile deleted file mode 100644 index 436a73c546d..00000000000 --- a/TAO/TAO_IDL/Makefile +++ /dev/null @@ -1,6238 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Top-level Makefile for the TAO IDL compiler -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -BIN = tao_idl -LDLIBS = -lACE -BUILD = $(BIN) - -VPATH=.:driver:fe:ast:util:narrow:be - -FILES = tao_idl \ - driver/drv_init \ - driver/drv_private \ - driver/drv_args \ - driver/drv_fork \ - driver/drv_link \ - driver/drv_preproc \ - fe/fe_declarator \ - fe/fe_private \ - fe/fe_init \ - fe/fe_extern \ - fe/fe_interface_header \ - fe/y.tab \ - fe/lex.yy \ - ast/ast_array \ - ast/ast_argument \ - ast/ast_attribute \ - ast/ast_check \ - ast/ast_concrete_type \ - ast/ast_constant \ - ast/ast_decl \ - ast/ast_enum \ - ast/ast_enum_val \ - ast/ast_exception \ - ast/ast_expression \ - ast/ast_field \ - ast/ast_interface \ - ast/ast_interface_fwd \ - ast/ast_module \ - ast/ast_native \ - ast/ast_operation \ - ast/ast_predefined_type \ - ast/ast_root \ - ast/ast_sequence \ - ast/ast_string \ - ast/ast_structure \ - ast/ast_type \ - ast/ast_typedef \ - ast/ast_union \ - ast/ast_union_branch \ - ast/ast_union_label \ - ast/ast_generator \ - ast/ast_redef \ - ast/ast_recursive \ - util/utl_scope \ - util/utl_stack \ - util/utl_string \ - util/utl_decllist \ - util/utl_labellist \ - util/utl_namelist \ - util/utl_exceptlist \ - util/utl_strlist \ - util/utl_list \ - util/utl_exprlist \ - util/utl_error \ - util/utl_indenter \ - util/utl_identifier \ - util/utl_idlist \ - util/utl_global \ - narrow/narrow \ - be/be_array \ - be/be_argument \ - be/be_attribute \ - be/be_constant \ - be/be_enum \ - be/be_enum_val \ - be/be_exception \ - be/be_expression \ - be/be_field \ - be/be_interface \ - be/be_interface_fwd \ - be/be_module \ - be/be_native \ - be/be_operation \ - be/be_predefined_type \ - be/be_root \ - be/be_sequence \ - be/be_string \ - be/be_structure \ - be/be_type \ - be/be_typedef \ - be/be_union \ - be/be_union_branch \ - be/be_union_label \ - be/be_generator \ - be/be_init \ - be/be_produce \ - be/be_args \ - be/be_helper \ - be/be_codegen \ - be/be_factory \ - be/be_sunsoft \ - be/be_decl \ - be/be_scope \ - be/be_visitor \ - be/be_visitor_args \ - be/be_visitor_array \ - be/be_visitor_attribute \ - be/be_visitor_constant \ - be/be_visitor_context \ - be/be_visitor_decl \ - be/be_visitor_enum \ - be/be_visitor_exception \ - be/be_visitor_field \ - be/be_visitor_interface \ - be/be_visitor_interface_fwd \ - be/be_visitor_module \ - be/be_visitor_operation \ - be/be_visitor_root \ - be/be_visitor_scope \ - be/be_visitor_sequence \ - be/be_visitor_structure \ - be/be_visitor_typecode \ - be/be_visitor_typedef \ - be/be_visitor_union \ - be/be_visitor_union_branch \ - be/be_interpretive - -SRC = $(addsuffix .cpp,$(FILES)) -#VOBJS = $(LSRC:%.cpp=$(VDIR)%.$(OBJEXT)) -#$(BIN): $(VOBJS) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU - -ifeq ($(CROSS-COMPILE),) - include $(ACE_ROOT)/include/makeinclude/macros.GNU - include $(ACE_ROOT)/include/makeinclude/rules.common.GNU - include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU - include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU - include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU - include $(ACE_ROOT)/include/makeinclude/rules.local.GNU -endif # ! CROSS-COMPILE - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -ifneq ($(CROSS-COMPILE),) - all default_embedded: - @echo The IDL compiler won\'t run or build on CROSS-COMPILE platforms. - - clean realclean: - @echo Nothing to clean in TAO_IDL on CROSS-COMPILE platforms. -else # ! CROSS-COMPILE - IDL_CFE_VERSION = \"1.3.0\" - - ifeq ($(findstring g++,$(CXX)),g++) - CCFLAGS += -Wno-switch -Wno-unused - endif # g++ - - CPPFLAGS += -Iinclude -Ibe_include -Ife -DCPP_LOCATION=\"$(CXX)\" \ - -DIDL_CFE_VERSION=$(IDL_CFE_VERSION) - - clean: realclean.old - rm -f tao_idl - - realclean: realclean.old - rm -f tao_idl TAGS -endif # ! CROSS-COMPILE - -tags: - rm -f TAGS - etags -C tao_idl.cpp include/*.h be_include/*.h - etags -a ast/*.cpp util/*.cpp narrow/*.cpp \ - driver/*.cpp fe/*.cpp be/*.cpp - - -#---------------------------------------------------------------------------- -# Cleanup -#---------------------------------------------------------------------------- -# This section can be removed eventually. It's purpose is to clean out -# builds that were created with nested version of this TAO_IDL Makefile. - -realclean.old: - @for dir in driver fe ast util narrow be;\ - do \ - (echo " ========> Making $(@:.nested=): `pwd`"; \ - $(MAKE) -C $$dir realclean; \ - echo "<======== End $(@:.nested=): `pwd`") ; \ - done - - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/tao_idl.o .obj/tao_idl.so .shobj/tao_idl.o .shobj/tao_idl.so: tao_idl.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - include/drv_private.h include/drv_link.h -.obj/drv_init.o .obj/drv_init.so .shobj/drv_init.o .shobj/drv_init.so: driver/drv_init.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - include/drv_private.h include/drv_link.h -.obj/drv_private.o .obj/drv_private.so .shobj/drv_private.o .shobj/drv_private.so: driver/drv_private.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - include/drv_private.h -.obj/drv_args.o .obj/drv_args.so .shobj/drv_args.o .shobj/drv_args.so: driver/drv_args.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - include/drv_private.h include/drv_link.h -.obj/drv_fork.o .obj/drv_fork.so .shobj/drv_fork.o .shobj/drv_fork.so: driver/drv_fork.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - include/drv_private.h \ - $(ACE_ROOT)/ace/Process_Manager.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Process.h \ - $(ACE_ROOT)/ace/SString.h \ - $(ACE_ROOT)/ace/SString.i \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc.i \ - $(ACE_ROOT)/ace/Malloc_T.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Malloc_T.i \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(ACE_ROOT)/ace/Signal.i \ - $(ACE_ROOT)/ace/Object_Manager.h \ - $(ACE_ROOT)/ace/Object_Manager.i \ - $(ACE_ROOT)/ace/Managed_Object.h \ - $(ACE_ROOT)/ace/Managed_Object.i \ - $(ACE_ROOT)/ace/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(ACE_ROOT)/ace/Process.i \ - $(ACE_ROOT)/ace/Process_Manager.i -.obj/drv_link.o .obj/drv_link.so .shobj/drv_link.o .shobj/drv_link.so: driver/drv_link.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - include/drv_private.h include/drv_link.h -.obj/drv_preproc.o .obj/drv_preproc.so .shobj/drv_preproc.o .shobj/drv_preproc.so: driver/drv_preproc.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - include/drv_private.h include/drv_link.h \ - $(ACE_ROOT)/ace/Process_Manager.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Process.h \ - $(ACE_ROOT)/ace/SString.h \ - $(ACE_ROOT)/ace/SString.i \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc.i \ - $(ACE_ROOT)/ace/Malloc_T.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Malloc_T.i \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(ACE_ROOT)/ace/Signal.i \ - $(ACE_ROOT)/ace/Object_Manager.h \ - $(ACE_ROOT)/ace/Object_Manager.i \ - $(ACE_ROOT)/ace/Managed_Object.h \ - $(ACE_ROOT)/ace/Managed_Object.i \ - $(ACE_ROOT)/ace/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(ACE_ROOT)/ace/Process.i \ - $(ACE_ROOT)/ace/Process_Manager.i \ - $(ACE_ROOT)/ace/Env_Value_T.h \ - $(ACE_ROOT)/ace/Env_Value_T.i -.obj/fe_declarator.o .obj/fe_declarator.so .shobj/fe_declarator.o .shobj/fe_declarator.so: fe/fe_declarator.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - include/fe_private.h include/fe_interface_header.h \ - include/fe_declarator.h -.obj/fe_private.o .obj/fe_private.so .shobj/fe_private.o .shobj/fe_private.so: fe/fe_private.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - include/fe_private.h include/fe_interface_header.h \ - include/fe_declarator.h -.obj/fe_init.o .obj/fe_init.so .shobj/fe_init.o .shobj/fe_init.so: fe/fe_init.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - include/fe_private.h include/fe_interface_header.h \ - include/fe_declarator.h -.obj/fe_extern.o .obj/fe_extern.so .shobj/fe_extern.o .shobj/fe_extern.so: fe/fe_extern.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - include/fe_private.h include/fe_interface_header.h \ - include/fe_declarator.h -.obj/fe_interface_header.o .obj/fe_interface_header.so .shobj/fe_interface_header.o .shobj/fe_interface_header.so: fe/fe_interface_header.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - include/fe_private.h include/fe_interface_header.h \ - include/fe_declarator.h -.obj/y.tab.o .obj/y.tab.so .shobj/y.tab.o .shobj/y.tab.so: fe/y.tab.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - include/fe_private.h include/fe_interface_header.h \ - include/fe_declarator.h -.obj/lex.yy.o .obj/lex.yy.so .shobj/lex.yy.o .shobj/lex.yy.so: fe/lex.yy.cpp \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/idl.h include/intlmacros.h include/idl_narrow.h \ - include/idl_defines.h include/idl_fwd.h include/idl_bool.h \ - include/utl_string.h include/utl_identifier.h include/ast.h \ - include/utl_scoped_name.h include/ast_decl.h include/ast_expression.h \ - include/utl_scope.h include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - include/fe_private.h include/fe_interface_header.h \ - include/fe_declarator.h fe/y.tab.h -.obj/ast_array.o .obj/ast_array.so .shobj/ast_array.o .shobj/ast_array.so: ast/ast_array.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_argument.o .obj/ast_argument.so .shobj/ast_argument.o .shobj/ast_argument.so: ast/ast_argument.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_attribute.o .obj/ast_attribute.so .shobj/ast_attribute.o .shobj/ast_attribute.so: ast/ast_attribute.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_check.o .obj/ast_check.so .shobj/ast_check.o .shobj/ast_check.so: ast/ast_check.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_concrete_type.o .obj/ast_concrete_type.so .shobj/ast_concrete_type.o .shobj/ast_concrete_type.so: ast/ast_concrete_type.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_constant.o .obj/ast_constant.so .shobj/ast_constant.o .shobj/ast_constant.so: ast/ast_constant.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_decl.o .obj/ast_decl.so .shobj/ast_decl.o .shobj/ast_decl.so: ast/ast_decl.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_enum.o .obj/ast_enum.so .shobj/ast_enum.o .shobj/ast_enum.so: ast/ast_enum.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_enum_val.o .obj/ast_enum_val.so .shobj/ast_enum_val.o .shobj/ast_enum_val.so: ast/ast_enum_val.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_exception.o .obj/ast_exception.so .shobj/ast_exception.o .shobj/ast_exception.so: ast/ast_exception.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_expression.o .obj/ast_expression.so .shobj/ast_expression.o .shobj/ast_expression.so: ast/ast_expression.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_field.o .obj/ast_field.so .shobj/ast_field.o .shobj/ast_field.so: ast/ast_field.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_interface.o .obj/ast_interface.so .shobj/ast_interface.o .shobj/ast_interface.so: ast/ast_interface.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_interface_fwd.o .obj/ast_interface_fwd.so .shobj/ast_interface_fwd.o .shobj/ast_interface_fwd.so: ast/ast_interface_fwd.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_module.o .obj/ast_module.so .shobj/ast_module.o .shobj/ast_module.so: ast/ast_module.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_native.o .obj/ast_native.so .shobj/ast_native.o .shobj/ast_native.so: ast/ast_native.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_operation.o .obj/ast_operation.so .shobj/ast_operation.o .shobj/ast_operation.so: ast/ast_operation.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_predefined_type.o .obj/ast_predefined_type.so .shobj/ast_predefined_type.o .shobj/ast_predefined_type.so: ast/ast_predefined_type.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_root.o .obj/ast_root.so .shobj/ast_root.o .shobj/ast_root.so: ast/ast_root.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_sequence.o .obj/ast_sequence.so .shobj/ast_sequence.o .shobj/ast_sequence.so: ast/ast_sequence.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_string.o .obj/ast_string.so .shobj/ast_string.o .shobj/ast_string.so: ast/ast_string.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_structure.o .obj/ast_structure.so .shobj/ast_structure.o .shobj/ast_structure.so: ast/ast_structure.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_type.o .obj/ast_type.so .shobj/ast_type.o .shobj/ast_type.so: ast/ast_type.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_typedef.o .obj/ast_typedef.so .shobj/ast_typedef.o .shobj/ast_typedef.so: ast/ast_typedef.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_union.o .obj/ast_union.so .shobj/ast_union.o .shobj/ast_union.so: ast/ast_union.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_union_branch.o .obj/ast_union_branch.so .shobj/ast_union_branch.o .shobj/ast_union_branch.so: ast/ast_union_branch.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_union_label.o .obj/ast_union_label.so .shobj/ast_union_label.o .shobj/ast_union_label.so: ast/ast_union_label.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_generator.o .obj/ast_generator.so .shobj/ast_generator.o .shobj/ast_generator.so: ast/ast_generator.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_redef.o .obj/ast_redef.so .shobj/ast_redef.o .shobj/ast_redef.so: ast/ast_redef.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/ast_recursive.o .obj/ast_recursive.so .shobj/ast_recursive.o .shobj/ast_recursive.so: ast/ast_recursive.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/utl_scope.o .obj/utl_scope.so .shobj/utl_scope.o .shobj/utl_scope.so: util/utl_scope.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/utl_stack.o .obj/utl_stack.so .shobj/utl_stack.o .shobj/utl_stack.so: util/utl_stack.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/utl_string.o .obj/utl_string.so .shobj/utl_string.o .shobj/utl_string.so: util/utl_string.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/utl_decllist.o .obj/utl_decllist.so .shobj/utl_decllist.o .shobj/utl_decllist.so: util/utl_decllist.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/utl_labellist.o .obj/utl_labellist.so .shobj/utl_labellist.o .shobj/utl_labellist.so: util/utl_labellist.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/utl_namelist.o .obj/utl_namelist.so .shobj/utl_namelist.o .shobj/utl_namelist.so: util/utl_namelist.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/utl_exceptlist.o .obj/utl_exceptlist.so .shobj/utl_exceptlist.o .shobj/utl_exceptlist.so: util/utl_exceptlist.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/utl_strlist.o .obj/utl_strlist.so .shobj/utl_strlist.o .shobj/utl_strlist.so: util/utl_strlist.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/utl_list.o .obj/utl_list.so .shobj/utl_list.o .shobj/utl_list.so: util/utl_list.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/utl_exprlist.o .obj/utl_exprlist.so .shobj/utl_exprlist.o .shobj/utl_exprlist.so: util/utl_exprlist.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/utl_error.o .obj/utl_error.so .shobj/utl_error.o .shobj/utl_error.so: util/utl_error.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/utl_indenter.o .obj/utl_indenter.so .shobj/utl_indenter.o .shobj/utl_indenter.so: util/utl_indenter.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/utl_identifier.o .obj/utl_identifier.so .shobj/utl_identifier.o .shobj/utl_identifier.so: util/utl_identifier.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/utl_idlist.o .obj/utl_idlist.so .shobj/utl_idlist.o .shobj/utl_idlist.so: util/utl_idlist.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/utl_global.o .obj/utl_global.so .shobj/utl_global.o .shobj/utl_global.so: util/utl_global.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/narrow.o .obj/narrow.so .shobj/narrow.o .shobj/narrow.so: narrow/narrow.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h -.obj/be_array.o .obj/be_array.so .shobj/be_array.o .shobj/be_array.so: be/be_array.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_argument.o .obj/be_argument.so .shobj/be_argument.o .shobj/be_argument.so: be/be_argument.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_attribute.o .obj/be_attribute.so .shobj/be_attribute.o .shobj/be_attribute.so: be/be_attribute.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_constant.o .obj/be_constant.so .shobj/be_constant.o .shobj/be_constant.so: be/be_constant.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_enum.o .obj/be_enum.so .shobj/be_enum.o .shobj/be_enum.so: be/be_enum.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_enum_val.o .obj/be_enum_val.so .shobj/be_enum_val.o .shobj/be_enum_val.so: be/be_enum_val.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_exception.o .obj/be_exception.so .shobj/be_exception.o .shobj/be_exception.so: be/be_exception.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_expression.o .obj/be_expression.so .shobj/be_expression.o .shobj/be_expression.so: be/be_expression.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_field.o .obj/be_field.so .shobj/be_field.o .shobj/be_field.so: be/be_field.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_interface.o .obj/be_interface.so .shobj/be_interface.o .shobj/be_interface.so: be/be_interface.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be_visitor_interface.h be_include/be_visitor_scope.h \ - be_include/be_visitor.h be_include/be_visitor_decl.h be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor_context.h -.obj/be_interface_fwd.o .obj/be_interface_fwd.so .shobj/be_interface_fwd.o .shobj/be_interface_fwd.so: be/be_interface_fwd.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_module.o .obj/be_module.so .shobj/be_module.o .shobj/be_module.so: be/be_module.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_native.o .obj/be_native.so .shobj/be_native.o .shobj/be_native.so: be/be_native.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_operation.o .obj/be_operation.so .shobj/be_operation.o .shobj/be_operation.so: be/be_operation.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_predefined_type.o .obj/be_predefined_type.so .shobj/be_predefined_type.o .shobj/be_predefined_type.so: be/be_predefined_type.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_root.o .obj/be_root.so .shobj/be_root.o .shobj/be_root.so: be/be_root.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_sequence.o .obj/be_sequence.so .shobj/be_sequence.o .shobj/be_sequence.so: be/be_sequence.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_visitor_sequence.h \ - be_include/be_visitor_decl.h -.obj/be_string.o .obj/be_string.so .shobj/be_string.o .shobj/be_string.so: be/be_string.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_structure.o .obj/be_structure.so .shobj/be_structure.o .shobj/be_structure.so: be/be_structure.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_type.o .obj/be_type.so .shobj/be_type.o .shobj/be_type.so: be/be_type.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_typedef.o .obj/be_typedef.so .shobj/be_typedef.o .shobj/be_typedef.so: be/be_typedef.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_union.o .obj/be_union.so .shobj/be_union.o .shobj/be_union.so: be/be_union.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_union_branch.o .obj/be_union_branch.so .shobj/be_union_branch.o .shobj/be_union_branch.so: be/be_union_branch.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_union_label.o .obj/be_union_label.so .shobj/be_union_label.o .shobj/be_union_label.so: be/be_union_label.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_generator.o .obj/be_generator.so .shobj/be_generator.o .shobj/be_generator.so: be/be_generator.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_init.o .obj/be_init.so .shobj/be_init.o .shobj/be_init.so: be/be_init.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_produce.o .obj/be_produce.so .shobj/be_produce.o .shobj/be_produce.so: be/be_produce.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_interpretive.h -.obj/be_args.o .obj/be_args.so .shobj/be_args.o .shobj/be_args.so: be/be_args.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_helper.o .obj/be_helper.so .shobj/be_helper.o .shobj/be_helper.so: be/be_helper.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_codegen.o .obj/be_codegen.so .shobj/be_codegen.o .shobj/be_codegen.so: be/be_codegen.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_factory.o .obj/be_factory.so .shobj/be_factory.o .shobj/be_factory.so: be/be_factory.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_sunsoft.h -.obj/be_sunsoft.o .obj/be_sunsoft.so .shobj/be_sunsoft.o .shobj/be_sunsoft.so: be/be_sunsoft.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_sunsoft.h -.obj/be_decl.o .obj/be_decl.so .shobj/be_decl.o .shobj/be_decl.so: be/be_decl.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_scope.o .obj/be_scope.so .shobj/be_scope.o .shobj/be_scope.so: be/be_scope.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_visitor.o .obj/be_visitor.so .shobj/be_visitor.o .shobj/be_visitor.so: be/be_visitor.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_visitor_args.o .obj/be_visitor_args.so .shobj/be_visitor_args.o .shobj/be_visitor_args.so: be/be_visitor_args.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_visitor_args.h \ - be_include/be_visitor_decl.h -.obj/be_visitor_attribute.o .obj/be_visitor_attribute.so .shobj/be_visitor_attribute.o .shobj/be_visitor_attribute.so: be/be_visitor_attribute.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_visitor_attribute.h \ - be_include/be_visitor_scope.h be_include/be_visitor_decl.h -.obj/be_visitor_constant.o .obj/be_visitor_constant.so .shobj/be_visitor_constant.o .shobj/be_visitor_constant.so: be/be_visitor_constant.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_visitor_constant.h \ - be_include/be_visitor_scope.h be_include/be_visitor_decl.h -.obj/be_visitor_context.o .obj/be_visitor_context.so .shobj/be_visitor_context.o .shobj/be_visitor_context.so: be/be_visitor_context.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h -.obj/be_visitor_decl.o .obj/be_visitor_decl.so .shobj/be_visitor_decl.o .shobj/be_visitor_decl.so: be/be_visitor_decl.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_visitor_decl.h -.obj/be_visitor_enum.o .obj/be_visitor_enum.so .shobj/be_visitor_enum.o .shobj/be_visitor_enum.so: be/be_visitor_enum.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_visitor_enum.h \ - be_include/be_visitor_scope.h be_include/be_visitor_decl.h -.obj/be_visitor_exception.o .obj/be_visitor_exception.so .shobj/be_visitor_exception.o .shobj/be_visitor_exception.so: be/be_visitor_exception.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_visitor_exception.h \ - be_include/be_visitor_scope.h be_include/be_visitor_decl.h -.obj/be_visitor_field.o .obj/be_visitor_field.so .shobj/be_visitor_field.o .shobj/be_visitor_field.so: be/be_visitor_field.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_visitor_field.h \ - be_include/be_visitor_decl.h -.obj/be_visitor_interface.o .obj/be_visitor_interface.so .shobj/be_visitor_interface.o .shobj/be_visitor_interface.so: be/be_visitor_interface.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_visitor_interface.h \ - be_include/be_visitor_scope.h be_include/be_visitor_decl.h -.obj/be_visitor_interface_fwd.o .obj/be_visitor_interface_fwd.so .shobj/be_visitor_interface_fwd.o .shobj/be_visitor_interface_fwd.so: be/be_visitor_interface_fwd.cpp \ - include/idl.h $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_visitor_interface_fwd.h \ - be_include/be_visitor_scope.h be_include/be_visitor_decl.h -.obj/be_visitor_module.o .obj/be_visitor_module.so .shobj/be_visitor_module.o .shobj/be_visitor_module.so: be/be_visitor_module.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_visitor_module.h \ - be_include/be_visitor_scope.h be_include/be_visitor_decl.h -.obj/be_visitor_operation.o .obj/be_visitor_operation.so .shobj/be_visitor_operation.o .shobj/be_visitor_operation.so: be/be_visitor_operation.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_visitor_operation.h \ - be_include/be_visitor_scope.h be_include/be_visitor_decl.h -.obj/be_visitor_root.o .obj/be_visitor_root.so .shobj/be_visitor_root.o .shobj/be_visitor_root.so: be/be_visitor_root.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_visitor_root.h \ - be_include/be_visitor_scope.h be_include/be_visitor_decl.h -.obj/be_visitor_scope.o .obj/be_visitor_scope.so .shobj/be_visitor_scope.o .shobj/be_visitor_scope.so: be/be_visitor_scope.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_visitor_scope.h \ - be_include/be_visitor_decl.h -.obj/be_visitor_sequence.o .obj/be_visitor_sequence.so .shobj/be_visitor_sequence.o .shobj/be_visitor_sequence.so: be/be_visitor_sequence.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_visitor_sequence.h \ - be_include/be_visitor_decl.h -.obj/be_visitor_structure.o .obj/be_visitor_structure.so .shobj/be_visitor_structure.o .shobj/be_visitor_structure.so: be/be_visitor_structure.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_visitor_structure.h \ - be_include/be_visitor_scope.h be_include/be_visitor_decl.h -.obj/be_visitor_typecode.o .obj/be_visitor_typecode.so .shobj/be_visitor_typecode.o .shobj/be_visitor_typecode.so: be/be_visitor_typecode.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_visitor_typecode.h \ - be_include/be_visitor_decl.h -.obj/be_visitor_typedef.o .obj/be_visitor_typedef.so .shobj/be_visitor_typedef.o .shobj/be_visitor_typedef.so: be/be_visitor_typedef.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_visitor_typedef.h \ - be_include/be_visitor_scope.h be_include/be_visitor_decl.h -.obj/be_visitor_union.o .obj/be_visitor_union.so .shobj/be_visitor_union.o .shobj/be_visitor_union.so: be/be_visitor_union.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_visitor_union.h \ - be_include/be_visitor_scope.h be_include/be_visitor_decl.h -.obj/be_visitor_union_branch.o .obj/be_visitor_union_branch.so .shobj/be_visitor_union_branch.o .shobj/be_visitor_union_branch.so: be/be_visitor_union_branch.cpp \ - include/idl.h $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_visitor_union_branch.h \ - be_include/be_visitor_decl.h -.obj/be_interpretive.o .obj/be_interpretive.so .shobj/be_interpretive.o .shobj/be_interpretive.so: be/be_interpretive.cpp include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - include/intlmacros.h include/idl_narrow.h include/idl_defines.h \ - include/idl_fwd.h include/idl_bool.h include/utl_string.h \ - include/utl_identifier.h include/ast.h include/utl_scoped_name.h \ - include/ast_decl.h include/ast_expression.h include/utl_scope.h \ - include/ast_type.h include/ast_concrete_type.h \ - include/ast_predefined_type.h include/ast_module.h include/ast_root.h \ - include/ast_interface.h include/ast_interface_fwd.h \ - include/ast_structure.h include/ast_exception.h include/ast_enum.h \ - include/ast_operation.h include/utl_list.h include/ast_field.h \ - include/ast_argument.h include/ast_attribute.h include/ast_union.h \ - include/ast_union_branch.h include/ast_union_label.h \ - include/ast_constant.h include/ast_enum_val.h include/ast_array.h \ - include/ast_sequence.h include/ast_string.h include/ast_typedef.h \ - include/ast_native.h include/utl_strlist.h include/utl_exprlist.h \ - include/ast_generator.h include/util.h include/utl_stack.h \ - include/utl_idlist.h include/utl_exceptlist.h include/utl_namelist.h \ - include/utl_labellist.h include/utl_decllist.h include/idl_global.h \ - include/utl_error.h include/utl_indenter.h include/idl_extern.h \ - include/fe_extern.h include/be_extern.h include/drv_extern.h \ - include/ast_extern.h include/nr_extern.h include/global_extern.h \ - be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - be_include/be_decl.h be_include/be_scope.h be_include/be_generator.h \ - be_include/be_type.h be_include/be_predefined_type.h \ - be_include/be_module.h be_include/be_interface.h \ - be_include/be_interface_fwd.h be_include/be_structure.h \ - be_include/be_exception.h be_include/be_expression.h \ - be_include/be_enum.h be_include/be_operation.h be_include/be_field.h \ - be_include/be_argument.h be_include/be_attribute.h \ - be_include/be_union.h be_include/be_union_branch.h \ - be_include/be_union_label.h be_include/be_constant.h \ - be_include/be_enum_val.h be_include/be_array.h \ - be_include/be_sequence.h be_include/be_string.h \ - be_include/be_typedef.h be_include/be_root.h be_include/be_native.h \ - be_include/be_helper.h be_include/be_codegen.h \ - be_include/be_factory.h be_include/be_visitor.h \ - be_include/be_visitor_context.h be_include/be_interpretive.h \ - be_include/be_visitor_args.h be_include/be_visitor_decl.h \ - be_include/be_visitor_attribute.h be_include/be_visitor_scope.h \ - be_include/be_visitor_constant.h be_include/be_visitor_enum.h \ - be_include/be_visitor_exception.h be_include/be_visitor_field.h \ - be_include/be_visitor_interface.h \ - be_include/be_visitor_interface_fwd.h be_include/be_visitor_module.h \ - be_include/be_visitor_operation.h be_include/be_visitor_root.h \ - be_include/be_visitor_sequence.h be_include/be_visitor_structure.h \ - be_include/be_visitor_typecode.h be_include/be_visitor_typedef.h \ - be_include/be_visitor_union.h be_include/be_visitor_union_branch.h - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/TAO_IDL/README b/TAO/TAO_IDL/README deleted file mode 100644 index 6d73554acce..00000000000 --- a/TAO/TAO_IDL/README +++ /dev/null @@ -1,233 +0,0 @@ -INTERFACE DEFINITION LANGUAGE COMPILER FRONT END --==============================================- - -INTRODUCTION - -Welcome to the publicly available source release of SunSoft's -implementation of the compiler front end (CFE) for OMG Interface Definition -Language! This is Release 1.3 of the CFE. - -The Interface Definition Language (IDL) implementation is divided into -three parts: - -- A main program for driving the compilation process -- A parser and attendant utilities -- One or more back ends (BEs) for taking the processed input and producing - output in a target language and target format - -WARNINGS - -This is a preliminary version. This software is made available AS IS and -WITH NO GUARANTEES. Please read the copyright notice attached at the -bottom of this file. - -IMPORTANT NOTICE FOR USERS OF OMG IDL CFE VERSION 1.2. - -Please carefully read the file CHANGES to obtain IMPORTANT INFORMATION on -changes in that may affect the manner in which a BE is constructed. You -must follow instructions contained in the file CHANGES to obtain a -functional BE if you are migrating an existing BE from OMG IDL CFE v. 1.2. - -TARGET AUDIENCE - -Who should use this release? - -- You can use this source release to create a stand alone parser for OMG - Interface Definition Language. This may be useful to verify the legality - of IDL input. -- Developers of OMG Interface Definition Language compilers should use this - release as a basis for writing their back ends, to obtain a common - framework for their compiler and to provide portable and uniform - parsing of IDL input. - -HOW TO OBTAIN THIS SOFTWARE - -Please use anonymous FTP to omg.org and supply your e-mail address as the -password. Then change directories to pub/OMG_IDL_CFE_1.3, set binary transfer -and get the file OMG_IDL_CFE_1.3.TAR.Z. This file includes copies of all -individual documentation files in the directory. - -Precompiled binaries constructed from the sources in this release will be -made available shortly, in the directory pub/OMG_IDL_CFE_1.3/bin. These -binaries are useful for parsing IDL source and for learning about the -language. Precompiled binaries for Solaris 2.x and for SunOS 4.x will be -provided. - -You can also use the mail server program to retrieve this software. Send -email with the subject 'help' to omg_idl@omg.org, and the mail server will -respond with instructions on how to retrieve the software. - -Copies of this software may be made available from archives other than -omg.org. New versions made available by Sun will be placed on omg.org and a -message will be sent to this newsgroup announcing its availability. - -Finally, the SunSoft OMG IDL CFE is also available on magnetic tape for a -nominal media charge directly from SunSoft. Please refer to part number -DIDL-100-STP when ordering. - -CONTACT POINT - -Please let us know who you are if you decide to use this software, and how -you use it. Please send e-mail to: - - idl-cfe@sun.com - -This address can also be used to report problems, bugs, suggestions and -send general comments. - -WHAT IS PROVIDED IN THE RELEASE - -Provided in this release are: - -- A main program for driving an Interface Definition Language compiler -- A parser for the Interface Definition Language grammar which builds an - internal representation of the input parsed. This internal - representation, named an Abstract Syntax Tree (AST), is used as input to - a back end -- Some utility functions used by the parser -- A demonstration back end (BE) which exercises the front end but produces - no translated output -- Documentation of the public interfaces and of the contract between - the compiler front end and a back end - -OPERATION - -A complete compiler operates in two passes: - -- The first pass, provided in this release, parses the IDL input and - produces an internal representation, called an Abstract Syntax Tree (AST). - This pass also does a complete syntax and semantics check of the input - provided to ensure that exactly legal IDL input is accepted. If a syntax - or semantic error is discovered, the second pass is not invoked. -- The second pass, provided by compiler developers, takes the AST and - produces output in the language and format of choice. A demonstration - back end is provided in the release. - -HOW TO USE THIS SOFTWARE - -To create a complete compiler from OMG Interface Definition Language to a -target language, compiler developers will: - -- Write a back end (BE) to take the internal representation of the input - parsed and translate it to the target language and format. You will - probably want to replace the BE directory in this source tree with your - own BE directory -- Link the BE with the sources provided here to produce a complete - compiler. - -DOCUMENTATION - -The OMG Interface Definition Language is fully described in the CORBA -documentation, Chapter 4. This document may be obtained from OMG. - -This release also provides the following documents: - -- This README file, describing the release -- INSTALL, describing installation of the software -- WRITING_A_BE contains all the information needed to start writing a back - end for this distribution -- CHANGES_IN_AST describes changes that affect migration of BEs written - against version 1.2 to version 1.3. -- CLI, describing the command line interface to the CFE -- ROADMAP, describing the directory structure for the source code. This - file will assist a developer in understanding the structure of the code - and navigating it -- PROBLEMS, describing a list of issues that may be addressed in future - releases -- BUG_REPORT, containing a form for use in reporting bugs and problems - with the IDL CFE - -ENVIRONMENT - -The INSTALL file explains how to customize the software for specific -platforms. The source distribution expects the following environment: - -- Sparcstation 1, 2, or 10 hardware -- SunPro SparcWorks 3.x or 4.0 - -As preconfigured, it compiles on Solaris 2.x. It can be reconfigured to -compile on SunOS 4.x, HPUX or Apollo Domain OS. As far as is known, no use -is made of Sun Make-specific features, and the Makefiles should be usable -with other make programs. - -This release has been tested and is believed to operate correctly with: -- SunPro Sparcworks 2.x and 3.0 on SunOS 4.1.x -- SunPro Sparcworks 2.x and 3.0 on Solaris 2.3 -- g++ 2.5.8 on SunOS 4.1.x -- g++ 2.5.8 on Solaris 2.3 - -INSTALLATION - -This release is targetted for Sun workstations running Solaris 2.x. The -process of installing this software is described in detail in the file -INSTALL in this directory. The INSTALL file also describes how to customize -the release for your own environment if it is different. - -KNOWN PROBLEMS - -A list of known deficiencies is provided in the file PROBLEMS in this -directory. If you find a problem which is not mentioned in it, please -report it as described below. Please read this file now to be apprised of -the problems found so far with this release. - -COPYRIGHT - -This copyright notice appears on all files. Please read it! - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. diff --git a/TAO/TAO_IDL/TAO_IDL4.mak b/TAO/TAO_IDL/TAO_IDL4.mak deleted file mode 100644 index f7e4d5faec9..00000000000 --- a/TAO/TAO_IDL/TAO_IDL4.mak +++ /dev/null @@ -1,17876 +0,0 @@ -# Microsoft Developer Studio Generated NMAKE File, Format Version 4.20 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -!IF "$(CFG)" == "" -CFG=TAO_IDL - Win32 Release -!MESSAGE No configuration specified. Defaulting to TAO_IDL - Win32 Release. -!ENDIF - -!IF "$(CFG)" != "TAO_IDL - Win32 Release" && "$(CFG)" !=\ - "TAO_IDL - Win32 Debug" -!MESSAGE Invalid configuration "$(CFG)" specified. -!MESSAGE You can specify a configuration when running NMAKE on this makefile -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "TAO_IDL4.mak" CFG="TAO_IDL - Win32 Release" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "TAO_IDL - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "TAO_IDL - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE -!ERROR An invalid configuration is specified. -!ENDIF - -!IF "$(OS)" == "Windows_NT" -NULL= -!ELSE -NULL=nul -!ENDIF -################################################################################ -# Begin Project -# PROP Target_Last_Scanned "TAO_IDL - Win32 Debug" -RSC=rc.exe -CPP=cl.exe - -!IF "$(CFG)" == "TAO_IDL - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Release" -# PROP Target_Dir "" -OUTDIR=. -INTDIR=.\Release - -ALL : "$(OUTDIR)\TAO_IDL4.exe" - -CLEAN : - -@erase "$(INTDIR)\ast_argument.obj" - -@erase "$(INTDIR)\ast_array.obj" - -@erase "$(INTDIR)\ast_attribute.obj" - -@erase "$(INTDIR)\ast_check.obj" - -@erase "$(INTDIR)\ast_concrete_type.obj" - -@erase "$(INTDIR)\ast_constant.obj" - -@erase "$(INTDIR)\ast_decl.obj" - -@erase "$(INTDIR)\ast_enum.obj" - -@erase "$(INTDIR)\ast_enum_val.obj" - -@erase "$(INTDIR)\ast_exception.obj" - -@erase "$(INTDIR)\ast_expression.obj" - -@erase "$(INTDIR)\ast_field.obj" - -@erase "$(INTDIR)\ast_generator.obj" - -@erase "$(INTDIR)\ast_interface.obj" - -@erase "$(INTDIR)\ast_interface_fwd.obj" - -@erase "$(INTDIR)\ast_module.obj" - -@erase "$(INTDIR)\ast_native.obj" - -@erase "$(INTDIR)\ast_operation.obj" - -@erase "$(INTDIR)\ast_predefined_type.obj" - -@erase "$(INTDIR)\ast_recursive.obj" - -@erase "$(INTDIR)\ast_redef.obj" - -@erase "$(INTDIR)\ast_root.obj" - -@erase "$(INTDIR)\ast_sequence.obj" - -@erase "$(INTDIR)\ast_string.obj" - -@erase "$(INTDIR)\ast_structure.obj" - -@erase "$(INTDIR)\ast_type.obj" - -@erase "$(INTDIR)\ast_typedef.obj" - -@erase "$(INTDIR)\ast_union.obj" - -@erase "$(INTDIR)\ast_union_branch.obj" - -@erase "$(INTDIR)\ast_union_label.obj" - -@erase "$(INTDIR)\be_args.obj" - -@erase "$(INTDIR)\be_argument.obj" - -@erase "$(INTDIR)\be_array.obj" - -@erase "$(INTDIR)\be_attribute.obj" - -@erase "$(INTDIR)\be_codegen.obj" - -@erase "$(INTDIR)\be_constant.obj" - -@erase "$(INTDIR)\be_decl.obj" - -@erase "$(INTDIR)\be_enum.obj" - -@erase "$(INTDIR)\be_enum_val.obj" - -@erase "$(INTDIR)\be_exception.obj" - -@erase "$(INTDIR)\be_expression.obj" - -@erase "$(INTDIR)\be_factory.obj" - -@erase "$(INTDIR)\be_field.obj" - -@erase "$(INTDIR)\be_generator.obj" - -@erase "$(INTDIR)\be_helper.obj" - -@erase "$(INTDIR)\be_init.obj" - -@erase "$(INTDIR)\be_interface.obj" - -@erase "$(INTDIR)\be_interface_fwd.obj" - -@erase "$(INTDIR)\be_interpretive.obj" - -@erase "$(INTDIR)\be_module.obj" - -@erase "$(INTDIR)\be_native.obj" - -@erase "$(INTDIR)\be_operation.obj" - -@erase "$(INTDIR)\be_predefined_type.obj" - -@erase "$(INTDIR)\be_produce.obj" - -@erase "$(INTDIR)\be_root.obj" - -@erase "$(INTDIR)\be_scope.obj" - -@erase "$(INTDIR)\be_sequence.obj" - -@erase "$(INTDIR)\be_state.obj" - -@erase "$(INTDIR)\be_state_argument.obj" - -@erase "$(INTDIR)\be_state_array.obj" - -@erase "$(INTDIR)\be_state_attribute.obj" - -@erase "$(INTDIR)\be_state_exception.obj" - -@erase "$(INTDIR)\be_state_operation.obj" - -@erase "$(INTDIR)\be_state_sequence.obj" - -@erase "$(INTDIR)\be_state_structure.obj" - -@erase "$(INTDIR)\be_state_typedef.obj" - -@erase "$(INTDIR)\be_state_union.obj" - -@erase "$(INTDIR)\be_string.obj" - -@erase "$(INTDIR)\be_structure.obj" - -@erase "$(INTDIR)\be_sunsoft.obj" - -@erase "$(INTDIR)\be_type.obj" - -@erase "$(INTDIR)\be_typedef.obj" - -@erase "$(INTDIR)\be_union.obj" - -@erase "$(INTDIR)\be_union_branch.obj" - -@erase "$(INTDIR)\be_union_label.obj" - -@erase "$(INTDIR)\be_visitor.obj" - -@erase "$(INTDIR)\be_visitor_args.obj" - -@erase "$(INTDIR)\be_visitor_attribute.obj" - -@erase "$(INTDIR)\be_visitor_constant.obj" - -@erase "$(INTDIR)\be_visitor_context.obj" - -@erase "$(INTDIR)\be_visitor_decl.obj" - -@erase "$(INTDIR)\be_visitor_enum.obj" - -@erase "$(INTDIR)\be_visitor_exception.obj" - -@erase "$(INTDIR)\be_visitor_field.obj" - -@erase "$(INTDIR)\be_visitor_interface.obj" - -@erase "$(INTDIR)\be_visitor_interface_fwd.obj" - -@erase "$(INTDIR)\be_visitor_module.obj" - -@erase "$(INTDIR)\be_visitor_operation.obj" - -@erase "$(INTDIR)\be_visitor_root.obj" - -@erase "$(INTDIR)\be_visitor_scope.obj" - -@erase "$(INTDIR)\be_visitor_sequence.obj" - -@erase "$(INTDIR)\be_visitor_structure.obj" - -@erase "$(INTDIR)\be_visitor_typedef.obj" - -@erase "$(INTDIR)\be_visitor_union.obj" - -@erase "$(INTDIR)\be_visitor_union_branch.obj" - -@erase "$(INTDIR)\drv_args.obj" - -@erase "$(INTDIR)\drv_fork.obj" - -@erase "$(INTDIR)\drv_init.obj" - -@erase "$(INTDIR)\drv_link.obj" - -@erase "$(INTDIR)\drv_preproc.obj" - -@erase "$(INTDIR)\drv_private.obj" - -@erase "$(INTDIR)\fe_declarator.obj" - -@erase "$(INTDIR)\fe_extern.obj" - -@erase "$(INTDIR)\fe_init.obj" - -@erase "$(INTDIR)\fe_interface_header.obj" - -@erase "$(INTDIR)\fe_private.obj" - -@erase "$(INTDIR)\lex.yy.obj" - -@erase "$(INTDIR)\narrow.obj" - -@erase "$(INTDIR)\tao_idl.obj" - -@erase "$(INTDIR)\utl_decllist.obj" - -@erase "$(INTDIR)\utl_error.obj" - -@erase "$(INTDIR)\utl_exceptlist.obj" - -@erase "$(INTDIR)\utl_exprlist.obj" - -@erase "$(INTDIR)\utl_global.obj" - -@erase "$(INTDIR)\utl_identifier.obj" - -@erase "$(INTDIR)\utl_idlist.obj" - -@erase "$(INTDIR)\utl_indenter.obj" - -@erase "$(INTDIR)\utl_labellist.obj" - -@erase "$(INTDIR)\utl_list.obj" - -@erase "$(INTDIR)\utl_namelist.obj" - -@erase "$(INTDIR)\utl_scope.obj" - -@erase "$(INTDIR)\utl_stack.obj" - -@erase "$(INTDIR)\utl_string.obj" - -@erase "$(INTDIR)\utl_strlist.obj" - -@erase "$(INTDIR)\y.tab.obj" - -@erase "$(OUTDIR)\TAO_IDL4.exe" - -"$(INTDIR)" : - if not exist "$(INTDIR)/$(NULL)" mkdir "$(INTDIR)" - -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c -# ADD CPP /nologo /MD /W3 /GX /O2 /I "include" /I "be_include" /I "..\.." /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D IDL_CFE_VERSION=\"1.3.0\" /D CPP_LOCATION=\"cl\" /YX /c -CPP_PROJ=/nologo /MD /W3 /GX /O2 /I "include" /I "be_include" /I "..\.." /D\ - "NDEBUG" /D "_CONSOLE" /D "WIN32" /D IDL_CFE_VERSION=\"1.3.0\" /D\ - CPP_LOCATION=\"cl\" /Fp"$(INTDIR)/TAO_IDL4.pch" /YX /Fo"$(INTDIR)/" /c -CPP_OBJS=.\Release/ -CPP_SBRS=.\. -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -BSC32_FLAGS=/nologo /o"$(OUTDIR)/TAO_IDL4.bsc" -BSC32_SBRS= \ - -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 ace.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -LINK32_FLAGS=ace.lib kernel32.lib user32.lib gdi32.lib winspool.lib\ - comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib\ - odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:no\ - /pdb:"$(OUTDIR)/TAO_IDL4.pdb" /machine:I386 /out:"$(OUTDIR)/TAO_IDL4.exe" -LINK32_OBJS= \ - "$(INTDIR)\ast_argument.obj" \ - "$(INTDIR)\ast_array.obj" \ - "$(INTDIR)\ast_attribute.obj" \ - "$(INTDIR)\ast_check.obj" \ - "$(INTDIR)\ast_concrete_type.obj" \ - "$(INTDIR)\ast_constant.obj" \ - "$(INTDIR)\ast_decl.obj" \ - "$(INTDIR)\ast_enum.obj" \ - "$(INTDIR)\ast_enum_val.obj" \ - "$(INTDIR)\ast_exception.obj" \ - "$(INTDIR)\ast_expression.obj" \ - "$(INTDIR)\ast_field.obj" \ - "$(INTDIR)\ast_generator.obj" \ - "$(INTDIR)\ast_interface.obj" \ - "$(INTDIR)\ast_interface_fwd.obj" \ - "$(INTDIR)\ast_module.obj" \ - "$(INTDIR)\ast_native.obj" \ - "$(INTDIR)\ast_operation.obj" \ - "$(INTDIR)\ast_predefined_type.obj" \ - "$(INTDIR)\ast_recursive.obj" \ - "$(INTDIR)\ast_redef.obj" \ - "$(INTDIR)\ast_root.obj" \ - "$(INTDIR)\ast_sequence.obj" \ - "$(INTDIR)\ast_string.obj" \ - "$(INTDIR)\ast_structure.obj" \ - "$(INTDIR)\ast_type.obj" \ - "$(INTDIR)\ast_typedef.obj" \ - "$(INTDIR)\ast_union.obj" \ - "$(INTDIR)\ast_union_branch.obj" \ - "$(INTDIR)\ast_union_label.obj" \ - "$(INTDIR)\be_args.obj" \ - "$(INTDIR)\be_argument.obj" \ - "$(INTDIR)\be_array.obj" \ - "$(INTDIR)\be_attribute.obj" \ - "$(INTDIR)\be_codegen.obj" \ - "$(INTDIR)\be_constant.obj" \ - "$(INTDIR)\be_decl.obj" \ - "$(INTDIR)\be_enum.obj" \ - "$(INTDIR)\be_enum_val.obj" \ - "$(INTDIR)\be_exception.obj" \ - "$(INTDIR)\be_expression.obj" \ - "$(INTDIR)\be_factory.obj" \ - "$(INTDIR)\be_field.obj" \ - "$(INTDIR)\be_generator.obj" \ - "$(INTDIR)\be_helper.obj" \ - "$(INTDIR)\be_init.obj" \ - "$(INTDIR)\be_interface.obj" \ - "$(INTDIR)\be_interface_fwd.obj" \ - "$(INTDIR)\be_interpretive.obj" \ - "$(INTDIR)\be_module.obj" \ - "$(INTDIR)\be_native.obj" \ - "$(INTDIR)\be_operation.obj" \ - "$(INTDIR)\be_predefined_type.obj" \ - "$(INTDIR)\be_produce.obj" \ - "$(INTDIR)\be_root.obj" \ - "$(INTDIR)\be_scope.obj" \ - "$(INTDIR)\be_sequence.obj" \ - "$(INTDIR)\be_state.obj" \ - "$(INTDIR)\be_state_argument.obj" \ - "$(INTDIR)\be_state_array.obj" \ - "$(INTDIR)\be_state_attribute.obj" \ - "$(INTDIR)\be_state_exception.obj" \ - "$(INTDIR)\be_state_operation.obj" \ - "$(INTDIR)\be_state_sequence.obj" \ - "$(INTDIR)\be_state_structure.obj" \ - "$(INTDIR)\be_state_typedef.obj" \ - "$(INTDIR)\be_state_union.obj" \ - "$(INTDIR)\be_string.obj" \ - "$(INTDIR)\be_structure.obj" \ - "$(INTDIR)\be_sunsoft.obj" \ - "$(INTDIR)\be_type.obj" \ - "$(INTDIR)\be_typedef.obj" \ - "$(INTDIR)\be_union.obj" \ - "$(INTDIR)\be_union_branch.obj" \ - "$(INTDIR)\be_union_label.obj" \ - "$(INTDIR)\be_visitor.obj" \ - "$(INTDIR)\be_visitor_args.obj" \ - "$(INTDIR)\be_visitor_attribute.obj" \ - "$(INTDIR)\be_visitor_constant.obj" \ - "$(INTDIR)\be_visitor_context.obj" \ - "$(INTDIR)\be_visitor_decl.obj" \ - "$(INTDIR)\be_visitor_enum.obj" \ - "$(INTDIR)\be_visitor_exception.obj" \ - "$(INTDIR)\be_visitor_field.obj" \ - "$(INTDIR)\be_visitor_interface.obj" \ - "$(INTDIR)\be_visitor_interface_fwd.obj" \ - "$(INTDIR)\be_visitor_module.obj" \ - "$(INTDIR)\be_visitor_operation.obj" \ - "$(INTDIR)\be_visitor_root.obj" \ - "$(INTDIR)\be_visitor_scope.obj" \ - "$(INTDIR)\be_visitor_sequence.obj" \ - "$(INTDIR)\be_visitor_structure.obj" \ - "$(INTDIR)\be_visitor_typedef.obj" \ - "$(INTDIR)\be_visitor_union.obj" \ - "$(INTDIR)\be_visitor_union_branch.obj" \ - "$(INTDIR)\drv_args.obj" \ - "$(INTDIR)\drv_fork.obj" \ - "$(INTDIR)\drv_init.obj" \ - "$(INTDIR)\drv_link.obj" \ - "$(INTDIR)\drv_preproc.obj" \ - "$(INTDIR)\drv_private.obj" \ - "$(INTDIR)\fe_declarator.obj" \ - "$(INTDIR)\fe_extern.obj" \ - "$(INTDIR)\fe_init.obj" \ - "$(INTDIR)\fe_interface_header.obj" \ - "$(INTDIR)\fe_private.obj" \ - "$(INTDIR)\lex.yy.obj" \ - "$(INTDIR)\narrow.obj" \ - "$(INTDIR)\tao_idl.obj" \ - "$(INTDIR)\utl_decllist.obj" \ - "$(INTDIR)\utl_error.obj" \ - "$(INTDIR)\utl_exceptlist.obj" \ - "$(INTDIR)\utl_exprlist.obj" \ - "$(INTDIR)\utl_global.obj" \ - "$(INTDIR)\utl_identifier.obj" \ - "$(INTDIR)\utl_idlist.obj" \ - "$(INTDIR)\utl_indenter.obj" \ - "$(INTDIR)\utl_labellist.obj" \ - "$(INTDIR)\utl_list.obj" \ - "$(INTDIR)\utl_namelist.obj" \ - "$(INTDIR)\utl_scope.obj" \ - "$(INTDIR)\utl_stack.obj" \ - "$(INTDIR)\utl_string.obj" \ - "$(INTDIR)\utl_strlist.obj" \ - "$(INTDIR)\y.tab.obj" - -"$(OUTDIR)\TAO_IDL4.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ELSEIF "$(CFG)" == "TAO_IDL - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Debug" -# PROP Target_Dir "" -OUTDIR=. -INTDIR=.\Debug - -ALL : "$(OUTDIR)\TAO_IDL4.exe" - -CLEAN : - -@erase "$(INTDIR)\ast_argument.obj" - -@erase "$(INTDIR)\ast_array.obj" - -@erase "$(INTDIR)\ast_attribute.obj" - -@erase "$(INTDIR)\ast_check.obj" - -@erase "$(INTDIR)\ast_concrete_type.obj" - -@erase "$(INTDIR)\ast_constant.obj" - -@erase "$(INTDIR)\ast_decl.obj" - -@erase "$(INTDIR)\ast_enum.obj" - -@erase "$(INTDIR)\ast_enum_val.obj" - -@erase "$(INTDIR)\ast_exception.obj" - -@erase "$(INTDIR)\ast_expression.obj" - -@erase "$(INTDIR)\ast_field.obj" - -@erase "$(INTDIR)\ast_generator.obj" - -@erase "$(INTDIR)\ast_interface.obj" - -@erase "$(INTDIR)\ast_interface_fwd.obj" - -@erase "$(INTDIR)\ast_module.obj" - -@erase "$(INTDIR)\ast_native.obj" - -@erase "$(INTDIR)\ast_operation.obj" - -@erase "$(INTDIR)\ast_predefined_type.obj" - -@erase "$(INTDIR)\ast_recursive.obj" - -@erase "$(INTDIR)\ast_redef.obj" - -@erase "$(INTDIR)\ast_root.obj" - -@erase "$(INTDIR)\ast_sequence.obj" - -@erase "$(INTDIR)\ast_string.obj" - -@erase "$(INTDIR)\ast_structure.obj" - -@erase "$(INTDIR)\ast_type.obj" - -@erase "$(INTDIR)\ast_typedef.obj" - -@erase "$(INTDIR)\ast_union.obj" - -@erase "$(INTDIR)\ast_union_branch.obj" - -@erase "$(INTDIR)\ast_union_label.obj" - -@erase "$(INTDIR)\be_args.obj" - -@erase "$(INTDIR)\be_argument.obj" - -@erase "$(INTDIR)\be_array.obj" - -@erase "$(INTDIR)\be_attribute.obj" - -@erase "$(INTDIR)\be_codegen.obj" - -@erase "$(INTDIR)\be_constant.obj" - -@erase "$(INTDIR)\be_decl.obj" - -@erase "$(INTDIR)\be_enum.obj" - -@erase "$(INTDIR)\be_enum_val.obj" - -@erase "$(INTDIR)\be_exception.obj" - -@erase "$(INTDIR)\be_expression.obj" - -@erase "$(INTDIR)\be_factory.obj" - -@erase "$(INTDIR)\be_field.obj" - -@erase "$(INTDIR)\be_generator.obj" - -@erase "$(INTDIR)\be_helper.obj" - -@erase "$(INTDIR)\be_init.obj" - -@erase "$(INTDIR)\be_interface.obj" - -@erase "$(INTDIR)\be_interface_fwd.obj" - -@erase "$(INTDIR)\be_interpretive.obj" - -@erase "$(INTDIR)\be_module.obj" - -@erase "$(INTDIR)\be_native.obj" - -@erase "$(INTDIR)\be_operation.obj" - -@erase "$(INTDIR)\be_predefined_type.obj" - -@erase "$(INTDIR)\be_produce.obj" - -@erase "$(INTDIR)\be_root.obj" - -@erase "$(INTDIR)\be_scope.obj" - -@erase "$(INTDIR)\be_sequence.obj" - -@erase "$(INTDIR)\be_state.obj" - -@erase "$(INTDIR)\be_state_argument.obj" - -@erase "$(INTDIR)\be_state_array.obj" - -@erase "$(INTDIR)\be_state_attribute.obj" - -@erase "$(INTDIR)\be_state_exception.obj" - -@erase "$(INTDIR)\be_state_operation.obj" - -@erase "$(INTDIR)\be_state_sequence.obj" - -@erase "$(INTDIR)\be_state_structure.obj" - -@erase "$(INTDIR)\be_state_typedef.obj" - -@erase "$(INTDIR)\be_state_union.obj" - -@erase "$(INTDIR)\be_string.obj" - -@erase "$(INTDIR)\be_structure.obj" - -@erase "$(INTDIR)\be_sunsoft.obj" - -@erase "$(INTDIR)\be_type.obj" - -@erase "$(INTDIR)\be_typedef.obj" - -@erase "$(INTDIR)\be_union.obj" - -@erase "$(INTDIR)\be_union_branch.obj" - -@erase "$(INTDIR)\be_union_label.obj" - -@erase "$(INTDIR)\be_visitor.obj" - -@erase "$(INTDIR)\be_visitor_args.obj" - -@erase "$(INTDIR)\be_visitor_attribute.obj" - -@erase "$(INTDIR)\be_visitor_constant.obj" - -@erase "$(INTDIR)\be_visitor_context.obj" - -@erase "$(INTDIR)\be_visitor_decl.obj" - -@erase "$(INTDIR)\be_visitor_enum.obj" - -@erase "$(INTDIR)\be_visitor_exception.obj" - -@erase "$(INTDIR)\be_visitor_field.obj" - -@erase "$(INTDIR)\be_visitor_interface.obj" - -@erase "$(INTDIR)\be_visitor_interface_fwd.obj" - -@erase "$(INTDIR)\be_visitor_module.obj" - -@erase "$(INTDIR)\be_visitor_operation.obj" - -@erase "$(INTDIR)\be_visitor_root.obj" - -@erase "$(INTDIR)\be_visitor_scope.obj" - -@erase "$(INTDIR)\be_visitor_sequence.obj" - -@erase "$(INTDIR)\be_visitor_structure.obj" - -@erase "$(INTDIR)\be_visitor_typedef.obj" - -@erase "$(INTDIR)\be_visitor_union.obj" - -@erase "$(INTDIR)\be_visitor_union_branch.obj" - -@erase "$(INTDIR)\drv_args.obj" - -@erase "$(INTDIR)\drv_fork.obj" - -@erase "$(INTDIR)\drv_init.obj" - -@erase "$(INTDIR)\drv_link.obj" - -@erase "$(INTDIR)\drv_preproc.obj" - -@erase "$(INTDIR)\drv_private.obj" - -@erase "$(INTDIR)\fe_declarator.obj" - -@erase "$(INTDIR)\fe_extern.obj" - -@erase "$(INTDIR)\fe_init.obj" - -@erase "$(INTDIR)\fe_interface_header.obj" - -@erase "$(INTDIR)\fe_private.obj" - -@erase "$(INTDIR)\lex.yy.obj" - -@erase "$(INTDIR)\narrow.obj" - -@erase "$(INTDIR)\tao_idl.obj" - -@erase "$(INTDIR)\utl_decllist.obj" - -@erase "$(INTDIR)\utl_error.obj" - -@erase "$(INTDIR)\utl_exceptlist.obj" - -@erase "$(INTDIR)\utl_exprlist.obj" - -@erase "$(INTDIR)\utl_global.obj" - -@erase "$(INTDIR)\utl_identifier.obj" - -@erase "$(INTDIR)\utl_idlist.obj" - -@erase "$(INTDIR)\utl_indenter.obj" - -@erase "$(INTDIR)\utl_labellist.obj" - -@erase "$(INTDIR)\utl_list.obj" - -@erase "$(INTDIR)\utl_namelist.obj" - -@erase "$(INTDIR)\utl_scope.obj" - -@erase "$(INTDIR)\utl_stack.obj" - -@erase "$(INTDIR)\utl_string.obj" - -@erase "$(INTDIR)\utl_strlist.obj" - -@erase "$(INTDIR)\vc40.idb" - -@erase "$(INTDIR)\vc40.pdb" - -@erase "$(INTDIR)\y.tab.obj" - -@erase "$(OUTDIR)\TAO_IDL4.exe" - -@erase "$(OUTDIR)\TAO_IDL4.ilk" - -@erase "$(OUTDIR)\TAO_IDL4.pdb" - -"$(INTDIR)" : - if not exist "$(INTDIR)/$(NULL)" mkdir "$(INTDIR)" - -# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "include" /I "be_include" /I "..\.." /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D IDL_CFE_VERSION=\"1.3.0\" /D CPP_LOCATION=\"cl\" /YX /c -CPP_PROJ=/nologo /MDd /W3 /Gm /GX /Zi /Od /I "include" /I "be_include" /I\ - "..\.." /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D IDL_CFE_VERSION=\"1.3.0\" /D\ - CPP_LOCATION=\"cl\" /Fp"$(INTDIR)/TAO_IDL4.pch" /YX /Fo"$(INTDIR)/"\ - /Fd"$(INTDIR)/" /c -CPP_OBJS=.\Debug/ -CPP_SBRS=.\. -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -BSC32_FLAGS=/nologo /o"$(OUTDIR)/TAO_IDL4.bsc" -BSC32_SBRS= \ - -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 -# ADD LINK32 aced.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 -LINK32_FLAGS=aced.lib kernel32.lib user32.lib gdi32.lib winspool.lib\ - comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib\ - odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes\ - /pdb:"$(OUTDIR)/TAO_IDL4.pdb" /debug /machine:I386\ - /out:"$(OUTDIR)/TAO_IDL4.exe" -LINK32_OBJS= \ - "$(INTDIR)\ast_argument.obj" \ - "$(INTDIR)\ast_array.obj" \ - "$(INTDIR)\ast_attribute.obj" \ - "$(INTDIR)\ast_check.obj" \ - "$(INTDIR)\ast_concrete_type.obj" \ - "$(INTDIR)\ast_constant.obj" \ - "$(INTDIR)\ast_decl.obj" \ - "$(INTDIR)\ast_enum.obj" \ - "$(INTDIR)\ast_enum_val.obj" \ - "$(INTDIR)\ast_exception.obj" \ - "$(INTDIR)\ast_expression.obj" \ - "$(INTDIR)\ast_field.obj" \ - "$(INTDIR)\ast_generator.obj" \ - "$(INTDIR)\ast_interface.obj" \ - "$(INTDIR)\ast_interface_fwd.obj" \ - "$(INTDIR)\ast_module.obj" \ - "$(INTDIR)\ast_native.obj" \ - "$(INTDIR)\ast_operation.obj" \ - "$(INTDIR)\ast_predefined_type.obj" \ - "$(INTDIR)\ast_recursive.obj" \ - "$(INTDIR)\ast_redef.obj" \ - "$(INTDIR)\ast_root.obj" \ - "$(INTDIR)\ast_sequence.obj" \ - "$(INTDIR)\ast_string.obj" \ - "$(INTDIR)\ast_structure.obj" \ - "$(INTDIR)\ast_type.obj" \ - "$(INTDIR)\ast_typedef.obj" \ - "$(INTDIR)\ast_union.obj" \ - "$(INTDIR)\ast_union_branch.obj" \ - "$(INTDIR)\ast_union_label.obj" \ - "$(INTDIR)\be_args.obj" \ - "$(INTDIR)\be_argument.obj" \ - "$(INTDIR)\be_array.obj" \ - "$(INTDIR)\be_attribute.obj" \ - "$(INTDIR)\be_codegen.obj" \ - "$(INTDIR)\be_constant.obj" \ - "$(INTDIR)\be_decl.obj" \ - "$(INTDIR)\be_enum.obj" \ - "$(INTDIR)\be_enum_val.obj" \ - "$(INTDIR)\be_exception.obj" \ - "$(INTDIR)\be_expression.obj" \ - "$(INTDIR)\be_factory.obj" \ - "$(INTDIR)\be_field.obj" \ - "$(INTDIR)\be_generator.obj" \ - "$(INTDIR)\be_helper.obj" \ - "$(INTDIR)\be_init.obj" \ - "$(INTDIR)\be_interface.obj" \ - "$(INTDIR)\be_interface_fwd.obj" \ - "$(INTDIR)\be_interpretive.obj" \ - "$(INTDIR)\be_module.obj" \ - "$(INTDIR)\be_native.obj" \ - "$(INTDIR)\be_operation.obj" \ - "$(INTDIR)\be_predefined_type.obj" \ - "$(INTDIR)\be_produce.obj" \ - "$(INTDIR)\be_root.obj" \ - "$(INTDIR)\be_scope.obj" \ - "$(INTDIR)\be_sequence.obj" \ - "$(INTDIR)\be_state.obj" \ - "$(INTDIR)\be_state_argument.obj" \ - "$(INTDIR)\be_state_array.obj" \ - "$(INTDIR)\be_state_attribute.obj" \ - "$(INTDIR)\be_state_exception.obj" \ - "$(INTDIR)\be_state_operation.obj" \ - "$(INTDIR)\be_state_sequence.obj" \ - "$(INTDIR)\be_state_structure.obj" \ - "$(INTDIR)\be_state_typedef.obj" \ - "$(INTDIR)\be_state_union.obj" \ - "$(INTDIR)\be_string.obj" \ - "$(INTDIR)\be_structure.obj" \ - "$(INTDIR)\be_sunsoft.obj" \ - "$(INTDIR)\be_type.obj" \ - "$(INTDIR)\be_typedef.obj" \ - "$(INTDIR)\be_union.obj" \ - "$(INTDIR)\be_union_branch.obj" \ - "$(INTDIR)\be_union_label.obj" \ - "$(INTDIR)\be_visitor.obj" \ - "$(INTDIR)\be_visitor_args.obj" \ - "$(INTDIR)\be_visitor_attribute.obj" \ - "$(INTDIR)\be_visitor_constant.obj" \ - "$(INTDIR)\be_visitor_context.obj" \ - "$(INTDIR)\be_visitor_decl.obj" \ - "$(INTDIR)\be_visitor_enum.obj" \ - "$(INTDIR)\be_visitor_exception.obj" \ - "$(INTDIR)\be_visitor_field.obj" \ - "$(INTDIR)\be_visitor_interface.obj" \ - "$(INTDIR)\be_visitor_interface_fwd.obj" \ - "$(INTDIR)\be_visitor_module.obj" \ - "$(INTDIR)\be_visitor_operation.obj" \ - "$(INTDIR)\be_visitor_root.obj" \ - "$(INTDIR)\be_visitor_scope.obj" \ - "$(INTDIR)\be_visitor_sequence.obj" \ - "$(INTDIR)\be_visitor_structure.obj" \ - "$(INTDIR)\be_visitor_typedef.obj" \ - "$(INTDIR)\be_visitor_union.obj" \ - "$(INTDIR)\be_visitor_union_branch.obj" \ - "$(INTDIR)\drv_args.obj" \ - "$(INTDIR)\drv_fork.obj" \ - "$(INTDIR)\drv_init.obj" \ - "$(INTDIR)\drv_link.obj" \ - "$(INTDIR)\drv_preproc.obj" \ - "$(INTDIR)\drv_private.obj" \ - "$(INTDIR)\fe_declarator.obj" \ - "$(INTDIR)\fe_extern.obj" \ - "$(INTDIR)\fe_init.obj" \ - "$(INTDIR)\fe_interface_header.obj" \ - "$(INTDIR)\fe_private.obj" \ - "$(INTDIR)\lex.yy.obj" \ - "$(INTDIR)\narrow.obj" \ - "$(INTDIR)\tao_idl.obj" \ - "$(INTDIR)\utl_decllist.obj" \ - "$(INTDIR)\utl_error.obj" \ - "$(INTDIR)\utl_exceptlist.obj" \ - "$(INTDIR)\utl_exprlist.obj" \ - "$(INTDIR)\utl_global.obj" \ - "$(INTDIR)\utl_identifier.obj" \ - "$(INTDIR)\utl_idlist.obj" \ - "$(INTDIR)\utl_indenter.obj" \ - "$(INTDIR)\utl_labellist.obj" \ - "$(INTDIR)\utl_list.obj" \ - "$(INTDIR)\utl_namelist.obj" \ - "$(INTDIR)\utl_scope.obj" \ - "$(INTDIR)\utl_stack.obj" \ - "$(INTDIR)\utl_string.obj" \ - "$(INTDIR)\utl_strlist.obj" \ - "$(INTDIR)\y.tab.obj" - -"$(OUTDIR)\TAO_IDL4.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ENDIF - -.c{$(CPP_OBJS)}.obj: - $(CPP) $(CPP_PROJ) $< - -.cpp{$(CPP_OBJS)}.obj: - $(CPP) $(CPP_PROJ) $< - -.cxx{$(CPP_OBJS)}.obj: - $(CPP) $(CPP_PROJ) $< - -.c{$(CPP_SBRS)}.sbr: - $(CPP) $(CPP_PROJ) $< - -.cpp{$(CPP_SBRS)}.sbr: - $(CPP) $(CPP_PROJ) $< - -.cxx{$(CPP_SBRS)}.sbr: - $(CPP) $(CPP_PROJ) $< - -################################################################################ -# Begin Target - -# Name "TAO_IDL - Win32 Release" -# Name "TAO_IDL - Win32 Debug" - -!IF "$(CFG)" == "TAO_IDL - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL - Win32 Debug" - -!ENDIF - -################################################################################ -# Begin Source File - -SOURCE=.\fe\y.tab.cpp -DEP_CPP_Y_TAB=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_declarator.h"\ - ".\include\fe_extern.h"\ - ".\include\fe_interface_header.h"\ - ".\include\fe_private.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\y.tab.obj" : $(SOURCE) $(DEP_CPP_Y_TAB) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_union_label.cpp -DEP_CPP_AST_U=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_union_label.obj" : $(SOURCE) $(DEP_CPP_AST_U) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_array.cpp -DEP_CPP_AST_A=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_array.obj" : $(SOURCE) $(DEP_CPP_AST_A) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_attribute.cpp -DEP_CPP_AST_AT=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_attribute.obj" : $(SOURCE) $(DEP_CPP_AST_AT) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_check.cpp -DEP_CPP_AST_C=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_check.obj" : $(SOURCE) $(DEP_CPP_AST_C) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_concrete_type.cpp -DEP_CPP_AST_CO=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_concrete_type.obj" : $(SOURCE) $(DEP_CPP_AST_CO) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_constant.cpp -DEP_CPP_AST_CON=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_constant.obj" : $(SOURCE) $(DEP_CPP_AST_CON) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_decl.cpp -DEP_CPP_AST_D=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_decl.obj" : $(SOURCE) $(DEP_CPP_AST_D) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_enum.cpp -DEP_CPP_AST_E=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_enum.obj" : $(SOURCE) $(DEP_CPP_AST_E) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_enum_val.cpp -DEP_CPP_AST_EN=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_enum_val.obj" : $(SOURCE) $(DEP_CPP_AST_EN) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_exception.cpp -DEP_CPP_AST_EX=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_exception.obj" : $(SOURCE) $(DEP_CPP_AST_EX) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_expression.cpp -DEP_CPP_AST_EXP=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_expression.obj" : $(SOURCE) $(DEP_CPP_AST_EXP) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_field.cpp -DEP_CPP_AST_F=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_field.obj" : $(SOURCE) $(DEP_CPP_AST_F) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_generator.cpp -DEP_CPP_AST_G=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_generator.obj" : $(SOURCE) $(DEP_CPP_AST_G) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_interface.cpp -DEP_CPP_AST_I=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_interface.obj" : $(SOURCE) $(DEP_CPP_AST_I) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_interface_fwd.cpp -DEP_CPP_AST_IN=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_interface_fwd.obj" : $(SOURCE) $(DEP_CPP_AST_IN) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_module.cpp -DEP_CPP_AST_M=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_module.obj" : $(SOURCE) $(DEP_CPP_AST_M) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_native.cpp -DEP_CPP_AST_N=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_native.obj" : $(SOURCE) $(DEP_CPP_AST_N) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_operation.cpp -DEP_CPP_AST_O=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_operation.obj" : $(SOURCE) $(DEP_CPP_AST_O) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_predefined_type.cpp -DEP_CPP_AST_P=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_predefined_type.obj" : $(SOURCE) $(DEP_CPP_AST_P) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_recursive.cpp -DEP_CPP_AST_R=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_recursive.obj" : $(SOURCE) $(DEP_CPP_AST_R) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_redef.cpp -DEP_CPP_AST_RE=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_redef.obj" : $(SOURCE) $(DEP_CPP_AST_RE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_root.cpp -DEP_CPP_AST_RO=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_root.obj" : $(SOURCE) $(DEP_CPP_AST_RO) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_sequence.cpp -DEP_CPP_AST_S=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_sequence.obj" : $(SOURCE) $(DEP_CPP_AST_S) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_string.cpp -DEP_CPP_AST_ST=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_string.obj" : $(SOURCE) $(DEP_CPP_AST_ST) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_structure.cpp -DEP_CPP_AST_STR=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_structure.obj" : $(SOURCE) $(DEP_CPP_AST_STR) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_type.cpp -DEP_CPP_AST_T=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_type.obj" : $(SOURCE) $(DEP_CPP_AST_T) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_typedef.cpp -DEP_CPP_AST_TY=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_typedef.obj" : $(SOURCE) $(DEP_CPP_AST_TY) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_union.cpp -DEP_CPP_AST_UN=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_union.obj" : $(SOURCE) $(DEP_CPP_AST_UN) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_union_branch.cpp -DEP_CPP_AST_UNI=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_union_branch.obj" : $(SOURCE) $(DEP_CPP_AST_UNI) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\ast\ast_argument.cpp -DEP_CPP_AST_AR=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\ast_argument.obj" : $(SOURCE) $(DEP_CPP_AST_AR) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_visitor_union_branch.cpp -DEP_CPP_BE_VI=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_union_branch.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_visitor_union_branch.obj" : $(SOURCE) $(DEP_CPP_BE_VI)\ - "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_argument.cpp -DEP_CPP_BE_AR=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_argument.obj" : $(SOURCE) $(DEP_CPP_BE_AR) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_array.cpp -DEP_CPP_BE_ARR=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_array.obj" : $(SOURCE) $(DEP_CPP_BE_ARR) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_attribute.cpp -DEP_CPP_BE_AT=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_attribute.obj" : $(SOURCE) $(DEP_CPP_BE_AT) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_codegen.cpp -DEP_CPP_BE_CO=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_codegen.obj" : $(SOURCE) $(DEP_CPP_BE_CO) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_constant.cpp -DEP_CPP_BE_CON=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_constant.obj" : $(SOURCE) $(DEP_CPP_BE_CON) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_decl.cpp -DEP_CPP_BE_DE=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_decl.obj" : $(SOURCE) $(DEP_CPP_BE_DE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_enum.cpp -DEP_CPP_BE_EN=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_enum.obj" : $(SOURCE) $(DEP_CPP_BE_EN) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_enum_val.cpp -DEP_CPP_BE_ENU=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_enum_val.obj" : $(SOURCE) $(DEP_CPP_BE_ENU) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_exception.cpp -DEP_CPP_BE_EX=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_exception.obj" : $(SOURCE) $(DEP_CPP_BE_EX) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_expression.cpp -DEP_CPP_BE_EXP=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_expression.obj" : $(SOURCE) $(DEP_CPP_BE_EXP) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_factory.cpp -DEP_CPP_BE_FA=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_sunsoft.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_factory.obj" : $(SOURCE) $(DEP_CPP_BE_FA) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_field.cpp -DEP_CPP_BE_FI=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_field.obj" : $(SOURCE) $(DEP_CPP_BE_FI) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_generator.cpp -DEP_CPP_BE_GE=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_generator.obj" : $(SOURCE) $(DEP_CPP_BE_GE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_helper.cpp -DEP_CPP_BE_HE=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_helper.obj" : $(SOURCE) $(DEP_CPP_BE_HE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_init.cpp -DEP_CPP_BE_IN=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_init.obj" : $(SOURCE) $(DEP_CPP_BE_IN) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_interface.cpp -DEP_CPP_BE_INT=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_interface.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_interface.obj" : $(SOURCE) $(DEP_CPP_BE_INT) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_interface_fwd.cpp -DEP_CPP_BE_INTE=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_interface_fwd.obj" : $(SOURCE) $(DEP_CPP_BE_INTE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_interpretive.cpp -DEP_CPP_BE_INTER=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_interpretive.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_args.h"\ - ".\be_include\be_visitor_attribute.h"\ - ".\be_include\be_visitor_constant.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_enum.h"\ - ".\be_include\be_visitor_exception.h"\ - ".\be_include\be_visitor_field.h"\ - ".\be_include\be_visitor_interface.h"\ - ".\be_include\be_visitor_interface_fwd.h"\ - ".\be_include\be_visitor_module.h"\ - ".\be_include\be_visitor_operation.h"\ - ".\be_include\be_visitor_root.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\be_include\be_visitor_sequence.h"\ - ".\be_include\be_visitor_structure.h"\ - ".\be_include\be_visitor_typedef.h"\ - ".\be_include\be_visitor_union.h"\ - ".\be_include\be_visitor_union_branch.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_interpretive.obj" : $(SOURCE) $(DEP_CPP_BE_INTER) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_module.cpp -DEP_CPP_BE_MO=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_module.obj" : $(SOURCE) $(DEP_CPP_BE_MO) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_native.cpp -DEP_CPP_BE_NA=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_native.obj" : $(SOURCE) $(DEP_CPP_BE_NA) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_operation.cpp -DEP_CPP_BE_OP=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_operation.obj" : $(SOURCE) $(DEP_CPP_BE_OP) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_predefined_type.cpp -DEP_CPP_BE_PR=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_predefined_type.obj" : $(SOURCE) $(DEP_CPP_BE_PR) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_produce.cpp -DEP_CPP_BE_PRO=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_interpretive.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_produce.obj" : $(SOURCE) $(DEP_CPP_BE_PRO) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_root.cpp -DEP_CPP_BE_RO=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_root.obj" : $(SOURCE) $(DEP_CPP_BE_RO) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_scope.cpp -DEP_CPP_BE_SC=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_scope.obj" : $(SOURCE) $(DEP_CPP_BE_SC) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_sequence.cpp -DEP_CPP_BE_SE=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_sequence.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_sequence.obj" : $(SOURCE) $(DEP_CPP_BE_SE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_state.cpp -DEP_CPP_BE_ST=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_state.obj" : $(SOURCE) $(DEP_CPP_BE_ST) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_state_argument.cpp -DEP_CPP_BE_STA=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_state_argument.obj" : $(SOURCE) $(DEP_CPP_BE_STA) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_state_array.cpp -DEP_CPP_BE_STAT=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_state_array.obj" : $(SOURCE) $(DEP_CPP_BE_STAT) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_state_attribute.cpp -DEP_CPP_BE_STATE=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_state_attribute.obj" : $(SOURCE) $(DEP_CPP_BE_STATE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_state_exception.cpp -DEP_CPP_BE_STATE_=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_state_exception.obj" : $(SOURCE) $(DEP_CPP_BE_STATE_) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_state_operation.cpp -DEP_CPP_BE_STATE_O=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_state_operation.obj" : $(SOURCE) $(DEP_CPP_BE_STATE_O)\ - "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_state_sequence.cpp -DEP_CPP_BE_STATE_S=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_state_sequence.obj" : $(SOURCE) $(DEP_CPP_BE_STATE_S) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_state_structure.cpp -DEP_CPP_BE_STATE_ST=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_state_structure.obj" : $(SOURCE) $(DEP_CPP_BE_STATE_ST)\ - "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_state_typedef.cpp -DEP_CPP_BE_STATE_T=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_state_typedef.obj" : $(SOURCE) $(DEP_CPP_BE_STATE_T) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_state_union.cpp -DEP_CPP_BE_STATE_U=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_state_union.obj" : $(SOURCE) $(DEP_CPP_BE_STATE_U) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_string.cpp -DEP_CPP_BE_STR=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_string.obj" : $(SOURCE) $(DEP_CPP_BE_STR) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_structure.cpp -DEP_CPP_BE_STRU=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_structure.obj" : $(SOURCE) $(DEP_CPP_BE_STRU) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_sunsoft.cpp -DEP_CPP_BE_SU=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_sunsoft.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_sunsoft.obj" : $(SOURCE) $(DEP_CPP_BE_SU) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_type.cpp -DEP_CPP_BE_TY=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_type.obj" : $(SOURCE) $(DEP_CPP_BE_TY) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_typedef.cpp -DEP_CPP_BE_TYP=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_typedef.obj" : $(SOURCE) $(DEP_CPP_BE_TYP) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_union.cpp -DEP_CPP_BE_UN=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_union.obj" : $(SOURCE) $(DEP_CPP_BE_UN) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_union_branch.cpp -DEP_CPP_BE_UNI=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_union_branch.obj" : $(SOURCE) $(DEP_CPP_BE_UNI) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_union_label.cpp -DEP_CPP_BE_UNIO=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_union_label.obj" : $(SOURCE) $(DEP_CPP_BE_UNIO) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_visitor.cpp -DEP_CPP_BE_VIS=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_visitor.obj" : $(SOURCE) $(DEP_CPP_BE_VIS) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_visitor_args.cpp -DEP_CPP_BE_VISI=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_args.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_visitor_args.obj" : $(SOURCE) $(DEP_CPP_BE_VISI) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_visitor_attribute.cpp -DEP_CPP_BE_VISIT=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_attribute.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_visitor_attribute.obj" : $(SOURCE) $(DEP_CPP_BE_VISIT)\ - "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_visitor_constant.cpp -DEP_CPP_BE_VISITO=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_constant.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_visitor_constant.obj" : $(SOURCE) $(DEP_CPP_BE_VISITO)\ - "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_visitor_context.cpp -DEP_CPP_BE_VISITOR=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_visitor_context.obj" : $(SOURCE) $(DEP_CPP_BE_VISITOR)\ - "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_visitor_decl.cpp -DEP_CPP_BE_VISITOR_=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_visitor_decl.obj" : $(SOURCE) $(DEP_CPP_BE_VISITOR_) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_visitor_enum.cpp -DEP_CPP_BE_VISITOR_E=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_enum.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_visitor_enum.obj" : $(SOURCE) $(DEP_CPP_BE_VISITOR_E) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_visitor_exception.cpp -DEP_CPP_BE_VISITOR_EX=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_exception.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_visitor_exception.obj" : $(SOURCE) $(DEP_CPP_BE_VISITOR_EX)\ - "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_visitor_field.cpp -DEP_CPP_BE_VISITOR_F=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_field.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_visitor_field.obj" : $(SOURCE) $(DEP_CPP_BE_VISITOR_F)\ - "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_visitor_interface.cpp -DEP_CPP_BE_VISITOR_I=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_interface.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_visitor_interface.obj" : $(SOURCE) $(DEP_CPP_BE_VISITOR_I)\ - "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_visitor_interface_fwd.cpp -DEP_CPP_BE_VISITOR_IN=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_interface_fwd.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_visitor_interface_fwd.obj" : $(SOURCE) $(DEP_CPP_BE_VISITOR_IN)\ - "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_visitor_module.cpp -DEP_CPP_BE_VISITOR_M=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_module.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_visitor_module.obj" : $(SOURCE) $(DEP_CPP_BE_VISITOR_M)\ - "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_visitor_operation.cpp -DEP_CPP_BE_VISITOR_O=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_operation.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_visitor_operation.obj" : $(SOURCE) $(DEP_CPP_BE_VISITOR_O)\ - "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_visitor_root.cpp -DEP_CPP_BE_VISITOR_R=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_root.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_visitor_root.obj" : $(SOURCE) $(DEP_CPP_BE_VISITOR_R) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_visitor_scope.cpp -DEP_CPP_BE_VISITOR_S=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_visitor_scope.obj" : $(SOURCE) $(DEP_CPP_BE_VISITOR_S)\ - "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_visitor_sequence.cpp -DEP_CPP_BE_VISITOR_SE=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_sequence.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_visitor_sequence.obj" : $(SOURCE) $(DEP_CPP_BE_VISITOR_SE)\ - "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_visitor_structure.cpp -DEP_CPP_BE_VISITOR_ST=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\be_include\be_visitor_structure.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_visitor_structure.obj" : $(SOURCE) $(DEP_CPP_BE_VISITOR_ST)\ - "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_visitor_typedef.cpp -DEP_CPP_BE_VISITOR_T=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\be_include\be_visitor_typedef.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_visitor_typedef.obj" : $(SOURCE) $(DEP_CPP_BE_VISITOR_T)\ - "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_visitor_union.cpp -DEP_CPP_BE_VISITOR_U=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\be_include\be_visitor_union.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_visitor_union.obj" : $(SOURCE) $(DEP_CPP_BE_VISITOR_U)\ - "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\be\be_args.cpp -DEP_CPP_BE_ARG=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Containers.cpp"\ - "..\..\ace/Containers.h"\ - "..\..\ace/Containers.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/Free_List.cpp"\ - "..\..\ace/Free_List.h"\ - "..\..\ace/Free_List.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Malloc.h"\ - "..\..\ace/Malloc.i"\ - "..\..\ace/Malloc_T.cpp"\ - "..\..\ace/Malloc_T.h"\ - "..\..\ace/Malloc_T.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Mem_Map.h"\ - "..\..\ace/Mem_Map.i"\ - "..\..\ace/Memory_Pool.h"\ - "..\..\ace/Memory_Pool.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Signal.h"\ - "..\..\ace/Signal.i"\ - "..\..\ace/Singleton.cpp"\ - "..\..\ace/Singleton.h"\ - "..\..\ace/Singleton.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_state.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\be_args.obj" : $(SOURCE) $(DEP_CPP_BE_ARG) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\driver\drv_private.cpp -DEP_CPP_DRV_P=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\drv_private.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\drv_private.obj" : $(SOURCE) $(DEP_CPP_DRV_P) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\driver\drv_fork.cpp -DEP_CPP_DRV_F=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Process.h"\ - "..\..\ace/Process.i"\ - "..\..\ace/Process_Manager.h"\ - "..\..\ace/Process_Manager.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\drv_private.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\drv_fork.obj" : $(SOURCE) $(DEP_CPP_DRV_F) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\driver\drv_init.cpp -DEP_CPP_DRV_I=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\drv_link.h"\ - ".\include\drv_private.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\drv_init.obj" : $(SOURCE) $(DEP_CPP_DRV_I) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\driver\drv_link.cpp -DEP_CPP_DRV_L=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\drv_link.h"\ - ".\include\drv_private.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\drv_link.obj" : $(SOURCE) $(DEP_CPP_DRV_L) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\driver\drv_preproc.cpp -DEP_CPP_DRV_PR=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Atomic_Op.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/Env_Value_T.cpp"\ - "..\..\ace/Env_Value_T.h"\ - "..\..\ace/Env_Value_T.i"\ - "..\..\ace/Event_Handler.h"\ - "..\..\ace/Event_Handler.i"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/Process.h"\ - "..\..\ace/Process.i"\ - "..\..\ace/Process_Manager.h"\ - "..\..\ace/Process_Manager.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/SV_Semaphore_Complex.h"\ - "..\..\ace/SV_Semaphore_Complex.i"\ - "..\..\ace/SV_Semaphore_Simple.h"\ - "..\..\ace/SV_Semaphore_Simple.i"\ - "..\..\ace/Synch.h"\ - "..\..\ace/Synch.i"\ - "..\..\ace/Synch_T.cpp"\ - "..\..\ace/Synch_T.h"\ - "..\..\ace/Synch_T.i"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Thread.h"\ - "..\..\ace/Thread.i"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\drv_link.h"\ - ".\include\drv_private.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\drv_preproc.obj" : $(SOURCE) $(DEP_CPP_DRV_PR) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\driver\drv_args.cpp -DEP_CPP_DRV_A=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\drv_link.h"\ - ".\include\drv_private.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\drv_args.obj" : $(SOURCE) $(DEP_CPP_DRV_A) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\fe\lex.yy.cpp -DEP_CPP_LEX_Y=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\fe\y.tab.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_declarator.h"\ - ".\include\fe_extern.h"\ - ".\include\fe_interface_header.h"\ - ".\include\fe_private.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\lex.yy.obj" : $(SOURCE) $(DEP_CPP_LEX_Y) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\fe\fe_extern.cpp -DEP_CPP_FE_EX=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_declarator.h"\ - ".\include\fe_extern.h"\ - ".\include\fe_interface_header.h"\ - ".\include\fe_private.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\fe_extern.obj" : $(SOURCE) $(DEP_CPP_FE_EX) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\fe\fe_init.cpp -DEP_CPP_FE_IN=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_declarator.h"\ - ".\include\fe_extern.h"\ - ".\include\fe_interface_header.h"\ - ".\include\fe_private.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\fe_init.obj" : $(SOURCE) $(DEP_CPP_FE_IN) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\fe\fe_interface_header.cpp -DEP_CPP_FE_INT=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_declarator.h"\ - ".\include\fe_extern.h"\ - ".\include\fe_interface_header.h"\ - ".\include\fe_private.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\fe_interface_header.obj" : $(SOURCE) $(DEP_CPP_FE_INT) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\fe\fe_private.cpp -DEP_CPP_FE_PR=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_declarator.h"\ - ".\include\fe_extern.h"\ - ".\include\fe_interface_header.h"\ - ".\include\fe_private.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\fe_private.obj" : $(SOURCE) $(DEP_CPP_FE_PR) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\fe\fe_declarator.cpp -DEP_CPP_FE_DE=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_declarator.h"\ - ".\include\fe_extern.h"\ - ".\include\fe_interface_header.h"\ - ".\include\fe_private.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\fe_declarator.obj" : $(SOURCE) $(DEP_CPP_FE_DE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\narrow\narrow.cpp -DEP_CPP_NARRO=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\narrow.obj" : $(SOURCE) $(DEP_CPP_NARRO) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\tao_idl.cpp -DEP_CPP_TAO_I=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\drv_link.h"\ - ".\include\drv_private.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\tao_idl.obj" : $(SOURCE) $(DEP_CPP_TAO_I) "$(INTDIR)" - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\util\utl_strlist.cpp -DEP_CPP_UTL_S=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\utl_strlist.obj" : $(SOURCE) $(DEP_CPP_UTL_S) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\util\utl_error.cpp -DEP_CPP_UTL_E=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\utl_error.obj" : $(SOURCE) $(DEP_CPP_UTL_E) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\util\utl_exceptlist.cpp -DEP_CPP_UTL_EX=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\utl_exceptlist.obj" : $(SOURCE) $(DEP_CPP_UTL_EX) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\util\utl_exprlist.cpp -DEP_CPP_UTL_EXP=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\utl_exprlist.obj" : $(SOURCE) $(DEP_CPP_UTL_EXP) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\util\utl_global.cpp -DEP_CPP_UTL_G=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\utl_global.obj" : $(SOURCE) $(DEP_CPP_UTL_G) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\util\utl_identifier.cpp -DEP_CPP_UTL_I=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\utl_identifier.obj" : $(SOURCE) $(DEP_CPP_UTL_I) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\util\utl_idlist.cpp -DEP_CPP_UTL_ID=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\utl_idlist.obj" : $(SOURCE) $(DEP_CPP_UTL_ID) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\util\utl_indenter.cpp -DEP_CPP_UTL_IN=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\utl_indenter.obj" : $(SOURCE) $(DEP_CPP_UTL_IN) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\util\utl_labellist.cpp -DEP_CPP_UTL_L=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\utl_labellist.obj" : $(SOURCE) $(DEP_CPP_UTL_L) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\util\utl_list.cpp -DEP_CPP_UTL_LI=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\utl_list.obj" : $(SOURCE) $(DEP_CPP_UTL_LI) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\util\utl_namelist.cpp -DEP_CPP_UTL_N=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\utl_namelist.obj" : $(SOURCE) $(DEP_CPP_UTL_N) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\util\utl_scope.cpp -DEP_CPP_UTL_SC=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\utl_scope.obj" : $(SOURCE) $(DEP_CPP_UTL_SC) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\util\utl_stack.cpp -DEP_CPP_UTL_ST=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\utl_stack.obj" : $(SOURCE) $(DEP_CPP_UTL_ST) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\util\utl_string.cpp -DEP_CPP_UTL_STR=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\utl_string.obj" : $(SOURCE) $(DEP_CPP_UTL_STR) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\util\utl_decllist.cpp -DEP_CPP_UTL_D=\ - "..\..\ace/ACE.h"\ - "..\..\ace/ACE.i"\ - "..\..\ace/Auto_Ptr.cpp"\ - "..\..\ace/Auto_Ptr.h"\ - "..\..\ace/Auto_Ptr.i"\ - "..\..\ace/Basic_Types.h"\ - "..\..\ace/Basic_Types.i"\ - "..\..\ace/config-win32-common.h"\ - "..\..\ace/config-win32.h"\ - "..\..\ace/config-WinCE.h"\ - "..\..\ace/config.h"\ - "..\..\ace/inc_user_config.h"\ - "..\..\ace/iosfwd.h"\ - "..\..\ace/Log_Msg.h"\ - "..\..\ace/Log_Priority.h"\ - "..\..\ace/Log_Record.h"\ - "..\..\ace/Log_Record.i"\ - "..\..\ace/Managed_Object.cpp"\ - "..\..\ace/Managed_Object.h"\ - "..\..\ace/Managed_Object.i"\ - "..\..\ace/Object_Manager.h"\ - "..\..\ace/Object_Manager.i"\ - "..\..\ace/OS.h"\ - "..\..\ace/OS.i"\ - "..\..\ace/SString.h"\ - "..\..\ace/SString.i"\ - "..\..\ace/streams.h"\ - "..\..\ace/sys_conf.h"\ - "..\..\ace/Trace.h"\ - "..\..\ace/ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - {$(INCLUDE)}"\sys\types.h"\ - - -"$(INTDIR)\utl_decllist.obj" : $(SOURCE) $(DEP_CPP_UTL_D) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -# End Source File -# End Target -# End Project -################################################################################ diff --git a/TAO/TAO_IDL/TAO_IDL4.mdp b/TAO/TAO_IDL/TAO_IDL4.mdp deleted file mode 100644 index 4026e6366e4..00000000000 Binary files a/TAO/TAO_IDL/TAO_IDL4.mdp and /dev/null differ diff --git a/TAO/TAO_IDL/ast/Makefile b/TAO/TAO_IDL/ast/Makefile deleted file mode 100644 index 9cc6c17fb69..00000000000 --- a/TAO/TAO_IDL/ast/Makefile +++ /dev/null @@ -1,1376 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Makefile for libast -#---------------------------------------------------------------------------- - -MAKEFILE = Makefile -LIBNAME = libast -LIB = $(LIBNAME).a -SHLIB = $(LIBNAME).$(SOEXT) -IDL_CFE_VERSION = \"1.3.0\" - -# These are components that are sources of -AST_FILES = \ - ast_array \ - ast_argument \ - ast_attribute \ - ast_check \ - ast_concrete_type \ - ast_constant \ - ast_decl \ - ast_enum \ - ast_enum_val \ - ast_exception \ - ast_expression \ - ast_field \ - ast_interface \ - ast_interface_fwd \ - ast_module \ - ast_native \ - ast_operation \ - ast_predefined_type \ - ast_root \ - ast_sequence \ - ast_string \ - ast_structure \ - ast_type \ - ast_typedef \ - ast_union \ - ast_union_branch \ - ast_union_label \ - ast_generator \ - ast_redef \ - ast_recursive - -FILES = $(AST_FILES) - -LSRC = $(addsuffix .cpp,$(FILES)) -LOBJ = $(addsuffix .o,$(FILES)) -SHOBJ = $(addsuffix .so,$(FILES)) - - -LDLIBS = -lACE -LIBS = -lACE -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -BUILD = $(VSHLIB) #$(VLIB) - - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Local targets (and local hacks) -#---------------------------------------------------------------------------- - -CPPFLAGS += -I../include -I. -DCPP_LOCATION=\"$(CXX)\" -DIDL_CFE_VERSION=$(IDL_CFE_VERSION) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/ast_array.o .obj/ast_array.so .shobj/ast_array.o .shobj/ast_array.so: ast_array.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_argument.o .obj/ast_argument.so .shobj/ast_argument.o .shobj/ast_argument.so: ast_argument.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_attribute.o .obj/ast_attribute.so .shobj/ast_attribute.o .shobj/ast_attribute.so: ast_attribute.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_check.o .obj/ast_check.so .shobj/ast_check.o .shobj/ast_check.so: ast_check.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_concrete_type.o .obj/ast_concrete_type.so .shobj/ast_concrete_type.o .shobj/ast_concrete_type.so: ast_concrete_type.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_constant.o .obj/ast_constant.so .shobj/ast_constant.o .shobj/ast_constant.so: ast_constant.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_decl.o .obj/ast_decl.so .shobj/ast_decl.o .shobj/ast_decl.so: ast_decl.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_enum.o .obj/ast_enum.so .shobj/ast_enum.o .shobj/ast_enum.so: ast_enum.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_enum_val.o .obj/ast_enum_val.so .shobj/ast_enum_val.o .shobj/ast_enum_val.so: ast_enum_val.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_exception.o .obj/ast_exception.so .shobj/ast_exception.o .shobj/ast_exception.so: ast_exception.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_expression.o .obj/ast_expression.so .shobj/ast_expression.o .shobj/ast_expression.so: ast_expression.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_field.o .obj/ast_field.so .shobj/ast_field.o .shobj/ast_field.so: ast_field.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_interface.o .obj/ast_interface.so .shobj/ast_interface.o .shobj/ast_interface.so: ast_interface.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_interface_fwd.o .obj/ast_interface_fwd.so .shobj/ast_interface_fwd.o .shobj/ast_interface_fwd.so: ast_interface_fwd.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_module.o .obj/ast_module.so .shobj/ast_module.o .shobj/ast_module.so: ast_module.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_native.o .obj/ast_native.so .shobj/ast_native.o .shobj/ast_native.so: ast_native.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_operation.o .obj/ast_operation.so .shobj/ast_operation.o .shobj/ast_operation.so: ast_operation.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_predefined_type.o .obj/ast_predefined_type.so .shobj/ast_predefined_type.o .shobj/ast_predefined_type.so: ast_predefined_type.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_root.o .obj/ast_root.so .shobj/ast_root.o .shobj/ast_root.so: ast_root.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_sequence.o .obj/ast_sequence.so .shobj/ast_sequence.o .shobj/ast_sequence.so: ast_sequence.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_string.o .obj/ast_string.so .shobj/ast_string.o .shobj/ast_string.so: ast_string.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_structure.o .obj/ast_structure.so .shobj/ast_structure.o .shobj/ast_structure.so: ast_structure.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_type.o .obj/ast_type.so .shobj/ast_type.o .shobj/ast_type.so: ast_type.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_typedef.o .obj/ast_typedef.so .shobj/ast_typedef.o .shobj/ast_typedef.so: ast_typedef.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_union.o .obj/ast_union.so .shobj/ast_union.o .shobj/ast_union.so: ast_union.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_union_branch.o .obj/ast_union_branch.so .shobj/ast_union_branch.o .shobj/ast_union_branch.so: ast_union_branch.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_union_label.o .obj/ast_union_label.so .shobj/ast_union_label.o .shobj/ast_union_label.so: ast_union_label.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_generator.o .obj/ast_generator.so .shobj/ast_generator.o .shobj/ast_generator.so: ast_generator.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_redef.o .obj/ast_redef.so .shobj/ast_redef.o .shobj/ast_redef.so: ast_redef.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/ast_recursive.o .obj/ast_recursive.so .shobj/ast_recursive.o .shobj/ast_recursive.so: ast_recursive.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/TAO_IDL/ast/ast_argument.cpp b/TAO/TAO_IDL/ast/ast_argument.cpp deleted file mode 100644 index 496922bf326..00000000000 --- a/TAO/TAO_IDL/ast/ast_argument.cpp +++ /dev/null @@ -1,154 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_argument.cc - Implementation of class AST_Argument.cc - * - * AST_Argument nodes denote arguments to an operation. They - * are AST_Fields with directions. Thus, they have a name - * (an UTL_ScopedName) and a type (a subclass of AST_Type). - * Additionally they have a direction field which takes values - * from the enum AST_Argument::Direction. - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Static functions - */ - -/* - * Convert an enum Direction value to a char * - */ -static char * -direction_to_string(AST_Argument::Direction d) -{ - switch (d) { - case AST_Argument::dir_IN: - return "in"; - case AST_Argument::dir_OUT: - return "out"; - case AST_Argument::dir_INOUT: - return "inout"; - } - return NULL; -} - -/* - * Constructor(s) and destructor - */ - -AST_Argument::AST_Argument() - : pd_direction(dir_IN) -{ -} - -AST_Argument::AST_Argument(Direction d, AST_Type *ft, UTL_ScopedName *n, - UTL_StrList *p) - : AST_Field(AST_Decl::NT_argument, ft, n, p), - AST_Decl(AST_Decl::NT_argument, n, p), - pd_direction(d) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_Argument node to the ostream o - */ -void -AST_Argument::dump(ostream &o) -{ - o << direction_to_string(pd_direction) << " "; - AST_Field::dump(o); -} - -/* - * Data accessors - */ - -AST_Argument::Direction -AST_Argument::direction() -{ - return pd_direction; -} - -/* - * Narrowing operations - */ -IMPL_NARROW_METHODS1(AST_Argument, AST_Field) -IMPL_NARROW_FROM_DECL(AST_Argument) diff --git a/TAO/TAO_IDL/ast/ast_array.cpp b/TAO/TAO_IDL/ast/ast_array.cpp deleted file mode 100644 index 6a273498668..00000000000 --- a/TAO/TAO_IDL/ast/ast_array.cpp +++ /dev/null @@ -1,189 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_array.cc - Implementation of class AST_Array - * - * AST_Array nodes denote array type and field modifiers. - * AST_Array nodes have a list of dimensions (a UTL_ExprList) - * a count of the number of dimensions and a base type (a - * subtype of AST_ConcreteType. This means that we cannot have - * arrays of AST_Interfaces??? - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) and destructor - */ -AST_Array::AST_Array() - : pd_n_dims(0), - pd_dims(NULL), - pd_base_type(NULL) -{ -} - -AST_Array::AST_Array(UTL_ScopedName *n, unsigned long nd, UTL_ExprList *ds) - : AST_Decl(AST_Decl::NT_array, n, NULL), - pd_n_dims(nd), pd_base_type(NULL) -{ - pd_dims = compute_dims(ds, nd); -} - -/* - * Private operations - */ - -/* - * Compute how many dimensions there are and collect their expressions - * into an array - */ -AST_Expression ** -AST_Array::compute_dims(UTL_ExprList *ds, unsigned long nds) -{ - AST_Expression **result; - UTL_ExprlistActiveIterator *l; - unsigned long i; - - if (ds == NULL) - return NULL; - - result = new AST_Expression *[nds]; - l = new UTL_ExprlistActiveIterator(ds); - - for (i = 0; !(l->is_done()) && i < nds; l->next(), i++) - result[i] = l->item(); - delete l; - return result; -} - -/* - * Public operations - */ - - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_Array node to the ostream o - */ -void -AST_Array::dump(ostream &o) -{ - unsigned long i; - - pd_base_type->dump(o); - o << " "; - local_name()->dump(o); - for (i = 0; i < pd_n_dims; i++) { - o << "["; - pd_dims[i]->dump(o); - o << "]"; - } -} - -/* - * Data accessors - */ -unsigned long -AST_Array::n_dims() -{ - return pd_n_dims; -} - -AST_Expression ** -AST_Array::dims() -{ - return pd_dims; -} - -AST_Type * -AST_Array::base_type() -{ - return pd_base_type; -} - -void -AST_Array::set_base_type(AST_Type *nbt) -{ - pd_base_type = nbt; -} - -void -AST_Array::set_dims(AST_Expression **ds, unsigned long nds) -{ - pd_dims = ds; - pd_n_dims = nds; -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS1(AST_Array, AST_ConcreteType) -IMPL_NARROW_FROM_DECL(AST_Array) diff --git a/TAO/TAO_IDL/ast/ast_attribute.cpp b/TAO/TAO_IDL/ast/ast_attribute.cpp deleted file mode 100644 index 20c272431e8..00000000000 --- a/TAO/TAO_IDL/ast/ast_attribute.cpp +++ /dev/null @@ -1,134 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_attribute.cc - Implementation of class AST_Attribute.cc - * - * AST_Attribute nodes denote IDL attribute declarations. - * AST_Attribute nodes are AST_Fields with a readonly indication. - * Hence they have a name (an UTL_ScopedName), a type (a subtype - * of AST_Type) and a boolean indicating whether the attribute is - * readonly. - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) and destructor - */ -AST_Attribute::AST_Attribute() - : pd_readonly(I_TRUE) -{ -} - -AST_Attribute::AST_Attribute(idl_bool ro, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Field(AST_Decl::NT_attr, ft, n, p), - AST_Decl(AST_Decl::NT_attr, n, p), - pd_readonly(ro) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_Attribute to the ostream o - */ -void -AST_Attribute::dump(ostream &o) -{ - o << (pd_readonly == I_TRUE ? "readonly" : "") << " attribute "; - AST_Field::dump(o); -} - -/* - * Data accessors - */ - -idl_bool -AST_Attribute::readonly() -{ - return pd_readonly; -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS1(AST_Attribute, AST_Field) -IMPL_NARROW_FROM_DECL(AST_Attribute) diff --git a/TAO/TAO_IDL/ast/ast_check.cpp b/TAO/TAO_IDL/ast/ast_check.cpp deleted file mode 100644 index ed37a75dc86..00000000000 --- a/TAO/TAO_IDL/ast/ast_check.cpp +++ /dev/null @@ -1,140 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_check.cc - Check AST nodes representing fwd declared interfaces - * after parse of AST is completed. - * - * The check ensures that for every forward declared interface we also - * saw a full definition of that interface. - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Static storage for remembering nodes - */ -static AST_InterfaceFwd **ast_fwds = NULL; -static long ast_n_fwds_used = 0; -static long ast_n_fwds_alloc = 0; - -#undef INCREMENT -#define INCREMENT 64 - -/* - * Store a node representing a forward declared interface - */ -void -AST_record_fwd_interface(AST_InterfaceFwd *n) -{ - AST_InterfaceFwd **o_ast_fwds; - long o_ast_n_fwds_alloc; - long i; - - /* - * Make sure there's space to store one more - */ - if (ast_n_fwds_used == ast_n_fwds_alloc) { - if (ast_n_fwds_alloc == 0) { - ast_n_fwds_alloc = INCREMENT; - ast_fwds = new AST_InterfaceFwd *[ast_n_fwds_alloc]; - } else { - o_ast_fwds = ast_fwds; - o_ast_n_fwds_alloc = ast_n_fwds_alloc; - - ast_n_fwds_alloc += INCREMENT; - ast_fwds = new AST_InterfaceFwd *[ast_n_fwds_alloc]; - - for (i = 0; i < o_ast_n_fwds_alloc; i++) - ast_fwds[i] = o_ast_fwds[i]; - - delete o_ast_fwds; - } - } - /* - * Insert new node - */ - ast_fwds[ast_n_fwds_used++] = n; -} - -/* - * Check that all forward declared interfaces were also defined - */ -void -AST_check_fwd_interface() -{ - long i; - AST_InterfaceFwd *d; - AST_Interface *itf; - - for (i = 0; i < ast_n_fwds_used; i++) { - d = ast_fwds[i]; - itf = d->full_definition(); - if (!(itf->is_defined())) - idl_global->err()->fwd_decl_not_defined(itf); - } -} diff --git a/TAO/TAO_IDL/ast/ast_concrete_type.cpp b/TAO/TAO_IDL/ast/ast_concrete_type.cpp deleted file mode 100644 index 11d42dfc93e..00000000000 --- a/TAO/TAO_IDL/ast/ast_concrete_type.cpp +++ /dev/null @@ -1,106 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_concrete_type.cc - Implementation of class AST_ConcreteType - * - * AST_ConcreteType nodes denote all non-interface types of IDL. - * They are AST_Type nodes. - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) and destructor - */ -AST_ConcreteType::AST_ConcreteType() -{ -} - -AST_ConcreteType::AST_ConcreteType(AST_Decl::NodeType nt, UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(nt, n, p) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS1(AST_ConcreteType, AST_Type) -IMPL_NARROW_FROM_DECL(AST_ConcreteType) diff --git a/TAO/TAO_IDL/ast/ast_constant.cpp b/TAO/TAO_IDL/ast/ast_constant.cpp deleted file mode 100644 index 075f8827806..00000000000 --- a/TAO/TAO_IDL/ast/ast_constant.cpp +++ /dev/null @@ -1,212 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_constant.cc - Implementation of class AST_Constant - * - * AST_Constant nodes denote IDL constant declarations. - * AST_Constants have a value (an AST_Expression) and a value type - * (a value from the enum AST_Expression::ExprType). - * AST_Constant has two constructors, one for use in creating constants - * and the other for use in creating enumerators (see the class - * AST_EnumVal) - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Static functions - */ - -/* - * Convert a value from the enum AST_Expression::ExprType to a char * - */ -static char * -exprtype_to_string(AST_Expression::ExprType et) -{ - switch (et) { - case AST_Expression::EV_short: - return "short"; - case AST_Expression::EV_ushort: - return "unsigned short"; - case AST_Expression::EV_long: - return "long"; - case AST_Expression::EV_ulong: - return "unsigned long"; - case AST_Expression::EV_float: - return "float"; - case AST_Expression::EV_double: - return "double"; - case AST_Expression::EV_char: - return "char"; - case AST_Expression::EV_octet: - return "octet"; - case AST_Expression::EV_bool: - return "boolean"; - case AST_Expression::EV_string: - return "string"; - case AST_Expression::EV_any: - return "any"; - case AST_Expression::EV_void: - return "void"; - case AST_Expression::EV_none: - return "none"; - case AST_Expression::EV_wstring: - case AST_Expression::EV_wchar: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longlong: - return NULL; - } - return NULL; -} - -/* - * Constructor(s) and destructor - */ - -/* - * Default constructor - */ -AST_Constant::AST_Constant() - : pd_constant_value(NULL), pd_et(AST_Expression::EV_none) -{ -} - -/* - * Used in constructing AST_EnumVal nodes - */ -AST_Constant::AST_Constant(AST_Expression::ExprType t, - AST_Decl::NodeType nt, - AST_Expression *v, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(nt, n, p), - pd_constant_value(idl_global->gen()->create_expr(v, t)), - pd_et(t) -{ -} - -/* - * Used when constructing AST_Constant nodes - */ -AST_Constant::AST_Constant(AST_Expression::ExprType t, - AST_Expression *v, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(AST_Decl::NT_const, n, p), - pd_constant_value(idl_global->gen()->create_expr(v, t)), - pd_et(t) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_Constant node to the ostream o - */ -void -AST_Constant::dump(ostream &o) -{ - o << "const " << exprtype_to_string(pd_et) << " "; - local_name()->dump(o); - o << " = "; - pd_constant_value->dump(o); -} - -/* - * Data accessors - */ - -AST_Expression * -AST_Constant::constant_value() -{ - return pd_constant_value; -} - -AST_Expression::ExprType -AST_Constant::et() -{ - return pd_et; -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS1(AST_Constant, AST_Decl) -IMPL_NARROW_FROM_DECL(AST_Constant) diff --git a/TAO/TAO_IDL/ast/ast_decl.cpp b/TAO/TAO_IDL/ast/ast_decl.cpp deleted file mode 100644 index f01a4f0bf22..00000000000 --- a/TAO/TAO_IDL/ast/ast_decl.cpp +++ /dev/null @@ -1,314 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_decl.cc - Implementation of class AST_Decl - * - * AST_Decl is the base class for all AST nodes except AST_Expression. - * AST_Decls have a node type (a value from the enum AST_Decl::NodeType) - * a name (a UTL_ScopedName) and a list of pragmas (a UTL_StrList). - * Additionally AST_Decl nodes record the scope of definition, the - * file name in which they were defined, the line on which they were - * defined in that file, and a boolean denoting whether this is the - * main file or an #include'd file. - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) and destructor - */ - -AST_Decl::AST_Decl() - : pd_imported(I_FALSE), - pd_in_main_file(I_FALSE), - pd_defined_in(NULL), - pd_node_type(NT_module), - pd_line(-1), - pd_file_name(NULL), - pd_name(NULL), - pd_local_name(NULL), - pd_pragmas(NULL), - pd_added(I_FALSE) -{ -} - -AST_Decl::AST_Decl(NodeType nt, UTL_ScopedName *n, UTL_StrList *p) - : pd_imported(idl_global->imported()), - pd_in_main_file(idl_global->in_main_file()), - pd_defined_in(idl_global->scopes()->depth() > 0 - ? idl_global->scopes()->top() - : 0), - pd_node_type(nt), - pd_line(idl_global->lineno()), - pd_file_name(idl_global->filename()), - pd_local_name(n == NULL ? 0 : n->last_component()), - pd_pragmas(p), - pd_added(I_FALSE) -{ - compute_full_name (n); -} - -/* - * Private operations - */ - -/* - * Compute the full scoped name of an AST node - */ -void -AST_Decl::compute_full_name(UTL_ScopedName *n) -{ - UTL_ScopedName *cn = NULL; - AST_Decl *d = NULL; - - /* - * Initialize this name to NULL - */ - pd_name = NULL; - /* - * Global scope? - */ - if (defined_in() == NULL) { - pd_name = n; - return; - } - /* - * OK, not global. So copy name of containing scope, then - * smash last cdr of copy with new component - */ - d = ScopeAsDecl(defined_in()); - if (d != NULL) - cn = d->name(); - if (cn != NULL) - pd_name = (UTL_ScopedName *) cn->copy(); - if (pd_name == NULL) - pd_name = new UTL_ScopedName(local_name(), NULL); - else - pd_name->nconc(new UTL_ScopedName(local_name(), NULL)); -} - -/* - * Public operations - */ - -/* - * Return TRUE if one of my ancestor scopes is "s" - * and FALSE otherwise - */ -idl_bool -AST_Decl::has_ancestor(AST_Decl *s) -{ - if (this == s) - return I_TRUE; - if (pd_defined_in == NULL) - return I_FALSE; - return ScopeAsDecl(pd_defined_in)->has_ancestor(s); -} - -/* - * Dump this AST_Decl to the ostream o - */ -void -AST_Decl::dump(ostream &o) -{ - pd_local_name->dump(o); -} - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Data accessors - */ - -idl_bool -AST_Decl::imported() -{ - return pd_imported; -} - -void -AST_Decl::set_imported(idl_bool is_it) -{ - pd_imported = is_it; -} - -idl_bool -AST_Decl::in_main_file() -{ - return pd_in_main_file; -} - -void -AST_Decl::set_in_main_file(idl_bool is_it) -{ - pd_in_main_file = is_it; -} - -idl_bool -AST_Decl::added() -{ - return pd_added; -} - -void -AST_Decl::set_added(idl_bool is_it) -{ - pd_added = is_it; -} - -UTL_Scope * -AST_Decl::defined_in() -{ - return pd_defined_in; -} - -void -AST_Decl::set_defined_in(UTL_Scope *s) -{ - pd_defined_in = s; -} - -AST_Decl::NodeType -AST_Decl::node_type() -{ - return pd_node_type; -} - -long -AST_Decl::line() -{ - return pd_line; -} - -void -AST_Decl::set_line(long l) -{ - pd_line = l; -} - -String * -AST_Decl::file_name() -{ - return pd_file_name; -} - -void -AST_Decl::set_file_name(String *s) -{ - pd_file_name = s; -} - -UTL_ScopedName * -AST_Decl::name() -{ - return pd_name; -} - -void -AST_Decl::set_name(UTL_ScopedName *n) -{ - pd_name = n; - if (n != NULL) - pd_local_name = n->last_component(); -} - -Identifier * -AST_Decl::local_name() -{ - return pd_local_name; -} - -void -AST_Decl::add_pragmas(UTL_StrList *p) -{ - if (p != NULL) { - if (pd_pragmas != NULL) - pd_pragmas->nconc(p); - else - pd_pragmas = p; - } -} - -UTL_StrList * -AST_Decl::pragmas() -{ - return pd_pragmas; -} - -/* - * Narrowing methods for AST_Decl - */ -IMPL_NARROW_METHODS0(AST_Decl) -IMPL_NARROW_FROM_DECL(AST_Decl) - -/* -** Narrowing methods for COMMON_Base -*/ -IMPL_NARROW_METHODS0(COMMON_Base) diff --git a/TAO/TAO_IDL/ast/ast_enum.cpp b/TAO/TAO_IDL/ast/ast_enum.cpp deleted file mode 100644 index 5072fe282ce..00000000000 --- a/TAO/TAO_IDL/ast/ast_enum.cpp +++ /dev/null @@ -1,255 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_enum.cc - Implementation of class AST_Enum - * - * AST_Enum nodes denote IDL enum declarations. - * AST_Enums are a subclass of AST_ConcreteType and UTL_Scope. - * They have a counter denoting the next value to be assigned to - * an enumerator, and a name (a UTL_ScopedName). - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) and destructor - */ -AST_Enum::AST_Enum() - : pd_enum_counter(0) -{ -} - -AST_Enum::AST_Enum(UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl(AST_Decl::NT_enum, n, p), - UTL_Scope(AST_Decl::NT_enum), - pd_enum_counter(0) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Look up an enumerator by the value of the supplied expression - */ -AST_EnumVal * -AST_Enum::lookup_by_value(const AST_Expression *v) -{ - UTL_ScopeActiveIterator *iter; - AST_EnumVal *item; - AST_Decl *i; - - iter = new UTL_ScopeActiveIterator(this, IK_decls); - - while (!iter->is_done()) { - i = iter->item(); - item = AST_EnumVal::narrow_from_decl(i); - if (item->constant_value() == v) { - delete iter; - return item; - } - iter->next(); - } - delete iter; - return NULL; -} - -/* - * Compute the value to be assigned to the next enumerator. Bump the - * counter - */ -unsigned long -AST_Enum::next_enum_val() -{ - unsigned long i = pd_enum_counter++; - - return i; -} - -/* - * Static helper functions - */ - -/* - * Modify scoped name of an enumval so that it is scoped inside the scope - * in which the enum is defined and not inside the enum itself - */ -static UTL_ScopedName * -munge_name_for_enumval(UTL_ScopedName *n, Identifier *last_component) -{ - long l = n->length(); - UTL_ScopedName *hold = n; - - /* - * last three components are: - * - scope in which enum is defined - * - scope for enum - * - name of enumval - * - * We want to stop cdr'ing down the list when the head of the - * list is at the name for the scope in which the enum is defined - */ - while (l > 3) { - l--; - n = (UTL_ScopedName *) n->tail(); - } - - n->set_tail(new UTL_IdList(last_component, NULL)); - - return hold; -} - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Add an AST_EnumVal node to this scope - */ -AST_EnumVal *AST_Enum::fe_add_enum_val(AST_EnumVal *t) -{ - AST_Decl *d; - AST_EnumVal *t1 = NULL; - - if (t != NULL) { - t1 = idl_global->gen()->create_enum_val - (t->constant_value()->coerce(AST_Expression::EV_ulong)->u.ulval, - t->name(), t->pragmas()); - t->set_name(munge_name_for_enumval(t->name(), t->local_name())); - t1->set_name(munge_name_for_enumval(t1->name(), t1->local_name())); - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - /* - * Add it to enclosing scope - */ - idl_global->scopes()->next_to_top()->fe_add_enum_val(t1); - - return t; -} - -/* - * Dump this AST_Enum to the ostream o - */ -void -AST_Enum::dump(ostream &o) -{ - UTL_ScopeActiveIterator *i = new UTL_ScopeActiveIterator(this, IK_decls); - AST_Decl *d; - - o << "enum "; - local_name()->dump(o); - o << " {\n"; - - while (!(i->is_done())) { - d = i->item(); - d->local_name()->dump(o); - i->next(); - if (!(i->is_done())) - o << ", "; - } - delete i; - - idl_global->indent()->skip_to(o); - o << "}"; -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS2(AST_Enum, AST_ConcreteType, UTL_Scope) -IMPL_NARROW_FROM_DECL(AST_Enum) -IMPL_NARROW_FROM_SCOPE(AST_Enum) diff --git a/TAO/TAO_IDL/ast/ast_enum_val.cpp b/TAO/TAO_IDL/ast/ast_enum_val.cpp deleted file mode 100644 index ef665127456..00000000000 --- a/TAO/TAO_IDL/ast/ast_enum_val.cpp +++ /dev/null @@ -1,119 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_enum_val.cc - Implementation of class AST_EnumVal - * - * AST_EnumVals denote IDL enumerator declarations - * AST_EnumVals are a subclass of AST_Constant - * AST_EnumVals have no additional fields - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) and destructor - */ -AST_EnumVal::AST_EnumVal() -{ -} - -AST_EnumVal::AST_EnumVal(unsigned long v, UTL_ScopedName *n, UTL_StrList *p) - : AST_Constant(AST_Expression::EV_ulong, - AST_Decl::NT_enum_val, - new AST_Expression(v), n, p), - AST_Decl(AST_Decl::NT_enum_val, n, p) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_EnumVal to the ostream o - */ -void -AST_EnumVal::dump(ostream &o) -{ - AST_Constant::dump(o); -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS1(AST_EnumVal, AST_Constant) -IMPL_NARROW_FROM_DECL(AST_EnumVal) diff --git a/TAO/TAO_IDL/ast/ast_exception.cpp b/TAO/TAO_IDL/ast/ast_exception.cpp deleted file mode 100644 index 5ef44d18cba..00000000000 --- a/TAO/TAO_IDL/ast/ast_exception.cpp +++ /dev/null @@ -1,306 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_exception.cc - Implementation of class AST_Exception - * - * AST_Exceptions denote IDL exception declarations - * AST_Exceptions are a subclass of AST_Decl (they are not types!) - * and of UTL_Scope - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) and destructor - */ -AST_Exception::AST_Exception() -{ -} - -AST_Exception::AST_Exception(UTL_ScopedName *n, UTL_StrList *p) - : AST_Structure(AST_Decl::NT_except, n, p) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Add this AST_Field node to the current scope - */ -AST_Field *AST_Exception::fe_add_field(AST_Field *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Union (manifest type declaration) to the current scope - */ -AST_Union *AST_Exception::fe_add_union(AST_Union *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to local types - */ - add_to_local_types(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Structure (manifest type declaration) to the current - * scope - */ -AST_Structure *AST_Exception::fe_add_structure(AST_Structure *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error2(UTL_Error::EIDL_REDEF, t, this); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to local types - */ - add_to_local_types(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Enum (manifest type declaration) to the current scope - */ -AST_Enum *AST_Exception::fe_add_enum(AST_Enum *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to local types - */ - add_to_local_types(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_EnumVal (enumerator declaration) to the current scope. - * This is done to conform to the C++ scoping rules which declare - * enumerators in the enclosing scope (in addition to declaring them - * in the enum itself) - */ -AST_EnumVal *AST_Exception::fe_add_enum_val(AST_EnumVal *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Dump this AST_Exception node to the ostream o - */ -void -AST_Exception::dump(ostream &o) -{ - o << "exception "; - local_name()->dump(o); - o << " {\n"; - UTL_Scope::dump(o); - idl_global->indent()->skip_to(o); - o << "}"; -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS1(AST_Exception, AST_Structure) -IMPL_NARROW_FROM_DECL(AST_Exception) -IMPL_NARROW_FROM_SCOPE(AST_Exception) diff --git a/TAO/TAO_IDL/ast/ast_expression.cpp b/TAO/TAO_IDL/ast/ast_expression.cpp deleted file mode 100644 index 308fe9b4a3e..00000000000 --- a/TAO/TAO_IDL/ast/ast_expression.cpp +++ /dev/null @@ -1,1599 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* * ast_expression.cc - Implementation of class AST_Expression - * - * AST_Expression nodes denote IDL expressions used in the IDL input. - */ - -#include "idl.h" -#include "idl_extern.h" - -#include -#include - -#undef MAXCHAR -#define MAXCHAR 128 - -// Helper function to fill out the details of where this expression -// is defined -void -AST_Expression::fill_definition_details() -{ - pd_defined_in = idl_global->scopes()->depth() > 0 - ? idl_global->scopes()->top() - : 0 ; - pd_line = idl_global->lineno(); - pd_file_name = idl_global->filename(); -} - -/* - * Constructor(s) and destructor - */ - -/* - * An AST_Expression denoting a symbolic name - */ -AST_Expression::AST_Expression(UTL_ScopedName *nm) - : pd_ec(EC_symbol), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(nm) -{ - fill_definition_details(); -} - -/* - * An AST_Expression denoting a type coercion from another AST_Expression - */ -AST_Expression::AST_Expression(AST_Expression *v, ExprType t) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = v->coerce(t); - if (pd_ev == NULL) - idl_global->err()->coercion_error(v, t); -} - -/* - * An AST_Expression denoting a binary expression combination from - * two other AST_Expressions - */ -AST_Expression::AST_Expression(ExprComb c, AST_Expression *ev1, - AST_Expression *ev2) - : pd_ec(c), - pd_ev(NULL), - pd_v1(ev1), - pd_v2(ev2), - pd_n(NULL) -{ - fill_definition_details(); -} - -/* - * An AST_Expression denoting a short integer - */ -AST_Expression::AST_Expression(short sv) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = new AST_ExprValue; - pd_ev->et = EV_short; - pd_ev->u.sval = sv; -} - -/* - * An AST_Expression denoting an unsigned short integer - */ -AST_Expression::AST_Expression(unsigned short usv) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = new AST_ExprValue; - pd_ev->et = EV_ushort; - pd_ev->u.usval = usv; -} - -/* - * An AST_Expression denoting a long integer - */ -AST_Expression::AST_Expression(long lv) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = new AST_ExprValue; - pd_ev->et = EV_long; - pd_ev->u.lval = lv; -} - -/* - * An AST_Expression denoting a long integer being used as a boolean - */ -AST_Expression::AST_Expression(long lv, ExprType t) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = new AST_ExprValue; - pd_ev->et = t; - pd_ev->u.lval = lv; -} - -/* - * An AST_Expression denoting an unsigned long integer - */ -AST_Expression::AST_Expression(unsigned long ulv) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = new AST_ExprValue; - pd_ev->et = EV_ulong; - pd_ev->u.ulval = ulv; -} - -/* - * An AST_Expression denoting a 32-bit floating point number - */ -AST_Expression::AST_Expression(float fv) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = new AST_ExprValue; - pd_ev->et = EV_float; - pd_ev->u.fval = fv; -} - -/* - * An AST_Expression denoting a 64-bit floating point number - */ -AST_Expression::AST_Expression(double dv) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = new AST_ExprValue; - pd_ev->et = EV_double; - pd_ev->u.dval = dv; -} - -/* - * An AST_Expression denoting a character - */ -AST_Expression::AST_Expression(char cv) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = new AST_ExprValue; - pd_ev->et = EV_char; - pd_ev->u.cval = cv; -} - -/* - * An AST_Expression denoting an octet (unsigned char) - */ -AST_Expression::AST_Expression(unsigned char ov) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = new AST_ExprValue; - pd_ev->et = EV_octet; - pd_ev->u.oval = ov; -} - -/* - * An AST_Expression denotign a string (char * encapsulated as a String) - */ -AST_Expression::AST_Expression(String *sv) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = new AST_ExprValue; - pd_ev->et = EV_string; - pd_ev->u.strval = sv; -} - -/* - * Static operations - */ - -/* - * Perform the coercion from the given AST_ExprValue to the requested - * ExprType. Return an AST_ExprValue if successful, NULL if failed. - */ -static AST_Expression::AST_ExprValue * -coerce_value(AST_Expression::AST_ExprValue *ev, AST_Expression::ExprType t) -{ - if (ev == NULL) - return NULL; - - switch (t) { - case AST_Expression::EV_short: - switch (ev->et) { - case AST_Expression::EV_short: - return ev; - case AST_Expression::EV_ushort: - if (ev->u.usval > (unsigned short) SHRT_MAX) - return NULL; - ev->u.sval = (short) ev->u.usval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_long: - if (ev->u.lval > (long) SHRT_MAX || ev->u.lval < (long) -(SHRT_MAX)) - return NULL; - ev->u.sval = (short) ev->u.lval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_ulong: - if (ev->u.ulval > (unsigned long) SHRT_MAX) - return NULL; - ev->u.sval = (short) ev->u.ulval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_bool: - ev->u.sval = (short) ev->u.bval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_float: - if (ev->u.fval > (float) SHRT_MAX || ev->u.fval < (float) -(SHRT_MAX)) - return NULL; - ev->u.sval = (short) ev->u.fval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_double: - if (ev->u.dval > (double) SHRT_MAX || ev->u.dval < (double) -(SHRT_MAX)) - return NULL; - ev->u.sval = (short) ev->u.dval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_char: - ev->u.sval = (short) ev->u.cval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_octet: - ev->u.sval = (short) ev->u.oval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_string: - case AST_Expression::EV_wstring: - case AST_Expression::EV_any: - case AST_Expression::EV_void: - case AST_Expression::EV_none: - return NULL; - } - case AST_Expression::EV_ushort: - switch (ev->et) { - case AST_Expression::EV_short: - if (ev->u.sval < 0) - return NULL; - ev->u.usval = (unsigned short) ev->u.sval; - ev->et = AST_Expression::EV_ushort; - return ev; - case AST_Expression::EV_ushort: - return ev; - case AST_Expression::EV_long: - if (ev->u.lval > (long) (SHRT_MAX << 1) || ev->u.lval < 0) - return NULL; - ev->u.usval = (unsigned short) ev->u.lval; - ev->et = AST_Expression::EV_ushort; - return ev; - case AST_Expression::EV_ulong: - if (ev->u.ulval > (unsigned long) (SHRT_MAX << 1)) - return NULL; - ev->u.usval = (unsigned short) ev->u.ulval; - ev->et = AST_Expression::EV_ushort; - return ev; - case AST_Expression::EV_bool: - ev->u.usval = (unsigned short) ev->u.bval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_float: - if (ev->u.fval < 0.0 || ev->u.fval > (float) (SHRT_MAX << 1)) - return NULL; - ev->u.usval = (unsigned short) ev->u.fval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_double: - if (ev->u.dval < 0.0 || ev->u.dval > (double) (SHRT_MAX << 1)) - return NULL; - ev->u.usval = (unsigned short) ev->u.dval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_char: - if ((signed char) ev->u.cval < 0) - return NULL; - ev->u.usval = (unsigned short) ev->u.cval; - ev->et = AST_Expression::EV_ushort; - return ev; - case AST_Expression::EV_octet: - ev->u.usval = (unsigned short) ev->u.oval; - ev->et = AST_Expression::EV_ushort; - return ev; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - case AST_Expression::EV_string: - case AST_Expression::EV_any: - case AST_Expression::EV_void: - case AST_Expression::EV_none: - return NULL; - } - case AST_Expression::EV_long: - switch (ev->et) { - case AST_Expression::EV_short: - ev->u.lval = (long) ev->u.sval; - ev->et = AST_Expression::EV_long; - return ev; - case AST_Expression::EV_ushort: - ev->u.lval = (long) ev->u.usval; - ev->et = AST_Expression::EV_long; - return ev; - case AST_Expression::EV_long: - return ev; - case AST_Expression::EV_ulong: - if (ev->u.ulval > (unsigned long) LONG_MAX) - return NULL; - ev->u.lval = (long) ev->u.ulval; - ev->et = AST_Expression::EV_long; - return ev; - case AST_Expression::EV_bool: - ev->u.lval = (long) ev->u.bval; - ev->et = AST_Expression::EV_long; - return ev; - case AST_Expression::EV_float: - if (ev->u.fval > (float) LONG_MAX || ev->u.fval < (float) -(LONG_MAX)) - return NULL; - ev->u.lval = (long) ev->u.fval; - ev->et = AST_Expression::EV_long; - return ev; - case AST_Expression::EV_double: - if (ev->u.dval > (double) LONG_MAX || ev->u.dval < (double) -(LONG_MAX)) - return NULL; - ev->u.lval = (long) ev->u.dval; - ev->et = AST_Expression::EV_long; - return ev; - case AST_Expression::EV_char: - ev->u.lval = (long) ev->u.cval; - ev->et = AST_Expression::EV_long; - return ev; - case AST_Expression::EV_octet: - ev->u.lval = (long) ev->u.oval; - ev->et = AST_Expression::EV_long; - return ev; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - case AST_Expression::EV_string: - case AST_Expression::EV_any: - case AST_Expression::EV_void: - case AST_Expression::EV_none: - return NULL; - } - case AST_Expression::EV_ulong: - switch (ev->et) { - case AST_Expression::EV_short: - if (ev->u.sval < 0) - return NULL; - ev->u.ulval = (unsigned long) ev->u.sval; - ev->et = AST_Expression::EV_ulong; - return ev; - case AST_Expression::EV_ushort: - ev->u.ulval = (unsigned long) ev->u.usval; - ev->et = AST_Expression::EV_ulong; - return ev; - case AST_Expression::EV_long: - if (ev->u.lval < 0) - return NULL; - ev->u.ulval = (unsigned long) ev->u.lval; - ev->et = AST_Expression::EV_ulong; - return ev; - case AST_Expression::EV_ulong: - return ev; - case AST_Expression::EV_bool: - ev->u.ulval = (unsigned long) ev->u.bval; - ev->et = AST_Expression::EV_ulong; - return ev; - case AST_Expression::EV_float: - if (ev->u.fval < 0.0 || ev->u.fval > (float) LONG_MAX) - return NULL; - ev->u.ulval = (unsigned long) ev->u.fval; - ev->et = AST_Expression::EV_ulong; - return ev; - case AST_Expression::EV_double: - if (ev->u.dval < 0.0 || ev->u.dval > (double) LONG_MAX) - return NULL; - ev->u.ulval = (unsigned long) ev->u.dval; - ev->et = AST_Expression::EV_ulong; - return ev; - case AST_Expression::EV_char: - if ((signed char) ev->u.cval < 0) - return NULL; - ev->u.ulval = (unsigned long) ev->u.cval; - ev->et = AST_Expression::EV_ulong; - return ev; - case AST_Expression::EV_octet: - ev->u.ulval = (unsigned long) ev->u.oval; - ev->et = AST_Expression::EV_ulong; - return ev; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - case AST_Expression::EV_string: - case AST_Expression::EV_any: - case AST_Expression::EV_void: - case AST_Expression::EV_none: - return NULL; - } - case AST_Expression::EV_bool: - switch (ev->et) { - case AST_Expression::EV_short: - ev->u.bval = (ev->u.sval == 0) ? I_FALSE : I_TRUE; - ev->et = AST_Expression::EV_bool; - return ev; - case AST_Expression::EV_ushort: - ev->u.bval = (ev->u.usval == 0) ? I_FALSE : I_TRUE; - ev->et = AST_Expression::EV_bool; - return ev; - case AST_Expression::EV_long: - ev->u.bval = (ev->u.lval == 0) ? I_FALSE : I_TRUE; - ev->et = AST_Expression::EV_bool; - return ev; - case AST_Expression::EV_ulong: - ev->u.bval = (ev->u.ulval == 0) ? I_FALSE : I_TRUE; - ev->et = AST_Expression::EV_bool; - return ev; - case AST_Expression::EV_bool: - return ev; - case AST_Expression::EV_float: - ev->u.bval = (ev->u.fval == 0.0) ? I_FALSE : I_TRUE; - ev->et = AST_Expression::EV_bool; - return ev; - case AST_Expression::EV_double: - ev->u.bval = (ev->u.dval == 0.0) ? I_FALSE : I_TRUE; - ev->et = AST_Expression::EV_bool; - return ev; - case AST_Expression::EV_char: - ev->u.bval = (ev->u.cval == 0) ? I_FALSE : I_TRUE; - ev->et = AST_Expression::EV_bool; - return ev; - case AST_Expression::EV_octet: - ev->u.bval = (ev->u.oval == 0) ? I_FALSE : I_TRUE; - ev->et = AST_Expression::EV_bool; - return ev; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - case AST_Expression::EV_string: - case AST_Expression::EV_any: - case AST_Expression::EV_void: - case AST_Expression::EV_none: - return NULL; - } - case AST_Expression::EV_float: - switch (ev->et) { - case AST_Expression::EV_short: - ev->u.fval = (float) ev->u.sval; - ev->et = AST_Expression::EV_float; - return ev; - case AST_Expression::EV_ushort: - ev->u.fval = (float) ev->u.usval; - ev->et = AST_Expression::EV_float; - return ev; - case AST_Expression::EV_long: - ev->u.fval = (float) ev->u.lval; - ev->et = AST_Expression::EV_float; - return ev; - case AST_Expression::EV_ulong: - ev->u.fval = (float) ev->u.ulval; - ev->et = AST_Expression::EV_float; - return ev; - case AST_Expression::EV_bool: - ev->u.fval = (float) ((ev->u.bval == I_TRUE) ? 1.0 : 0.0); - ev->et = AST_Expression::EV_float; - return ev; - case AST_Expression::EV_float: - return ev; - case AST_Expression::EV_double: - if (ev->u.dval > FLT_MAX || ev->u.dval < -FLT_MAX) - return NULL; - ev->u.fval = (float) ev->u.dval; - ev->et = AST_Expression::EV_float; - return ev; - case AST_Expression::EV_char: - ev->u.fval = (float) ev->u.cval; - ev->et = AST_Expression::EV_float; - return ev; - case AST_Expression::EV_octet: - ev->u.fval = (float) ev->u.oval; - ev->et = AST_Expression::EV_float; - return ev; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - case AST_Expression::EV_string: - case AST_Expression::EV_any: - case AST_Expression::EV_void: - case AST_Expression::EV_none: - return NULL; - } - case AST_Expression::EV_double: - switch (ev->et) { - case AST_Expression::EV_short: - ev->u.dval = (double) ev->u.sval; - ev->et = AST_Expression::EV_double; - return ev; - case AST_Expression::EV_ushort: - ev->u.dval = (double) ev->u.usval; - ev->et = AST_Expression::EV_double; - return ev; - case AST_Expression::EV_long: - ev->u.dval = (double) ev->u.lval; - ev->et = AST_Expression::EV_double; - return ev; - case AST_Expression::EV_ulong: - ev->u.dval = (double) ev->u.ulval; - ev->et = AST_Expression::EV_double; - return ev; - case AST_Expression::EV_bool: - ev->u.dval = (ev->u.bval == I_TRUE) ? 1.0 : 0.0; - ev->et = AST_Expression::EV_double; - return ev; - case AST_Expression::EV_float: - ev->u.dval = (double) ev->u.fval; - ev->et = AST_Expression::EV_double; - return ev; - case AST_Expression::EV_double: - return ev; - case AST_Expression::EV_char: - ev->u.dval = (double) ev->u.cval; - ev->et = AST_Expression::EV_double; - return ev; - case AST_Expression::EV_octet: - ev->u.dval = (double) ev->u.oval; - ev->et = AST_Expression::EV_double; - return ev; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - case AST_Expression::EV_string: - case AST_Expression::EV_any: - case AST_Expression::EV_void: - case AST_Expression::EV_none: - return NULL; - } - case AST_Expression::EV_char: - switch (ev->et) { - case AST_Expression::EV_short: - if (ev->u.sval > (short) MAXCHAR || ev->u.sval < (short) -(MAXCHAR)) - return NULL; - ev->u.cval = (char) ev->u.sval; - ev->et = AST_Expression::EV_char; - return ev; - case AST_Expression::EV_ushort: - if (ev->u.usval > (unsigned short) MAXCHAR) - return NULL; - ev->u.cval = (char) ev->u.usval; - ev->et = AST_Expression::EV_char; - return ev; - case AST_Expression::EV_long: - if (ev->u.lval > (long) MAXCHAR || ev->u.lval < (long) -(MAXCHAR)) - return NULL; - ev->u.cval = (char) ev->u.lval; - ev->et = AST_Expression::EV_char; - return ev; - case AST_Expression::EV_ulong: - if (ev->u.ulval > (unsigned long) MAXCHAR) - return NULL; - ev->u.cval = (char) ev->u.ulval; - ev->et = AST_Expression::EV_char; - return ev; - case AST_Expression::EV_bool: - ev->u.cval = (char) ev->u.bval; - ev->et = AST_Expression::EV_char; - return ev; - case AST_Expression::EV_float: - if (ev->u.fval > (float) MAXCHAR || ev->u.fval < (float) -(MAXCHAR)) - return NULL; - ev->u.cval = (char) ev->u.fval; - ev->et = AST_Expression::EV_char; - return ev; - case AST_Expression::EV_double: - if (ev->u.dval > (double) MAXCHAR || ev->u.dval < (double) -(MAXCHAR)) - return NULL; - ev->u.cval = (char) ev->u.dval; - ev->et = AST_Expression::EV_char; - return ev; - case AST_Expression::EV_char: - return ev; - case AST_Expression::EV_octet: - if (ev->u.oval > (unsigned char) MAXCHAR) - return NULL; - ev->u.cval = (char) ev->u.oval; - ev->et = AST_Expression::EV_char; - return ev; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - case AST_Expression::EV_string: - case AST_Expression::EV_any: - case AST_Expression::EV_void: - case AST_Expression::EV_none: - return NULL; - } - case AST_Expression::EV_octet: - switch (ev->et) { - case AST_Expression::EV_short: - if (ev->u.sval < 0 || ev->u.sval > (short) (MAXCHAR << 1)) - return NULL; - ev->u.oval = (unsigned char) ev->u.sval; - ev->et = AST_Expression::EV_octet; - return ev; - case AST_Expression::EV_ushort: - if (ev->u.usval > (unsigned short) (MAXCHAR << 1)) - return NULL; - ev->u.oval = (unsigned char) ev->u.usval; - ev->et = AST_Expression::EV_octet; - return ev; - case AST_Expression::EV_long: - if (ev->u.lval < 0 || ev->u.lval > (long) (MAXCHAR << 1)) - return NULL; - ev->u.oval = (unsigned char) ev->u.lval; - ev->et = AST_Expression::EV_octet; - return ev; - case AST_Expression::EV_ulong: - if (ev->u.ulval > (unsigned long) (MAXCHAR << 1)) - return NULL; - ev->u.oval = (unsigned char) ev->u.ulval; - ev->et = AST_Expression::EV_octet; - return ev; - case AST_Expression::EV_bool: - ev->u.oval = (ev->u.bval == I_FALSE) ? 1 : 0; - ev->et = AST_Expression::EV_octet; - return ev; - case AST_Expression::EV_float: - if (ev->u.fval < 0.0 || ev->u.fval > (float) (MAXCHAR << 1)) - return NULL; - ev->u.oval = (unsigned char) ev->u.fval; - ev->et = AST_Expression::EV_octet; - return ev; - case AST_Expression::EV_double: - if (ev->u.dval < 0.0 || ev->u.dval > (double) (MAXCHAR << 1)) - return NULL; - ev->u.oval = (unsigned char) ev->u.dval; - ev->et = AST_Expression::EV_octet; - return ev; - case AST_Expression::EV_char: - if ((signed char) ev->u.cval < 0) - return NULL; - ev->u.oval = (unsigned char) ev->u.cval; - ev->et = AST_Expression::EV_octet; - return ev; - case AST_Expression::EV_octet: - return ev; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - case AST_Expression::EV_string: - case AST_Expression::EV_any: - case AST_Expression::EV_void: - case AST_Expression::EV_none: - return NULL; - } - case AST_Expression::EV_any: - switch (ev->et) { - case AST_Expression::EV_any: - return ev; - default: - return NULL; - } - case AST_Expression::EV_void: - switch (ev->et) { - case AST_Expression::EV_void: - return ev; - default: - return NULL; - } - case AST_Expression::EV_none: - return NULL; - case AST_Expression::EV_string: - switch (ev->et) { - case AST_Expression::EV_string: - return ev; - default: - return NULL; - } - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - return NULL; - } - return NULL; -} - -/* - * Evaluate the expression wrt the evaluation kind requested. Supported - * evaluation kinds are - * - EK_const: The expression must evaluate to a constant - * - EK_positive_int: The expression must further evaluate to a - * positive integer - */ -static AST_Expression::AST_ExprValue * -eval_kind(AST_Expression::AST_ExprValue *ev, AST_Expression::EvalKind ek) -{ - if (ek == AST_Expression::EK_const) - return ev; - if (ek == AST_Expression::EK_positive_int) - return coerce_value(ev, AST_Expression::EV_ulong); - - return NULL; -} - -/* - * Private operations - */ - -/* - * Apply binary operators to an AST_Expression after evaluating - * its sub-expressions. - * Operations supported: - * - * '+', '-', '*', '/' - */ -AST_Expression::AST_ExprValue * -AST_Expression::eval_bin_op(AST_Expression::EvalKind ek) -{ - AST_ExprValue *retval = NULL; - - if (ek != EK_const && ek != EK_positive_int) - return NULL; - if (pd_v1 == NULL || pd_v2 == NULL) - return NULL; - pd_v1->set_ev(pd_v1->eval_internal(ek)); - if (pd_v1->ev() == NULL) - return NULL; - pd_v1->set_ev(pd_v1->coerce(EV_double)); - if (pd_v1->ev() == NULL) - return NULL; - pd_v2->set_ev(pd_v2->eval_internal(ek)); - if (pd_v2->ev() == NULL) - return NULL; - pd_v2->set_ev(pd_v2->coerce(EV_double)); - if (pd_v2->ev() == NULL) - return NULL; - - retval = new AST_ExprValue; - retval->et = EV_double; - - switch (pd_ec) { - case EC_mod: - if (pd_v2->ev()->u.lval == 0) - return NULL; - retval->u.lval = pd_v1->ev()->u.lval % pd_v2->ev()->u.lval; - break; - case EC_add: - retval->u.dval = pd_v1->ev()->u.dval + pd_v2->ev()->u.dval; - break; - case EC_minus: - retval->u.dval = pd_v1->ev()->u.dval - pd_v2->ev()->u.dval; - break; - case EC_mul: - retval->u.dval = pd_v1->ev()->u.dval * pd_v2->ev()->u.dval; - break; - case EC_div: - if (pd_v2->ev()->u.dval == 0.0) - return NULL; - retval->u.dval = pd_v1->ev()->u.dval / pd_v2->ev()->u.dval; - break; - default: - return NULL; - } - return retval; -} - -/* - * Apply bitwise operations to an AST_Expression after evaluating - * its sub-expressions. - * Operations supported: - * - * '%', '|', '&', '^', '<<', '>>' - */ -AST_Expression::AST_ExprValue * -AST_Expression::eval_bit_op(AST_Expression::EvalKind ek) -{ - AST_Expression::AST_ExprValue *retval=NULL; - - if (ek != EK_const && ek != EK_positive_int) - return NULL; - if (pd_v1 == NULL || pd_v2 == NULL) - return NULL; - pd_v1->set_ev(pd_v1->eval_internal(ek)); - if (pd_v1->ev() == NULL) - return NULL; - pd_v1->set_ev(pd_v1->coerce(EV_long)); - if (pd_v1->ev() == NULL) - return NULL; - pd_v2->set_ev(pd_v2->eval_internal(ek)); - if (pd_v2->ev() == NULL) - return NULL; - pd_v2->set_ev(pd_v2->coerce(EV_long)); - if (pd_v2->ev() == NULL) - return NULL; - - retval = new AST_ExprValue; - retval->et = EV_long; - - switch (pd_ec) { - case EC_or: - retval->u.lval = pd_v1->ev()->u.lval | pd_v2->ev()->u.lval; - break; - case EC_xor: - retval->u.lval = pd_v1->ev()->u.lval ^ pd_v2->ev()->u.lval; - break; - case EC_and: - retval->u.lval = pd_v1->ev()->u.lval & pd_v2->ev()->u.lval; - break; - case EC_left: - retval->u.lval = pd_v1->ev()->u.lval << pd_v2->ev()->u.lval; - break; - case EC_right: - retval->u.lval = pd_v1->ev()->u.lval >> pd_v2->ev()->u.lval; - break; - default: - return NULL; - } - return retval; -} - -/* - * Apply unary operators to an AST_Expression after evaluating its - * sub-expression. - * Operations supported: - * - * '-', '+', '~' - */ -AST_Expression::AST_ExprValue * -AST_Expression::eval_un_op(AST_Expression::EvalKind ek) -{ - AST_ExprValue *retval = NULL; - - if (pd_ev != NULL) - return pd_ev; - - if (ek != EK_const && ek != EK_positive_int) - return NULL; - if (pd_v1 == NULL) - return NULL; - pd_v1->set_ev(pd_v1->eval_internal(ek)); - if (pd_v1->ev() == NULL) - return NULL; - pd_v1->set_ev(pd_v1->coerce(EV_double)); - if (pd_v1->ev() == NULL) - return NULL; - - retval = new AST_ExprValue; - retval->et = EV_double; - - switch (pd_ec) { - case EC_u_plus: - retval->u.lval = pd_v1->ev()->u.lval; - break; - case EC_u_minus: - retval->u.lval = -(pd_v1->ev()->u.lval); - break; - case EC_bit_neg: - pd_v1->set_ev(pd_v1->coerce(EV_long)); - if (pd_v1->ev() == NULL) - return NULL; - retval->u.lval = ~pd_v1->ev()->u.lval; - break; - default: - return NULL; - } - return retval; -} - -/* - * Evaluate a symbolic AST_Expression by looking up the named - * symbol. - */ -AST_Expression::AST_ExprValue * -AST_Expression::eval_symbol(AST_Expression::EvalKind ek) -{ - UTL_Scope *s = 0; - AST_Decl *d = 0; - AST_Constant *c = 0; - - /* - * Is there a symbol stored? - */ - if (pd_n == NULL) { - idl_global->err()->eval_error(this); - return NULL; - } - /* - * Get current scope for lookup - */ - if (idl_global->scopes()->depth() > 0) - s = idl_global->scopes()->top_non_null(); - if (s == NULL) { - idl_global->err()->lookup_error(pd_n); - return NULL; - } - /* - * Do lookup - */ - d = s->lookup_by_name(pd_n, I_TRUE); - if (d == NULL) { - idl_global->err()->lookup_error(pd_n); - return NULL; - } - /* - * Is it a constant? - */ - if (d->node_type() != AST_Decl::NT_const && - d->node_type() != AST_Decl::NT_enum_val) { - idl_global->err()->constant_expected(pd_n, d); - return NULL; - } - /* - * OK, now evaluate the constant we just got, to produce its value - */ - c = AST_Constant::narrow_from_decl(d); - if (c == NULL) return NULL; - return c->constant_value()->eval_internal(ek); -} - -/* - * Coerce "this" to the ExprType required. Returns a copy of the - * original ExprValue with the coercion applied, if successful, or - * NULL if failed. - */ -AST_Expression::AST_ExprValue * -AST_Expression::coerce(AST_Expression::ExprType t) -{ - AST_ExprValue *copy; - - /* - * Is it already of the right type? - */ - if (pd_ev != NULL && pd_ev->et == t) - return pd_ev; - /* - * OK, must coerce - * - * First, evaluate it, then try to coerce result type - * If already evaluated, return the result - */ - pd_ev = eval_internal(EK_const); - if (pd_ev == NULL) - return NULL; - - /* - * Create a copy to contain coercion result - */ - copy = new AST_ExprValue; - - copy->et = pd_ev->et; - switch (pd_ev->et) { - case EV_longlong: - case EV_ulonglong: - case EV_longdouble: - case EV_wchar: - case EV_wstring: - case EV_void: - case EV_none: - case EV_any: - return NULL; - case EV_short: - copy->u.sval = pd_ev->u.sval; - break; - case EV_ushort: - copy->u.usval = pd_ev->u.usval; - break; - case EV_long: - copy->u.lval = pd_ev->u.lval; - break; - case EV_ulong: - copy->u.ulval = pd_ev->u.ulval; - break; - case EV_bool: - copy->u.bval = pd_ev->u.bval; - break; - case EV_float: - copy->u.fval = pd_ev->u.fval; - break; - case EV_double: - copy->u.dval = pd_ev->u.dval; - break; - case EV_char: - copy->u.cval = pd_ev->u.cval; - break; - case EV_octet: - copy->u.oval = pd_ev->u.oval; - break; - case EV_string: - copy->u.strval = pd_ev->u.strval; - break; - } - - return coerce_value(copy, t); -} - -/* - * Eval used internally - */ -AST_Expression::AST_ExprValue * -AST_Expression::eval_internal(AST_Expression::EvalKind ek) -{ - /* - * Already evaluated? - */ - if (pd_ev != NULL) - return eval_kind(pd_ev, ek); - /* - * OK, must evaluate operator - */ - switch (pd_ec) { - case EC_add: - case EC_minus: - case EC_mul: - case EC_div: - case EC_mod: - pd_ev = eval_bin_op(ek); - return eval_kind(pd_ev, ek); - case EC_or: - case EC_xor: - case EC_and: - case EC_left: - case EC_right: - pd_ev = eval_bit_op(ek); - return eval_kind(pd_ev, ek); - case EC_u_plus: - case EC_u_minus: - case EC_bit_neg: - pd_ev = eval_un_op(ek); - return eval_kind(pd_ev, ek); - case EC_symbol: - pd_ev = eval_symbol(ek); - return eval_kind(pd_ev, ek); - case EC_none: - return NULL; - } - return NULL; -} - -/* - * Public operations - */ - -/* - * Evaluate an AST_Expression, producing an AST_ExprValue or NULL - */ -AST_Expression::AST_ExprValue * -AST_Expression::eval(AST_Expression::EvalKind ek) -{ - AST_Expression::AST_ExprValue *v = NULL; - - /* - * Call internal evaluator which does not coerce value to - * EvalKind-expected format - */ - v = eval_internal(ek); - /* - * Then coerce according to EvalKind-expected format - */ - return eval_kind(v, ek); -} - -/* - * Evaluate "this", assigning the value to the pd_ev field. - */ -void -AST_Expression::evaluate(EvalKind ek) -{ - pd_ev = eval_internal(ek); - pd_ev = eval_kind(pd_ev, ek); -} - -/* - * Expression equality comparison operator - */ -long -AST_Expression::operator==(AST_Expression *vc) -{ - if (pd_ec != vc->ec()) - return I_FALSE; - evaluate(EK_const); - vc->evaluate(EK_const); - if (pd_ev == NULL || vc->ev() == NULL) - return I_FALSE; - if (pd_ev->et != vc->ev()->et) - return I_FALSE; - switch (pd_ev->et) { - case EV_short: - return (pd_ev->u.sval == vc->ev()->u.sval) ? I_TRUE : I_FALSE; - case EV_ushort: - return (pd_ev->u.usval == vc->ev()->u.usval) ? I_TRUE : I_FALSE; - case EV_long: - return (pd_ev->u.lval == vc->ev()->u.lval) ? I_TRUE : I_FALSE; - case EV_ulong: - return (pd_ev->u.ulval == vc->ev()->u.ulval) ? I_TRUE : I_FALSE; - case EV_float: - return (pd_ev->u.fval == vc->ev()->u.fval) ? I_TRUE : I_FALSE; - case EV_double: - return (pd_ev->u.dval == vc->ev()->u.dval) ? I_TRUE : I_FALSE; - case EV_char: - return (pd_ev->u.cval == vc->ev()->u.cval) ? I_TRUE : I_FALSE; - case EV_octet: - return (pd_ev->u.oval == vc->ev()->u.oval) ? I_TRUE : I_FALSE; - case EV_bool: - return (pd_ev->u.lval == vc->ev()->u.lval) ? I_TRUE : I_FALSE; - case EV_string: - if (pd_ev->u.strval == NULL) { - if (vc->ev()->u.strval == NULL) - return I_TRUE; - else - return I_FALSE; - } else if (vc->ev()->u.strval == NULL) - return I_FALSE; - else - return (pd_ev->u.strval == vc->ev()->u.strval) ? I_TRUE : I_FALSE; - case EV_longlong: - case EV_ulonglong: - case EV_longdouble: - case EV_wchar: - case EV_wstring: - case EV_any: - case EV_void: - case EV_none: - return I_FALSE; - } - return I_FALSE; -} - -long -AST_Expression::compare(AST_Expression *vc) -{ - if (pd_ec != vc->ec()) - return I_FALSE; - evaluate(EK_const); - vc->evaluate(EK_const); - if (pd_ev == NULL || vc->ev() == NULL) - return I_FALSE; - if (pd_ev->et != vc->ev()->et) - return I_FALSE; - switch (pd_ev->et) { - case EV_short: - return (pd_ev->u.sval == vc->ev()->u.sval) ? I_TRUE : I_FALSE; - case EV_ushort: - return (pd_ev->u.usval == vc->ev()->u.usval) ? I_TRUE : I_FALSE; - case EV_long: - return (pd_ev->u.lval == vc->ev()->u.lval) ? I_TRUE : I_FALSE; - case EV_ulong: - return (pd_ev->u.ulval == vc->ev()->u.ulval) ? I_TRUE : I_FALSE; - case EV_float: - return (pd_ev->u.fval == vc->ev()->u.fval) ? I_TRUE : I_FALSE; - case EV_double: - return (pd_ev->u.dval == vc->ev()->u.dval) ? I_TRUE : I_FALSE; - case EV_char: - return (pd_ev->u.cval == vc->ev()->u.cval) ? I_TRUE : I_FALSE; - case EV_octet: - return (pd_ev->u.oval == vc->ev()->u.oval) ? I_TRUE : I_FALSE; - case EV_bool: - return (pd_ev->u.lval == vc->ev()->u.lval) ? I_TRUE : I_FALSE; - case EV_string: - if (pd_ev->u.strval == NULL) { - if (vc->ev()->u.strval == NULL) - return I_TRUE; - else - return I_FALSE; - } else if (vc->ev()->u.strval == NULL) - return I_FALSE; - else - return (pd_ev->u.strval == vc->ev()->u.strval) ? I_TRUE : I_FALSE; - case EV_longlong: - case EV_ulonglong: - case EV_longdouble: - case EV_wchar: - case EV_wstring: - case EV_any: - case EV_void: - case EV_none: - return I_FALSE; - } - return I_FALSE; -} - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Helper functions for expression dumpers - */ - -/* - * Dump this binary AST_Expression node to the ostream o - */ -static void -dump_binary_expr(ostream &o, char *s, AST_Expression *n1, AST_Expression *n2) -{ - if (n1 != NULL) n1->dump(o); - o << " " << s << " "; - if (n2 != NULL) n2->dump(o); -} - -/* - * Dump this unary AST_Expression node to the ostream o - */ -static void -dump_unary_expr(ostream &o, char *s, AST_Expression *e) -{ - o << s; - e->dump(o); -} - -/* - * Dump the supplied AST_ExprValue to the ostream o - */ -static void -dump_expr_val(ostream &o, AST_Expression::AST_ExprValue *ev) -{ - switch (ev->et) { - case AST_Expression::EV_short: - o << ev->u.sval; - break; - case AST_Expression::EV_ushort: - o << ev->u.usval; - break; - case AST_Expression::EV_long: - o << ev->u.lval; - break; - case AST_Expression::EV_ulong: - o << ev->u.ulval; - break; - case AST_Expression::EV_float: - o << ev->u.fval; - break; - case AST_Expression::EV_double: - o << ev->u.dval; - break; - case AST_Expression::EV_char: - o << ev->u.cval; - break; - case AST_Expression::EV_octet: - o << ev->u.oval; - break; - case AST_Expression::EV_bool: - o << (ev->u.bval == I_TRUE) ? "TRUE" : "FALSE"; - break; - case AST_Expression::EV_string: - if (ev->u.strval != NULL) - ev->u.strval->dump(o); - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - case AST_Expression::EV_any: - case AST_Expression::EV_none: - case AST_Expression::EV_void: - break; - } -} - -/* - * Dump an AST_Expression node to the ostream o - */ -void -AST_Expression::dump(ostream &o) -{ - /* - * See if it was a constant or was evaluated already - */ - if (pd_ev != NULL) { - dump_expr_val(o, pd_ev); - return; - } - /* - * OK, must print out an expression - */ - switch (pd_ec) { - /* - * Binary expressions: - */ - case EC_add: - dump_binary_expr(o, "+", pd_v1, pd_v2); - break; - case EC_minus: - dump_binary_expr(o, "-", pd_v1, pd_v2); - break; - case EC_mul: - dump_binary_expr(o, "*", pd_v1, pd_v2); - break; - case EC_div: - dump_binary_expr(o, "/", pd_v1, pd_v2); - break; - case EC_mod: - dump_binary_expr(o, "%", pd_v1, pd_v2); - break; - case EC_or: - dump_binary_expr(o, "|", pd_v1, pd_v2); - break; - case EC_xor: - dump_binary_expr(o, "^", pd_v1, pd_v2); - break; - case EC_and: - dump_binary_expr(o, "&", pd_v1, pd_v2); - break; - case EC_left: - dump_binary_expr(o, "<<", pd_v1, pd_v2); - break; - case EC_right: - dump_binary_expr(o, ">>", pd_v1, pd_v2); - break; - /* - * Unary expressions: - */ - case EC_u_plus: - dump_unary_expr(o, "+", pd_v1); - break; - case EC_u_minus: - dump_unary_expr(o, "-", pd_v1); - break; - case EC_bit_neg: - dump_unary_expr(o, "~", pd_v1); - break; - /* - * Unevaluated symbol - */ - case EC_symbol: - pd_n->dump(o); - break; - case EC_none: - break; - default: - o << GTDEVEL("unsupported dump mode for expression with ec == ") - << (int) pd_ec ; - break; - } -} - -/* - * Data accessors - */ - -UTL_Scope * -AST_Expression::defined_in() -{ - return pd_defined_in; -} - -void -AST_Expression::set_defined_in(UTL_Scope *d) -{ - pd_defined_in = d; -} - -long -AST_Expression::line() -{ - return pd_line; -} - -void -AST_Expression::set_line(long l) -{ - pd_line = l; -} - -String * -AST_Expression::file_name() -{ - return pd_file_name; -} - -void -AST_Expression::set_file_name(String *f) -{ - pd_file_name = f; -} - -AST_Expression::ExprComb -AST_Expression::ec() -{ - return pd_ec; -} - -void -AST_Expression::set_ec(AST_Expression::ExprComb new_ec) -{ - pd_ec = new_ec; -} - -AST_Expression::AST_ExprValue * -AST_Expression::ev() -{ - return pd_ev; -} - -void -AST_Expression::set_ev(AST_Expression::AST_ExprValue *new_ev) -{ - pd_ev = new_ev; -} - -AST_Expression * -AST_Expression::v1() -{ - return pd_v1; -} - -void -AST_Expression::set_v1(AST_Expression *e) -{ - - pd_v1 = e; -} - -AST_Expression * -AST_Expression::v2() -{ - return pd_v2; -} - -void -AST_Expression::set_v2(AST_Expression *e) -{ - pd_v2 = e; -} - -UTL_ScopedName * -AST_Expression::n() -{ - return pd_n; -} - -void -AST_Expression::set_n(UTL_ScopedName *new_n) -{ - pd_n = new_n; -} diff --git a/TAO/TAO_IDL/ast/ast_field.cpp b/TAO/TAO_IDL/ast/ast_field.cpp deleted file mode 100644 index 80939bcc2ce..00000000000 --- a/TAO/TAO_IDL/ast/ast_field.cpp +++ /dev/null @@ -1,153 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_field.cc - Implementation of class AST_Field - * - * AST_Fields denote fields in IDL structure, union and exception - * declarations. AST_Field is also used as a superclass of AST_Argument - * and AST_UnionBranch. - * AST_Fields have a field type (a subclass of AST_Type) and a name - * (a UTL_ScopedName) - * - * AST_Field supplies two constructors, one to be used in constructing - * AST_Field nodes, the other to be used in constructing AST_Argument - * nodes and AST_UnionBranch nodes. - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) and destructor - */ - -/* - * Default constructor - */ -AST_Field::AST_Field() - : pd_field_type(NULL) -{ -} - -/* - * To be used when constructing an AST_Field node - */ -AST_Field::AST_Field(AST_Type *ft, UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl(AST_Decl::NT_field, n, p), - pd_field_type(ft) -{ -} - -/* - * To be used when constructing a node of a subclass of AST_Field - */ -AST_Field::AST_Field(AST_Decl::NodeType nt, AST_Type *ft, - UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl(nt, n, p), - pd_field_type(ft) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_Field node to the ostream o - */ -void -AST_Field::dump(ostream &o) -{ - pd_field_type->local_name()->dump(o); - o << " "; - local_name()->dump(o); -} - -/* - * Data accessors - */ - -AST_Type * -AST_Field::field_type() -{ - return pd_field_type; -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS1(AST_Field, AST_Decl) -IMPL_NARROW_FROM_DECL(AST_Field) diff --git a/TAO/TAO_IDL/ast/ast_generator.cpp b/TAO/TAO_IDL/ast/ast_generator.cpp deleted file mode 100644 index 65b03aee387..00000000000 --- a/TAO/TAO_IDL/ast/ast_generator.cpp +++ /dev/null @@ -1,414 +0,0 @@ -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_generator.cc - Implements the base AST node generator - * - * The generator protocol is explained in detail in the IDL CFE - * design document. - * The AST_Generator class provides operations to instantiate any - * of the AST nodes. It contains an operation for every constructor - * of every AST class. - */ - -#include "idl.h" -#include "idl_extern.h" - -#include "ace/inc_user_config.h" - -/* - * Constructors - */ - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Construct an AST_PredefinedType node (a predefined type) - */ -AST_PredefinedType * -AST_Generator::create_predefined_type(AST_PredefinedType::PredefinedType t, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return new AST_PredefinedType(t, n, p); -} - -/* - * Construct an AST_Module node (a module) - */ -AST_Module * -AST_Generator::create_module(UTL_ScopedName *n, UTL_StrList *p) -{ - return new AST_Module(n, p); -} - -/* - * Construct an AST_Root node (a node representing the root of an AST) - */ -AST_Root * -AST_Generator::create_root(UTL_ScopedName *n, - UTL_StrList *p) -{ - return new AST_Root(n, p); -} - -/* - * Construct an AST_Interface node (an interface) - */ -AST_Interface * -AST_Generator::create_interface(UTL_ScopedName *n, - AST_Interface **ih, - long nih, - UTL_StrList *p) -{ - return new AST_Interface(n, ih, nih, p); -} - -/* - * Construct an AST_InterfaceFwd node (a node representing the forward - * declaration of an interface) - */ -AST_InterfaceFwd * -AST_Generator::create_interface_fwd(UTL_ScopedName *n, UTL_StrList *p) -{ - return new AST_InterfaceFwd(n, p); -} - -/* - * Construct an AST_Exception node (an exception) - */ -AST_Exception * -AST_Generator::create_exception(UTL_ScopedName *n, UTL_StrList *p) -{ - return new AST_Exception(n, p); -} - -/* - * Construct an AST_Structure node (a struct) - */ -AST_Structure * -AST_Generator::create_structure(UTL_ScopedName *n, UTL_StrList *p) -{ - return new AST_Structure(n, p); -} - -/* - * Construct an AST_Enum node (an enum) - */ -AST_Enum * -AST_Generator::create_enum(UTL_ScopedName *n, UTL_StrList *p) -{ - return new AST_Enum(n, p); -} - -/* - * Construct an AST_Operation node (an operation on an interface) - */ -AST_Operation * -AST_Generator::create_operation(AST_Type *rt, - AST_Operation::Flags fl, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return new AST_Operation(rt, fl, n, p); -} - -/* - * Construct an AST_Field node (a field in a struct, union or exception) - */ -AST_Field * -AST_Generator::create_field(AST_Type *ft, UTL_ScopedName *n, UTL_StrList *p) -{ - return new AST_Field(ft, n, p); -} - -/* - * Construct an AST_Argument node (an argument to an operation) - */ -AST_Argument * -AST_Generator::create_argument(AST_Argument::Direction d, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return new AST_Argument(d, ft, n, p); -} - -/* - * Construct an AST_Attribute node (an attribute) - */ -AST_Attribute * -AST_Generator::create_attribute(idl_bool ro, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return new AST_Attribute(ro, ft, n, p); -} - -/* - * Construct an AST_Union node (a union) - */ -AST_Union * -AST_Generator::create_union(AST_ConcreteType *dt, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return new AST_Union(dt, n, p); -} - -/* - * Construct an AST_UnionBranch node (a branch in a union) - */ -AST_UnionBranch * -AST_Generator::create_union_branch(AST_UnionLabel *lab, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return new AST_UnionBranch(lab, ft, n, p); -} - -/* - * Construct an AST_UnionLabel node (a label in a union) - */ -AST_UnionLabel * -AST_Generator::create_union_label(AST_UnionLabel::UnionLabel ul, - AST_Expression *v) -{ - return new AST_UnionLabel(ul, v); -} - -/* - * Construct an AST_Constant node (a constant) - */ -AST_Constant * -AST_Generator::create_constant(AST_Expression::ExprType et, - AST_Expression *ev, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return new AST_Constant(et, ev, n, p); -} - -/* - * Construct an AST_Expression node denoting a symbolic name - */ -AST_Expression * -AST_Generator::create_expr(UTL_ScopedName *n) -{ - return new AST_Expression(n); -} - -/* - * Construct an AST_Expression denoting a coercion - */ -AST_Expression * -AST_Generator::create_expr(AST_Expression *v, AST_Expression::ExprType t) -{ - return new AST_Expression(v, t); -} - -/* - * Construct an AST_Expression node denoting a binary combinator - * of two other AST_Expression nodes - */ -AST_Expression * -AST_Generator::create_expr(AST_Expression::ExprComb c, - AST_Expression *v1, - AST_Expression *v2) -{ - return new AST_Expression(c, v1, v2); -} - -/* - * Construct an AST_Expression node denoting a long integer - */ -AST_Expression * -AST_Generator::create_expr(long v) -{ - return new AST_Expression(v); -} - -/* - * Construct an AST_Expression node denoting a long integer being used - * as a boolean - */ -AST_Expression * -AST_Generator::create_expr(long v, AST_Expression::ExprType t) -{ - return new AST_Expression(v, t); -} - -/* - * Construct an AST_Expression node denoting an unsigned long integer - */ -AST_Expression * -AST_Generator::create_expr(unsigned long v) -{ - return new AST_Expression(v); -} - -/* - * Construct an AST_Expression node denoting a string (a char * - * encapsulated as String) - */ -AST_Expression * -AST_Generator::create_expr(String *s) -{ - return new AST_Expression(s); -} - -/* - * Construct an AST_Expression node denoting a character - */ -AST_Expression * -AST_Generator::create_expr(char c) -{ - return new AST_Expression(c); -} - -/* - * Construct an AST_Expression node denoting a 64-bit floating point number - */ -AST_Expression * -AST_Generator::create_expr(double d) -{ - return new AST_Expression(d); -} - -/* - * Construct an AST_EnumVal node (an enumerator) - */ -AST_EnumVal * -AST_Generator::create_enum_val(unsigned long v, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return new AST_EnumVal(v, n, p); -} - -/* - * Construct an AST_Array node (an array type or field modifier) - */ -AST_Array * -AST_Generator::create_array(UTL_ScopedName *n, - unsigned long ndims, - UTL_ExprList *dims) -{ - return new AST_Array(n, ndims, dims); -} - -/* - * Construct an AST_Sequence node (a sequence type definition) - */ -AST_Sequence * -AST_Generator::create_sequence(AST_Expression *ms, AST_Type *bt) -{ - return new AST_Sequence(ms, bt); -} - -/* - * Construct an AST_String node (a string type definition) - */ -AST_String * -AST_Generator::create_string(AST_Expression *ms) -{ - return new AST_String(ms); -} - -/* - * Construct an AST_String node denoting a wide string type definition - */ -AST_String * -AST_Generator::create_wstring(AST_Expression *ms) -{ - return new AST_String(ms, sizeof(ACE_OS::WChar)); -} - -/* - * Construct an AST_Typedef node (a typedef) - */ -AST_Typedef * -AST_Generator::create_typedef(AST_Type *bt, UTL_ScopedName *n, UTL_StrList *p) -{ - return new AST_Typedef(bt, n, p); -} - -/* - * Construct an AST_Native node - */ -AST_Native * -AST_Generator::create_native (UTL_ScopedName *n, - UTL_StrList *p) -{ - return new AST_Native (n, p); -} diff --git a/TAO/TAO_IDL/ast/ast_interface.cpp b/TAO/TAO_IDL/ast/ast_interface.cpp deleted file mode 100644 index 86e9b43c1b9..00000000000 --- a/TAO/TAO_IDL/ast/ast_interface.cpp +++ /dev/null @@ -1,605 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_interface.cc - Implementation of class AST_Interface - * - * AST_Interfaces denote IDL interface definitions - * AST_Interfaces are subclasses of AST_Type and UTL_Scope - * AST_Interfaces have an array of inherited interfaces and - * a count of the number of inherited interfaces. This count - * represents the total number of unique (recursively) inherited - * interfaces. - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) and destructor - */ -AST_Interface::AST_Interface() - : pd_inherits(NULL), - pd_n_inherits(0) -{ -} - -AST_Interface::AST_Interface(UTL_ScopedName *n, - AST_Interface **ih, - long nih, - UTL_StrList *p) - : AST_Decl(AST_Decl::NT_interface, n, p), - UTL_Scope(AST_Decl::NT_interface), - pd_inherits(ih), - pd_n_inherits(nih) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Add an AST_Constant node (a constant declaration) to this scope - */ -AST_Constant *AST_Interface::fe_add_constant(AST_Constant *t) -{ - AST_Decl *d; - - /* - * Can't add to interface which was not yet defined - */ - if (!is_defined()) { - idl_global->err()->error2(UTL_Error::EIDL_DECL_NOT_DEFINED, this, t); - return NULL; - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Exception node (an exception declaration) to this scope - */ -AST_Exception *AST_Interface::fe_add_exception(AST_Exception *t) -{ - AST_Decl *d; - - /* - * Can't add to interface which was not yet defined - */ - if (!is_defined()) { - idl_global->err()->error2(UTL_Error::EIDL_DECL_NOT_DEFINED, this, t); - return NULL; - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Attribute node (an attribute declaration) to this scope - */ -AST_Attribute *AST_Interface::fe_add_attribute(AST_Attribute *t) -{ - AST_Decl *d; - - /* - * Can't add to interface which was not yet defined - */ - if (!is_defined()) { - idl_global->err()->error2(UTL_Error::EIDL_DECL_NOT_DEFINED, this, t); - return NULL; - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Operation node (an operation declaration) to this scope - */ -AST_Operation *AST_Interface::fe_add_operation(AST_Operation *t) -{ - AST_Decl *d; - - /* - * Can't add to interface which was not yet defined - */ - if (!is_defined()) { - idl_global->err()->error2(UTL_Error::EIDL_DECL_NOT_DEFINED, this, t); - return NULL; - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Structure (a struct declaration) to this scope - */ -AST_Structure *AST_Interface::fe_add_structure(AST_Structure *t) -{ - AST_Decl *d; - - /* - * Can't add to interface which was not yet defined - */ - if (!is_defined()) { - idl_global->err()->error2(UTL_Error::EIDL_DECL_NOT_DEFINED, this, t); - return NULL; - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Enum node (an enum declaration) to this scope - */ -AST_Enum *AST_Interface::fe_add_enum(AST_Enum *t) -{ - AST_Decl *d; - - /* - * Can't add to interface which was not yet defined - */ - if (!is_defined()) { - idl_global->err()->error2(UTL_Error::EIDL_DECL_NOT_DEFINED, this, t); - return NULL; - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Union (a union declaration) to this scope - */ -AST_Union *AST_Interface::fe_add_union(AST_Union *t) -{ - AST_Decl *d; - - /* - * Can't add to interface which was not yet defined - */ - if (!is_defined()) { - idl_global->err()->error2(UTL_Error::EIDL_DECL_NOT_DEFINED, this, t); - return NULL; - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_EnumVal node (an enumerator) to this scope. - * This is done to conform to the C++ scoping rules which declare - * enumerators in the enclosing scope (in addition to declaring them - * in the enum itself) - */ -AST_EnumVal *AST_Interface::fe_add_enum_val(AST_EnumVal *t) -{ - AST_Decl *d; - - /* - * Can't add to interface which was not yet defined - */ - if (!is_defined()) { - idl_global->err()->error2(UTL_Error::EIDL_DECL_NOT_DEFINED, this, t); - return NULL; - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Typedef (a typedef) to the current scope - */ -AST_Typedef *AST_Interface::fe_add_typedef(AST_Typedef *t) -{ - AST_Decl *d; - - /* - * Can't add to interface which was not yet defined - */ - if (!is_defined()) { - idl_global->err()->error2(UTL_Error::EIDL_DECL_NOT_DEFINED, this, t); - return NULL; - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Native (a native declaration) to this scope - */ -AST_Native *AST_Interface::fe_add_native (AST_Native *t) -{ - AST_Decl *d; - - /* - * Can't add to interface which was not yet defined - */ - if (!is_defined()) { - idl_global->err()->error2(UTL_Error::EIDL_DECL_NOT_DEFINED, this, t); - return NULL; - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Dump this AST_Interface node to the ostream o - */ -void -AST_Interface::dump(ostream &o) -{ - long i; - - o << "interface "; - local_name()->dump(o); - o << " "; - if (pd_n_inherits > 0) { - o << ": "; - for (i = 0; i < pd_n_inherits; i++) { - pd_inherits[i]->local_name()->dump(o); - if (i < pd_n_inherits - 1) - o << ", "; - } - } - o << " {\n"; - UTL_Scope::dump(o); - idl_global->indent()->skip_to(o); - o << "}"; -} - -/* - * Data accessors - */ - -AST_Interface ** -AST_Interface::inherits() -{ - return pd_inherits; -} - -void -AST_Interface::set_inherits(AST_Interface **i) -{ - pd_inherits = i; -} - -long -AST_Interface::n_inherits() -{ - return pd_n_inherits; -} - -void -AST_Interface::set_n_inherits(long i) -{ - pd_n_inherits = i; -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS2(AST_Interface, AST_Type, UTL_Scope) -IMPL_NARROW_FROM_DECL(AST_Interface) -IMPL_NARROW_FROM_SCOPE(AST_Interface) diff --git a/TAO/TAO_IDL/ast/ast_interface_fwd.cpp b/TAO/TAO_IDL/ast/ast_interface_fwd.cpp deleted file mode 100644 index f9d20fdcca9..00000000000 --- a/TAO/TAO_IDL/ast/ast_interface_fwd.cpp +++ /dev/null @@ -1,147 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_interface_fwd.cc - Implementation of class AST_InterfaceFwd - * - * AST_InterfaceFwd nodes denote forward declarations of IDL interfaces - * AST_InterfaceFwd nodes have a field containing the full declaration - * of the interface, which is initialized when that declaration is - * encountered. - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) and destructor - */ -AST_InterfaceFwd::AST_InterfaceFwd() - : pd_full_definition(NULL) -{ -} - -AST_InterfaceFwd::AST_InterfaceFwd(UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl(AST_Decl::NT_interface_fwd, n, p) -{ - /* - * Create a dummy placeholder for the forward declared interface. This - * interface node is not yet defined (n_inherits < 0), so some operations - * will fail - */ - pd_full_definition = idl_global->gen()->create_interface(n, NULL, -1, p); - /* - * Record the node in a list to be checked after the entire AST has been - * parsed. All nodes in the list must have n_inherits >= 0, else this - * indicates that a full definition was not seen for this forward - * delcared interface - */ - AST_record_fwd_interface(this); -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_InterfaceFwd node to the ostream o - */ -void -AST_InterfaceFwd::dump(ostream &o) -{ - o << "interface "; - local_name()->dump(o); -} - -/* - * Data accessors - */ - -AST_Interface * -AST_InterfaceFwd::full_definition() -{ - return pd_full_definition; -} - -void -AST_InterfaceFwd::set_full_definition(AST_Interface *nfd) -{ - pd_full_definition = nfd; -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS1 (AST_InterfaceFwd, AST_Type) -IMPL_NARROW_FROM_DECL (AST_InterfaceFwd) diff --git a/TAO/TAO_IDL/ast/ast_module.cpp b/TAO/TAO_IDL/ast/ast_module.cpp deleted file mode 100644 index ea5ab115fb7..00000000000 --- a/TAO/TAO_IDL/ast/ast_module.cpp +++ /dev/null @@ -1,592 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_module.cc - Implementation of class AST_Module - * - * AST_Modules denote IDL module declarations - * AST_Modules are subclasses of AST_Decl (they are not a type!) and - * of UTL_Scope. - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) and destructor - */ -AST_Module::AST_Module() -{ -} - -AST_Module::AST_Module(UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl(AST_Decl::NT_module, n, p), - UTL_Scope(AST_Decl::NT_module) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Add this AST_PredefinedType node (a predefined type declaration) to - * this scope - */ -AST_PredefinedType *AST_Module::fe_add_predefined_type(AST_PredefinedType *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Module node (a module declaration) to this scope - */ -AST_Module *AST_Module::fe_add_module(AST_Module *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Interface node (an interface declaration) to this scope - */ -AST_Interface *AST_Module::fe_add_interface(AST_Interface *t) -{ - AST_Decl *predef; - AST_Interface *fwd; - - /* - * Already defined? - */ - if ((predef = lookup_for_add(t, I_FALSE)) != NULL) { - /* - * Treat fwd declared interfaces specially - */ - if (predef->node_type() == AST_Decl::NT_interface) { - fwd = AST_Interface::narrow_from_decl(predef); - - if (fwd == NULL) - return NULL; - - if (!fwd->is_defined()) { /* Forward declared and not defined yet */ - if (fwd->defined_in() != this) { - idl_global->err() - ->error3(UTL_Error::EIDL_SCOPE_CONFLICT, fwd, t, this); - return NULL; - } - } - /* - * OK, not illegal redef of forward declaration. Now check whether - * it has been referenced already - */ - else if (referenced(predef)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, predef); - return NULL; - } - } else if (!can_be_redefined(predef)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, predef); - return NULL; - } else if (referenced(predef)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, predef); - return NULL; - } else if (t->has_ancestor(predef)) { - idl_global->err()->redefinition_in_scope(t, predef); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_InterfaceFwd node (a forward declaration of an IDL - * interface) to this scope - */ -AST_InterfaceFwd *AST_Module::fe_add_interface_fwd(AST_InterfaceFwd *i) -{ - AST_Decl *d; - AST_Interface *itf; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(i, I_FALSE)) != NULL) { - if (d->node_type() == AST_Decl::NT_interface && - d->defined_in() == this) { - itf = AST_Interface::narrow_from_decl(d); - if (itf == NULL) - return NULL; - - i->set_full_definition(itf); - return i; - } - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, i, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, i, this, d); - return NULL; - } - if (i->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(i, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(i); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(i, I_FALSE); - - return i; -} - -/* - * Add this AST_Constant node (a constant declaration) to this scope - */ -AST_Constant *AST_Module::fe_add_constant(AST_Constant *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Exception node (an exception declaration) to this scope - */ -AST_Exception *AST_Module::fe_add_exception(AST_Exception *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Union node (a union declaration) to this scope - */ -AST_Union *AST_Module::fe_add_union(AST_Union *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Structure node (a struct declaration) to this scope - */ -AST_Structure *AST_Module::fe_add_structure(AST_Structure *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Enum node (an enum declaration) to this scope - */ -AST_Enum *AST_Module::fe_add_enum(AST_Enum *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_EnumVal node (an enumerator declaration) to this scope - * This is done to conform to the C++ scoping rules which declare - * enumerators in the enclosing scope (in addition to declaring them - * in the enum itself) - */ -AST_EnumVal *AST_Module::fe_add_enum_val(AST_EnumVal *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Typedef node (a typedef) to this scope - */ -AST_Typedef *AST_Module::fe_add_typedef(AST_Typedef *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Native (a native declaration) to this scope - */ -AST_Native *AST_Module::fe_add_native (AST_Native *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Dump this AST_Module node to the ostream o - */ -void -AST_Module::dump(ostream &o) -{ - o << "module "; - local_name()->dump(o); - o << " {\n"; - UTL_Scope::dump(o); - idl_global->indent()->skip_to(o); - o << "}"; -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS2(AST_Module, AST_Decl, UTL_Scope) -IMPL_NARROW_FROM_DECL(AST_Module) -IMPL_NARROW_FROM_SCOPE(AST_Module) diff --git a/TAO/TAO_IDL/ast/ast_native.cpp b/TAO/TAO_IDL/ast/ast_native.cpp deleted file mode 100644 index 17888d86403..00000000000 --- a/TAO/TAO_IDL/ast/ast_native.cpp +++ /dev/null @@ -1,33 +0,0 @@ -// $Id$ - - -// AST_Native: New IDL type added by the POA spec - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) - */ -AST_Native::AST_Native (void) -{ -} - -AST_Native::AST_Native(UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl (AST_Decl::NT_native, n, p) -{ -} - -/* - * Dump this AST_Native node to the ostream o - */ -void -AST_Native::dump (ostream &o) -{ - AST_Decl::dump (o); -} - -// Narrowing -IMPL_NARROW_METHODS1(AST_Native, AST_Type) -IMPL_NARROW_FROM_DECL(AST_Native) diff --git a/TAO/TAO_IDL/ast/ast_operation.cpp b/TAO/TAO_IDL/ast/ast_operation.cpp deleted file mode 100644 index c0371591258..00000000000 --- a/TAO/TAO_IDL/ast/ast_operation.cpp +++ /dev/null @@ -1,328 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_operation.cc - Implementation of class AST_Operation - * - * AST_Operation nodes denote IDL operation declarations - * AST_Operations are a subclass of AST_Decl (they are not a type!) - * and of UTL_Scope (the arguments are managed in a scope). - * AST_Operations have a return type (a subclass of AST_Type), - * a bitfield for denoting various properties of the operation (the - * values are ORed together from constants defined in the enum - * AST_Operation::FLags), a name (a UTL_ScopedName), a context - * (implemented as a list of Strings, a UTL_StrList), and a raises - * clause (implemented as an array of AST_Exceptions). - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) and destructor - */ -AST_Operation::AST_Operation() - : pd_return_type(NULL), - pd_flags(OP_noflags), - pd_context(NULL), - pd_exceptions(NULL) -{ -} - -AST_Operation::AST_Operation(AST_Type *rt, Flags fl, UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(AST_Decl::NT_op, n, p), - UTL_Scope(AST_Decl::NT_op), - pd_return_type(rt), - pd_flags(fl), - pd_context(NULL), - pd_exceptions(NULL) -{ - AST_PredefinedType *pdt; - - /* - * Check that if the operation is oneway, the return type must be void - */ - if (rt != NULL && pd_flags == OP_oneway) { - if (rt->node_type() != AST_Decl::NT_pre_defined) - idl_global->err()->error1(UTL_Error::EIDL_NONVOID_ONEWAY, this); - else { - pdt = AST_PredefinedType::narrow_from_decl(rt); - if (pdt == NULL || pdt->pt() != AST_PredefinedType::PT_void) - idl_global->err()->error1(UTL_Error::EIDL_NONVOID_ONEWAY, this); - } - } -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Add this context (a UTL_StrList) to this scope - */ -UTL_StrList * -AST_Operation::fe_add_context(UTL_StrList *t) -{ - pd_context = t; - - return t; -} - -/* - * Add these exceptions (identified by name) to this scope. - * This looks up each name to resolve it to the name of a known - * exception, and then adds the referenced exception to the list - * of exceptions that this operation can raise. - * - * NOTE: No attempt is made to ensure that exceptions are mentioned - * only once.. - */ -UTL_NameList * -AST_Operation::fe_add_exceptions(UTL_NameList *t) -{ - UTL_NamelistActiveIterator *nl_i; - UTL_ScopedName *nl_n; - UTL_Scope *fs = idl_global->scopes()->top(); - AST_Exception *fe; - AST_Decl *d; - - // Macro to avoid "warning: unused parameter" type warning. - ACE_UNUSED_ARG (fs); - - pd_exceptions = NULL; - nl_i = new UTL_NamelistActiveIterator(t); - while (!(nl_i->is_done())) { - nl_n = nl_i->item(); - d = lookup_by_name(nl_n, I_TRUE); - if (d == NULL || d->node_type() != AST_Decl::NT_except) { - idl_global->err()->lookup_error(nl_n); - delete nl_i; - return NULL; - } - fe = AST_Exception::narrow_from_decl(d); - if (fe == NULL) { - idl_global->err()->error1(UTL_Error::EIDL_ILLEGAL_RAISES, this); - return NULL; - } - if (pd_exceptions == NULL) - pd_exceptions = new UTL_ExceptList(fe, NULL); - else - pd_exceptions->nconc(new UTL_ExceptList(fe, NULL)); - nl_i->next(); - } - delete nl_i; - - return t; -} - -/* - * Add this AST_Argument node (an operation argument declaration) - * to this scope - */ -AST_Argument *AST_Operation::fe_add_argument(AST_Argument *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_by_name_local(t->local_name(), I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Cannot add OUT or INOUT argument to oneway operation - */ - if ((t->direction() == AST_Argument::dir_OUT || - t->direction() == AST_Argument::dir_INOUT) && - pd_flags == OP_oneway) { - idl_global->err()->error2(UTL_Error::EIDL_ONEWAY_CONFLICT, t, this); - return NULL; - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Dump this AST_Operation node (an operation) to the ostream o - */ -void -AST_Operation::dump(ostream &o) -{ - UTL_ScopeActiveIterator *i; - UTL_StrlistActiveIterator *si; - UTL_ExceptlistActiveIterator *ei; - AST_Decl *d; - AST_Exception *e; - String *s; - - if (pd_flags == OP_oneway) - o << "oneway "; - else if (pd_flags == OP_idempotent) - o << "idempotent "; - - i = new UTL_ScopeActiveIterator(this, IK_decls); - pd_return_type->name()->dump(o); - o << " "; - local_name()->dump(o); - o << "("; - while (!(i->is_done())) { - d = i->item(); - d->dump(o); - i->next(); - if (!(i->is_done())) - o << ", "; - } - delete i; - o << ")"; - - if (pd_exceptions != NULL) { - o << " raises("; - ei = new UTL_ExceptlistActiveIterator(pd_exceptions); - while (!(ei->is_done())) { - e = ei->item(); - ei->next(); - e->local_name()->dump(o); - if (!(ei->is_done())) - o << ", "; - } - delete ei; - o << ")"; - } - if (pd_context != NULL) { - o << " context("; - si = new UTL_StrlistActiveIterator(pd_context); - while (!(si->is_done())) { - s = si->item(); - si->next(); - o << s->get_string(); - if (!(si->is_done())) - o << ", "; - } - delete si; - o << ")"; - } -} - -/* - * Data accessors - */ - -AST_Type * -AST_Operation::return_type() -{ - return pd_return_type; -} - -AST_Operation::Flags -AST_Operation::flags() -{ - return pd_flags; -} - -UTL_StrList * -AST_Operation::context() -{ - return pd_context; -} - -UTL_ExceptList * -AST_Operation::exceptions() -{ - return pd_exceptions; -} - -// Narrowing -IMPL_NARROW_METHODS2(AST_Operation, AST_Decl, UTL_Scope) -IMPL_NARROW_FROM_DECL(AST_Operation) -IMPL_NARROW_FROM_SCOPE(AST_Operation) diff --git a/TAO/TAO_IDL/ast/ast_predefined_type.cpp b/TAO/TAO_IDL/ast/ast_predefined_type.cpp deleted file mode 100644 index 2d2a393c01d..00000000000 --- a/TAO/TAO_IDL/ast/ast_predefined_type.cpp +++ /dev/null @@ -1,130 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_predefined_type.cc - Implementation of class AST_PredefinedType - * - * AST_PredefinedType nodes denote the various predefined types such - * as long, short, etc. that are available in IDL. Each AST_PredefinedType - * node has a field (the value of this field is from the enum - * AST_PredefinedType::PredefinedType) which denotes the specific predefined - * type that this node represents. There is only one node in the entire - * AST which represents each predefined type, such as long etc. - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) - */ -AST_PredefinedType::AST_PredefinedType() - : pd_pt(PT_long) -{ -} - -AST_PredefinedType::AST_PredefinedType(PredefinedType t, UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(AST_Decl::NT_pre_defined, n, p), - pd_pt(t) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_PredefinedType node to the ostream o - */ -void -AST_PredefinedType::dump(ostream &o) -{ - AST_Decl::dump(o); -} - -/* - * Data accessors - */ - -AST_PredefinedType::PredefinedType -AST_PredefinedType::pt() -{ - return pd_pt; -} - -// Narrowing -IMPL_NARROW_METHODS1(AST_PredefinedType, AST_ConcreteType) -IMPL_NARROW_FROM_DECL(AST_PredefinedType) diff --git a/TAO/TAO_IDL/ast/ast_recursive.cpp b/TAO/TAO_IDL/ast/ast_recursive.cpp deleted file mode 100644 index 09591dffe12..00000000000 --- a/TAO/TAO_IDL/ast/ast_recursive.cpp +++ /dev/null @@ -1,167 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_recursive.cc - Check whether a type is used recursively in a situation - * where this use would be illegal. - * - * EXPLANATION: The CORBAS says that the only legal use of recursive types is - * in a manifest sequence declared inside a struct or union whose base type is - * the struct or union - * - * ALGORITH FOR CHECK: - * Sequences push a NULL on the scope stack to mark where in the scope nesting - * they appear. - * - * - If the type is not a struct or union, return FALSE (legal use of type) - * - Otherwise check up the scope stack, looking for this base type. If we - * find a NULL return FALSE (legal use of type, since it is inside some - * sequence). If we find the type on the stack, return TRUE (illegal use - * since it was not bracketed by a sequence). If we don't find the base - * type nor a sequence, return FALSE (legal use, since we're not nested). - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * FE_illegal_recursive_type() - Implement the algorithm described above - */ -idl_bool -AST_illegal_recursive_type(AST_Decl *t) -{ - UTL_ScopeStackActiveIterator *i = 0; - UTL_Scope *s = 0; - AST_Structure *st1 = 0, *st2 = 0; - AST_Union *un1 = 0, *un2 = 0; - idl_bool check_for_struct = I_FALSE, - check_for_union = I_FALSE; - - if (t == NULL) return I_FALSE; - - /* - * We only care about structs and unions - */ - if (t->node_type() != AST_Decl::NT_struct && - t->node_type() != AST_Decl::NT_union) - return I_FALSE; // NOT ILLEGAL - /* - * Narrow the type appropriately so comparison will work - */ - if (t->node_type() == AST_Decl::NT_struct) { - check_for_struct = I_TRUE; - st1 = AST_Structure::narrow_from_decl(t); - if (st1 == NULL) - return I_FALSE; // NOT ILLEGAL - } else if (t->node_type() == AST_Decl::NT_union) { - check_for_union = I_TRUE; - un1 = AST_Union::narrow_from_decl(t); - if (un1 == NULL) - return I_FALSE; // NOT ILLEGAL - } - /* - * OK, iterate up the stack - */ - i = new UTL_ScopeStackActiveIterator(idl_global->scopes()); - while (!(i->is_done())) { - s = i->item(); - /* - * If we hit a NULL we're done since it means that we're nested inside - * a sequence, where recursive types may be used - */ - if (s == NULL) { - delete i; - return I_FALSE; // NOT ILLEGAL - } - /* - * OK, must check this scope - */ - if (s->scope_node_type() == AST_Decl::NT_struct && check_for_struct) { - st2 = AST_Structure::narrow_from_scope(s); - if (st2 != NULL && st2 == st1) { - delete i; - return I_TRUE; // ILLEGAL RECURSIVE TYPE USE - } - } else if (s->scope_node_type() == AST_Decl::NT_union && - check_for_union) { - un2 = AST_Union::narrow_from_scope(s); - if (un2 != NULL && un2 == un1) { - delete i; - return I_TRUE; // ILLEGAL RECURSIVE TYPE USE - } - } - /* - * This one is fine, get next item - */ - i->next(); - } - /* - * No more scopes to check. This type was used legally - */ - delete i; - return I_FALSE; // NOT ILLEGAL -} - diff --git a/TAO/TAO_IDL/ast/ast_redef.cpp b/TAO/TAO_IDL/ast/ast_redef.cpp deleted file mode 100644 index 482bc2d869c..00000000000 --- a/TAO/TAO_IDL/ast/ast_redef.cpp +++ /dev/null @@ -1,108 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_redef.cc - Implement utility function to decide when redefinition - * is allowed - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Return TRUE if the node d represents an IDL construct whose name - * can be redefined. - */ -idl_bool -can_be_redefined(AST_Decl *d) -{ - switch (d->node_type()) { - case AST_Decl::NT_module: - case AST_Decl::NT_interface: - case AST_Decl::NT_interface_fwd: - case AST_Decl::NT_const: - case AST_Decl::NT_except: - case AST_Decl::NT_argument: - case AST_Decl::NT_enum_val: - case AST_Decl::NT_string: - case AST_Decl::NT_array: - case AST_Decl::NT_sequence: - case AST_Decl::NT_union: - case AST_Decl::NT_struct: - case AST_Decl::NT_enum: - case AST_Decl::NT_typedef: - return I_TRUE; - - case AST_Decl::NT_union_branch: - case AST_Decl::NT_field: - case AST_Decl::NT_attr: - case AST_Decl::NT_op: - case AST_Decl::NT_pre_defined: - default: - return I_FALSE; - } -} - diff --git a/TAO/TAO_IDL/ast/ast_root.cpp b/TAO/TAO_IDL/ast/ast_root.cpp deleted file mode 100644 index a4ffb8e2997..00000000000 --- a/TAO/TAO_IDL/ast/ast_root.cpp +++ /dev/null @@ -1,166 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_root.cc - Implementation of class AST_Root - * - * AST_Root nodes represent the roots of ASTs. - * AST_Root is a subclass of AST_Module, and is defined to allow BEs - * to subclass it to associate their own information with an entire - * AST. - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) and destructor - */ -AST_Root::AST_Root() -{ -} - -AST_Root::AST_Root(UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl(AST_Decl::NT_module, n, p), - UTL_Scope(AST_Decl::NT_module) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Add protocol - */ - -/* - * Add this AST_Sequence to the locally defined types in this scope - */ -AST_Sequence * -AST_Root::fe_add_sequence(AST_Sequence *t) -{ - if (t == NULL) - return NULL; - t->set_name(new UTL_ScopedName(new Identifier("local type", 1, 0, I_FALSE), - NULL)); - add_to_local_types(t); - return t; -} - -/* - * Add this AST_String to the locally defined types in this scope - */ -AST_String * -AST_Root::fe_add_string(AST_String *t) -{ - if (t == NULL) - return NULL; - t->set_name(new UTL_ScopedName(new Identifier("local type", 1, 0, I_FALSE), - NULL)); - add_to_local_types(t); - - return t; -} - -/* - * Add this AST_Array to the locally defined types in this scope - */ -AST_Array * -AST_Root::fe_add_array(AST_Array *t) -{ - if (t == NULL) - return NULL; - t->set_name(new UTL_ScopedName(new Identifier("local type",1,0,I_FALSE), - NULL)); - add_to_local_types(t); - - return t; -} - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_Root node to the ostream o - */ -void -AST_Root::dump(ostream &o) -{ - UTL_Scope::dump(o); -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS1(AST_Root, AST_Module) -IMPL_NARROW_FROM_DECL(AST_Root) -IMPL_NARROW_FROM_SCOPE(AST_Root) diff --git a/TAO/TAO_IDL/ast/ast_sequence.cpp b/TAO/TAO_IDL/ast/ast_sequence.cpp deleted file mode 100644 index 276cc31a137..00000000000 --- a/TAO/TAO_IDL/ast/ast_sequence.cpp +++ /dev/null @@ -1,143 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_sequence.cc - Implementation of class AST_Sequence - * - * AST_Sequence nodes represent IDL sequence declarations. - * AST_Sequence is a subclass of AST_ConcreteType. - * AST_Sequence nodes have a maximum size (an AST_Expression which - * must evaluate to a positive integer) and a base type (a subclass - * of AST_Type). - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) and destructor - */ -AST_Sequence::AST_Sequence() - : pd_max_size(0), - pd_base_type(NULL) -{ -} - -AST_Sequence::AST_Sequence(AST_Expression *ms, AST_Type *bt) - : AST_Decl(AST_Decl::NT_sequence, - new UTL_ScopedName( - new Identifier("sequence",1,0,I_FALSE), - NULL), - NULL), - pd_max_size(ms), - pd_base_type(bt) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_Sequence node to the ostream o - */ -void -AST_Sequence::dump(ostream &o) -{ - o << "sequence <"; - pd_base_type->dump(o); - o << ", "; - pd_max_size->dump(o); - o << ">"; -} - -/* - * Data accessors - */ - -AST_Expression * -AST_Sequence::max_size() -{ - return pd_max_size; -} - -AST_Type * -AST_Sequence::base_type() -{ - return pd_base_type; -} - -// Narrowing -IMPL_NARROW_METHODS1(AST_Sequence, AST_ConcreteType) -IMPL_NARROW_FROM_DECL(AST_Sequence) diff --git a/TAO/TAO_IDL/ast/ast_string.cpp b/TAO/TAO_IDL/ast/ast_string.cpp deleted file mode 100644 index e6a502d7604..00000000000 --- a/TAO/TAO_IDL/ast/ast_string.cpp +++ /dev/null @@ -1,153 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_string.cc - Implementation of class AST_String - * - * AST_String nodes represent IDL string declarations. - * AST_String is a subclass of AST_ConcreteType. - * AST_String nodes have a maximum size (an AST_Expression which must - * evaluate to a positive integer). - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) and destructor - */ -AST_String::AST_String() - : pd_max_size(0), pd_width(1) -{ -} - -AST_String::AST_String(AST_Expression *ms) - : AST_Decl(AST_Decl::NT_string, - new UTL_ScopedName(new Identifier("string",1,0,I_FALSE), - NULL), - NULL), - pd_max_size(ms), - pd_width(sizeof(char)) -{ -} - -AST_String::AST_String(AST_Expression *ms, long wide) - : AST_Decl(AST_Decl::NT_string, - new UTL_ScopedName(wide == sizeof(char) - ? new Identifier("string",1,0,I_FALSE) - : new Identifier("wstring_t", - 1, - 0, - I_FALSE), - NULL), - NULL), - pd_max_size(ms), - pd_width(wide) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_String node to the ostream o - */ -void -AST_String::dump(ostream &o) -{ - o << "string <"; - pd_max_size->dump(o); - o << ">"; -} - -/* - * Data accessors - */ - -AST_Expression * -AST_String::max_size() -{ - return pd_max_size; -} - -long -AST_String::width() -{ - return pd_width; -} - -// Narrowing -IMPL_NARROW_METHODS1(AST_String, AST_ConcreteType) -IMPL_NARROW_FROM_DECL(AST_String) diff --git a/TAO/TAO_IDL/ast/ast_structure.cpp b/TAO/TAO_IDL/ast/ast_structure.cpp deleted file mode 100644 index e99616b36f9..00000000000 --- a/TAO/TAO_IDL/ast/ast_structure.cpp +++ /dev/null @@ -1,311 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_structure.cc - Implementation of class AST_Structure - * - * AST_Structure nodes denote IDL struct declarations. - * AST_Structure is a subclass of AST_ConcreteType and of UTL_Scope (the - * structure's fields are managed in a scope). - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) and destructor - */ -AST_Structure::AST_Structure() -{ -} - -AST_Structure::AST_Structure(UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl(AST_Decl::NT_struct, n, p), - UTL_Scope(AST_Decl::NT_struct) -{ -} - -AST_Structure::AST_Structure(AST_Decl::NodeType nt, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(nt, n, p), - UTL_Scope(nt) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Add this AST_Field node (a field declaration) to this scope - */ -AST_Field *AST_Structure::fe_add_field(AST_Field *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Structure node (a manifest struct type) to this scope - */ -AST_Structure *AST_Structure::fe_add_structure(AST_Structure *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to local types - */ - add_to_local_types(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Union node (a manifest union type) to this scope - */ -AST_Union *AST_Structure::fe_add_union(AST_Union *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to local types - */ - add_to_local_types(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Enum node (a manifest enum declaration) to this scope - */ -AST_Enum *AST_Structure::fe_add_enum(AST_Enum *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to local types - */ - add_to_local_types(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_EnumVal node (an enumerator declaration) to this scope. - * This is done to conform to the C++ scoping rules which declare - * enumerators in the enclosing scope (in addition to declaring them - * in the enum itself) - */ -AST_EnumVal *AST_Structure::fe_add_enum_val(AST_EnumVal *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Dump this AST_Structure node to the ostream o - */ -void -AST_Structure::dump(ostream &o) -{ - o << "struct "; - AST_Decl::dump(o); - o << " {\n"; - UTL_Scope::dump(o); - idl_global->indent()->skip_to(o); - o << "}"; -} - -// Narrowing -IMPL_NARROW_METHODS2(AST_Structure, AST_ConcreteType, UTL_Scope) -IMPL_NARROW_FROM_DECL(AST_Structure) -IMPL_NARROW_FROM_SCOPE(AST_Structure) diff --git a/TAO/TAO_IDL/ast/ast_type.cpp b/TAO/TAO_IDL/ast/ast_type.cpp deleted file mode 100644 index da7ccc9aeef..00000000000 --- a/TAO/TAO_IDL/ast/ast_type.cpp +++ /dev/null @@ -1,105 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_type.cc - Implementation of class AST_Type - * - * AST_Type is the base class for all AST classes which represent - * IDL type constructs. - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) and destructor - */ -AST_Type::AST_Type() -{ -} - -AST_Type::AST_Type(AST_Decl::NodeType nt, UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl(nt, n, p) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - - -/* - * Redefinition of inherited virtual operations - */ - - -// Narrowing -IMPL_NARROW_METHODS1(AST_Type, AST_Decl) -IMPL_NARROW_FROM_DECL(AST_Type) diff --git a/TAO/TAO_IDL/ast/ast_typedef.cpp b/TAO/TAO_IDL/ast/ast_typedef.cpp deleted file mode 100644 index 580880b23b0..00000000000 --- a/TAO/TAO_IDL/ast/ast_typedef.cpp +++ /dev/null @@ -1,131 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_typedef.cc - Implementation of class AST_Typedef - * - * AST_Typedef nodes represent an IDL typedef statement. - * AST_Typedef is a subclass of AST_Decl (it is not a type, - * but instead is a type renaming). - * AST_Typedef nodes have a base type (a subclass of AST_Type) - * and a name (an UTL_ScopedName). - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) and destructor - */ -AST_Typedef::AST_Typedef() - : pd_base_type(NULL) -{ -} - -AST_Typedef::AST_Typedef(AST_Type *bt, UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl(AST_Decl::NT_typedef, n, p), - pd_base_type(bt) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_Typedef node to the ostream o - */ -void -AST_Typedef::dump(ostream &o) -{ - o << "typedef "; - pd_base_type->dump(o); - o << " "; - local_name()->dump(o); -} - -/* - * Data accessors - */ - -AST_Type * -AST_Typedef::base_type() -{ - return pd_base_type; -} - -// Narrowing -IMPL_NARROW_METHODS1(AST_Typedef, AST_Type) -IMPL_NARROW_FROM_DECL(AST_Typedef) diff --git a/TAO/TAO_IDL/ast/ast_union.cpp b/TAO/TAO_IDL/ast/ast_union.cpp deleted file mode 100644 index 125cd69c4d2..00000000000 --- a/TAO/TAO_IDL/ast/ast_union.cpp +++ /dev/null @@ -1,555 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_union.cc - Implementation of class AST_Union - * - * AST_Union nodes represent IDL union declarations. - * AST_Union is a subclass of AST_ConcreteType and of UTL_Scope (the - * union branches are managed in a scope). - * AST_Union nodes have a discriminator type (a subclass of AST_ConcreteType), - * a name (an UTL_ScopedName) and a field denoting the discriminator type if - * it is a primitive type (the value of this field is from the union - * AST_Expression::ExprType and serves as a cache). This field is used - * to compute coercions for labels based on the expected discriminator type. - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) and destructor - */ -AST_Union::AST_Union() -{ -} - -AST_Union::AST_Union(AST_ConcreteType *dt, UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl(AST_Decl::NT_union, n, p), - UTL_Scope(AST_Decl::NT_union) -{ - AST_PredefinedType *pdt; - - if (dt == NULL) { - pd_disc_type = NULL; - pd_udisc_type = AST_Expression::EV_none; - return; - } - /* - * If the discriminator type is a predefined type - * then install the equivalent coercion target type in - * the pd_udisc_type field. - */ - if (dt->node_type() == AST_Decl::NT_pre_defined) { - pdt = AST_PredefinedType::narrow_from_decl(dt); - if (pdt == NULL) { - pd_disc_type = NULL; - pd_udisc_type = AST_Expression::EV_none; - return; - } - pd_disc_type = dt; - switch (pdt->pt()) { - case AST_PredefinedType::PT_long: - pd_udisc_type = AST_Expression::EV_long; - break; - case AST_PredefinedType::PT_ulong: - pd_udisc_type = AST_Expression::EV_ulong; - break; - case AST_PredefinedType::PT_short: - pd_udisc_type = AST_Expression::EV_short; - break; - case AST_PredefinedType::PT_ushort: - pd_udisc_type = AST_Expression::EV_ushort; - break; - case AST_PredefinedType::PT_char: - pd_udisc_type = AST_Expression::EV_char; - break; - case AST_PredefinedType::PT_octet: - pd_udisc_type = AST_Expression::EV_octet; - break; - case AST_PredefinedType::PT_boolean: - pd_udisc_type = AST_Expression::EV_bool; - break; - default: - pd_udisc_type = AST_Expression::EV_none; - pd_disc_type = NULL; - break; - } - } else if (dt->node_type() == AST_Decl::NT_enum) { - pd_udisc_type = AST_Expression::EV_any; - pd_disc_type = dt; - } else { - pd_udisc_type = AST_Expression::EV_none; - pd_disc_type = NULL; - } - - if (pd_disc_type == NULL) - idl_global->err()->error2(UTL_Error::EIDL_DISC_TYPE, this, dt); -} - -/* - * Private operations - */ - -/* - * Look up the default branch in union - */ -AST_UnionBranch * -AST_Union::lookup_default() -{ - UTL_ScopeActiveIterator *i = new UTL_ScopeActiveIterator(this, IK_both); - AST_UnionBranch *b; - AST_Decl *d; - - while (!(i->is_done())) { - d = i->item(); - if (d->node_type() == AST_Decl::NT_union_branch) { - b = AST_UnionBranch::narrow_from_decl(d); - if (b == NULL) { - i->next(); - continue; - } - if (b->label() != NULL && - b->label()->label_kind() == AST_UnionLabel::UL_default) { - idl_global->err()->error2(UTL_Error::EIDL_MULTIPLE_BRANCH, this, b); - delete i; - return b; - } - } - i->next(); - } - delete i; - return NULL; -} - -/* - * Look up a branch by label - */ -AST_UnionBranch * -AST_Union::lookup_label(AST_UnionBranch *b) -{ - AST_UnionLabel *l = b->label(); - UTL_ScopeActiveIterator *i; - AST_Decl *d; - AST_UnionBranch *fb; - - if (l->label_val() == NULL) - return b; - l->label_val()->set_ev(l->label_val()->coerce(pd_udisc_type)); - if (l->label_val()->ev() == NULL) { - idl_global->err()->eval_error(l->label_val()); - return b; - } - - i = new UTL_ScopeActiveIterator(this, IK_decls); - - while (!(i->is_done())) { - d = i->item(); - if (d->node_type() == AST_Decl::NT_union_branch) { - fb = AST_UnionBranch::narrow_from_decl(d); - if (fb == NULL) { - i->next(); - continue; - } - if (fb->label() != NULL && - fb->label()->label_kind() == AST_UnionLabel::UL_label && - fb->label()->label_val()->compare(l->label_val())) { - idl_global->err()->error2(UTL_Error::EIDL_MULTIPLE_BRANCH, this, b); - delete i; - return b; - } - } - i->next(); - } - delete i; - return NULL; -} - -/* - * Look up a branch in an enum which is the discriminator type for this - * union, based on the label value which must be an enumerator in that - * enum. - */ -AST_UnionBranch * -AST_Union::lookup_enum(AST_UnionBranch *b) -{ - AST_UnionLabel *l = b->label(); - AST_Expression *v; - AST_Enum *e = AST_Enum::narrow_from_decl(pd_disc_type); - UTL_ScopeActiveIterator *i; - AST_Decl *d; - AST_UnionBranch *fb; - - if (e == NULL) return NULL; - if (l->label_val() == NULL) - return b; - v = l->label_val(); - /* - * Expecting a symbol label - */ - if (v->ec() != AST_Expression::EC_symbol) { - idl_global->err()->enum_val_expected(this, l); - return b; - } - /* - * See if the symbol defines a constant in the discriminator enum - */ - d = e->lookup_by_name(v->n(), I_TRUE); - if (d == NULL || d->defined_in() != e) { - idl_global->err()->enum_val_lookup_failure(this, e, v->n()); - return b; - } - /* - * OK, now see if this symbol is already used as the label of - * some other branch - */ - i = new UTL_ScopeActiveIterator(this, IK_decls); - while (!(i->is_done())) { - d = i->item(); - if (d->node_type() == AST_Decl::NT_union_branch) { - fb = AST_UnionBranch::narrow_from_decl(d); - if (fb == NULL) { - i->next(); - continue; - } - if (fb->label() != NULL && - fb->label()->label_kind() == AST_UnionLabel::UL_label && - fb->label()->label_val()->compare (l->label_val())) { - idl_global->err()->error2(UTL_Error::EIDL_MULTIPLE_BRANCH, this, b); - delete i; - return b; - } - } - i->next(); - } - delete i; - return NULL; -} - -/* - * Look up a branch by value. This is the top level branch label resolution - * entry point. It dispatches to the right lookup function depending on the - * union discriminator type. - */ -AST_UnionBranch * -AST_Union::lookup_branch(AST_UnionBranch *branch) -{ - AST_UnionLabel *l = NULL; - - if (branch != NULL) - l = branch->label(); - - if (l != NULL) { - if (l->label_kind() == AST_UnionLabel::UL_default) - return lookup_default(); - if (pd_udisc_type == AST_Expression::EV_any) - /* CONVENTION: indicates enum discr */ - return lookup_enum(branch); - return lookup_label(branch); - } - return NULL; -} - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Add this AST_UnionBranch node (a node representing one branch in a - * union declaration) to this scope - */ -AST_UnionBranch *AST_Union::fe_add_union_branch(AST_UnionBranch *t) -{ - AST_Decl *d; - - /* - * If this is a malformed branch, don't do anything with it - */ - if (t == NULL || t->label() == NULL) - return NULL; - /* - * If branch with that label already exists, complain - */ - if (lookup_branch(t) != NULL) { - idl_global->err()->error2(UTL_Error::EIDL_MULTIPLE_BRANCH, this, t); - return NULL; - } - /* - * If branch with same field name exists, complain - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Union (manifest union type) to this scope - */ -AST_Union *AST_Union::fe_add_union(AST_Union *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to local types - */ - add_to_local_types(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Structure node (manifest struct type) to this scope - */ -AST_Structure *AST_Union::fe_add_structure(AST_Structure *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to local types - */ - add_to_local_types(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Enum node (manifest enum type) to this scope - */ -AST_Enum *AST_Union::fe_add_enum(AST_Enum *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to local types - */ - add_to_local_types(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_EnumVal node (enumerator declaration) to this scope. - * This is done to conform to the C++ scoping rules which declare - * enumerators in the enclosing scope (in addition to declaring them - * in the enum itself) - */ -AST_EnumVal *AST_Union::fe_add_enum_val(AST_EnumVal *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Dump this AST_Union node to the ostream o - */ -void -AST_Union::dump(ostream &o) -{ - o << "union "; - local_name()->dump(o); - o << " switch ("; - pd_disc_type->local_name()->dump(o); - o << ") {\n"; - UTL_Scope::dump(o); - idl_global->indent()->skip_to(o); - o << "}"; -} - -/* - * Data accessors - */ - -AST_ConcreteType * -AST_Union::disc_type() -{ - return pd_disc_type; -} - -AST_Expression::ExprType -AST_Union::udisc_type() -{ - return pd_udisc_type; -} - -// Narrowing -IMPL_NARROW_METHODS2(AST_Union, AST_ConcreteType, UTL_Scope) -IMPL_NARROW_FROM_DECL(AST_Union) -IMPL_NARROW_FROM_SCOPE(AST_Union) diff --git a/TAO/TAO_IDL/ast/ast_union_branch.cpp b/TAO/TAO_IDL/ast/ast_union_branch.cpp deleted file mode 100644 index 269528a6da4..00000000000 --- a/TAO/TAO_IDL/ast/ast_union_branch.cpp +++ /dev/null @@ -1,131 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_union_branch.cc - Implementation of class AST_UnionBranch - * - * AST_UnionBranch nodes represent a single branch of an IDL union - * declaration. - * AST_UnionBranch is a subclass of AST_Field, adding a label (which - * is a subclass of AST_UnionLabel). - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) and destructor - */ -AST_UnionBranch::AST_UnionBranch() - : pd_label(NULL) -{ -} - -AST_UnionBranch::AST_UnionBranch(AST_UnionLabel *fl, AST_Type *ft, - UTL_ScopedName *n, UTL_StrList *p) - : AST_Field(AST_Decl::NT_union_branch, ft, n, p), - AST_Decl(AST_Decl::NT_union_branch, n, p), - pd_label(fl) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_UnionBranch node to the ostream o - */ -void -AST_UnionBranch::dump(ostream &o) -{ - o << "case "; - pd_label->dump(o); - o << ": "; - AST_Field::dump(o); -} - -/* - * Data accessors - */ - -AST_UnionLabel * -AST_UnionBranch::label() -{ - return pd_label; -} - -// Narrowing -IMPL_NARROW_METHODS1(AST_UnionBranch, AST_Field) -IMPL_NARROW_FROM_DECL(AST_UnionBranch) diff --git a/TAO/TAO_IDL/ast/ast_union_label.cpp b/TAO/TAO_IDL/ast/ast_union_label.cpp deleted file mode 100644 index c2666b54f66..00000000000 --- a/TAO/TAO_IDL/ast/ast_union_label.cpp +++ /dev/null @@ -1,135 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_union_label.cc - Implementation of class AST_UnionLabel - * - * AST_UnionLabel denotes the label of a branch in an IDL union - * declaration. - * AST_UnionLabel nodes have a label kind (the values come from the - * enum AST_UnionLabel::LabelKind) and a label value (which is a - * subclass of AST_Expression). - */ - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) - */ -AST_UnionLabel::AST_UnionLabel() - : pd_label_kind(UL_default), - pd_label_val(NULL) -{ -} - -AST_UnionLabel::AST_UnionLabel(UnionLabel lk, AST_Expression *lv) - : pd_label_kind(lk), - pd_label_val(lv) -{ - if (lv != NULL) - lv->evaluate(AST_Expression::EK_const); -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Data accessors - */ - -AST_UnionLabel::UnionLabel -AST_UnionLabel::label_kind() -{ - return pd_label_kind; -} - -AST_Expression * -AST_UnionLabel::label_val() -{ - return pd_label_val; -} - -/* - * Dump this AST_UnionLabel node to the ostream o - */ -void -AST_UnionLabel::dump(ostream &o) -{ - if (pd_label_kind == UL_default) - o << "default"; - else - pd_label_val->dump(o); -} diff --git a/TAO/TAO_IDL/be/Makefile b/TAO/TAO_IDL/be/Makefile deleted file mode 100644 index ae2e334725d..00000000000 --- a/TAO/TAO_IDL/be/Makefile +++ /dev/null @@ -1,5005 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Makefile for libbe -#---------------------------------------------------------------------------- - -MAKEFILE = Makefile -LIBNAME = libbe -LIB = $(LIBNAME).a -SHLIB = $(LIBNAME).$(SOEXT) -IDL_CFE_VERSION = \"1.3.0\" - -# These are components that are sources of -BE_FILES = \ - be_array \ - be_argument \ - be_attribute \ - be_constant \ - be_enum \ - be_enum_val \ - be_exception \ - be_expression \ - be_field \ - be_interface \ - be_interface_fwd \ - be_module \ - be_native \ - be_operation \ - be_predefined_type \ - be_root \ - be_sequence \ - be_string \ - be_structure \ - be_type \ - be_typedef \ - be_union \ - be_union_branch \ - be_union_label \ - be_generator \ - be_init \ - be_produce \ - be_args \ - be_helper \ - be_state \ - be_state_array \ - be_state_argument \ - be_state_attribute \ - be_state_exception \ - be_state_operation \ - be_state_sequence \ - be_state_structure \ - be_state_typedef \ - be_state_union \ - be_codegen \ - be_factory \ - be_sunsoft \ - be_decl \ - be_scope \ - be_visitor \ - be_visitor_args \ - be_visitor_attribute \ - be_visitor_constant \ - be_visitor_context \ - be_visitor_decl \ - be_visitor_enum \ - be_visitor_exception \ - be_visitor_field \ - be_visitor_interface \ - be_visitor_interface_fwd \ - be_visitor_module \ - be_visitor_operation \ - be_visitor_root \ - be_visitor_scope \ - be_visitor_sequence \ - be_visitor_structure \ - be_visitor_typedef \ - be_visitor_union \ - be_visitor_union_branch \ - be_interpretive - -FILES = $(BE_FILES) - -LSRC = $(addsuffix .cpp,$(FILES)) -LOBJ = $(addsuffix .o,$(FILES)) -SHOBJ = $(addsuffix .so,$(FILES)) - - -LDLIBS = -lACE -LIBS = -lACE -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -BUILD = $(VSHLIB) #$(VLIB) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Local targets (and local hacks) -#---------------------------------------------------------------------------- - -ifeq ($(CXX),g++) -CCFLAGS += -Wno-switch -PIC = -fPIC -endif - -CPPFLAGS += -I../include -I../be_include -I. -DCPP_LOCATION=\"$(CXX)\" \ - -DIDL_CFE_VERSION=$(IDL_CFE_VERSION) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/be_array.o .obj/be_array.so .shobj/be_array.o .shobj/be_array.so: be_array.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_argument.o .obj/be_argument.so .shobj/be_argument.o .shobj/be_argument.so: be_argument.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_attribute.o .obj/be_attribute.so .shobj/be_attribute.o .shobj/be_attribute.so: be_attribute.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_constant.o .obj/be_constant.so .shobj/be_constant.o .shobj/be_constant.so: be_constant.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_enum.o .obj/be_enum.so .shobj/be_enum.o .shobj/be_enum.so: be_enum.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_enum_val.o .obj/be_enum_val.so .shobj/be_enum_val.o .shobj/be_enum_val.so: be_enum_val.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_exception.o .obj/be_exception.so .shobj/be_exception.o .shobj/be_exception.so: be_exception.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_expression.o .obj/be_expression.so .shobj/be_expression.o .shobj/be_expression.so: be_expression.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_field.o .obj/be_field.so .shobj/be_field.o .shobj/be_field.so: be_field.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_interface.o .obj/be_interface.so .shobj/be_interface.o .shobj/be_interface.so: be_interface.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be_visitor_interface.h \ - ../be_include/be_visitor_scope.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_decl.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor_context.h -.obj/be_interface_fwd.o .obj/be_interface_fwd.so .shobj/be_interface_fwd.o .shobj/be_interface_fwd.so: be_interface_fwd.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_module.o .obj/be_module.so .shobj/be_module.o .shobj/be_module.so: be_module.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_native.o .obj/be_native.so .shobj/be_native.o .shobj/be_native.so: be_native.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_operation.o .obj/be_operation.so .shobj/be_operation.o .shobj/be_operation.so: be_operation.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_predefined_type.o .obj/be_predefined_type.so .shobj/be_predefined_type.o .shobj/be_predefined_type.so: be_predefined_type.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_root.o .obj/be_root.so .shobj/be_root.o .shobj/be_root.so: be_root.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_sequence.o .obj/be_sequence.so .shobj/be_sequence.o .shobj/be_sequence.so: be_sequence.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h \ - ../be_include/be_visitor_sequence.h ../be_include/be_visitor_decl.h -.obj/be_string.o .obj/be_string.so .shobj/be_string.o .shobj/be_string.so: be_string.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_structure.o .obj/be_structure.so .shobj/be_structure.o .shobj/be_structure.so: be_structure.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_type.o .obj/be_type.so .shobj/be_type.o .shobj/be_type.so: be_type.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_typedef.o .obj/be_typedef.so .shobj/be_typedef.o .shobj/be_typedef.so: be_typedef.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_union.o .obj/be_union.so .shobj/be_union.o .shobj/be_union.so: be_union.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_union_branch.o .obj/be_union_branch.so .shobj/be_union_branch.o .shobj/be_union_branch.so: be_union_branch.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_union_label.o .obj/be_union_label.so .shobj/be_union_label.o .shobj/be_union_label.so: be_union_label.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_generator.o .obj/be_generator.so .shobj/be_generator.o .shobj/be_generator.so: be_generator.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_init.o .obj/be_init.so .shobj/be_init.o .shobj/be_init.so: be_init.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_produce.o .obj/be_produce.so .shobj/be_produce.o .shobj/be_produce.so: be_produce.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h ../be_include/be_interpretive.h -.obj/be_args.o .obj/be_args.so .shobj/be_args.o .shobj/be_args.so: be_args.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_helper.o .obj/be_helper.so .shobj/be_helper.o .shobj/be_helper.so: be_helper.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_state.o .obj/be_state.so .shobj/be_state.o .shobj/be_state.so: be_state.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_state_array.o .obj/be_state_array.so .shobj/be_state_array.o .shobj/be_state_array.so: be_state_array.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_state_argument.o .obj/be_state_argument.so .shobj/be_state_argument.o .shobj/be_state_argument.so: be_state_argument.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_state_attribute.o .obj/be_state_attribute.so .shobj/be_state_attribute.o .shobj/be_state_attribute.so: be_state_attribute.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_state_exception.o .obj/be_state_exception.so .shobj/be_state_exception.o .shobj/be_state_exception.so: be_state_exception.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_state_operation.o .obj/be_state_operation.so .shobj/be_state_operation.o .shobj/be_state_operation.so: be_state_operation.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_state_sequence.o .obj/be_state_sequence.so .shobj/be_state_sequence.o .shobj/be_state_sequence.so: be_state_sequence.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_state_structure.o .obj/be_state_structure.so .shobj/be_state_structure.o .shobj/be_state_structure.so: be_state_structure.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_state_typedef.o .obj/be_state_typedef.so .shobj/be_state_typedef.o .shobj/be_state_typedef.so: be_state_typedef.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_state_union.o .obj/be_state_union.so .shobj/be_state_union.o .shobj/be_state_union.so: be_state_union.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_codegen.o .obj/be_codegen.so .shobj/be_codegen.o .shobj/be_codegen.so: be_codegen.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_factory.o .obj/be_factory.so .shobj/be_factory.o .shobj/be_factory.so: be_factory.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h ../be_include/be_sunsoft.h -.obj/be_sunsoft.o .obj/be_sunsoft.so .shobj/be_sunsoft.o .shobj/be_sunsoft.so: be_sunsoft.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h ../be_include/be_sunsoft.h -.obj/be_decl.o .obj/be_decl.so .shobj/be_decl.o .shobj/be_decl.so: be_decl.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_scope.o .obj/be_scope.so .shobj/be_scope.o .shobj/be_scope.so: be_scope.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_visitor.o .obj/be_visitor.so .shobj/be_visitor.o .shobj/be_visitor.so: be_visitor.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_visitor_args.o .obj/be_visitor_args.so .shobj/be_visitor_args.o .shobj/be_visitor_args.so: be_visitor_args.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h ../be_include/be_visitor_args.h \ - ../be_include/be_visitor_decl.h -.obj/be_visitor_constant.o .obj/be_visitor_constant.so .shobj/be_visitor_constant.o .shobj/be_visitor_constant.so: be_visitor_constant.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h \ - ../be_include/be_visitor_constant.h ../be_include/be_visitor_scope.h \ - ../be_include/be_visitor_decl.h -.obj/be_visitor_context.o .obj/be_visitor_context.so .shobj/be_visitor_context.o .shobj/be_visitor_context.so: be_visitor_context.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h -.obj/be_visitor_decl.o .obj/be_visitor_decl.so .shobj/be_visitor_decl.o .shobj/be_visitor_decl.so: be_visitor_decl.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h ../be_include/be_visitor_decl.h -.obj/be_visitor_enum.o .obj/be_visitor_enum.so .shobj/be_visitor_enum.o .shobj/be_visitor_enum.so: be_visitor_enum.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h ../be_include/be_visitor_enum.h \ - ../be_include/be_visitor_scope.h ../be_include/be_visitor_decl.h -.obj/be_visitor_field.o .obj/be_visitor_field.so .shobj/be_visitor_field.o .shobj/be_visitor_field.so: be_visitor_field.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h ../be_include/be_visitor_field.h \ - ../be_include/be_visitor_decl.h -.obj/be_visitor_interface.o .obj/be_visitor_interface.so .shobj/be_visitor_interface.o .shobj/be_visitor_interface.so: be_visitor_interface.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h \ - ../be_include/be_visitor_interface.h ../be_include/be_visitor_scope.h \ - ../be_include/be_visitor_decl.h -.obj/be_visitor_interface_fwd.o .obj/be_visitor_interface_fwd.so .shobj/be_visitor_interface_fwd.o .shobj/be_visitor_interface_fwd.so: be_visitor_interface_fwd.cpp \ - ../include/idl.h $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h \ - ../be_include/be_visitor_interface_fwd.h \ - ../be_include/be_visitor_scope.h ../be_include/be_visitor_decl.h -.obj/be_visitor_module.o .obj/be_visitor_module.so .shobj/be_visitor_module.o .shobj/be_visitor_module.so: be_visitor_module.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h ../be_include/be_visitor_module.h \ - ../be_include/be_visitor_scope.h ../be_include/be_visitor_decl.h -.obj/be_visitor_operation.o .obj/be_visitor_operation.so .shobj/be_visitor_operation.o .shobj/be_visitor_operation.so: be_visitor_operation.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h \ - ../be_include/be_visitor_operation.h ../be_include/be_visitor_scope.h \ - ../be_include/be_visitor_decl.h -.obj/be_visitor_root.o .obj/be_visitor_root.so .shobj/be_visitor_root.o .shobj/be_visitor_root.so: be_visitor_root.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h ../be_include/be_visitor_root.h \ - ../be_include/be_visitor_scope.h ../be_include/be_visitor_decl.h -.obj/be_visitor_scope.o .obj/be_visitor_scope.so .shobj/be_visitor_scope.o .shobj/be_visitor_scope.so: be_visitor_scope.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h ../be_include/be_visitor_scope.h \ - ../be_include/be_visitor_decl.h -.obj/be_visitor_sequence.o .obj/be_visitor_sequence.so .shobj/be_visitor_sequence.o .shobj/be_visitor_sequence.so: be_visitor_sequence.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h \ - ../be_include/be_visitor_sequence.h ../be_include/be_visitor_decl.h -.obj/be_visitor_structure.o .obj/be_visitor_structure.so .shobj/be_visitor_structure.o .shobj/be_visitor_structure.so: be_visitor_structure.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h \ - ../be_include/be_visitor_structure.h ../be_include/be_visitor_scope.h \ - ../be_include/be_visitor_decl.h -.obj/be_visitor_typedef.o .obj/be_visitor_typedef.so .shobj/be_visitor_typedef.o .shobj/be_visitor_typedef.so: be_visitor_typedef.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h ../be_include/be_visitor_typedef.h \ - ../be_include/be_visitor_scope.h ../be_include/be_visitor_decl.h -.obj/be_visitor_union.o .obj/be_visitor_union.so .shobj/be_visitor_union.o .shobj/be_visitor_union.so: be_visitor_union.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h ../be_include/be_visitor_union.h \ - ../be_include/be_visitor_scope.h ../be_include/be_visitor_decl.h -.obj/be_visitor_union_branch.o .obj/be_visitor_union_branch.so .shobj/be_visitor_union_branch.o .shobj/be_visitor_union_branch.so: be_visitor_union_branch.cpp \ - ../include/idl.h $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h \ - ../be_include/be_visitor_union_branch.h \ - ../be_include/be_visitor_decl.h -.obj/be_interpretive.o .obj/be_interpretive.so .shobj/be_interpretive.o .shobj/be_interpretive.so: be_interpretive.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../be_include/be.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - ../be_include/be_decl.h ../be_include/be_scope.h \ - ../be_include/be_generator.h ../be_include/be_type.h \ - ../be_include/be_predefined_type.h ../be_include/be_module.h \ - ../be_include/be_interface.h ../be_include/be_interface_fwd.h \ - ../be_include/be_structure.h ../be_include/be_exception.h \ - ../be_include/be_expression.h ../be_include/be_enum.h \ - ../be_include/be_operation.h ../be_include/be_field.h \ - ../be_include/be_argument.h ../be_include/be_attribute.h \ - ../be_include/be_union.h ../be_include/be_union_branch.h \ - ../be_include/be_union_label.h ../be_include/be_constant.h \ - ../be_include/be_enum_val.h ../be_include/be_array.h \ - ../be_include/be_sequence.h ../be_include/be_string.h \ - ../be_include/be_typedef.h ../be_include/be_root.h \ - ../be_include/be_native.h ../be_include/be_helper.h \ - ../be_include/be_state.h ../be_include/be_codegen.h \ - ../be_include/be_factory.h ../be_include/be_visitor.h \ - ../be_include/be_visitor_context.h ../be_include/be_interpretive.h \ - ../be_include/be_visitor_args.h ../be_include/be_visitor_decl.h \ - ../be_include/be_visitor_constant.h ../be_include/be_visitor_scope.h \ - ../be_include/be_visitor_enum.h ../be_include/be_visitor_field.h \ - ../be_include/be_visitor_interface.h \ - ../be_include/be_visitor_interface_fwd.h \ - ../be_include/be_visitor_module.h \ - ../be_include/be_visitor_operation.h ../be_include/be_visitor_root.h \ - ../be_include/be_visitor_sequence.h \ - ../be_include/be_visitor_structure.h \ - ../be_include/be_visitor_typedef.h ../be_include/be_visitor_union.h \ - ../be_include/be_visitor_union_branch.h - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/TAO_IDL/be/be_args.cpp b/TAO/TAO_IDL/be/be_args.cpp deleted file mode 100644 index eea2996eb0a..00000000000 --- a/TAO/TAO_IDL/be/be_args.cpp +++ /dev/null @@ -1,107 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// be_args.cc - Collect command line arguments for the BE - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -/* - * Prepare an argument for a BE - * - * Since this is the dummy BE, it doesn't do anything with the passed string - */ -void -BE_prep_arg(char *s, idl_bool) -{ - const char arg_macro[]="export_macro="; - const char arg_include[]="export_include="; - - char* last = 0; - for (char* arg = ACE_OS::strtok_r (s, ",", &last); - arg != 0; - arg = ACE_OS::strtok_r (0, ",", &last)) - { - if (ACE_OS::strstr (arg, arg_macro) == arg) - { - char* val = arg + sizeof (arg_macro) - 1; - idl_global->export_macro (val); - } - else if (ACE_OS::strstr (arg, arg_include) == arg) - { - char* val = arg + sizeof (arg_include) - 1; - idl_global->export_include (val); - } - else - { - cerr << idl_global->prog_name () - << ": invalid or unknown argument <" - << arg - << "> to back end\n"; - } - } -} diff --git a/TAO/TAO_IDL/be/be_argument.cpp b/TAO/TAO_IDL/be/be_argument.cpp deleted file mode 100644 index 44387bb8a7a..00000000000 --- a/TAO/TAO_IDL/be/be_argument.cpp +++ /dev/null @@ -1,51 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_argument.cpp -// -// = DESCRIPTION -// Extension of class AST_Argument that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -/* - * BE_Argument - */ - -be_argument::be_argument (void) -{ -} - -be_argument::be_argument (AST_Argument::Direction d, AST_Type *ft, - UTL_ScopedName *n, UTL_StrList *p) - : AST_Argument (d, ft, n, p), - AST_Field (AST_Decl::NT_argument, ft, n, p), - AST_Decl (AST_Decl::NT_argument, n, p) -{ -} - - -int -be_argument::accept (be_visitor *visitor) -{ - return visitor->visit_argument (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_argument, AST_Argument, be_decl) -IMPL_NARROW_FROM_DECL (be_argument) diff --git a/TAO/TAO_IDL/be/be_array.cpp b/TAO/TAO_IDL/be/be_array.cpp deleted file mode 100644 index 967bfb0042c..00000000000 --- a/TAO/TAO_IDL/be/be_array.cpp +++ /dev/null @@ -1,1113 +0,0 @@ -// $Id$ -// -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_array.cpp -// -// = DESCRIPTION -// Extension of class AST_Array that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -/* - * BE_Array - */ -be_array::be_array (void) - : tao_name_ (0) -{ -} - -be_array::be_array (UTL_ScopedName *n, unsigned long ndims, UTL_ExprList *dims) - : AST_Array (n, ndims, dims), - AST_Decl (AST_Decl::NT_array, n, NULL), - tao_name_ (0) -{ -} - -be_array::~be_array (void) -{ - if (this->tao_name_ == 0) - delete[] tao_name_; -} - -// create a name for ourselves -const char* -be_array::tao_name (void) -{ - if (this->tao_name_ != 0) - return this->tao_name_; - - be_type *bt = be_type::narrow_from_decl (this->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::" - "tao_name - " - "bad base type\n"), - 0); - } - - const char prefix[] = "_tc_tao_array_"; - - int l = (ACE_OS::strlen (bt->local_name ()->get_string ()) - + ACE_OS::strlen (this->local_name ()->get_string ()) + 1 - + sizeof (prefix) - + 5 * this->n_dims ()); - - ACE_NEW_RETURN (this->tao_name_, char[l], 0); - - ACE_OS::sprintf (this->tao_name_, "%s%s_%s", - prefix, this->local_name ()->get_string (), - bt->local_name ()->get_string()); - - for (unsigned int i = 0; i < this->n_dims (); ++i) - { - AST_Expression *expr = this->dims ()[i]; // retrieve the ith - - // dimension value - if ((expr == NULL) || ((expr != NULL) && (expr->ev () == NULL))) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::" - "tao_name - " - "bad array dimension\n"), - 0); - } - - if (expr->ev ()->et != AST_Expression::EV_ulong) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::" - "tao_name - " - "bad dimension value\n"), - 0); - } - - char buf[16]; - ACE_OS::sprintf (buf, "_%04.4x", ((int)expr->ev ()->u.ulval)); - ACE_OS::strcat (this->tao_name_, buf); - } - return this->tao_name_; -} - -int -be_array::create_name (void) -{ - char namebuf [NAMEBUFSIZE]; - unsigned long i; - UTL_ScopedName *n = NULL; - be_decl *scope; // scope in which we are defined - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); // reset the buffer - // retrieve the base type - // the name always starts this way - - be_type *bt = be_type::narrow_from_decl (this->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::" - "create_name - " - "bad base type\n"), - 0); - } - - ACE_OS::sprintf (namebuf, "_tao_array_%s", bt->local_name ()->get_string ()); - // now append dimensions - for (i = 0; i < this->n_dims (); i++) - { - AST_Expression *expr = this->dims ()[i]; // retrieve the ith - - // dimension value - if ((expr == NULL) || ((expr != NULL) && (expr->ev () == NULL))) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::" - "create_name - " - "bad array dimension\n"), - -1); - } - if (expr->ev ()->et == AST_Expression::EV_ulong) - { - ACE_OS::sprintf (namebuf, "%s_%d", namebuf, ((int)expr->ev ()->u.ulval)); - } - else - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::" - "create_name - " - "bad dimension value\n"), - -1); - } - } - - // now see if we have a fully scoped name and if so, generate one - scope = be_scope::narrow_from_scope (this->defined_in ())->decl (); - if (scope) - { - // make a copy of the enclosing scope's name - n = (UTL_ScopedName *)scope->name ()->copy () ; - - // add our local name as the last component - n->nconc (new UTL_ScopedName (new Identifier (ACE_OS::strdup - (namebuf), 1, - 0, I_FALSE), - NULL)); - // set the fully scoped name - this->set_name (n); - } - else - { - // We better be not here because we must be inside some scope, - // atleast the ROOT scope. - return -1; - } - return 0; -} - -// Code generation - -int -be_array::gen_dimensions (TAO_OutStream *os, unsigned short slice) -{ - unsigned long i; // loop index - - // print our dimensions - for (i = (slice?1:0); i < this->n_dims (); i++) - { - AST_Expression *expr = this->dims ()[i]; // retrieve the ith - - // dimension value - if ((expr == NULL) || ((expr != NULL) && (expr->ev () == NULL))) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::" - "gen_dimensions - " - "bad array dimension\n"), - -1); - } - if (expr->ev ()->et == AST_Expression::EV_ulong) - { - *os << "[" << ((int)expr->ev ()->u.ulval) << "]"; - } - else - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::" - "gen_dimensions - " - "bad dimension value\n"), - -1); - } - } - return 0; -} - - -// generate the var defn -int -be_array::gen_var_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // names - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_var", this->local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the var definition (always in the client header). - // Depending upon the data type, there are some differences which we account - // for over here. - - ch->indent (); // start with whatever was our current indent level - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - // default constr - *ch << namebuf << " (void); // default constructor" << nl; - // constr from pointer to slice - *ch << namebuf << " (" << this->local_name () << "_slice *);" << nl; - // copy constructor - *ch << namebuf << " (const " << namebuf << - " &); // copy constructor" << nl; - // destructor - *ch << "~" << namebuf << " (void); // destructor" << nl; - *ch << nl; - // assignment operator from a pointer to slice - *ch << namebuf << " &operator= (" << this->local_name () << "_slice *);" << - nl; - // assignment from _var - *ch << namebuf << " &operator= (const " << namebuf << " &);" << nl; - - // arrow operator - // nothing here - *ch << nl; - - // other extra types (cast operators, [] operator, and others) - // overloaded [] operator - *ch << this->local_name () << "_slice &operator[] (CORBA::ULong index);" << - nl; - *ch << "const " << this->local_name () << - "_slice &operator[] (CORBA::ULong index) const;" << nl; - - // cast operators - *ch << "operator " << this->local_name () << "_slice * const &() const;" << - nl; - *ch << "operator " << this->local_name () << "_slice *&();" << nl; - - // in, inout, out and _retn - *ch << "// in, inout, out, _retn " << nl; - *ch << "const " << this->local_name () << "_slice *in (void) const;" << nl; - *ch << this->local_name () << "_slice *inout (void);" << nl; - *ch << this->local_name () << "_slice *&out (void);" << nl; - *ch << this->local_name () << "_slice *_retn (void);" << nl; - - // generate an additional member function that returns the underlying pointer - *ch << this->local_name () << "_slice *ptr (void) const;\n"; - - *ch << "\n"; - ch->decr_indent (); - - // generate the private section - *ch << "private:\n"; - ch->incr_indent (); - *ch << local_name () << "_slice *ptr_;\n"; - - ch->decr_indent (); - *ch << "};\n\n"; - - return 0; -} - -// implementation of the _var class. All of these get generated in the inline -// file -int -be_array::gen_var_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _var names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_var", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_var", this->local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - // generate the var implementation in the inline file - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // default constr - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << - " (void) // default constructor" << nl; - *ci << " " << ": ptr_ ((" << this->name () << "_slice *)0)" << nl; - *ci << "{}\n\n"; - - // constr from a _slice * - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << name () << "_slice *p)" << nl; - *ci << " : ptr_ (p)" << nl; - *ci << "{}\n\n"; - - // copy constructor (deep copy) - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (const " << fname << - " &p) // copy constructor" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = " << this->name () << "_dup (p.ptr_);\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // destructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::~" << lname << " (void) // destructor" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << this->name () << "_free (this->ptr_);\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << this->name () << - "_slice *p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "// is what we own the same that is being assigned to us?" << - nl; - *ci << "if (this->ptr_ != p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "// delete our stuff and assume ownership of p" << nl; - *ci << this->name () << "_free (this->ptr_);" << nl; - *ci << "this->ptr_ = p;\n"; - ci->decr_indent (); - *ci << "}" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from _var - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (const " << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "if (this != &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "// not assigning to ourselves" << nl; - *ci << this->name () << "_free (this->ptr_); // free old stuff" << nl; - *ci << "this->ptr_ = " << this->name () << - "_dup (p.ptr_);// deep copy\n"; - ci->decr_indent (); - *ci << "}" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - cast operators () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << this->name () << - "_slice * const &() const // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << name () << "_slice *&() // cast " << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // two operator []s instead of -> - ci->indent (); - *ci << "ACE_INLINE const " << this->name () << "_slice &" << nl; - *ci << fname << "::operator[] (CORBA::ULong index) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_[index];\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << "_slice &" << nl; - *ci << fname << "::operator[] (CORBA::ULong index)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_[index];\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // in, inout, out, and _retn - ci->indent (); - *ci << "ACE_INLINE const " << this->name () << "_slice *" << nl; - *ci << fname << "::in (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_slice *" << nl; - *ci << fname << "::inout (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_slice * &" << nl; - *ci << fname << "::out (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_slice *" << nl; - *ci << fname << "::_retn (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // the additional ptr () member function - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_slice *" << nl; - *ci << fname << "::ptr (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - return 0; -} - -// generate the _out definition -int -be_array::gen_out_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // to hold the _out name - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_out", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the out definition (always in the client header) - ch->indent (); // start with whatever was our current indent level - - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - - // No default constructor - - // constructor from a pointer to slice - *ch << namebuf << " (" << this->local_name () << "_slice *&);" << nl; - // constructor from a _var & - *ch << namebuf << " (" << this->local_name () << "_var &);" << nl; - // constructor from a _out & - *ch << namebuf << " (" << namebuf << " &);" << nl; - // assignment operator from a _out & - *ch << namebuf << " &operator= (" << namebuf << " &);" << nl; - // assignment from slice * - *ch << namebuf << " &operator= (" << this->local_name () << "_slice *);" << - nl; - // cast - *ch << "operator " << this->local_name () << "_slice *&();" << nl; - // ptr fn - *ch << this->local_name () << "_slice *&ptr (void);" << nl; - // operator [] instead of -> - *ch << this->local_name () << "_slice &operator[] (CORBA::ULong index);" << nl; - *ch << "const " << this->local_name () << "_slice &operator[] " << - "(CORBA::ULong index) const;" << nl; - - *ch << "\n"; - ch->decr_indent (); - *ch << "private:\n"; - ch->incr_indent (); - *ch << local_name () << "_slice *&ptr_;" << nl; - *ch << "// assignment from T_var not allowed" << nl; - *ch << "void operator= (const " << this->local_name () << "_var &);\n"; - - ch->decr_indent (); - *ch << "};\n\n"; - return 0; -} - -int -be_array::gen_out_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _out names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_out", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_out", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - // generate the out implementation in the inline file - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // constr from a pointer to slice - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << this->name () << "_slice *&p)" << nl; - *ci << " : ptr_ (p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = 0;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // constructor from _var & - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << this->name () << - "_var &p) // constructor from _var" << nl; - *ci << " : ptr_ (p.out ())" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << this->name () << "_free (this->ptr_);" << nl; - *ci << "this->ptr_ = 0;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // copy constructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << fname << - " &p) // copy constructor" << nl; - *ci << " : ptr_ (p.ptr_)" << nl; - *ci << "{}\n\n"; - - // assignment operator from _out & - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = p.ptr_;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment from _var is not allowed by a private declaration - - // assignment operator from _ptr - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << this->name () << - "_slice *p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = p;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - cast operator () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << this->name () << - "_slice *&() // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // ptr function - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_slice *&" << nl; - *ci << fname << "::ptr (void) // ptr" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // operator [] instead of -> - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_slice &" << nl; - *ci << fname << "::operator[] (CORBA::ULong index)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_[index];\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - return 0; -} - -// generate the _var definition for ourself -int -be_array::gen_forany_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // names - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_forany", this->local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the var definition (always in the client header). - // Depending upon the data type, there are some differences which we account - // for over here. - - ch->indent (); // start with whatever was our current indent level - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - // default constr - *ch << namebuf << " (void); // default constructor" << nl; - // constr from pointer to slice - *ch << namebuf << " (" << this->local_name () << "_slice *, " << - "CORBA::Boolean nocopy=0);" << nl; - // copy constructor - *ch << namebuf << " (const " << namebuf << - " &); // copy constructor" << nl; - // destructor - *ch << "~" << namebuf << " (void); // destructor" << nl; - *ch << nl; - // assignment operator from a pointer to slice - *ch << namebuf << " &operator= (" << this->local_name () << "_slice *);" << - nl; - // assignment from _var - *ch << namebuf << " &operator= (const " << namebuf << " &);" << nl; - - // arrow operator - // nothing here - *ch << nl; - - // other extra types (cast operators, [] operator, and others) - // overloaded [] operator - *ch << this->local_name () << "_slice &operator[] (CORBA::ULong index);" << - nl; - *ch << "const " << this->local_name () << - "_slice &operator[] (CORBA::ULong index) const;" << nl; - - // cast operators - *ch << "operator " << this->local_name () << "_slice * const &() const;" << - nl; - *ch << "operator " << this->local_name () << "_slice *&();" << nl; - - // in, inout, out and _retn - *ch << "// in, inout, out, _retn " << nl; - *ch << "const " << this->local_name () << "_slice *in (void) const;" << nl; - *ch << this->local_name () << "_slice *inout (void);" << nl; - *ch << this->local_name () << "_slice *&out (void);" << nl; - *ch << this->local_name () << "_slice *_retn (void);" << nl; - - // generate an additional member function that returns the underlying pointer - *ch << this->local_name () << "_slice *ptr (void) const;" << nl; - - // additional member function that returns the NOCOPY flag - *ch << "CORBA::Boolean nocopy (void) const;\n"; - *ch << "\n"; - ch->decr_indent (); - - // generate the private section - *ch << "private:\n"; - ch->incr_indent (); - *ch << "friend CORBA::Any;" << nl; - *ch << this->local_name () << "_slice *ptr_;" << nl; - *ch << "CORBA::Boolean nocopy_;\n"; - - ch->decr_indent (); - *ch << "};\n\n"; - - return 0; -} - -int -be_array::gen_forany_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _var names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_forany", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_forany", this->local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - // generate the var implementation in the inline file - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // default constr - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << - " (void) // default constructor" << nl; - *ci << " " << ": ptr_ ((" << this->name () << "_slice *)0)," << nl; - *ci << " nocopy_ (0)" << nl; - *ci << "{}\n\n"; - - // constr from a _slice * - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << name () << "_slice *p, " << - "CORBA::Boolean nocopy)" << nl; - *ci << " : ptr_ (p)," << nl; - *ci << " nocopy_ (nocopy)" << nl; - *ci << "{}\n\n"; - - // copy constructor (deep copy) - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (const " << fname << - " &p) // copy constructor" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = " << this->name () << "_dup (p.ptr_);" << nl; - *ci << "this->nocopy_ = p.nocopy_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // destructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::~" << lname << " (void) // destructor" << nl; - *ci << "{" << nl; - *ci << " // don't do anything" << nl; - *ci << "}\n\n"; - - // assignment operator - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << this->name () << - "_slice *p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "// is what we own the same that is being assigned to us?" << - nl; - *ci << "if (this->ptr_ != p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "// delete our stuff and assume ownership of p" << nl; - *ci << this->name () << "_free (this->ptr_);" << nl; - *ci << "this->ptr_ = p;\n"; - ci->decr_indent (); - *ci << "}" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from _forany - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (const " << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "if (this != &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "// not assigning to ourselves" << nl; - *ci << this->name () << "_free (this->ptr_); // free old stuff" << nl; - *ci << "this->ptr_ = " << this->name () << - "_dup (p.ptr_);// deep copy" << nl; - *ci << "this->nocopy_ = p.nocopy_;\n"; - ci->decr_indent (); - *ci << "}" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - cast operators () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << this->name () - << "_slice * const &() const // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << name () << "_slice *&() // cast " << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // two operator []s instead of -> - ci->indent (); - *ci << "ACE_INLINE " << name () << "_slice const &" << nl; - *ci << fname << "::operator[] (CORBA::ULong index) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_[index];\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << "_slice &" << nl; - *ci << fname << "::operator[] (CORBA::ULong index)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_[index];\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // in, inout, out, and _retn - ci->indent (); - *ci << "ACE_INLINE const " << this->name () << "_slice *" << nl; - *ci << fname << "::in (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_slice *" << nl; - *ci << fname << "::inout (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_slice * &" << nl; - *ci << fname << "::out (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_slice *" << nl; - *ci << fname << "::_retn (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // the additional ptr () member function - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_slice *" << nl; - *ci << fname << "::ptr (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // the additional nocopy member function - ci->indent (); - *ci << "ACE_INLINE CORBA::Boolean" << nl; - *ci << fname << "::nocopy (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->nocopy_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - return 0; -} - -int -be_array::gen_typecode (void) -{ - TAO_OutStream *os; // output stream - - os = tao_cg->client_stubs (); - os->indent (); // start from whatever indentation level we were at - - *os << "CORBA::tk_array, // typecode kind" << be_nl; - *os << this->tc_encap_len () << ", // encapsulation length" << be_idt << "\n"; - // now emit the encapsulation - if (this->gen_encapsulation () == -1) - { - } - // *os << (this->dims () [0]) << "," << be_nl; - return 0; -} - -// generate encapsulation -// An encapsulation for ourselves will be necessary when we are part of some -// other IDL type and a typecode for that other type is being generated. This -// will comprise our typecode kind. IDL types with parameters will additionally -// have the encapsulation length and the entire typecode description - -int -be_array::gen_encapsulation (void) -{ - TAO_OutStream *os; // output stream - be_type *bt; // base type - unsigned long i; - - os = tao_cg->client_stubs (); - os->indent (); // start from the current indentation level - - // retrieve the base type - bt = be_type::narrow_from_decl (this->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::gen_encapsulation - " - "bad base type\n"), - -1); - } - - for (i=0; i < (this->n_dims () - 1); i++) - { - unsigned long rem_encap_len; - - *os << "TAO_ENCAP_BYTE_ORDER, // byte order" << be_nl; - *os << "CORBA::tk_array, // typecode kind" << be_nl; - rem_encap_len - = (this->n_dims () - (i+1))*(4+4) - + (this->n_dims () - (i+2))*(4+4) - + bt->tc_size (); - *os << rem_encap_len << ", // encapsulation length" << be_idt_nl; - } - *os << "TAO_ENCAP_BYTE_ORDER, // byte order\n"; - if (bt->gen_typecode () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::gen_encapsulation - " - "base type tyepcode gen failed\n"), - -1); - } - os->indent (); - for (i = (this->n_dims ()-1); i > 0; i--) - { - *os << this->dims ()[i] << "," << be_uidt_nl; - } - *os << this->dims ()[0] << be_uidt << ",\n"; - return 0; -} - -// compute typecode size -long -be_array::tc_size (void) -{ - // 4 bytes for enumeration, 4 bytes for storing encap length val, followed by the - // actual encapsulation - return 4 + 4 + this->tc_encap_len (); -} - -long -be_array::tc_encap_len (void) -{ - // Suppose "N" is the number of dimensions, then for a N dimensional array, - // we will have N encapsulations. The innermost encapsulation will hold the - // typecode of the real base type. - // Thus, we will have N byte order flags and dimensions, and N-1 tk_array - // enumerations, encapsulation lengths, and dimensions. - - if (this->encap_len_ == -1) // not computed yet - { - be_type *bt; // base type - - bt = be_type::narrow_from_decl (this->base_type ()); - if (!bt) - { - ACE_ERROR ((LM_ERROR, - "be_array::tc_encap_len - bad base type\n")); - return 0; - } - this->encap_len_ = - this->n_dims () * (4+4) // N byte order flags and dims - + (this->n_dims ()-1)* (4+4); // N-1 of Enum and encap lengths - // to this you add the typecode size of the underlying type - this->encap_len_ += bt->tc_size (); - } - return this->encap_len_; -} - -// compute the size type of the node in question -int -be_array::compute_size_type (void) -{ - be_type *type = be_type::narrow_from_decl (this->base_type ()); - if (!type) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::compute_size_type - " - "bad base type\n"), -1); - } - - // our size type is the same as our type - this->size_type (type->size_type ()); - return 0; -} - -int be_array::write_as_return (TAO_OutStream *stream, - be_type *type) -{ - *stream << type->name () << "_slice *"; - return 0; -} - -int -be_array::accept (be_visitor *visitor) -{ - return visitor->visit_array (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_array, AST_Array, be_type) -IMPL_NARROW_FROM_DECL (be_array) diff --git a/TAO/TAO_IDL/be/be_attribute.cpp b/TAO/TAO_IDL/be/be_attribute.cpp deleted file mode 100644 index a39e1d027fa..00000000000 --- a/TAO/TAO_IDL/be/be_attribute.cpp +++ /dev/null @@ -1,49 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_attribute.cpp -// -// = DESCRIPTION -// Extension of class AST_Attribute that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -/* - * BE_Attribute - */ -be_attribute::be_attribute (void) -{ -} - -be_attribute::be_attribute (idl_bool ro, AST_Type *ft, UTL_ScopedName *n, - UTL_StrList *p) - : AST_Attribute (ro, ft, n, p), - AST_Field (AST_Decl::NT_attr, ft, n, p), - AST_Decl (AST_Decl::NT_attr, n, p) -{ -} - -int -be_attribute::accept (be_visitor *visitor) -{ - return visitor->visit_attribute (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_attribute, AST_Attribute, be_decl) -IMPL_NARROW_FROM_DECL (be_attribute) diff --git a/TAO/TAO_IDL/be/be_codegen.cpp b/TAO/TAO_IDL/be/be_codegen.cpp deleted file mode 100644 index 3e219b81516..00000000000 --- a/TAO/TAO_IDL/be/be_codegen.cpp +++ /dev/null @@ -1,676 +0,0 @@ -/* -*- c++ -*- */ -// ============================================================================ -// -// $Id$ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_codegen.cpp -// -// = DESCRIPTION -// -// Code generation -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -TAO_CodeGen *tao_cg = TAO_CODEGEN::instance (); - -/* BE global Data */ -TAO_CodeGen::TAO_CodeGen (void) - : client_header_ (0), - client_stubs_ (0), - client_inline_ (0), - server_header_ (0), - server_template_header_ (0), - server_skeletons_ (0), - server_template_skeletons_ (0), - server_inline_ (0), - server_template_inline_ (0), - curr_os_ (0), - visitor_factory_ (0) -{ -} - -// destructor -TAO_CodeGen::~TAO_CodeGen (void) -{ - delete this->client_header_; - delete this->server_header_; - delete this->server_template_header_; - delete this->client_stubs_; - delete this->server_skeletons_; - delete this->server_template_skeletons_; - delete this->client_inline_; - delete this->server_inline_; - delete this->server_template_inline_; - this->curr_os_ = 0; - delete this->visitor_factory_; -} - -// visitor factory method -be_visitor * -TAO_CodeGen::make_visitor (be_visitor_context *ctx) -{ - ACE_ASSERT (this->visitor_factory_ != 0); - return this->visitor_factory_->make_visitor (ctx); -} - -// change the string to all upcase -const char * -TAO_CodeGen::upcase (const char *str) -{ - static char upcase_str [NAMEBUFSIZE]; - - ACE_OS::memset (upcase_str, '\0', NAMEBUFSIZE); - // convert letters in str to upcase - for (unsigned int i=0; i < ACE_OS::strlen (str); i++) - { - if (isalpha (str [i])) - { - upcase_str[i] = toupper (str [i]); - } - else - { - // copy it as it is - upcase_str[i] = str[i]; - } - } - return upcase_str; -} - -// set the client header stream -int -TAO_CodeGen::start_client_header (const char *fname) -{ - // retrieve the singleton instance to the outstream factory - TAO_OutStream_Factory *factory = TAO_OUTSTREAM_FACTORY::instance (); - - // retrieve a specialized instance - this->client_header_ = factory->make_outstream (); - if (!this->client_header_) - { - return -1; - } - - if (this->client_header_->open (fname, TAO_OutStream::TAO_CLI_HDR) == -1) - return -1; - else - { - // now generate the #if !defined clause - static char macro_name [NAMEBUFSIZE]; - - ACE_OS::memset (macro_name, '\0', NAMEBUFSIZE); - const char *suffix = ACE_OS::strstr (fname, ".h"); - if (suffix == 0) - return -1; // bad file name - else - { - ACE_OS::sprintf (macro_name, "_TAO_IDL_"); - // convert letters in fname to upcase - for (int i=0; i < (suffix - fname); i++) - { - if (isalpha (fname [i])) - macro_name[i+9] = toupper (fname [i]); - else if (isdigit (fname [i])) - macro_name[i+9] = fname[i]; - else - macro_name[i+9] = '_'; - } - - ACE_OS::strcat (macro_name, "_H_"); - - // generate the #ifndef ... #define statements - this->client_header_->print ("#if !defined (%s)\n", macro_name); - this->client_header_->print ("#define %s\n\n", macro_name); - - // generate the TAO_EXPORT_MACRO macro - *this->client_header_ << "#if !defined (TAO_EXPORT_MACRO)\n"; - *this->client_header_ << "#define TAO_EXPORT_MACRO " - << idl_global->export_macro () << be_nl; - *this->client_header_ << "#endif\n"; - - *this->client_header_ << "#include \"tao/corba.h\"\n"; - - if (idl_global->export_include () != 0) - { - *this->client_header_ << "#include \"" - << idl_global->export_include () - << "\"\n"; - } - - // We must include all the skeleton headers corresponding to - // IDL files included by the current IDL file. - for (size_t j = 0; - j < idl_global->n_include_file_names (); - ++j) - { - String* idl_name = - idl_global->include_file_names()[j]; - - const char* client_hdr = - IDL_GlobalData::be_get_client_hdr (idl_name); - - if (client_hdr != 0) - { - this->client_header_->print ("#include \"%s\"\n", - client_hdr); - } - else - { - ACE_ERROR ((LM_WARNING, - "WARNING, invalid file '%s' included\n", - idl_name->get_string ())); - } - } - *this->client_header_ << "\n"; - - *this->client_header_ << "#if defined(_MSC_VER)\n" - << "#pragma warning(disable:4250)\n" - << "#endif /* _MSC_VER */\n\n"; - - return 0; - } - } -} - -// get the client header stream -TAO_OutStream * -TAO_CodeGen::client_header (void) -{ - return this->client_header_; -} - -// set the client stub stream -int -TAO_CodeGen::start_client_stubs (const char *fname) -{ - // retrieve the singleton instance to the outstream factory - TAO_OutStream_Factory *factory = TAO_OUTSTREAM_FACTORY::instance (); - - // retrieve a specialized instance - this->client_stubs_ = factory->make_outstream (); - if (!this->client_stubs_) - { - return -1; - } - - if (this->client_stubs_->open (fname, TAO_OutStream::TAO_CLI_IMPL) == -1) - { - return -1; - } - // generate the include statement for the client header - *this->client_stubs_ << "#include \"" << - idl_global->be_get_client_hdr_fname () << "\"\n\n"; - - *this->client_stubs_ << "#include \"" << - idl_global->be_get_server_hdr_fname () << "\"\n\n"; - - // generate the code that includes the inline file if not included in the - // header file - *this->client_stubs_ << "#if !defined (__ACE_INLINE__)\n"; - *this->client_stubs_ << "#include \"" << - idl_global->be_get_client_inline_fname () << "\"\n"; - *this->client_stubs_ << "#endif /* !defined INLINE */\n\n"; - return 0; -} - -// get the client stubs stream -TAO_OutStream * -TAO_CodeGen::client_stubs (void) -{ - return this->client_stubs_; -} - -// set the client inline stream -int -TAO_CodeGen::start_client_inline (const char *fname) -{ - // retrieve the singleton instance to the outstream factory - TAO_OutStream_Factory *factory = TAO_OUTSTREAM_FACTORY::instance (); - - // retrieve a specialized instance - this->client_inline_ = factory->make_outstream (); - if (!this->client_inline_) - { - return -1; - } - - return this->client_inline_->open (fname, TAO_OutStream::TAO_CLI_INL); -} - -// get the client inline stream -TAO_OutStream * -TAO_CodeGen::client_inline (void) -{ - return this->client_inline_; -} - -// set the server header stream -int -TAO_CodeGen::start_server_header (const char *fname) -{ - // retrieve the singleton instance to the outstream factory - TAO_OutStream_Factory *factory = TAO_OUTSTREAM_FACTORY::instance (); - - // retrieve a specialized instance - this->server_header_ = factory->make_outstream (); - if (!this->server_header_) - { - return -1; - } - - if (this->server_header_->open (fname, TAO_OutStream::TAO_SVR_HDR) == -1) - return -1; - else - { - // now generate the #if !defined clause - static char macro_name [NAMEBUFSIZE]; - - ACE_OS::memset (macro_name, '\0', NAMEBUFSIZE); - const char *suffix = ACE_OS::strstr (fname, ".h"); - if (suffix == 0) - return -1; // bad file name - else - { - ACE_OS::sprintf (macro_name, "_TAO_IDL_"); - // convert letters in fname to upcase - for (int i=0; i < (suffix - fname); i++) - if (isalpha (fname [i])) - macro_name[i+9] = toupper (fname [i]); - else if (isdigit (fname [i])) - macro_name[i+9] = fname[i]; - else - macro_name[i+9] = '_'; - - ACE_OS::strcat (macro_name, "_H_"); - - this->server_header_->print ("#if !defined (%s)\n", macro_name); - this->server_header_->print ("#define %s\n\n", macro_name); - - // We must include all the skeleton headers corresponding to - // IDL files included by the current IDL file. - for (size_t j = 0; - j < idl_global->n_include_file_names (); - ++j) - { - String* idl_name = - idl_global->include_file_names()[j]; - - const char* server_hdr = - IDL_GlobalData::be_get_server_hdr (idl_name); - - this->server_header_->print ("#include \"%s\"\n", - server_hdr); - } - // the server header should include the client header - *this->server_header_ << "#include \"" << - idl_global->be_get_client_hdr_fname () << "\"\n\n"; - - *this->server_header_ << "#if defined(_MSC_VER)\n" - << "#pragma warning(disable:4250)\n" - << "#endif /* _MSC_VER */\n\n"; - - return 0; - } - } -} - -// get the server header stream -TAO_OutStream * -TAO_CodeGen::server_header (void) -{ - return this->server_header_; -} - -// set the server header stream -int -TAO_CodeGen::start_server_template_header (const char *fname) -{ - // retrieve the singleton instance to the outstream factory - TAO_OutStream_Factory *factory = TAO_OUTSTREAM_FACTORY::instance (); - - // retrieve a specialized instance - this->server_template_header_ = factory->make_outstream (); - if (!this->server_template_header_) - { - return -1; - } - - if (this->server_template_header_->open (fname, - TAO_OutStream::TAO_SVR_TMPL_HDR) - == -1) - return -1; - else - { - // now generate the #if !defined clause - static char macro_name [NAMEBUFSIZE]; - - ACE_OS::memset (macro_name, '\0', NAMEBUFSIZE); - const char *suffix = ACE_OS::strstr (fname, ".h"); - if (suffix == 0) - return -1; // bad file name - else - { - ACE_OS::sprintf (macro_name, "_TAO_IDL_"); - // convert letters in fname to upcase - for (int i=0; i < (suffix - fname); i++) - if (isalpha (fname [i])) - macro_name[i+9] = toupper (fname [i]); - else if (isdigit (fname [i])) - macro_name[i+9] = fname[i]; - else - macro_name[i+9] = '_'; - - ACE_OS::strcat (macro_name, "_H_"); - - this->server_template_header_->print ("#if !defined (%s)\n", - macro_name); - this->server_template_header_->print ("#define %s\n\n", macro_name); - - *this->server_template_header_ << "#if defined(_MSC_VER)\n" - << "#pragma warning(disable:4250)\n" - << "#endif /* _MSC_VER */\n\n"; - - return 0; - } - } -} - -// get the server header stream -TAO_OutStream * -TAO_CodeGen::server_template_header (void) -{ - return this->server_template_header_; -} - -// set the server skeletons stream -int -TAO_CodeGen::start_server_skeletons (const char *fname) -{ - // retrieve the singleton instance to the outstream factory - TAO_OutStream_Factory *factory = TAO_OUTSTREAM_FACTORY::instance (); - - // retrieve a specialized instance - this->server_skeletons_ = factory->make_outstream (); - if (!this->server_skeletons_) - { - return -1; - } - - if (this->server_skeletons_->open (fname, TAO_OutStream::TAO_SVR_IMPL) == -1) - { - return -1; - } - - // generate the include statement for the server header - *this->server_skeletons_ << "#include \"" << - idl_global->be_get_server_hdr_fname () << "\"\n\n"; - - // generate the code that includes the inline file if not included in the - // header file - *this->server_skeletons_ << "#if !defined (__ACE_INLINE__)\n"; - *this->server_skeletons_ << "#include \"" << - idl_global->be_get_server_inline_fname () << "\"\n"; - *this->server_skeletons_ << "#endif /* !defined INLINE */\n\n"; - return 0; -} - -// get the server skeletons stream -TAO_OutStream * -TAO_CodeGen::server_skeletons (void) -{ - return this->server_skeletons_; -} - -// set the server template skeleton stream -int -TAO_CodeGen::start_server_template_skeletons (const char *fname) -{ - // retrieve the singleton instance to the outstream factory - TAO_OutStream_Factory *factory = TAO_OUTSTREAM_FACTORY::instance (); - - // retrieve a specialized instance - this->server_template_skeletons_ = factory->make_outstream (); - if (!this->server_template_skeletons_) - { - return -1; - } - - if (this->server_template_skeletons_->open (fname, - TAO_OutStream::TAO_SVR_TMPL_IMPL) - == -1) - return -1; - else - { - // now generate the #if !defined clause - static char macro_name [NAMEBUFSIZE]; - - ACE_OS::memset (macro_name, '\0', NAMEBUFSIZE); - const char *suffix = ACE_OS::strstr (fname, ".cpp"); - if (suffix == 0) - return -1; // bad file name - - ACE_OS::sprintf (macro_name, "_TAO_IDL_"); - // convert letters in fname to upcase - for (int i=0; i < (suffix - fname); i++) - if (isalpha (fname [i])) - macro_name[i+9] = toupper (fname [i]); - else if (isdigit (fname [i])) - macro_name[i+9] = fname[i]; - else - macro_name[i+9] = '_'; - - ACE_OS::strcat (macro_name, "_CPP_"); - - this->server_template_skeletons_->print ("#if !defined (%s)\n", - macro_name); - this->server_template_skeletons_->print ("#define %s\n\n", macro_name); - - *this->server_template_skeletons_ << "#if defined(_MSC_VER)\n" - << "#pragma warning(disable:4250)\n" - << "#endif /* _MSC_VER */\n\n"; - - // generate the include statement for the server header - *this->server_template_skeletons_ << "#include \"" << - idl_global->be_get_server_template_hdr_fname () << "\"\n\n"; - - // generate the code that includes the inline file if not included in the - // header file - *this->server_template_skeletons_ << "#if !defined (__ACE_INLINE__)\n"; - *this->server_template_skeletons_ << "#include \"" << - idl_global->be_get_server_template_inline_fname () << "\"\n"; - *this->server_template_skeletons_ << "#endif /* !defined INLINE */\n\n"; - return 0; - - } -} - -// get the server template skeletons stream -TAO_OutStream * -TAO_CodeGen::server_template_skeletons (void) -{ - return this->server_template_skeletons_; -} - -// set the server inline stream -int -TAO_CodeGen::start_server_inline (const char *fname) -{ - // retrieve the singleton instance to the outstream factory - TAO_OutStream_Factory *factory = TAO_OUTSTREAM_FACTORY::instance (); - - // retrieve a specialized instance - this->server_inline_ = factory->make_outstream (); - if (!this->server_inline_) - { - return -1; - } - - return this->server_inline_->open (fname, TAO_OutStream::TAO_SVR_INL); -} - -// get the server inline stream -TAO_OutStream * -TAO_CodeGen::server_inline (void) -{ - return this->server_inline_; -} - -// set the server template inline stream -int -TAO_CodeGen::start_server_template_inline (const char *fname) -{ - // retrieve the singleton instance to the outstream factory - TAO_OutStream_Factory *factory = TAO_OUTSTREAM_FACTORY::instance (); - - // retrieve a specialized instance - this->server_template_inline_ = factory->make_outstream (); - if (!this->server_template_inline_) - { - return -1; - } - - return this->server_template_inline_->open (fname, TAO_OutStream::TAO_SVR_INL); -} - -// get the server template inline stream -TAO_OutStream * -TAO_CodeGen::server_template_inline (void) -{ - return this->server_template_inline_; -} - -// put the last #endif in the client and server headers -int -TAO_CodeGen::end_client_header (void) -{ - // generate the <<= and >>= operators here - - // insert the code to include the inline file - *this->client_header_ << "\n#if defined (__ACE_INLINE__)\n"; - *this->client_header_ << "#include \"" << - idl_global->be_get_client_inline_fname () << "\"\n"; - *this->client_header_ << "#endif /* defined INLINE */\n\n"; - - *this->client_header_ << "#if defined(_MSC_VER)\n" - << "#pragma warning(default:4250)\n" - << "#endif /* _MSC_VER */\n"; - - // code to put the last #endif - *this->client_header_ << "\n#endif /* if !defined */\n"; - return 0; -} - -int -TAO_CodeGen::end_server_header (void) -{ - // insert the template header - *this->server_header_ << "#include \"" << - idl_global->be_get_server_template_hdr_fname () << "\"\n"; - - // insert the code to include the inline file - *this->server_header_ << "\n#if defined (__ACE_INLINE__)\n"; - *this->server_header_ << "#include \"" << - idl_global->be_get_server_inline_fname () << "\"\n"; - *this->server_header_ << "#endif /* defined INLINE */\n\n"; - - *this->server_header_ << "#if defined(_MSC_VER)\n" - << "#pragma warning(default:4250)\n" - << "#endif /* _MSC_VER */\n"; - - // code to put the last #endif - *this->server_header_ << "\n#endif /* if !defined */\n"; - return 0; -} - -int -TAO_CodeGen::end_server_template_header (void) -{ - // insert the code to include the inline file - *this->server_template_header_ << "\n#if defined (__ACE_INLINE__)\n"; - *this->server_template_header_ << "#include \"" << - idl_global->be_get_server_template_inline_fname () << "\"\n"; - *this->server_template_header_ << "#endif /* defined INLINE */\n\n"; - - // insert the code to include the template source file - *this->server_template_header_ - << "\n#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)\n"; - *this->server_template_header_ << "#include \"" << - idl_global->be_get_server_template_skeleton_fname () << "\"\n"; - *this->server_template_header_ << "#endif /* defined REQUIRED SOURCE */\n\n"; - - // insert the code to include the template pragma - *this->server_template_header_ - << "\n#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)\n"; - *this->server_template_header_ << "#pragma implementation (\"" << - idl_global->be_get_server_template_skeleton_fname () << "\")\n"; - *this->server_template_header_ << "#endif /* defined REQUIRED PRAGMA */\n\n"; - - *this->server_template_header_ << "#if defined(_MSC_VER)\n" - << "#pragma warning(default:4250)\n" - << "#endif /* _MSC_VER */\n"; - - // code to put the last #endif - *this->server_template_header_ << "\n#endif /* if !defined */\n"; - return 0; -} - -int -TAO_CodeGen::end_server_template_skeletons (void) -{ - // code to put the last #endif - *this->server_template_skeletons_ << "\n#endif /* if !defined */\n"; - return 0; -} - -// We use the following helper functions to pass information. This class is the -// best place to pass such information rather than passing information through -// global variables spread everywhere. This class is a singleton and is -// effectively a global. - -void -TAO_CodeGen::outstream (TAO_OutStream *os) -{ - this->curr_os_ = os; -} - -TAO_OutStream * -TAO_CodeGen::outstream (void) -{ - return this->curr_os_; -} - -void -TAO_CodeGen::node (be_decl *n) -{ - this->node_ = n; -} - -be_decl * -TAO_CodeGen::node (void) -{ - return this->node_; -} - -void -TAO_CodeGen::visitor_factory (TAO_Visitor_Factory *f) -{ - this->visitor_factory_ = f; -} - - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Singleton; -template class ACE_Singleton; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Singleton -#pragma instantiate ACE_Singleton -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/TAO_IDL/be/be_constant.cpp b/TAO/TAO_IDL/be/be_constant.cpp deleted file mode 100644 index f64d348e179..00000000000 --- a/TAO/TAO_IDL/be/be_constant.cpp +++ /dev/null @@ -1,93 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_constant.cpp -// -// = DESCRIPTION -// Extension of class AST_Constant that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -/* - * BE_Constant - */ -be_constant::be_constant (void) -{ - this->size_type (be_decl::FIXED); -} - -be_constant::be_constant (AST_Expression::ExprType et, - AST_Expression *v, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Constant (et, v, n, p), - AST_Decl (AST_Decl::NT_const, n, p) -{ - this->size_type (be_decl::FIXED); -} - -char * -be_constant::exprtype_to_string (void) -{ - switch (this->et ()) - { - case AST_Expression::EV_short: - return "CORBA::Short"; - case AST_Expression::EV_ushort: - return "CORBA::UShort"; - case AST_Expression::EV_long: - return "CORBA::Long"; - case AST_Expression::EV_ulong: - return "CORBA::ULong"; - case AST_Expression::EV_float: - return "CORBA::Float"; - case AST_Expression::EV_double: - return "CORBA::Double"; - case AST_Expression::EV_char: - return "CORBA::Char"; - case AST_Expression::EV_octet: - return "CORBA::Octet"; - case AST_Expression::EV_bool: - return "CORBA::Boolean"; - case AST_Expression::EV_string: - return "char *const"; - case AST_Expression::EV_any: - return "CORBA::Any"; - case AST_Expression::EV_void: - return "void"; - case AST_Expression::EV_none: - return "none"; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - return NULL; - } - return NULL; -} - -int -be_constant::accept (be_visitor *visitor) -{ - return visitor->visit_constant (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_constant, AST_Constant, be_decl) -IMPL_NARROW_FROM_DECL (be_constant) diff --git a/TAO/TAO_IDL/be/be_decl.cpp b/TAO/TAO_IDL/be/be_decl.cpp deleted file mode 100644 index c88099131dd..00000000000 --- a/TAO/TAO_IDL/be/be_decl.cpp +++ /dev/null @@ -1,575 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_decl.cpp -// -// = DESCRIPTION -// Extension of class AST_Decl that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -// Default Constructor -be_decl::be_decl (void) - : cli_hdr_gen_ (I_FALSE), - cli_stub_gen_ (I_FALSE), - cli_inline_gen_ (I_FALSE), - srv_hdr_gen_ (I_FALSE), - srv_skel_gen_ (I_FALSE), - srv_inline_gen_ (I_FALSE), - cli_hdr_any_op_gen_ (I_FALSE), - cli_stub_any_op_gen_ (I_FALSE), - fullname_ (0), - flatname_ (0), - repoID_ (0), - size_type_ (be_decl::SIZE_UNKNOWN), - encap_len_ (-1) -{ -} - -// Constructor -be_decl::be_decl (AST_Decl::NodeType type, UTL_ScopedName *n, UTL_StrList - *pragmas) - : AST_Decl (type, n, pragmas), - cli_hdr_gen_ (I_FALSE), - cli_stub_gen_ (I_FALSE), - cli_inline_gen_ (I_FALSE), - srv_hdr_gen_ (I_FALSE), - srv_skel_gen_ (I_FALSE), - srv_inline_gen_ (I_FALSE), - cli_hdr_any_op_gen_ (I_FALSE), - cli_stub_any_op_gen_ (I_FALSE), - fullname_ (0), - size_type_ (be_decl::SIZE_UNKNOWN), - encap_len_ (-1) -{ -} - -//destructor -be_decl::~be_decl (void) -{ -} - -int -be_decl::gen_encapsulation (void) -{ - // do nothing - return 0; -} - -long -be_decl::tc_encap_len (void) -{ - return -1; -} - -// return our size type -be_decl::SIZE_TYPE -be_decl::size_type (void) -{ - if (this->size_type_ == be_decl::SIZE_UNKNOWN) - (void) this->compute_size_type (); - return this->size_type_; -} - -// set our size type and that of all our ancestors -void -be_decl::size_type (be_decl::SIZE_TYPE st) -{ - // precondition - you cannot set somebody's sizetype to unknown - ACE_ASSERT (st != be_decl::SIZE_UNKNOWN); - - // st can be VARIABLE or FIXED - if (this->size_type_ == be_decl::SIZE_UNKNOWN) // not set yet - this->size_type_ = st; // set it - else if ((this->size_type_ == be_decl::FIXED) && - (st == be_decl::VARIABLE)) - // once we are VARIABLE, we cannot be FIXED. But if we were FIXED and then - // get overwritten to VARIABLE, it is fine. Such a situation occurs only - // when setting the sizes of structures and unions - this->size_type_ = st; -} - -// compute stringified fully scoped name -void -be_decl::compute_fullname (void) -{ - if (fullname_) - return; - else - { - long namelen; - UTL_IdListActiveIterator *i; - long first = I_TRUE; - long second = I_FALSE; - - // in the first loop compute the total length - namelen = 0; - i = new UTL_IdListActiveIterator (this->name ()); - while (!(i->is_done ())) - { - if (!first) - namelen += 2; // for "::" - else if (second) - first = second = I_FALSE; - // print the identifier - namelen += ACE_OS::strlen (i->item ()->get_string ()); - if (first) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - // does not start with a "" - first = I_FALSE; - else - second = I_TRUE; - } - i->next (); - } - delete i; - - this->fullname_ = new char [namelen+1]; - this->fullname_[0] = '\0'; - first = I_TRUE; - second = I_FALSE; - i = new UTL_IdListActiveIterator (this->name ()); - while (!(i->is_done ())) - { - if (!first) - ACE_OS::strcat (this->fullname_, "::"); - else if (second) - first = second = I_FALSE; - // print the identifier - ACE_OS::strcat (this->fullname_, i->item ()->get_string ()); - if (first) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - // does not start with a "" - first = I_FALSE; - else - second = I_TRUE; - } - i->next (); - } - delete i; - } - return; -} - -const char* -be_decl::fullname (void) -{ - if (!this->fullname_) - compute_fullname (); - - return this->fullname_; -} - -// compute stringified flattened fully scoped name -void -be_decl::compute_flatname (void) -{ - if (flatname_) - return; - else - { - long namelen; - UTL_IdListActiveIterator *i; - long first = I_TRUE; - long second = I_FALSE; - - // in the first loop compute the total length - namelen = 0; - i = new UTL_IdListActiveIterator (this->name ()); - while (!(i->is_done ())) - { - if (!first) - namelen += 1; // for "_" - else if (second) - first = second = I_FALSE; - // print the identifier - namelen += ACE_OS::strlen (i->item ()->get_string ()); - if (first) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - // does not start with a "" - first = I_FALSE; - else - second = I_TRUE; - } - i->next (); - } - delete i; - - this->flatname_ = new char [namelen+1]; - this->flatname_[0] = '\0'; - first = I_TRUE; - second = I_FALSE; - i = new UTL_IdListActiveIterator (this->name ()); - while (!(i->is_done ())) - { - if (!first) - ACE_OS::strcat (this->flatname_, "_"); - else if (second) - first = second = I_FALSE; - // print the identifier - ACE_OS::strcat (this->flatname_, i->item ()->get_string ()); - if (first) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - // does not start with a "" - first = I_FALSE; - else - second = I_TRUE; - } - i->next (); - } - delete i; - } - return; -} - -const char* -be_decl::flatname (void) -{ - if (!this->flatname_) - compute_flatname (); - - return this->flatname_; -} - -// compute stringified repository ID -void -be_decl::compute_repoID (void) -{ - if (repoID_) - return; - else - { - long namelen; - UTL_IdListActiveIterator *i; - long first = I_TRUE; - long second = I_FALSE; - - // in the first loop compute the total length - namelen = 8; // for the prefix "IDL:" and suffix ":1.0" - i = new UTL_IdListActiveIterator (this->name ()); - while (!(i->is_done ())) - { - if (!first) - namelen += 1; // for "/" - else if (second) - first = second = I_FALSE; - // print the identifier - namelen += ACE_OS::strlen (i->item ()->get_string ()); - if (first) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - // does not start with a "" - first = I_FALSE; - else - second = I_TRUE; - } - i->next (); - } - delete i; - - this->repoID_ = new char [namelen+1]; - this->repoID_[0] = '\0'; - ACE_OS::sprintf (this->repoID_, "%s", "IDL:"); - i = new UTL_IdListActiveIterator (this->name ()); - first = I_TRUE; - second = I_FALSE; - while (!(i->is_done ())) - { - if (!first) - ACE_OS::strcat (this->repoID_, "/"); - else if (second) - first = second = I_FALSE; - // print the identifier - ACE_OS::strcat (this->repoID_, i->item ()->get_string ()); - if (first) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - // does not start with a "" - first = I_FALSE; - else - second = I_TRUE; - } - i->next (); - } - delete i; - ACE_OS::strcat (this->repoID_, ":1.0"); - } - return; -} - -const char * -be_decl::repoID (void) -{ - if (!this->repoID_) - compute_repoID (); - - return this->repoID_; -} - -// converts a string name into an array of 4 byte longs -int -be_decl::tc_name2long (const char *name, long *&larr, long &arrlen) -{ - static long buf [NAMEBUFSIZE / sizeof (long)]; - long slen; - long i; - - slen = ACE_OS::strlen (name) + 1; // 1 for NULL terminating - - // compute the number of bytes necessary to hold the name rounded to the next - // multiple of 4 (i.e., size of long) - arrlen = slen/4 + (slen%4 ? 1:0); - - ACE_OS::memset (buf, '\0', arrlen*4); - larr = buf; - ACE_OS::memcpy (buf, name, arrlen*4); - for (i = 0; i < arrlen; i++) - larr [i] = ACE_HTONL (larr [i]); - -#if 0 - for (i=0; i < ACE_OS::strlen (name); i++) - { - long shift; // num bytes to shift left - - shift = 3 - (i%4); - // store the computed shifted quantity in the appropriate byte of the - // array to be returned - larr [i/4] |= ((name[i] & 0xff) << (shift*8)); - } -#endif - return 0; -} - -idl_bool -be_decl::is_nested (void) -{ - be_decl *d; - - d = be_scope::narrow_from_scope (this->defined_in ())->decl (); - // if we have an outermost scope and if that scope is not that of the Root, - // then we are defined at some nesting level - if (d && d->node_type () != AST_Decl::NT_root) - return I_TRUE; - - return I_FALSE; -} - -// return the length in bytes to hold the repoID inside a typecode. This -// comprises 4 bytes indicating the length of the string followed by the actual -// string represented as longs. -long -be_decl::repoID_encap_len (void) -{ - long slen; - - slen = ACE_OS::strlen (this->repoID ()) + 1; // + 1 for NULL terminating char - // the number of bytes to hold the string must be a multiple of 4 since this - // will be represented as an array of longs - return 4 + 4 * (slen/4 + (slen%4 ? 1:0)); -} - -// return the length in bytes to hold the name inside a typecode. This -// comprises 4 bytes indicating the length of the string followed by the actual -// string represented as longs. -long -be_decl::name_encap_len (void) -{ - long slen; - - slen = ACE_OS::strlen (this->local_name ()->get_string ()) + 1; // + 1 for - // NULL terminating char - // the number of bytes to hold the string must be a multiple of 4 since this - // will be represented as an array of longs - return 4 + 4 * (slen/4 + (slen%4 ? 1:0)); -} - -// compute the size type of the node in question -int -be_decl::compute_size_type (void) -{ - return 0; -} - -// return the scope created by this node (if one exists, else NULL) -be_scope * -be_decl::scope (void) -{ - be_decl *d = this; - - switch (this->node_type()) { - case AST_Decl::NT_interface_fwd: - /* - * Resolve forward declared interface by looking at full_definition() - * field and iterating - */ - d = be_interface::narrow_from_decl ((be_interface_fwd::narrow_from_decl - (this))->full_definition ()); - /* - * Fall through - */ - case AST_Decl::NT_interface: - return be_interface::narrow_from_decl (d); - case AST_Decl::NT_module: - return be_module::narrow_from_decl (d); - case AST_Decl::NT_root: - return be_root::narrow_from_decl (d); - case AST_Decl::NT_except: - return be_exception::narrow_from_decl (d); - case AST_Decl::NT_union: - return be_union::narrow_from_decl (d); - case AST_Decl::NT_struct: - return be_structure::narrow_from_decl (d); - case AST_Decl::NT_enum: - return be_enum::narrow_from_decl (d); - case AST_Decl::NT_op: - return be_operation::narrow_from_decl (d); - case AST_Decl::NT_sequence: - return be_sequence::narrow_from_decl (d); - default: - return (be_scope *)0; - } -} - -// boolean methods to test if code was already generated -idl_bool -be_decl::cli_hdr_gen (void) -{ - return this->cli_hdr_gen_; -} - -idl_bool -be_decl::cli_stub_gen (void) -{ - return this->cli_stub_gen_; -} - -idl_bool -be_decl::cli_hdr_any_op_gen (void) -{ - return this->cli_hdr_any_op_gen_; -} - -idl_bool -be_decl::cli_stub_any_op_gen (void) -{ - return this->cli_stub_any_op_gen_; -} - -idl_bool -be_decl::cli_inline_gen (void) -{ - return this->cli_inline_gen_; -} - -idl_bool -be_decl::srv_hdr_gen (void) -{ - return this->srv_hdr_gen_; -} - -idl_bool -be_decl::srv_skel_gen (void) -{ - return this->srv_skel_gen_; -} - -idl_bool -be_decl::srv_inline_gen (void) -{ - return this->srv_inline_gen_; -} - -// set the flag indicating that code generation is done -void -be_decl::cli_hdr_gen (idl_bool val) -{ - this->cli_hdr_gen_ = val; -} - -void -be_decl::cli_stub_gen (idl_bool val) -{ - this->cli_stub_gen_ = val; -} - -void -be_decl::cli_hdr_any_op_gen (idl_bool val) -{ - this->cli_hdr_any_op_gen_ = val; -} - -void -be_decl::cli_stub_any_op_gen (idl_bool val) -{ - this->cli_stub_any_op_gen_ = val; -} - -void -be_decl::cli_inline_gen (idl_bool val) -{ - this->cli_inline_gen_ = val; -} - -void -be_decl::srv_hdr_gen (idl_bool val) -{ - this->srv_hdr_gen_ = val; -} - -void -be_decl::srv_skel_gen (idl_bool val) -{ - this->srv_skel_gen_ = val; -} - -void -be_decl::srv_inline_gen (idl_bool val) -{ - this->srv_inline_gen_ = val; -} - -int -be_decl::accept (be_visitor *visitor) -{ - return visitor->visit_decl (this); -} - -idl_bool -be_decl::is_child (be_decl *node) -{ - if (this->defined_in ()) - { - be_decl *bd; - - bd = be_scope::narrow_from_scope (this->defined_in ())->decl (); - if (!bd) - return 0; - - if (!ACE_OS::strcmp (bd->fullname (), node->fullname ())) - return 1; // true - } - return 0; // not a child -} - -// narrowing methods -IMPL_NARROW_METHODS1 (be_decl, AST_Decl) -IMPL_NARROW_FROM_DECL (be_decl) diff --git a/TAO/TAO_IDL/be/be_enum.cpp b/TAO/TAO_IDL/be/be_enum.cpp deleted file mode 100644 index c9e0ea40463..00000000000 --- a/TAO/TAO_IDL/be/be_enum.cpp +++ /dev/null @@ -1,193 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_enum.cpp -// -// = DESCRIPTION -// Extension of class AST_Enum that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -/* - * BE_Enum - */ -be_enum::be_enum (void) -{ - this->size_type (be_decl::FIXED); -} - -be_enum::be_enum (UTL_ScopedName *n, UTL_StrList *p) - : AST_Enum (n, p), - AST_Decl (AST_Decl::NT_enum, n, p), - UTL_Scope (AST_Decl::NT_enum), - member_count_ (-1) -{ - this->size_type (be_decl::FIXED); -} - -// compute total number of members -int -be_enum::compute_member_count (void) -{ - UTL_ScopeActiveIterator *si; // iterator - AST_Decl *d; // temp node - - this->member_count_ = 0; - - // if there are elements in this scope - if (this->nmembers () > 0) - { - // instantiate a scope iterator. - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - - while (!(si->is_done ())) - { - // get the next AST decl node - d = si->item (); - if (!d->imported ()) - { - this->member_count_++; - } - si->next (); - } // end of while - delete si; // free the iterator object - } - return 0; -} - -// return the member count -int -be_enum::member_count (void) -{ - if (this->member_count_ == -1) - this->compute_member_count (); - - return this->member_count_; -} - - -// generate typecode. -// Typecode for enum comprises the enumerated value followed by the -// encapsulation of the parameters - -int -be_enum::gen_typecode (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "CORBA::tk_enum, // typecode kind" << nl; - *cs << this->tc_encap_len () << ", // encapsulation length\n"; - // now emit the encapsulation - return this->gen_encapsulation (); -} - -int -be_enum::gen_encapsulation (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - long i, arrlen; - long *arr; // an array holding string names converted to array of longs - - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "TAO_ENCAP_BYTE_ORDER, // byte order" << nl; - // generate repoID - *cs << (ACE_OS::strlen (this->repoID ())+1) << ", "; - (void)this->tc_name2long (this->repoID (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // repository ID = " << this->repoID () << nl; - // generate name - *cs << (ACE_OS::strlen (this->local_name ()->get_string ())+1) << ", "; - (void)this->tc_name2long(this->local_name ()->get_string (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // name = " << this->local_name () << nl; - // generate the member count - *cs << this->member_count () << ", // member count\n"; - cs->incr_indent (0); - // hand over to the scope to generate the typecode for elements - if (be_scope::gen_encapsulation () == -1) - { - ACE_ERROR ((LM_ERROR, "be_structure: cannot generate code for members\n")); - return -1; - } - cs->decr_indent (0); - return 0; -} - -// compute typecode size -long -be_enum::tc_size (void) -{ - // 4 bytes for enumeration, 4 bytes for storing encap length val, followed by the - // actual encapsulation length - return 4 + 4 + this->tc_encap_len (); -} - -// return encapsulation length -long -be_enum::tc_encap_len (void) -{ - if (this->encap_len_ == -1) // not computed yet - { - this->encap_len_ = 4; // holds the byte order flag - - this->encap_len_ += this->repoID_encap_len (); // repoID storage - - // do the same thing for the local name - this->encap_len_ += this->name_encap_len (); - - this->encap_len_ += 4; // to hold the member count - - // compute encap length for members - this->encap_len_ += be_scope::tc_encap_len (); - } - return this->encap_len_; -} - -int be_enum::write_as_return (TAO_OutStream *stream, - be_type *type) -{ - *stream << type->name (); - return 0; -} - -int -be_enum::accept (be_visitor *visitor) -{ - return visitor->visit_enum (this); -} - -// Narrowing -IMPL_NARROW_METHODS3 (be_enum, AST_Enum, be_scope, be_type) -IMPL_NARROW_FROM_DECL (be_enum) -IMPL_NARROW_FROM_SCOPE (be_enum) diff --git a/TAO/TAO_IDL/be/be_enum_val.cpp b/TAO/TAO_IDL/be/be_enum_val.cpp deleted file mode 100644 index 7236cc80d22..00000000000 --- a/TAO/TAO_IDL/be/be_enum_val.cpp +++ /dev/null @@ -1,81 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_enum_val.cpp -// -// = DESCRIPTION -// Extension of class AST_EnumVal that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -be_enum_val::be_enum_val (void) -{ -} - -be_enum_val::be_enum_val (unsigned long v, UTL_ScopedName *n, UTL_StrList *p) - : AST_Constant (AST_Expression::EV_ulong, - AST_Decl::NT_enum_val, - new AST_Expression(v), - n, - p), - AST_Decl (AST_Decl::NT_enum_val, n, p) -{ -} - -int -be_enum_val::gen_encapsulation (void) -{ - TAO_OutStream *cs; // output stream - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - long i, arrlen; - long *arr; // an array holding string names converted to array of longs - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - // generate name - *cs << (ACE_OS::strlen (this->local_name ()->get_string ())+1) << ", "; - (void)this->tc_name2long(this->local_name ()->get_string (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // name = " << this->local_name () << "\n"; - return 0; -} - -long -be_enum_val::tc_encap_len (void) -{ - if (this->encap_len_ == -1) // not computed yet - { - this->encap_len_ = this->name_encap_len (); // for name - } - - return this->encap_len_; -} - -int -be_enum_val::accept (be_visitor *visitor) -{ - return visitor->visit_enum_val (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_enum_val, AST_EnumVal, be_decl) -IMPL_NARROW_FROM_DECL (be_enum_val) diff --git a/TAO/TAO_IDL/be/be_exception.cpp b/TAO/TAO_IDL/be/be_exception.cpp deleted file mode 100644 index 2cd3481e22b..00000000000 --- a/TAO/TAO_IDL/be/be_exception.cpp +++ /dev/null @@ -1,195 +0,0 @@ -// -// $Id$ -// -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_exception.cpp -// -// = DESCRIPTION -// Extension of class AST_Exception that provides additional means for C++ -// mapping of an interface. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -/* - * BE_Exception - */ -be_exception::be_exception (void) -{ - this->size_type (be_decl::VARIABLE); // always the case -} - -be_exception::be_exception (UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl (AST_Decl::NT_except, n, p), - AST_Structure (AST_Decl::NT_except, n, p), - UTL_Scope (AST_Decl::NT_except), - member_count_ (-1) -{ - this->size_type (be_decl::VARIABLE); // always the case -} - -// compute total number of members -int -be_exception::compute_member_count (void) -{ - UTL_ScopeActiveIterator *si; // iterator - - this->member_count_ = 0; - - // if there are elements in this scope - if (this->nmembers () > 0) - { - // instantiate a scope iterator. - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - - while (!(si->is_done ())) - { - // get the next AST decl node - this->member_count_++; - si->next (); - } // end of while - delete si; // free the iterator object - } - return 0; -} - -// return the member count -int -be_exception::member_count (void) -{ - if (this->member_count_ == -1) - this->compute_member_count (); - - return this->member_count_; -} - -// generate typecode. -// Typecode for exceptions comprises the enumerated value followed by the -// encapsulation of the parameters - -int -be_exception::gen_typecode (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "CORBA::tk_except, // typecode kind" << nl; - *cs << this->tc_size () << ", // encapsulation length\n"; - // now emit the encapsulation - return this->gen_encapsulation (); -} - -// generate encapsulation -// An encapsulation for ourselves will be necessary when we are part of some -// other IDL type and a typecode for that other type is being generated. This -// will comprise our typecode kind. IDL types with parameters will additionally -// have the encapsulation length and the entire typecode description -int -be_exception::gen_encapsulation (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - long i, arrlen; - long *arr; // an array holding string names converted to array of longs - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - // XXXASG - byte order must be based on what m/c we are generating code - - // TODO - *cs << "TAO_ENCAP_BYTE_ORDER, // byte order" << nl; - // generate repoID - *cs << (ACE_OS::strlen (this->repoID ())+1) << ", "; - (void)this->tc_name2long (this->repoID (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // repository ID = " << this->repoID () << nl; - // generate name - *cs << (ACE_OS::strlen (this->local_name ()->get_string ())+1) << ", "; - (void)this->tc_name2long(this->local_name ()->get_string (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // name = " << this->local_name () << nl; - // generate the member count - *cs << this->member_count () << ", // member count\n"; - cs->incr_indent (0); - // hand over to the scope to generate the typecode for elements - if (be_scope::gen_encapsulation () == -1) - { - ACE_ERROR ((LM_ERROR, "be_exception: cannot generate typecode for members\n")); - return -1; - } - cs->decr_indent (0); - return 0; -} - -// compute typecode size -long -be_exception::tc_size (void) -{ - // 4 bytes for enumeration, 4 bytes for storing encap length val, followed by the - // actual encapsulation length - return 4 + 4 + this->tc_encap_len (); -} - -// compute encapsulation length -long -be_exception::tc_encap_len (void) -{ - if (this->encap_len_ == -1) // not computed yet - { - this->encap_len_ = 4; // holds the byte order flag - - this->encap_len_ += this->repoID_encap_len (); // repoID - - // do the same thing for the local name - this->encap_len_ += this->name_encap_len (); - - this->encap_len_ += 4; // to hold the member count - - // compute encap length for members - this->encap_len_ += be_scope::tc_encap_len (); - } - return this->encap_len_; -} - -int be_exception::write_as_return (TAO_OutStream *, - be_type *) -{ - // exceptions cannot be returned - return -1; -} - -int -be_exception::accept (be_visitor *visitor) -{ - return visitor->visit_exception (this); -} - -// Narrowing -IMPL_NARROW_METHODS3 (be_exception, AST_Exception, be_scope, be_type) -IMPL_NARROW_FROM_DECL (be_exception) -IMPL_NARROW_FROM_SCOPE (be_exception) diff --git a/TAO/TAO_IDL/be/be_expression.cpp b/TAO/TAO_IDL/be/be_expression.cpp deleted file mode 100644 index f04e22e5e10..00000000000 --- a/TAO/TAO_IDL/be/be_expression.cpp +++ /dev/null @@ -1,82 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_expression.cpp -// -// = DESCRIPTION -// Extension of class AST_Expression that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -/* - * BE_Expression - */ - -// the constructors -be_expression::be_expression (UTL_ScopedName *n) - : AST_Expression (n) -{ -} - -be_expression::be_expression (AST_Expression *b, AST_Expression::ExprType t) - : AST_Expression (b, t) -{ -} - -be_expression::be_expression (AST_Expression::ExprComb c, - AST_Expression *v1, - AST_Expression *v2) - : AST_Expression (c, v1, v2) -{ -} - -be_expression::be_expression (long l) - : AST_Expression (l) -{ -} - -be_expression::be_expression (long l, AST_Expression::ExprType t) - : AST_Expression (l, t) -{ -} - -be_expression::be_expression (unsigned long l) - : AST_Expression (l) -{ -} - -be_expression::be_expression (String *s) - : AST_Expression (s) -{ -} - -be_expression::be_expression (char c) - : AST_Expression (c) -{ -} - -be_expression::be_expression (double d) - : AST_Expression (d) -{ -} - -int -be_expression::accept (be_visitor *visitor) -{ - return visitor->visit_expression (this); -} diff --git a/TAO/TAO_IDL/be/be_factory.cpp b/TAO/TAO_IDL/be/be_factory.cpp deleted file mode 100644 index 5523b329c0c..00000000000 --- a/TAO/TAO_IDL/be/be_factory.cpp +++ /dev/null @@ -1,47 +0,0 @@ -// $Id$ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_sunsoft.h" - -// destructor -TAO_Visitor_Factory::~TAO_Visitor_Factory (void) -{ -} - -// constructor -TAO_OutStream_Factory::TAO_OutStream_Factory (void) - : strm_type_ (TAO_OutStream_Factory::TAO_SUNSOFT) -{ -} - -// destructor -TAO_OutStream_Factory::~TAO_OutStream_Factory (void) -{ -} - -// set the type of specialized o/p stream we want -int -TAO_OutStream_Factory::set_stream_type -(TAO_OutStream_Factory::TAO_OutStream_Type t) -{ - this->strm_type_ = t; - return 0; -} - -// factory method -TAO_OutStream * -TAO_OutStream_Factory::make_outstream (void) -{ - switch (this->strm_type_) - { - case TAO_OutStream_Factory::TAO_SUNSOFT: - return new TAO_SunSoft_OutStream (); - case TAO_OutStream_Factory::TAO_FLICK: - return (TAO_OutStream *)0; // not implemented as yet - default: - return (TAO_OutStream *)0; - } -} diff --git a/TAO/TAO_IDL/be/be_field.cpp b/TAO/TAO_IDL/be/be_field.cpp deleted file mode 100644 index 99f471b9064..00000000000 --- a/TAO/TAO_IDL/be/be_field.cpp +++ /dev/null @@ -1,109 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_field.cpp -// -// = DESCRIPTION -// Extension of class AST_Field that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -/* - * BE_Field - */ -be_field::be_field (void) -{ -} -be_field::be_field (AST_Type *ft, UTL_ScopedName *n, UTL_StrList *p) - : AST_Field (ft, n, p), - AST_Decl (AST_Decl::NT_field, n, p) -{ -} - -int -be_field::gen_encapsulation (void) -{ - TAO_OutStream *cs; // output stream - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - be_type *bt; // our type node - long i, arrlen; - long *arr; // an array holding string names converted to array of longs - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - // generate name - *cs << (ACE_OS::strlen (this->local_name ()->get_string ())+1) << ", "; - (void)this->tc_name2long(this->local_name ()->get_string (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // name = " << this->local_name () << "\n"; - - // hand over code generation to our type node - bt = be_type::narrow_from_decl (this->field_type ()); - return bt->gen_typecode (); -} - -long -be_field::tc_encap_len (void) -{ - if (this->encap_len_ == -1) // not computed yet - { - be_type *bt; - - // struct member is represented as the "name" followed by the typecode - - this->encap_len_ = this->name_encap_len (); // for name - - // add to this, the size of our typecode - bt = be_type::narrow_from_decl (this->field_type ()); - this->encap_len_ += bt->tc_size (); // note that we must add typecode - // size of the type - } - return this->encap_len_; -} - -// compute the size type of the node in question -int -be_field::compute_size_type (void) -{ - be_type *type = be_type::narrow_from_decl (this->field_type ()); - if (!type) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_field::compute_size_type - " - "bad field type\n"), -1); - } - - // our size type is the same as our type - this->size_type (type->size_type ()); // as a side effect will also update - // the size type of parent - return 0; -} - -int -be_field::accept (be_visitor *visitor) -{ - return visitor->visit_field (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_field, AST_Field, be_decl) -IMPL_NARROW_FROM_DECL (be_field) diff --git a/TAO/TAO_IDL/be/be_generator.cpp b/TAO/TAO_IDL/be/be_generator.cpp deleted file mode 100644 index 4279bcdf2de..00000000000 --- a/TAO/TAO_IDL/be/be_generator.cpp +++ /dev/null @@ -1,413 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// be_generator.cc -// -// Implementation of BE generator class -// -// This implements the same protocol as AST_Generator but creates instances -// of the BE-subclassed classes instead of of AST classes - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "ace/inc_user_config.h" - -/* - * Constructor - */ - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Inherited operations redefined here - */ - -/* - * Construct a be_root node (a node representing the root of an AST of BE nodes) - */ -AST_Root * -be_generator::create_root(UTL_ScopedName *n, - UTL_StrList *p) -{ - return new be_root(n, p); -} - -/* - * Create a BE_PredefinedType node - */ -AST_PredefinedType * -be_generator::create_predefined_type(AST_PredefinedType::PredefinedType t, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return (AST_PredefinedType *) new be_predefined_type(t, n, p); -} - -/* - * Create a BE_Module node - */ -AST_Module * -be_generator::create_module(UTL_ScopedName *n, UTL_StrList *p) -{ - return (AST_Module *) new be_module(n, p); -} - -/* - * Create a BE_Interface node - */ -AST_Interface * -be_generator::create_interface(UTL_ScopedName *n, - AST_Interface **ih, - long nih, - UTL_StrList *p) -{ - return (AST_Interface *) new be_interface(n, ih, nih, p); -} - -/* - * Create a BE_InterfaceFwd node - */ -AST_InterfaceFwd * -be_generator::create_interface_fwd(UTL_ScopedName *n, UTL_StrList *p) -{ - return (AST_InterfaceFwd *) new be_interface_fwd(n, p); -} - -/* - * Create a BE_Exception node - */ -AST_Exception * -be_generator::create_exception(UTL_ScopedName *n, UTL_StrList *p) -{ - return (AST_Exception *) new be_exception(n, p); -} - -/* - * Create a BE_Structure node - */ -AST_Structure * -be_generator::create_structure(UTL_ScopedName *n, UTL_StrList *p) -{ - return (AST_Structure *) new be_structure(n, p); -} - -/* - * Create a BE_Enum node - */ -AST_Enum * -be_generator::create_enum(UTL_ScopedName *n, UTL_StrList *p) -{ - return (AST_Enum *) new be_enum(n, p); -} - -/* - * Create a BE_Operation node - */ -AST_Operation * -be_generator::create_operation(AST_Type *rt, - AST_Operation::Flags fl, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return (AST_Operation *) new be_operation(rt, fl, n, p); -} - -/* - * Create a BE_Field node - */ -AST_Field * -be_generator::create_field(AST_Type *ft, UTL_ScopedName *n, UTL_StrList *p) -{ - return (AST_Field *) new be_field(ft, n, p); -} - -/* - * Create a BE_Argument node - */ -AST_Argument * -be_generator::create_argument(AST_Argument::Direction d, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return (AST_Argument *) new be_argument(d, ft, n, p); -} - -/* - * Create a BE_Attribute node - */ -AST_Attribute * -be_generator::create_attribute(idl_bool ro, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return (AST_Attribute *) new be_attribute(ro, ft, n, p); -} - -/* - * Create a BE_Union node - */ -AST_Union * -be_generator::create_union(AST_ConcreteType *dt, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return (AST_Union *) new be_union(dt, n, p); -} - -/* - * Create a BE_UnionBranch node - */ -AST_UnionBranch * -be_generator::create_union_branch(AST_UnionLabel *lab, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return (AST_UnionBranch *) new be_union_branch(lab, ft, n, p); -} - -/* - * Create a BE_UnionLabel node - */ -AST_UnionLabel * -be_generator::create_union_label(AST_UnionLabel::UnionLabel ul, - AST_Expression *lv) -{ - return (AST_UnionLabel *) new be_union_label(ul, lv); -} - -/* - * Create a BE_Constant node - */ -AST_Constant * -be_generator::create_constant(AST_Expression::ExprType et, - AST_Expression *ev, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return (AST_Constant *) new be_constant (et, ev, n, p); -} - -/* - * Create a symbolic BE_Expression node - */ -AST_Expression * -be_generator::create_expr(UTL_ScopedName *n) -{ - return (AST_Expression *) new be_expression (n); -} - -/* - * Create a BE_Expression node denoting a coercion - */ -AST_Expression * -be_generator::create_expr(AST_Expression *b, AST_Expression::ExprType t) -{ - return (AST_Expression *) new be_expression (b, t); -} - -/* - * Create a BE_Expression node combining two other AST_Expression nodes - */ -AST_Expression * -be_generator::create_expr(AST_Expression::ExprComb c, - AST_Expression *v1, - AST_Expression *v2) -{ - return (AST_Expression *) new be_expression (c, v1, v2); -} - -/* - * Create a BE_Expression node denoting a long integer - */ -AST_Expression * -be_generator::create_expr(long l) -{ - return (AST_Expression *) new be_expression (l); -} - -/* - * Create a BE_Expression node denoting a long integer being used as a boolean - */ -AST_Expression * -be_generator::create_expr(long l, AST_Expression::ExprType t) -{ - return (AST_Expression *) new be_expression (l, t); -} - -/* - * Create a BE_Expression node denoting an unsigned long integer - */ -AST_Expression * -be_generator::create_expr(unsigned long l) -{ - return (AST_Expression *) new be_expression(l); -} - -/* - * Create a BE_Expression node denoting a char * (encapsulated as a String) - */ -AST_Expression * -be_generator::create_expr (String *s) -{ - return (AST_Expression *) new be_expression (s); -} - -/* - * Create a BE_Expression node denoting a character - */ -AST_Expression * -be_generator::create_expr(char c) -{ - return (AST_Expression *) new be_expression (c); -} - -/* - * Create a BE_Expression node denoting a 64-bit floating point number - */ -AST_Expression * -be_generator::create_expr (double d) -{ - return (AST_Expression *) new be_expression (d); -} - -/* - * Create a BE_EnumVal node - */ -AST_EnumVal * -be_generator::create_enum_val(unsigned long v, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return (AST_EnumVal *) new be_enum_val(v, n, p); -} - -/* - * Create a BE_Array node - */ -AST_Array * -be_generator::create_array(UTL_ScopedName *n, - unsigned long ndims, - UTL_ExprList *dims) -{ - return (AST_Array *) new be_array(n, ndims, dims); -} - -/* - * Create a BE_Sequence node - */ -AST_Sequence * -be_generator::create_sequence(AST_Expression *v, AST_Type *bt) -{ - return (AST_Sequence *) new be_sequence(v, bt); -} - -/* - * Create a BE_String node - */ -AST_String * -be_generator::create_string(AST_Expression *v) -{ - return (AST_String *) new be_string(v); -} - -/* - * Create a BE_string node for a wide string - */ -AST_String * -be_generator::create_wstring(AST_Expression *v) -{ - return (AST_String *) new be_string(v, sizeof(ACE_OS::WChar)); -} - -/* - * Create a BE_Typedef node - */ -AST_Typedef * -be_generator::create_typedef(AST_Type *bt, UTL_ScopedName *n, UTL_StrList *p) -{ - return (AST_Typedef *) new be_typedef(bt, n, p); -} - -/* - * Construct an AST_Native node - */ -AST_Native * -be_generator::create_native (UTL_ScopedName *n, - UTL_StrList *p) -{ - return (AST_Native *) new be_native (n, p); -} diff --git a/TAO/TAO_IDL/be/be_helper.cpp b/TAO/TAO_IDL/be/be_helper.cpp deleted file mode 100644 index 5ba49d8a5ae..00000000000 --- a/TAO/TAO_IDL/be/be_helper.cpp +++ /dev/null @@ -1,284 +0,0 @@ -// ============================================================================ -// -// $Id$ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_helper.cpp -// -// = DESCRIPTION -// Provides helper classes to print generated code to the output -// -// = AUTHOR -// Aniruddha Gokhale -// -// Improvements by Carlos O'Ryan -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -static const char copyright [] = -"/* -*- C++ -*- */\n\n\ -// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******\n\ -// TAO ORB and the TAO IDL Compiler have been developed by Washington \n\ -// University Computer Science's Distributed Object Computing Group.\n\ -//\n\ -// Information on TAO is available at\n\ -// http://www.cs.wustl.edu/~schmidt/TAO.html\n"; - -TAO_NL::TAO_NL (void) -{ -} - -TAO_INDENT::TAO_INDENT (int do_now) - : do_now_ (do_now) -{ -} - -TAO_UNINDENT::TAO_UNINDENT (int do_now) - : do_now_ (do_now) -{ -} - -const TAO_NL be_nl; -const TAO_INDENT be_idt; -const TAO_INDENT be_idt_nl (1); -const TAO_UNINDENT be_uidt; -const TAO_UNINDENT be_uidt_nl (1); - -// methods of the TAO_OutStream class - -TAO_OutStream::TAO_OutStream (void) - : fp_ (NULL), - indent_level_ (0) -{ -} - -TAO_OutStream::~TAO_OutStream (void) -{ - // close the underlying I/O handle only if it exists - if (fp_) - { - ACE_OS::fclose (fp_); - fp_ = NULL; - } - indent_level_ = 0; -} - -int -TAO_OutStream::open (const char *fname, TAO_OutStream::STREAM_TYPE st) -{ - if (fname) - { - // file name exists, open an I/O file handle - fp_ = ACE_OS::fopen (fname, "w"); - if (fp_) - { - this->st_ = st; - // put the copyright notice - ACE_OS::fprintf (fp_, "%s\n", copyright); - ACE_OS::fflush (fp_); - return 0; - } - else - return -1; - } - else - { - return -1; - } -} - -// set and get the stream type -void -TAO_OutStream::stream_type (TAO_OutStream::STREAM_TYPE st) -{ - this->st_ = st; -} - -TAO_OutStream::STREAM_TYPE -TAO_OutStream::stream_type (void) -{ - return this->st_; -} - -// indentation -int -TAO_OutStream::incr_indent (unsigned short flag) -{ - indent_level_++; - if (flag) - return this->indent (); - else - return 0; // do not indent output -} - -// indentation -int -TAO_OutStream::decr_indent (unsigned short flag) -{ - indent_level_--; - if (flag) - return this->indent (); - else - return 0; // do not indent output -} - -int -TAO_OutStream::reset (void) -{ - indent_level_ = 0; - return 0; -} - -// indented print -int -TAO_OutStream::indent (void) -{ - int i; - // based on the current indentation level, leave appropriate number of blank - // spaces in the output - if (this->indent_level_ > 0) - { - for (i=0; i < this->indent_level_; i++) - { - ACE_OS::fprintf (this->fp_, " "); - ACE_OS::fflush (this->fp_); - } - } - return 0; -} - -int -TAO_OutStream::nl (void) -{ - ACE_OS::fprintf (this->fp_, "\n"); - this->indent (); - return 0; -} - -// macro generation -int -TAO_OutStream::gen_ifdef_macro (const char *flatname, const char *suffix) -{ - static char macro [NAMEBUFSIZE]; - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ACE_OS::memset (macro, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (macro, "_%s_", cg->upcase (flatname)); - if (suffix) - { - ACE_OS::sprintf (macro, "%s_%s_", macro, cg->upcase (suffix)); - } - - // append a suffix representing the stream type - switch (this->st_) - { - case TAO_OutStream::TAO_CLI_HDR: - ACE_OS::strcat (macro, "CH_"); - break; - case TAO_OutStream::TAO_CLI_INL: - ACE_OS::strcat (macro, "CI_"); - break; - case TAO_OutStream::TAO_CLI_IMPL: - ACE_OS::strcat (macro, "CS_"); - break; - case TAO_OutStream::TAO_SVR_HDR: - ACE_OS::strcat (macro, "SH_"); - break; - case TAO_OutStream::TAO_SVR_INL: - ACE_OS::strcat (macro, "SI_"); - break; - case TAO_OutStream::TAO_SVR_IMPL: - ACE_OS::strcat (macro, "SS_"); - break; - } - *this << "\n#if !defined (" << macro << ")\n"; - *this << "#define " << macro << "\n\n"; - return 0; -} - -int -TAO_OutStream::gen_endif (void) -{ - *this << "\n#endif /* end #if !defined */\n\n"; - return 0; -} - -// printf style variable argument print -int -TAO_OutStream::print (const char *format, ...) -{ - int result = 0; - va_list ap; - va_start (ap, format); - ACE_OSCALL (::vfprintf (this->fp_, format, ap), int, -1, result); - ACE_OS::fflush (fp_); - va_end (ap); - return result; -} - -TAO_OutStream & -TAO_OutStream::operator<< (const char *str) -{ - ACE_OS::fprintf (this->fp_, "%s", str); - ACE_OS::fflush (fp_); - return *this; -} - -TAO_OutStream & -TAO_OutStream::operator<< (const long num) -{ - ACE_OS::fprintf (this->fp_, "%ld", num); - ACE_OS::fflush (fp_); - return *this; -} - -TAO_OutStream & -TAO_OutStream::operator<< (const TAO_NL&) -{ - ACE_OS::fprintf (this->fp_ , "\n"); - this->indent (); - return *this; -} - -TAO_OutStream & -TAO_OutStream::operator<< (const TAO_INDENT& i) -{ - this->incr_indent (0); - if (i.do_now_) - this->nl (); - return *this; -} - -TAO_OutStream & -TAO_OutStream::operator<< (const TAO_UNINDENT& i) -{ - this->decr_indent (0); - if (i.do_now_) - this->nl (); - return *this; -} - -TAO_OutStream & -TAO_OutStream::operator<< (Identifier *id) -{ - return this->print (id); -} - -TAO_OutStream & -TAO_OutStream::operator<< (UTL_IdList *id) -{ - return this->print (id); -} - -TAO_OutStream & -TAO_OutStream::operator<< (AST_Expression *expr) -{ - return this->print (expr); -} diff --git a/TAO/TAO_IDL/be/be_init.cpp b/TAO/TAO_IDL/be/be_init.cpp deleted file mode 100644 index 4a41bbd9003..00000000000 --- a/TAO/TAO_IDL/be/be_init.cpp +++ /dev/null @@ -1,99 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// BE_init.cc - Initialization for dummy BE - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -/* - * Initialize the BE. The protocol requires only that this routine - * return an instance of AST_Generator (or a subclass thereof). - * - * Remember that none of the FE initialization has been done, when you - * add stuff here. - */ -AST_Generator * -BE_init() -{ - AST_Generator *g = new be_generator(); - - if (g == NULL) { - cerr << GTDEVEL("IDL: BE init failed to create generator, exiting\n"); - exit(99); - } - return g; -} - -/* - * Print out a version string for the BE - */ -void -BE_version() -{ - cerr << GTDEVEL("TAO C++ BE, version 0.1.0\n"); -} diff --git a/TAO/TAO_IDL/be/be_interface.cpp b/TAO/TAO_IDL/be/be_interface.cpp deleted file mode 100644 index e43a2ba070d..00000000000 --- a/TAO/TAO_IDL/be/be_interface.cpp +++ /dev/null @@ -1,1340 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_interface.cpp -// -// = DESCRIPTION -// Extension of class AST_Interface that provides additional means for C++ -// mapping of an interface. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be_visitor_interface.h" -#include "be.h" - -/* - * BE_Interface - */ - -// default constructor -be_interface::be_interface (void) - : full_skel_name_ (0), - skel_count_ (0), - full_coll_name_ (0), - local_coll_name_ (0) -{ - this->size_type (be_decl::VARIABLE); // always the case -} - -// constructor used to build the AST -be_interface::be_interface (UTL_ScopedName *n, AST_Interface **ih, long nih, - UTL_StrList *p) - : AST_Interface (n, ih, nih, p), - AST_Decl (AST_Decl::NT_interface, n, p), - UTL_Scope (AST_Decl::NT_interface), - full_skel_name_ (0), - skel_count_ (0), - full_coll_name_ (0), - local_coll_name_ (0) -{ - this->size_type (be_decl::VARIABLE); // always the case -} - -be_interface::~be_interface (void) -{ - if (this->full_skel_name_ != 0) - { - delete[] this->full_skel_name_; - this->full_skel_name_ = 0; - } - if (this->full_coll_name_ != 0) - { - delete[] this->full_coll_name_; - this->full_coll_name_ = 0; - } - if (this->local_coll_name_ != 0) - { - delete[] this->local_coll_name_; - this->local_coll_name_ = 0; - } -} - -// compute stringified fully qualified collocated class name. -void -be_interface::compute_coll_name (void) -{ - if (this->full_coll_name_ != 0) - return; - - const char collocated[] = "_tao_collocated_"; - const char poa[] = "POA_"; - // Reserve enough room for the "POA_" prefix, the "_tao_collocated_" - // prefix and the local name and the (optional) "::" - int namelen = sizeof (collocated) + sizeof (poa); - - UTL_IdListActiveIterator *i; - ACE_NEW (i, UTL_IdListActiveIterator (this->name ())); - while (!i->is_done ()) - { - // reserve 2 characters for "::". - namelen += ACE_OS::strlen (i->item ()->get_string ()) + 2; - i->next (); - } - delete i; - - ACE_NEW (this->full_coll_name_, - char[namelen+1]); - this->full_coll_name_[0] = 0; // null terminate the string... - - // Iterate again.... - ACE_NEW (i, UTL_IdListActiveIterator (this->name ())); - - // Only the first component get the "POA_" preffix. - int poa_added = 0; - while (!i->is_done ()) - { - const char* item = i->item ()->get_string (); - - // Increase right away, so we can test for the final component - // in the loop. - i->next (); - - // We add the POA_ preffix only if the first component is not - // the global scope... - if (ACE_OS::strcmp (item, "") != 0) - { - if (!i->is_done ()) - { - // We only add the POA_ preffix if there are more than - // two components in the name, in other words, if the - // class is inside some scope. - if (!poa_added) - { - ACE_OS::strcat (this->full_coll_name_, poa); - poa_added = 1; - } - ACE_OS::strcat (this->full_coll_name_, item); - ACE_OS::strcat (this->full_coll_name_, "::"); - } - else - { - ACE_OS::strcat (this->full_coll_name_, collocated); - ACE_OS::strcat (this->full_coll_name_, item); - } - } - } - delete i; - - // Compute the local name for the collocated class. - int localen = sizeof (collocated); - localen += ACE_OS::strlen (this->local_name ()->get_string ()); - ACE_NEW (this->local_coll_name_, char[localen]); - ACE_OS::strcpy(this->local_coll_name_, collocated); - ACE_OS::strcat(this->local_coll_name_, - this->local_name ()->get_string ()); -} - -const char * -be_interface::full_coll_name (void) -{ - if (this->full_coll_name_ == 0) - this->compute_coll_name (); - - return this->full_coll_name_; -} - -const char* -be_interface::local_coll_name (void) const -{ - if (this->local_coll_name_ == 0) - ACE_const_cast (be_interface*, this)->compute_coll_name (); - - return this->local_coll_name_; -} - -// compute stringified fully scoped skel name -void -be_interface::compute_fullskelname (void) -{ - if (full_skel_name_) - return; - else - { - long namelen; - UTL_IdListActiveIterator *i; - long first = I_TRUE; - long second = I_FALSE; - - // in the first loop compute the total length - namelen = 4; - i = new UTL_IdListActiveIterator (this->name ()); - while (!(i->is_done ())) - { - if (!first) - namelen += 2; // for "::" - else if (second) - first = second = I_FALSE; - // print the identifier - namelen += ACE_OS::strlen (i->item ()->get_string ()); // - // additional 4 for the POA_ characters - if (first) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - // does not start with a "" - first = I_FALSE; - else - second = I_TRUE; - } - i->next (); - } - delete i; - - this->full_skel_name_ = new char [namelen+1]; - this->full_skel_name_[0] = '\0'; - first = I_TRUE; - second = I_FALSE; - ACE_OS::strcat (this->full_skel_name_, "POA_"); - i = new UTL_IdListActiveIterator (this->name ()); - while (!(i->is_done ())) - { - if (!first) - ACE_OS::strcat (this->full_skel_name_, "::"); - else if (second) - first = second = I_FALSE; - // print the identifier - ACE_OS::strcat (this->full_skel_name_, i->item ()->get_string ()); - if (first) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - // does not start with a "" - first = I_FALSE; - else - second = I_TRUE; - } - i->next (); - } - delete i; - } - return; -} - -// retrieve the fully scoped skeleton name -const char* -be_interface::full_skel_name (void) -{ - if (!this->full_skel_name_) - compute_fullskelname (); - - return this->full_skel_name_; -} - -// generate the var definition -int -be_interface::gen_var_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // names - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_var", this->local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the var definition (always in the client header). - // Depending upon the data type, there are some differences which we account - // for over here. - - ch->indent (); // start with whatever was our current indent level - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - - // default constr - *ch << namebuf << " (void); // default constructor" << nl; - *ch << namebuf << " (" << local_name () << "_ptr);" << nl; - - // copy constructor - *ch << namebuf << " (const " << namebuf << - " &); // copy constructor" << nl; - - // destructor - *ch << "~" << namebuf << " (void); // destructor" << nl; - *ch << nl; - - // assignment operator from a pointer - *ch << namebuf << " &operator= (" << local_name () << "_ptr);" << nl; - - // assignment from _var - *ch << namebuf << " &operator= (const " << namebuf << - " &);" << nl; - - // arrow operator - *ch << local_name () << "_ptr operator-> (void) const;" << nl; - - *ch << nl; - - // other extra types (cast operators, [] operator, and others) - *ch << "operator const " << local_name () << "_ptr &() const;" << nl; - *ch << "operator " << local_name () << "_ptr &();" << nl; - - *ch << "// in, inout, out, _retn " << nl; - // the return types of in, out, inout, and _retn are based on the parameter - // passing rules and the base type - *ch << local_name () << "_ptr in (void) const;" << nl; - *ch << local_name () << "_ptr &inout (void);" << nl; - *ch << local_name () << "_ptr &out (void);" << nl; - *ch << local_name () << "_ptr _retn (void);" << nl; - - // generate an additional member function that returns the underlying pointer - *ch << local_name () << "_ptr ptr (void) const;\n"; - - *ch << "\n"; - ch->decr_indent (); - - // private - *ch << "private:\n"; - ch->incr_indent (); - *ch << local_name () << "_ptr ptr_;\n"; - - ch->decr_indent (); - *ch << "};\n\n"; - - return 0; -} - -// implementation of the _var class. All of these get generated in the inline -// file -int -be_interface::gen_var_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _var names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_var", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_var", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - // generate the var implementation in the inline file - // Depending upon the data type, there are some differences which we account - // for over here. - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // default constr - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << - " (void) // default constructor" << nl; - *ci << " " << ": ptr_ (" << this->name () << "::_nil ())" << nl; - *ci << "{}\n\n"; - - // constr from a _ptr - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << name () << "_ptr p)" << nl; - *ci << " : ptr_ (p)" << nl; - *ci << "{}\n\n"; - - // the additional ptr () member function. This member function must be - // defined before the remaining member functions including the copy - // constructor because this inline function is used elsewhere. Hence to make - // inlining of this function possible, we must define it before its use. - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr " << nl; - *ci << fname << "::ptr (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // copy constructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (const " << fname << - " &p) // copy constructor" << nl; - *ci << " : ptr_ (" << name () << "::_duplicate (p.ptr ()))" << nl; - *ci << "{}\n\n"; - - // destructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::~" << lname << " (void) // destructor" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "CORBA::release (this->ptr_);\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << name () << - "_ptr p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "CORBA::release (this->ptr_);" << nl; - *ci << "this->ptr_ = p;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from _var - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (const " << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "if (this != &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "CORBA::release (this->ptr_);" << nl; - *ci << "this->ptr_ = " << name () << "::_duplicate (p.ptr ());\n"; - ci->decr_indent (); - *ci << "}" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - cast operator () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator const " << name () << - "_ptr &() const // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << name () << "_ptr &() // cast " << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // operator-> - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr " << nl; - *ci << fname << "::operator-> (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // in, inout, out, and _retn - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr" << nl; - *ci << fname << "::in (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr &" << nl; - *ci << fname << "::inout (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr &" << nl; - *ci << fname << "::out (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "CORBA::release (this->ptr_);" << nl; - *ci << "this->ptr_ = " << this->name () << "::_nil ();" << nl; - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr " << nl; - *ci << fname << "::_retn (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "// yield ownership of managed obj reference" << nl; - *ci << this->name () << "_ptr val = this->ptr_;" << nl; - *ci << "this->ptr_ = " << this->name () << "::_nil ();" << nl; - *ci << "return val;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - return 0; -} - -// generate the _out definition -int -be_interface::gen_out_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // to hold the _out name - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_out", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the out definition (always in the client header) - ch->indent (); // start with whatever was our current indent level - - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - - // No default constructor - - // constructor from a pointer - *ch << namebuf << " (" << local_name () << "_ptr &);" << nl; - // constructor from a _var & - *ch << namebuf << " (" << local_name () << "_var &);" << nl; - // constructor from a _out & - *ch << namebuf << " (" << namebuf << " &);" << nl; - // assignment operator from a _out & - *ch << namebuf << " &operator= (" << namebuf << " &);" << nl; - // assignment operator from a pointer &, cast operator, ptr fn, operator - // -> and any other extra operators - // only interface allows assignment from var & - *ch << namebuf << " &operator= (const " << local_name () << "_var &);" << nl; - *ch << namebuf << " &operator= (" << local_name () << "_ptr);" << nl; - // cast - *ch << "operator " << local_name () << "_ptr &();" << nl; - // ptr fn - *ch << local_name () << "_ptr &ptr (void);" << nl; - // operator -> - *ch << local_name () << "_ptr operator-> (void);" << nl; - - *ch << "\n"; - ch->decr_indent (); - *ch << "private:\n"; - ch->incr_indent (); - *ch << local_name () << "_ptr &ptr_;\n"; - - ch->decr_indent (); - *ch << "};\n\n"; - return 0; -} - -int -be_interface::gen_out_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _out names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_out", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_out", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - // generate the var implementation in the inline file - // Depending upon the data type, there are some differences which we account - // for over here. - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // constr from a _ptr - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << name () << "_ptr &p)" << nl; - *ci << " : ptr_ (p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = " << this->name () << "::_nil ();\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // constructor from _var & - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << this->name () << - "_var &p) // constructor from _var" << nl; - *ci << " : ptr_ (p.out ())" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "CORBA::release (this->ptr_);" << nl; - *ci << "this->ptr_ = " << this->name () << "::_nil ();\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // copy constructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << fname << - " &p) // copy constructor" << nl; - *ci << " : ptr_ (p.ptr_)" << nl; - *ci << "{}\n\n"; - - // assignment operator from _out & - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = p.ptr_;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from _var - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (const " << this->name () << - "_var &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = " << this->name () << "::_duplicate (p.ptr ());" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from _ptr - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << this->name () << - "_ptr p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = p;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - cast operator () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << this->name () << - "_ptr &() // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // ptr function - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_ptr &" << nl; - *ci << fname << "::ptr (void) // ptr" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // operator-> - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_ptr " << nl; - *ci << fname << "::operator-> (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - return 0; -} - -// generate typecode. -// Typecode for interface comprises the enumerated value followed by the -// encapsulation of the parameters - -int -be_interface::gen_typecode (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "CORBA::tk_objref, // typecode kind" << nl; - *cs << this->tc_encap_len () << ", // encapsulation length\n"; - // now emit the encapsulation - return this->gen_encapsulation (); -} - -// generate encapsulation -// An encapsulation for ourselves will be necessary when we are part of some -// other IDL type and a typecode for that other type is being generated. This -// will comprise our typecode kind. IDL types with parameters will additionally -// have the encapsulation length and the entire typecode description -int -be_interface::gen_encapsulation (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - long i, arrlen; - long *arr; // an array holding string names converted to array of longs - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - // XXXASG - byte order must be based on what m/c we are generating code - - // TODO - *cs << "TAO_ENCAP_BYTE_ORDER, // byte order" << nl; - // generate repoID - *cs << (ACE_OS::strlen (this->repoID ())+1) << ", "; - (void)this->tc_name2long (this->repoID (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // repository ID = " << this->repoID () << nl; - // generate name - *cs << (ACE_OS::strlen (this->local_name ()->get_string ())+1) << ", "; - (void)this->tc_name2long(this->local_name ()->get_string (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // name = " << this->local_name () << ",\n"; - - return 0; -} - -// compute size of typecode -long -be_interface::tc_size (void) -{ - return 4 + 4 + this->tc_encap_len (); -} - -// compute the encapsulation length -long -be_interface::tc_encap_len (void) -{ - if (this->encap_len_ == -1) // not computed yet - { - long slen; - - // Macro to avoid "warning: unused parameter" type warning. - ACE_UNUSED_ARG (slen); - - this->encap_len_ = 4; // holds the byte order flag - - this->encap_len_ += this->repoID_encap_len (); // for repoID - - // do the same thing for the local name - this->encap_len_ += this->name_encap_len (); - - } - return this->encap_len_; -} - -// helper -int -be_interface::gen_operation_table (void) -{ - TAO_OutStream *ss; // output stream - TAO_NL nl; // end line - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ss = cg->server_skeletons (); - - ss->indent (); // start from current indentation level - *ss << "static const TAO_operation_db_entry " << this->flatname () << - "_operations [] = {\n"; - ss->incr_indent (0); - - if (this->traverse_inheritance_graph (be_interface::gen_optable_helper, ss) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_interface::gen_operation_table - " - "inheritance graph traversal failed\n"), -1); - } - - // generate the skeleton for the is_a method - ss->indent (); - *ss << "{\"_is_a\", &" << this->full_skel_name () << "::_is_a_skel}\n"; - this->skel_count_++; - - ss->decr_indent (); - *ss << "};" << nl << nl; - - // XXXASG - this code should be based on using different strategies for - // demux - for next release - *ss << "static const CORBA::Long _tao_" << this->flatname () - << "_optable_size = sizeof (ACE_Hash_Map_Entry) * (" << (3*this->skel_count_) - << ");" << be_nl; - *ss << "static char _tao_" << this->flatname () << "_optable_pool " - << "[_tao_" << this->flatname () << "_optable_size];" << be_nl; - *ss << "static ACE_Static_Allocator_Base _tao_" << this->flatname () - << "_allocator (_tao_" << this->flatname () << "_optable_pool, " - << "_tao_" << this->flatname () << "_optable_size);" << be_nl; - *ss << "TAO_Dynamic_Hash_OpTable tao_" << this->flatname () << "_optable " - << "(" << this->flatname () << "_operations, " << this->skel_count_ - << ", " << 2*this->skel_count_ << ", &_tao_" << this->flatname () - << "_allocator);" << be_nl; - return 0; -} - -// we separate the generation of operation table entries from the -// "gen_operation_table" method. This enables us to invoke generation of -// entries for interfaces from which we inherit without any additional -// code. The parameter "derived" is the one for which the entire operation -// table is being built. -int -be_interface::gen_optable_entries (be_interface *derived) -{ - UTL_ScopeActiveIterator *si; - AST_Decl *d; - TAO_OutStream *ss; // output stream - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ss = cg->server_skeletons (); - - if (this->nmembers () > 0) - { - // if there are elements in this scope i.e., any operations and - // attributes defined by "this" which happens to be the same as "derived" - // or one of its ancestors. - - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - // instantiate a scope iterator. - - while (!(si->is_done ())) - { - // get the next AST decl node - d = si->item (); - if (d->node_type () == AST_Decl::NT_op) - { - ss->indent (); // start from current indentation level - // we are an operation node - *ss << "{\"" << d->local_name () << "\", &" << derived->full_skel_name - () << "::" << d->local_name () << "_skel},\n"; - derived->skel_count_++; - } - else if (d->node_type () == AST_Decl::NT_attr) - { - AST_Attribute *attr; - - ss->indent (); // start from current indentation level - // generate only the "get" entry if we are readonly - *ss << "{\"_get_" << d->local_name () << "\", &" << - derived->full_skel_name () << "::_get_" << d->local_name () << - "_skel},\n"; - derived->skel_count_++; - - attr = AST_Attribute::narrow_from_decl (d); - if (!attr) - return -1; - - if (!attr->readonly ()) - { - // the set method - ss->indent (); // start from current indentation level - *ss << "{\"_set_" << d->local_name () << "\", &" << - derived->full_skel_name () << "::_set_" << d->local_name - () << "_skel},\n"; - derived->skel_count_++; - } - } - si->next (); - } // end of while - delete si; // free the iterator object - } - return 0; -} - -// template method that traverses the inheritance graph in a breadth-first -// style. The actual work on each element in the inheritance graph is carried -// out by the function passed as argument -int be_interface::traverse_inheritance_graph (be_interface::tao_code_emitter gen, - TAO_OutStream *os) -{ - long i; // loop index - ACE_Unbounded_Queue queue; // Queue data structure needed for - // breadth-first traversal of - // inheritance tree - - // For a special case of a deeply nested inheritance graph and one specific - // way of inheritance in which a node that was already visited, but is not present in - // the queue, gets inserted at the tail. This sitation arises when a node - // multiply inherits from two or more interfaces in which the first parent is - // higher up in the tree than the second parent. In addition, if the second - // parent turns out to be a child of the first . - - ACE_Unbounded_Queue del_queue; // queue of dequeued nodes to - // be searched for the above case - - // insert ourselves in the Queue - if (queue.enqueue_tail (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, "(%N:%l) be_interface::gen_operation_table - " - "error generating entries\n"), -1); - } - - // do until queue is empty - while (!queue.is_empty ()) - { - be_interface *bi; // element inside the queue - - // use breadth-first strategy i.e., first generate entries for ourselves, - // followed by nodes that we immediately inherit from, and so on. In the - // process make sure that we do not generate code for the same node more - // than once. Such a case may arise due to multiple inheritance forming a - // diamond like inheritance graph. - - // dequeue the element at the head of the queue - if (queue.dequeue_head (bi)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_interface::traverse_graph - " - "dequeue_head failed\n"), -1); - } - - // insert the dequeued element in the del_queue - if (del_queue.enqueue_tail (bi) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, "(%N:%l) be_interface::gen_operation_table - " - "error generating entries\n"), -1); - } - - // use the helper method to generate code for ourself using the - // properties of the element dequeued. For the first iteration, the - // element dequeued and "this" will be the same i.e., ourselves - if (gen (this, bi, os) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_interface::traverse_graph - " - "helper code gen failed\n"), -1); - } - - // now check if the dequeued element has any ancestors. If yes, insert - // them inside the queue making sure that there are no duplicates - for (i=0; i < bi->n_inherits (); i++) - { - be_interface *parent; // parent of the dequeued element - - // initialize an iterator to search the queue for duplicates - ACE_Unbounded_Queue_Iterator q_iter (queue); - - // retrieve the next parent from which the dequeued element inherits - parent = be_interface::narrow_from_decl (bi->inherits ()[i]); - if (!parent) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_interface::gen_server_skeletons - " - "bad inherited interface\n"), -1); - } - - // now insert this node at the tail of the queue, but make sure that - // it doesn't already exist in the queue - int found = 0; - while (!q_iter.done ()) - { - be_interface **temp; // queue element - - (void) q_iter.next (temp); - if (!ACE_OS::strcmp (parent->fullname (), (*temp)->fullname ())) - { - // we exist in this queue and cannot be inserted - found = 1; - } - if (found) - break; - (void) q_iter.advance (); - } // end of while - - // initialize an iterator to search the del_queue for duplicates - ACE_Unbounded_Queue_Iterator del_q_iter (del_queue); - - while (!found && !del_q_iter.done ()) - { - be_interface **temp; // queue element - - (void) del_q_iter.next (temp); - if (!ACE_OS::strcmp (parent->fullname (), (*temp)->fullname ())) - { - // we exist in this del_queue and cannot be inserted - found = 1; - } - if (found) - break; - (void) del_q_iter.advance (); - } // end of while - - if (!found) - { - // insert the parent in the queue - if (queue.enqueue_tail (parent) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_interface::gen_server_skeletons - " - "enqueue op failed\n"), -1); - } - } - } // end of for loop - } // end of while queue not empty - return 0; -} - -// helpers passed to the template method - -int -be_interface::gen_optable_helper (be_interface *derived, - be_interface *ancestor, - TAO_OutStream * /*os*/) -{ - // generate entries for the derived class using the properties of its - // ancestors - if (ancestor->gen_optable_entries (derived) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_interface::gen_operation_table - " - "error generating entries for inherited" - "interfaces\n"), -1); - } - return 0; -} - -int -be_interface::is_a_helper (be_interface * /*derived*/, - be_interface *bi, - TAO_OutStream *os) -{ - // emit the comparison code - os->indent (); - *os << "(!ACE_OS::strcmp ((char *)value, \"" << bi->repoID () << - "\")) ||\n"; - - return 0; -} - -int -be_interface::downcast_helper (be_interface * /* derived */, - be_interface *base, - TAO_OutStream *os) -{ - *os << "if (ACE_OS::strcmp (logical_type_id, \"" - << base->repoID () << "\") == 0)" << be_idt_nl - << "return ACE_static_cast (" - << base->full_skel_name () << "_ptr, this);" << be_uidt_nl; - return 0; -} - -int -be_interface::gen_skel_helper (be_interface *derived, - be_interface *ancestor, - TAO_OutStream *os) -{ - UTL_ScopeActiveIterator *si; - AST_Decl *d; - TAO_NL nl; // end line - - // if derived and ancestor are same, skip it - if (derived == ancestor) - return 0; - - // else generate code that does the cast to the appropriate type - - if (ancestor->nmembers () > 0) - { - // if there are elements in ancestor scope i.e., any operations and - // attributes defined by "ancestor", become methods on the derived class - // which call the corresponding method of the base class by doing the - // proper casting - - si = new UTL_ScopeActiveIterator (ancestor, UTL_Scope::IK_decls); - // instantiate a scope iterator. - - while (!(si->is_done ())) - { - // get the next AST decl node - d = si->item (); - if (d->node_type () == AST_Decl::NT_op) - { - os->indent (); // start from current indentation level - if (os->stream_type () == TAO_OutStream::TAO_SVR_HDR) - { - // generate the static method corresponding to this method - *os << "static void " << d->local_name () << - "_skel (CORBA::ServerRequest &req, void *obj," - << " void *context, CORBA::Environment &env);\n\n"; - } - else - { // generate code in the inline file - // generate the static method corresponding to this method - *os << "ACE_INLINE void " << derived->full_skel_name () << - "::" << d->local_name () << - "_skel (CORBA::ServerRequest &req, " << - "void *obj, void *context, CORBA::Environment &env)" << nl; - *os << "{\n"; - os->incr_indent (); - *os << ancestor->full_skel_name () << "_ptr impl = (" << - derived->full_skel_name () << "_ptr) obj;" << nl; - *os << ancestor->full_skel_name () << "::" << d->local_name - () << "_skel (req, (" << ancestor->full_skel_name () << - "_ptr) impl, context, env);\n"; - os->decr_indent (); - *os << "}\n"; - } - } - else if (d->node_type () == AST_Decl::NT_attr) - { - AST_Attribute *attr; - - attr = AST_Attribute::narrow_from_decl (d); - if (!attr) - return -1; - - os->indent (); // start from current indentation level - if (os->stream_type () == TAO_OutStream::TAO_SVR_HDR) - { - // generate the static method corresponding to this method - *os << "static void _get_" << d->local_name () << - "_skel (CORBA::ServerRequest &req, void *obj," - << " void *context, CORBA::Environment &env);\n\n"; - } - else - { // generate code in the inline file - // generate the static method corresponding to this method - *os << "ACE_INLINE void " << derived->full_skel_name () << - "::_get_" << d->local_name () << - "_skel (CORBA::ServerRequest &req, " << - "void *obj, void *context, CORBA::Environment &env)" << nl; - *os << "{\n"; - os->incr_indent (); - *os << ancestor->full_skel_name () << "_ptr impl = (" << - derived->full_skel_name () << "_ptr) obj;" << nl; - *os << ancestor->full_skel_name () << "::_get_" << d->local_name - () << "_skel (req, (" << ancestor->full_skel_name () << - "_ptr) impl, context, env);\n"; - os->decr_indent (); - *os << "}\n"; - } - - if (!attr->readonly ()) - { - // the set method - os->indent (); // start from current indentation level - if (os->stream_type () == TAO_OutStream::TAO_SVR_HDR) - { - // generate the static method corresponding to this method - *os << "static void _set_" << d->local_name () << - "_skel (CORBA::ServerRequest &req, void *obj," - << " void *context, CORBA::Environment &env);\n\n"; - } - else - { // generate code in the inline file - // generate the static method corresponding to this method - *os << "ACE_INLINE void " << derived->full_skel_name () - << "::_set_" << d->local_name () << - "_skel (CORBA::ServerRequest &req, " << - "void *obj, void *context, CORBA::Environment &env)" << - nl; - *os << "{\n"; - os->incr_indent (); - *os << ancestor->full_skel_name () << "_ptr impl = (" << - derived->full_skel_name () << "_ptr) obj;" << nl; - *os << ancestor->full_skel_name () << "::_get_" << - d->local_name () << "_skel (req, (" << - ancestor->full_skel_name () << - "_ptr) impl, context, env);\n"; - os->decr_indent (); - *os << "}\n"; - } - - } - } - si->next (); - } // end of while - delete si; // free the iterator object - } - return 0; -} - -const char* -be_interface::relative_coll_name (const char *collname) -{ - return be_interface::relative_name (this->full_coll_name (), - collname); -} - -// return the relative skeleton name (needed due to NT compiler insanity) -const char * -be_interface::relative_skel_name (const char *skelname) -{ - return be_interface::relative_name (this->full_skel_name (), - skelname); -} - -const char* -be_interface::relative_name (const char *localname, - const char *othername) -{ - // some compilers do not like generating a fully scoped name for a - // type that was defined in the same enclosing scope in which it was - // defined. We have to emit just the partial name, relative to our - // "localname" - - // The tricky part here is that it is not enough to check if the - // typename we are using was defined in the current scope. But we - // need to ensure that it was not defined in any of our ancestor - // scopes as well. If that is the case, then we can generate a fully - // scoped name for that type, else we use the ACE_NESTED_CLASS macro - - // thus we need some sort of relative name to be generated - - static char macro [NAMEBUFSIZE]; - // UNUSED: be_decl *def_scope = 0; // our defining scope - char // hold the fully scoped name - def_name [NAMEBUFSIZE], - use_name [NAMEBUFSIZE]; - char // these point to the curr and next component in the scope - *def_curr = def_name, - *def_next, - *use_curr = use_name, - *use_next; - - ACE_OS::memset (macro, '\0', NAMEBUFSIZE); - ACE_OS::memset (def_name, '\0', NAMEBUFSIZE); - ACE_OS::memset (use_name, '\0', NAMEBUFSIZE); - - // traverse every component of the def_scope and use_scope beginning at the - // root and proceeding towards the leaf trying to see if the components - // match. Continue until there is a match and keep accumulating the path - // traversed. This forms the first argument to the ACE_NESTED_CLASS - // macro. Whenever there is no match, the remaining components of the - // def_scope form the second argument - - ACE_OS::strcpy (def_name, localname); - ACE_OS::strcpy (use_name, othername); - - while (def_curr && use_curr) - { - // find the first occurrence of a :: and advance the next pointers accordingly - def_next = ACE_OS::strstr (def_curr, "::"); - use_next = ACE_OS::strstr (use_curr, "::"); - - if (def_next) - *def_next = 0; - - if (use_next) - *use_next = 0; - - if (!ACE_OS::strcmp (def_curr, use_curr)) - { - // they have same prefix, append to arg1 - def_curr = (def_next ? (def_next+2) : 0); // skip the :: - use_curr = (use_next ? (use_next+2) : 0); // skip the :: - } - else - { - // we had overwritten a ':' by a '\0' for string comparison. We - // revert back because we want the rest of the relative name to be - // used - if (def_next) - *def_next = ':'; - - if (use_next) - *use_next = ':'; - - // no match. This is the end of the first argument. Get out - // of the loop as no more comparisons are necessary - break; - } - } - - // start the 2nd argument of the macro - - // copy the remaining def_name (if any left) - if (def_curr) - ACE_OS::strcat (macro, def_curr); - - return macro; -} - -int -be_interface::accept (be_visitor *visitor) -{ - return visitor->visit_interface (this); -} - -int be_interface::write_as_return (TAO_OutStream *stream, - be_type *type) -{ - *stream << type->name () << "_ptr"; - return 0; -} - -// Narrowing -IMPL_NARROW_METHODS3 (be_interface, AST_Interface, be_scope, be_type) -IMPL_NARROW_FROM_DECL (be_interface) -IMPL_NARROW_FROM_SCOPE (be_interface) - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Node ; -template class ACE_Unbounded_Queue ; -template class ACE_Unbounded_Queue_Iterator ; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Node -#pragma instantiate ACE_Unbounded_Queue -#pragma instantiate ACE_Unbounded_Queue_Iterator -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/TAO_IDL/be/be_interface_fwd.cpp b/TAO/TAO_IDL/be/be_interface_fwd.cpp deleted file mode 100644 index 60bf5bf37f3..00000000000 --- a/TAO/TAO_IDL/be/be_interface_fwd.cpp +++ /dev/null @@ -1,523 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_interface.h -// -// = DESCRIPTION -// Extension of class AST_Interface_Fwd that provides additional means for C++ -// mapping of an interface. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -/* - * BE_InterfaceFwd - */ - -be_interface_fwd::be_interface_fwd (void) -{ - this->size_type (be_decl::VARIABLE); // always the case -} - -be_interface_fwd::be_interface_fwd (UTL_ScopedName *n, UTL_StrList *p) - : AST_InterfaceFwd (n, p), - AST_Decl (AST_Decl::NT_interface_fwd, n, p) -{ - this->size_type (be_decl::VARIABLE); // always the case -} - -// generate the var definition -int -be_interface_fwd::gen_var_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // names - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_var", this->local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the var definition (always in the client header). - // Depending upon the data type, there are some differences which we account - // for over here. - - ch->indent (); // start with whatever was our current indent level - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - - // default constr - *ch << namebuf << " (void); // default constructor" << nl; - *ch << namebuf << " (" << local_name () << "_ptr);" << nl; - - // copy constructor - *ch << namebuf << " (const " << namebuf << - " &); // copy constructor" << nl; - - // destructor - *ch << "~" << namebuf << " (void); // destructor" << nl; - *ch << nl; - - // assignment operator from a pointer - *ch << namebuf << " &operator= (" << local_name () << "_ptr);" << nl; - - // assignment from _var - *ch << namebuf << " &operator= (const " << namebuf << - " &);" << nl; - - // arrow operator - *ch << local_name () << "_ptr operator-> (void) const;" << nl; - - *ch << nl; - - // other extra types (cast operators, [] operator, and others) - *ch << "operator const " << local_name () << "_ptr &() const;" << nl; - *ch << "operator " << local_name () << "_ptr &();" << nl; - - *ch << "// in, inout, out, _retn " << nl; - // the return types of in, out, inout, and _retn are based on the parameter - // passing rules and the base type - *ch << local_name () << "_ptr in (void) const;" << nl; - *ch << local_name () << "_ptr &inout (void);" << nl; - *ch << local_name () << "_ptr &out (void);" << nl; - *ch << local_name () << "_ptr _retn (void);" << nl; - - // generate an additional member function that returns the underlying pointer - *ch << local_name () << "_ptr ptr (void) const;\n"; - - *ch << "\n"; - ch->decr_indent (); - - // private - *ch << "private:\n"; - ch->incr_indent (); - *ch << local_name () << "_ptr ptr_;\n"; - - ch->decr_indent (); - *ch << "};\n\n"; - - return 0; -} - -// implementation of the _var class. All of these get generated in the inline -// file -int -be_interface_fwd::gen_var_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _var names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_var", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_var", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - // generate the var implementation in the inline file - // Depending upon the data type, there are some differences which we account - // for over here. - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // default constr - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << - " (void) // default constructor" << nl; - *ci << " " << ": ptr_ (" << this->name () << "::_nil ())" << nl; - *ci << "{}\n\n"; - - // constr from a _ptr - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << name () << "_ptr p)" << nl; - *ci << " : ptr_ (p)" << nl; - *ci << "{}\n\n"; - - // the additional ptr () member function. This member function must be - // defined before the remaining member functions including the copy - // constructor because this inline function is used elsewhere. Hence to make - // inlining of this function possible, we must define it before its use. - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr " << nl; - *ci << fname << "::ptr (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // copy constructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (const " << fname << - " &p) // copy constructor" << nl; - *ci << " : ptr_ (" << name () << "::_duplicate (p.ptr ()))" << nl; - *ci << "{}\n\n"; - - // destructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::~" << lname << " (void) // destructor" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "CORBA::release (this->ptr_);\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << name () << - "_ptr p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "CORBA::release (this->ptr_);" << nl; - *ci << "this->ptr_ = p;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from _var - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (const " << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "if (this != &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "CORBA::release (this->ptr_);" << nl; - *ci << "this->ptr_ = " << name () << "::_duplicate (p.ptr ());\n"; - ci->decr_indent (); - *ci << "}" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - cast operator () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator const " << name () << - "_ptr &() const // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << name () << "_ptr &() // cast " << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // operator-> - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr " << nl; - *ci << fname << "::operator-> (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // in, inout, out, and _retn - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr" << nl; - *ci << fname << "::in (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr &" << nl; - *ci << fname << "::inout (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr &" << nl; - *ci << fname << "::out (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "CORBA::release (this->ptr_);" << nl; - *ci << "this->ptr_ = " << this->name () << "::_nil ();" << nl; - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr " << nl; - *ci << fname << "::_retn (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "// yield ownership of managed obj reference" << nl; - *ci << this->name () << "_ptr val = this->ptr_;" << nl; - *ci << "this->ptr_ = " << this->name () << "::_nil ();" << nl; - *ci << "return val;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - return 0; -} - -// generate the _out definition -int -be_interface_fwd::gen_out_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // to hold the _out name - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_out", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the out definition (always in the client header) - ch->indent (); // start with whatever was our current indent level - - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - - // No default constructor - - // constructor from a pointer - *ch << namebuf << " (" << local_name () << "_ptr &);" << nl; - // constructor from a _var & - *ch << namebuf << " (" << local_name () << "_var &);" << nl; - // constructor from a _out & - *ch << namebuf << " (" << namebuf << " &);" << nl; - // assignment operator from a _out & - *ch << namebuf << " &operator= (" << namebuf << " &);" << nl; - // assignment operator from a pointer &, cast operator, ptr fn, operator - // -> and any other extra operators - // only interface allows assignment from var & - *ch << namebuf << " &operator= (const " << local_name () << "_var &);" << nl; - *ch << namebuf << " &operator= (" << local_name () << "_ptr);" << nl; - // cast - *ch << "operator " << local_name () << "_ptr &();" << nl; - // ptr fn - *ch << local_name () << "_ptr &ptr (void);" << nl; - // operator -> - *ch << local_name () << "_ptr operator-> (void);" << nl; - - *ch << "\n"; - ch->decr_indent (); - *ch << "private:\n"; - ch->incr_indent (); - *ch << local_name () << "_ptr &ptr_;\n"; - - ch->decr_indent (); - *ch << "};\n\n"; - - return 0; -} - -int -be_interface_fwd::gen_out_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _out names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_out", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_out", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - // generate the var implementation in the inline file - // Depending upon the data type, there are some differences which we account - // for over here. - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // constr from a _ptr - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << name () << "_ptr &p)" << nl; - *ci << " : ptr_ (p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = " << this->name () << "::_nil ();\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // constructor from _var & - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << this->name () << - "_var &p) // constructor from _var" << nl; - *ci << " : ptr_ (p.out ())" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "CORBA::release (this->ptr_);" << nl; - *ci << "this->ptr_ = " << this->name () << "::_nil ();\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // copy constructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << fname << - " &p) // copy constructor" << nl; - *ci << " : ptr_ (p.ptr_)" << nl; - *ci << "{}\n\n"; - - // assignment operator from _out & - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = p.ptr_;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from _var - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (const " << this->name () << - "_var &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = " << this->name () << "::_duplicate (p.ptr ());" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from _ptr - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << this->name () << - "_ptr p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = p;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - cast operator () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << this->name () << - "_ptr &() // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // ptr function - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_ptr &" << nl; - *ci << fname << "::ptr (void) // ptr" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // operator-> - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_ptr " << nl; - *ci << fname << "::operator-> (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - return 0; -} -int -be_interface_fwd::gen_typecode (void) -{ - return 0; -} - -long -be_interface_fwd::tc_size (void) -{ - return 0; -} - -int be_interface_fwd::write_as_return (TAO_OutStream *stream, - be_type *type) -{ - *stream << type->name () << "_ptr"; - return 0; -} - -int -be_interface_fwd::accept (be_visitor *visitor) -{ - return visitor->visit_interface_fwd (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_interface_fwd, AST_InterfaceFwd, be_type) -IMPL_NARROW_FROM_DECL (be_interface_fwd) diff --git a/TAO/TAO_IDL/be/be_interpretive.cpp b/TAO/TAO_IDL/be/be_interpretive.cpp deleted file mode 100644 index 4cfa72d80b5..00000000000 --- a/TAO/TAO_IDL/be/be_interpretive.cpp +++ /dev/null @@ -1,373 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL Backend -// -// = FILENAME -// be_interpretive_visitor.cpp -// -// = DESCRIPTION -// Defines a factory that returns a specialized visitor object based on the -// code generation state. The visitors returned by this factory generate -// stubs and skeletons that use interpretive form of marshaling -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -// individual visitors included only here -#include "be_interpretive.h" - -#include "be_visitor_args.h" -#include "be_visitor_array.h" -#include "be_visitor_attribute.h" -#include "be_visitor_constant.h" -#include "be_visitor_enum.h" -#include "be_visitor_exception.h" -#include "be_visitor_field.h" -#include "be_visitor_interface.h" -#include "be_visitor_interface_fwd.h" -#include "be_visitor_module.h" -#include "be_visitor_operation.h" -#include "be_visitor_root.h" -#include "be_visitor_sequence.h" -#include "be_visitor_structure.h" -#include "be_visitor_typecode.h" -#include "be_visitor_typedef.h" -#include "be_visitor_union.h" -#include "be_visitor_union_branch.h" - -TAO_Interpretive_Visitor_Factory::TAO_Interpretive_Visitor_Factory (void) -{ -} - -// destructor -TAO_Interpretive_Visitor_Factory::~TAO_Interpretive_Visitor_Factory (void) -{ -} - -be_visitor * -TAO_Interpretive_Visitor_Factory::make_visitor (be_visitor_context *ctx) -{ - TAO_CodeGen::CG_STATE st = ctx->state (); - // create a new context so that ownership issues are not confused. This newly - // created context is a copy of what was sent by the caller. The newly - // created visitor will own this new copy. - be_visitor_context *new_ctx = new be_visitor_context (*ctx); - - switch (st) - { - case TAO_CodeGen::TAO_ROOT_CH: - return new be_visitor_root_ch (new_ctx); - case TAO_CodeGen::TAO_ROOT_CI: - return new be_visitor_root_ci (new_ctx); - case TAO_CodeGen::TAO_ROOT_CS: - return new be_visitor_root_cs (new_ctx); - case TAO_CodeGen::TAO_ROOT_SH: - return new be_visitor_root_sh (new_ctx); - case TAO_CodeGen::TAO_ROOT_SI: - return new be_visitor_root_si (new_ctx); - case TAO_CodeGen::TAO_ROOT_SS: - return new be_visitor_root_ss (new_ctx); - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - case TAO_CodeGen::TAO_ROOT_ANY_OP_CS: - return new be_visitor_root_any_op (new_ctx); - - case TAO_CodeGen::TAO_MODULE_CH: - return new be_visitor_module_ch (new_ctx); - case TAO_CodeGen::TAO_MODULE_SH: - return new be_visitor_module_sh (new_ctx); - case TAO_CodeGen::TAO_MODULE_CI: - case TAO_CodeGen::TAO_MODULE_CS: - case TAO_CodeGen::TAO_MODULE_SI: - case TAO_CodeGen::TAO_MODULE_SS: - return new be_visitor_module (new_ctx); - case TAO_CodeGen::TAO_MODULE_ANY_OP_CH: - case TAO_CodeGen::TAO_MODULE_ANY_OP_CS: - return new be_visitor_module_any_op (new_ctx); - - - case TAO_CodeGen::TAO_INTERFACE_CH: - return new be_visitor_interface_ch (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_CI: - return new be_visitor_interface_ci (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_CS: - return new be_visitor_interface_cs (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_SH: - return new be_visitor_interface_sh (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_SI: - return new be_visitor_interface_si (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_SS: - return new be_visitor_interface_ss (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SH: - return new be_visitor_interface_collocated_sh (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SS: - return new be_visitor_interface_collocated_ss (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH: - return new be_visitor_interface_any_op_ch (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS: - return new be_visitor_interface_any_op_cs (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_TIE_SH: - return new be_visitor_interface_tie_sh (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_TIE_SI: - return new be_visitor_interface_tie_si (new_ctx); - - case TAO_CodeGen::TAO_INTERFACE_FWD_CH: - return new be_visitor_interface_fwd_ch (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_FWD_CI: - return new be_visitor_interface_fwd_ci (new_ctx); - - case TAO_CodeGen::TAO_STRUCT_CH: - return new be_visitor_structure_ch (new_ctx); - case TAO_CodeGen::TAO_STRUCT_CS: - return new be_visitor_structure_cs (new_ctx); - case TAO_CodeGen::TAO_STRUCT_CI: - return new be_visitor_structure_ci (new_ctx); - case TAO_CodeGen::TAO_STRUCT_ANY_OP_CH: - return new be_visitor_structure_any_op_ch (new_ctx); - case TAO_CodeGen::TAO_STRUCT_ANY_OP_CS: - return new be_visitor_structure_any_op_cs (new_ctx); - - case TAO_CodeGen::TAO_CONSTANT_CH: - return new be_visitor_constant_ch (new_ctx); - case TAO_CodeGen::TAO_CONSTANT_CS: - return new be_visitor_constant_cs (new_ctx); - - case TAO_CodeGen::TAO_ENUM_CH: - return new be_visitor_enum_ch (new_ctx); - case TAO_CodeGen::TAO_ENUM_CS: - return new be_visitor_enum_cs (new_ctx); - case TAO_CodeGen::TAO_ENUM_ANY_OP_CH: - return new be_visitor_enum_any_op_ch (new_ctx); - case TAO_CodeGen::TAO_ENUM_ANY_OP_CS: - return new be_visitor_enum_any_op_cs (new_ctx); - - case TAO_CodeGen::TAO_FIELD_CH: - return new be_visitor_field_ch (new_ctx); - case TAO_CodeGen::TAO_FIELD_CS: - return new be_visitor_field_cs (new_ctx); - case TAO_CodeGen::TAO_FIELD_CI: - return new be_visitor_field_ci (new_ctx); - - case TAO_CodeGen::TAO_UNION_CH: - return new be_visitor_union_ch (new_ctx); - case TAO_CodeGen::TAO_UNION_CI: - return new be_visitor_union_ci (new_ctx); - case TAO_CodeGen::TAO_UNION_CS: - return new be_visitor_union_cs (new_ctx); - case TAO_CodeGen::TAO_UNION_PUBLIC_CH: - return new be_visitor_union_branch_public_ch (new_ctx); - case TAO_CodeGen::TAO_UNION_PUBLIC_CI: - return new be_visitor_union_branch_public_ci (new_ctx); - case TAO_CodeGen::TAO_UNION_PUBLIC_CS: - return new be_visitor_union_branch_public_cs (new_ctx); - case TAO_CodeGen::TAO_UNION_PUBLIC_ASSIGN_CS: - return new be_visitor_union_branch_public_assign_cs (new_ctx); - case TAO_CodeGen::TAO_UNION_PRIVATE_CH: - return new be_visitor_union_branch_private_ch (new_ctx); - case TAO_CodeGen::TAO_UNION_DISCTYPEDEFN_CH: - return new be_visitor_union_discriminant_ch (new_ctx); - case TAO_CodeGen::TAO_UNION_DISCTYPEDEFN_CI: - return new be_visitor_union_discriminant_ci (new_ctx); - case TAO_CodeGen::TAO_UNION_DISCTYPEDEFN_CS: - return new be_visitor_union_discriminant_cs (new_ctx); - case TAO_CodeGen::TAO_UNION_ANY_OP_CH: - return new be_visitor_union_any_op_ch (new_ctx); - case TAO_CodeGen::TAO_UNION_ANY_OP_CS: - return new be_visitor_union_any_op_cs (new_ctx); - - case TAO_CodeGen::TAO_SEQUENCE_CH: - return new be_visitor_sequence_ch (new_ctx); - case TAO_CodeGen::TAO_SEQUENCE_CI: - return new be_visitor_sequence_ci (new_ctx); - case TAO_CodeGen::TAO_SEQUENCE_CS: - return new be_visitor_sequence_cs (new_ctx); - case TAO_CodeGen::TAO_SEQUENCE_BASE_CH: - case TAO_CodeGen::TAO_SEQUENCE_BASE_CI: - case TAO_CodeGen::TAO_SEQUENCE_BASE_CS: - return new be_visitor_sequence_base (new_ctx); - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CH: - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CI: - return new be_visitor_sequence_elemtype (new_ctx); - case TAO_CodeGen::TAO_SEQUENCE_BUFFER_TYPE_CH: - case TAO_CodeGen::TAO_SEQUENCE_BUFFER_TYPE_CI: - case TAO_CodeGen::TAO_SEQUENCE_BUFFER_TYPE_CS: - return new be_visitor_sequence_buffer_type (new_ctx); - case TAO_CodeGen::TAO_SEQUENCE_ANY_OP_CH: - return new be_visitor_sequence_any_op_ch (new_ctx); - case TAO_CodeGen::TAO_SEQUENCE_ANY_OP_CS: - return new be_visitor_sequence_any_op_cs (new_ctx); - - case TAO_CodeGen::TAO_TYPEDEF_CH: - return new be_visitor_typedef_ch (new_ctx); - case TAO_CodeGen::TAO_TYPEDEF_CS: - return new be_visitor_typedef_cs (new_ctx); - case TAO_CodeGen::TAO_TYPEDEF_CI: - return new be_visitor_typedef_ci (new_ctx); - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CH: - return new be_visitor_typedef_any_op_ch (new_ctx); - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CS: - return new be_visitor_typedef_any_op_cs (new_ctx); - - case TAO_CodeGen::TAO_TYPECODE_DECL: - return new be_visitor_typecode_decl (new_ctx); - case TAO_CodeGen::TAO_TYPECODE_DEFN: - return new be_visitor_typecode_defn (new_ctx); - - case TAO_CodeGen::TAO_OPERATION_CH: - return new be_visitor_operation_ch (new_ctx); - case TAO_CodeGen::TAO_OPERATION_CS: - return new be_visitor_operation_cs (new_ctx); - case TAO_CodeGen::TAO_OPERATION_SH: - return new be_visitor_operation_sh (new_ctx); - case TAO_CodeGen::TAO_OPERATION_SS: - return new be_visitor_operation_ss (new_ctx); - case TAO_CodeGen::TAO_OPERATION_COLLOCATED_SH: - return new be_visitor_operation_collocated_sh (new_ctx); - case TAO_CodeGen::TAO_OPERATION_COLLOCATED_SS: - return new be_visitor_operation_collocated_ss (new_ctx); - case TAO_CodeGen::TAO_OPERATION_RETTYPE_CH: - case TAO_CodeGen::TAO_OPERATION_RETTYPE_OTHERS: - return new be_visitor_operation_rettype (new_ctx); - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_CS: - return new be_visitor_operation_rettype_vardecl_cs (new_ctx); - case TAO_CodeGen::TAO_OPERATION_RETVAL_PRE_DOCALL_CS: - return new be_visitor_operation_rettype_pre_docall_cs (new_ctx); - case TAO_CodeGen::TAO_OPERATION_RETVAL_DOCALL_CS: - return new be_visitor_operation_rettype_docall_cs (new_ctx); - case TAO_CodeGen::TAO_OPERATION_RETVAL_POST_DOCALL_CS: - return new be_visitor_operation_rettype_post_docall_cs (new_ctx); - case TAO_CodeGen::TAO_OPERATION_RETVAL_RETURN_CS: - return new be_visitor_operation_rettype_return_cs (new_ctx); - case TAO_CodeGen::TAO_OPERATION_EXCEPTLIST_CS: - return new be_visitor_operation_exceptlist_cs (new_ctx); - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_SS: - return new be_visitor_operation_rettype_vardecl_ss (new_ctx); - case TAO_CodeGen::TAO_OPERATION_RETVAL_DEMARSHAL_SS: - case TAO_CodeGen::TAO_OPERATION_RETVAL_MARSHAL_SS: - return new be_visitor_operation_rettype_marshal_ss (new_ctx); - case TAO_CodeGen::TAO_OPERATION_RETVAL_ASSIGN_SS: - return new be_visitor_operation_rettype_assign_ss (new_ctx); - case TAO_CodeGen::TAO_OPERATION_RETVAL_POST_UPCALL_SS: - return new be_visitor_operation_rettype_post_upcall_ss (new_ctx); - case TAO_CodeGen::TAO_OPERATION_ARGLIST_CH: - case TAO_CodeGen::TAO_OPERATION_ARGLIST_SH: - case TAO_CodeGen::TAO_OPERATION_ARGLIST_COLLOCATED_SH: - case TAO_CodeGen::TAO_OPERATION_ARGLIST_OTHERS: - return new be_visitor_operation_arglist (new_ctx); - case TAO_CodeGen::TAO_OPERATION_ARG_PRE_DOCALL_CS: - case TAO_CodeGen::TAO_OPERATION_ARG_DOCALL_CS: - case TAO_CodeGen::TAO_OPERATION_ARG_POST_DOCALL_CS: - case TAO_CodeGen::TAO_OPERATION_ARG_PRE_UPCALL_SS: - case TAO_CodeGen::TAO_OPERATION_ARG_UPCALL_SS: - case TAO_CodeGen::TAO_OPERATION_COLLOCATED_ARG_UPCALL_SS: - case TAO_CodeGen::TAO_OPERATION_ARG_POST_UPCALL_SS: - case TAO_CodeGen::TAO_OPERATION_ARG_DECL_SS: - case TAO_CodeGen::TAO_OPERATION_ARG_DEMARSHAL_SS: - case TAO_CodeGen::TAO_OPERATION_ARG_MARSHAL_SS: - case TAO_CodeGen::TAO_OPERATION_ARG_POST_MARSHAL_SS: - return new be_visitor_operation_argument (new_ctx); - case TAO_CodeGen::TAO_OPERATION_TIE_SH: - return new be_visitor_operation_tie_sh (new_ctx); - case TAO_CodeGen::TAO_OPERATION_TIE_SI: - return new be_visitor_operation_tie_si (new_ctx); - - case TAO_CodeGen::TAO_ARGUMENT_ARGLIST_CH: - case TAO_CodeGen::TAO_ARGUMENT_ARGLIST_OTHERS: - return new be_visitor_args_arglist (new_ctx); - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - return new be_visitor_args_pre_docall_cs (new_ctx); - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - return new be_visitor_args_docall_cs (new_ctx); - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - return new be_visitor_args_post_docall_cs (new_ctx); - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - return new be_visitor_args_vardecl_ss (new_ctx); - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - return new be_visitor_args_pre_upcall_ss (new_ctx); - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - case TAO_CodeGen::TAO_ARGUMENT_COLLOCATED_UPCALL_SS: - return new be_visitor_args_upcall_ss (new_ctx); - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - return new be_visitor_args_post_upcall_ss (new_ctx); - case TAO_CodeGen::TAO_ARGUMENT_DEMARSHAL_SS: - case TAO_CodeGen::TAO_ARGUMENT_MARSHAL_SS: - return new be_visitor_args_marshal_ss (new_ctx); - case TAO_CodeGen::TAO_ARGUMENT_POST_MARSHAL_SS: - return new be_visitor_args_post_marshal_ss (new_ctx); - - case TAO_CodeGen::TAO_ATTRIBUTE_CH: - case TAO_CodeGen::TAO_ATTRIBUTE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_SH: - case TAO_CodeGen::TAO_ATTRIBUTE_SS: - case TAO_CodeGen::TAO_ATTRIBUTE_TIE_SH: - case TAO_CodeGen::TAO_ATTRIBUTE_TIE_SI: - case TAO_CodeGen::TAO_ATTRIBUTE_COLLOCATED_SH: - case TAO_CodeGen::TAO_ATTRIBUTE_COLLOCATED_SS: - return new be_visitor_attribute (new_ctx); - - case TAO_CodeGen::TAO_EXCEPTION_CH: - return new be_visitor_exception_ch (new_ctx); - case TAO_CodeGen::TAO_EXCEPTION_CI: - return new be_visitor_exception_ci (new_ctx); - case TAO_CodeGen::TAO_EXCEPTION_CS: - return new be_visitor_exception_cs (new_ctx); - case TAO_CodeGen::TAO_EXCEPTION_CTOR_CH: - case TAO_CodeGen::TAO_EXCEPTION_CTOR_CS: - return new be_visitor_exception_ctor (new_ctx); - case TAO_CodeGen::TAO_EXCEPTION_CTOR_ASSIGN_CS: - return new be_visitor_exception_ctor_assign (new_ctx); - case TAO_CodeGen::TAO_EXCEPTION_ANY_OP_CH: - return new be_visitor_exception_any_op_ch (new_ctx); - case TAO_CodeGen::TAO_EXCEPTION_ANY_OP_CS: - return new be_visitor_exception_any_op_cs (new_ctx); - - case TAO_CodeGen::TAO_ARRAY_CH: - return new be_visitor_array_ch (new_ctx); - case TAO_CodeGen::TAO_ARRAY_CI: - return new be_visitor_array_ci (new_ctx); - case TAO_CodeGen::TAO_ARRAY_CS: - return new be_visitor_array_cs (new_ctx); - case TAO_CodeGen::TAO_ARRAY_ANY_OP_CH: - return new be_visitor_array_any_op_ch (new_ctx); - case TAO_CodeGen::TAO_ARRAY_ANY_OP_CS: - return new be_visitor_array_any_op_cs (new_ctx); - - case TAO_CodeGen::TAO_OPERATION_RESULT_SS: - case TAO_CodeGen::TAO_ARGUMENT_CH: - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - case TAO_CodeGen::TAO_ARGUMENT_SS: - case TAO_CodeGen::TAO_ARRAY_DEFN_CH: - case TAO_CodeGen::TAO_ARRAY_OTHER_CH: - case TAO_CodeGen::TAO_ARRAY_DEFN_CI: - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CH: - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CH: - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_EXCEPTION_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_RETURN_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_DOCALL_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_DOCALL_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_POST_DOCALL_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_SH: - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SH: - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_SS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_ASSIGN_SS: - case TAO_CodeGen::TAO_ATTRIBUTE_RESULT_SS: - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SS: - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_UPCALL_SS: - case TAO_CodeGen::TAO_ATTRIBUTE_UPCALL_SS: - case TAO_CodeGen::TAO_ATTRIBUTE_POST_UPCALL_SS: - default: - return new be_visitor_decl (new_ctx); - } -} diff --git a/TAO/TAO_IDL/be/be_module.cpp b/TAO/TAO_IDL/be/be_module.cpp deleted file mode 100644 index 5de398f507e..00000000000 --- a/TAO/TAO_IDL/be/be_module.cpp +++ /dev/null @@ -1,55 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_module.cpp -// -// = DESCRIPTION -// Extension of class AST_Module that provides additional means for C++ -// mapping of a module -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -/* - * BE_Module - */ -be_module::be_module (void) -{ -} - -be_module::be_module (UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl (AST_Decl::NT_module, n, p), - UTL_Scope (AST_Decl::NT_module) -{ -} - -// compute the size type of the node in question -int -be_module::compute_size_type (void) -{ - // our size does not matter - return 0; -} - -int -be_module::accept (be_visitor *visitor) -{ - return visitor->visit_module (this); -} - -// Narrowing -IMPL_NARROW_METHODS3 (be_module, AST_Module, be_scope, be_decl) -IMPL_NARROW_FROM_DECL (be_module) -IMPL_NARROW_FROM_SCOPE (be_module) diff --git a/TAO/TAO_IDL/be/be_native.cpp b/TAO/TAO_IDL/be/be_native.cpp deleted file mode 100644 index bf2af0a6eb8..00000000000 --- a/TAO/TAO_IDL/be/be_native.cpp +++ /dev/null @@ -1,68 +0,0 @@ -// $Id$ - -// Id -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_native.cpp -// -// = DESCRIPTION -// The native IDL type -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - - -// be_native: New IDL type added by the POA spec -/* - * Constructor(s) - */ -be_native::be_native (void) -{ -} - -be_native::be_native (UTL_ScopedName *n, - UTL_StrList *p) - : AST_Native (n, p), - AST_Decl (AST_Decl::NT_native, n, p) -{ -} - -int -be_native::gen_typecode (void) -{ - return 0; -} - -long -be_native::tc_size (void) -{ - return 0; -} - -int -be_native::write_as_return (TAO_OutStream *stream, - be_type *type) -{ - *stream << type->name (); - return 0; -} - -int -be_native::accept (be_visitor *visitor) -{ - return visitor->visit_native (this); -} - -// Narrowing -IMPL_NARROW_METHODS2(be_native, AST_Native, be_type) -IMPL_NARROW_FROM_DECL(be_native) diff --git a/TAO/TAO_IDL/be/be_operation.cpp b/TAO/TAO_IDL/be/be_operation.cpp deleted file mode 100644 index 5b1189f7cf4..00000000000 --- a/TAO/TAO_IDL/be/be_operation.cpp +++ /dev/null @@ -1,165 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_operation.cpp -// -// = DESCRIPTION -// Extension of class AST_Operation that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -/* - * BE_Operation - */ -be_operation::be_operation (void) - : argument_count_ (-1), - has_native_ (0) -{ -} - -be_operation::be_operation (AST_Type *rt, AST_Operation::Flags fl, - UTL_ScopedName *n, UTL_StrList *p) - : AST_Operation (rt, fl, n, p), - AST_Decl (AST_Decl::NT_op, n, p), - UTL_Scope (AST_Decl::NT_op), - argument_count_ (-1), - has_native_ (0) -{ -} - -// compute total number of members -int -be_operation::compute_argument_attr (void) -{ - if (this->argument_count_ != -1) - return 0; - - this->argument_count_ = 0; - - // if there are elements in this scope - if (this->nmembers () > 0) - { - // instantiate a scope iterator. - UTL_ScopeActiveIterator *si = - new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - - while (!(si->is_done ())) - { - // get the next AST decl node - AST_Decl *d = si->item (); - - if (!d->imported () - && d->node_type () == AST_Decl::NT_argument) - { - this->argument_count_++; - be_argument *arg = be_argument::narrow_from_decl (d); - be_type* type = - be_type::narrow_from_decl (arg->field_type ()); - - if (type->base_node_type () == AST_Decl::NT_native) - this->has_native_ = 1; - } - si->next (); - } // end of while - delete si; // free the iterator object - } - - be_type* type = be_type::narrow_from_decl (this->return_type ()); - if (type->base_node_type () == AST_Decl::NT_native) - this->has_native_ = 1; - - return 0; -} - -// return the member count -int -be_operation::argument_count (void) -{ - this->compute_argument_attr (); - - return this->argument_count_; -} - -// return if any argument or the return type is a type. -int -be_operation::has_native (void) -{ - this->compute_argument_attr (); - - return this->has_native_; -} - -be_argument * -be_operation::add_argument_to_scope (be_argument *arg) -{ - this->add_to_scope (arg); - this->add_to_referenced (arg, 0); - return arg; -} - -// compute the size type of the node in question -int -be_operation::compute_size_type (void) -{ - UTL_ScopeActiveIterator *si; - AST_Decl *d; - be_decl *bd; - - if (this->nmembers () > 0) - { - // if there are elements in this scope - - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - // instantiate a scope iterator. - - while (!(si->is_done ())) - { - // get the next AST decl node - d = si->item (); - bd = be_decl::narrow_from_decl (d); - if (bd != 0) - { - // our sizetype depends on the sizetype of our members. Although - // previous value of sizetype may get overwritten, we are - // guaranteed by the "size_type" call that once the value reached - // be_decl::VARIABLE, nothing else can overwrite it. - this->size_type (bd->size_type ()); - } - else - { - ACE_DEBUG ((LM_DEBUG, - "WARNING (%N:%l) be_operation::compute_size_type - " - "narrow_from_decl returned 0\n")); - } - si->next (); - } // end of while - delete si; // free the iterator object - } - return 0; -} - -int -be_operation::accept (be_visitor *visitor) -{ - return visitor->visit_operation (this); -} - -// Narrowing -IMPL_NARROW_METHODS3 (be_operation, AST_Operation, be_scope, be_decl) -IMPL_NARROW_FROM_DECL (be_operation) -IMPL_NARROW_FROM_SCOPE (be_operation) diff --git a/TAO/TAO_IDL/be/be_predefined_type.cpp b/TAO/TAO_IDL/be/be_predefined_type.cpp deleted file mode 100644 index 40c9d8595b7..00000000000 --- a/TAO/TAO_IDL/be/be_predefined_type.cpp +++ /dev/null @@ -1,463 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_predefined_type.cpp -// -// = DESCRIPTION -// Extension of class AST_PredefinedType that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -/* - * BE_PredefinedType - */ -be_predefined_type::be_predefined_type (void) -{ -} - -be_predefined_type::be_predefined_type (AST_PredefinedType::PredefinedType t, - UTL_ScopedName *n, UTL_StrList *p) - : AST_PredefinedType (t, n, p), - AST_Decl (AST_Decl::NT_pre_defined, n, p) -{ - // generate a new Scoped Name for us such that we belong to the CORBA - // namespace - if (this->pt () != AST_PredefinedType::PT_void) - { - - UTL_ScopedName *new_name = new UTL_ScopedName (new Identifier ("CORBA", 1, 0, - I_FALSE), - NULL); - switch (this->pt ()) - { - case AST_PredefinedType::PT_long: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("Long", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_ulong: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("ULong", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_short: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("Short", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_ushort: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("UShort", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_float: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("Float", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_double: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("Double", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_char: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("Char", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_octet: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("Octet", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_wchar: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("WChar", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_boolean: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("Boolean", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_longlong: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("LongLong", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_ulonglong: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("ULongLong", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_longdouble: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("LongDouble", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_any: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("Any", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_pseudo: - { - new_name->nconc (new UTL_ScopedName (new Identifier - (n->last_component - ()->get_string (), 1, 0, - I_FALSE), NULL)); - } - break; - default: - { - new_name->nconc (new UTL_ScopedName (this->local_name (), NULL)); - } - } - this->set_name (new_name); - } - - // computes the repoID - compute_repoID (); - - // computes the fully scoped name - compute_fullname (); - - // computes the fully scoped typecode name - compute_tc_name (); - - // compute the flattened fully scoped name - compute_flatname (); -} - -// overriden method -void -be_predefined_type::compute_tc_name (void) -{ - // start with the head as the CORBA namespace - this->tc_name_ = new UTL_ScopedName (new Identifier ("CORBA", 1, 0, I_FALSE), - NULL); - - switch (this->pt ()) - { - case AST_PredefinedType::PT_void: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_void", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_long: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_long", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_longlong: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_longlong", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_ulong: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_ulong", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_ulonglong: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_ulonglong", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_short: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_short", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_ushort: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_ushort", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_float: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_float", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_double: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_double", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_longdouble: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_longdouble", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_char: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_char", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_wchar: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_wchar", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_octet: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_octet", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_boolean: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_boolean", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_any: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_any", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_pseudo: - { - char tcname [100]; - ACE_OS::sprintf (tcname, "_tc_%s", - this->name ()->last_component ()->get_string ()); - this->tc_name_->nconc (new UTL_ScopedName (new Identifier - (ACE_OS::strdup (tcname), - 1, 0, - I_FALSE), NULL)); - } - break; - default: - ACE_ERROR ((LM_WARNING, "Unknown or invalid predefined type")); - break; - } -} - -int -be_predefined_type::gen_typecode (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - // Macro to avoid "warning: unused parameter" type warning. - ACE_UNUSED_ARG (nl); - - cs = cg->client_stubs (); - cs->indent (); // start from the current indentation level - - switch (this->pt ()) - { - case AST_PredefinedType::PT_void: - *cs << "CORBA::tk_void,\n\n"; - break; - case AST_PredefinedType::PT_short: - *cs << "CORBA::tk_short,\n\n"; - break; - case AST_PredefinedType::PT_ushort: - *cs << "CORBA::tk_ushort,\n\n"; - break; - case AST_PredefinedType::PT_long: - *cs << "CORBA::tk_long,\n\n"; - break; - case AST_PredefinedType::PT_ulong: - *cs << "CORBA::tk_ulong,\n\n"; - break; - case AST_PredefinedType::PT_longlong: - *cs << "CORBA::tk_longlong,\n\n"; - break; - case AST_PredefinedType::PT_ulonglong: - *cs << "CORBA::tk_ulonglong,\n\n"; - break; - case AST_PredefinedType::PT_float: - *cs << "CORBA::tk_float,\n\n"; - break; - case AST_PredefinedType::PT_double: - *cs << "CORBA::tk_double,\n\n"; - break; - case AST_PredefinedType::PT_longdouble: - *cs << "CORBA::tk_longdouble,\n\n"; - break; - case AST_PredefinedType::PT_boolean: - *cs << "CORBA::tk_boolean,\n\n"; - break; - case AST_PredefinedType::PT_char: - *cs << "CORBA::tk_char,\n\n"; - break; - case AST_PredefinedType::PT_octet: - *cs << "CORBA::tk_octet,\n\n"; - break; - case AST_PredefinedType::PT_any: - *cs << "CORBA::tk_any,\n\n"; - break; - case AST_PredefinedType::PT_wchar: - *cs << "CORBA::tk_wchar,\n\n"; - break; - case AST_PredefinedType::PT_pseudo: - { - if (!ACE_OS::strcmp (this->local_name ()->get_string (), "TypeCode")) - *cs << "CORBA::tk_TypeCode,\n\n"; - else - if (!ACE_OS::strcmp (this->local_name ()->get_string (), "Object")) - { - *cs << "CORBA::tk_objref,\n"; - *cs << this->tc_encap_len () << ", // encapsulation length\n"; - // now emit the encapsulation - this->gen_encapsulation (); - } - } - break; - } - return 0; -} - -long -be_predefined_type::tc_size (void) -{ - if (ACE_OS::strcmp (this->local_name ()->get_string (), "Object")) // not same - return 4; // for the enum value - else - return 4 + 4 + this->tc_encap_len (); -} - -long -be_predefined_type::tc_encap_len (void) -{ - if ((this->encap_len_ == -1) // not computed yet - && (!ACE_OS::strcmp (this->local_name ()->get_string (), "Object"))) - // is a CORBA::Object - { - this->encap_len_ = 4; // holds the byte order flag - - this->encap_len_ += this->repoID_encap_len (); // for repoID - - // do the same thing for the local name - this->encap_len_ += this->name_encap_len (); - } - - return this->encap_len_; -} - -int -be_predefined_type::gen_encapsulation (void) -{ - if ((this->pt () == AST_PredefinedType::PT_any) - || (this->pt () == AST_PredefinedType::PT_pseudo)) - { - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - long i, arrlen; - long *arr; // an array holding string names converted to array of longs - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - // XXXASG - byte order must be based on what m/c we are generating code - - // TODO - *cs << "TAO_ENCAP_BYTE_ORDER, // byte order" << nl; - // generate repoID - *cs << (ACE_OS::strlen (this->repoID ())+1) << ", "; - (void)this->tc_name2long (this->repoID (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // repository ID = " << this->repoID () << nl; - // generate name - *cs << (ACE_OS::strlen (this->local_name ()->get_string ())+1) << ", "; - (void)this->tc_name2long(this->local_name ()->get_string (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // name = " << this->local_name () << ",\n"; - } - return 0; -} - -// compute the size type of the node in question -int -be_predefined_type::compute_size_type (void) -{ - switch (this->pt ()) - { - case AST_PredefinedType::PT_any: - case AST_PredefinedType::PT_pseudo: - // we are variable length type - this->size_type (be_decl::VARIABLE); - break; - default: - this->size_type (be_decl::FIXED); - } - return 0; -} - -int be_predefined_type::write_as_return (TAO_OutStream *stream, - be_type *type) -{ - *stream << type->name (); - // check if the type is an any - if (this->pt () == AST_PredefinedType::PT_any) - { - // if it is an any, return a pointer to it - *stream << " *"; - } - else if (this->pt () == AST_PredefinedType::PT_pseudo) - { - // pseudo object, return a pointer - *stream << "_ptr"; - } - return 0; -} - -int -be_predefined_type::accept (be_visitor *visitor) -{ - return visitor->visit_predefined_type (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_predefined_type, AST_PredefinedType, be_type) -IMPL_NARROW_FROM_DECL (be_predefined_type) diff --git a/TAO/TAO_IDL/be/be_produce.cpp b/TAO/TAO_IDL/be/be_produce.cpp deleted file mode 100644 index 1e7a2844c43..00000000000 --- a/TAO/TAO_IDL/be/be_produce.cpp +++ /dev/null @@ -1,215 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// BE_produce.cc - Produce the work of the BE - does nothing in the -// dummy BE - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_interpretive.h" - -/* - * Do the work of this BE. This is the starting point for code generation. - */ - -void -BE_produce() -{ - be_root *root; // root of the AST made up of BE nodes - be_visitor *visitor; // visitor for root - be_visitor_context ctx; // context information for the visitor root - - // XXXASG - Here is where we will have a choice of what to initialize i.e., - // whether we want a visitor generating "interpetive" or "compiled" form of - // stubs/skeletons - // TODO - to do this elegantly. - // right now we just force it to be the interpretive one. - tao_cg->visitor_factory (new TAO_Interpretive_Visitor_Factory); - - // get the root node and narro wit down to be the back-end root node - AST_Decl *d = idl_global->root (); - root = be_root::narrow_from_decl (d); - if (!root) - { - ACE_ERROR ((LM_ERROR, - "(%N:%l) be_produce - " - "No Root\n")); - BE_abort(); - } - - // Code generation involves six steps because of the six files that we - // generate. - - // (1) generate client header - // instantiate a visitor context - ctx.state (TAO_CodeGen::TAO_ROOT_CH); // set the codegen state - // get a root visitor - visitor = tao_cg->make_visitor (&ctx); - // generate code for the client header - if (root->accept (visitor) == -1) - { - ACE_ERROR ((LM_ERROR, - "(%N:%l) be_produce - " - "client header for Root failed\n")); - BE_abort(); - } - // it is our responsibility to free up the visitor - delete visitor; - - // (2) generate client inline - // set the context information - ctx.reset (); - ctx.state (TAO_CodeGen::TAO_ROOT_CI); - // create a visitor - visitor = tao_cg->make_visitor (&ctx); - // generate code for the client inline file - if (root->accept (visitor) == -1) - { - ACE_ERROR ((LM_ERROR, - "(%N:%l) be_produce - " - "client inline for Root failed\n")); - BE_abort(); - } - // it is our responsibility to free up the visitor - delete visitor; - - - // (3) generate client stubs - ctx.reset (); - ctx.state (TAO_CodeGen::TAO_ROOT_CS); - // create a visitor - visitor = tao_cg->make_visitor (&ctx); - // generate code for the client stubs - if (root->accept (visitor) == -1) - { - ACE_ERROR ((LM_ERROR, - "(%N:%l) be_produce - " - "client stubs for Root failed\n")); - BE_abort(); - } - // it is our responsibility to free up the visitor - delete visitor; - - // (4) generate server header - ctx.reset (); - ctx.state (TAO_CodeGen::TAO_ROOT_SH); - // create a visitor - visitor = tao_cg->make_visitor (&ctx); - // generate code for the server header file - if (root->accept (visitor) == -1) - { - ACE_ERROR ((LM_ERROR, - "(%N:%l) be_produce - " - "server header for Root failed\n")); - BE_abort(); - } - // it is our responsibility to free up the visitor - delete visitor; - - // (5) generate server inline - ctx.reset (); - ctx.state (TAO_CodeGen::TAO_ROOT_SI); - // create a visitor - visitor = tao_cg->make_visitor (&ctx); - // generate code for the server inline file - if (root->accept (visitor) == -1) - { - ACE_ERROR ((LM_ERROR, - "(%N:%l) be_produce - " - "server inline for Root failed\n")); - BE_abort(); - } - // it is our responsibility to free up the visitor - delete visitor; - - // (6) generate server skeletons - ctx.reset (); - ctx.state (TAO_CodeGen::TAO_ROOT_SS); - // create a visitor - visitor = tao_cg->make_visitor (&ctx); - // generate code for the server skeletons - if (root->accept (visitor) == -1) - { - ACE_ERROR ((LM_ERROR, - "(%N:%l) be_produce - " - "server skeletons for Root failed\n")); - BE_abort(); - } - // it is our responsibility to free up the visitor - delete visitor; -} - -/* - * Abort this run of the BE - */ -void -BE_abort() -{ - cerr << "Fatal Error" << endl; - exit (1); -} diff --git a/TAO/TAO_IDL/be/be_root.cpp b/TAO/TAO_IDL/be/be_root.cpp deleted file mode 100644 index 0028f985067..00000000000 --- a/TAO/TAO_IDL/be/be_root.cpp +++ /dev/null @@ -1,94 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_root.cpp -// -// = DESCRIPTION -// Extension of class AST_Root that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -// Default Constructor -be_root::be_root (void) -{ -} - -// Constructor used to build the root of the abstract syntax tree (AST) -be_root::be_root (UTL_ScopedName *n, UTL_StrList *p) - : AST_Root (n, p), - AST_Decl (AST_Decl::NT_root, n, p), - UTL_Scope (AST_Decl::NT_root) - -{ -} - -// We had to provide these since the AST_Root::fe_* method was setting the -// names of these three to "local type" - -/* - * Add this AST_Sequence to the locally defined types in this scope - */ -AST_Sequence * -be_root::fe_add_sequence (AST_Sequence *t) -{ - if (t == NULL) - return NULL; - - add_to_local_types(t); - return t; -} - -/* - * Add this AST_String to the locally defined types in this scope - */ -AST_String * -be_root::fe_add_string (AST_String *t) -{ - if (t == NULL) - return NULL; - - add_to_local_types (t); - - return t; -} - -/* - * Add this AST_Array to the locally defined types in this scope - */ -AST_Array * -be_root::fe_add_array (AST_Array *t) -{ - if (t == NULL) - return NULL; - - add_to_local_types (t); - - return t; -} - -int -be_root::accept (be_visitor *visitor) -{ - return visitor->visit_root (this); -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS3 (be_root, AST_Root, be_scope, be_decl) -IMPL_NARROW_FROM_DECL (be_root) -IMPL_NARROW_FROM_SCOPE (be_root) diff --git a/TAO/TAO_IDL/be/be_scope.cpp b/TAO/TAO_IDL/be/be_scope.cpp deleted file mode 100644 index 403431f1609..00000000000 --- a/TAO/TAO_IDL/be/be_scope.cpp +++ /dev/null @@ -1,146 +0,0 @@ -// -// $Id$ -// -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -// Default Constructor -be_scope::be_scope (void) - : comma_ (0) -{ -} - -// Constructor -be_scope::be_scope (AST_Decl::NodeType type) - : UTL_Scope (type), - comma_ (0) -{ -} - -be_scope::~be_scope (void) -{ -} - -// Code generation methods -void -be_scope::comma (unsigned short comma) -{ - this->comma_ = comma; -} - -int -be_scope::comma (void) const -{ - return this->comma_; -} - -int -be_scope::gen_encapsulation (void) -{ - UTL_ScopeActiveIterator *si; - AST_Decl *d; - be_decl *bd; - - // if there are elements in this scope - if (this->nmembers () > 0) - { - // instantiate a scope iterator. - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - - while (!(si->is_done ())) - { - // get the next AST decl node - d = si->item (); - bd = be_decl::narrow_from_decl (d); - if (bd->gen_encapsulation () == -1) - { - // failure - return -1; - } - si->next (); - } // end of while - delete si; // free the iterator object - } - return 0; -} - -long -be_scope::tc_encap_len (void) -{ - UTL_ScopeActiveIterator *si; - AST_Decl *d; - be_decl *bd; - long encap_len = 0; - - if (this->nmembers () > 0) - { - // if there are elements in this scope - - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - // instantiate a scope iterator. - - while (!(si->is_done ())) - { - // get the next AST decl node - d = si->item (); - - // NOTE: Our assumptin here is that whatever scope we are in, the - // node type that shows up here *MUST* be valid according to the - // IDL grammar. We do not check for this since the front end must - // have taken care of weeding out such errors - - bd = be_decl::narrow_from_decl (d); - if (bd != 0) - { - encap_len += bd->tc_encap_len (); - } - else - { - ACE_DEBUG ((LM_DEBUG, - "WARNING (%N:%l): be_scope::tc_encap_len - " - "narrow_from_decl returned 0\n")); - } - si->next (); - } // end of while - delete si; // free the iterator object - } - return encap_len; -} - -// return the scope created by this node (if one exists, else NULL) -be_decl * -be_scope::decl (void) -{ - switch (this->scope_node_type()) - { - case AST_Decl::NT_interface: - return be_interface::narrow_from_scope (this); - case AST_Decl::NT_module: - return be_module::narrow_from_scope (this); - case AST_Decl::NT_root: - return be_root::narrow_from_scope (this); - case AST_Decl::NT_except: - return be_exception::narrow_from_scope (this); - case AST_Decl::NT_union: - return be_union::narrow_from_scope (this); - case AST_Decl::NT_struct: - return be_structure::narrow_from_scope (this); - case AST_Decl::NT_enum: - return be_enum::narrow_from_scope (this); - case AST_Decl::NT_op: - return be_operation::narrow_from_scope (this); - default: - return (be_decl *)0; - } -} - -int -be_scope::accept (be_visitor *visitor) -{ - return visitor->visit_scope (this); -} - -// narrowing methods -IMPL_NARROW_METHODS1 (be_scope, UTL_Scope) -IMPL_NARROW_FROM_SCOPE (be_scope) diff --git a/TAO/TAO_IDL/be/be_sequence.cpp b/TAO/TAO_IDL/be/be_sequence.cpp deleted file mode 100644 index 318cc8f4968..00000000000 --- a/TAO/TAO_IDL/be/be_sequence.cpp +++ /dev/null @@ -1,326 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_sequence.cpp -// -// = DESCRIPTION -// Extension of class AST_Sequence that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" -#include "be_visitor_sequence.h" - -/* - * BE_Sequence - */ -be_sequence::be_sequence (void) - : mt_ (be_sequence::MNG_UNKNOWN) -{ - this->size_type (be_decl::VARIABLE); // always the case -} - -be_sequence::be_sequence (AST_Expression *v, AST_Type *t) - : AST_Sequence (v, t), - AST_Decl (AST_Decl::NT_sequence, - NULL, - NULL), - mt_ (be_sequence::MNG_UNKNOWN) -{ - // check if we are bounded or unbounded. An expression value of 0 means - // unbounded - if (v->ev ()->u.ulval == 0) - { - this->unbounded_ = I_TRUE; - } - else - { - this->unbounded_ = I_FALSE; - } - - this->size_type (be_decl::VARIABLE); // a sequence data type is always - // VARIABLE -} - -idl_bool -be_sequence::unbounded (void) const -{ - return this->unbounded_; -} - -// helper to create_name -char * -be_sequence::gen_name (void) -{ - char namebuf [NAMEBUFSIZE]; - be_type *bt; // base type; - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); // reset the buffer - // retrieve the base type - bt = be_type::narrow_from_decl (this->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_sequence::" - "gen_name - " - "bad base type\n"), - 0); - } - if (bt->node_type () == AST_Decl::NT_sequence) - { - // our base type is an anonymous sequence - be_sequence *seq; - seq = be_sequence::narrow_from_decl (bt); - if (!seq) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_sequence::" - "gen_name - " - "error converting base type to sequence\n"), - 0); - } - seq->set_defined_in (this); // set ourselves as its parent - this->fe_add_sequence (seq); // add the child to our scope - ACE_OS::sprintf (namebuf, "_tao_seq_%s", seq->gen_name ()); - } - else - { - ACE_OS::sprintf (namebuf, "_tao_seq_%s", bt->local_name ()->get_string ()); - } - // append the size (if any) - if (!this->unbounded_) - { - ACE_OS::sprintf (namebuf, "%s_%d", namebuf, this->max_size ()->ev - ()->u.ulval); - } - return ACE_OS::strdup (namebuf); -} - -// create a name for ourselves -int -be_sequence::create_name (be_typedef *node) -{ - static char namebuf [NAMEBUFSIZE]; - UTL_ScopedName *n = NULL; - be_decl *scope; // scope in which we are defined - - // if there is a typedef node, we use its name as our name - if (node) - { - n = (UTL_ScopedName *)node->name ()->copy (); - this->set_name (n); // set our name - } - else - { - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); // reset the buffer - ACE_OS::strcpy (namebuf, this->gen_name ()); // generate a local name - - // now see if we have a fully scoped name and if so, generate one - scope = be_scope::narrow_from_scope (this->defined_in ())->decl (); - if (scope) - { - // make a copy of the enclosing scope's name - n = (UTL_ScopedName *)scope->name ()->copy () ; - - // add our local name as the last component - n->nconc (new UTL_ScopedName (new Identifier (ACE_OS::strdup - (namebuf), 1, - 0, I_FALSE), - NULL)); - // set the fully scoped name - this->set_name (n); - } - else - { - // We better be not here because we must be inside some scope, - // atleast the ROOT scope. - return -1; - } - } - return 0; -} - -// Does this sequence have a managed type sequence element? -be_sequence::MANAGED_TYPE -be_sequence::managed_type (void) -{ - if (this->mt_ == be_sequence::MNG_UNKNOWN) // not calculated yet - { - be_type *bt, *prim_type; // base types - - bt = be_type::narrow_from_decl (this->base_type ()); - - if (bt->node_type () == AST_Decl::NT_typedef) - { - // get the primitive base type of this typedef node - be_typedef *t = be_typedef::narrow_from_decl (bt); - prim_type = t->primitive_base_type (); - } - else - prim_type = bt; - - // determine if we need a managed type and which one - switch (prim_type->node_type ()) - { - case AST_Decl::NT_interface: - case AST_Decl::NT_interface_fwd: - this->mt_ = be_sequence::MNG_OBJREF; - break; - case AST_Decl::NT_string: - this->mt_ = be_sequence::MNG_STRING; - break; - case AST_Decl::NT_pre_defined: - { - be_predefined_type *bpd = be_predefined_type::narrow_from_decl - (prim_type); - if (bpd->pt () == AST_PredefinedType::PT_pseudo) - { - this->mt_ = be_sequence::MNG_OBJREF; - } - else - { - this->mt_ = be_sequence::MNG_NONE; - } - } - break; - default: - this->mt_ = be_sequence::MNG_NONE; - } // end of switch - } - return this->mt_; -} - -// generate typecode. -// Typecode for sequences comprises the enumerated value followed by the -// encapsulation of the parameters - -int -be_sequence::gen_typecode (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "CORBA::tk_sequence, // typecode kind" << nl; - *cs << this->tc_encap_len () << ", // encapsulation length\n"; - // now emit the encapsulation - return this->gen_encapsulation (); -} - -// generate encapsulation -// An encapsulation for ourselves will be necessary when we are part of some -// other IDL type and a typecode for that other type is being generated. This -// will comprise our typecode kind. IDL types with parameters will additionally -// have the encapsulation length and the entire typecode description - -int -be_sequence::gen_encapsulation (void) -{ - TAO_OutStream *os; // output stream - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - be_type *bt; // base type - - os = cg->client_stubs (); - os->incr_indent (); - - *os << "TAO_ENCAP_BYTE_ORDER, // byte order\n"; - - // emit typecode of element type - bt = be_type::narrow_from_decl (this->base_type ()); - if (!bt || (bt->gen_typecode () == -1)) - { - ACE_ERROR ((LM_ERROR, "be_sequence::gen_typecode - bad base type\n")); - return -1; - } - - // emit the length - os->decr_indent (); - *os << this->max_size () << ",\n"; - return 0; -} - -// compute typecode size -long -be_sequence::tc_size (void) -{ - // 4 bytes for enumeration, 4 bytes for storing encap length val, followed by the - // actual encapsulation length - return 4 + 4 + this->tc_encap_len (); -} - -long -be_sequence::tc_encap_len (void) -{ - if (this->encap_len_ == -1) // not computed yet - { - be_type *bt; // base type - - this->encap_len_ = 4; // holds the byte order flag - // add the encapsulation length of our base type - bt = be_type::narrow_from_decl (this->base_type ()); - if (!bt) - { - ACE_ERROR ((LM_ERROR, - "be_sequence::tc_encap_len - bad base type\n")); - return 0; - } - this->encap_len_ += bt->tc_size (); - this->encap_len_ += 4; // to hold the max size - - } - return this->encap_len_; -} - -/* - * Add this be_sequence to the locally defined types in this scope - */ -be_sequence * -be_sequence::fe_add_sequence (be_sequence *t) -{ - if (t == NULL) - return NULL; - - this->add_to_local_types(t); - return t; -} - -// overridden method -be_decl * -be_sequence::decl (void) -{ - return this; -} - -int be_sequence::write_as_return (TAO_OutStream *stream, - be_type *type) -{ - *stream << type->name () << " *"; - return 0; -} - -int -be_sequence::accept (be_visitor *visitor) -{ - return visitor->visit_sequence (this); -} - -// Narrowing -IMPL_NARROW_METHODS3 (be_sequence, AST_Sequence, be_scope, be_type) -IMPL_NARROW_FROM_DECL (be_sequence) diff --git a/TAO/TAO_IDL/be/be_state.cpp b/TAO/TAO_IDL/be/be_state.cpp deleted file mode 100644 index a3f3c32389f..00000000000 --- a/TAO/TAO_IDL/be/be_state.cpp +++ /dev/null @@ -1,67 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_state.cpp -// -// = DESCRIPTION -// state based code generation. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -// constructor -be_state::be_state (void) -{ -} - -// destructor -be_state::~be_state (void) -{ -} - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Singleton; -template class ACE_Singleton; -template class ACE_Singleton; -template class ACE_Singleton; -template class ACE_Singleton; -template class ACE_Singleton; -template class ACE_Singleton; -template class ACE_Singleton; -template class ACE_Singleton; -template class ACE_Singleton; -template class ACE_Singleton; -template class ACE_Singleton; -template class ACE_Singleton; -template class ACE_Singleton; -template class ACE_Singleton; -template class ACE_Singleton; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Singleton -#pragma instantiate ACE_Singleton -#pragma instantiate ACE_Singleton -#pragma instantiate ACE_Singleton -#pragma instantiate ACE_Singleton -#pragma instantiate ACE_Singleton -#pragma instantiate ACE_Singleton -#pragma instantiate ACE_Singleton -#pragma instantiate ACE_Singleton -#pragma instantiate ACE_Singleton -#pragma instantiate ACE_Singleton -#pragma instantiate ACE_Singleton -#pragma instantiate ACE_Singleton -#pragma instantiate ACE_Singleton -#pragma instantiate ACE_Singleton -#pragma instantiate ACE_Singleton -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/TAO_IDL/be/be_state_argument.cpp b/TAO/TAO_IDL/be/be_state_argument.cpp deleted file mode 100644 index e9772e552a5..00000000000 --- a/TAO/TAO_IDL/be/be_state_argument.cpp +++ /dev/null @@ -1,2309 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_state_argument.cpp -// -// = DESCRIPTION -// state based code generation for arguments. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -// return type for argument -be_state_argument::be_state_argument (void) -{ -} - -// generate code for the mapping of the argument. -// The different cases below have the following meaning: -// TAO_ARGUMENT_CH -// TAO_ARGUMENT_CS -// TAO_ARGUMENT_SH -- all three generate the arguments in the signature of the -// method . The CH case uses the ACE_NESTED_CLASS macro to -// keep the MSVC++ compiler happy -// The rest of the enumerated constants are self-explanatory -// -// There are 3 levels of nested switch statements -// Level (1): The "type" of each argument, e.g., predefined, structure, ... -// Level (2): The direction - in, inout, out -// Level (3): The current state we are in - -int -be_state_argument::gen_code (be_type *bt, be_decl *d, be_type *type) -{ - TAO_OutStream *os = 0; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - be_argument *arg; // argument node - be_interface *bif; // interface inside which the operation that uses this - // argument was defined - - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_CH: - os = cg->client_header (); - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - os = cg->client_stubs (); - break; - case TAO_CodeGen::TAO_ARGUMENT_SH: - os = cg->server_header (); - break; - case TAO_CodeGen::TAO_ARGUMENT_SS: - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - os = cg->server_skeletons (); - break; - } - - // retrieve the argument node - arg = be_argument::narrow_from_decl (d); - if (!arg) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument.cpp - " - "Bad argument\n"), - -1); - } - - // get the scope of the arg which is the operation. Its scope is the - // interface node. We need this interface node for generating the - // ACE_NESTED_CLASS macro - bif = be_interface::narrow_from_scope (ScopeAsDecl (arg->defined_in - ())->defined_in ()); - if (!bif) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument.cpp - " - "Bad interface\n"), - -1); - } - - if (!type) // not a recursive call - type = bt; - else // recursively called thru a typedef. "type" will have the most primitive - // base class of the typedef - ACE_ASSERT (bt->node_type () == AST_Decl::NT_typedef); - - // find the direction of the argument. Depending on the direction and the - // type, generate the mapping - switch (type->node_type ()) // LEVEL (1) switch on node type of the "type" - { - case AST_Decl::NT_interface: // type is an obj reference - case AST_Decl::NT_interface_fwd: // type is an obj reference - { - switch (arg->direction ()) - { - case AST_Argument::dir_IN: - // what state are we in - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // assign to a CORBA::Object_ptr - *os << "CORBA::Object_ptr _tao_base_" << arg->local_name () - << " = " << arg->local_name () << "; // cast it" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - // pass the cast value - *os << ", &_tao_base_" << arg->local_name (); - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // nothing for in parameters - } - break; - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { - // declare a variable - *os << bt->name () << "_ptr "; - *os << arg->local_name () << ";" << nl; - // we also declare a corresponding CORBA::Object_ptr to be - // passed to the decoder - *os << "CORBA::Object_ptr _tao_base_" << arg->local_name () - << ";" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", &_tao_base_" << arg->local_name () << - "); // ORB does not own" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << arg->local_name () << - "\", CORBA::ARG_IN, _tao_environment)->value ()->" << - "replace (" << bt->tc_name () - << ", &_tao_base_" << arg->local_name () << ", 0, " << - "_tao_environment); // ORB does not own" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // convert from the CORBA::Object_ptr to the interface type - // using a _narrow - *os << arg->local_name () << " = " << bt->name () << - "::_narrow (_tao_base_" << arg->local_name () << ", " << - "_tao_environment);" << nl; - *os << "if (_tao_environment.exception ()) return;" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { - // we must release the in parameter - *os << "CORBA::release (" << arg->local_name () << ");" << nl; - *os << "CORBA::release (_tao_base_" << arg->local_name () << - ");" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { - // to keep the MSVC++ compiler happy - *os << bt->nested_type_name (bif, "_ptr") << " " << - arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { - *os << bt->name () << "_ptr " << arg->local_name () << ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // switch state - break; - case AST_Argument::dir_INOUT: // inout - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // assign to a CORBA::Object_ptr - *os << "CORBA::Object_ptr _tao_base_" << arg->local_name () - << " = " << arg->local_name () << ";" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - *os << ", &_tao_base_" << arg->local_name (); - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // reassign to the inout parameter doing a _narrow - *os << arg->local_name () << " = " << bt->name () << - "::_narrow (_tao_base_" << arg->local_name () << ", env);" - << nl; - *os << "CORBA::release (_tao_base_" << arg->local_name () << - ");" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { - // declare a variable - *os << bt->name () << "_ptr "; - *os << arg->local_name () << ";" << nl; - // we also declare a corresponding CORBA::Object_ptr to be - // passed to the decoder - *os << "CORBA::Object_ptr *_tao_base_" << arg->local_name () - << " = new CORBA::Object_ptr;" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", _tao_base_" << arg->local_name () << - ", 1); // ORB owns" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << arg->local_name () << - "\", CORBA::ARG_INOUT, _tao_environment)->value ()->" << - "replace (" << bt->tc_name () - << ", _tao_base_" << arg->local_name () << ", 1, " << - "_tao_environment); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // convert from the CORBA::Object_ptr to the interface type - // using a _narrow - *os << arg->local_name () << " = " << bt->name () << - "::_narrow (*_tao_base_" << arg->local_name () << ", " << - "_tao_environment);" << nl; - *os << "if (_tao_environment.exception ()) return;" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { - // assign modified interface obj ref to object_ptr - *os << "CORBA::release (*_tao_base_" << arg->local_name () << - "); // first release old obj" << nl; - *os << "*_tao_base_" << arg->local_name () << " = " << - arg->local_name () << ";" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { - // to keep the MSVC++ compiler happy - *os << bt->nested_type_name (bif, "_ptr") << " &" << - arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { - *os << bt->name () << "_ptr &" << arg->local_name () << ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end switch state - break; - case AST_Argument::dir_OUT: - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // assign to a CORBA::Object_ptr - *os << "CORBA::Object_ptr _tao_base_" << arg->local_name () - << ";" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - *os << ", &_tao_base_" << arg->local_name (); - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // reassign to the inout parameter doing a _narrow - *os << arg->local_name () << " = " << bt->name () << - "::_narrow (_tao_base_" << arg->local_name () << ", env);" - << nl; - *os << "// free the Object_ptr" << nl; - *os << "CORBA::release (_tao_base_" << arg->local_name () << - ");" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { - // declare a variable - *os << bt->name () << "_ptr " << arg->local_name () << ";" << - nl; - *os << bt->name () << "_out " << arg->local_name () << - "_out (" << arg->local_name () << ");" << nl; - // we also declare a corresponding CORBA::Object_ptr to be - // passed to the decoder - *os << "CORBA::Object_ptr *_tao_base_" << arg->local_name () - << " = new CORBA::Object_ptr;" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", _tao_base_" << arg->local_name () << - ", 1); // ORB owns" << nl; -#endif - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - " = nvlist->add_item (\"" << arg->local_name () << - "\", CORBA::ARG_OUT, _tao_environment);" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { - // out parameter is cast to Object_ptr - *os << "*_tao_base_" << arg->local_name () << " = " << - arg->local_name () << "_out.ptr ();" << nl; - *os << "nv_" << arg->local_name () << "->value ()->" << - "replace (" << bt->tc_name () - << ", _tao_base_" << arg->local_name () << ", 1, " << - "_tao_environment); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << arg->local_name () << "_out, "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { - // to keep the MSVC++ compiler happy - *os << bt->nested_type_name (bif, "_out") << " " << - arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { - *os << bt->name () << "_out " << arg->local_name () << ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end switch state - break; - } // end switch direction - } // end of case interface/interface_fwd - break; - case AST_Decl::NT_pre_defined: // type is predefined type - { - be_predefined_type *bpd = be_predefined_type::narrow_from_decl (type); - - // check if the type is an any - if (bpd->pt () == AST_PredefinedType::PT_any) - { - switch (arg->direction ()) - { - case AST_Argument::dir_IN: - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { - *os << bt->name () << " "; - // declare a variable - *os << arg->local_name () << ";" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", &" << arg->local_name () << - "); // ORB does not own" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << arg->local_name () << - "\", CORBA::ARG_IN, _tao_environment)->value ()->" << - "replace (" << bt->tc_name () - << ", &" << arg->local_name () << ", 0, " << - "_tao_environment); // ORB does not own" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // XXXASG - TODO - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - // XXXASG - TODO - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // XXXASG - TODO - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // XXXASG - TODO - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { - // nothing since the Any will call its destructor - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { - // keep MSVC++ happy - *os << "const " << bt->nested_type_name (bif) << " &" << - arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { - *os << "const " << bt->name () << " &" << arg->local_name - () << ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end switch state - break; - case AST_Argument::dir_INOUT: - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { - // declare a variable - *os << bt->name () << " *"; - *os << arg->local_name () << " = new " << bt->name () << - ";" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", &" << arg->local_name () << - ", 1); // ORB owns" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << arg->local_name () << - "\", CORBA::ARG_INOUT, _tao_environment)->value ()->" << - "replace (" << bt->tc_name () - << ", " << arg->local_name () << ", 1, " << - "_tao_environment); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // XXXASG - TODO very similar to ObjRef - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - // XXXASG - TODO very similar to ObjRef - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // XXXASG - TODO very similar to ObjRef - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << "*" << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { - *os << "const " << bt->nested_type_name (bif) << " &" << - arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { - *os << bt->name () << " &" << arg->local_name () << ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end switch state - break; - case AST_Argument::dir_OUT: - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { - // declare a variable - *os << bt->name () << " *" << arg->local_name () << - " = 0;" << nl; - *os << bt->name () << "_out " << arg->local_name () << - "_out (" << arg->local_name () << ");" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", " << arg->local_name () << - ", 1); // ORB owns" << nl; -#endif - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () - << " = nvlist->add_item (\"" << arg->local_name - () << "\", CORBA::ARG_OUT, _tao_environment);" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // TODO - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { -#if 0 // causing ambiguity on NT compiler - *os << arg->local_name () << " = " << arg->local_name () - << "_out;" << nl; -#endif - *os << "nv_" << arg->local_name () << "->" << - "value ()->replace (" << bt->tc_name () - << ", " << arg->local_name () << ", 1, " << - "_tao_environment); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { - *os << bt->nested_type_name (bif, "_out") << " " << - arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { - *os << bt->name () << "_out " << arg->local_name () << - ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end switch state - break; - } // end switch direction - } // end of if - else if (bpd->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object - { - switch (arg->direction ()) - { - case AST_Argument::dir_IN: - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { - // declare a variable - *os << bt->name () << "_ptr " << arg->local_name () << ";" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", &" << arg->local_name () << - "); // ORB does not own" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << arg->local_name - () << "\", CORBA::ARG_IN, _tao_environment)->" << - "value ()->replace (" << bt->tc_name () - << ", &" << arg->local_name () << ", 0, " << - "_tao_environment); // ORB does not own" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // no casting necessary as we already are object_ptr - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - *os << ", &" << arg->local_name (); - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // nothing to be done as we are Object_ptr - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { - //release the in parameter - *os << "CORBA::release (" << arg->local_name () << ");" - << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { - *os << bt->nested_type_name (bif, "_ptr") << " " << - arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { - *os << bt->name () << "_ptr " << arg->local_name () << - ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end of switch state - break; - case AST_Argument::dir_INOUT: - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { - // declare a variable - *os << bt->name () << "_ptr *" << arg->local_name () << - " = new " << bt->name () << "_ptr;" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", " << arg->local_name () << - ", 1); // ORB owns" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << arg->local_name - () << "\", CORBA::ARG_INOUT, _tao_environment)->" << - "value ()->replace (" << bt->tc_name () - << ", " << arg->local_name () << ", 1, " << - "_tao_environment); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - *os << ", &" << arg->local_name (); - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << "*" << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { - *os << bt->nested_type_name (bif, "_ptr") << " &" << - arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { - *os << bt->name () << "_ptr &" << arg->local_name () << - ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end switch state - break; - case AST_Argument::dir_OUT: - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { - // declare a variable - *os << bt->name () << "_ptr *" << arg->local_name () << - " = new " << bt->name () << "_ptr;" << nl; - *os << bt->name () << "_out "; - *os << arg->local_name () << "_out (*" << arg->local_name - () << ");" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", &" << arg->local_name () << - ", 0); // ORB doesn't own" << nl; -#endif - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () - << " = nvlist->add_item (\"" << arg->local_name - () << "\", CORBA::ARG_OUT, _tao_environment);" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // declare a variable - *os << bt->name () << "_ptr _tao_base_" << - arg->local_name () << ";" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - *os << ", &_tao_base_" << arg->local_name (); - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // this was causing an ambiguity on NT compiler - // assign to the _out parameter - *os << arg->local_name () << " = _tao_base_" << - arg->local_name () << ";" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << arg->local_name () << "_out, "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { -#if 0 // causing ambiguity on NT compiler - *os << "*" << arg->local_name () << " = " << - arg->local_name () << "_out;" << nl; -#endif - *os << "nv_" << arg->local_name () << "->" << - "value ()->replace (" << bt->tc_name () - << ", " << arg->local_name () << ", 1, " << - "_tao_environment); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { - *os << bt->nested_type_name (bif, "_out") << " " << - arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { - *os << bt->name () << "_out " << arg->local_name () << - ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end switch state - break; - } // end switch direction - } // end else if - else // simple predefined types - { - switch (arg->direction ()) - { - case AST_Argument::dir_IN: - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { - // declare a variable - *os << bt->name () << " " << arg->local_name () << ";" << - nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", &" << arg->local_name () << - "); // ORB does not own" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << arg->local_name - () << "\", CORBA::ARG_IN, _tao_environment)->value ()" - << "->replace (" << bt->tc_name () - << ", &" << arg->local_name () << ", 0, " << - "_tao_environment); // ORB does not own" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - *os << ", &" << arg->local_name (); - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { - *os << bt->nested_type_name (bif) << " " << - arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { - *os << bt->name () << " " << arg->local_name () << ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end switch state - break; - case AST_Argument::dir_INOUT: - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { - // declare a variable - *os << bt->name () << " *" << arg->local_name () << - " = new " << bt->name () << ";" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", " << arg->local_name () << - "); // ORB owns " << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << arg->local_name - () << "\", CORBA::ARG_INOUT, _tao_environment)->" << - "value ()->replace (" << bt->tc_name () - << ", " << arg->local_name () << ", 1, " << - "_tao_environment); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - *os << ", &" << arg->local_name (); - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << "*" << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { - *os << bt->nested_type_name (bif) << " &" << - arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { - *os << bt->name () << " &" << arg->local_name () << ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end switch state - break; - case AST_Argument::dir_OUT: - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { - // declare a variable - *os << bt->name () << " *" << arg->local_name () << - " = new " << bt->name () << ";" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", " << arg->local_name () << - ", 1); // ORB owns" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << arg->local_name - () << "\", CORBA::ARG_OUT, _tao_environment)->" << - "value ()->replace (" << bt->tc_name () - << ", " << arg->local_name () << ", 1, " << - "_tao_environment); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - *os << ", &" << arg->local_name (); - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << "*" << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { - *os << bt->nested_type_name (bif, "_out") << " " << - arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { - *os << bt->name () << "_out " << arg->local_name () << - ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end of switch - break; - } // end switch direction - } // end of else - } // end of case predefined - break; - case AST_Decl::NT_string: // type is a string - { - switch (arg->direction ()) - { - case AST_Argument::dir_IN: - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { -#if 0 - // XXXASG- check for memory leak here - TODO - // declare a variable - if (bt->node_type () == AST_Decl::NT_typedef) - *os << bt->name (); - else - *os << "char *"; -#endif - *os << "char *" << arg->local_name () << ";" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", &" << arg->local_name () << - "); // ORB does not own" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << arg->local_name () << - "\", CORBA::ARG_IN, _tao_environment)->value ()->replace (" - << bt->tc_name () << ", &" << arg->local_name () << - ", 0, _tao_environment); // ORB does not own" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - *os << ", &" << arg->local_name (); - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { - // we need to free the "in" string that got decoded - *os << "CORBA::string_free (" << arg->local_name () << ");" - << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { -#if 0 - *os << "const "; - if (bt->node_type () == AST_Decl::NT_typedef) - *os << bt->nested_type_name (bif); - else - *os << "char *"; -#endif - *os << "const char *" << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_SH: - case TAO_CodeGen::TAO_ARGUMENT_CS: - { -#if 0 - *os << "const "; - if (bt->node_type () == AST_Decl::NT_typedef) - *os << bt->name (); - else - *os << "char *"; -#endif - *os << "const char *" << arg->local_name () << ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end switch state - break; - case AST_Argument::dir_INOUT: - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { -#if 0 - // declare a variable - if (bt->node_type () == AST_Decl::NT_typedef) - { - *os << bt->name () << " *" << arg->local_name () << - " = new " << bt->name () << ";" << nl; - } - else - { - *os << "char **" << arg->local_name () << - " = new char *;" << nl; - } -#endif - *os << "char **" << arg->local_name () << " = new char *;" << - nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", &" << arg->local_name () << - "); // ORB does not own" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << arg->local_name () << - "\", CORBA::ARG_INOUT, _tao_environment)->value ()->" << - "replace (" << bt->tc_name () - << ", " << arg->local_name () << ", 1, " << - "_tao_environment); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - *os << ", &" << arg->local_name (); - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << "*" << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { -#if 0 - if (bt->node_type () == AST_Decl::NT_typedef) - *os << bt->nested_type_name (bif, " &"); - else - *os << "char *&"; -#endif - *os << "char *&" << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_SH: - case TAO_CodeGen::TAO_ARGUMENT_CS: - { -#if 0 - if (bt->node_type () == AST_Decl::NT_typedef) - *os << bt->name (); - else - *os << "char *&"; -#endif - *os << "char *&" << arg->local_name () << ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end switch state - break; - case AST_Argument::dir_OUT: - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { -#if 0 - // declare a variable - if (bt->node_type () == AST_Decl::NT_typedef) - { - *os << bt->name () << " *" << arg->local_name () << - " = new " << bt->name () << ";" << nl; - } - else - { - *os << "char **" << arg->local_name () << - " = new char *;" << nl; - } - // now declare a _out variable to be passed as a parameter - if (bt->node_type () == AST_Decl::NT_typedef) - *os << bt->name () << "_out"; - else - *os << "CORBA::String_out"; -#endif - *os << "char **" << arg->local_name () << - " = new char *;" << nl; - *os << "CORBA::String_out " << arg->local_name () << - "_out (*" << arg->local_name () << ");" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", _tao_base_" << arg->local_name () << - ", 1); // ORB owns" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << arg->local_name () << - "\", CORBA::ARG_OUT, _tao_environment)->value ()->" << - "replace (" << bt->tc_name () - << ", " << arg->local_name () << ", 1, " << - "_tao_environment); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { -#if 0 - // declare a string variable - if (bt->node_type () == AST_Decl::NT_typedef) - *os << bt->name (); - else - *os << "char *"; -#endif - *os << "char *_tao_base_" << arg->local_name () << ";" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - *os << ", &_tao_base_" << arg->local_name (); - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // assign the _tao_base_ variable to the out - // parameter - *os << arg->local_name () << " = _tao_base_" << - arg->local_name () << ";" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << arg->local_name () << "_out, "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { -#if 0 // causing ambiguity on NT compiler - // out parameter is cast back to the real parameter - *os << "*" << arg->local_name () << " = " << - arg->local_name () << "_out;" << nl; -#endif - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { -#if 0 - if (bt->node_type () == AST_Decl::NT_typedef) - *os << bt->nested_type_name (bif, "_out"); - else - *os << "CORBA::String_out"; -#endif - *os << "CORBA::String_out " << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { -#if 0 - if (bt->node_type () == AST_Decl::NT_typedef) - *os << bt->name () << "_out"; - else - *os << "CORBA::String_out"; -#endif - *os << "CORBA::String_out " << arg->local_name () << ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end switch state - break; - } // end switch direction - } // end case string - break; - case AST_Decl::NT_array: // type is an array - switch (arg->direction ()) - { - case AST_Argument::dir_IN: - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { - // declare a variable - *os << bt->name () << " " << arg->local_name () - << ";" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", " << arg->local_name () << - "); // ORB does not own" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << arg->local_name () << - "\", CORBA::ARG_INOUT, _tao_environment)->value ()->" << - "replace (" << bt->tc_name () - << ", &" << arg->local_name () << ", 0, " << - "_tao_environment); // ORB does not own" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // XXXASG TODO - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - // XXXASG TODO - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // XXXASG TODO - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { - // to keep the MSVC++ compiler happy - *os << "const " << bt->nested_type_name (bif) << " " << - arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { - *os << "const " << bt->name () << " " << arg->local_name () - << ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end switch state - } // end case - break; - case AST_Argument::dir_INOUT: - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { - // declare a variable - *os << bt->name (); - if (bt->size_type () == be_decl::VARIABLE) - { - *os << "_slice *"; - } - *os << " " << arg->local_name () << ";" << nl; - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", " << arg->local_name () << - "); // ORB does not own" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // TODO XXXASG - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - // TODO XXXASG - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // TODO XXXASG - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { - // to keep the MSVC++ compiler happy - if (bt->size_type () == be_decl::VARIABLE) - { - *os << bt->nested_type_name (bif, "_slice") << " *" << - arg->local_name () << ", "; - } - else - { - *os << bt->nested_type_name (bif) << " " << - arg->local_name () << ", "; - } - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { - *os << bt->name (); - if (bt->size_type () == be_decl::VARIABLE) - { - *os << "_slice *"; - } - *os << arg->local_name () << ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end switch state - } // end case - break; - case AST_Argument::dir_OUT: - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { - // declare a variable - *os << bt->name () << "_slice *" << arg->local_name () << ";" << - nl; - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", " << arg->local_name () << - ", 1); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // TODO XXXASG - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - // TODO XXXASG - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // TODO XXXASG - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { - // to keep the MSVC++ compiler happy - *os << bt->nested_type_name (bif, "_out") << " " << - arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { - *os << bt->name () << "_out " << arg->local_name () << ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end switch state - } - break; - } // end of switch direction - break; - case AST_Decl::NT_sequence: // type is a sequence - case AST_Decl::NT_struct: // type is a struct - case AST_Decl::NT_union: // type is a union - switch (arg->direction ()) - { - case AST_Argument::dir_IN: - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { - // declare a variable - *os << bt->name () << " " << arg->local_name () << - ";" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", &" << arg->local_name () << - "); // ORB does not own" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << arg->local_name () << - "\", CORBA::ARG_IN, _tao_environment)->value ()->" << - "replace (" << bt->tc_name () - << ", &" << arg->local_name () << ", 0, " << - "_tao_environment); // ORB does not own" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - *os << ", &" << arg->local_name (); - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { - // nothing - the destructor will ensure proper memory release - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { - // to keep the MSVC++ compiler happy - *os << "const " << bt->nested_type_name (bif) << " &" << - arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { - *os << "const " << bt->name () << " &" << arg->local_name () - << ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end switch state - } - break; - case AST_Argument::dir_INOUT: - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { - // declare a variable - *os << bt->name () << " *" << arg->local_name () << - " = new " << bt->name () << ";" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", &" << arg->local_name () << - "); // ORB does not own" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << arg->local_name () << - "\", CORBA::ARG_INOUT, _tao_environment)->value ()->" << - "replace (" << bt->tc_name () - << ", " << arg->local_name () << ", 1, " << - "_tao_environment); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - *os << ", &" << arg->local_name (); - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { -#if 0 - // if we are sequence, call init manager - if (type->node_type () == AST_Decl::NT_sequence) - { - be_sequence *seq = be_sequence::narrow_from_decl (type); - // init_mgr method for managed types - switch (seq->managed_type ()) - { - case be_sequence::MNG_OBJREF: - case be_sequence::MNG_STRING: - *os << arg->local_name () << ".init_mgr ();" << nl; - break; - default: - break; - } - } -#endif - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << "*" << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { - // to keep the MSVC++ compiler happy - *os << bt->nested_type_name (bif) << " &" << arg->local_name - () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { - *os << bt->name () << " &" << arg->local_name () << ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end switch state - } // end case - break; - case AST_Argument::dir_OUT: - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { - // for a variable sized type, the caller allocates a pointer - if (bt->size_type () == be_decl::VARIABLE) - { - // declare a variable - *os << bt->name () << " *" << arg->local_name () << - " = 0;" << nl; - *os << bt->name () << "_out " << arg->local_name () << - "_out (" << arg->local_name () << ");" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", " << arg->local_name () << - ", 0); // ORB does not own" << nl; -#endif - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () - << " = nvlist->add_item (\"" << arg->local_name - () << "\", CORBA::ARG_OUT, _tao_environment);" << nl; - } - else - { - // declare a variable - *os << bt->name () << " *" << arg->local_name () << - " = new " << bt->name () << ";" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", &" << arg->local_name () << - ", 0); // ORB does not own" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << arg->local_name () << - "\", CORBA::ARG_OUT, _tao_environment)->value ()->" << - "replace (" << bt->tc_name () - << ", " << arg->local_name () << ", 1, " << - "_tao_environment); // ORB owns" << nl; - } // end else - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // declare a variable. We need this only if we are variable - // sized. If we are fixed sized, we already know our size and - // hence we have already been allocated - if (bt->size_type () == be_decl::VARIABLE) - { - *os << bt->name () << " *_tao_base_" << arg->local_name - () << " = new " << bt->name () << ";" << nl; - } - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - if (bt->size_type () == be_decl::VARIABLE) - { - *os << ", _tao_base_" << arg->local_name (); - } - else - { - // simply pass our address - *os << ", &" << arg->local_name (); - } - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { -#if 0 - // if we are sequence, call init manager - if (type->node_type () == AST_Decl::NT_sequence) - { - be_sequence *seq = be_sequence::narrow_from_decl (type); - // init_mgr method for managed types - switch (seq->managed_type ()) - { - case be_sequence::MNG_OBJREF: - case be_sequence::MNG_STRING: - *os << "_tao_base_" << arg->local_name () << - "->init_mgr ();" << nl; - break; - default: - break; - } - } -#endif - if (bt->size_type () == be_decl::VARIABLE) - { - *os << arg->local_name () << " = _tao_base_" << - arg->local_name () << ";" << nl; - } - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - if (bt->size_type () == be_decl::VARIABLE) - *os << arg->local_name () << "_out, "; - else - *os << "*" << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { - if (bt->size_type () == be_decl::VARIABLE) - { -#if 0 // causing ambiguity on NT compiler - *os << arg->local_name () << " = " << arg->local_name () - << "_out;" << nl; -#endif - *os << "nv_" << arg->local_name () << "->" << - "value ()->replace (" << bt->tc_name () - << ", " << arg->local_name () << ", 1, " << - "_tao_environment); // ORB owns" << nl; - } - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { - // to keep the MSVC++ compiler happy - *os << bt->nested_type_name (bif, "_out") << " " << - arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { - *os << bt->name () << "_out " << arg->local_name () << ", "; - break; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end switch state - } // end case - break; - } // end switch direction - break; - case AST_Decl::NT_enum: // type is an enum - switch (arg->direction ()) - { - case AST_Argument::dir_IN: - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { - // declare a variable - *os << bt->name () << " " << arg->local_name () << ";" << - nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", &" << arg->local_name () << - "); // ORB does not own" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << arg->local_name - () << "\", CORBA::ARG_IN, _tao_environment)->value ()" - << "->replace (" << bt->tc_name () - << ", &" << arg->local_name () << ", 0, " << - "_tao_environment); // ORB does not own" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - *os << ", &" << arg->local_name (); - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { - // to keep the MSVC++ compiler happy - *os << bt->nested_type_name (bif) << " " << arg->local_name - () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { - *os << bt->name () << " " << arg->local_name () << ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end of switch state - } // end case - break; - case AST_Argument::dir_INOUT: - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { - // declare a variable - *os << bt->name () << " *" << arg->local_name () << - " = new " << bt->name () << ";" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", &" << arg->local_name () << - "); // ORB does not own" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << arg->local_name - () << "\", CORBA::ARG_INOUT, _tao_environment)->" << - "value ()->replace (" << bt->tc_name () - << ", " << arg->local_name () << ", 1, " << - "_tao_environment); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - *os << ", &" << arg->local_name (); - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << "*" << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { - // to keep the MSVC++ compiler happy - *os << bt->nested_type_name (bif) << " &" << arg->local_name - () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { - *os << bt->name () << " &" << arg->local_name () << ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end switch state - } // end case - break; - case AST_Argument::dir_OUT: - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - { - // declare a variable - *os << bt->name () << " *" << arg->local_name () << - " = new " << bt->name () << ";" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << arg->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << arg->local_name () << " (" << - bt->tc_name () << ", &" << arg->local_name () << - "); // ORB does not own" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << arg->local_name - () << "\", CORBA::ARG_OUT, _tao_environment)->" << - "value ()->replace (" << bt->tc_name () - << ", " << arg->local_name () << ", 1, " << - "_tao_environment); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - { - *os << ", &" << arg->local_name (); - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - { - *os << "*" << arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CH: - { - // to keep the MSVC++ compiler happy - *os << bt->nested_type_name (bif, "_out") << " " << - arg->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - { - *os << bt->name () << "_out " << arg->local_name () << ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_argument - unknown state\n"), -1); - } - } // end switch state - } // end case - break; - } // end switch direction - break; - case AST_Decl::NT_native: - { - switch (arg->direction ()) - { - case AST_Argument::dir_IN: - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_CH: - // to keep the MSVC++ compiler happy - *os << bt->nested_type_name (bif) << " " - << arg->local_name () << ", "; - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - *os << bt->name () << " " << arg->local_name () << ", "; - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - *os << "env.exception (new CORBA::MARSHAL " << - "(CORBA::COMPLETED_NO));" << nl; - break; - default: - break; - } - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARGUMENT_CH: - // to keep the MSVC++ compiler happy - *os << bt->nested_type_name (bif) << " &" - << arg->local_name () << ", "; - break; - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - *os << bt->name () << " &" - << arg->local_name () << ", "; - break; - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - *os << "env.exception (new CORBA::MARSHAL " << - "(CORBA::COMPLETED_NO));" << nl; - break; - default: - break; - } - } - } - } - } - break; - case AST_Decl::NT_except: // type is an exception - { - // XXXASG TODO: is this allowed ??? - } - break; - case AST_Decl::NT_typedef: // type is a typedef - { - be_type *temp; - be_typedef *t = be_typedef::narrow_from_decl (bt); - - if (!t) - return -1; - - temp = t->primitive_base_type (); - // make a recursive call - return this->gen_code (t, d, temp); - } // end of case - break; - } //end switch node type - return 0; -} diff --git a/TAO/TAO_IDL/be/be_state_array.cpp b/TAO/TAO_IDL/be/be_state_array.cpp deleted file mode 100644 index 118d3e0f4ee..00000000000 --- a/TAO/TAO_IDL/be/be_state_array.cpp +++ /dev/null @@ -1,120 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_state_array.cpp -// -// = DESCRIPTION -// state based code generation for arrays. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -// return type for array -be_state_array::be_state_array (void) -{ -} - -// generate code for array type -int -be_state_array::gen_code (be_type *bt, be_decl *d, be_type *type) -{ - TAO_OutStream *os = 0; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - // Macro to avoid "warning: unused parameter" type warning. - ACE_UNUSED_ARG (nl); - - // get the appropriate stream - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ARRAY_DEFN_CH: - case TAO_CodeGen::TAO_ARRAY_OTHER_CH: - os = cg->client_header (); - break; - case TAO_CodeGen::TAO_ARRAY_DEFN_CI: - os = cg->client_inline (); - break; - } - - if (!type) // not a recursive call - type = bt; - else // recursively called thru a typedef. "type" will have the most primitive - // base class of the typedef - ACE_ASSERT (bt->node_type () == AST_Decl::NT_typedef); - - // generate code based on type. For every case, first downcast to the - // appropriate type. If the downcast fails, return error, else proceed. In - // some cases, the type itself may need code generation, e.g., anonymous - // struct types. - switch (type->node_type ()) - { - case AST_Decl::NT_interface: // type is an obj reference - { - *os << bt->name () << "_var "; - } - break; - case AST_Decl::NT_pre_defined: // type is predefined type - { - *os << bt->name (); - } - break; - case AST_Decl::NT_string: // type is a string - { - *os << "CORBA::String_var "; - } - break; - case AST_Decl::NT_array: - // type is an array. This is possible only if we - // are here thru the typedef node - { - *os << bt->name () << "_slice *"; - } - break; - // these are all anonymous types - case AST_Decl::NT_enum: // type is an enum - case AST_Decl::NT_sequence: // type is a sequence - case AST_Decl::NT_struct: // type is a struct - case AST_Decl::NT_union: // type is a union - { - // based on what state we are in, we may have to generate the definition - // of the type first - if (cg->state () == TAO_CodeGen::TAO_ARRAY_DEFN_CH) - if (bt->gen_client_header () == -1) // generate the defn - return -1; - - *os << bt->name (); - } - break; - case AST_Decl::NT_except: // type is an exception - { - // XXXASG TODO: is this allowed ??? - } - break; - case AST_Decl::NT_typedef: // type is a typedef - { - be_type *temp; - be_typedef *t = be_typedef::narrow_from_decl (bt); - - if (!t) - return -1; - - temp = t->primitive_base_type (); - // make a recursive call - return this->gen_code (t, d, temp); - } // end of switch - //break; unreachable statement! - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_state_attribute.cpp b/TAO/TAO_IDL/be/be_state_attribute.cpp deleted file mode 100644 index 5d43cd30c42..00000000000 --- a/TAO/TAO_IDL/be/be_state_attribute.cpp +++ /dev/null @@ -1,1166 +0,0 @@ -// $Id$ - - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_state_attribute.cpp -// -// = DESCRIPTION -// state based code generation for attributes. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -// constructor -be_state_attribute::be_state_attribute (void) -{ -} - -int -be_state_attribute::gen_code (be_type *bt, be_decl *d, be_type *type) -{ - TAO_OutStream *os = 0; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - be_attribute *attr; // attribute node - be_interface *bif; // enclosing scope which is an interface - - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CH: - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CH: - os = cg->client_header (); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_EXCEPTION_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_RETURN_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_DOCALL_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_DOCALL_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_POST_DOCALL_CS: - os = cg->client_stubs (); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_SH: - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SH: - os = cg->server_header (); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_SS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_ASSIGN_SS: - case TAO_CodeGen::TAO_ATTRIBUTE_RESULT_SS: - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SS: - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_UPCALL_SS: - case TAO_CodeGen::TAO_ATTRIBUTE_UPCALL_SS: - case TAO_CodeGen::TAO_ATTRIBUTE_POST_UPCALL_SS: - os = cg->server_skeletons (); - break; - } - - // retrieve the ATTRIBUTE node - attr = be_attribute::narrow_from_decl (d); - if (!attr) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_attribute.cpp - " - "Bad attribute node\n"), - -1); - } - - // get the enclosing interface scope to be used in the NESTED_CLASS macro - bif = be_interface::narrow_from_decl (ScopeAsDecl (attr->defined_in ())); - if (!bif) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_attribute.cpp - " - "Bad interface\n"), - -1); - } - - if (!type) // not a recursive call - type = bt; - else // recursively called thru a typedef. "type" will have the most primitive - // base class of the typedef - ACE_ASSERT (bt->node_type () == AST_Decl::NT_typedef); - - // Two level switching - // (1) switch on node type - // (2) switch on current code generation state - - switch (type->node_type ()) // LEVEL (1) switch based on node type - { - case AST_Decl::NT_interface: // type is an obj reference - case AST_Decl::NT_interface_fwd: // type is an obj reference - { - // what state are we in - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CH: - { - // to keep MSVC++ happy - *os << bt->nested_type_name (bif, "_ptr") << " "; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CH: - { - // to keep the MSVC++ compiler happy - *os << bt->nested_type_name (bif, "_ptr") << " " << - attr->local_name (); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_SH: - { - *os << bt->name () << "_ptr "; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SH: - { - *os << bt->name () << "_ptr " << attr->local_name (); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_CS: - { - *os << "CORBA::Object_ptr retval = CORBA::Object::_nil ();" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_EXCEPTION_CS: - { - *os << "return " << bt->name () << "::_nil ();\n"; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_RETURN_CS: - { - *os << "return " << bt->name () << "::_narrow (retval, env);" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_SS: - { - *os << "CORBA::Object_ptr *retval =" - " new CORBA::Object_ptr;" << nl; - *os << "*retval = CORBA::Object::_nil ();" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_ASSIGN_SS: - { - *os << "*retval"; // assign to retval - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RESULT_SS: - { - *os << "result = new CORBA::Any (" << bt->tc_name () << - ", retval, 1); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_DOCALL_CS: - { - // assign to a CORBA::Object_ptr - *os << "CORBA::Object_ptr _tao_base_" << attr->local_name () - << " = " << attr->local_name () << "; // cast it" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_DOCALL_CS: - { - // pass the cast value - *os << ", &_tao_base_" << attr->local_name (); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_POST_DOCALL_CS: - { - // nothing for in parameters - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SS: - { - // declare a variable - *os << bt->name () << "_ptr "; - *os << attr->local_name () << ";" << nl; - // we also declare a corresponding CORBA::Object_ptr to be - // passed to the decoder - *os << "CORBA::Object_ptr _tao_base_" << attr->local_name () - << ";" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << attr->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << attr->local_name () << " (" << - bt->tc_name () << ", &_tao_base_" << attr->local_name () << - "); // ORB does not own" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << attr->local_name () << - "\", CORBA::ARG_IN, _tao_environment)->value ()->" << - "replace (" << bt->tc_name () - << ", &_tao_base_" << attr->local_name () << ", 0, " << - "_tao_environment); // ORB does not own" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_UPCALL_SS: - { - // convert from the CORBA::Object_ptr to the interface type - // using a _narrow - *os << attr->local_name () << " = " << bt->name () << - "::_narrow (_tao_base_" << attr->local_name () << ", " << - "_tao_environment);" << nl; - *os << "if (_tao_environment.exception ()) return;" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_POST_UPCALL_SS: - { - // we must release the in parameter - *os << "CORBA::release (" << attr->local_name () << ");" << nl; - *os << "CORBA::release (_tao_base_" << attr->local_name () << - ");" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_UPCALL_SS: - { - *os << attr->local_name () << ", "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_attribute - unknown state\n"), -1); - } - } // switch state - } // end of case interface/interface_fwd - break; - case AST_Decl::NT_pre_defined: // type is predefined type - { - be_predefined_type *bpd = be_predefined_type::narrow_from_decl (type); - - // check if the type is an any - if (bpd->pt () == AST_PredefinedType::PT_any) - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_CS: - { - // if it is an any, return a pointer to it - *os << bt->name () << " *retval;" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_EXCEPTION_CS: - { - // if it is an any, return a pointer to it - *os << "return 0;\n"; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_RETURN_CS: - { - *os << "return retval;" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_SS: - { - // if it is an any, return a pointer to it - *os << bt->name () << " *retval;" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_ASSIGN_SS: - { - // if it is an any, return a pointer to it - *os << "retval"; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RESULT_SS: - { - // if it is an any, return a pointer to it - *os << "result = new CORBA::Any (" << bt->tc_name () << - ", retval, 1); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SS: - { - *os << bt->name () << " "; - // declare a variable - *os << attr->local_name () << ";" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << attr->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << attr->local_name () << " (" << - bt->tc_name () << ", &" << attr->local_name () << - "); // ORB does not own" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << attr->local_name () << - "\", CORBA::ARG_IN, _tao_environment)->value ()->" << - "replace (" << bt->tc_name () - << ", &" << attr->local_name () << ", 0, " << - "_tao_environment); // ORB does not own" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_DOCALL_CS: - { - // XXXASG - TODO - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_DOCALL_CS: - { - // XXXASG - TODO - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_POST_DOCALL_CS: - { - // XXXASG - TODO - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_UPCALL_SS: - { - *os << attr->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_UPCALL_SS: - { - // XXXASG - TODO - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_POST_UPCALL_SS: - { - // XXXASG - TODO - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CH: - { - // keep MSVC++ happy - *os << bt->nested_type_name (bif); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_SH: - { - *os << bt->name () << "* "; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CH: - { - // keep MSVC++ happy - *os << "const " << bt->nested_type_name (bif) << " &" << - attr->local_name (); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SH: - { - *os << "const " << bt->name () << " &" << attr->local_name - (); - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_attribute - unknown state\n"), -1); - } - } // end switch state - } // end of if - else if (bpd->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_CS: - { - // pseudo object, return a pointer - *os << bt->name () << "_ptr retval;" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_EXCEPTION_CS: - { - // pseudo object, return a pointer - *os << "return 0;\n"; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_RETURN_CS: - { - *os << "return retval;" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_SS: - { - // pseudo object, return a pointer - *os << bt->name () << "_ptr *retval = new " << bt->name () << - "_ptr;" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_ASSIGN_SS: - { - // pseudo object, return a pointer - *os << "*retval"; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RESULT_SS: - { - // pseudo object, return a pointer - *os << "result = new CORBA::Any (" << bt->tc_name () << - ", retval, 1); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SS: - { - // declare a variable - *os << bt->name () << "_ptr " << attr->local_name () << ";" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << attr->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << attr->local_name () << " (" << - bt->tc_name () << ", &" << attr->local_name () << - "); // ORB does not own" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << attr->local_name - () << "\", CORBA::ARG_IN, _tao_environment)->" << - "value ()->replace (" << bt->tc_name () - << ", &" << attr->local_name () << ", 0, " << - "_tao_environment); // ORB does not own" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_DOCALL_CS: - { - // no casting necessary as we already are object_ptr - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_DOCALL_CS: - { - *os << ", &" << attr->local_name (); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_POST_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_UPCALL_SS: - { - *os << attr->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_UPCALL_SS: - { - // nothing to be done as we are Object_ptr - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_POST_UPCALL_SS: - { - //release the in parameter - *os << "CORBA::release (" << attr->local_name () << ");" - << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CH: - { - // keep MSVC++ happy - *os << bt->nested_type_name (bif); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_SH: - { - *os << bt->name (); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CH: - { - // keep MSVC++ happy - *os << "const " << bt->nested_type_name (bif) << " &" << - attr->local_name (); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SH: - { - *os << "const " << bt->name () << " &" << attr->local_name - (); - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_attribute - unknown state\n"), -1); - } - } // end of switch state - } // end else if - else // simple predefined types - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_CS: - { - *os << bt->name () << " retval;" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_EXCEPTION_CS: - { - *os << "return retval;\n"; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_RETURN_CS: - { - *os << "return retval;" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_SS: - { - *os << bt->name () << " *retval = new " << bt->name () << ";" - << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_ASSIGN_SS: - { - *os << " *retval"; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RESULT_SS: - { - *os << "result = new CORBA::Any (" << bt->tc_name () << - ", retval, 1); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SS: - { - // declare a variable - *os << bt->name () << " " << attr->local_name () << ";" << - nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << attr->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << attr->local_name () << " (" << - bt->tc_name () << ", &" << attr->local_name () << - "); // ORB does not own" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << attr->local_name - () << "\", CORBA::ARG_IN, _tao_environment)->value ()" - << "->replace (" << bt->tc_name () - << ", &" << attr->local_name () << ", 0, " << - "_tao_environment); // ORB does not own" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_DOCALL_CS: - { - *os << ", &" << attr->local_name (); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_POST_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_UPCALL_SS: - { - *os << attr->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_POST_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CH: - { - // keep MSVC++ happy - *os << bt->nested_type_name (bif); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_SH: - { - *os << bt->name (); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CH: - { - // keep MSVC++ happy - *os << "const " << bt->nested_type_name (bif) << " &" << - attr->local_name (); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SH: - { - *os << "const " << bt->name () << " &" << attr->local_name - (); - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_attribute - unknown state\n"), -1); - } - } // end switch state - } // end of else - } // end of case predefined - break; - case AST_Decl::NT_string: // type is a string - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_CS: - { - if (bt->node_type () == AST_Decl::NT_typedef) - { - *os << bt->name () << " retval = 0;" << nl; - } - else - { - *os << "char *retval = 0;" << nl; - } - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_EXCEPTION_CS: - { - *os << "return 0;\n"; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_RETURN_CS: - { - *os << "return retval;" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_SS: - { - if (bt->node_type () == AST_Decl::NT_typedef) - { - *os << bt->name () << " *retval = new " << bt->name () << "*;" << nl; - } - else - { - *os << "char **retval = new char*;" << nl; - } - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_ASSIGN_SS: - { - *os << "*retval"; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RESULT_SS: - { - *os << "result = new CORBA::Any (" << bt->tc_name () << - ", retval, 1); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_DOCALL_CS: - { - *os << ", &" << attr->local_name (); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_POST_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_POST_UPCALL_SS: - { - // we need to free the "in" string that got decoded - *os << "CORBA::string_free (" << attr->local_name () << ");" - << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_UPCALL_SS: - { - *os << attr->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CH: - { - if (bt->node_type () == AST_Decl::NT_typedef) - { - // to keep MSVC++ happy - *os << bt->nested_type_name (bif); - } - else - { - *os << "char *"; - } - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_SH: - { - if (bt->node_type () == AST_Decl::NT_typedef) - { - *os << bt->name (); - } - else - { - *os << "char *"; - } - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SS: - { - // declare a variable - if (bt->node_type () == AST_Decl::NT_typedef) - *os << bt->name (); - else - *os << "char *"; - *os << " " << attr->local_name () << ";" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << attr->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << attr->local_name () << " (" << - bt->tc_name () << ", &" << attr->local_name () << - "); // ORB does not own" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << attr->local_name () << - "\", CORBA::ARG_IN, _tao_environment)->value ()->replace (" - << bt->tc_name () << ", &" << attr->local_name () << - ", 0, _tao_environment); // ORB does not own" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SH: - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CH: - { - *os << "const char *" << attr->local_name (); - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_attribute - unknown state\n"), -1); - } - } // end switch state - } // end case string - break; - case AST_Decl::NT_array: // type is an array - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_CS: - { - *os << bt->name () << "_slice *retval;" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_EXCEPTION_CS: - { - *os << "return 0;\n"; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_RETURN_CS: - { - *os << "return retval;" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_SS: - { - *os << bt->name () << "_slice *retval;" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_ASSIGN_SS: - { - *os << "retval"; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RESULT_SS: - { - *os << "result = new CORBA::Any (" << bt->tc_name () << - ", retval, 1); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SS: - { - // declare a variable - *os << bt->name () << " " << attr->local_name () - << ";" << nl; - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << attr->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << attr->local_name () << " (" << - bt->tc_name () << ", " << attr->local_name () << - "); // ORB does not own" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_DOCALL_CS: - { - // XXXASG TODO - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_DOCALL_CS: - { - // XXXASG TODO - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_POST_DOCALL_CS: - { - // XXXASG TODO - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_UPCALL_SS: - { - *os << attr->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_POST_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CH: - { - // to keep MSVC++ happy - *os << bt->nested_type_name (bif, "_slice") << " *"; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_SH: - { - *os << bt->name () << "_slice *"; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CH: - { - // to keep the MSVC++ compiler happy - *os << "const " << bt->nested_type_name (bif) << " " << - attr->local_name (); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SH: - { - *os << "const " << bt->name () << " " << attr->local_name (); - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_attribute - unknown state\n"), -1); - } - } // end switch state - } // end of case array - break; - case AST_Decl::NT_sequence: // type is a sequence - case AST_Decl::NT_struct: // type is a struct - case AST_Decl::NT_union: // type is a union - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SS: - { - // declare a variable - *os << bt->name () << " " << attr->local_name () << - ";" << nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << attr->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << attr->local_name () << " (" << - bt->tc_name () << ", &" << attr->local_name () << - "); // ORB does not own" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << attr->local_name () << - "\", CORBA::ARG_IN, _tao_environment)->value ()->" << - "replace (" << bt->tc_name () - << ", &" << attr->local_name () << ", 0, " << - "_tao_environment); // ORB does not own" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_DOCALL_CS: - { - *os << ", &" << attr->local_name (); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_POST_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_UPCALL_SS: - { - *os << attr->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_POST_UPCALL_SS: - { - // nothing - } - break; - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_CS: - { - *os << bt->name () << " *retval = new " << bt->name () << ";" << - nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_EXCEPTION_CS: - { - *os << "return 0;\n"; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_RETURN_CS: - { -#if 0 - if (type->node_type () == AST_Decl::NT_sequence) - { - be_sequence *seq = be_sequence::narrow_from_decl (type); - // init_mgr method for managed types - switch (seq->managed_type ()) - { - case be_sequence::MNG_OBJREF: - case be_sequence::MNG_STRING: - *os << "retval->init_mgr ();" << nl; - break; - default: - break; - } - } -#endif - *os << "return retval;" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_SS: - { - *os << bt->name () << " *retval;" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_ASSIGN_SS: - { - *os << "retval"; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RESULT_SS: - { - *os << "result = new CORBA::Any (" << bt->tc_name () << - ", retval, 1); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CH: - { - if (bt->size_type () == be_decl::VARIABLE) - // to keep MSVC++ happy - *os << bt->nested_type_name (bif) << " *"; - else - *os << bt->nested_type_name (bif); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_SH: - { - if (bt->size_type () == be_decl::VARIABLE) - *os << bt->name () << " *"; - else - *os << bt->name (); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CH: - { - // to keep the MSVC++ compiler happy - *os << "const " << bt->nested_type_name (bif) << " &" << - attr->local_name (); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SH: - { - *os << "const " << bt->name () << " &" << attr->local_name (); - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_attribute - unknown state\n"), -1); - } - } // end switch state - } // end case - break; - case AST_Decl::NT_enum: // type is an enum - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_CS: - { - *os << bt->name () << " retval;" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_EXCEPTION_CS: - { - *os << "return retval;\n"; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_RETURN_CS: - { - *os << "return retval;" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_SS: - { - *os << bt->name () << " *retval = new " << bt->name () << ";" << - nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_ASSIGN_SS: - { - *os << "*retval"; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RESULT_SS: - { - *os << "result = new CORBA::Any (" << bt->tc_name () << - ", retval, 1); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SS: - { - // declare a variable - *os << bt->name () << " " << attr->local_name () << ";" << - nl; -#if 0 - // now define a NamedValue_ptr - *os << "CORBA::NamedValue_ptr nv_" << attr->local_name () << - ";" << nl; - // declare an Any - *os << "CORBA::Any any_" << attr->local_name () << " (" << - bt->tc_name () << ", &" << attr->local_name () << - "); // ORB does not own" << nl; -#endif - // insert into the Any - *os << "(void) nvlist->add_item (\"" << attr->local_name - () << "\", CORBA::ARG_IN, _tao_environment)->value ()" - << "->replace (" << bt->tc_name () - << ", &" << attr->local_name () << ", 0, " << - "_tao_environment); // ORB does not own" << nl; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_POST_DOCALL_CS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_UPCALL_SS: - { - *os << attr->local_name () << ", "; - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_POST_UPCALL_SS: - { - // nothing - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CH: - { - // to keep the MSVC++ compiler happy - *os << bt->nested_type_name (bif) << " " << attr->local_name - (); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CS: - - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SH: - { - *os << bt->name () << " " << attr->local_name (); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CH: - { - // to keep MSVC++ happy - *os << bt->nested_type_name (bif); - } - break; - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_SH: - { - *os << bt->name (); - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_attribute - unknown state\n"), -1); - } - } // end switch state - } // end case - break; - case AST_Decl::NT_except: // type is an exception - { - // XXXASG TODO: is this allowed ??? - } - break; - case AST_Decl::NT_typedef: // type is a typedef - { - be_type *temp; - be_typedef *t = be_typedef::narrow_from_decl (bt); - - if (!t) - return -1; - - temp = t->primitive_base_type (); - // make a recursive call - return this->gen_code (t, d, temp); - } // end of case - break; - } //end switch node type - return 0; -} diff --git a/TAO/TAO_IDL/be/be_state_exception.cpp b/TAO/TAO_IDL/be/be_state_exception.cpp deleted file mode 100644 index 769104ffe65..00000000000 --- a/TAO/TAO_IDL/be/be_state_exception.cpp +++ /dev/null @@ -1,409 +0,0 @@ -// $Id$ -// -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_state_exception.cpp -// -// = DESCRIPTION -// state based code generation for exceptions. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -be_state_exception::be_state_exception (void) -{ -} - -// generate code for exception member -int -be_state_exception ::gen_code (be_type *bt, be_decl *d, be_type *type) -{ - TAO_OutStream *os; // output stream - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - be_field *f; // field node - be_exception *bexcp; // enclosing exception node - - switch (cg->state ()) - { - case TAO_CodeGen::TAO_EXCEPTION_CH: // used for defining members - case TAO_CodeGen::TAO_EXCEPTION_CTOR_CH: // used for defining the - // parameters to the special - // constructor - os = cg->client_header (); - break; - case TAO_CodeGen::TAO_EXCEPTION_CI: // for generating inline functions for - // specific anonymous types - os = cg->client_inline (); - break; - case TAO_CodeGen::TAO_EXCEPTION_CS: // for copy ctor and assignment op - case TAO_CodeGen::TAO_EXCEPTION_CTOR_CS: // for the parameters of the - // special constructor - case TAO_CodeGen::TAO_EXCEPTION_CTOR_ASSIGN_CS: // for assigning to members - // inside the special ctor - os = cg->client_stubs (); - break; - default: - os = 0; // Force a seg fault. At least os will have a known value. - } - - f = be_field::narrow_from_decl (d); // downcast to field node - if (!f) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_exception.cpp - " - "Bad field\n"), - -1); - } - - // retrieve the exception node - bexcp = be_exception::narrow_from_scope (f->defined_in ()); - if (!bexcp) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_exception.cpp - " - "Bad exception\n"), - -1); - } - - // pass the field node just incase it is needed to generate definition for - // sequence - cg->node (f); - - if (!type) // not a recursive call - type = bt; - else // recursively called thru a typedef. "type" will have the most primitive - // base class of the typedef - ACE_ASSERT (bt->node_type () == AST_Decl::NT_typedef); - - // generate code based on type. - switch (type->node_type ()) - { - case AST_Decl::NT_interface: // type is an obj reference - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_EXCEPTION_CH: - { - os->indent (); // start from current indentation - *os << bt->nested_type_name (bexcp, "_var") << " " << f->local_name - () << ";\n"; - } - break; - case TAO_CodeGen::TAO_EXCEPTION_CS: - { - // assign - os->indent (); // start with current indentation - *os << "this->" << f->local_name () << " = _tao_excp." << - f->local_name () << ";\n"; - } - break; - case TAO_CodeGen::TAO_EXCEPTION_CTOR_CH: - { - *os << "const " << bt->nested_type_name (bexcp, "_ptr") << "&"; - } - break; - case TAO_CodeGen::TAO_EXCEPTION_CTOR_CS: - { - *os << "const " << bt->name () << "_ptr &_tao_" << f->local_name - (); - } - break; - case TAO_CodeGen::TAO_EXCEPTION_CTOR_ASSIGN_CS: - { - // assign - os->indent (); // start with current indentation - *os << "this->" << f->local_name () << " = _tao_" << - f->local_name () << ";\n"; - } - break; - case TAO_CodeGen::TAO_EXCEPTION_CI: - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_exception - unknown state\n"), -1); - } - } // end switch state - } // end case interface - break; - case AST_Decl::NT_pre_defined: // type is predefined type - { - be_predefined_type *bpd = be_predefined_type::narrow_from_decl (type); - if (!bpd) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_exception - " - "bad predefined type\n"), -1); - } - switch (cg->state ()) - { - case TAO_CodeGen::TAO_EXCEPTION_CH: - { - switch (bpd->pt ()) - { - case AST_PredefinedType::PT_pseudo: - { - os->indent (); // start from current indentation - *os << bt->nested_type_name (bexcp, "_var") << " " << - f->local_name () << ";\n"; - } - break; - default: - { - os->indent (); // start from current indentation - *os << bt->nested_type_name (bexcp) << " " << f->local_name - () << ";\n"; - } - } // end of switch state - } - break; - case TAO_CodeGen::TAO_EXCEPTION_CS: - { - // assign - os->indent (); // start with current indentation - *os << "this->" << f->local_name () << " = _tao_excp." << - f->local_name () << ";\n"; - } - break; - case TAO_CodeGen::TAO_EXCEPTION_CTOR_CH: - { - switch (bpd->pt ()) - { - case AST_PredefinedType::PT_pseudo: - { - *os << "const " << bt->nested_type_name (bexcp, "_ptr") << - "&"; - } - break; - default: - { - *os << "const " << bt->nested_type_name (bexcp); - } - } - } - break; - case TAO_CodeGen::TAO_EXCEPTION_CTOR_CS: - { - switch (bpd->pt ()) - { - case AST_PredefinedType::PT_pseudo: - { - *os << "const " << bt->name () << "_ptr &_tao_" << - f->local_name (); - } - break; - default: - { - *os << "const " << bt->name () << " _tao_" << - f->local_name (); - } - } - } - break; - case TAO_CodeGen::TAO_EXCEPTION_CTOR_ASSIGN_CS: - { - // assign - os->indent (); // start with current indentation - *os << "this->" << f->local_name () << " = _tao_" << - f->local_name () << ";\n"; - } - break; - case TAO_CodeGen::TAO_EXCEPTION_CI: - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_exception - unknown state\n"), -1); - } - } // end switch state - } - break; - case AST_Decl::NT_string: // type is a string - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_EXCEPTION_CH: - { - os->indent (); // start from current indentation - if (bt->node_type () == AST_Decl::NT_typedef) - { - *os << bt->nested_type_name (bexcp, "_var") << " " << - f->local_name () << ";\n"; - } - else - { - *os << "CORBA::String_var " << f->local_name () << ";\n"; - } - } - break; - case TAO_CodeGen::TAO_EXCEPTION_CS: - { - // assign - os->indent (); // start with current indentation - *os << "this->" << f->local_name () << " = _tao_excp." << - f->local_name () << ";\n"; - } - break; - case TAO_CodeGen::TAO_EXCEPTION_CTOR_CH: - { - if (bt->node_type () == AST_Decl::NT_typedef) - { - *os << "const " << bt->nested_type_name (bexcp); - } - else - { - *os << "const char*"; - } - } - break; - case TAO_CodeGen::TAO_EXCEPTION_CTOR_CS: - { - if (bt->node_type () == AST_Decl::NT_typedef) - { - *os << "const " << bt->name () << " _tao_" << f->local_name - (); - } - else - { - *os << "const char* _tao_" << f->local_name (); - } - } - break; - case TAO_CodeGen::TAO_EXCEPTION_CTOR_ASSIGN_CS: - { - // assign - os->indent (); // start with current indentation - *os << "this->" << f->local_name () << " = _tao_" << - f->local_name () << ";\n"; - } - break; - case TAO_CodeGen::TAO_EXCEPTION_CI: - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_exception - unknown state\n"), -1); - } - } // end switch state - } - break; - // these are all anonymous types - case AST_Decl::NT_array: // type is an array - case AST_Decl::NT_sequence: // type is a sequence - case AST_Decl::NT_enum: // type is an enum - case AST_Decl::NT_union: // type is a union - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_EXCEPTION_CH: - { - // We first need to generate code for this aggregate type. Check - // if we are not called recursively thru a typedef - if (bt->node_type () != AST_Decl::NT_typedef - && !bt->imported ()) - if (bt->gen_client_header () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_exception - " - "error generating code for type\n"), - -1); - } - os->indent (); - *os << bt->nested_type_name (bexcp) << " " << f->local_name () << - ";\n"; - } - break; - case TAO_CodeGen::TAO_EXCEPTION_CI: - { - // We first need to generate code for this aggregate type. Check - // if we are not called recursively thru a typedef - if (bt->node_type () != AST_Decl::NT_typedef - && !bt->imported ()) - if (bt->gen_client_inline () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_exception - " - "error generating code for type\n"), - -1); - } - } - break; - case TAO_CodeGen::TAO_EXCEPTION_CS: - { - // We first need to generate code for this aggregate type. Check - // if we are not called recursively thru a typedef - if (bt->node_type () != AST_Decl::NT_typedef - && !bt->imported ()) - if (bt->gen_client_stubs () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_exception - " - "error generating code for type\n"), - -1); - } - // assign - os->indent (); // start with current indentation - *os << "this->" << f->local_name () << " = _tao_excp." << - f->local_name () << ";\n"; - } - break; - case TAO_CodeGen::TAO_EXCEPTION_CTOR_CH: - { - *os << "const " << bt->nested_type_name (bexcp) << "&"; - } - break; - case TAO_CodeGen::TAO_EXCEPTION_CTOR_CS: - { - *os << "const " << bt->name () << "&_tao_" << f->local_name (); - } - break; - case TAO_CodeGen::TAO_EXCEPTION_CTOR_ASSIGN_CS: - { - // assign - os->indent (); // start with current indentation - *os << "this->" << f->local_name () << " = _tao_" << - f->local_name () << ";\n"; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_exception - unknown state\n"), -1); - } - } // end switch state - } - break; - case AST_Decl::NT_except: // type is an exception - { - // XXXASG TODO: is this allowed ??? - } - break; - case AST_Decl::NT_typedef: // type is a typedef - { - be_type *temp; - be_typedef *t = be_typedef::narrow_from_decl (bt); - - if (!t) - return -1; - - temp = t->primitive_base_type (); - // make a recursive call - return this->gen_code (t, f, temp); - } // end of switch - //break; unreachable statement! - } - // the enclosing exception will be variable length if the field's type is - // variable length - bexcp->size_type (type->size_type ()); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_state_operation.cpp b/TAO/TAO_IDL/be/be_state_operation.cpp deleted file mode 100644 index da056cf1c75..00000000000 --- a/TAO/TAO_IDL/be/be_state_operation.cpp +++ /dev/null @@ -1,739 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_state_operation.cpp -// -// = DESCRIPTION -// state based code generation for operations. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -// return type for operation -be_state_operation::be_state_operation (void) -{ -} - -// generate code for return type of operation -int -be_state_operation::gen_code (be_type *bt, be_decl *d, be_type *type) -{ - TAO_OutStream *os = 0; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - be_operation *bop; - be_interface *bif; // interface in which the operation was defined - - bop = be_operation::narrow_from_decl (d); - if (!bop) - return -1; - - bif = be_interface::narrow_from_scope (bop->defined_in ()); - if (!bif) - return -1; - - switch (cg->state ()) - { - case TAO_CodeGen::TAO_OPERATION_CH: - os = cg->client_header (); - break; - case TAO_CodeGen::TAO_OPERATION_RETURN_TYPE_CS: - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_CS: - case TAO_CodeGen::TAO_OPERATION_RETVAL_EXCEPTION_CS: - case TAO_CodeGen::TAO_OPERATION_RETVAL_RETURN_CS: - os = cg->client_stubs (); - break; - case TAO_CodeGen::TAO_OPERATION_SH: - os = cg->server_header (); - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_SS: - case TAO_CodeGen::TAO_OPERATION_RETVAL_ASSIGN_SS: - case TAO_CodeGen::TAO_OPERATION_RESULT_SS: - os = cg->server_skeletons (); - break; - } - - if (!type) // not a recursive call - type = bt; - else // recursively called thru a typedef. "type" will have the most primitive - // base class of the typedef - ACE_ASSERT (bt->node_type () == AST_Decl::NT_typedef); - - // generate code based on type. For every case, first downcast to the - // appropriate type. If the downcast fails, return error, else proceed. In - // some cases, the type itself may need code generation, e.g., anonymous - // struct types. - switch (type->node_type ()) - { - case AST_Decl::NT_interface: // type is an obj reference - case AST_Decl::NT_interface_fwd: // type is an obj reference - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_OPERATION_RETURN_TYPE_CS: - { - *os << bt->name () << "_ptr "; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_CS: - { - *os << "CORBA::Object_ptr retval = CORBA::Object::_nil ();" << nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_EXCEPTION_CS: - { - *os << "return " << bt->name () << "::_nil ();\n"; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_RETURN_CS: - { - *os << "return " << bt->name () << "::_narrow (retval, env);" << nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_SS: - { - *os << "CORBA::Object_ptr *retval =" - " new CORBA::Object_ptr;" << nl; - *os << "*retval = CORBA::Object::_nil ();" << nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_ASSIGN_SS: - { - *os << "*retval"; // assign to retval - } - break; - case TAO_CodeGen::TAO_OPERATION_RESULT_SS: - { - *os << "result = new CORBA::Any (" << bt->tc_name () << - ", retval, 1); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_CH: - { - // to keep MSVC++ happy - *os << bt->nested_type_name (bif, "_ptr") << " "; - } - break; - default: - { - *os << bt->name () << "_ptr "; - } - } - } - break; - case AST_Decl::NT_pre_defined: // type is predefined type - { - be_predefined_type *bpd = be_predefined_type::narrow_from_decl (type); - - switch (cg->state ()) - { - case TAO_CodeGen::TAO_OPERATION_RETURN_TYPE_CS: - { - // check if the type is an any - if (bpd->pt () == AST_PredefinedType::PT_any) - { - // if it is an any, return a pointer to it - *os << bt->name () << " *"; - } - else if (bpd->pt () == AST_PredefinedType::PT_pseudo) - { - // pseudo object, return a pointer - *os << bt->name () << "_ptr "; - } - else if (bpd->pt () == AST_PredefinedType::PT_void) - { - *os << "void "; - } - else - { - *os << bt->name () << " "; - } - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_CS: - { - // check if the type is an any - if (bpd->pt () == AST_PredefinedType::PT_any) - { - // if it is an any, return a pointer to it - *os << bt->name () << " *retval;" << nl; - } - else if (bpd->pt () == AST_PredefinedType::PT_pseudo) - { - // pseudo object, return a pointer - *os << bt->name () << "_ptr retval;" << nl; - } - else if (bpd->pt () == AST_PredefinedType::PT_void) - { - // no return variable - } - else - { - *os << bt->name () << " retval;" << nl; - } - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_EXCEPTION_CS: - { - // check if the type is an any - if (bpd->pt () == AST_PredefinedType::PT_any) - { - // if it is an any, return a pointer to it - *os << "return 0;\n"; - } - else if (bpd->pt () == AST_PredefinedType::PT_pseudo) - { - // pseudo object, return a pointer - *os << "return 0;\n"; - } - else if (bpd->pt () == AST_PredefinedType::PT_void) - { - *os << "return;\n"; - } - else - { - *os << "return retval;\n"; - } - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_RETURN_CS: - { - if (bpd->pt () == AST_PredefinedType::PT_void) - { - *os << "return; // no value" << nl; - } - else - { - *os << "return retval;" << nl; - } - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_SS: - { - // check if the type is an any - if (bpd->pt () == AST_PredefinedType::PT_any) - { - // if it is an any, return a pointer to it - *os << bt->name () << " *retval;" << nl; - } - else if (bpd->pt () == AST_PredefinedType::PT_pseudo) - { - // pseudo object, return a pointer - *os << bt->name () << "_ptr *retval = new " << bt->name () << - "_ptr;" << nl; - } - else - { - *os << bt->name () << " *retval = new " << bt->name () << ";" - << nl; - } - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_ASSIGN_SS: - { - // check if the type is an any - if (bpd->pt () == AST_PredefinedType::PT_any) - { - // if it is an any, return a pointer to it - *os << "retval"; - } - else if (bpd->pt () == AST_PredefinedType::PT_pseudo) - { - // pseudo object, return a pointer - *os << "*retval"; - } - else - { - *os << " *retval"; - } - } - break; - case TAO_CodeGen::TAO_OPERATION_RESULT_SS: - { - if (bpd->pt () == AST_PredefinedType::PT_any) - { - // if it is an any, return a pointer to it - *os << "result = new CORBA::Any (" << bt->tc_name () << - ", retval, 1); // ORB owns" << nl; - } - else if (bpd->pt () == AST_PredefinedType::PT_pseudo) - { - // pseudo object, return a pointer - *os << "result = new CORBA::Any (" << bt->tc_name () << - ", retval, 1); // ORB owns" << nl; - } - else - { - *os << "result = new CORBA::Any (" << bt->tc_name () << - ", retval, 1); // ORB owns" << nl; - } - } - break; - case TAO_CodeGen::TAO_OPERATION_CH: - { - // to keep MSVC++ happy - if (bpd->pt () == AST_PredefinedType::PT_any) - { - // if it is an any, return a pointer to it - *os << bt->nested_type_name (bif, "*") << " "; - } - else if (bpd->pt () == AST_PredefinedType::PT_pseudo) - { - // pseudo object, return a pointer - *os << bt->nested_type_name (bif, "_ptr") << " "; - } - else - { - *os << bt->nested_type_name (bif) << " "; - } - } - break; - default: - { - *os << bt->name (); - // check if the type is an any - if (bpd->pt () == AST_PredefinedType::PT_any) - { - // if it is an any, return a pointer to it - *os << " *"; - } - else if (bpd->pt () == AST_PredefinedType::PT_pseudo) - { - // pseudo object, return a pointer - *os << "_ptr"; - } - } - } // end switch (cg->state()) - } - break; - case AST_Decl::NT_string: // type is a string - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_OPERATION_RETURN_TYPE_CS: - { -#if 0 - if (bt->node_type () == AST_Decl::NT_typedef) - { - *os << bt->name (); - } - else - { - *os << "char *"; - } -#endif - *os << "char *"; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_CS: - { -#if 0 - if (bt->node_type () == AST_Decl::NT_typedef) - { - *os << bt->name () << " retval = 0;" << nl; - } - else - { - *os << "char *retval = 0;" << nl; - } -#endif - *os << "char *retval = 0;" << nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_EXCEPTION_CS: - { - *os << "return 0;\n"; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_RETURN_CS: - { - *os << "return retval;" << nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_SS: - { -#if 0 - if (bt->node_type () == AST_Decl::NT_typedef) - { - *os << bt->name () << " *retval = new " << bt->name () << ";" << nl; - } - else - { - *os << "char **retval = new char*;" << nl; - } -#endif - *os << "char **retval = new char*;" << nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_ASSIGN_SS: - { - *os << "*retval"; - } - break; - case TAO_CodeGen::TAO_OPERATION_RESULT_SS: - { - *os << "result = new CORBA::Any (" << bt->tc_name () << - ", retval, 1); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_CH: - { -#if 0 - if (bt->node_type () == AST_Decl::NT_typedef) - { - // to keep MSVC++ happy - *os << bt->nested_type_name (bif); - } - else - { - *os << "char *"; - } -#endif - *os << "char *"; - } - break; - default: - { - *os << "char *"; - } - } // end of switch cg->state - } - break; - // these are all anonymous types - case AST_Decl::NT_array: // type is an array - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_OPERATION_RETURN_TYPE_CS: - { - *os << bt->name () << "_slice *"; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_CS: - { - *os << bt->name () << "_slice *retval;" << nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_EXCEPTION_CS: - { - *os << "return 0;\n"; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_RETURN_CS: - { - *os << "return retval;" << nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_SS: - { - *os << bt->name () << "_slice *retval;" << nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_ASSIGN_SS: - { - *os << "retval"; - } - break; - case TAO_CodeGen::TAO_OPERATION_RESULT_SS: - { - *os << "result = new CORBA::Any (" << bt->tc_name () << - ", retval, 1); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_CH: - { - // to keep MSVC++ happy - *os << bt->nested_type_name (bif, "_slice") << " *"; - } - break; - default: - { - // return a pointer to slice - *os << bt->name () << "_slice *"; - } - } // end of switch cg->state - } - break; - case AST_Decl::NT_sequence: // type is a sequence - // return type is a pointer to sequence - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_OPERATION_RETURN_TYPE_CS: - { - *os << bt->name () << " *"; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_CS: - { - *os << bt->name () << " *retval = new " << bt->name () << ";" << - nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_EXCEPTION_CS: - { - *os << "return 0;\n"; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_RETURN_CS: - { -#if 0 - be_sequence *seq = be_sequence::narrow_from_decl (type); - // init_mgr method for managed types - switch (seq->managed_type ()) - { - case be_sequence::MNG_OBJREF: - case be_sequence::MNG_STRING: - *os << "retval->init_mgr ();" << nl; - break; - default: - break; - } -#endif - // if we are sequence, call init manager - *os << "return retval;" << nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_SS: - { - *os << bt->name () << " *retval;" << nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_ASSIGN_SS: - { - *os << "retval"; - } - break; - case TAO_CodeGen::TAO_OPERATION_RESULT_SS: - { - *os << "result = new CORBA::Any (" << bt->tc_name () << - ", retval, 1); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_CH: - { - // to keep MSVC++ happy - *os << bt->nested_type_name (bif) << " *"; - } - break; - default: - { - *os << bt->name () << " *"; - } - } // end of swithc cg->state - } - break; - case AST_Decl::NT_enum: // type is an enum - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_OPERATION_RETURN_TYPE_CS: - { - *os << bt->name () << " "; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_CS: - { - *os << bt->name () << " retval;" << nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_EXCEPTION_CS: - { - *os << "return retval;\n"; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_RETURN_CS: - { - *os << "return retval;" << nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_SS: - { - *os << bt->name () << " *retval = new " << bt->name () << ";" << - nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_ASSIGN_SS: - { - *os << "*retval"; - } - break; - case TAO_CodeGen::TAO_OPERATION_RESULT_SS: - { - *os << "result = new CORBA::Any (" << bt->tc_name () << - ", retval, 1); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_CH: - { - // to keep MSVC++ happy - *os << bt->nested_type_name (bif); - } - break; - default: - { - *os << bt->name (); - } - } // end of switch cg->state - } - break; - case AST_Decl::NT_struct: // type is a struct - case AST_Decl::NT_union: // type is a union - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_OPERATION_RETURN_TYPE_CS: - { - *os << bt->name () << " "; - if (bt->size_type () == be_decl::VARIABLE) - { - *os << "*"; - } - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_CS: - { - if (bt->size_type () == be_decl::VARIABLE) - { - *os << bt->name () << " *retval = new " << bt->name () << ";" - << nl; - } - else - { - *os << bt->name () << " retval;" << nl; - } - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_EXCEPTION_CS: - { - if (bt->size_type () == be_decl::VARIABLE) - { - *os << "return 0;\n"; - } - else - { - *os << "return retval;\n"; - } - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_RETURN_CS: - { - *os << "return retval;" << nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_SS: - { - if (type->size_type () == be_decl::VARIABLE) - { - *os << bt->name () << " *retval;" << nl; - } - else - { - *os << bt->name () << " *retval = new " << bt->name () << ";" - << nl; - } - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_ASSIGN_SS: - { - if (type->size_type () == be_decl::VARIABLE) - { - *os << "retval"; - } - else - { - *os << "*retval"; - } - } - break; - case TAO_CodeGen::TAO_OPERATION_RESULT_SS: - { - *os << "result = new CORBA::Any (" << bt->tc_name () << - ", retval, 1); // ORB owns" << nl; - } - break; - case TAO_CodeGen::TAO_OPERATION_CH: - { - // to keep MSVC++ happy - *os << bt->nested_type_name (bif); - // check if we are fixed size or variable sized. Depending on that we - // return a pointer or the aggregate itself - if (type->size_type () == be_decl::VARIABLE) - *os << " *"; - } - break; - default: - { - *os << bt->name (); - // check if we are fixed size or variable sized. Depending on that we - // return a pointer or the aggregate itself - if (type->size_type () == be_decl::VARIABLE) - *os << " *"; - } - } // end of switch cg->state - } - break; - case AST_Decl::NT_native: - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_OPERATION_RETURN_TYPE_CS: - { - *os << bt->name (); - } - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_CS: - case TAO_CodeGen::TAO_OPERATION_RETVAL_RETURN_CS: - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_SS: - case TAO_CodeGen::TAO_OPERATION_RETVAL_ASSIGN_SS: - case TAO_CodeGen::TAO_OPERATION_RESULT_SS: - break; - case TAO_CodeGen::TAO_OPERATION_RETVAL_EXCEPTION_CS: - *os << "return 0;\n"; - break; - case TAO_CodeGen::TAO_OPERATION_CH: - { - // to keep MSVC++ happy - *os << bt->nested_type_name (bif) << " "; - } - break; - default: - { - *os << bt->name (); - } - break; - } - } - break; - case AST_Decl::NT_except: // type is an exception - { - // XXXASG TODO: is this allowed ??? - } - break; - case AST_Decl::NT_typedef: // type is a typedef - { - be_type *temp; - be_typedef *t = be_typedef::narrow_from_decl (bt); - - if (!t) - return -1; - - temp = t->primitive_base_type (); - // make a recursive call - return this->gen_code (t, d, temp); - } // end of switch - //break; unreachable statement! - } // switch of main switch - return 0; -} diff --git a/TAO/TAO_IDL/be/be_state_sequence.cpp b/TAO/TAO_IDL/be/be_state_sequence.cpp deleted file mode 100644 index 92e7b869da5..00000000000 --- a/TAO/TAO_IDL/be/be_state_sequence.cpp +++ /dev/null @@ -1,442 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_state_sequence.cpp -// -// = DESCRIPTION -// state based code generation for sequences. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -// return type for sequence -be_state_sequence::be_state_sequence (void) -{ -} - -// generate code for sequence type -int -be_state_sequence::gen_code (be_type *bt, be_decl *d, be_type *type) -{ - TAO_OutStream *os = 0; // output stream - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - be_sequence *seq; - - seq = be_sequence::narrow_from_decl (d); - if (!seq) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_sequence.cpp - " - "Bad sequence type\n"), - -1); - } - - switch (cg->state ()) - { - case TAO_CodeGen::TAO_SEQUENCE_BASE_CH: - case TAO_CodeGen::TAO_SEQUENCE_BODY_CH: - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CH: - os = cg->client_header (); // get client header stream - break; - case TAO_CodeGen::TAO_SEQUENCE_BASE_CS: - case TAO_CodeGen::TAO_SEQUENCE_BODY_CS: - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CS: - os = cg->client_stubs (); // get client stubs stream - break; - case TAO_CodeGen::TAO_SEQUENCE_BASE_CI: - case TAO_CodeGen::TAO_SEQUENCE_BODY_CI: - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CI: - os = cg->client_inline (); // get client inline stream - break; - default: - return -1; - } - - if (!type) // not a recursive call - type = bt; - else // recursively called thru a typedef. "type" will have the most primitive - // base class of the typedef - ACE_ASSERT (bt->node_type () == AST_Decl::NT_typedef); - - // enclosing scope in which the sequence element type occurs - be_decl *scope; - if (!bt->defined_in ()) // no outer scope for us - scope = 0; - else - { - scope = be_scope::narrow_from_scope (bt->defined_in ())->decl (); - if (!scope) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_sequence.cpp - " - "bad scope for seq elem type\n"), - -1); - } - } - - // for sequences, all we do is generate the type - switch (type->node_type ()) - { - case AST_Decl::NT_interface: // type is an obj reference - case AST_Decl::NT_interface_fwd: // type is an obj reference - case AST_Decl::NT_string: // type is a string - { - switch (cg->state ()) - { - // if it is the case of sequence base, we generate the code for - // managed types - case TAO_CodeGen::TAO_SEQUENCE_BASE_CH: - if (seq->gen_managed_type_ch () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_sequence.cpp - " - "codegen for managed type\n"), - -1); - } - break; - case TAO_CodeGen::TAO_SEQUENCE_BASE_CS: - if (seq->gen_managed_type_cs () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_sequence.cpp - " - "codegen for managed type\n"), - -1); - } - break; - case TAO_CodeGen::TAO_SEQUENCE_BASE_CI: - if (seq->gen_managed_type_ci () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_sequence.cpp - " - "codegen for managed type\n"), - -1); - } - break; - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CH: // managed type returned by - // operator [] - { - if ((type->node_type () == AST_Decl::NT_interface) - || (type->node_type () == AST_Decl::NT_interface_fwd)) - { - if (scope) - { - *os << "ACE_NESTED_CLASS (" << scope->name () << "," << - seq->local_name () << "::TAO_ObjRefMngType) "; - } - else - { - *os << seq->local_name () << "::TAO_ObjRefMngType "; - } - } - else // must be a string - { - if (scope) - { - *os << "ACE_NESTED_CLASS (" << scope->name () << "," << - seq->local_name () << "::TAO_StrMngType) "; - } - else - { - *os << seq->local_name () << "::TAO_StrMngType "; - } - } - } - break; - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CI: - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CS: - { - if ((type->node_type () == AST_Decl::NT_interface) - || (type->node_type () == AST_Decl::NT_interface_fwd)) - { - *os << seq->name () << "::TAO_ObjRefMngType "; - } - else // must be a string - { - *os << seq->name () << "::TAO_StrMngType "; - } - } - break; - case TAO_CodeGen::TAO_SEQUENCE_BODY_CH: - { - if ((type->node_type () == AST_Decl::NT_interface) - || (type->node_type () == AST_Decl::NT_interface_fwd)) - { - *os << bt->nested_type_name (scope, "_ptr"); - } - else // must be a string - { - *os << "char *"; - } - } - break; - case TAO_CodeGen::TAO_SEQUENCE_BODY_CI: - case TAO_CodeGen::TAO_SEQUENCE_BODY_CS: - { - if ((type->node_type () == AST_Decl::NT_interface) - || (type->node_type () == AST_Decl::NT_interface_fwd)) - { - *os << bt->name () << "_ptr"; - } - else // must be a string - { - *os << "char *"; - } - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_sequence.cpp - " - "bad state\n"), - -1); - } - } - } - break; - case AST_Decl::NT_pre_defined: // type is predefined type - { - be_predefined_type *bpd = be_predefined_type::narrow_from_decl (type); - - if (!bpd) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_sequence.cpp - " - "bad type\n"), - -1); - } - if (bpd->pt () == AST_PredefinedType::PT_pseudo) - { - // managed types for pseudo objs - switch (cg->state ()) - { - case TAO_CodeGen::TAO_SEQUENCE_BASE_CH: - if (seq->gen_managed_type_ch () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_sequence.cpp - " - "codegen for managed type\n"), - -1); - } - break; - case TAO_CodeGen::TAO_SEQUENCE_BASE_CS: - if (seq->gen_managed_type_cs () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_sequence.cpp - " - "codegen for managed type\n"), - -1); - } - break; - case TAO_CodeGen::TAO_SEQUENCE_BASE_CI: - if (seq->gen_managed_type_ci () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_sequence.cpp - " - "codegen for managed type\n"), - -1); - } - break; - case TAO_CodeGen::TAO_SEQUENCE_BODY_CH: - *os << bt->nested_type_name (scope, "_ptr"); - break; - case TAO_CodeGen::TAO_SEQUENCE_BODY_CS: - case TAO_CodeGen::TAO_SEQUENCE_BODY_CI: - *os << bt->name () << "_ptr"; - break; - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CH: // managed type returned by - // operator [] - { - if (scope) - { - *os << "ACE_NESTED_CLASS (" << scope->name () << "," << - seq->local_name () << "::TAO_ObjRefMngType ) "; - } - else - { - *os << seq->local_name () << "::TAO_ObjRefMngType "; - } - } - break; - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CI: - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CS: - { - *os << seq->name () << "::TAO_ObjRefMngType "; - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_sequence.cpp - " - "bad state\n"), - -1); - } - } // end switch state - } // if pseudo - else - { - // rest of the predefined types - switch (cg->state ()) - { - case TAO_CodeGen::TAO_SEQUENCE_BASE_CH: - case TAO_CodeGen::TAO_SEQUENCE_BASE_CS: - case TAO_CodeGen::TAO_SEQUENCE_BASE_CI: - // nothing to be done - break; - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CH: - *os << bt->nested_type_name (scope, " &"); - break; - case TAO_CodeGen::TAO_SEQUENCE_BODY_CH: - *os << bt->nested_type_name (scope, " "); - break; - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CI: - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CS: - *os << bt->name () << " &"; - break; - case TAO_CodeGen::TAO_SEQUENCE_BODY_CS: - case TAO_CodeGen::TAO_SEQUENCE_BODY_CI: - *os << bt->name () << " "; - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_sequence.cpp - " - "bad state\n"), - -1); - } - } // end of switch - } // end else - } // end case predefined type - break; - case AST_Decl::NT_enum: // type is an enum - case AST_Decl::NT_array: // type is an array - case AST_Decl::NT_struct: // type is a struct - case AST_Decl::NT_union: // type is a union - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_SEQUENCE_BASE_CH: - case TAO_CodeGen::TAO_SEQUENCE_BASE_CS: - case TAO_CodeGen::TAO_SEQUENCE_BASE_CI: - // nothing to do because we cannot have anonymous data types here - // that are enums or structures or unions. - break; - case TAO_CodeGen::TAO_SEQUENCE_BODY_CH: - *os << bt->nested_type_name (scope, " "); - break; - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CH: - *os << bt->nested_type_name (scope, " &"); - break; - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CS: - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CI: - *os << bt->name () << " &"; - break; - case TAO_CodeGen::TAO_SEQUENCE_BODY_CS: - case TAO_CodeGen::TAO_SEQUENCE_BODY_CI: - *os << bt->name () << " "; - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_sequence.cpp - " - "bad state\n"), - -1); - } - } - } - break; - case AST_Decl::NT_sequence: // type is a sequence - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_SEQUENCE_BASE_CH: - { - // generate the base type sequence - if (bt->gen_client_header () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_sequence.cpp - " - "Bad sequence type\n"), - -1); - } - } - break; - case TAO_CodeGen::TAO_SEQUENCE_BASE_CS: - { - // generate the base type sequence - if (bt->gen_client_stubs () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_sequence.cpp - " - "Bad sequence type\n"), - -1); - } - } - break; - case TAO_CodeGen::TAO_SEQUENCE_BASE_CI: - { - // generate the base type sequence - if (bt->gen_client_inline () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_sequence.cpp - " - "Bad sequence type\n"), - -1); - } - } - break; - case TAO_CodeGen::TAO_SEQUENCE_BODY_CH: - *os << bt->nested_type_name (scope, " "); - break; - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CH: - *os << bt->nested_type_name (scope, " &"); - break; - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CS: - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CI: - *os << bt->name () << " &"; - break; - case TAO_CodeGen::TAO_SEQUENCE_BODY_CS: - case TAO_CodeGen::TAO_SEQUENCE_BODY_CI: - *os << bt->name () << " "; - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_sequence.cpp - " - "bad state\n"), - -1); - } - } - } - break; - case AST_Decl::NT_except: // type is an exception - { - // XXXASG: Is this case valid ??? - } - break; - case AST_Decl::NT_typedef: // type is a typedef - { - be_type *temp; // most primitive base type - be_typedef *t = be_typedef::narrow_from_decl (bt); - - if (!t) - return -1; - - temp = t->primitive_base_type (); - // make a recursive call - return this->gen_code (t, d, temp); - } - //break; unreachable statement! - } // end of switch - return 0; -} diff --git a/TAO/TAO_IDL/be/be_state_structure.cpp b/TAO/TAO_IDL/be/be_state_structure.cpp deleted file mode 100644 index 86ab10cac5a..00000000000 --- a/TAO/TAO_IDL/be/be_state_structure.cpp +++ /dev/null @@ -1,280 +0,0 @@ -// $Id$ -// -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_state_struct.cpp -// -// = DESCRIPTION -// state based code generation for structs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -be_state_struct::be_state_struct (void) -{ -} - -// generate code for structure member -int -be_state_struct ::gen_code (be_type *bt, be_decl *d, be_type *type) -{ - TAO_OutStream *os; // output stream - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - be_field *f; // field node - be_structure *bs; // enclosing structure node - - switch (cg->state ()) - { - case TAO_CodeGen::TAO_STRUCT_CH: - os = cg->client_header (); - break; - case TAO_CodeGen::TAO_STRUCT_CS: - os = cg->client_stubs (); - break; - case TAO_CodeGen::TAO_STRUCT_CI: - os = cg->client_inline (); - break; - default: - os = 0; // Force a seg fault. At least os will have a known value. - } - - f = be_field::narrow_from_decl (d); // downcast to field node - if (!f) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_structure.cpp - " - "Bad field\n"), - -1); - } - - // retrieve the enclosing "struct" node - bs = be_structure::narrow_from_scope (f->defined_in ()); - if (!bs) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_struct.cpp - " - "Bad structure\n"), - -1); - } - - if (!type) // not a recursive call - type = bt; - else // recursively called thru a typedef. "type" will have the most primitive - // base class of the typedef - ACE_ASSERT (bt->node_type () == AST_Decl::NT_typedef); - - // generate code based on type. - switch (type->node_type ()) - { - case AST_Decl::NT_interface: // type is an obj reference - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_STRUCT_CH: - { - os->indent (); // start from current indentation - *os << bt->nested_type_name (bs, "_var") << " " << f->local_name - () << ";\n"; - } - break; - case TAO_CodeGen::TAO_STRUCT_CI: - { - // nothing - } - break; - case TAO_CodeGen::TAO_STRUCT_CS: - { - // nothing - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_struct - unknown state\n"), -1); - } - } // end switch state - } // end case interface - break; - case AST_Decl::NT_pre_defined: // type is predefined type - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_STRUCT_CH: - { - be_predefined_type *bpd = be_predefined_type::narrow_from_decl - (type); - if (!bpd) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_struct - " - "bad predefined type\n"), -1); - } - os->indent (); // start from current indentation - switch (bpd->pt ()) - { - case AST_PredefinedType::PT_any: - case AST_PredefinedType::PT_pseudo: - *os << bt->nested_type_name (bs) << "_var " << f->local_name - () << ";\n"; - break; - default: - *os << bt->nested_type_name (bs) << " " << f->local_name () - << ";\n"; - } - } - break; - case TAO_CodeGen::TAO_STRUCT_CI: - { - // nothing - } - break; - case TAO_CodeGen::TAO_STRUCT_CS: - { - // nothing - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_struct - unknown state\n"), -1); - } - } // end switch state - } - break; - case AST_Decl::NT_string: // type is a string - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_STRUCT_CH: - { - os->indent (); // start from current indentation - if (bt->node_type () == AST_Decl::NT_typedef) - { - *os << bt->nested_type_name (bs, "_var") << " " << - f->local_name () << ";\n"; - } - else - { - *os << "CORBA::String_var " << f->local_name () << ";\n"; - } - } - break; - case TAO_CodeGen::TAO_STRUCT_CI: - { - } - break; - case TAO_CodeGen::TAO_STRUCT_CS: - { - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_struct - unknown state\n"), -1); - } - } // end switch state - } - break; - // these are all anonymous types - case AST_Decl::NT_array: // type is an array - case AST_Decl::NT_sequence: // type is a sequence - case AST_Decl::NT_enum: // type is an enum - case AST_Decl::NT_struct: // type is a struct - case AST_Decl::NT_union: // type is a union - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_STRUCT_CH: - { - // We first need to generate code for this aggregate type. Check - // if we are not called recursively thru a typedef - if (bt->node_type () != AST_Decl::NT_typedef - && !bt->imported ()) - if (bt->gen_client_header () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_struct - " - "error generating code for type\n"), - -1); - } - // this is not to be generated for arrays - if (bt->node_type () != AST_Decl::NT_array) - { - os->indent (); - *os << bt->nested_type_name (bs) << " " << f->local_name () << - ";\n"; - } - } - break; - case TAO_CodeGen::TAO_STRUCT_CI: - { - // We first need to generate code for this aggregate type. Check - // if we are not called recursively thru a typedef - if (bt->node_type () != AST_Decl::NT_typedef - && !bt->imported ()) - if (bt->gen_client_inline () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_struct - " - "error generating code for type\n"), - -1); - } - } - break; - case TAO_CodeGen::TAO_STRUCT_CS: - { - // We first need to generate code for this aggregate type. Check - // if we are not called recursively thru a typedef - if (bt->node_type () != AST_Decl::NT_typedef - && !bt->imported ()) - if (bt->gen_client_stubs () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_struct - " - "error generating code for type\n"), - -1); - } - } - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_struct - unknown state\n"), -1); - } - } // end switch state - } - break; - case AST_Decl::NT_except: // type is an exception - { - // XXXASG TODO: is this allowed ??? - } - break; - case AST_Decl::NT_typedef: // type is a typedef - { - be_type *temp; - be_typedef *t = be_typedef::narrow_from_decl (bt); - - if (!t) - return -1; - - temp = t->primitive_base_type (); - // make a recursive call - return this->gen_code (t, f, temp); - } // end of switch - //break; unreachable statement! - } - // the enclosing structure will be variable length if the field's type is - // variable length - bs->size_type (type->size_type ()); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_state_typedef.cpp b/TAO/TAO_IDL/be/be_state_typedef.cpp deleted file mode 100644 index c43f77381ed..00000000000 --- a/TAO/TAO_IDL/be/be_state_typedef.cpp +++ /dev/null @@ -1,370 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_state_typedef.cpp -// -// = DESCRIPTION -// state based code generation for typedefs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -// return type for typedef -be_state_typedef::be_state_typedef (void) -{ -} - -// generate code for structure member -int -be_state_typedef::gen_code (be_type *bt, be_decl *d, be_type *type) -{ - TAO_OutStream *os; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - be_typedef *tdef; // typedef node - be_decl *scope; // enclosing scope in which the typedef occurs - - switch (cg->state ()) - { - case TAO_CodeGen::TAO_TYPEDEF_CH: - os = cg->client_header (); // set the stream to be the client header - break; - case TAO_CodeGen::TAO_TYPEDEF_CI: - os = cg->client_inline (); - break; - case TAO_CodeGen::TAO_TYPEDEF_CS: - os = cg->client_stubs (); - break; - default: - return -1; - } // end of outermost switch - - - tdef = be_typedef::narrow_from_decl (d); // downcast to typedef node - if (!tdef) - return -1; - - scope = be_scope::narrow_from_scope (tdef->defined_in ())->decl (); - - if (!type) // not a recursive call - type = bt; - else // recursively called thru a typedef. "type" will have the most - // primitive - // base class of the typedef - ACE_ASSERT (bt->node_type () == AST_Decl::NT_typedef); - - // the typedef node has the same size type as its base type - tdef->size_type (bt->size_type ()); - - switch (type->node_type ()) - { - case AST_Decl::NT_interface: // type is an obj reference - case AST_Decl::NT_interface_fwd: // type is an obj reference - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_TYPEDEF_CH: - { - os->indent (); // start from current indentation - - // typedef of an interface results in 3 typedefs as shown below - *os << "typedef " << bt->nested_type_name (scope) << " " << - d->local_name () << ";" << nl; - *os << "typedef " << bt->nested_type_name (scope, "_ptr") << " " << - d->local_name () << "_ptr;" << nl; - *os << "typedef " << bt->nested_type_name (scope, "_var") << " " << - d->local_name () << "_var;" << nl; - *os << "typedef " << bt->nested_type_name (scope, "_out") << " " << - d->local_name () << "_out;\n\n"; - } - break; - default: // nothing to do for other cases - break; - } // end of switch state - } - break; - case AST_Decl::NT_pre_defined: // type is predefined type - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_TYPEDEF_CH: - { - be_predefined_type *pd = be_predefined_type::narrow_from_decl (type); - - if (!pd) - return -1; - os->indent (); // start from current indentation - *os << "typedef " << bt->nested_type_name (scope) << " " << - d->local_name () << ";"; - // if the predefined type is an ANY, we also define a typedef to _var - if (pd->pt () == AST_PredefinedType::PT_any) - { - *os << nl; - *os << "typedef " << bt->name () << "_var " << d->local_name - () << "_var;"; - } - else if (pd->pt () == AST_PredefinedType::PT_pseudo) - { - // pseudo object - *os << "typedef " << bt->nested_type_name (scope, "_ptr") << - " " << d->local_name () << "_ptr;" << nl; - *os << "typedef " << bt->nested_type_name (scope, "_var") << - " " << d->local_name () << "_var;" << nl; - } - *os << "typedef " << bt->nested_type_name (scope, "_out") << " " - << d->local_name () << "_out;\n\n"; - } // end of case - break; - default: // nothing to do for other cases - break; - } // end switch - } - break; - case AST_Decl::NT_string: // type is a string - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_TYPEDEF_CH: - { - os->indent (); // start from current indentation - if (bt->node_type () == AST_Decl::NT_typedef) - { - *os << "typedef " << bt->nested_type_name (scope) << " " << - d->local_name () << ";" << nl; - *os << "typedef " << bt->nested_type_name (scope, "_var") << - " " << d->local_name () << "_var;" << nl; - *os << "typedef " << bt->nested_type_name (scope, "_out") << - " " << d->local_name () << "_out;\n\n"; - } - else - { - *os << "typedef CORBA::String " << d->local_name () << ";" << - nl; - *os << "typedef CORBA::String_var " << d->local_name - () << "_var;" << nl; - *os << "typedef CORBA::String_out " << d->local_name - () << "_out;\n\n"; - } - } - break; - default: // nothing to do for the rest of the cases - break; - } // end switch state - } - break; - case AST_Decl::NT_enum: // type is an enum - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_TYPEDEF_CH: - { - os->indent (); // start from current indentation - // if we are not here recursively, then we need to generate the - // definition first - if (bt->node_type () != AST_Decl::NT_typedef) - { - if (bt->gen_client_header () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_state_typedef - enum gen failed\n"), -1); - } - } - *os << "typedef " << bt->nested_type_name (scope) << " " << - d->local_name () << ";" << nl; - *os << "typedef " << bt->nested_type_name (scope, "_out") << " " - << d->local_name () << "_out;\n\n"; - } - break; - default: - break; - } // end of switch - } - break; - // these are all anonymous types - case AST_Decl::NT_array: // type is an array - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_TYPEDEF_CH: - { - // if we are not here recursively, then we need to generate the - // definition first i.e., this typedef had its immediate base - // class that was an array declaration. The code for arrays will - // handle all the code generation. We just prepend the word - // "typedef". - if (bt->node_type () != AST_Decl::NT_typedef) - { - os->indent (); - *os << "typedef "; - if (bt->gen_client_header () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_state_typedef - array gen failed\n"), -1); - } - } - else - { - // we are a typedef node whose immediate base class is also a - // typedefed node to some array node. We simply output a - // number of typedef statements - os->indent (); - *os << "typedef " << bt->nested_type_name (scope) << " " << - d->local_name () << ";" << nl; - *os << "typedef " << bt->nested_type_name (scope, "_slice") << - " " << d->local_name () << "_slice;" << nl; - *os << "typedef " << bt->nested_type_name (scope, "_var") << " " - << d->local_name () << "_var;" << nl; - *os << "typedef " << bt->nested_type_name (scope, "_out") << " " - << d->local_name () << "_out;" << nl; - *os << "typedef " << bt->nested_type_name (scope, "_forany") << " " - << d->local_name () << "_forany;" << nl; - - // typedefs for the auxiliary methods. If we are nested inside - // some scope, these methods become static to the enclosing scope - if (d->is_nested ()) - *os << "static "; - *os << bt->nested_type_name (scope) << "_slice* " << d->local_name () << - "_alloc (void);" << nl; - if (d->is_nested ()) - *os << "static "; - *os << bt->nested_type_name (scope, "_slice") << " *" << - d->local_name () << "_dup (" - << bt->nested_type_name (scope) << "_slice* " << ");" << nl; - if (d->is_nested ()) - *os << "static "; - *os << "void " << bt->nested_type_name (scope) << "_free (" << - d->name () << "_slice *);\n\n"; - } - } - break; - case TAO_CodeGen::TAO_TYPEDEF_CI: - { - // if we are not here recursively, then we need to generate the - // definition first - if (bt->node_type () != AST_Decl::NT_typedef) - { - if (bt->gen_client_inline () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_state_typedef - struct/union/seq gen failed\n"), - -1); - } - } - } - break; - case TAO_CodeGen::TAO_TYPEDEF_CS: - { - // if we are not here recursively, then we need to generate the - // definition first - if (bt->node_type () != AST_Decl::NT_typedef) - { - if (bt->gen_client_stubs () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_state_typedef - struct/union/seq gen failed\n"), - -1); - } - } - } - break; - default: - break; - } // end of switch - } - break; - case AST_Decl::NT_sequence: // type is a sequence - case AST_Decl::NT_struct: // type is a struct - case AST_Decl::NT_union: // type is a union - { - switch (cg->state ()) - { - case TAO_CodeGen::TAO_TYPEDEF_CH: - { - // if we are not here recursively, then we need to generate the - // definition first - if (bt->node_type () != AST_Decl::NT_typedef) - { - if (bt->gen_client_header () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_state_typedef - struct/union/seq gen failed\n"), - -1); - } - } - os->indent (); // start from current indentation - *os << "typedef " << bt->nested_type_name (scope) << " " << - d->local_name () << ";" << nl; - *os << "typedef " << bt->nested_type_name (scope, "_var") << " " - << d->local_name () << "_var;" << nl; - *os << "typedef " << bt->nested_type_name (scope, "_out") << " " - << d->local_name () << "_out;\n\n"; - } - break; - case TAO_CodeGen::TAO_TYPEDEF_CI: - { - // if we are not here recursively, then we need to generate the - // definition first - if (bt->node_type () != AST_Decl::NT_typedef) - { - if (bt->gen_client_inline () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_state_typedef - struct/union/seq gen failed\n"), - -1); - } - } - } - break; - case TAO_CodeGen::TAO_TYPEDEF_CS: - { - // if we are not here recursively, then we need to generate the - // definition first - if (bt->node_type () != AST_Decl::NT_typedef) - { - if (bt->gen_client_stubs () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_state_typedef - struct/union/seq gen failed\n"), - -1); - } - } - } - break; - default: - break; - } // end of switch state - } - break; - case AST_Decl::NT_except: // type is an exception - { - // XXXASG TODO: is this allowed ??? - } - break; - case AST_Decl::NT_typedef: // type is a typedef - { - be_type *temp; - be_typedef *t = be_typedef::narrow_from_decl (bt); - - if (!t) - return -1; - - temp = t->primitive_base_type (); - // make a recursive call - return this->gen_code (t, tdef, temp); - } // end of case - //break; unreachable statement! - } // end of switch - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_state_union.cpp b/TAO/TAO_IDL/be/be_state_union.cpp deleted file mode 100644 index ad9d894bb56..00000000000 --- a/TAO/TAO_IDL/be/be_state_union.cpp +++ /dev/null @@ -1,1146 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_state_union.cpp -// -// = DESCRIPTION -// state based code generation for unions. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -be_state_union_disctypedefn_ch::be_state_union_disctypedefn_ch (void) -{ -} - -// generate code for union discriminant type in client header -int -be_state_union_disctypedefn_ch::gen_code (be_type *bt, be_decl *d, be_type *type) -{ - TAO_OutStream *os; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - be_union *bu; - - bu = be_union::narrow_from_decl (d); // downcast to union type - if (!bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_disctypedefn_ch::" - "gen_code - " - "bad union node\n"), -1); - } - - if (!type) // not a recursive call - type = bt; - else // recursively called thru a typedef. "type" will have the most primitive - // base class of the typedef - ACE_ASSERT (bt->node_type () == AST_Decl::NT_typedef); - - os = cg->client_header (); // get client header stream - - // generate code based on type. For every case, first downcast to the - // appropriate type. If the downcast fails, return error, else proceed. In - // some cases, the type itself may need code generation, e.g., anonymous - // struct types. - switch (type->node_type ()) - { - case AST_Decl::NT_interface: // type is an obj reference - case AST_Decl::NT_string: // type is a string - case AST_Decl::NT_array: // type is an array - case AST_Decl::NT_sequence: // type is a sequence - case AST_Decl::NT_struct: // type is a struct - case AST_Decl::NT_union: // type is a union - case AST_Decl::NT_except: // type is an exception - // all these cases are syntax errors which the front-end should have - // flagged as error cases - return -1; - case AST_Decl::NT_pre_defined: // type is predefined type - case AST_Decl::NT_enum: // type is an enum - { - // if the discriminant is an enum, first generate the enum - // definition. However, check that we are not inside a recursive call - if (bt->node_type () == AST_Decl::NT_enum) - if (bt->gen_client_header () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_disctypedefn_ch::" - "gen_code - " - "codegen for discrim failed\n"), -1); - } - - os->indent (); - // the set method - *os << "void _d (" << bt->nested_type_name (bu) << ");" << nl; - // the get method - *os << bt->nested_type_name (bu) << " _d (void) const;\n\n"; - } - break; - case AST_Decl::NT_typedef: // type is a typedef - { - // a scoped name must result in one of the allowed types. Hopefully the - // front-end has done a good job of ensuring this. - be_type *temp; // most primitive base type - be_typedef *t = be_typedef::narrow_from_decl (bt); - if (!t) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_disctypedefn_ch::" - "gen_code - " - "bad typedef node\n"), -1); - } - - temp = t->primitive_base_type (); - return this->gen_code (t, d, temp); - } - } // end of switch - return 0; -} - -be_state_union_disctypedefn_ci::be_state_union_disctypedefn_ci (void) -{ -} - -// generate code for union discriminant type in client inline -int -be_state_union_disctypedefn_ci::gen_code (be_type *bt, be_decl *d, be_type *type) -{ - TAO_OutStream *os; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - be_union *bu; - - bu = be_union::narrow_from_decl (d); // downcast to union type - if (!bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_disctypedefn_ci::" - "gen_code - " - "bad union node\n"), -1); - } - - if (!type) // not a recursive call - type = bt; - else // recursively called thru a typedef. "type" will have the most primitive - // base class of the typedef - ACE_ASSERT (bt->node_type () == AST_Decl::NT_typedef); - - os = cg->client_inline (); // get client inline stream - - // generate code based on type. For every case, first downcast to the - // appropriate type. If the downcast fails, return error, else proceed. In - // some cases, the type itself may need code generation, e.g., anonymous - // struct types. - switch (type->node_type ()) - { - case AST_Decl::NT_interface: // type is an obj reference - case AST_Decl::NT_string: // type is a string - case AST_Decl::NT_array: // type is an array - case AST_Decl::NT_sequence: // type is a sequence - case AST_Decl::NT_struct: // type is a struct - case AST_Decl::NT_union: // type is a union - case AST_Decl::NT_except: // type is an exception - // all these cases are syntax errors which the front-end should have - // flagged as error - return -1; - case AST_Decl::NT_pre_defined: // type is predefined type - case AST_Decl::NT_enum: // type is an enum - case AST_Decl::NT_typedef: // type is a typedef - { - os->indent (); - // the set method - *os << "// accessor to set the discriminant" << nl; - *os << "ACE_INLINE void" << nl; - *os << bu->name () << "::_d (" << bt->name () << - " discval)" << nl; - *os << "{\n"; - os->incr_indent (); - *os << "this->disc_ = discval;\n"; - os->decr_indent (); - *os << "}" << nl; - // the get method - *os << "// accessor to get the discriminant" << nl; - *os << "ACE_INLINE " << bt->name () << nl; - *os << bu->name () << "::_d (void) const" << nl; - *os << "{\n"; - os->incr_indent (); - *os << "return this->disc_;\n"; - os->decr_indent (); - *os << "}\n\n"; - } - break; - } // end of switch - return 0; -} - -be_state_union_public_ch::be_state_union_public_ch (void) -{ -} - -// generate code for union branch members in client header. This involves -// generating the set/get methods corresponding to the members -int -be_state_union_public_ch::gen_code (be_type *bt, be_decl *d, be_type *type) -{ - TAO_OutStream *os; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - be_union_branch *ub; // union branch member - be_union *bu; // enclosing union - - os = cg->client_header (); // get client header stream - ub = be_union_branch::narrow_from_decl (d); // downcast to union branch node - if (!ub) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_public_ch::" - "gen_code - " - "bad union member\n"), -1); - } - - bu = be_union::narrow_from_scope (ub->defined_in ()); - if (bu == NULL) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_public_ch::" - "gen_code - " - "bad union node\n"), -1); - } - - if (!type) // not a recursive call - type = bt; - else // recursively called thru a typedef. "type" will have the most primitive - // base class of the typedef - ACE_ASSERT (bt->node_type () == AST_Decl::NT_typedef); - - // codegen based on node type and the state we are in - switch (type->node_type ()) - { - case AST_Decl::NT_interface: // type is an obj reference - { - os->indent (); // start from current indentation - *os << "void " << ub->local_name () << " (" << bt->nested_type_name - (bu, "_ptr") << ");// set" << nl; - *os << bt->nested_type_name (bu, "_ptr") << " " << ub->local_name () << - " (void) const; // get method\n\n"; - } - break; - case AST_Decl::NT_pre_defined: // type is predefined type - { - be_predefined_type *bpd = be_predefined_type::narrow_from_decl (type); - if (!bpd) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_public_ch::" - "gen_code - " - "bad predefined type\n"), -1); - } - - if (bpd->pt () == AST_PredefinedType::PT_pseudo) - { - os->indent (); // start from current indentation - *os << "void " << ub->local_name () << " (" << bt->nested_type_name - (bu) << "_ptr);// set" << nl; - *os << bt->nested_type_name (bu) << "_ptr " << ub->local_name () << - " (void) const; // get method\n\n"; - } - else - { - os->indent (); // start from current indentation - *os << "void " << ub->local_name () << " (" << bt->nested_type_name - (bu) << ");// set" << nl; - *os << bt->nested_type_name (bu) << " " << ub->local_name () << - " (void) const; // get method\n\n"; - } - } - break; - case AST_Decl::NT_enum: // type is an enum - { - // XXXASG - TODO - what if we have a pseudo obj? - // if the type is an enum, we generate its defn first - if (bt->node_type () == AST_Decl::NT_enum) - if (bt->gen_client_header () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_public_ch::" - "gen_code - " - "bad union member\n"), -1); - } - - os->indent (); // start from current indentation - *os << "void " << ub->local_name () << " (" << bt->nested_type_name (bu) - << ");// set" << nl; - *os << bt->nested_type_name (bu) << " " << ub->local_name () << - " (void) const; // get method\n\n"; - } - break; - case AST_Decl::NT_string: // type is a string - { - os->indent (); // start from current indentation - if (bt->node_type () == AST_Decl::NT_typedef) - { - // three methods to set the string value - *os << "void " << ub->local_name () << " (" << bt->nested_type_name - (bu) << "); // set" << nl; - *os << "void " << ub->local_name () << " (const " << - bt->nested_type_name (bu) << "); // set" - << nl; - *os << "void " << ub->local_name () << - " (const " << bt->nested_type_name (bu, "_var") << " &); // set" << - nl; - *os << "const " << bt->nested_type_name (bu) << " " << - ub->local_name () << " (void) const; // get method\n\n"; - } - else - { - // three methods to set the string value - *os << "void " << ub->local_name () << " (char *); // set" << nl; - *os << "void " << ub->local_name () << " (const char *); // set" - << nl; - *os << "void " << ub->local_name () << - " (const CORBA::String_var&); // set" << nl; - *os << "const char *" << ub->local_name () << - " (void) const; // get method\n\n"; - } - } - break; - case AST_Decl::NT_array: // type is an array - { - // generate code for the array. So let the array handle code - // generation. Check if this is not a recursive call - if (bt->node_type () != AST_Decl::NT_typedef) - if (bt->gen_client_header () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_public_ch::" - "gen_code - " - "codegen for array failed\n"), -1); - } - - os->indent (); - *os << "void " << ub->local_name () << " (" << bt->nested_type_name - (bu) << ");// set" << nl; - *os << bt->nested_type_name (bu, "_slice") << " *" << ub->local_name () << - " (void) const; // get method\n\n"; - - } - break; - case AST_Decl::NT_sequence: // type is a sequence - case AST_Decl::NT_struct: // type is a struct - case AST_Decl::NT_union: // type is a union - { - // generate defn for this aggregate unless we are recursively called - if (bt->node_type () != AST_Decl::NT_typedef) - if (bt->gen_client_header () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_public_ch::" - "gen_code - " - "codegen for type failed\n"), -1); - } - - os->indent (); - *os << "void " << ub->local_name () << " (const " << - bt->nested_type_name (bu) << " &);// set" << nl; - *os << "const " << bt->nested_type_name (bu) << " &" << ub->local_name - () << " (void) const; // get method (read only)" << nl; - *os << bt->nested_type_name (bu) << " &" << ub->local_name () << - " (void); // get method (read/write only)\n\n"; - } - break; - case AST_Decl::NT_except: // type is an exception - { - // XXXASG: Is this case valid ??? - } - break; - case AST_Decl::NT_typedef: // type is a typedef - { - be_type *temp; // most primitive base type - be_typedef *t = be_typedef::narrow_from_decl (bt); - - if (!t) - return -1; - - temp = t->primitive_base_type (); - // make a recursive call - return this->gen_code (t, ub, temp); - } - } // end of switch - - // enclosing union is variable if the member is variable - bu->size_type (type->size_type ()); - - return 0; -} - -be_state_union_public_ci::be_state_union_public_ci (void) -{ -} - -// generate code for union branch members in client inline. This involves -// generating the set/get methods corresponding to the members -int -be_state_union_public_ci::gen_code (be_type *bt, be_decl *d, be_type *type) -{ - TAO_OutStream *os; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - be_union_branch *ub; // union branch member - be_union *bu; // enclosing union - - os = cg->client_inline (); // get client inline stream - ub = be_union_branch::narrow_from_decl (d); // downcast to union branch node - if (!ub) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_public_ci::" - "gen_code - " - "bad union member\n"), -1); - } - - bu = be_union::narrow_from_scope (ub->defined_in ()); - if (bu == NULL) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_public_ci::" - "gen_code - " - "bad union node\n"), -1); - } - - if (!type) // not a recursive call - type = bt; - else // recursively called thru a typedef. "type" will have the most primitive - // base class of the typedef - ACE_ASSERT (bt->node_type () == AST_Decl::NT_typedef); - - switch (type->node_type ()) - { - case AST_Decl::NT_pre_defined: // type is predefined type - case AST_Decl::NT_enum: // type is an enum - case AST_Decl::NT_array: // type is an array - case AST_Decl::NT_interface: // type is an obj reference - { - // for array, generate inline methods if any - // We first need to generate code for this aggregate type. Check - // if we are not called recursively thru a typedef - if (bt->node_type () == AST_Decl::NT_array - && !bt->imported ()) - if (bt->gen_client_inline () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_public_ci::" - "gen_code - " - "codegen for array failed\n"), -1); - } - - // set method - os->indent (); // start from current indentation - *os << "// accessor to set the member" << nl; - *os << "ACE_INLINE void" << nl; - *os << bu->name () << "::" << ub->local_name () << " (" << bt->name (); - if (type->node_type () == AST_Decl::NT_interface) - { - // if it is an interface node, we use _ptr as a suffix for the type - *os << "_ptr"; - } - *os << " val)// set" << nl; - *os << "{\n"; - os->incr_indent (); - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << nl; - } - else - { - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - nl; - } - *os << "// set the value" << nl; - if (type->node_type () == AST_Decl::NT_interface) - { - // the private data member is a pointer type - *os << "*this->" << ub->local_name () << "_ = val;\n"; - } - else - { - *os << "this->" << ub->local_name () << "_ = val;\n"; - } - } - else - { - // default label - // XXXASG - TODO - } - os->decr_indent (); - *os << "}" << nl; - - // get method - *os << "// retrieve the member" << nl; - *os << "ACE_INLINE " << bt->name (); - if (type->node_type () == AST_Decl::NT_interface) - { - // for interface type, return a _ptr type - *os << "_ptr"; - } - else if (type->node_type () == AST_Decl::NT_array) - { - // for an array, return a _slice* type - *os << "_slice *"; - } - *os << nl; - *os << bu->name () << "::" << ub->local_name () << - " (void) const" << nl; - *os << "{\n"; - os->incr_indent (); - if (type->node_type () == AST_Decl::NT_interface) - { - *os << "return *this->" << ub->local_name () << "_;\n"; - } - else - { - *os << "return this->" << ub->local_name () << "_;\n"; - } - os->decr_indent (); - *os << "}\n\n"; - } - break; - case AST_Decl::NT_string: // type is a string - { - // three methods to set the string value - - // (1) set method from char* - os->indent (); // start from current indentation - *os << "// accessor to set the member" << nl; - *os << "ACE_INLINE void" << nl; - if (bt->node_type () == AST_Decl::NT_typedef) - { - *os << bu->name () << "::" << ub->local_name () << " (" << bt->name - () << " val)" << nl; - } - else - { - *os << bu->name () << "::" << ub->local_name () << " (char *val)" - << nl; - } - *os << "{\n"; - os->incr_indent (); - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << nl; - } - else - { - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - nl; - } - *os << "// set the value" << nl; - *os << "if (!this->" << ub->local_name () << "_) // does not exist" - << nl ; - *os << " this->" << ub->local_name () << - "_ = new CORBA::String_var (val);" << nl; - *os << "else" << nl; - *os << " *this->" << ub->local_name () << "_ = val;\n"; - } - else - { - // default label - // XXXASG - TODO - } - os->decr_indent (); - *os << "}" << nl; - - // (2) set method from const char * - *os << "// accessor to set the member" << nl; - *os << "ACE_INLINE void" << nl; - if (bt->node_type () == AST_Decl::NT_typedef) - { - *os << bu->name () << "::" << ub->local_name () << " (const " << - bt->name () << " val)" << nl; - } - else - { - *os << bu->name () << "::" << ub->local_name () << - " (const char *val)" << nl; - } - *os << "{\n"; - os->incr_indent (); - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << nl; - } - else - { - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - nl; - } - *os << "// set the value" << nl; - *os << "if (!this->" << ub->local_name () << "_) // does not exist" - << nl ; - *os << " this->" << ub->local_name () << - "_ = new CORBA::String_var (val);" << nl; - *os << "else" << nl; - *os << " *this->" << ub->local_name () << "_ = val;\n"; - } - else - { - // default label - // XXXASG - TODO - } - os->decr_indent (); - *os << "}" << nl; - - // (3) set from const String_var& - *os << "// accessor to set the member" << nl; - *os << "ACE_INLINE void" << nl; - if (bt->node_type () == AST_Decl::NT_typedef) - { - *os << bu->name () << "::" << ub->local_name () << " (const " << - bt->name () << "_var &val)" << nl; - } - else - { - *os << bu->name () << "::" << ub->local_name () << - " (const CORBA::String_var &val)" << nl; - } - *os << "{\n"; - os->incr_indent (); - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << nl; - } - else - { - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - nl; - } - *os << "// set the value" << nl; - *os << "if (!this->" << ub->local_name () << "_) // does not exist" - << nl ; - *os << " this->" << ub->local_name () << - "_ = new CORBA::String_var (val);" << nl; - *os << "else" << nl; - *os << " *this->" << ub->local_name () << "_ = val;\n"; - } - else - { - // default label - // XXXASG - TODO - } - os->decr_indent (); - *os << "}" << nl; - - if (bt->node_type () == AST_Decl::NT_typedef) - { - *os << "ACE_INLINE const " << bt->name () << nl; - } - else - { - *os << "ACE_INLINE const char *" << nl; - } - *os << bu->name () << "::" << ub->local_name () << - " (void) const // get method" << nl; - *os << "{\n"; - os->incr_indent (); - *os << "return *this->" << ub->local_name () << "_;\n"; - os->decr_indent (); - *os << "}\n\n"; - } - break; - case AST_Decl::NT_sequence: // type is a sequence - case AST_Decl::NT_union: // type is a union - { - // We first need to generate code for this aggregate type. Check - // if we are not called recursively thru a typedef - if (bt->node_type () != AST_Decl::NT_typedef - && !bt->imported ()) - if (bt->gen_client_inline () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_public_ci::" - "gen_code - " - "codegen for type failed\n"), -1); - } - - os->indent (); - // This case has to be handled differently from structs because the data - // member is a pointer - - // (1) set from a const - *os << "// accessor to set the member" << nl; - *os << "ACE_INLINE void" << nl; - *os << bu->name () << "::" << ub->local_name () << - " (const " << bt->name () << " &val)" << nl; - *os << "{\n"; - os->incr_indent (); - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << nl; - } - else - { - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - nl; - } - *os << "// set the value" << nl; - *os << "*this->" << ub->local_name () << "_ = val;\n"; - } - else - { - // default label - // XXXASG - TODO - } - os->decr_indent (); - *os << "}" << nl; - - // readonly get method - *os << "// readonly get method " << nl; - *os << "ACE_INLINE const " << bt->name () << " &" << nl; - *os << bu->name () << "::" << ub->local_name () << " (void) const" << nl; - *os << "{\n"; - os->incr_indent (); - *os << "return *this->" << ub->local_name () << "_;\n"; - os->decr_indent (); - *os << "}" << nl; - - // read/write get method - *os << "// read/write get method " << nl; - *os << "ACE_INLINE " << bt->name () << " &" << nl; - *os << bu->name () << "::" << ub->local_name () << " (void)" << nl; - *os << "{\n"; - os->incr_indent (); - *os << "return *this->" << ub->local_name () << "_;\n"; - os->decr_indent (); - *os << "}" << nl; - - } - break; - case AST_Decl::NT_struct: // type is a struct - { - // We first need to generate code for this aggregate type. Check - // if we are not called recursively thru a typedef - if (bt->node_type () != AST_Decl::NT_typedef - && !bt->imported ()) - if (bt->gen_client_inline () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_public_ci::" - "gen_code - " - "codegen for struct failed\n"), -1); - } - - os->indent (); - - // (1) set from a const - *os << "// accessor to set the member" << nl; - *os << "ACE_INLINE void" << nl; - *os << bu->name () << "::" << ub->local_name () << - " (const " << bt->name () << " &val)" << nl; - *os << "{\n"; - os->incr_indent (); - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << nl; - } - else - { - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - nl; - } - *os << "// set the value" << nl; - *os << "this->" << ub->local_name () << "_ = val;\n"; - } - else - { - // default label - // XXXASG - TODO - } - os->decr_indent (); - *os << "}" << nl; - - // readonly get method - *os << "// readonly get method " << nl; - *os << "ACE_INLINE const " << bt->name () << " &" << nl; - *os << bu->name () << "::" << ub->local_name () << " (void) const" << nl; - *os << "{\n"; - os->incr_indent (); - *os << "return this->" << ub->local_name () << "_;\n"; - os->decr_indent (); - *os << "}" << nl; - - // read/write get method - *os << "// read/write get method " << nl; - *os << "ACE_INLINE " << bt->name () << " &" << nl; - *os << bu->name () << "::" << ub->local_name () << " (void)" << nl; - *os << "{\n"; - os->incr_indent (); - *os << "return this->" << ub->local_name () << "_;\n"; - os->decr_indent (); - *os << "}" << nl; - - } - break; - case AST_Decl::NT_except: // type is an exception - { - // XXXASG: Is this case valid ??? - } - break; - case AST_Decl::NT_typedef: // type is a typedef - { - be_type *temp; // most primitive base type - be_typedef *t = be_typedef::narrow_from_decl (bt); - - if (!t) - return -1; - - temp = t->primitive_base_type (); - // make a recursive call - return this->gen_code (t, ub, temp); - } - } // end of switch - - return 0; -} - -be_state_union_public_cs::be_state_union_public_cs (void) -{ -} - -// generate code for union branch members in client header. This involves -// generating the set/get methods corresponding to the members -int -be_state_union_public_cs::gen_code (be_type *bt, be_decl *d, be_type *type) -{ - TAO_OutStream *os; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - be_union_branch *ub; // union branch member - be_union *bu; // enclosing union - - os = cg->client_stubs (); // get client stubs stream - ub = be_union_branch::narrow_from_decl (d); // downcast to union branch node - if (!ub) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_public_cs::" - "gen_code - " - "bad union member\n"), -1); - } - - bu = be_union::narrow_from_scope (ub->defined_in ()); - if (!bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_public_cs::" - "gen_code - " - "bad union member\n"), -1); - } - - if (!type) // not a recursive call - type = bt; - else // recursively called thru a typedef. "type" will have the most primitive - // base class of the typedef - ACE_ASSERT (bt->node_type () == AST_Decl::NT_typedef); - - switch (cg->state ()) - { - case TAO_CodeGen::TAO_UNION_PUBLIC_CS: - { - switch (type->node_type ()) - { - case AST_Decl::NT_interface: // type is an obj reference - case AST_Decl::NT_pre_defined: // type is predefined type - case AST_Decl::NT_string: // type is a string - { - // nothing - } - break; - case AST_Decl::NT_enum: // type is an enum - { - if (bt->node_type () == AST_Decl::NT_enum) - if (bt->gen_client_stubs () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_public_cs::" - "gen_code - " - "codegen for type failed\n"), -1); - } - } - break; - case AST_Decl::NT_array: // type is an array - { - // generate code for the array. So let the array handle code - // generation. Check if this is not a recursive call - if (bt->node_type () != AST_Decl::NT_typedef) - if (bt->gen_client_stubs () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_public_cs::" - "gen_code - " - "codegen for type failed\n"), -1); - } - - } - break; - case AST_Decl::NT_sequence: // type is a sequence - case AST_Decl::NT_struct: // type is a struct - case AST_Decl::NT_union: // type is a union - { - // generate defn for this aggregate unless we are recursively called - if (bt->node_type () != AST_Decl::NT_typedef) - if (bt->gen_client_stubs () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_public_cs::" - "gen_code - " - "codegen for type failed\n"), -1); - } - } - break; - case AST_Decl::NT_except: // type is an exception - { - // XXXASG: Is this case valid ??? - } - break; - case AST_Decl::NT_typedef: // type is a typedef - { - be_type *temp; // most primitive base type - be_typedef *t = be_typedef::narrow_from_decl (bt); - - if (!t) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_private_cs::" - "gen_code - " - "bad typedef\n"), -1); - } - - temp = t->primitive_base_type (); - // make a recursive call - return this->gen_code (t, ub, temp); - } - } // end of switch node type - } - break; - case TAO_CodeGen::TAO_UNION_PUBLIC_ASSIGN_CS: - { - // This state is used when we are generating the copy ctor and - // assignment operator for the union. - // Individual assignment of the members takes place inside a case - // statement because the type of member assigned is based on the value - // of the discriminant - os->indent (); - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "case " << ub->label ()->label_val ()->n () << ":\n"; - } - else - { - *os << "case " << ub->label ()->label_val () << ":\n"; - } - os->incr_indent (); - *os << "this->" << ub->local_name () << "_ = u." << ub->local_name () - << "_;" << nl; - *os << "break;\n"; - os->decr_indent (0); - } - break; - } - - return 0; -} - -be_state_union_private_ch::be_state_union_private_ch (void) -{ -} - -int -be_state_union_private_ch::gen_code (be_type *bt, be_decl *d, be_type *type) -{ - TAO_OutStream *os; // output stream - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - be_union_branch *ub; // union branch member - be_union *bu; // enclosing union - - os = cg->client_header (); // get client header stream - ub = be_union_branch::narrow_from_decl (d); // downcast to union branch node - if (!ub) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_private_ch::" - "gen_code - " - "bad union member\n"), -1); - } - - bu = be_union::narrow_from_scope (ub->defined_in ()); - if (!bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_private_ch::" - "gen_code - " - "bad union\n"), -1); - } - - if (!type) // not a recursive call - type = bt; - else // recursively called thru a typedef. "type" will have the most primitive - // base class of the typedef - ACE_ASSERT (bt->node_type () == AST_Decl::NT_typedef); - - // generate code based on type. For every case, first downcast to the - // appropriate type. If the downcast fails, return error, else proceed. In - // some cases, the type itself may need code generation, e.g., anonymous - // struct types. - switch (type->node_type ()) - { - case AST_Decl::NT_interface: // type is an obj reference - { - os->indent (); // start from current indentation - // C++ does not allow an object declaration inside a union. Hence we - // must have a pointer. This changes some of the methods - *os << bt->nested_type_name (bu, "_var") << " *" << ub->local_name () << - "_;\n"; - } - break; - case AST_Decl::NT_pre_defined: // type is predefined type - { - be_predefined_type *bpd = be_predefined_type::narrow_from_decl (type); - if (!bpd) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_state_union_private_ch::" - "gen_code - " - "bad predefined type\n"), -1); - } - - if (bpd->pt () == AST_PredefinedType::PT_pseudo) - { - os->indent (); // start from current indentation - *os << bt->nested_type_name (bu) << "_var " << ub->local_name () << - "_;\n"; - } - else - { - os->indent (); // start from current indentation - *os << bt->nested_type_name (bu) << " " << ub->local_name () << - "_;\n"; - } - } - break; - case AST_Decl::NT_enum: // type is an enum - { - os->indent (); // start from current indentation - *os << bt->nested_type_name (bu) << " " << ub->local_name () << - "_;\n"; - } - break; - case AST_Decl::NT_string: // type is a string - { - os->indent (); // start from current indentation - // C++ does not allow an object declaration inside a union. Hence we - // must have a pointer. This changes some of the methods - if (bt->node_type () == AST_Decl::NT_typedef) - { - *os << bt->nested_type_name (bu, "_var") << " *" << ub->local_name () << - "_;\n"; - } - else - { - *os << "CORBA::String_var *" << ub->local_name () << "_;\n"; - } - } - break; - case AST_Decl::NT_array: // type is an array - { - os->indent (); - *os << bt->nested_type_name (bu, "_slice") << " *" << ub->local_name () << - "_;\n"; - } - break; - case AST_Decl::NT_sequence: // type is a sequence - case AST_Decl::NT_union: // type is a union - { - os->indent (); - // C++ doesn't allow object instances inside unions, so we need a - // pointer - *os << bt->nested_type_name (bu) << " *" << ub->local_name () << "_;\n"; - } - break; - case AST_Decl::NT_struct: // type is a struct - { - os->indent (); - *os << bt->nested_type_name (bu) << " " << ub->local_name () << "_;\n"; - } - break; - case AST_Decl::NT_except: // type is an exception - { - // XXXASG: Is this case valid ??? - } - break; - case AST_Decl::NT_typedef: // type is a typedef - { - be_type *temp; // most primitive base type - be_typedef *t = be_typedef::narrow_from_decl (bt); - - if (!t) - return -1; - - temp = t->primitive_base_type (); - // make a recursive call - return this->gen_code (t, ub, temp); - } - } // end of switch - return 0; -} diff --git a/TAO/TAO_IDL/be/be_string.cpp b/TAO/TAO_IDL/be/be_string.cpp deleted file mode 100644 index ffc90137311..00000000000 --- a/TAO/TAO_IDL/be/be_string.cpp +++ /dev/null @@ -1,126 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_string.cpp -// -// = DESCRIPTION -// Extension of class AST_Array that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -/* - * BE_String - */ -be_string::be_string (void) -{ - this->size_type (be_decl::VARIABLE); // always the case -} - -be_string::be_string (AST_Expression *v) - : AST_String (v), - AST_Decl (AST_Decl::NT_string, - new UTL_ScopedName(new Identifier("string", 1, 0, I_FALSE), - NULL), - NULL) -{ - this->size_type (be_decl::VARIABLE); // always the case -} - -be_string::be_string (AST_Expression *v, long wide) - : AST_String (v, wide), - AST_Decl (AST_Decl::NT_string, - wide == 1 - ? new UTL_ScopedName(new Identifier("string",1,0,I_FALSE), - NULL) - : new UTL_ScopedName(new Identifier("wstring_t", - 1, - 0, - I_FALSE), - NULL), - NULL) -{ - this->size_type (be_decl::VARIABLE); // always the case -} - -// overriden method -void -be_string::compute_tc_name (void) -{ - // start with the head as the CORBA namespace - this->tc_name_ = new UTL_ScopedName (new Identifier ("CORBA", 1, 0, I_FALSE), - NULL); - - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_string", 1, 0, - I_FALSE), NULL)); -} - -int -be_string::gen_typecode (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - cs = cg->client_stubs (); - cs->indent (); // start from the current indentation level - // emit the enumeration - *cs << "CORBA::tk_string, " << nl; - *cs << this->max_size () << ", // string length\n"; - return 0; -} - -// compute typecode size -long -be_string::tc_size (void) -{ - // 4 bytes for enumeration, 4 bytes for storing string length - return 4 + 4; -} - -int -be_string::gen_encapsulation (void) -{ - return 0; -} - -long -be_string::tc_encap_len (void) -{ - if (this->encap_len_ == -1) - { - this->encap_len_ = 0; // no encapsulation - } - return this->encap_len_; -} - -int be_string::write_as_return (TAO_OutStream *stream, - be_type * /* type */) -{ - *stream << "char* "; - return 0; -} - -int -be_string::accept (be_visitor *visitor) -{ - return visitor->visit_string (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_string, AST_String, be_type) -IMPL_NARROW_FROM_DECL (be_string) diff --git a/TAO/TAO_IDL/be/be_structure.cpp b/TAO/TAO_IDL/be/be_structure.cpp deleted file mode 100644 index da3955e5425..00000000000 --- a/TAO/TAO_IDL/be/be_structure.cpp +++ /dev/null @@ -1,731 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_structure.cpp -// -// = DESCRIPTION -// Extension of class AST_Structure that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -/* - * BE_Structure - */ -be_structure::be_structure (void) -{ -} - -be_structure::be_structure (UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl (AST_Decl::NT_struct, n, p), - UTL_Scope (AST_Decl::NT_struct), - member_count_ (-1) -{ -} - -// compute total number of members -int -be_structure::compute_member_count (void) -{ - UTL_ScopeActiveIterator *si; // iterator - AST_Decl *d; // temp node - - this->member_count_ = 0; - - // if there are elements in this scope - if (this->nmembers () > 0) - { - // instantiate a scope iterator. - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - - while (!(si->is_done ())) - { - // get the next AST decl node - d = si->item (); - this->member_count_++; - si->next (); - } // end of while - delete si; // free the iterator object - } - return 0; -} - -// return the member count -int -be_structure::member_count (void) -{ - if (this->member_count_ == -1) - this->compute_member_count (); - - return this->member_count_; -} - -// generate the _var definition for ourself -int -be_structure::gen_var_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // names - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_var", this->local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the var definition (always in the client header). - // Depending upon the data type, there are some differences which we account - // for over here. - - ch->indent (); // start with whatever was our current indent level - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - // default constr - *ch << namebuf << " (void); // default constructor" << nl; - // constr - *ch << namebuf << " (" << local_name () << " *);" << nl; - // copy constructor - *ch << namebuf << " (const " << namebuf << - " &); // copy constructor" << nl; - // destructor - *ch << "~" << namebuf << " (void); // destructor" << nl; - *ch << nl; - // assignment operator from a pointer - *ch << namebuf << " &operator= (" << local_name () << " *);" << nl; - // assignment from _var - *ch << namebuf << " &operator= (const " << namebuf << " &);" << nl; - - // arrow operator - *ch << local_name () << " *operator-> (void);" << nl; - *ch << "const " << local_name () << " *operator-> (void) const;" << nl; - *ch << nl; - - // other extra types (cast operators, [] operator, and others) - *ch << "operator const " << local_name () << " &() const;" << nl; - *ch << "operator " << local_name () << " &();" << nl; - *ch << "operator " << local_name () << " &() const;" << nl; - *ch << "// in, inout, out, _retn " << nl; - // the return types of in, out, inout, and _retn are based on the parameter - // passing rules and the base type - if (this->size_type () == be_decl::FIXED) - { - *ch << "const " << local_name () << " &in (void) const;" << nl; - *ch << local_name () << " &inout (void);" << nl; - *ch << local_name () << " &out (void);" << nl; - *ch << local_name () << " _retn (void);" << nl; - } - else - { - *ch << "const " << local_name () << " &in (void) const;" << nl; - *ch << local_name () << " &inout (void);" << nl; - *ch << local_name () << " *&out (void);" << nl; - *ch << local_name () << " *_retn (void);" << nl; - } - - // generate an additional member function that returns the underlying pointer - *ch << local_name () << " *ptr (void) const;\n"; - - *ch << "\n"; - ch->decr_indent (); - - // generate the private section - *ch << "private:\n"; - ch->incr_indent (); - *ch << local_name () << " *ptr_;\n"; - ch->decr_indent (); - *ch << "};\n\n"; - - return 0; -} - -// implementation of the _var class. All of these get generated in the inline -// file -int -be_structure::gen_var_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _var names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_var", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_var", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // default constr - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << - " (void) // default constructor" << nl; - *ci << " " << ": ptr_ (0)" << nl; - *ci << "{}\n\n"; - - // constr from a pointer - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << name () << " *p)" << nl; - *ci << " : ptr_ (p)" << nl; - *ci << "{}\n\n"; - - // copy constructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (const " << fname << - " &p) // copy constructor" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "if (p.ptr_)" << nl; - *ci << " this->ptr_ = new " << this->name () << "(*p.ptr_);" << nl; - *ci << "else" << nl; - *ci << " this->ptr_ = 0;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // destructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::~" << lname << " (void) // destructor" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "delete this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from a pointer - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << name () << - " *p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "delete this->ptr_;" << nl; - *ci << "this->ptr_ = p;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from _var - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (const " << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "if (this != &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "delete this->ptr_;" << nl; - *ci << "this->ptr_ = new " << this->name () << " (*p.ptr_);\n"; - ci->decr_indent (); - *ci << "}" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // two arrow operators - ci->indent (); - *ci << "ACE_INLINE const " << this->name () << " *" << nl; - *ci << fname << "::operator-> (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << this->name () << " *" << nl; - *ci << fname << "::operator-> (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - 3 cast operator () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator const " << name () << - " &() const // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << name () << " &() // cast " << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << name () << " &() const// cast " << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // in, inout, out, and _retn - ci->indent (); - *ci << "ACE_INLINE const " << name () << " &" << nl; - *ci << fname << "::in (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << " &" << nl; - *ci << fname << "::inout (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // the out is handled differently based on our size type - ci->indent (); - if (this->size_type () == be_decl::VARIABLE) - { - *ci << "// mapping for variable size " << nl; - *ci << "ACE_INLINE " << name () << " *&" << nl; - *ci << fname << "::out (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "delete this->ptr_;" << nl; - *ci << "this->ptr_ = 0;" << nl; - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << " *" << nl; - *ci << fname << "::_retn (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << this->name () << " *tmp = this->ptr_;" << nl; - *ci << "this->ptr_ = 0;" << nl; - *ci << "return tmp;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - } - else - { - *ci << "// mapping for fixed size " << nl; - *ci << "ACE_INLINE " << name () << " &" << nl; - *ci << fname << "::out (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << nl; - *ci << fname << "::_retn (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - } - - // the additional ptr () member function - ci->indent (); - *ci << "ACE_INLINE " << name () << " *" << nl; - *ci << fname << "::ptr (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - return 0; -} - -// generate the _out definition -int -be_structure::gen_out_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // to hold the _out name - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_out", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the out definition (always in the client header) - ch->indent (); // start with whatever was our current indent level - - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - - // No default constructor - - // constructor from a pointer - *ch << namebuf << " (" << local_name () << " *&);" << nl; - // constructor from a _var & - *ch << namebuf << " (" << local_name () << "_var &);" << nl; - // constructor from a _out & - *ch << namebuf << " (" << namebuf << " &);" << nl; - // assignment operator from a _out & - *ch << namebuf << " &operator= (" << namebuf << " &);" << nl; - // assignment operator from a pointer &, cast operator, ptr fn, operator - // -> and any other extra operators - // assignment - *ch << namebuf << " &operator= (" << local_name () << " *);" << nl; - // operator () - *ch << "operator " << local_name () << " *&();" << nl; - // ptr fn - *ch << local_name () << " *&ptr (void);" << nl; - // operator -> - *ch << local_name () << " *operator-> (void);" << nl; - - *ch << "\n"; - ch->decr_indent (); - *ch << "private:\n"; - ch->incr_indent (); - *ch << local_name () << " *&ptr_;" << nl; - *ch << "// assignment from T_var not allowed" << nl; - *ch << "void operator= (const " << local_name () << "_var &);\n"; - - ch->decr_indent (); - *ch << "};\n\n"; - return 0; -} - -int -be_structure::gen_out_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _out names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_out", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_out", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - // generate the var implementation in the inline file - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // constr from a pointer - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << name () << " *&p)" << nl; - *ci << " : ptr_ (p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = 0;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // constructor from _var & - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << this->name () << - "_var &p) // constructor from _var" << nl; - *ci << " : ptr_ (p.out ())" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "delete this->ptr_;" << nl; - *ci << "this->ptr_ = 0;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // copy constructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << fname << - " &p) // copy constructor" << nl; - *ci << " : ptr_ (p.ptr_)" << nl; - *ci << "{}\n\n"; - - // assignment operator from _out & - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = p.ptr_;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment from _var is not allowed by a private declaration - - // assignment operator from pointer - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << this->name () << - " *p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = p;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - cast operator () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << this->name () << - " *&() // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // ptr function - ci->indent (); - *ci << "ACE_INLINE " << this->name () << " *&" << nl; - *ci << fname << "::ptr (void) // ptr" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // operator -> - ci->indent (); - *ci << "ACE_INLINE " << this->name () << " *" << nl; - *ci << fname << "::operator-> (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - - return 0; -} - -// generate typecode. -// Typecode for structures comprises the enumerated value followed by the -// encapsulation of the parameters - -int -be_structure::gen_typecode (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "CORBA::tk_struct, // typecode kind" << nl; - *cs << this->tc_encap_len () << ", // encapsulation length\n"; - // now emit the encapsulation - cs->incr_indent (0); - if (this->gen_encapsulation () == -1) - { - return -1; - } - cs->decr_indent (); - return 0; -} - -// generate encapsulation -// An encapsulation for ourselves will be necessary when we are part of some -// other IDL type and a typecode for that other type is being generated. This -// will comprise our typecode kind. IDL types with parameters will additionally -// have the encapsulation length and the entire typecode description -int -be_structure::gen_encapsulation (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - long i, arrlen; - long *arr; // an array holding string names converted to array of longs - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "TAO_ENCAP_BYTE_ORDER, // byte order" << nl; - // generate repoID - *cs << (ACE_OS::strlen (this->repoID ())+1) << ", "; - (void)this->tc_name2long (this->repoID (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // repository ID = " << this->repoID () << nl; - // generate name - *cs << (ACE_OS::strlen (this->local_name ()->get_string ())+1) << ", "; - (void)this->tc_name2long(this->local_name ()->get_string (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // name = " << this->local_name () << nl; - // generate the member count - *cs << this->member_count () << ", // member count\n"; - cs->incr_indent (0); - // hand over to the scope to generate the typecode for elements - if (be_scope::gen_encapsulation () == -1) - { - ACE_ERROR ((LM_ERROR, "be_structure: cannot generate typecode for members\n")); - return -1; - } - cs->decr_indent (0); - return 0; -} - -// compute typecode size -long -be_structure::tc_size (void) -{ - // 4 bytes for enumeration, 4 bytes for storing encap length val, followed by the - // actual encapsulation length - return 4 + 4 + this->tc_encap_len (); -} - -// compute encapsulation length -long -be_structure::tc_encap_len (void) -{ - if (this->encap_len_ == -1) // not computed yet - { - this->encap_len_ = 4; // holds the byte order flag - - this->encap_len_ += this->repoID_encap_len (); // repoID - - // do the same thing for the local name - this->encap_len_ += this->name_encap_len (); - - this->encap_len_ += 4; // to hold the member count - - // compute encap length for members - this->encap_len_ += be_scope::tc_encap_len (); - } - return this->encap_len_; -} - -// compute the size type of the node in question -int -be_structure::compute_size_type (void) -{ - UTL_ScopeActiveIterator *si; - AST_Decl *d; - be_decl *bd; - - if (this->nmembers () > 0) - { - // if there are elements in this scope - - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - // instantiate a scope iterator. - - while (!(si->is_done ())) - { - // get the next AST decl node - d = si->item (); - bd = be_decl::narrow_from_decl (d); - if (bd != 0) - { - // our sizetype depends on the sizetype of our members. Although - // previous value of sizetype may get overwritten, we are - // guaranteed by the "size_type" call that once the value reached - // be_decl::VARIABLE, nothing else can overwrite it. - this->size_type (bd->size_type ()); - } - else - { - ACE_DEBUG ((LM_DEBUG, - "WARNING (%N:%l) be_structure::compute_size_type - " - "narrow_from_decl returned 0\n")); - } - si->next (); - } // end of while - delete si; // free the iterator object - } - return 0; -} - -int be_structure::write_as_return (TAO_OutStream *stream, - be_type *type) -{ - *stream << type->name (); - if (this->size_type () == be_decl::VARIABLE) - { - *stream << " *"; - } - return 0; -} - -int -be_structure::accept (be_visitor *visitor) -{ - return visitor->visit_structure (this); -} - -// Narrowing -IMPL_NARROW_METHODS3 (be_structure, AST_Structure, be_scope, be_type) -IMPL_NARROW_FROM_DECL (be_structure) -IMPL_NARROW_FROM_SCOPE (be_structure) diff --git a/TAO/TAO_IDL/be/be_sunsoft.cpp b/TAO/TAO_IDL/be/be_sunsoft.cpp deleted file mode 100644 index c37e11354d3..00000000000 --- a/TAO/TAO_IDL/be/be_sunsoft.cpp +++ /dev/null @@ -1,110 +0,0 @@ -// $Id$ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" -#include "be_sunsoft.h" - -TAO_SunSoft_OutStream::TAO_SunSoft_OutStream (void) - : TAO_OutStream () -{ -} - -TAO_SunSoft_OutStream::~TAO_SunSoft_OutStream (void) -{ -} - -TAO_OutStream & -TAO_SunSoft_OutStream::print (Identifier *id) -{ - ACE_OS::fprintf (this->fp_, id->get_string ()); - return *this; -} - -TAO_OutStream & -TAO_SunSoft_OutStream::print (UTL_IdList *idl) -{ - UTL_IdListActiveIterator *i = new UTL_IdListActiveIterator (idl); - long first = I_TRUE; - long second = I_FALSE; - - while (!(i->is_done ())) - { - if (!first) - *this << "::"; - else if (second) - first = second = I_FALSE; - // print the identifier - *this << i->item (); - if (first) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - // does not start with a "" - first = I_FALSE; - else - second = I_TRUE; - } - i->next (); - } - return *this; -} - -TAO_OutStream& -TAO_SunSoft_OutStream::print (AST_Expression *expr) -{ - AST_Expression::AST_ExprValue *ev = expr->ev (); - - if (ev) - { - switch (ev->et) - { - case AST_Expression::EV_short: - this->TAO_OutStream::print ("%hd", ev->u.sval); - break; - case AST_Expression::EV_ushort: - this->TAO_OutStream::print ("%hu", ev->u.usval); - break; - case AST_Expression::EV_long: - this->TAO_OutStream::print ("%ld", ev->u.lval); - break; - case AST_Expression::EV_ulong: - this->TAO_OutStream::print ("%ld", ev->u.ulval); - break; - case AST_Expression::EV_longlong: - break; - case AST_Expression::EV_ulonglong: - break; - case AST_Expression::EV_float: - this->TAO_OutStream::print ("%f", ev->u.fval); - break; - case AST_Expression::EV_double: - this->TAO_OutStream::print ("%f", ev->u.dval); - break; - case AST_Expression::EV_longdouble: - break; - case AST_Expression::EV_char: - this->TAO_OutStream::print ("'%c'", ev->u.cval); - break; - case AST_Expression::EV_wchar: - break; - case AST_Expression::EV_octet: - this->TAO_OutStream::print ("%c", ev->u.oval); - break; - case AST_Expression::EV_bool: - this->TAO_OutStream::print ("%ld", ev->u.bval); - break; - case AST_Expression::EV_string: - this->TAO_OutStream::print ("\"%s\"", ev->u.strval->get_string ()); - break; - case AST_Expression::EV_wstring: - break; - default: - break; - } - } - else // - { - // XXXASG: need to add code here - } - return *this; -} diff --git a/TAO/TAO_IDL/be/be_type.cpp b/TAO/TAO_IDL/be/be_type.cpp deleted file mode 100644 index d14a3da61e1..00000000000 --- a/TAO/TAO_IDL/be/be_type.cpp +++ /dev/null @@ -1,287 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_type.cpp -// -// = DESCRIPTION -// Extension of class AST_Type that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -/* - * BE_Type - */ - -be_type::be_type (void) - : tc_name_ (0), - type_name_ (0), - nested_type_name_ (0) -{ -} - -be_type::be_type (AST_Decl::NodeType nt, UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl (nt, n, p), - tc_name_ (0), - type_name_ (0), - nested_type_name_ (0) -{ -} - -be_type::~be_type (void) -{ - if (this->nested_type_name_ != 0) - { - delete[] this->nested_type_name_; - this->nested_type_name_ = 0; - } -} - -// compute the typecode name. The idea is to use the fully scoped name, -// however, prepend a _tc_ to the last component. A slightly different approach -// is required of the predefined types. Hence this method is overridden for -// predefined types. - -void -be_type::compute_tc_name (void) -{ - static char namebuf [NAMEBUFSIZE]; - UTL_ScopedName *n; - - this->tc_name_ = NULL; - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - n = this->name (); - while (n->tail () != NULL) - { - if (!this->tc_name_) - { - // does not exist - this->tc_name_ = new UTL_ScopedName (n->head (), NULL); - } - else - { - this->tc_name_->nconc (new UTL_ScopedName (n->head (), NULL)); - } - n = (UTL_ScopedName *)n->tail (); - } - ACE_OS::sprintf (namebuf, "_tc_%s", n->last_component ()->get_string ()); - if (!this->tc_name_) - { - // does not exist - this->tc_name_ = new UTL_ScopedName (new Identifier (ACE_OS::strdup - (namebuf), 1, 0, I_FALSE), NULL); - } - else - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier (ACE_OS::strdup - (namebuf), 1, - 0, I_FALSE), NULL)); - } - return; -} - -// retrieve typecode name -UTL_ScopedName * -be_type::tc_name (void) -{ - if (!this->tc_name_) - compute_tc_name (); - - return this->tc_name_; -} - -// XXXASG - This code works. However, whether we should generate the -// ACE_NESTED_CLASS macro or not should be based on an option to the -// compiler. In this version, we choose to generate a relative path. - -// return the type name using the ACE_NESTED_CLASS macro -const char * -be_type::nested_type_name (be_decl *use_scope, const char *suffix) -{ - // some compilers do not like generating a fully scoped name for a type that - // was defined in the same enclosing scope in which it was defined. For such, - // we emit a macro defined in the ACE library. - // - - // The tricky part here is that it is not enough to check if the - // typename we are using was defined in the current scope. But we - // need to ensure that it was not defined in any of our ancestor - // scopes as well. If that is the case, then we can generate a fully - // scoped name for that type, else we use the ACE_NESTED_CLASS macro - - // thus we need some sort of relative name to be generated - - if (this->nested_type_name_ == 0) - ACE_NEW_RETURN (this->nested_type_name_, char[NAMEBUFSIZE], 0); - - be_decl *def_scope = 0; // our defining scope - char // hold the fully scoped name - def_name [NAMEBUFSIZE], - use_name [NAMEBUFSIZE]; - char // these point to the curr and next component in the scope - *def_curr = def_name, - *def_next, - *use_curr = use_name, - *use_next; - - ACE_OS::memset (this->nested_type_name_, '\0', NAMEBUFSIZE); - ACE_OS::memset (def_name, '\0', NAMEBUFSIZE); - ACE_OS::memset (use_name, '\0', NAMEBUFSIZE); - - // traverse every component of the def_scope and use_scope beginning at the - // root and proceeding towards the leaf trying to see if the components - // match. Continue until there is a match and keep accumulating the path - // traversed. This forms the first argument to the ACE_NESTED_CLASS - // macro. Whenever there is no match, the remaining components of the - // def_scope form the second argument - - def_scope = ((this->defined_in ())? - (be_scope::narrow_from_scope (this->defined_in ())->decl ()): - 0); - - if (def_scope && def_scope->node_type () != AST_Decl::NT_root && use_scope) - // if both scopes exist and that we are not in the root scope - { - ACE_OS::strcpy (def_name, def_scope->fullname ()); - ACE_OS::strcpy (use_name, use_scope->fullname ()); - - // find the first occurrence of a :: and advance the next pointers accordingly - def_next = ACE_OS::strstr (def_curr, "::"); - use_next = ACE_OS::strstr (use_curr, "::"); - - if (def_next) - *def_next = 0; - - if (use_next) - *use_next = 0; - - if (!ACE_OS::strcmp (def_curr, use_curr)) - { - // initial prefix matches i.e., they have a common root - // start by initializing the macro - - //@@ ACE_OS::sprintf (this->nested_type_name_, "ACE_NESTED_CLASS ("); - //@@ ACE_OS::strcat (this->nested_type_name_, def_curr); // initialize the first argument - - def_curr = (def_next ? (def_next+2) : 0); // skip the :: - use_curr = (use_next ? (use_next+2) : 0); // skip the :: - - while (def_curr && use_curr) - { - // find the first occurrence of a :: and advance the next pointers accordingly - def_next = ACE_OS::strstr (def_curr, "::"); - use_next = ACE_OS::strstr (use_curr, "::"); - - if (def_next) - *def_next = 0; - - if (use_next) - *use_next = 0; - - if (!ACE_OS::strcmp (def_curr, use_curr)) - { - // they have same prefix, append to arg1 - //@@ ACE_OS::strcat (this->nested_type_name_, "::"); - //@@ ACE_OS::strcat (this->nested_type_name_, def_curr); - def_curr = (def_next ? (def_next+2) : 0); // skip the :: - use_curr = (use_next ? (use_next+2) : 0); // skip the :: - } - else - { - // no match. This is the end of the first argument. Get out - // of the loop as no more comparisons are necessary - break; - } - } - - // start the 2nd argument of the macro - //@@ ACE_OS::strcat (this->nested_type_name_, ", "); - - // copy the remaining def_name (if any left) - if (def_curr) - ACE_OS::strcat (this->nested_type_name_, def_curr); - - // append our local name - ACE_OS::strcat (this->nested_type_name_, this->local_name ()->get_string ()); - if (suffix) - ACE_OS::strcat (this->nested_type_name_, suffix); - //@@ ACE_OS::strcat (this->nested_type_name_, ")"); - return this->nested_type_name_; - } // end of if the root prefixes match - } - - // otherwise just emit our fullname - ACE_OS::sprintf (this->nested_type_name_, this->fullname ()); - if (suffix) - ACE_OS::strcat (this->nested_type_name_, suffix); - - return this->nested_type_name_; -} - -// ***************************** -// CODE GENERATION -// ***************************** - -// generate the _var definition for ourself -int -be_type::gen_var_defn (void) -{ - return 0; -} - -// implementation of the _var class. All of these get generated in the inline -// file -int -be_type::gen_var_impl (void) -{ - return 0; -} - -// generate the _out definition -int -be_type::gen_out_defn (void) -{ - return 0; -} - -int -be_type::gen_out_impl (void) -{ - return 0; -} - -AST_Decl::NodeType be_type::base_node_type (void) const -{ - return ACE_const_cast(be_type*, this)->node_type (); -} - -int be_type::write_as_return (TAO_OutStream *, be_type *) -{ - ACE_ERROR_RETURN ((LM_ERROR, - "be_type::write_as_return - internal error," - " method shouldn't be invoked\n"), -1); -} - -int -be_type::accept (be_visitor *visitor) -{ - return visitor->visit_type (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_type, AST_Type, be_decl) -IMPL_NARROW_FROM_DECL (be_type) diff --git a/TAO/TAO_IDL/be/be_typedef.cpp b/TAO/TAO_IDL/be/be_typedef.cpp deleted file mode 100644 index 119903506d5..00000000000 --- a/TAO/TAO_IDL/be/be_typedef.cpp +++ /dev/null @@ -1,194 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_typedef.cpp -// -// = DESCRIPTION -// Extension of class AST_Typedef that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -be_typedef::be_typedef (void) -{ -} - -be_typedef::be_typedef (AST_Type *bt, UTL_ScopedName *n, UTL_StrList *p) - : AST_Typedef (bt, n, p), - AST_Decl (AST_Decl::NT_typedef, n, p) -{ -} - -// given a typedef node, traverse the chain of base types until they are no -// more typedefs, and return that most primitive base type -be_type * -be_typedef::primitive_base_type (void) -{ - be_type *d; - - d = this; - while (d && d->node_type () == AST_Decl::NT_typedef) - { - be_typedef *temp; // temporary - - temp = be_typedef::narrow_from_decl (d); - d = be_type::narrow_from_decl (temp->base_type ()); - } - return d; -} - -int -be_typedef::gen_typecode (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "CORBA::tk_alias, // typecode kind for typedefs" << nl; - *cs << this->tc_encap_len () << ", // encapsulation length\n"; - // now emit the encapsulation - cs->incr_indent (0); - if (this->gen_encapsulation () == -1) - { - return -1; - } - - cs->decr_indent (0); - return 0; -} - -// generate encapsulation. A typedef is an alias to its base type -int -be_typedef::gen_encapsulation (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - long i, arrlen; - long *arr; // an array holding string names converted to array of longs - be_type *bt; // base type - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "TAO_ENCAP_BYTE_ORDER, // byte order" << nl; - // generate repoID - *cs << (ACE_OS::strlen (this->repoID ())+1) << ", "; - (void)this->tc_name2long (this->repoID (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // repository ID = " << this->repoID () << nl; - - // generate name - *cs << (ACE_OS::strlen (this->local_name ()->get_string ())+1) << ", "; - (void)this->tc_name2long(this->local_name ()->get_string (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // name = " << this->local_name () << "\n"; - - // generate typecode for the base type - bt = be_type::narrow_from_decl (this->base_type ()); - if (!bt || (bt->gen_typecode () == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_typedef::gen_encapsulation failed for base type\n"), - -1); - } - return 0; -} - -long -be_typedef::tc_size (void) -{ - // 4 bytes for enumeration, 4 bytes for storing encap length val, followed by the - // actual encapsulation length - return 4 + 4 + this->tc_encap_len (); -} - -long -be_typedef::tc_encap_len (void) -{ - if (this->encap_len_ == -1) // not computed yet - { - be_type *bt; // base type - this->encap_len_ = 4; // holds the byte order flag - - this->encap_len_ += this->repoID_encap_len (); // repoID - - // do the same thing for the local name - this->encap_len_ += this->name_encap_len (); - - // add the encapsulation length of our base type - bt = be_type::narrow_from_decl (this->base_type ()); - if (!bt) - { - ACE_ERROR ((LM_ERROR, - "be_typedef::tc_encap_len - bad base type\n")); - return 0; - } - this->encap_len_ += bt->tc_size (); - - } - return this->encap_len_; -} - -// compute the size type of the node in question -int -be_typedef::compute_size_type (void) -{ - be_type *type = be_type::narrow_from_decl (this->base_type ()); - if (!type) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_typedef::compute_size_type - " - "bad base type\n"), -1); - } - - // our size type is the same as our type - this->size_type (type->size_type ()); - return 0; -} - -AST_Decl::NodeType be_typedef::base_node_type (void) const -{ - be_type *base = be_type::narrow_from_decl (ACE_const_cast(be_typedef*, this)->base_type ()); - return base->base_node_type (); -} - -int be_typedef::write_as_return (TAO_OutStream *stream, - be_type *type) -{ - be_type *base = be_type::narrow_from_decl (this->base_type ()); - return base->write_as_return (stream, type); -} - -int -be_typedef::accept (be_visitor *visitor) -{ - return visitor->visit_typedef (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_typedef, AST_Typedef, be_type) -IMPL_NARROW_FROM_DECL (be_typedef) diff --git a/TAO/TAO_IDL/be/be_union.cpp b/TAO/TAO_IDL/be/be_union.cpp deleted file mode 100644 index 8f42dc2f4bc..00000000000 --- a/TAO/TAO_IDL/be/be_union.cpp +++ /dev/null @@ -1,799 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_union.cpp -// -// = DESCRIPTION -// Extension of class AST_Union that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -/* - * BE_Union - */ - -be_union::be_union (void) -{ -} - -be_union::be_union (AST_ConcreteType *dt, UTL_ScopedName *n, UTL_StrList *p) - : AST_Union (dt, n, p), - AST_Structure (AST_Decl::NT_union, n, p), - AST_Decl (AST_Decl::NT_union, n, p), - UTL_Scope (AST_Decl::NT_union), - member_count_ (-1), - default_index_ (-2) -{ -} - -// compute total number of members -int -be_union::compute_member_count (void) -{ - UTL_ScopeActiveIterator *si; // iterator - AST_Decl *d; // temp node - - this->member_count_ = 0; - - // if there are elements in this scope - if (this->nmembers () > 0) - { - // instantiate a scope iterator. - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - - while (!(si->is_done ())) - { - // get the next AST decl node - d = si->item (); - this->member_count_++; - si->next (); - } // end of while - delete si; // free the iterator object - } - return 0; -} - -// compute total number of members -int -be_union::compute_default_index (void) -{ - UTL_ScopeActiveIterator *si; // iterator - AST_Decl *d; // temp node - be_union_branch *bub; // union branch node - int i = 0; // counter - - this->default_index_ = -1; // if not used at all, this is the value it will - // take - - // if there are elements in this scope - if (this->nmembers () > 0) - { - // instantiate a scope iterator. - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - - while (!(si->is_done ())) - { - // get the next AST decl node - d = si->item (); - if (!d->imported ()) - { - bub = be_union_branch::narrow_from_decl (d); - if (bub->label ()->label_kind () == AST_UnionLabel::UL_default) - this->default_index_ = i; // zero based indexing - i++; - } - si->next (); - } // end of while - delete si; // free the iterator object - } - return 0; -} - -// return the member count -int -be_union::member_count (void) -{ - if (this->member_count_ == -1) - this->compute_member_count (); - - return this->member_count_; -} - -// return the default_index -int -be_union::default_index (void) -{ - if (this->default_index_ == -2) - this->compute_default_index (); - - return this->default_index_; -} - -// generate typecode. -// Typecode for union comprises the enumerated value followed by the -// encapsulation of the parameters - -// generate the _var definition for ourself -int -be_union::gen_var_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // names - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_var", this->local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the var definition (always in the client header). - // Depending upon the data type, there are some differences which we account - // for over here. - - ch->indent (); // start with whatever was our current indent level - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - // default constr - *ch << namebuf << " (void); // default constructor" << nl; - // constr - *ch << namebuf << " (" << local_name () << " *);" << nl; - // copy constructor - *ch << namebuf << " (const " << namebuf << - " &); // copy constructor" << nl; - // destructor - *ch << "~" << namebuf << " (void); // destructor" << nl; - *ch << nl; - // assignment operator from a pointer - *ch << namebuf << " &operator= (" << local_name () << " *);" << nl; - // assignment from _var - *ch << namebuf << " &operator= (const " << namebuf << " &);" << nl; - - // arrow operator - *ch << local_name () << " *operator-> (void);" << nl; - *ch << "const " << local_name () << " *operator-> (void) const;" << nl; - *ch << nl; - - // other extra types (cast operators, [] operator, and others) - *ch << "operator const " << local_name () << " &() const;" << nl; - *ch << "operator " << local_name () << " &();" << nl; - *ch << "operator " << local_name () << " &() const;" << nl; - *ch << "// in, inout, out, _retn " << nl; - // the return types of in, out, inout, and _retn are based on the parameter - // passing rules and the base type - if (this->size_type () == be_decl::FIXED) - { - *ch << "const " << local_name () << " &in (void) const;" << nl; - *ch << local_name () << " &inout (void);" << nl; - *ch << local_name () << " &out (void);" << nl; - *ch << local_name () << " _retn (void);" << nl; - } - else - { - *ch << "const " << local_name () << " &in (void) const;" << nl; - *ch << local_name () << " &inout (void);" << nl; - *ch << local_name () << " *&out (void);" << nl; - *ch << local_name () << " *_retn (void);" << nl; - } - - // generate an additional member function that returns the underlying pointer - *ch << local_name () << " *ptr(void) const;\n"; - - *ch << "\n"; - ch->decr_indent (); - - // generate the private section - *ch << "private:\n"; - ch->incr_indent (); - *ch << local_name () << " *ptr_;\n"; - ch->decr_indent (); - *ch << "};\n\n"; - - return 0; -} - -// implementation of the _var class. All of these get generated in the inline -// file -int -be_union::gen_var_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _var names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_var", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_var", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // default constr - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << - " (void) // default constructor" << nl; - *ci << " " << ": ptr_ (0)" << nl; - *ci << "{}\n\n"; - - // constr from a pointer - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << name () << " *p)" << nl; - *ci << " : ptr_ (p)" << nl; - *ci << "{}\n\n"; - - // copy constructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (const " << fname << - " &p) // copy constructor" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "if (p.ptr_)" << nl; - *ci << " this->ptr_ = new " << this->name () << "(*p.ptr_);" << nl; - *ci << "else" << nl; - *ci << " this->ptr_ = 0;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // destructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::~" << lname << " (void) // destructor" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "delete this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from a pointer - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << name () << - " *p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "delete this->ptr_;" << nl; - *ci << "this->ptr_ = p;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from _var - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (const " << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "if (this != &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "delete this->ptr_;" << nl; - *ci << "this->ptr_ = new " << this->name () << " (*p.ptr_);\n"; - ci->decr_indent (); - *ci << "}" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // two arrow operators - ci->indent (); - *ci << "ACE_INLINE const " << this->name () << " *" << nl; - *ci << fname << "::operator-> (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << this->name () << " *" << nl; - *ci << fname << "::operator-> (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - 3 cast operator () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator const " << name () << - " &() const // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << name () << " &() // cast " << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << name () << " &() const// cast " << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // in, inout, out, and _retn - ci->indent (); - *ci << "ACE_INLINE const " << name () << " &" << nl; - *ci << fname << "::in (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << " &" << nl; - *ci << fname << "::inout (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // the out is handled differently based on our size type - ci->indent (); - if (this->size_type () == be_decl::VARIABLE) - { - *ci << "// mapping for variable size " << nl; - *ci << "ACE_INLINE " << name () << " *&" << nl; - *ci << fname << "::out (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "delete this->ptr_;" << nl; - *ci << "this->ptr_ = 0;" << nl; - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << " *" << nl; - *ci << fname << "::_retn (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << this->name () << " *tmp = this->ptr_;" << nl; - *ci << "this->ptr_ = 0;" << nl; - *ci << "return tmp;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - } - else - { - *ci << "// mapping for fixed size " << nl; - *ci << "ACE_INLINE " << name () << " &" << nl; - *ci << fname << "::out (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << nl; - *ci << fname << "::_retn (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // the additional ptr () member function - ci->indent (); - *ci << "ACE_INLINE " << name () << " *" << nl; - *ci << fname << "::ptr (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - } - - return 0; -} - -// generate the _out definition -int -be_union::gen_out_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // to hold the _out name - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_out", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the out definition (always in the client header) - ch->indent (); // start with whatever was our current indent level - - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - - // No default constructor - - // constructor from a pointer - *ch << namebuf << " (" << local_name () << " *&);" << nl; - // constructor from a _var & - *ch << namebuf << " (" << local_name () << "_var &);" << nl; - // constructor from a _out & - *ch << namebuf << " (" << namebuf << " &);" << nl; - // assignment operator from a _out & - *ch << namebuf << " &operator= (" << namebuf << " &);" << nl; - // assignment operator from a pointer &, cast operator, ptr fn, operator - // -> and any other extra operators - // assignment - *ch << namebuf << " &operator= (" << local_name () << " *);" << nl; - // operator () - *ch << "operator " << local_name () << " *&();" << nl; - // ptr fn - *ch << local_name () << " *&ptr (void);" << nl; - // operator -> - *ch << local_name () << " *operator-> (void);" << nl; - - *ch << "\n"; - ch->decr_indent (); - *ch << "private:\n"; - ch->incr_indent (); - *ch << local_name () << " *&ptr_;" << nl; - *ch << "// assignment from T_var not allowed" << nl; - *ch << "void operator= (const " << local_name () << "_var &);\n"; - - ch->decr_indent (); - *ch << "};\n\n"; - return 0; -} - -int -be_union::gen_out_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _out names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_out", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_out", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - // generate the var implementation in the inline file - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // constr from a pointer - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << name () << " *&p)" << nl; - *ci << " : ptr_ (p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = 0;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // constructor from _var & - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << this->name () << - "_var &p) // constructor from _var" << nl; - *ci << " : ptr_ (p.out ())" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "delete this->ptr_;" << nl; - *ci << "this->ptr_ = 0;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // copy constructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << fname << - " &p) // copy constructor" << nl; - *ci << " : ptr_ (p.ptr_)" << nl; - *ci << "{}\n\n"; - - // assignment operator from _out & - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = p.ptr_;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment from _var is not allowed by a private declaration - - // assignment operator from pointer - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << this->name () << - " *p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = p;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - cast operator () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << this->name () << - " *&() // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // ptr function - ci->indent (); - *ci << "ACE_INLINE " << this->name () << " *&" << nl; - *ci << fname << "::ptr (void) // ptr" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // operator -> - ci->indent (); - *ci << "ACE_INLINE " << this->name () << " *" << nl; - *ci << fname << "::operator-> (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - - return 0; -} - -int -be_union::gen_typecode (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "CORBA::tk_union, // typecode kind" << nl; - *cs << this->tc_encap_len () << ", // encapsulation length\n"; - // now emit the encapsulation - return this->gen_encapsulation (); -} - -// generate encapsulation. -// An encapsulation for ourselves will be necessary when we are part of some -// other IDL type and a typecode for that other type is being generated. This -// will comprise our typecode kind. IDL types with parameters will additionally -// have the encapsulation length and the entire typecode description - -int -be_union::gen_encapsulation (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - long i, arrlen; - long *arr; // an array holding string names converted to array of longs - be_type *discrim; - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "TAO_ENCAP_BYTE_ORDER, // byte order" << nl; - // generate repoID - *cs << (ACE_OS::strlen (this->repoID ())+1) << ", "; - (void)this->tc_name2long (this->repoID (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // repository ID = " << this->repoID () << nl; - // generate name - *cs << (ACE_OS::strlen (this->local_name ()->get_string ())+1) << ", "; - (void)this->tc_name2long(this->local_name ()->get_string (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // name = " << this->local_name () << ",\n"; - - // generate typecode for discriminant - discrim = be_type::narrow_from_decl (this->disc_type ()); - if (discrim->gen_typecode () == -1) - { - ACE_ERROR ((LM_ERROR, "be_union: cannot generate typecode for discriminant\n")); - return -1; - } - - // generate the default used flag - cs->indent (); - *cs << this->default_index () << ", // default used index" << nl; - // generate the member count - *cs << this->member_count () << ", // member count\n"; - cs->incr_indent (0); - // hand over to the scope to generate the typecode for elements - if (be_scope::gen_encapsulation () == -1) - { - ACE_ERROR ((LM_ERROR, "be_union: cannot generate code for members\n")); - return -1; - } - cs->decr_indent (0); - return 0; -} - -// compute typecode size -long -be_union::tc_size (void) -{ - // 4 bytes for enumeration, 4 bytes for storing encap length val, followed by the - // actual encapsulation length - return 4 + 4 + this->tc_encap_len (); -} - -long -be_union::tc_encap_len (void) -{ - if (this->encap_len_ == -1) // not computed yet - { - long slen; - be_type *discrim; - - // Macro to avoid "warning: unused parameter" type warning. - ACE_UNUSED_ARG (slen); - - this->encap_len_ = 4; // holds the byte order flag - - this->encap_len_ += this->repoID_encap_len (); // for repoID - - // do the same thing for the local name - this->encap_len_ += this->name_encap_len (); // for name - - // add encapsulation size of discriminant typecode - discrim = be_type::narrow_from_decl (this->disc_type ()); - this->encap_len_ += discrim->tc_size (); - - this->encap_len_ += 4; // to hold the "default used" flag - this->encap_len_ += 4; // to hold the member count - - // compute encap length for members - this->encap_len_ += be_scope::tc_encap_len (); - } - return this->encap_len_; -} - -// compute the size type of the node in question -int -be_union::compute_size_type (void) -{ - UTL_ScopeActiveIterator *si; - AST_Decl *d; - be_decl *bd; - - if (this->nmembers () > 0) - { - // if there are elements in this scope - - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - // instantiate a scope iterator. - - while (!(si->is_done ())) - { - // get the next AST decl node - d = si->item (); - bd = be_decl::narrow_from_decl (d); - if (bd != 0) - { - // our sizetype depends on the sizetype of our members. Although - // previous value of sizetype may get overwritten, we are - // guaranteed by the "size_type" call that once the value reached - // be_decl::VARIABLE, nothing else can overwrite it. - this->size_type (bd->size_type ()); - } - else - { - ACE_DEBUG ((LM_DEBUG, - "WARNING (%N:%l) be_structure::compute_size_type - " - "narrow_from_decl returned 0\n")); - } - si->next (); - } // end of while - delete si; // free the iterator object - } - return 0; -} - -int be_union::write_as_return (TAO_OutStream *stream, - be_type *type) -{ - *stream << type->name (); - if (this->size_type () == be_decl::VARIABLE) - { - *stream << " *"; - } - return 0; -} - -int -be_union::accept (be_visitor *visitor) -{ - return visitor->visit_union (this); -} - -// Narrowing -IMPL_NARROW_METHODS3 (be_union, AST_Union, be_scope, be_type) -IMPL_NARROW_FROM_DECL (be_union) -IMPL_NARROW_FROM_SCOPE (be_union) diff --git a/TAO/TAO_IDL/be/be_union_branch.cpp b/TAO/TAO_IDL/be/be_union_branch.cpp deleted file mode 100644 index 97cd2f13f17..00000000000 --- a/TAO/TAO_IDL/be/be_union_branch.cpp +++ /dev/null @@ -1,120 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_union_branch.cpp -// -// = DESCRIPTION -// Extension of class AST_UnionBranch that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -/* - * BE_UnionBranch - */ -be_union_branch::be_union_branch (void) -{ -} - -be_union_branch::be_union_branch (AST_UnionLabel *lab, AST_Type *ft, - UTL_ScopedName *n, UTL_StrList *p) - : AST_UnionBranch (lab, ft, n, p), - AST_Field (AST_Decl::NT_union_branch, ft, n, p), - AST_Decl (AST_Decl::NT_union_branch, n, p) -{ -} - -int -be_union_branch::gen_encapsulation (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - be_type *bt; // our type node - long i, arrlen; - long *arr; // an array holding string names converted to array of longs - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - // emit the case label value - *cs << this->label ()->label_val (); - *cs << ", // union case label (evaluated)" << nl; - // emit name - *cs << (ACE_OS::strlen (this->local_name ()->get_string ())+1) << ", "; - (void)this->tc_name2long(this->local_name ()->get_string (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // name = " << this->local_name () << "\n"; - - // hand over code generation to our type node - bt = be_type::narrow_from_decl (this->field_type ()); - if (!bt) - return -1; - return bt->gen_typecode (); -} - -long -be_union_branch::tc_encap_len (void) -{ - if (this->encap_len_ == -1) - { - be_type *bt; - - this->encap_len_ = 4; // case label; - this->encap_len_ += this->name_encap_len (); // for name - bt = be_type::narrow_from_decl (this->field_type ()); - if (!bt) - { - ACE_ERROR ((LM_ERROR, "be_union_branch: bad field type\n")); - return -1; - } - this->encap_len_ += bt->tc_size (); // note that we add the typecode size - // of the type - } - return this->encap_len_; -} - -// compute the size type of the node in question -int -be_union_branch::compute_size_type (void) -{ - be_type *type = be_type::narrow_from_decl (this->field_type ()); - if (!type) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_field::compute_size_type - " - "bad field type\n"), -1); - } - - // our size type is the same as our type - this->size_type (type->size_type ()); // as a side effect will also update - // the size type of parent - return 0; -} - -int -be_union_branch::accept (be_visitor *visitor) -{ - return visitor->visit_union_branch (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_union_branch, AST_UnionBranch, be_decl) -IMPL_NARROW_FROM_DECL (be_union_branch) diff --git a/TAO/TAO_IDL/be/be_union_label.cpp b/TAO/TAO_IDL/be/be_union_label.cpp deleted file mode 100644 index 64d1f74893e..00000000000 --- a/TAO/TAO_IDL/be/be_union_label.cpp +++ /dev/null @@ -1,25 +0,0 @@ -// -// $Id$ -// -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -/* - * BE_UnionLabel - */ -be_union_label::be_union_label() -{ -} -be_union_label::be_union_label(AST_UnionLabel::UnionLabel ul, - AST_Expression *v) - : AST_UnionLabel(ul, v) -{ -} - -int -be_union_label::accept (be_visitor *visitor) -{ - return visitor->visit_union_label (this); -} - diff --git a/TAO/TAO_IDL/be/be_visitor.cpp b/TAO/TAO_IDL/be/be_visitor.cpp deleted file mode 100644 index 38e10c4eb16..00000000000 --- a/TAO/TAO_IDL/be/be_visitor.cpp +++ /dev/null @@ -1,165 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor.h -// -// = DESCRIPTION -// Abstract class for back end visitors. -// -// = NOTES -// This is not a pure abstract class -// -// = AUTHOR -// Aniruddha Gokhale and Carlos O'Ryan -// -// ============================================================================ - -#include "idl.h" -#include "be.h" -#include "be_visitor.h" - -be_visitor::be_visitor (void) -{ -} - -be_visitor::~be_visitor (void) -{ -} - -// all the visit methods. Concrete visitors will selectively override each one -int be_visitor::visit_decl (be_decl *) -{ - return 0; -} - -int be_visitor::visit_scope (be_scope *node) -{ - return 0; -} - -int be_visitor::visit_type (be_type *) -{ - return 0; -} - -int be_visitor::visit_predefined_type (be_predefined_type *) -{ - return 0; -} - -int be_visitor::visit_module (be_module *) -{ - return 0; -} - -int be_visitor::visit_interface (be_interface *) -{ - return 0; -} - -int be_visitor::visit_interface_fwd (be_interface_fwd *) -{ - return 0; -} - -int be_visitor::visit_structure (be_structure *) -{ - return 0; -} - -int be_visitor::visit_exception (be_exception *) -{ - return 0; -} - -int be_visitor::visit_expression (be_expression *) -{ - return 0; -} - -int be_visitor::visit_enum (be_enum *) -{ - return 0; -} - -int be_visitor::visit_operation (be_operation *) -{ - return 0; -} - -int be_visitor::visit_field (be_field *) -{ - return 0; -} - -int be_visitor::visit_argument (be_argument *) -{ - return 0; -} - -int be_visitor::visit_attribute (be_attribute *) -{ - return 0; -} - -int be_visitor::visit_union (be_union *) -{ - return 0; -} - -int be_visitor::visit_union_branch (be_union_branch *) -{ - return 0; -} - -int be_visitor::visit_union_label (be_union_label *) -{ - return 0; -} - -int be_visitor::visit_constant (be_constant *) -{ - return 0; -} - -int be_visitor::visit_enum_val (be_enum_val *) -{ - return 0; -} - -int be_visitor::visit_array (be_array *) -{ - return 0; -} - -int be_visitor::visit_sequence (be_sequence *) -{ - return 0; -} - -int be_visitor::visit_string (be_string *) -{ - return 0; -} - -int be_visitor::visit_typedef (be_typedef *) -{ - return 0; -} - -int be_visitor::visit_root (be_root *) -{ - return 0; -} - -int be_visitor::visit_native (be_native *) -{ - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_args.cpp b/TAO/TAO_IDL/be/be_visitor_args.cpp deleted file mode 100644 index 55abdb3057e..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_args.cpp +++ /dev/null @@ -1,2805 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_args.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Argument -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "be.h" -#include "be_visitor_args.h" - -be_visitor_args::be_visitor_args (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_args::~be_visitor_args (void) -{ -} - -int be_visitor_args::visit_argument (be_argument *node) -{ - return -1; -} - -// helper that returns the type name either as a nested type name (for header -// files) or as a fully scoped name. In addition, we make sure that if the type -// is an alias, we use that name -const char * -be_visitor_args::type_name (be_type *node, const char *suffix) -{ - static char namebuf [NAMEBUFSIZE]; - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - - be_type *bt; // type to use - - // use the typedefed name if that is the one used in the IDL defn - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // generate the NESTED_CLASS macro i.e., a relative path name to satisfy the - // MSVC++ compiler - switch (this->ctx_->stream ()->stream_type ()) - { - case TAO_OutStream::TAO_CLI_HDR: - ACE_OS::sprintf (namebuf, "%s", bt->nested_type_name - (this->ctx_->scope (), suffix)); - break; - default: // fullname for all other cases - ACE_OS::sprintf (namebuf, "%s", bt->fullname ()); - if (suffix) - ACE_OS::strcat (namebuf, suffix); - } - - return namebuf; -} - -// helper that returns the direction type of the argument -AST_Argument::Direction -be_visitor_args::direction (void) -{ - // grab the argument node. We know that our context has stored the right - // argument node - be_argument *arg = this->ctx_->be_node_as_argument (); - - ACE_ASSERT (arg != 0); - return arg->direction (); -} - -// ************************************************************ -// be_visitor_args_arglist for parameter list in method declarations and -// definitions -// ************************************************************ - -be_visitor_args_arglist::be_visitor_args_arglist (be_visitor_context *ctx) - : be_visitor_args (ctx) -{ -} - -be_visitor_args_arglist::~be_visitor_args_arglist (void) -{ -} - -int be_visitor_args_arglist::visit_argument (be_argument *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - this->ctx_->node (node); // save the argument node - - // retrieve the type - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_arglist::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - os->indent (); // start with current indentation level - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_arglist::" - "visit_argument - " - "cannot accept visitor\n"), - -1); - } - - *os << " " << node->local_name () << ",\n"; - return 0; -} - -int be_visitor_args_arglist::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << "const " << this->type_name (node); - break; - case AST_Argument::dir_INOUT: - *os << this->type_name (node); - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node, "_out"); - break; - } - return 0; -} - -int be_visitor_args_arglist::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << this->type_name (node); - break; - case AST_Argument::dir_INOUT: - *os << this->type_name (node) << " &"; - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node, "_out"); - break; - } - return 0; -} - -int be_visitor_args_arglist::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << this->type_name (node, "_ptr"); - break; - case AST_Argument::dir_INOUT: // inout - *os << this->type_name (node, "_ptr") << " &"; - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node, "_out"); - break; - } - return 0; -} - -int be_visitor_args_arglist::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << this->type_name (node, "_ptr"); - break; - case AST_Argument::dir_INOUT: // inout - *os << this->type_name (node, "_ptr") << " &"; - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node, "_out"); - break; - } - return 0; -} - -int be_visitor_args_arglist::visit_native (be_native *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << this->type_name (node); - break; - case AST_Argument::dir_INOUT: - *os << this->type_name (node) << " &"; - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node) << " &"; - break; - } - return 0; -} - -int be_visitor_args_arglist::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // check if the type is an any - if (node->pt () == AST_PredefinedType::PT_any) - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << "const " << this->type_name (node) << " &"; - break; - case AST_Argument::dir_INOUT: - *os << this->type_name (node) << " &"; - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node, "_out"); - break; - } // end switch direction - } // end of if - else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << this->type_name (node, "_ptr"); - break; - case AST_Argument::dir_INOUT: - *os << this->type_name (node, "_ptr") << " &"; - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node, "_out"); - break; - } // end switch direction - } // end else if - else // simple predefined types - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << this->type_name (node); - break; - case AST_Argument::dir_INOUT: - *os << this->type_name (node) << " &"; - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node, "_out"); - break; - } // end switch direction - } // end of else - - return 0; -} - -int be_visitor_args_arglist::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << "const " << this->type_name (node) << " &"; - break; - case AST_Argument::dir_INOUT: - *os << this->type_name (node) << " &"; - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node, "_out"); - break; - } - return 0; -} - -int be_visitor_args_arglist::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << "const char *"; - break; - case AST_Argument::dir_INOUT: - *os << "char *&"; - break; - case AST_Argument::dir_OUT: - *os << "CORBA::String_out"; - break; - } - return 0; -} - -int be_visitor_args_arglist::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << "const " << this->type_name (node) << " &"; - break; - case AST_Argument::dir_INOUT: - *os << this->type_name (node) << " &"; - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node, "_out"); - break; - } - return 0; -} - -int be_visitor_args_arglist::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << "const " << this->type_name (node) << " &"; - break; - case AST_Argument::dir_INOUT: - *os << this->type_name (node) << " &"; - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node, "_out"); - break; - } - return 0; -} - -int be_visitor_args_arglist::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_arglist::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -// ************************************************************************* -// visitor for argument to do any pre docall processing. Not all types need -// this. Only those that have an _out type need this. In addition, interfaces -// need it because we ned to convert from the interface type to the base Object -// type and vice versa. -// ************************************************************************* - -be_visitor_args_pre_docall_cs::be_visitor_args_pre_docall_cs -(be_visitor_context *ctx) - : be_visitor_args (ctx) -{ -} - -be_visitor_args_pre_docall_cs::~be_visitor_args_pre_docall_cs (void) -{ -} - -int -be_visitor_args_pre_docall_cs::void_return_type (void) -{ - // is the operation return type void? - be_argument *arg = this->ctx_->be_node_as_argument (); - ACE_ASSERT (arg != 0); - be_operation *op = be_operation::narrow_from_scope (arg->defined_in ()); - ACE_ASSERT (arg != 0); - - be_type *bt = be_type::narrow_from_decl (op->return_type ()); - if (bt->node_type () == AST_Decl::NT_pre_defined - && (be_predefined_type::narrow_from_decl (bt)->pt () - == AST_PredefinedType::PT_void)) - return 1; - else - return 0; -} - -int be_visitor_args_pre_docall_cs::visit_argument (be_argument *node) -{ - this->ctx_->node (node); // save the argument node - - // retrieve the type of the argument - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_pre_docall_cs::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_pre_docall_cs::" - "visit_argument - " - "cannot accept visitor\n"), - -1); - } - - return 0; -} - -int -be_visitor_args_pre_docall_cs::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - switch (this->direction ()) - { - case AST_Argument::dir_OUT: - os->indent (); - *os << bt->name () << "_slice *&_tao_base_" << arg->local_name () - << " = " << arg->local_name () << ".ptr ();\n"; - if (!this->void_return_type ()) - { - *os << "ACE_NEW_RETURN (_tao_base_" << arg->local_name () - << ", " << bt->name () << "_slice, _tao_retval);\n"; - } - else - { - *os << "ACE_NEW (_tao_base_" << arg->local_name () - << ", " << bt->name () << "_slice);\n"; - } - break; - default: - break; - } - return 0; - -} - -int -be_visitor_args_pre_docall_cs::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << "CORBA::Object_ptr _tao_base_" << arg->local_name () - << " = " << arg->local_name () << ";\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << "CORBA::Object_ptr _tao_base_" << arg->local_name () << ";\n"; - break; - default: - break; - } - return 0; -} - -int -be_visitor_args_pre_docall_cs::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << "CORBA::Object_ptr _tao_base_" << arg->local_name () - << " = " << arg->local_name () << ";\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << "CORBA::Object_ptr _tao_base_" << arg->local_name () << ";\n"; - break; - default: - break; - } - return 0; -} - -int -be_visitor_args_pre_docall_cs::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // pre do_static_call processing is valid only for pseudo objects and for Any - switch (node->pt ()) - { - case AST_PredefinedType::PT_pseudo: - { - switch (this->direction ()) - { - case AST_Argument::dir_OUT: - os->indent (); - *os << bt->name () << "_ptr &_tao_base_" << arg->local_name () - << " = " << arg->local_name () << ".ptr ();\n"; - break; - default: - break; - } - } - break; - case AST_PredefinedType::PT_any: - { - switch (this->direction ()) - { - case AST_Argument::dir_OUT: - os->indent (); - *os << bt->name () << " *&_tao_base_" << arg->local_name () - << " = " << arg->local_name () << ".ptr ();" << be_nl; - if (!this->void_return_type ()) - { - *os << "ACE_NEW_RETURN (_tao_base_" << arg->local_name () - << ", CORBA::Any, _tao_retval);\n"; - } - else - { - *os << "ACE_NEW (_tao_base_" << arg->local_name () - << ", CORBA::Any);\n"; - } - break; - default: - break; - } - } - break; - default: - break; - } - return 0; -} - -int -be_visitor_args_pre_docall_cs::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - switch (this->direction ()) - { - case AST_Argument::dir_OUT: - // caller must have allocated the pointer - os->indent (); - *os << bt->name () << " *&_tao_base_" << arg->local_name () - << " = " << arg->local_name () << ".ptr ();" << be_nl; - if (!this->void_return_type ()) - { - *os << "ACE_NEW_RETURN (_tao_base_" << arg->local_name () - << ", " << bt->name () << ", _tao_retval);\n"; - } - else - { - *os << "ACE_NEW (_tao_base_" << arg->local_name () - << ", " << bt->name () << ");\n"; - } - break; - default: - break; - } - return 0; -} - -int -be_visitor_args_pre_docall_cs::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_OUT: - // caller should have allocated the pointer - os->indent (); - *os << "char *&_tao_base_" << arg->local_name () - << " = " << arg->local_name () << ".ptr ();\n"; - break; - default: - break; - } - return 0; -} - -int -be_visitor_args_pre_docall_cs::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (node->size_type () == be_type::VARIABLE) - { - switch (this->direction ()) - { - case AST_Argument::dir_OUT: - // caller must have allocated the pointer - os->indent (); - *os << bt->name () << " *&_tao_base_" << arg->local_name () - << " = " << arg->local_name () << ".ptr ();" << be_nl; - if (!this->void_return_type ()) - { - *os << "ACE_NEW_RETURN (_tao_base_" << arg->local_name () - << ", " << bt->name () << ", _tao_retval);\n"; - } - else - { - *os << "ACE_NEW (_tao_base_" << arg->local_name () - << ", " << bt->name () << ");\n"; - } - break; - default: - break; - } - } - return 0; -} - -int -be_visitor_args_pre_docall_cs::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (node->size_type () == be_type::VARIABLE) - { - switch (this->direction ()) - { - case AST_Argument::dir_OUT: - os->indent (); - *os << bt->name () << " *&_tao_base_" << arg->local_name () - << " = " << arg->local_name () << ".ptr ();" << be_nl; - if (!this->void_return_type ()) - { - *os << "ACE_NEW_RETURN (_tao_base_" << arg->local_name () - << ", " << bt->name () << ", _tao_retval);\n"; - } - else - { - *os << "ACE_NEW (_tao_base_" << arg->local_name () - << ", " << bt->name () << ");\n"; - } - break; - default: - break; - } - } - return 0; -} - -int -be_visitor_args_pre_docall_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_pre_docall_cs::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -// **************************************************************************** -// visitor for argument passing to do_static_call. The do_static_call method takes a variable -// number of parameters. The total number of parameters is determined by the -// "calldata" parameter that must be passed before the variable list -// starts. Each argument to the do_static_call is considered to be of type "void *". -// Hence we pass the address of each argument. The case for _out is a bit -// tricky where we must first retrieve the pointer, allocate memory and pass it -// to do_static_call. This is done in the "pre_do_static_call" processing. -// **************************************************************************** - -be_visitor_args_docall_cs::be_visitor_args_docall_cs (be_visitor_context *ctx) - : be_visitor_args (ctx) -{ -} - -be_visitor_args_docall_cs::~be_visitor_args_docall_cs (void) -{ -} - -int be_visitor_args_docall_cs::visit_argument (be_argument *node) -{ - this->ctx_->node (node); // save the argument node - - // retrieve the type of the argument - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_docall_cs::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_docall_cs::" - "visit_argument - " - "cannot accept visitor\n"), - -1); - } - - return 0; -} - -int be_visitor_args_docall_cs::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - *os << arg->local_name (); - break; - case AST_Argument::dir_OUT: - // pass reference to the pointer to slice - *os << "_tao_base_" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_docall_cs::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - // pass the address. Storage is already allocated - *os << "&" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_docall_cs::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << "&_tao_base_" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_docall_cs::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << "&_tao_base_" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_docall_cs::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get argument node - - os->indent (); - // check if the type is an any - if (node->pt () == AST_PredefinedType::PT_any) - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - *os << "_tao_base_" << arg->local_name (); - break; - } // end switch direction - } // end of if any - else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., - // CORBA::Object, - // CORBA::TypeCode - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - *os << "&_tao_base_" << arg->local_name (); - break; - } // end switch direction - } // end else if pseudo - else // simple predefined types - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << "&" << arg->local_name (); - break; - } // end switch direction - } // end of else - - return 0; -} - -int be_visitor_args_docall_cs::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - *os << "_tao_base_" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_docall_cs::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - *os << "&_tao_base_" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_docall_cs::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - { - // check if the size type is VARIABLE - if (node->size_type () == be_type::VARIABLE) - *os << "_tao_base_" << arg->local_name (); - else - *os << "&" << arg->local_name (); - } - break; - } - return 0; -} - -int be_visitor_args_docall_cs::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - { - // check if the size type is VARIABLE - if (node->size_type () == be_type::VARIABLE) - *os << "_tao_base_" << arg->local_name (); - else - *os << "&" << arg->local_name (); - } - break; - } - return 0; -} - -int be_visitor_args_docall_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_docall_cs::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -// ************************************************************************* -// visitor for argument to do any pre docall processing. Not all types need -// this. Only those that have an _out type need this. In addition, interfaces -// need it because we ned to convert from the interface type to the base Object -// type and vice versa. -// ************************************************************************* - -be_visitor_args_post_docall_cs::be_visitor_args_post_docall_cs -(be_visitor_context *ctx) - : be_visitor_args (ctx) -{ -} - -be_visitor_args_post_docall_cs::~be_visitor_args_post_docall_cs (void) -{ -} - -int -be_visitor_args_post_docall_cs::visit_argument (be_argument *node) -{ - this->ctx_->node (node); // save the argument node - - // retrieve the type of the argument - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_pre_docall_cs::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_pre_docall_cs::" - "visit_argument - " - "cannot accept visitor\n"), - -1); - } - - return 0; -} - -int -be_visitor_args_post_docall_cs::visit_interface (be_interface *node) -{ - // we must narrow the out object reference to the appropriate type - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - { - os->indent (); - // assign the narrowed obj reference - *os << arg->local_name () << " = " << node->name () - << "::_narrow (_tao_base_" << arg->local_name () - << ", _tao_environment);" << be_nl; - *os << "CORBA::release (_tao_base_" << arg->local_name () - << ");\n"; - } - break; - } - return 0; -} - -int -be_visitor_args_post_docall_cs::visit_interface_fwd (be_interface_fwd *node) -{ - // we must narrow the out object reference to the appropriate type - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - { - os->indent (); - // assign the narrowed obj reference - *os << arg->local_name () << " = " << node->name () - << "::_narrow (_tao_base_" << arg->local_name () - << ", _tao_environment);" << be_nl; - *os << "CORBA::release (_tao_base_" << arg->local_name () - << ");\n"; - } - break; - } - return 0; -} - -int -be_visitor_args_post_docall_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_post_docall_cs::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -// ************************************************************************ -// Visitor to generate code for argument variable declaration -// ************************************************************************ - -be_visitor_args_vardecl_ss::be_visitor_args_vardecl_ss (be_visitor_context *ctx) - : be_visitor_args (ctx) -{ -} - -be_visitor_args_vardecl_ss::~be_visitor_args_vardecl_ss (void) -{ -} - -int be_visitor_args_vardecl_ss::visit_argument (be_argument *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - this->ctx_->node (node); // save the argument node - - // retrieve the type - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_vardecl_ss::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_vardecl_ss::" - "visit_argument - " - "cannot accept visitor\n"), - -1); - } - - return 0; -} - -int be_visitor_args_vardecl_ss::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << bt->name () << " " << arg->local_name () << ";\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - if (node->size_type () == be_type::VARIABLE) - { - *os << bt->name () << "_var _tao_var_" - << arg->local_name () << ";" << be_nl; - *os << bt->name () << " *&_tao_ptr_" << arg->local_name () - << " = _tao_var_" << arg->local_name () << ".out ();" << be_nl; - *os << bt->name () << "_out " << arg->local_name () - << " (_tao_ptr_" << arg->local_name () << ");\n"; - } - else - *os << bt->name () << " " << arg->local_name () << ";\n"; - break; - } - return 0; -} - -int be_visitor_args_vardecl_ss::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - os->indent (); - *os << bt->name () << " " << arg->local_name () << ";\n"; - break; - } - return 0; -} - -int be_visitor_args_vardecl_ss::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << bt->name () << "_var " << arg->local_name () << ";" << be_nl; - *os << "CORBA::Object_var _tao_base_var_" << arg->local_name () - << ";" << be_nl; - *os << "CORBA::Object_ptr &_tao_base_ptr_" << arg->local_name () - << " = _tao_base_var_" << arg->local_name () << ".out ();\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << bt->name () << "_var _tao_var_" - << arg->local_name () << ";" << be_nl; - *os << "CORBA::Object_ptr _tao_base_ptr_" - << arg->local_name () << ";" << be_nl; - *os << bt->name () << "_out " << arg->local_name () - << " (_tao_var_" << arg->local_name () << ".out ());\n"; - break; - } - return 0; -} - -int be_visitor_args_vardecl_ss::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << bt->name () << "_var " << arg->local_name () << ";" << be_nl; - *os << "CORBA::Object_var _tao_base_var_" << arg->local_name () - << ";" << be_nl; - *os << "CORBA::Object_ptr &_tao_base_ptr_" << arg->local_name () - << " = _tao_base_var_" << arg->local_name () << ".out ();\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << bt->name () << "_var _tao_var_" - << arg->local_name () << ";" << be_nl; - *os << "CORBA::Object_ptr _tao_base_ptr_" - << arg->local_name () << ";" << be_nl; - *os << bt->name () << "_out " << arg->local_name () - << " (_tao_var_" << arg->local_name () << ".out ());\n"; - break; - } - return 0; -} - -int be_visitor_args_vardecl_ss::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // check if the type is an any - if (node->pt () == AST_PredefinedType::PT_any) - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << bt->name () << " " << arg->local_name () << ";\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << bt->name () << "_var _tao_var_" - << arg->local_name () << ";" << be_nl; - *os << bt->name () << "_ptr &_tao_ptr_" << arg->local_name () - << " = _tao_var_" << arg->local_name () << ".out ();" << be_nl; - *os << bt->name () << "_out " << arg->local_name () - << " (_tao_ptr_" << arg->local_name () << ");\n"; - break; - } // end switch direction - } // end of if - else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << bt->name () << "_var " << arg->local_name () - << ";" << be_nl; - *os << bt->name () << "_ptr &_tao_ptr_" << arg->local_name () - << " = " << arg->local_name () << ".out ();\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << bt->name () << "_var _tao_var_" - << arg->local_name () << ";" << be_nl; - *os << bt->name () << "_ptr _tao_ptr_" << arg->local_name () - << ";" << be_nl; - *os << bt->name () << "_out " << arg->local_name () - << " (_tao_var_" << arg->local_name () << ".out ());" << be_nl; - break; - } // end switch direction - } // end else if - else // simple predefined types - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - os->indent (); - *os << bt->name () << " " << arg->local_name () << ";\n"; - break; - } // end switch direction - } // end of else - - return 0; -} - -int be_visitor_args_vardecl_ss::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << bt->name () << " " << arg->local_name () << ";\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << bt->name () << "_var _tao_var_" - << arg->local_name () << ";" << be_nl; - *os << bt->name () << " *&_tao_ptr_" << arg->local_name () - << " = _tao_var_" << arg->local_name () << ".out ();" << be_nl; - *os << bt->name () << "_out " << arg->local_name () - << " (_tao_ptr_" << arg->local_name () << ");\n"; - break; - } - return 0; -} - -int be_visitor_args_vardecl_ss::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << "char *" << arg->local_name () << ";\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << "CORBA::String_var _tao_var_" - << arg->local_name () << ";" << be_nl; - *os << "char *&_tao_ptr_" << arg->local_name () << " = _tao_var_" - << arg->local_name () << ".out ();" << be_nl; - *os << "CORBA::String_out " << arg->local_name () - << " (_tao_ptr_" << arg->local_name () << ");\n"; - break; - } - return 0; -} - -int be_visitor_args_vardecl_ss::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << bt->name () << " " << arg->local_name () << ";\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - // check if it is variable sized - if (node->size_type () == be_type::VARIABLE) - { - *os << bt->name () << "_var _tao_var_" - << arg->local_name () << ";" << be_nl; - *os << bt->name () << " *&_tao_ptr_" << arg->local_name () - << " = _tao_var_" << arg->local_name () << ".out ();" << be_nl; - *os << bt->name () << "_out " << arg->local_name () - << " (_tao_ptr_" << arg->local_name () << ");\n"; - } - else - *os << bt->name () << " " << arg->local_name () << ";\n"; - break; - } - return 0; -} - -int be_visitor_args_vardecl_ss::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << bt->name () << " " << arg->local_name () << ";\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - // check if it is variable sized - if (node->size_type () == be_type::VARIABLE) - { - *os << bt->name () << "_var _tao_var_" - << arg->local_name () << ";" << be_nl; - *os << bt->name () << " *&_tao_ptr_" << arg->local_name () - << " = _tao_var_" << arg->local_name () << ".out ();" << be_nl; - *os << bt->name () << "_out " << arg->local_name () - << " (_tao_ptr_" << arg->local_name () << ");\n"; - } - else - *os << bt->name () << " " << arg->local_name () << ";\n"; - break; - } - return 0; -} - -int be_visitor_args_vardecl_ss::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_vardecl_ss::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -// ************************************************************************ -// Visitor to generate code for passing argument to the marshal/demarshal -// routines -// ************************************************************************ - -be_visitor_args_marshal_ss::be_visitor_args_marshal_ss (be_visitor_context *ctx) - : be_visitor_args (ctx) -{ -} - -be_visitor_args_marshal_ss::~be_visitor_args_marshal_ss (void) -{ -} - -int be_visitor_args_marshal_ss::visit_argument (be_argument *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - this->ctx_->node (node); // save the argument node - - // retrieve the type - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_marshal_ss::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_marshal_ss::" - "visit_argument - " - "cannot accept visitor\n"), - -1); - } - - return 0; -} - -int be_visitor_args_marshal_ss::visit_array (be_array *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << arg->local_name (); - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << "_tao_var_" << arg->local_name () << ".ptr ()"; - break; - } - return 0; -} - -int be_visitor_args_marshal_ss::visit_enum (be_enum *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - os->indent (); - *os << "&" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_marshal_ss::visit_interface (be_interface *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - os->indent (); - *os << "&_tao_base_ptr_" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_marshal_ss::visit_interface_fwd (be_interface_fwd *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - os->indent (); - *os << "&_tao_base_ptr_" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_marshal_ss::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - // check if the type is an any - if (node->pt () == AST_PredefinedType::PT_any) - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << "_tao_ptr_" << arg->local_name (); - break; - } // end switch direction - } // end of if - else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - os->indent (); - *os << "&_tao_ptr_" << arg->local_name (); - break; - } // end switch direction - } // end else if - else // simple predefined types - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - os->indent (); - *os << "&" << arg->local_name (); - break; - } // end switch direction - } // end of else - - return 0; -} - -int be_visitor_args_marshal_ss::visit_sequence (be_sequence *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << "_tao_ptr_" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_marshal_ss::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << "&_tao_ptr_" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_marshal_ss::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - os->indent (); - if (node->size_type () == be_type::VARIABLE) - *os << "_tao_ptr_" << arg->local_name (); - else - *os << "&" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_marshal_ss::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - os->indent (); - if (node->size_type () == be_type::VARIABLE) - *os << "_tao_ptr_" << arg->local_name (); - else - *os << "&" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_marshal_ss::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_marshal_ss::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -// ************************************************************************ -// visitor for passing arguments to the upcall -// ************************************************************************ - -be_visitor_args_pre_upcall_ss::be_visitor_args_pre_upcall_ss (be_visitor_context *ctx) - : be_visitor_args (ctx) -{ -} - -be_visitor_args_pre_upcall_ss::~be_visitor_args_pre_upcall_ss (void) -{ -} - -int be_visitor_args_pre_upcall_ss::visit_argument (be_argument *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - this->ctx_->node (node); // save the argument node - - // retrieve the type - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_pre_upcall_ss::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_pre_upcall_ss::" - "visit_argument - " - "cannot accept visitor\n"), - -1); - } - - return 0; -} - -int be_visitor_args_pre_upcall_ss::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_pre_upcall_ss::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_pre_upcall_ss::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: // inout - os->indent (); - *os << arg->local_name () << " = " << node->name () - << "::_narrow (_tao_base_var_" << arg->local_name () - << ".in (), _tao_environment);\n"; - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_pre_upcall_ss::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: // inout - os->indent (); - *os << arg->local_name () << " = " << node->name () - << "::_narrow (_tao_base_var_" << arg->local_name () - << ".in (), _tao_environment);\n"; - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_pre_upcall_ss::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // check if the type is an any - if (node->pt () == AST_PredefinedType::PT_any) - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } // end switch direction - } // end of if - else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } // end switch direction - } // end else if - else // simple predefined types - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } // end switch direction - } // end of else - - return 0; -} - -int be_visitor_args_pre_upcall_ss::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_pre_upcall_ss::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_pre_upcall_ss::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_pre_upcall_ss::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_pre_upcall_ss::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_pre_upcall_ss::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -// ************************************************************************ -// visitor for passing arguments to the upcall -// ************************************************************************ - -be_visitor_args_upcall_ss::be_visitor_args_upcall_ss (be_visitor_context *ctx) - : be_visitor_args (ctx) -{ -} - -be_visitor_args_upcall_ss::~be_visitor_args_upcall_ss (void) -{ -} - -int be_visitor_args_upcall_ss::visit_argument (be_argument *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - this->ctx_->node (node); // save the argument node - - // retrieve the type - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_upcall_ss::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_upcall_ss::" - "visit_argument - " - "cannot accept visitor\n"), - -1); - } - - return 0; -} - -int be_visitor_args_upcall_ss::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_upcall_ss::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_upcall_ss::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - if (this->ctx_->state () - == TAO_CodeGen::TAO_ARGUMENT_COLLOCATED_UPCALL_SS) - *os << arg->local_name (); - else - *os << arg->local_name () << ".in ()"; - break; - case AST_Argument::dir_INOUT: - if (this->ctx_->state () - == TAO_CodeGen::TAO_ARGUMENT_COLLOCATED_UPCALL_SS) - *os << arg->local_name (); - else - *os << arg->local_name () << ".inout ()"; - break; - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_upcall_ss::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - if (this->ctx_->state () - == TAO_CodeGen::TAO_ARGUMENT_COLLOCATED_UPCALL_SS) - *os << arg->local_name (); - else - *os << arg->local_name () << ".in ()"; - break; - case AST_Argument::dir_INOUT: - if (this->ctx_->state () - == TAO_CodeGen::TAO_ARGUMENT_COLLOCATED_UPCALL_SS) - *os << arg->local_name (); - else - *os << arg->local_name () << ".inout ()"; - break; - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_upcall_ss::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - // check if the type is an any - if (node->pt () == AST_PredefinedType::PT_any) - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } // end switch direction - } // end of if - else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - if (this->ctx_->state () - == TAO_CodeGen::TAO_ARGUMENT_COLLOCATED_UPCALL_SS) - *os << arg->local_name (); - else - *os << arg->local_name () << ".in ()"; - break; - case AST_Argument::dir_INOUT: - if (this->ctx_->state () - == TAO_CodeGen::TAO_ARGUMENT_COLLOCATED_UPCALL_SS) - *os << arg->local_name (); - else - *os << arg->local_name () << ".inout ()"; - break; - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } // end switch direction - } // end else if - else // simple predefined types - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } // end switch direction - } // end of else - - return 0; -} - -int be_visitor_args_upcall_ss::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_upcall_ss::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_upcall_ss::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_upcall_ss::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_upcall_ss::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_upcall_ss::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -// ************************************************************************ -// visitor for doing any post-processing after the upcall is made -// ************************************************************************ - -be_visitor_args_post_upcall_ss::be_visitor_args_post_upcall_ss (be_visitor_context *ctx) - : be_visitor_args (ctx) -{ -} - -be_visitor_args_post_upcall_ss::~be_visitor_args_post_upcall_ss (void) -{ -} - -int be_visitor_args_post_upcall_ss::visit_argument (be_argument *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - this->ctx_->node (node); // save the argument node - - // retrieve the type - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_post_upcall_ss::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_post_upcall_ss::" - "visit_argument - " - "cannot accept visitor\n"), - -1); - } - - return 0; -} - -int be_visitor_args_post_upcall_ss::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_upcall_ss::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_upcall_ss::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: // inout - os->indent (); - *os << "_tao_base_ptr_" << arg->local_name () - << " = " << arg->local_name () << ".in ();\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << "_tao_base_ptr_" << arg->local_name () << " = _tao_var_" - << arg->local_name () << ".in ();\n"; - break; - } - return 0; -} - -int be_visitor_args_post_upcall_ss::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: // inout - os->indent (); - *os << "_tao_base_ptr_" << arg->local_name () << " = " - << arg->local_name () << ".in ();\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << "_tao_base_ptr_" << arg->local_name () << " = _tao_var_" - << arg->local_name () << ".in ();\n"; - break; - } - return 0; -} - -int be_visitor_args_post_upcall_ss::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // check if the type is an any - if (node->pt () == AST_PredefinedType::PT_any) - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } // end switch direction - } // end of if - else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } // end switch direction - } // end else if - else // simple predefined types - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } // end switch direction - } // end of else - - return 0; -} - -int be_visitor_args_post_upcall_ss::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_upcall_ss::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_upcall_ss::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_upcall_ss::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_upcall_ss::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_post_upcall_ss::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -// ************************************************************************ -// visitor for doing any post-processing after the marshaling is done -// ************************************************************************ - -be_visitor_args_post_marshal_ss::be_visitor_args_post_marshal_ss (be_visitor_context *ctx) - : be_visitor_args (ctx) -{ -} - -be_visitor_args_post_marshal_ss::~be_visitor_args_post_marshal_ss (void) -{ -} - -int be_visitor_args_post_marshal_ss::visit_argument (be_argument *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - this->ctx_->node (node); // save the argument node - - // retrieve the type - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_post_marshal_ss::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_post_marshal_ss::" - "visit_argument - " - "cannot accept visitor\n"), - -1); - } - - return 0; -} - -int be_visitor_args_post_marshal_ss::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_marshal_ss::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_marshal_ss::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: // inout - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_marshal_ss::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: // inout - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_marshal_ss::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // check if the type is an any - if (node->pt () == AST_PredefinedType::PT_any) - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } // end switch direction - } // end of if - else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } // end switch direction - } // end else if - else // simple predefined types - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } // end switch direction - } // end of else - - return 0; -} - -int be_visitor_args_post_marshal_ss::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_marshal_ss::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_marshal_ss::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_marshal_ss::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_marshal_ss::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_post_marshal_ss::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_array.cpp b/TAO/TAO_IDL/be/be_visitor_array.cpp deleted file mode 100644 index 0f92cd40b52..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_array.cpp +++ /dev/null @@ -1,537 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_array.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Array -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_array.h" - -// ************************************************************************ -// visitor for array declaration in client header -// ************************************************************************ - -be_visitor_array_ch::be_visitor_array_ch (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_array_ch::~be_visitor_array_ch (void) -{ -} - -int be_visitor_array_ch::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_type *bt; // base type - be_decl *scope = this->ctx_->scope (); // scope in which it is used - - // nothing to do if we are imported or code is already generated - if (node->imported () || (node->cli_hdr_gen ())) - return 0; - - this->ctx_->node (node); // save the array node - - // retrieve the type - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ch::" - "visit_array - " - "Bad base type\n"), - -1); - } - - // generate the ifdefined macro - os->gen_ifdef_macro (node->flatname ()); - - os->indent (); - if (this->ctx_->tdef ()) - { - // this is a typedef to an array node - *os << "typedef " << bt->nested_type_name (scope) << " " - << node->local_name (); - if (node->gen_dimensions (os) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ch::" - "visit_array - " - "gen dimensions failed\n"), - -1); - } - *os << ";" << be_nl; - *os << "typedef " << bt->nested_type_name (scope) << " " - << node->local_name () << "_slice"; - if (node->gen_dimensions (os, 1) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ch::" - "visit_array - " - "gen slice dimensions failed\n"), - -1); - } - *os << ";" << be_nl; - } - else - { - } - // typedef the _var, _out, and _forany types - if (node->gen_var_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ch::" - "visit_argument - " - "var_defn failed\n"), - -1); - } - if (node->gen_out_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ch::" - "visit_argument - " - "out_defn failed\n"), - -1); - } - if (node->gen_forany_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ch::" - "visit_argument - " - "forany_defn failed\n"), - -1); - } - // the _alloc, _dup, copy, and free methods. If the node is nested, the - // methods become static - *os << "static " << node->nested_type_name (scope, "_slice") << " *" - << node->nested_type_name (scope, "_alloc") << " (void);" << be_nl; - *os << "static " << node->nested_type_name (scope, "_slice") << " *" - << node->nested_type_name (scope, "_dup") << " (const " - << node->nested_type_name (scope, "_slice") << " *_tao_slice);" << be_nl; - *os << "static void " << node->nested_type_name (scope, "_copy") << " (" - << node->nested_type_name (scope, "_slice") << " *_tao_to, const " - << node->nested_type_name (scope, "_slice") << " *_tao_from);" << be_nl; - *os << "static void " << node->nested_type_name (scope, "_free") << " (" - << node->nested_type_name (scope, "_slice") << " *_tao_slice);" << be_nl; - - // is this a typedefined array? if so, then let the typedef deal with - // generation of the typecode - if (!this->ctx_->tdef ()) - { - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor_context ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_TYPECODE_DECL); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_array_ch::" - "visit_array - " - "TypeCode declaration failed\n" - ), -1); - } - delete visitor; - } - - // generate the endif macro - os->gen_endif (); - - node->cli_hdr_gen (1); - return 0; -} - -// ************************************************************************ -// visitor for array declaration in client inline -// ************************************************************************ - -be_visitor_array_ci::be_visitor_array_ci (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_array_ci::~be_visitor_array_ci (void) -{ -} - -int be_visitor_array_ci::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_type *bt; // base type - be_decl *scope = this->ctx_->scope (); // scope in which it is used - - // nothing to do if we are imported or code is already generated - if (node->imported () || (node->cli_inline_gen ())) - return 0; - - this->ctx_->node (node); // save the array node - - // retrieve the type - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ci::" - "visit_array - " - "Bad base type\n"), - -1); - } - - // alloc method - os->indent (); // start from current indentation - *os << "ACE_INLINE " << node->name () << "_slice *" << be_nl; - *os << node->name () << "_alloc (void)" << be_nl; - *os << "{" << be_idt_nl; - *os << "return new " << bt->name (); - if (node->gen_dimensions (os) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::" - "gen_client_inline - " - "dimensions codegen failed\n"), - -1); - } - - *os << ";" << be_uidt_nl; - *os << "}\n\n"; - - // free method - os->indent (); - *os << "ACE_INLINE void" << be_nl - << node->name () << "_free (" << node->name () - << "_slice *_tao_slice)" << be_nl; - *os << "{" << be_idt_nl; - *os << "delete [] _tao_slice;" << be_uidt_nl; - *os << "}\n\n"; - - // generate code for the _var, _out, and _forany types - if (node->gen_var_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ci::" - "visit_array - " - "var_defn failed\n"), - -1); - } - if (node->gen_out_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ci::" - "visit_array - " - "out_defn failed\n"), - -1); - } - if (node->gen_forany_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ci::" - "visit_array - " - "forany_defn failed\n"), - -1); - } - - // is this a typedefined array? if so, then let the typedef deal with - // generation of the typecode - if (!this->ctx_->tdef ()) - { - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor_context ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_TYPECODE_DEFN); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_array_cs::" - "visit_array - " - "TypeCode definition failed\n" - ), -1); - } - delete visitor; - } - - node->cli_inline_gen (1); - return 0; -} - -// ************************************************************************ -// visitor for array declaration in client stubs -// ************************************************************************ - -be_visitor_array_cs::be_visitor_array_cs (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_array_cs::~be_visitor_array_cs (void) -{ -} - -int be_visitor_array_cs::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_type *bt; // base type - be_decl *scope = this->ctx_->scope (); // scope in which it is used - unsigned long i; - - // nothing to do if we are imported or code is already generated - if (node->imported () || (node->cli_stub_gen ())) - return 0; - - this->ctx_->node (node); // save the array node - - // retrieve the type - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ci::" - "visit_array - " - "Bad base type\n"), - -1); - } - - // dup method - os->indent (); - *os << node->name () << "_slice *" << be_nl - << node->name () << "_dup (const " << node->name () - << "_slice *_tao_src_array)" << be_nl; - *os << "{" << be_idt_nl; - *os << node->name () << "_slice *_tao_dup_array = " << node->name () - << "_alloc ();" << be_nl; - *os << "if (!_tao_dup_array) return (" << node->name () - << "_slice *)0;" << be_nl; - *os << node->name () << "_copy (_tao_dup_array, _tao_src_array);" << be_nl; - *os << "return _tao_dup_array;" << be_uidt_nl; - *os << "}\n\n"; - - // copy method - *os << "void " << be_nl; - *os << node->name () << "_copy (" << node->name () << "_slice * _tao_to, " - << "const " << node->name () << "_slice *_tao_from)" << be_nl; - *os << "{" << be_idt_nl; - *os << "// copy each individual elements" << be_nl; - - // generate nested loops for as many dimensions as there are - for (i = 0; i < node->n_dims (); i++) - { - // retrieve the ith dimension value - AST_Expression *expr = node->dims ()[i]; - // dimension value - if ((expr == NULL) || ((expr != NULL) && (expr->ev () == NULL))) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_array_cs::" - "visit_array - " - "bad array dimension\n"), - -1); - } - if (expr->ev ()->et == AST_Expression::EV_ulong) - { - // generate a loop for each dimension - *os << "for (CORBA::ULong i" << i << " = 0; i" << i << " < " - << expr->ev ()->u.ulval << "; i" << i << "++)" << be_idt_nl; - } - else - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_array_cs::" - "visit_array - " - "bad array dimension value\n"), - -1); - } - } - - // now generate code such that every element of the array gets assigned - // inside the innermost level of the nested loops generated above - be_array *primitive_type = 0; - if (bt->node_type () == AST_Decl::NT_typedef) - { - // base type of the array node is a typedef. We need to make sure that - // this typedef is not to another array type. If it is, then we cannot - // assign an array to another. We will have to invoke the underlying - // array type's copy method for every array dimension. - be_typedef *tdef = be_typedef::narrow_from_decl (bt); - // check if the base type of the typedef node is an Array node - primitive_type = be_array::narrow_from_decl (tdef->base_type ()); - } - if (primitive_type) - { - // the base type is not a typedef to a possibly another array type. In - // such a case, assign each element. - - *os << "// call the underlying _copy" << be_nl; - *os << bt->name () << "_copy (_tao_to"; - for (i = 0; i < node->n_dims (); i++) - { - *os << "[i" << i << "]"; - } - *os << ", "; - *os << "_tao_from"; // generate the rvalue - for (i = 0; i < node->n_dims (); i++) - { - *os << "[i" << i << "]"; - } - *os << ");"; - } - else - { - // the base type is not a typedef to a possibly another array type. In - // such a case, assign each element. - - *os << "_tao_to"; // generate the lvalue - for (i = 0; i < node->n_dims (); i++) - { - *os << "[i" << i << "]"; - } - *os << " = "; - *os << "_tao_from"; // generate the rvalue - for (i = 0; i < node->n_dims (); i++) - { - *os << "[i" << i << "]"; - } - *os << ";"; - } - for (i = 0; i < node->n_dims (); i++) - { - // decrement indentation as many times as the number of dimensions - *os << be_uidt; - } - *os << be_uidt_nl << "}\n\n"; - - node->cli_stub_gen (1); - - return 0; -} - -// *************************************************************************** -// Array visitor for generating Any operator declarations in the client header -// *************************************************************************** - -be_visitor_array_any_op_ch::be_visitor_array_any_op_ch -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_array_any_op_ch::~be_visitor_array_any_op_ch (void) -{ -} - -int -be_visitor_array_any_op_ch::visit_array (be_array *node) -{ - if (node->cli_hdr_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the Any <<= and >>= operator declarations - os->indent (); - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, const " << node->name () - << "_forany &);" << be_nl; - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator>>= (const CORBA::Any &, " - << node->name () << "_forany &);\n"; - - node->cli_hdr_any_op_gen (1); - return 0; -} - -// *************************************************************************** -// Array visitor for generating Any operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_array_any_op_cs::be_visitor_array_any_op_cs -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_array_any_op_cs::~be_visitor_array_any_op_cs (void) -{ -} - -int -be_visitor_array_any_op_cs::visit_array (be_array *node) -{ - if (node->cli_stub_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // generate the Any <<= and >>= operator declarations - // Any <<= and >>= operators - os->indent (); - *os << "void operator<<= (CORBA::Any &_tao_any, const " - << node->name () << "_forany &_tao_elem)" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "if (_tao_elem.nocopy ()) // no copy" << be_idt_nl - << "_tao_any.replace (" << node->tc_name () << ", " - << "_tao_elem.ptr (), 1, _tao_env); // consume it" << be_uidt_nl - << "else // copy" << be_idt_nl - << "_tao_any.replace (" << node->tc_name () << ", " << node->name () - << "_dup (_tao_elem.ptr ()), 1, _tao_env);" << be_uidt_nl - << be_uidt_nl << "}" << be_nl; - - *os << "CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, " - << node->name () << "_forany &_tao_elem)" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "if (!_tao_any.type ()->equal (" << node->tc_name () - << ", _tao_env)) return 0; // not equal" << be_nl - << "if (_tao_any.any_owns_data ())" << be_nl - << "{" << be_idt_nl - << node->name () << "_slice *&_tao_elem_ptr = _tao_elem.out ();" << be_nl - << "_tao_elem_ptr = " << node->name () << "_alloc ();" << be_nl - << "if (!_tao_elem_ptr) return 0;" << be_nl - << "TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());" - << be_nl - << "if (stream.decode (" << node->tc_name () - << ", _tao_elem_ptr, 0, _tao_env)" << be_nl - << " == CORBA::TypeCode::TRAVERSE_CONTINUE)" << be_nl - << "{" << be_idt_nl - << "((CORBA::Any *)&_tao_any)->replace (_tao_any.type (), " - << "_tao_elem_ptr, 1, _tao_env);" - << be_nl - << " return 1;" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl // decode failed - << "{" << be_idt_nl - << node->name () << "_free (_tao_elem_ptr);" << be_nl - << "return 0;" << be_uidt_nl - << "}" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl // else Any does not own the data - << "{" << be_idt_nl - << "_tao_elem = (" << node->name () << "_slice *)_tao_any.value ();" - << be_nl - << "return 1;" << be_uidt_nl - << "}" << be_uidt_nl - << "}\n\n"; - - node->cli_stub_any_op_gen (1); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_attribute.cpp b/TAO/TAO_IDL/be/be_visitor_attribute.cpp deleted file mode 100644 index ad677a8ed3f..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_attribute.cpp +++ /dev/null @@ -1,188 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_attribute.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Attribute -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_attribute.h" - -// Attribute gets mapped to one or possibly two operations based on whether -// it is readonly or not. The two operations "get" and "set" the value of the -// attribute. -// -// code generation for attributes is achieved by mapping an attribute node to -// a corresponding operation node. The reason is that we do not want to -// duplicate the code. However, an attribute node and an operation node have -// different interfaces. Hence we need some form of an adapter that can take us -// from an attribute node to an operation node. The following paragraph -// describes how this is accomplished. -// -// For a "get" operation on the attribute, we create an operation node with the -// same name as the attribute and a return type which is the same as the type -// of the attribute. This operation has no arguments. -// -// For a "set" operation on the attribute (if it is not readonly), we create an -// operation node with a "void" return type and an "in" parameter of the same -// type as the attribute. - -// In both cases the context will hold sufficient information to indicate that -// the operation node is really an attribute node. - -// ************************************************************************* -// primary visitor for "attribute". The context state decides the next state -// ************************************************************************* - -be_visitor_attribute::be_visitor_attribute (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_attribute::~be_visitor_attribute (void) -{ -} - -int -be_visitor_attribute::visit_attribute (be_attribute *node) -{ - TAO_OutStream *os; // output stream - // be_type *bt; // type node - - os = this->ctx_->stream (); - this->ctx_->node (node); // save the node - this->ctx_->attribute (node); // save this attribute node - - be_operation *op; - - // first the "get" operation - op = new be_operation (node->field_type (), AST_Operation::OP_noflags, - node->name (), 0); - op->set_name (node->name ()); - be_visitor_context ctx (*this->ctx_); - - // this switch statement eliminates the need for different classes that have - // exactly the same code except different states. - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ATTRIBUTE_CH: - ctx.state (TAO_CodeGen::TAO_OPERATION_CH); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_CS: - ctx.state (TAO_CodeGen::TAO_OPERATION_CS); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_SH: - ctx.state (TAO_CodeGen::TAO_OPERATION_SH); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_SS: - ctx.state (TAO_CodeGen::TAO_OPERATION_SS); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_COLLOCATED_SH: - ctx.state (TAO_CodeGen::TAO_OPERATION_COLLOCATED_SH); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_COLLOCATED_SS: - ctx.state (TAO_CodeGen::TAO_OPERATION_COLLOCATED_SS); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_TIE_SH: - ctx.state (TAO_CodeGen::TAO_OPERATION_TIE_SH); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_TIE_SI: - ctx.state (TAO_CodeGen::TAO_OPERATION_TIE_SI); - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor || !op || (op->accept (visitor) == -1)) - { - delete visitor; - delete op; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_attribute::" - "visit_attribute - " - "codegen for get_attribute failed\n"), - -1); - } - delete op; - delete visitor; - if (node->readonly ()) - return 0; // nothing else to do - - // the set method. - // the return type is "void" - be_predefined_type *rt = new be_predefined_type (AST_PredefinedType::PT_void, - new UTL_ScopedName - (new Identifier - ("void", 1, 0, I_FALSE), 0), - 0); - // argument type is the same as the attribute type - be_argument *arg = new be_argument (AST_Argument::dir_IN, - node->field_type (), - node->name (), - 0); - arg->set_name (node->name ()); - // create the operation - op = new be_operation (rt, AST_Operation::OP_noflags, - node->name (), 0); - op->set_name (node->name ()); - op->add_argument_to_scope (arg); - - ctx = *this->ctx_; - // this switch statement eliminates the need for different classes that have - // exactly the same code except different states. - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ATTRIBUTE_CH: - ctx.state (TAO_CodeGen::TAO_OPERATION_CH); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_CS: - ctx.state (TAO_CodeGen::TAO_OPERATION_CS); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_SH: - ctx.state (TAO_CodeGen::TAO_OPERATION_SH); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_SS: - ctx.state (TAO_CodeGen::TAO_OPERATION_SS); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_COLLOCATED_SH: - ctx.state (TAO_CodeGen::TAO_OPERATION_COLLOCATED_SH); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_COLLOCATED_SS: - ctx.state (TAO_CodeGen::TAO_OPERATION_COLLOCATED_SS); - break; - } - - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || !op || (op->accept (visitor) == -1)) - { - delete visitor; - delete op; - delete arg; - delete rt; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_attribute::" - "visit_attribute - " - "codegen for set_attribute failed\n"), - -1); - } - delete op; - delete visitor; - delete rt; - delete arg; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_constant.cpp b/TAO/TAO_IDL/be/be_visitor_constant.cpp deleted file mode 100644 index 536ffe06e25..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_constant.cpp +++ /dev/null @@ -1,181 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_constant.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Constant -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_constant.h" - -// ******************************************************************** -// Visitor implementation for the Constant type -// This one for the client header file -// ******************************************************************** - -be_visitor_constant_ch::be_visitor_constant_ch (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_constant_ch::~be_visitor_constant_ch (void) -{ -} - -// visit the Constant_Ch node and its scope -int -be_visitor_constant_ch::visit_constant (be_constant *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - if (!node->cli_hdr_gen () && !node->imported ()) - { - // if we are defined in the outermost scope, then the value is assigned - // to us here itself, else it will be in the *.cpp file - - os->indent (); // start from whatever indentation level we were at - // is our enclosing scope a module? We need this check because for - // platforms that support namespaces, the typecode must be declared - // extern - if (node->is_nested () && - (node->defined_in ()->scope_node_type () == AST_Decl::NT_module)) - *os << "TAO_NAMESPACE_STORAGE_CLASS "; - else - *os << "static "; - *os << "const " << node->exprtype_to_string () - << " " << node->local_name (); - if (!node->is_nested ()) - { - // We were defined at the outermost scope. So we put the value in the - // header itself - *os << " = " << node->constant_value (); - } - *os << ";\n\n"; - node->cli_hdr_gen (I_TRUE); - } - return 0; -} - -// ******************************************************************** -// Visitor implementation for the Constant type -// This one for the client stubs file -// ******************************************************************** - -be_visitor_constant_cs::be_visitor_constant_cs (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_constant_cs::~be_visitor_constant_cs (void) -{ -} - -// visit the Constant_cs node and its scope -int -be_visitor_constant_cs::visit_constant (be_constant *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - if (!node->cli_stub_gen () && !node->imported ()) - { - if (node->is_nested ()) - { - if (node->defined_in ()->scope_node_type () == AST_Decl::NT_module) - { - *os << "TAO_NAMESPACE_TYPE (const " - << node->exprtype_to_string () << ")" << be_nl; - be_module *module = be_module::narrow_from_scope (node->defined_in ()); - if (!module || (this->gen_nested_namespace_begin (module) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_constant_cs::visit_constant - " - "Error parsing nested name\n"), - -1); - } - *os << "TAO_NAMESPACE_DEFINE (const " - << node->exprtype_to_string () << ", " - << node->local_name () << ", " - << node->constant_value () << ")" << be_nl; - if (this->gen_nested_namespace_end (module) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_constant_cs::visit_constant - " - "Error parsing nested name\n"), - -1); - } - } - else - { - // for those constants not defined in the outer most scope, they get - // assigned to their values in the impl file - os->indent (); // start from whatever indentation level we were at - *os << "const " << node->exprtype_to_string () << " " - << node->name () << " = " << node->constant_value () - << ";\n\n"; - } - } - node->cli_stub_gen (I_TRUE); - } - return 0; -} - -// the following needs to be done to deal with the most bizarre behavior of -// MSVC++ compiler -int -be_visitor_constant_cs::gen_nested_namespace_begin (be_module *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - UTL_IdListActiveIterator *i; - - i = new UTL_IdListActiveIterator (node->name ()); - while (!(i->is_done ())) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - { - // leave the outermost root scope - *os << "TAO_NAMESPACE_BEGIN (" << i->item ()->get_string () - << ")" << be_nl; - } - i->next (); - } - delete i; - return 0; -} - -// the following needs to be done to deal with the most bizarre behavior of -// MSVC++ compiler -int -be_visitor_constant_cs::gen_nested_namespace_end (be_module *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - UTL_IdListActiveIterator *i; - - i = new UTL_IdListActiveIterator (node->name ()); - while (!(i->is_done ())) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - { - // leave the outermost root scope - *os << "TAO_NAMESPACE_END" << be_nl; - } - i->next (); - } - delete i; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_context.cpp b/TAO/TAO_IDL/be/be_visitor_context.cpp deleted file mode 100644 index a430e5cb54e..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_context.cpp +++ /dev/null @@ -1,478 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_context.cpp -// -// = DESCRIPTION -// Maintains the context information for visitors -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -// constructor -be_visitor_context::be_visitor_context (void) - : state_ (TAO_CodeGen::TAO_UNKNOWN), - os_ (0), - scope_ (0), - node_ (0), - alias_ (0), - tdef_ (0), - attr_ (0), - exception_ (0), - comma_ (0) -{ -} - -be_visitor_context::be_visitor_context (const be_visitor_context &ctx) - : state_ (ctx.state_), - os_ (ctx.os_), - scope_ (ctx.scope_), - node_ (ctx.node_), - alias_ (ctx.alias_), - tdef_ (ctx.tdef_), - attr_ (ctx.attr_), - exception_ (ctx.exception_), - comma_ (ctx.comma_) -{ -} - -be_visitor_context & -be_visitor_context::operator= (const be_visitor_context &ctx) -{ - this->state_ = ctx.state_; - this->os_ = ctx.os_; - this->scope_ = ctx.scope_; - this->node_ = ctx.node_; - this->alias_ = ctx.alias_; - this->tdef_ = ctx.tdef_; - this->attr_ = ctx.attr_; - this->exception_ = ctx.exception_; - this->comma_ = ctx.comma_; - - return *this; -} - -be_visitor_context::~be_visitor_context (void) -{ - // we do not own anything -} - -//= helpers - -void -be_visitor_context::reset (void) -{ - this->state_ = TAO_CodeGen::TAO_INITIAL; - this->os_ = 0; - this->scope_ = 0; - this->node_ = 0; - this->alias_ = 0; - this->tdef_ = 0; - this->attr_ = 0; - this->exception_ = 0; - this->comma_ = 0; - -} - -void -be_visitor_context::stream (TAO_OutStream *os) -{ - this->os_ = os; -} - -TAO_OutStream * -be_visitor_context::stream (void) -{ - return this->os_; -} - -void -be_visitor_context::scope (be_decl *s) -{ - this->scope_ = s; -} - -be_decl * -be_visitor_context::scope (void) -{ - return this->scope_; -} - -void -be_visitor_context::node (be_decl *n) -{ - this->node_ = n; -} - -be_decl * -be_visitor_context::node (void) -{ - return this->node_; -} - -void -be_visitor_context::state (TAO_CodeGen::CG_STATE st) -{ - this->state_ = st; -} - -TAO_CodeGen::CG_STATE -be_visitor_context::state (void) -{ - return this->state_; -} - -void -be_visitor_context::tdef (be_typedef *node) -{ - this->tdef_ = node; -} - -be_typedef * -be_visitor_context::tdef (void) -{ - return this->tdef_; -} - -void -be_visitor_context::alias (be_typedef *node) -{ - this->alias_ = node; -} - -be_typedef * -be_visitor_context::alias (void) -{ - return this->alias_; -} - -void -be_visitor_context::attribute (be_attribute *node) -{ - this->attr_ = node; -} - -be_attribute * -be_visitor_context::attribute (void) -{ - return this->attr_; -} - -void -be_visitor_context::exception (idl_bool ib) -{ - this->exception_ = ib; -} - -idl_bool -be_visitor_context::exception (void) -{ - return this->exception_; -} - -void -be_visitor_context::comma (idl_bool ib) -{ - this->comma_ = ib; -} - -idl_bool -be_visitor_context::comma (void) -{ - return this->comma_; -} - -// return the node as argument if possible -be_argument * -be_visitor_context::be_node_as_argument (void) -{ - if (this->node_) - return be_argument::narrow_from_decl (this->node_); - else - return (be_argument *)0; -} - -// return the node as array if possible -be_array * -be_visitor_context::be_node_as_array (void) -{ - if (this->node_) - return be_array::narrow_from_decl (this->node_); - else - return (be_array *)0; -} - -// return the node as attribute if possible -be_attribute * -be_visitor_context::be_node_as_attribute (void) -{ - if (this->node_) - return be_attribute::narrow_from_decl (this->node_); - else - return (be_attribute *)0; -} - -// return the node as constant if possible -be_constant * -be_visitor_context::be_node_as_constant (void) -{ - if (this->node_) - return be_constant::narrow_from_decl (this->node_); - else - return (be_constant *)0; -} - -// return the node as enum if possible -be_enum * -be_visitor_context::be_node_as_enum (void) -{ - if (this->node_) - return be_enum::narrow_from_decl (this->node_); - else - return (be_enum *)0; -} - -// return the node as enum_val if possible -be_enum_val * -be_visitor_context::be_node_as_enum_val (void) -{ - if (this->node_) - return be_enum_val::narrow_from_decl (this->node_); - else - return (be_enum_val *)0; -} - -// return the node as exception if possible -be_exception * -be_visitor_context::be_node_as_exception (void) -{ - if (this->node_) - return be_exception::narrow_from_decl (this->node_); - else - return (be_exception *)0; -} - -// return the node as field if possible -be_field * -be_visitor_context::be_node_as_field (void) -{ - if (this->node_) - return be_field::narrow_from_decl (this->node_); - else - return (be_field *)0; -} - -// return the node as interface if possible -be_interface * -be_visitor_context::be_node_as_interface (void) -{ - if (this->node_) - return be_interface::narrow_from_decl (this->node_); - else - return (be_interface *)0; -} - -// return the node as interface_fwd if possible -be_interface_fwd * -be_visitor_context::be_node_as_interface_fwd (void) -{ - if (this->node_) - return be_interface_fwd::narrow_from_decl (this->node_); - else - return (be_interface_fwd *)0; -} - -// return the node as module if possible -be_module * -be_visitor_context::be_node_as_module (void) -{ - if (this->node_) - return be_module::narrow_from_decl (this->node_); - else - return (be_module *)0; -} - -// return the node as operation if possible -be_operation * -be_visitor_context::be_node_as_operation (void) -{ - if (this->node_) - return be_operation::narrow_from_decl (this->node_); - else - return (be_operation *)0; -} - -// return the node as predefined_type if possible -be_predefined_type * -be_visitor_context::be_node_as_predefined_type (void) -{ - if (this->node_) - return be_predefined_type::narrow_from_decl (this->node_); - else - return (be_predefined_type *)0; -} - -// return the node as root if possible -be_root * -be_visitor_context::be_node_as_root (void) -{ - if (this->node_) - return be_root::narrow_from_decl (this->node_); - else - return (be_root *)0; -} - -// return the node as sequence if possible -be_sequence * -be_visitor_context::be_node_as_sequence (void) -{ - if (this->node_) - return be_sequence::narrow_from_decl (this->node_); - else - return (be_sequence *)0; -} - -// return the node as string if possible -be_string * -be_visitor_context::be_node_as_string (void) -{ - if (this->node_) - return be_string::narrow_from_decl (this->node_); - else - return (be_string *)0; -} - -// return the node as structure if possible -be_structure * -be_visitor_context::be_node_as_structure (void) -{ - if (this->node_) - return be_structure::narrow_from_decl (this->node_); - else - return (be_structure *)0; -} - -// return the node as typedef if possible -be_typedef * -be_visitor_context::be_node_as_typedef (void) -{ - if (this->node_) - return be_typedef::narrow_from_decl (this->node_); - else - return (be_typedef *)0; -} - -// return the node as union if possible -be_union * -be_visitor_context::be_node_as_union (void) -{ - if (this->node_) - return be_union::narrow_from_decl (this->node_); - else - return (be_union *)0; -} - -// return the node as union_branch if possible -be_union_branch * -be_visitor_context::be_node_as_union_branch (void) -{ - if (this->node_) - return be_union_branch::narrow_from_decl (this->node_); - else - return (be_union_branch *)0; -} - -// for scope - -// return the scope as enum if possible -be_enum * -be_visitor_context::be_scope_as_enum (void) -{ - if (this->scope_) - return be_enum::narrow_from_decl (this->scope_); - else - return (be_enum *)0; -} - -// return the scope as exception if possible -be_exception * -be_visitor_context::be_scope_as_exception (void) -{ - if (this->scope_) - return be_exception::narrow_from_decl (this->scope_); - else - return (be_exception *)0; -} - -// return the scope as interface if possible -be_interface * -be_visitor_context::be_scope_as_interface (void) -{ - if (this->scope_) - return be_interface::narrow_from_decl (this->scope_); - else - return (be_interface *)0; -} - -// return the scope as module if possible -be_module * -be_visitor_context::be_scope_as_module (void) -{ - if (this->scope_) - return be_module::narrow_from_decl (this->scope_); - else - return (be_module *)0; -} - -// return the scope as operation if possible -be_operation * -be_visitor_context::be_scope_as_operation (void) -{ - if (this->scope_) - return be_operation::narrow_from_decl (this->scope_); - else - return (be_operation *)0; -} - -// return the scope as root if possible -be_root * -be_visitor_context::be_scope_as_root (void) -{ - if (this->scope_) - return be_root::narrow_from_decl (this->scope_); - else - return (be_root *)0; -} - -// return the scope as structure if possible -be_structure * -be_visitor_context::be_scope_as_structure (void) -{ - if (this->scope_) - return be_structure::narrow_from_decl (this->scope_); - else - return (be_structure *)0; -} - -// return the scope as union if possible -be_union * -be_visitor_context::be_scope_as_union (void) -{ - if (this->scope_) - return be_union::narrow_from_decl (this->scope_); - else - return (be_union *)0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_decl.cpp b/TAO/TAO_IDL/be/be_visitor_decl.cpp deleted file mode 100644 index 86b6a179068..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_decl.cpp +++ /dev/null @@ -1,37 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_decl.cpp -// -// = DESCRIPTION -// Visitor for the base be_decl node. This serves to maintain the current -// state (context) of code generation for the derived visitor. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_decl.h" - -// Root visitor for client header -be_visitor_decl::be_visitor_decl (be_visitor_context *ctx) - : ctx_ (ctx) -{ -} - -be_visitor_decl::~be_visitor_decl (void) -{ - delete this->ctx_; -} diff --git a/TAO/TAO_IDL/be/be_visitor_enum.cpp b/TAO/TAO_IDL/be/be_visitor_enum.cpp deleted file mode 100644 index 162475bfc2c..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_enum.cpp +++ /dev/null @@ -1,241 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_enum.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Enum -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_enum.h" - -// ******************************************************************** -// Visitor implementation for the Enum type -// This one for the client header file -// ******************************************************************** - -be_visitor_enum_ch::be_visitor_enum_ch (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_enum_ch::~be_visitor_enum_ch (void) -{ -} - -// visit the Enum_Ch node and its scope -int -be_visitor_enum_ch::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - this->ctx_->comma (1); // comma to be generated by the scope visitor - - if (!node->cli_hdr_gen () && !node->imported ()) - { - os->indent (); // start from whatever indentation level we were at - *os << "enum " << node->local_name () << be_nl; - *os << "{\n"; - os->incr_indent (); - if (this->visit_scope (node) == 1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_enum_ch::" - "visit_enum - " - "scope generation failed\n" - ), -1); - } - - os->decr_indent (); - *os << "};" << be_nl; - // As per the ORBOS spec, we need the following typedef - *os << "typedef " << node->local_name () << " &" << node->local_name () - << "_out;\n"; - - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor *visitor; - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_TYPECODE_DECL); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_enum_ch::" - "visit_enum - " - "TypeCode declaration failed\n" - ), -1); - } - - node->cli_hdr_gen (I_TRUE); - } - return 0; -} - -int -be_visitor_enum_ch::post_process (void) -{ - TAO_OutStream *os = this->ctx_->stream (); - - *os << "," << be_nl; - return 0; -} - -int -be_visitor_enum_ch::visit_enum_val (be_enum_val *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - os->indent (); - *os << node->local_name (); - - return 0; -} - - -// ******************************************************************** -// Visitor implementation for the Enum type -// This one for the client stubs file -// ******************************************************************** - -be_visitor_enum_cs::be_visitor_enum_cs (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_enum_cs::~be_visitor_enum_cs (void) -{ -} - -// visit the Enum_cs node and its scope -int -be_visitor_enum_cs::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - if (!node->cli_stub_gen () && !node->imported ()) - { - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor *visitor; - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_TYPECODE_DEFN); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_enum_cs::" - "visit_enum - " - "TypeCode definition failed\n" - ), -1); - } - - node->cli_stub_gen (I_TRUE); - } - return 0; -} - -// *************************************************************************** -// Enum visitor for generating Any operator declarations in the client header -// *************************************************************************** - -be_visitor_enum_any_op_ch::be_visitor_enum_any_op_ch -(be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_enum_any_op_ch::~be_visitor_enum_any_op_ch (void) -{ -} - -int -be_visitor_enum_any_op_ch::visit_enum (be_enum *node) -{ - if (node->cli_hdr_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the Any <<= and >>= operators - os->indent (); - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, " << node->name () - << ");" << be_nl; - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator>>= (const CORBA::Any &, " - << node->name () << " &);\n"; - - node->cli_hdr_any_op_gen (1); - return 0; -} - -// *************************************************************************** -// Enum visitor for generating Any operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_enum_any_op_cs::be_visitor_enum_any_op_cs -(be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_enum_any_op_cs::~be_visitor_enum_any_op_cs (void) -{ -} - -int -be_visitor_enum_any_op_cs::visit_enum (be_enum *node) -{ - if (node->cli_stub_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // generate the Any <<= and >>= operator declarations - // Any <<= and >>= operators - os->indent (); - *os << "void operator<<= (CORBA::Any &_tao_any, " - << node->name () << " _tao_elem)" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "_tao_any.replace (" << node->tc_name () << ", new " - << node->name () << "(_tao_elem), 1, _tao_env);" << be_uidt_nl - << "}" << be_nl; - - *os << "CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, " - << node->name () << " &_tao_elem)" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "if (!_tao_any.type ()->equal (" << node->tc_name () - << ", _tao_env)) return 0; // not equal" << be_nl - << "TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());" - << be_nl - << "if (stream.decode (" << node->tc_name () - << ", &_tao_elem, 0, _tao_env)" << be_nl - << " == CORBA::TypeCode::TRAVERSE_CONTINUE)" << be_nl - << " return 1;" << be_nl - << "else" << be_nl - << " return 0;" << be_uidt_nl - << "}\n\n"; - - node->cli_stub_any_op_gen (1); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_exception.cpp b/TAO/TAO_IDL/be/be_visitor_exception.cpp deleted file mode 100644 index 338cf3cc375..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_exception.cpp +++ /dev/null @@ -1,1178 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_exception.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Exception -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_exception.h" - -// generic struct visitor -be_visitor_exception::be_visitor_exception (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_exception::~be_visitor_exception (void) -{ -} - -// visit the Exception node and its scope -int -be_visitor_exception::visit_exception (be_exception *node) -{ - return -1; // must be overriden -} - -int -be_visitor_exception::visit_field (be_field *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_EXCEPTION_CH: - ctx.state (TAO_CodeGen::TAO_FIELD_CH); - break; - case TAO_CodeGen::TAO_EXCEPTION_CI: - ctx.state (TAO_CodeGen::TAO_FIELD_CI); - break; - case TAO_CodeGen::TAO_EXCEPTION_CS: - ctx.state (TAO_CodeGen::TAO_FIELD_CS); - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception::" - "visit_field - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception::" - "visit_field - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception::" - "visit_field - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// ****************************************************** -// for client header -// ****************************************************** - -be_visitor_exception_ch::be_visitor_exception_ch (be_visitor_context *ctx) - : be_visitor_exception (ctx) -{ -} - -be_visitor_exception_ch::~be_visitor_exception_ch (void) -{ -} - -// visit the Exception node and its scope -int be_visitor_exception_ch::visit_exception (be_exception *node) -{ - TAO_OutStream *os; // output stream - - if (!node->cli_hdr_gen () && !node->imported ()) // not already generated and - // not imported - { - os = this->ctx_->stream (); - - os->gen_ifdef_macro (node->flatname (), "_ptr"); - - os->indent (); - *os << "class " << node->local_name () << ";" << be_nl; - // generate the _ptr declaration - *os << "typedef " << node->local_name () << " *" - << node->local_name () << "_ptr;" << be_nl; - os->gen_endif (); - - os->gen_ifdef_macro (node->flatname ()); - - os->indent (); - *os << "class " << idl_global->export_macro () - << " " << node->local_name () - << " : public CORBA::UserException" << be_nl; - *os << "{" << be_nl - << "public:\n"; - os->incr_indent (); - // constructors and destructor - *os << node->local_name () << " (void); // default ctor" << be_nl; - *os << node->local_name () << " (const " << node->local_name () - << " &); // copy ctor" << be_nl; - *os << "~" << node->local_name () << " (void); // dtor" << be_nl; - - // generate constructor that takes each member as a parameter. We need a - // new state. Such a constructor exists if we have members - if (node->member_count () > 0) - { - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CTOR_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception::" - "visit_exception - " - "codegen for ctor failed\n"), -1); - } - delete visitor; - } - - os->indent (); - // assignment operator - *os << node->local_name () << " &operator= (const " - << node->local_name () << " &);" << be_nl; - // the static _narrow method - *os << "static " << node->local_name () - << " *_narrow (CORBA::Exception *);\n"; - - // generate code for field members - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_ch::" - "visit_exception - " - "codegen for scope failed\n"), -1); - } - - // generate the static *_alloc method - os->indent (); - // this is TAO extension - *os << "// the alloc method. This is TAO extension" << be_nl; - *os << "static CORBA::Exception *_alloc (void);" << be_uidt_nl; - *os << "}; // exception " << node->name () << be_nl; - - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor *visitor; - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_TYPECODE_DECL); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_ch::" - "visit_exception - " - "TypeCode declaration failed\n" - ), -1); - } - - - os->gen_endif (); - - node->cli_hdr_gen (1); - - } - return 0; -} - -// ****************************************************** -// for client inline -// ****************************************************** - -be_visitor_exception_ci::be_visitor_exception_ci (be_visitor_context *ctx) - : be_visitor_exception (ctx) -{ -} - -be_visitor_exception_ci::~be_visitor_exception_ci (void) -{ -} - -// visit the Exception node and its scope -int be_visitor_exception_ci::visit_exception (be_exception *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - - if (!node->cli_inline_gen () && !node->imported ()) - { - os = this->ctx_->stream (); - os->indent (); - *os << "// *************************************************************" - << be_nl; - *os << "// Inline operations for exception " << node->name () << be_nl; - *os << "// *************************************************************\n\n"; - - // generate inline code required of any anonymous types of members - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception::" - "visit_exception -" - "code for inline failed\n"), -1); - } - - node->cli_inline_gen (I_TRUE); - } - return 0; -} - -// *************************************************************************** -// for client stubs -// *************************************************************************** -be_visitor_exception_cs::be_visitor_exception_cs (be_visitor_context *ctx) - : be_visitor_exception (ctx) -{ -} - -be_visitor_exception_cs::~be_visitor_exception_cs (void) -{ -} - -// visit the Exception_Cs node and its scope -int be_visitor_exception_cs::visit_exception (be_exception *node) -{ - TAO_OutStream *os; // output stream - - if (!node->cli_stub_gen () && !node->imported ()) - { - os = this->ctx_->stream (); - - // default constructor - os->indent (); - *os << "// default constructor" << be_nl; - *os << node->name () << "::" << node->local_name () << " (void)" << be_nl; - *os << " : CORBA_UserException (CORBA::TypeCode::_duplicate (" - << node->tc_name () << "))\n"; - *os << "{" << be_nl; - *os << "}\n\n"; - - // destructor - os->indent (); - *os << "// destructor - all members are of self managing types" << be_nl; - *os << node->name () << "::~" << node->local_name () << " (void)" << be_nl; - *os << "{" << be_nl; - *os << "}\n\n"; - - // copy constructor - os->indent (); - *os << "// copy constructor" << be_nl; - *os << node->name () << "::" << node->local_name () << " (const " << - node->name () << " &_tao_excp)" << be_nl; - *os << " :CORBA_UserException (" << - "CORBA::TypeCode::_duplicate (_tao_excp._type ()))" << be_nl; - *os << "{\n"; - os->incr_indent (); - // assign each individual member - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CTOR_ASSIGN_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_cs::" - "visit_exception -" - "codegen for scope failed\n"), -1); - } - delete visitor; - os->decr_indent (); - *os << "}\n\n"; - - // assignment operator - os->indent (); - *os << "// assignment operator" << be_nl; - *os << node->name () << "&" << be_nl; - *os << node->name () << "::operator= (const " << - node->name () << " &_tao_excp)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "this->type_ = " << - "CORBA::TypeCode::_duplicate (_tao_excp._type ());\n"; - // assign each individual member - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CTOR_ASSIGN_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_cs::" - "visit_exception -" - "codegen for scope failed\n"), -1); - } - delete visitor; - os->indent (); - *os << "return *this;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // constructor taking all members. It exists only if there are any - // members - if (node->member_count () > 0) - { - // generate the signature - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CTOR_CS); - visitor = tao_cg->make_visitor (&ctx); - - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception::" - "visit_exception - " - "codegen for ctor failed\n"), -1); - } - delete visitor; - - *os << " : CORBA_UserException " - << " (CORBA::TypeCode::_duplicate (" << node->tc_name () - << "))" << be_nl; - *os << "{\n"; - os->incr_indent (); - // assign each individual member. We need yet another state - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CTOR_ASSIGN_CS); - ctx.exception (1); // indicate that the special ctor is being - // generated - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_cs::" - "visit_exception -" - "codegen for scope failed\n"), -1); - } - delete visitor; - os->decr_indent (); - *os << "}\n\n"; - } - - // narrow method - os->indent (); - *os << "// narrow" << be_nl; - *os << node->name () << "_ptr " << be_nl; - *os << node->name () << "::_narrow (CORBA::Exception *exc)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "if (!ACE_OS::strcmp (\"" << node->repoID () << - "\", exc->_id ())) // same type" << be_nl; - *os << " return ACE_dynamic_cast (" << node->name () << "_ptr, exc);" << - be_nl; - *os << "else" << be_nl; - *os << " return 0;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // generate the _alloc method - os->indent (); - *os << "// TAO extension - the _alloc method" << be_nl; - *os << "CORBA::Exception *" << node->name () - << "::_alloc (void)" << be_nl; - *os << "{" << be_idt_nl; - *os << "return new " << node->name () << ";" << be_uidt_nl; - *os << "}\n\n"; - - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_TYPECODE_DEFN); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_cs::" - "visit_exception - " - "TypeCode definition failed\n" - ), -1); - } - - node->cli_stub_gen (I_TRUE); - } - - return 0; -} - -// ************************************************************************ -// code to generate the special ctor -// ************************************************************************ - -be_visitor_exception_ctor::be_visitor_exception_ctor -(be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_exception_ctor::~be_visitor_exception_ctor (void) -{ -} - -int -be_visitor_exception_ctor::post_process (void) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - *os << ",\n"; - return 0; -} - -int be_visitor_exception_ctor::visit_exception (be_exception *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - this->ctx_->node (node); // save the argument node - - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << node->local_name (); - else - *os << node->name () << "::" << node->local_name (); - *os << "(" << be_idt << "\n"; - - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_exception_ctor_assign::" - "visit_exception - " - "codegen for scope failed\n"), - -1); - } - - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << be_uidt << ");\n\n"; - else - *os << be_uidt << ")\n\n"; - - return 0; -} - -int be_visitor_exception_ctor::visit_field (be_field *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // retrieve the type - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_exception_ctor::" - "visit_exception - " - "Bad field type\n"), - -1); - } - - os->indent (); - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_exception_ctor::" - "visit_field - " - "cannot accept visitor\n"), - -1); - } - - *os << " _tao_" << node->local_name (); - return 0; -} - -int be_visitor_exception_ctor::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // set the right type; - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << "const " << bt->nested_type_name (this->ctx_->scope ()); - else - *os << "const " << bt->name (); - return 0; -} - -int be_visitor_exception_ctor::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // set the right type; - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << bt->nested_type_name (this->ctx_->scope ()); - else - *os << bt->name (); - return 0; -} - -int be_visitor_exception_ctor::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // set the right type; - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << "const " << bt->nested_type_name (this->ctx_->scope ()); - else - *os << "const " << bt->name (); - *os << "_ptr "; - return 0; -} - -int be_visitor_exception_ctor::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // set the right type; - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << "const " << bt->nested_type_name (this->ctx_->scope ()); - else - *os << "const " << bt->name (); - *os << "_ptr "; - return 0; -} - -int be_visitor_exception_ctor::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // set the right type; - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // check if the type is an any - if (node->pt () == AST_PredefinedType::PT_any) - { - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << "const " << bt->nested_type_name (this->ctx_->scope ()); - else - *os << "const " << bt->name (); - *os << " &"; - return 0; - } // end of if - else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object - { - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << "const " << bt->nested_type_name (this->ctx_->scope ()); - else - *os << "const " << bt->name (); - *os << "_ptr "; - } // end else if - else // simple predefined types - { - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << bt->nested_type_name (this->ctx_->scope ()); - else - *os << bt->name (); - } // end of else - - return 0; -} - -int be_visitor_exception_ctor::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // set the right type; - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << "const " << bt->nested_type_name (this->ctx_->scope ()); - else - *os << "const " << bt->name (); - *os << " &"; - return 0; -} - -int be_visitor_exception_ctor::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - *os << "const char *"; - return 0; -} - -int be_visitor_exception_ctor::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // set the right type; - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << "const " << bt->nested_type_name (this->ctx_->scope ()); - else - *os << "const " << bt->name (); - *os << " &"; - return 0; -} - -int be_visitor_exception_ctor::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // set the right type; - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << "const " << bt->nested_type_name (this->ctx_->scope ()); - else - *os << "const " << bt->name (); - *os << " &"; - return 0; -} - -int be_visitor_exception_ctor::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_exception_ctor::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -// ************************************************************************ -// used for the body of the assignment operator and the copy constructor -// ************************************************************************ - -be_visitor_exception_ctor_assign::be_visitor_exception_ctor_assign (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_exception_ctor_assign::~be_visitor_exception_ctor_assign (void) -{ -} - -int be_visitor_exception_ctor_assign::visit_exception (be_exception *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - this->ctx_->node (node); // save the argument node - - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_exception_ctor_assign::" - "visit_exception - " - "codegen for scope failed\n"), - -1); - } - - return 0; -} - -int be_visitor_exception_ctor_assign::visit_field (be_field *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - this->ctx_->node (node); // save the argument node - - // retrieve the type - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_exception_ctor_assign::" - "visit_field - " - "Bad field type\n"), - -1); - } - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_exception_ctor_assign::" - "visit_field - " - "cannot accept visitor\n"), - -1); - } - - return 0; -} - -int be_visitor_exception_ctor_assign::visit_array (be_array *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_decl *bd = this->ctx_->node (); - - os->indent (); - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = _tao_" << bd->local_name () - << ";\n"; - } - else - { - *os << "this->" << bd->local_name () << " = _tao_excp." << bd->local_name () - << ";\n"; - } - return 0; -} - -int be_visitor_exception_ctor_assign::visit_enum (be_enum *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_decl *bd = this->ctx_->node (); - - os->indent (); - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = _tao_" << bd->local_name () - << ";\n"; - } - else - { - *os << "this->" << bd->local_name () << " = _tao_excp." << bd->local_name () - << ";\n"; - } - return 0; -} - -int be_visitor_exception_ctor_assign::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_decl *bd = this->ctx_->node (); - - os->indent (); - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = " << node->name () - << "::_duplicate (_tao_" << bd->local_name () << ");\n"; - } - else - { - *os << "this->" << bd->local_name () << " = " << node->name () - << "::_duplicate (_tao_excp." << bd->local_name () << ".in ());\n"; - } - return 0; -} - -int be_visitor_exception_ctor_assign::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_decl *bd = this->ctx_->node (); - - os->indent (); - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = " << node->name () - << "::_duplicate (_tao_" << bd->local_name () << ");\n"; - } - else - { - *os << "this->" << bd->local_name () << " = " << node->name () - << "::_duplicate (_tao_excp." << bd->local_name () << ".in ());\n"; - } - return 0; -} - -int be_visitor_exception_ctor_assign::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_decl *bd = this->ctx_->node (); - - os->indent (); - // check if the type is an any - if (node->pt () == AST_PredefinedType::PT_any) - { - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = _tao_" - << bd->local_name () << ";\n"; - } - else - { - *os << "this->" << bd->local_name () << " = _tao_excp." - << bd->local_name () << ";\n"; - } - } // end of if - else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object - { - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = " - << node->name () << "::_duplicate (_tao_" - << bd->local_name () << ");\n"; - } - else - { - *os << "this->" << bd->local_name () << " = " - << node->name () << "::_duplicate (_tao_excp." - << bd->local_name () << ".in ());\n"; - } - } // end else if - else // simple predefined types - { - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = _tao_" - << bd->local_name () << ";\n"; - } - else - { - *os << "this->" << bd->local_name () << " = _tao_excp." - << bd->local_name () << ";\n"; - } - } // end of else - - return 0; -} - -int be_visitor_exception_ctor_assign::visit_sequence (be_sequence *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_decl *bd = this->ctx_->node (); - - os->indent (); - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = _tao_" << bd->local_name () - << ";\n"; - } - else - { - *os << "this->" << bd->local_name () << " = _tao_excp." << bd->local_name () - << ";\n"; - } - return 0; -} - -int be_visitor_exception_ctor_assign::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_decl *bd = this->ctx_->node (); - - os->indent (); - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = CORBA::string_dup (_tao_" - << bd->local_name () << ");\n"; - } - else - { - *os << "this->" << bd->local_name () - << " = CORBA::string_dup (_tao_excp." << bd->local_name () - << ".in ());\n"; - } - return 0; -} - -int be_visitor_exception_ctor_assign::visit_structure (be_structure *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_decl *bd = this->ctx_->node (); - - os->indent (); - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = _tao_" << bd->local_name () - << ";\n"; - } - else - { - *os << "this->" << bd->local_name () << " = _tao_excp." << bd->local_name () - << ";\n"; - } - return 0; -} - -int be_visitor_exception_ctor_assign::visit_union (be_union *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_decl *bd = this->ctx_->node (); - - os->indent (); - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = _tao_" << bd->local_name () - << ";\n"; - } - else - { - *os << "this->" << bd->local_name () << " = _tao_excp." << bd->local_name () - << ";\n"; - } - return 0; -} - -int be_visitor_exception_ctor_assign::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_exception_ctor_assign::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -// *************************************************************************** -// Exception visitor for generating Any operator declarations in the client header -// *************************************************************************** - -be_visitor_exception_any_op_ch::be_visitor_exception_any_op_ch -(be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_exception_any_op_ch::~be_visitor_exception_any_op_ch (void) -{ -} - -int -be_visitor_exception_any_op_ch::visit_exception (be_exception *node) -{ - if (node->cli_hdr_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the Any <<= and >>= operator declarations - os->indent (); - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, const " << node->name () - << " &); // copying version" << be_nl; - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, " << node->name () - << "*); // noncopying version" << be_nl; - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator>>= (const CORBA::Any &, " - << node->name () << " *&);\n"; - - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception::visit_exception - " - "codegen for scope failed\n"), -1); - } - - node->cli_hdr_any_op_gen (1); - return 0; -} - -int -be_visitor_exception_any_op_ch::visit_field (be_field *node) -{ - be_type *bt; // field's type - - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_any_op_ch::" - "visit_field - " - "Bad field type\n" - ), -1); - } - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_any_op_ch::" - "visit_field - " - "codegen for field type failed\n" - ), -1); - } - return 0; -} - -// *************************************************************************** -// Exception visitor for generating Any operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_exception_any_op_cs::be_visitor_exception_any_op_cs -(be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_exception_any_op_cs::~be_visitor_exception_any_op_cs (void) -{ -} - -int -be_visitor_exception_any_op_cs::visit_exception (be_exception *node) -{ - if (node->cli_stub_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // generate the Any <<= and >>= operator declarations - // Any <<= and >>= operators - os->indent (); - *os << "void operator<<= (CORBA::Any &_tao_any, const " - << node->name () << " &_tao_elem) // copying" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "_tao_any.replace (" << node->tc_name () << ", new " - << node->name () << "(_tao_elem), 1, _tao_env);" << be_uidt_nl - << "}" << be_nl; - - *os << "void operator<<= (CORBA::Any &_tao_any, " - << node->name () << " *_tao_elem) // non copying" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "_tao_any.replace (" << node->tc_name () << ", " - << "_tao_elem, 1, _tao_env); // consume it" << be_uidt_nl - << "}" << be_nl; - - *os << "CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, " - << node->name () << " *&_tao_elem)" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "if (!_tao_any.type ()->equal (" << node->tc_name () - << ", _tao_env)) return 0; // not equal" << be_nl - << "if (_tao_any.any_owns_data ())" << be_nl - << "{" << be_idt_nl - << "ACE_NEW_RETURN (_tao_elem, " << node->name () << ", 0);" - << be_nl - << "TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());" - << be_nl - << "if (stream.decode (" << node->tc_name () - << ", _tao_elem, 0, _tao_env)" << be_nl - << " == CORBA::TypeCode::TRAVERSE_CONTINUE)" << be_nl - << "{" << be_idt_nl - << "((CORBA::Any *)&_tao_any)->replace (_tao_any.type (), " - << "_tao_elem, 1, _tao_env);" - << be_nl - << " return 1;" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl // decode failed - << "{" << be_idt_nl - << "delete _tao_elem;" << be_nl - << "return 0;" << be_uidt_nl - << "}" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl // else any does not own the data - << "{" << be_idt_nl - << "_tao_elem = (" << node->name () << " *)_tao_any.value ();" - << be_nl - << "return 1;" << be_uidt_nl - << "}" << be_uidt_nl - << "}\n\n"; - - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception::visit_exception - " - "codegen for scope failed\n"), -1); - } - - node->cli_stub_any_op_gen (1); - return 0; -} - -int -be_visitor_exception_any_op_cs::visit_field (be_field *node) -{ - be_type *bt; // field's type - - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_any_op_cs::" - "visit_field - " - "Bad field type\n" - ), -1); - } - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_any_op_cs::" - "visit_field - " - "codegen for field type failed\n" - ), -1); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_field.cpp b/TAO/TAO_IDL/be/be_visitor_field.cpp deleted file mode 100644 index 1eaa5ee04d7..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_field.cpp +++ /dev/null @@ -1,784 +0,0 @@ -// -// $Id$ -// -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_field.cpp -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Field" node -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_field.h" - -// ********************************************** -// visitor for field in the client header file -// ********************************************** - -// constructor -be_visitor_field_ch::be_visitor_field_ch (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_field_ch::~be_visitor_field_ch (void) -{ -} - -// visit the field node -int -be_visitor_field_ch::visit_field (be_field *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; // field's type - - os = this->ctx_->stream (); - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_field - " - "Bad field type\n" - ), -1); - } - - this->ctx_->node (node); // save the node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_field - " - "codegen for field type failed\n" - ), -1); - } - // now output the field name - *os << " " << node->local_name () << ";\n"; - return 0; -} - -// =visit operations on all possible data types that a field can be - -// visit array type -int -be_visitor_field_ch::visit_array (be_array *node) -{ - // TO-DO - return 0; -} - -// visit enum type -int -be_visitor_field_ch::visit_enum (be_enum *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; - - os = this->ctx_->stream (); - - // set the right type; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // if not a typedef and we are defined in the use scope, we must be defined - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the enum declaration - ctx.state (TAO_CodeGen::TAO_ENUM_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_enum - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_enum - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - // now use this enum as a "type" for the subsequent declarator - os->indent (); // start from current indentation level - *os << bt->nested_type_name (this->ctx_->scope ()); - - return 0; -} - -// visit interface type -int -be_visitor_field_ch::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; - - os = this->ctx_->stream (); - // set the right type; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // if not a typedef and we are defined in the use scope, we must be defined - os->indent (); // start from current indentation level - *os << bt->nested_type_name (this->ctx_->scope (), "_var"); - return 0; -} - -// visit interface forward type -int -be_visitor_field_ch::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; - - os = this->ctx_->stream (); - // set the right type; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // if not a typedef and we are defined in the use scope, we must be defined - os->indent (); // start from current indentation level - *os << bt->nested_type_name (this->ctx_->scope (), "_var"); - return 0; -} - -// visit predefined type -int -be_visitor_field_ch::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; - - os = this->ctx_->stream (); - // set the right type; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // if not a typedef and we are defined in the use scope, we must be defined - os->indent (); // start from current indentation level - if (node->pt () == AST_PredefinedType::PT_pseudo) // is a psuedo obj - *os << bt->nested_type_name (this->ctx_->scope (), "_var"); - else - *os << bt->nested_type_name (this->ctx_->scope ()); - return 0; -} - -// visit sequence type -int -be_visitor_field_ch::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; - - os = this->ctx_->stream (); - // set the right type; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // if not a typedef and we are defined in the use scope, we must be defined - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the sequence declaration - ctx.state (TAO_CodeGen::TAO_SEQUENCE_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_sequence - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_sequence - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - os->indent (); // start from current indentation level - *os << bt->nested_type_name (this->ctx_->scope ()); - return 0; -} - -// visit string type -int -be_visitor_field_ch::visit_string (be_string *node) -{ - TAO_OutStream *os; // output stream - - os = this->ctx_->stream (); - os->indent (); // start from current indentation level - // set the right type; - if (this->ctx_->alias ()) - { - *os << this->ctx_->alias ()->nested_type_name (this->ctx_->scope ()) - << "_var"; - } - else - *os << "CORBA::String_var"; - return 0; -} - -// visit structure type -int -be_visitor_field_ch::visit_structure (be_structure *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; - - os = this->ctx_->stream (); - // set the right type; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // if not a typedef and we are defined in the use scope, we must be defined - - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the struct declaration - ctx.state (TAO_CodeGen::TAO_STRUCT_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_struct - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_struct - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - os->indent (); // start from current indentation level - *os << bt->nested_type_name (this->ctx_->scope ()); - return 0; -} - -// visit typedefed type -int -be_visitor_field_ch::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // save the node for use in code generation and - // indicate that the field of the field node - // is a typedefed quantity - - // make a decision based on the primitive base type - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_spec_ch::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - this->ctx_->alias (0); - return 0; -} - -// visit union type -int -be_visitor_field_ch::visit_union (be_union *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; - - os = this->ctx_->stream (); - // set the right type; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // if not a typedef and we are defined in the use scope, we must be defined - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the enum declaration - ctx.state (TAO_CodeGen::TAO_ENUM_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_enum - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_enum - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - os->indent (); // start from current indentation level - *os << bt->nested_type_name (this->ctx_->scope ()); - return 0; -} - -// ********************************************** -// visitor for field in the client inline file. -// -// Generate inline code for types that are defined -// inside the structure -// ********************************************** - -// constructor -be_visitor_field_ci::be_visitor_field_ci (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_field_ci::~be_visitor_field_ci (void) -{ -} - -// visit the field node -int -be_visitor_field_ci::visit_field (be_field *node) -{ - TAO_OutStream *os; - be_type *bt; // field's type - - os = this->ctx_->stream (); - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ci::" - "visit_field - " - "Bad field type\n" - ), -1); - } - - this->ctx_->node (node); // save the node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ci::" - "visit_field - " - "codegen for field type failed\n" - ), -1); - } - return 0; -} - -// =visit operations on all possible data types that a field can be - -// visit array -int -be_visitor_field_ci::visit_array (be_array *node) -{ - return 0; -} - -// visit sequence -int -be_visitor_field_ci::visit_sequence (be_sequence *node) -{ - return 0; -} - -// visit structure type -int -be_visitor_field_ci::visit_structure (be_structure *node) -{ - if (node->node_type () != AST_Decl::NT_typedef // not a typedef - && node->is_child (this->ctx_->scope ())) // node is defined inside the - // structure - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // generate the inline code for structs - ctx.state (TAO_CodeGen::TAO_STRUCT_CI); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ci::" - "visit_struct - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ci::" - "visit_struct - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} - -// visit typedef type -int -be_visitor_field_ci::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // save the typedef node for use in code generation - // as we visit the base type - - // the node to be visited in the base primitve type that gets typedefed - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - - this->ctx_->alias (0); - return 0; -} - -// visit union type -int -be_visitor_field_ci::visit_union (be_union *node) -{ - if (node->node_type () != AST_Decl::NT_typedef // not a typedef - && node->is_child (this->ctx_->scope ())) // node is defined inside the - // structure - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // generate the inline code for union - ctx.state (TAO_CodeGen::TAO_UNION_CI); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ci::" - "visit_struct - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ci::" - "visit_struct - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} - -// ********************************************** -// visitor for field in the client stubs file -// ********************************************** - -// constructor -be_visitor_field_cs::be_visitor_field_cs (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_field_cs::~be_visitor_field_cs (void) -{ -} - -// visit the field node -int -be_visitor_field_cs::visit_field (be_field *node) -{ - TAO_OutStream *os; // output stream - - be_type *bt; // field's type - - os = this->ctx_->stream (); - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_field - " - "Bad field type\n" - ), -1); - } - - this->ctx_->node (node); // save the node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_field - " - "codegen for field type failed\n" - ), -1); - } - return 0; -} - -// visit array -int -be_visitor_field_cs::visit_array (be_array *node) -{ - return 0; -} - -// visit enum type -int -be_visitor_field_cs::visit_enum (be_enum *node) -{ - if (node->node_type () != AST_Decl::NT_typedef // not a typedef - && node->is_child (this->ctx_->scope ())) // node is defined inside the - // structure - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // generate the typcode for enums - ctx.state (TAO_CodeGen::TAO_ENUM_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_enum - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_enum - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} - -int -be_visitor_field_cs::visit_sequence (be_sequence *node) -{ - if (node->node_type () != AST_Decl::NT_typedef // not a typedef - && node->is_child (this->ctx_->scope ())) // node is defined inside the - // structure - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // generate the inline code for structs - ctx.state (TAO_CodeGen::TAO_SEQUENCE_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_sequence - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_sequence - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} - -// visit structure type -int -be_visitor_field_cs::visit_structure (be_structure *node) -{ - if (node->node_type () != AST_Decl::NT_typedef // not a typedef - && node->is_child (this->ctx_->scope ())) // node is defined inside the - // structure - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // generate the inline code for structs - ctx.state (TAO_CodeGen::TAO_STRUCT_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_struct - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_struct - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} - -// visit typedef type -int -be_visitor_field_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // save the typedef node for use in code generation - // as we visit the base type - - // the node to be visited in the base primitve type that gets typedefed - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - - this->ctx_->alias (0); - return 0; -} - -// visit union type -int -be_visitor_field_cs::visit_union (be_union *node) -{ - if (node->node_type () != AST_Decl::NT_typedef // not a typedef - && node->is_child (this->ctx_->scope ())) // node is defined inside the - // structure - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // generate the inline code for union - ctx.state (TAO_CodeGen::TAO_UNION_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_union - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_union - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_interface.cpp b/TAO/TAO_IDL/be/be_visitor_interface.cpp deleted file mode 100644 index c1bc39dee31..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_interface.cpp +++ /dev/null @@ -1,2288 +0,0 @@ -// $Id$ -// -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_interface.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Interface -// -// = AUTHOR -// Aniruddha Gokhale and Carlos O'Ryan -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_interface.h" - -// ****************************************************** -// Generic Interface visitor -// ****************************************************** - -be_visitor_interface::be_visitor_interface (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_interface::~be_visitor_interface (void) -{ -} - -// this method must be overridden by the derived interface visitors -int -be_visitor_interface::visit_interface (be_interface *node) -{ - return -1; -} - -// =all common visit methods for interface visitor - -// visit an attribute -int -be_visitor_interface::visit_attribute (be_attribute *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_INTERFACE_CH: - ctx.state (TAO_CodeGen::TAO_ATTRIBUTE_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_CS: - ctx.state (TAO_CodeGen::TAO_ATTRIBUTE_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_SH: - ctx.state (TAO_CodeGen::TAO_ATTRIBUTE_SH); - break; - case TAO_CodeGen::TAO_INTERFACE_SS: - ctx.state (TAO_CodeGen::TAO_ATTRIBUTE_SS); - break; - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SH: - ctx.state (TAO_CodeGen::TAO_ATTRIBUTE_COLLOCATED_SH); - break; - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SS: - ctx.state (TAO_CodeGen::TAO_ATTRIBUTE_COLLOCATED_SS); - break; - case TAO_CodeGen::TAO_INTERFACE_TIE_SH: - ctx.state (TAO_CodeGen::TAO_ATTRIBUTE_TIE_SH); - break; - case TAO_CodeGen::TAO_INTERFACE_TIE_SI: - ctx.state (TAO_CodeGen::TAO_ATTRIBUTE_TIE_SI); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH: - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS: - case TAO_CodeGen::TAO_INTERFACE_CI: - case TAO_CodeGen::TAO_INTERFACE_SI: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_attribute - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_attribute - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_attribute - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit a constant -int -be_visitor_interface::visit_constant (be_constant *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_INTERFACE_CH: - ctx.state (TAO_CodeGen::TAO_CONSTANT_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_CS: - ctx.state (TAO_CodeGen::TAO_CONSTANT_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH: - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SH: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SS: - case TAO_CodeGen::TAO_INTERFACE_CI: - case TAO_CodeGen::TAO_INTERFACE_SH: - case TAO_CodeGen::TAO_INTERFACE_SI: - case TAO_CodeGen::TAO_INTERFACE_SS: - case TAO_CodeGen::TAO_INTERFACE_TIE_SH: - case TAO_CodeGen::TAO_INTERFACE_TIE_SI: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_constant - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_constant - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_constant - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -//visit an enum -int -be_visitor_interface::visit_enum (be_enum *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_INTERFACE_CH: - ctx.state (TAO_CodeGen::TAO_ENUM_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_CS: - ctx.state (TAO_CodeGen::TAO_ENUM_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_ENUM_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_ENUM_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_CI: - case TAO_CodeGen::TAO_INTERFACE_SH: - case TAO_CodeGen::TAO_INTERFACE_SI: - case TAO_CodeGen::TAO_INTERFACE_SS: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SH: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SS: - case TAO_CodeGen::TAO_INTERFACE_TIE_SH: - case TAO_CodeGen::TAO_INTERFACE_TIE_SI: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_enum - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_enum - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_enum - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an exception -int -be_visitor_interface::visit_exception (be_exception *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_INTERFACE_CH: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_CI: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CI); - break; - case TAO_CodeGen::TAO_INTERFACE_CS: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_SH: - case TAO_CodeGen::TAO_INTERFACE_SI: - case TAO_CodeGen::TAO_INTERFACE_SS: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SH: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SS: - case TAO_CodeGen::TAO_INTERFACE_TIE_SH: - case TAO_CodeGen::TAO_INTERFACE_TIE_SI: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_exception - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_exception - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_exception - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an operation -int -be_visitor_interface::visit_operation (be_operation *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_INTERFACE_CH: - ctx.state (TAO_CodeGen::TAO_OPERATION_CH); - // return node->gen_client_header (); - break; - case TAO_CodeGen::TAO_INTERFACE_CS: - ctx.state (TAO_CodeGen::TAO_OPERATION_CS); - // return node->gen_client_stubs (); - break; - case TAO_CodeGen::TAO_INTERFACE_SH: - ctx.state (TAO_CodeGen::TAO_OPERATION_SH); - // return node->gen_server_header (); - break; - case TAO_CodeGen::TAO_INTERFACE_SS: - ctx.state (TAO_CodeGen::TAO_OPERATION_SS); - // return node->gen_server_skeletons (); - break; - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SH: - ctx.state (TAO_CodeGen::TAO_OPERATION_COLLOCATED_SH); - break; - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SS: - ctx.state (TAO_CodeGen::TAO_OPERATION_COLLOCATED_SS); - break; - case TAO_CodeGen::TAO_INTERFACE_TIE_SH: - ctx.state (TAO_CodeGen::TAO_OPERATION_TIE_SH); - break; - case TAO_CodeGen::TAO_INTERFACE_TIE_SI: - ctx.state (TAO_CodeGen::TAO_OPERATION_TIE_SI); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH: - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS: - case TAO_CodeGen::TAO_INTERFACE_CI: - case TAO_CodeGen::TAO_INTERFACE_SI: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_operation - " - "Bad context state\n" - ), -1); - } - break; - } - - // grab the appropriate visitor - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_operation - " - "NUL visitor\n" - ), -1); - } - - // visit the node using this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_operation - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an structure -int -be_visitor_interface::visit_structure (be_structure *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_INTERFACE_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_CI: - ctx.state (TAO_CodeGen::TAO_STRUCT_CI); - break; - case TAO_CodeGen::TAO_INTERFACE_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_SH: - case TAO_CodeGen::TAO_INTERFACE_SI: - case TAO_CodeGen::TAO_INTERFACE_SS: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SH: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SS: - case TAO_CodeGen::TAO_INTERFACE_TIE_SH: - case TAO_CodeGen::TAO_INTERFACE_TIE_SI: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_structure - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_structure - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_structure - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit a union -int -be_visitor_interface::visit_union (be_union *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_INTERFACE_CH: - ctx.state (TAO_CodeGen::TAO_UNION_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_CI: - ctx.state (TAO_CodeGen::TAO_UNION_CI); - break; - case TAO_CodeGen::TAO_INTERFACE_CS: - ctx.state (TAO_CodeGen::TAO_UNION_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_UNION_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_UNION_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_SH: - case TAO_CodeGen::TAO_INTERFACE_SI: - case TAO_CodeGen::TAO_INTERFACE_SS: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SH: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SS: - case TAO_CodeGen::TAO_INTERFACE_TIE_SH: - case TAO_CodeGen::TAO_INTERFACE_TIE_SI: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_union - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_union - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_union - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit a typedef -int -be_visitor_interface::visit_typedef (be_typedef *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_INTERFACE_CH: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_CI: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CI); - break; - case TAO_CodeGen::TAO_INTERFACE_CS: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_SH: - case TAO_CodeGen::TAO_INTERFACE_SI: - case TAO_CodeGen::TAO_INTERFACE_SS: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SH: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SS: - case TAO_CodeGen::TAO_INTERFACE_TIE_SH: - case TAO_CodeGen::TAO_INTERFACE_TIE_SI: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_typedef - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_typedef - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// ****************************************************** -// Interface visitor for client header -// ****************************************************** - -be_visitor_interface_ch::be_visitor_interface_ch (be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_ch::~be_visitor_interface_ch (void) -{ -} - -int -be_visitor_interface_ch::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - long i; // loop index - - if (!node->cli_hdr_gen () && !node->imported ()) // not already generated and - // not imported - { - - os = this->ctx_->stream (); - - // == STEP 1: generate the class name and class names we inherit == - - // generate the ifdefined macro for the _ptr type - os->gen_ifdef_macro (node->flatname (), "_ptr"); - - // the following two are required to be under the ifdef macro to avoid - // multiple declarations - - os->indent (); // start with whatever indentation level we are at - // forward declaration - *os << "class " << node->local_name () << ";" << be_nl; - // generate the _ptr declaration - *os << "typedef " << node->local_name () << " *" << node->local_name () - << "_ptr;" << be_nl; - - os->gen_endif (); - - // generate the ifdefined macro for the var type - os->gen_ifdef_macro (node->flatname (), "_var"); - - // generate the _var declaration - if (node->gen_var_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_ch::" - "visit_interface - " - "codegen for _var failed\n"), -1); - } - os->gen_endif (); - - // generate the ifdef macro for the _out class - os->gen_ifdef_macro (node->flatname (), "_out"); - - // generate the _out declaration - ORBOS/97-05-15 pg 16-20 spec - if (node->gen_out_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_ch::" - "visit_interface - " - "codegen for _out failed\n"), -1); - } - // generate the endif macro - os->gen_endif (); - - // now the interface definition itself - os->gen_ifdef_macro (node->flatname ()); - - // now generate the class definition - os->indent (); - *os << "class " << idl_global->export_macro () - << " " << node->local_name (); - - if (node->n_inherits () > 0) // node interface inherits from other - // interfaces - { - *os << ": "; - for (i = 0; i < node->n_inherits (); i++) - { - be_interface *inherited = - be_interface::narrow_from_decl (node->inherits ()[i]); - be_decl *scope = 0; - if (inherited->is_nested ()) - { - // inherited node is used in the scope of "node" node - scope = be_scope::narrow_from_scope (node->defined_in ()) - ->decl (); - } - - *os << "public virtual "; - *os << inherited->nested_type_name (scope); // dump the scoped name - if (i < node->n_inherits () - 1) // node is the case of multiple - // inheritance, so put a comma - { - *os << ", "; - } - } // end of for loop - *os << be_nl; - } - else - { - // we do not inherit from anybody, hence we do so from the base - // CORBA::Object class - // Generate code that uses the macro. This is required to deal with - // the MSVC++ insanity - *os << " : public virtual ACE_CORBA_1 (Object)" << be_nl; - } - - // generate the body - - *os << "{" << be_nl - << "public:" << be_idt_nl - // generate the static _duplicate, _narrow, and _nil operations - << "// the static operations" << be_nl - << "static " << node->local_name () << "_ptr " << "_duplicate (" - << node->local_name () << "_ptr obj);" << be_nl - << "static " << node->local_name () << "_ptr " << "_narrow (" - << "CORBA::Object_ptr obj, CORBA::Environment &env);" << be_nl - << "static " << node->local_name () << "_ptr " << "_nil (void);\n\n"; - - // generate code for the interface definition by traversing thru the - // elements of its scope. We depend on the front-end to have made sure - // that only legal syntactic elements appear in our scope. - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_ch::" - "visit_interface - " - "codegen for scope failed\n"), -1); - } - // the _is_a method - os->indent (); - *os << "virtual CORBA::Boolean _is_a (" - << "const CORBA::Char *type_id, " << be_idt << be_idt_nl - << "CORBA::Environment &env" << be_uidt_nl - << ");" << be_uidt_nl - << "virtual const char* " - << "_interface_repository_id (void) const;" << be_uidt_nl; - - // generate the "protected" constructor so that users cannot instantiate - // us - *os << "protected:" << be_idt_nl - << node->local_name () << " (void); // default constructor" << be_nl - << node->local_name () - << " (STUB_Object *objref, " << be_idt << be_idt_nl - << "TAO_ServantBase *_tao_servant = 0, " << be_nl - << "CORBA::Boolean _tao_collocated = 0" << be_uidt_nl - << ");" << be_uidt_nl - << "virtual ~" << node->local_name () << " (void);" << be_uidt_nl; - - // private copy constructor and assignment operator. These are not - // allowed, hence they are private. - *os << "private:\n"; - os->incr_indent (); - *os << node->local_name () << " (const " << node->local_name () << " &);" - << be_nl - << "void operator= (const " << node->local_name () << " &);\n"; - - os->decr_indent (); - *os << "};\n\n"; - os->gen_endif (); - - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor *visitor; - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_TYPECODE_DECL); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_ch::" - "visit_interface - " - "TypeCode declaration failed\n" - ), -1); - } - - - node->cli_hdr_gen (I_TRUE); - } // if !cli_hdr_gen - return 0; -} - -// ************************************************** -// Interface visitor for client inline -// ************************************************** -be_visitor_interface_ci::be_visitor_interface_ci (be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_ci::~be_visitor_interface_ci (void) -{ -} - -int -be_visitor_interface_ci::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - - if (node->cli_inline_gen () || node->imported ()) - return 0; - - os = this->ctx_->stream (); - - os->indent (); // start from the current indentation level - - // generate the constructors and destructor - *os << "ACE_INLINE" << be_nl; - *os << node->name () << "::" << node->local_name () << - " (void) // default constructor" << be_nl; - *os << "{}" << be_nl << be_nl; - - *os << "ACE_INLINE" << be_nl; - *os << node->name () << "::" << node->local_name () << - " (STUB_Object *objref, TAO_ServantBase *_tao_servant, " - << "CORBA::Boolean _tao_collocated) // constructor" << be_nl; - *os << " : CORBA_Object (objref, _tao_servant, _tao_collocated)" << be_nl; - *os << "{}" << be_nl << be_nl; - - *os << "ACE_INLINE" << be_nl; - *os << node->name () << "::~" << node->local_name () << - " (void) // destructor" << be_nl; - *os << "{}\n\n"; - - // generate the ifdefined macro for the _var type - os->gen_ifdef_macro (node->flatname (), "_var"); - if (node->gen_var_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_ci::" - "visit_interface - " - "codegen for _var failed\n"), -1); - } - os->gen_endif (); - - // generate the ifdefined macro for the _out type - os->gen_ifdef_macro (node->flatname (), "_out"); - if (node->gen_out_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_ci::" - "visit_interface - " - "codegen for _out failed\n"), -1); - } - os->gen_endif (); - - // generate inline methods for elements of our scope - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_ci::" - "visit_interface - " - "codegen for scope failed\n"), -1); - } - - return 0; -} - -// ************************************************************ -// Interface visitor for client stubs -// ************************************************************ - -be_visitor_interface_cs::be_visitor_interface_cs (be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_cs::~be_visitor_interface_cs (void) -{ -} - -int -be_visitor_interface_cs::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - - if (node->cli_stub_gen () || node->imported ()) - return 0; - - os = this->ctx_->stream (); - - os->indent (); // start with whatever indentation level we are at - - // first generate the code for the static methods - - // The _duplicate method - *os << node->name () << "_ptr " << node->name () << "::_duplicate (" - << node->name () << "_ptr obj)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "if (!CORBA::is_nil (obj))\n"; - os->incr_indent (); - *os << "obj->AddRef ();\n"; - os->decr_indent (); - *os << be_nl; - *os << "return obj;\n"; - os->decr_indent (); - *os << "} // end of _duplicate" << be_nl << be_nl; - - // The _narrow method - *os << node->name () << "_ptr " << node->name () - << "::_narrow (" << be_idt << be_idt_nl - << "CORBA::Object_ptr obj," << be_nl - << "CORBA::Environment &env" << be_uidt_nl - << ")" << be_uidt_nl - << "{" << be_idt_nl - << "if (CORBA::is_nil (obj))" << be_idt_nl - << "return " << node->name () << "::_nil ();" << be_uidt_nl - << "if (!obj->_is_a (\"" << node->repoID () << "\", env))" - << be_idt_nl - << "return " << node->name () << "::_nil ();" << be_uidt_nl; - - *os << "if (!obj->_is_collocated ()" << be_idt << be_idt << be_idt_nl - << " || !obj->_servant()" << be_nl - << " || obj->_servant()->_downcast (\"" - << node->repoID () << "\") == 0" << be_uidt_nl - << ")" << be_uidt << be_uidt_nl - << "{" << be_idt_nl; - *os << node->name () << "_ptr new_obj = new " - << node->name () << "(obj->_get_parent ());" << be_nl - << "return new_obj;" << be_uidt_nl - << "} // end of if" << be_nl; - - *os << "STUB_Object *stub = obj->_servant ()->_create_stub (env);" << be_nl - << "if (env.exception () != 0)" << be_idt_nl - << "return " << node->name () << "::_nil ();" << be_uidt_nl - << "void* servant = obj->_servant ()->_downcast (\"" - << node->repoID () << "\");" << be_nl - << "return new "; - - // This may be necessary to work around a GCC compiler bug! - const char *skel_name = node->full_skel_name (); - const char *coll_name = node->full_coll_name (); - assert (coll_name != 0); - - *os << coll_name << "(" << be_idt << be_idt_nl - << "ACE_reinterpret_cast(" << skel_name - << "_ptr, servant)," << be_nl - << "stub" << be_uidt_nl - << ");" << be_uidt << be_uidt_nl - << "}" << be_nl << be_nl; - - // _nil method - *os << node->name () << "_ptr " << node->name () << "::_nil (void)" << - be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return (" << node->name () << "_ptr)NULL;\n"; - os->decr_indent (); - *os << "} // end of _nil" << be_nl << be_nl; - - // generate code for the elements of the interface - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_cs::" - "visit_interface - " - "codegen for scope failed\n"), -1); - } - - // generate the is_a method - os->indent (); - *os << "CORBA::Boolean " << node->name () << "::_is_a (" << - "const CORBA::Char *value, CORBA::Environment &env)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "if (\n"; - os->incr_indent (0); - if (node->traverse_inheritance_graph (be_interface::is_a_helper, os) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_cs::" - "visit_interface - " - "_is_a method codegen failed\n"), -1); - } - - os->indent (); - *os << "(!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (env))))\n"; - *os << " return 1; // success using local knowledge\n"; - os->decr_indent (); - *os << "else" << be_nl; - *os << " return this->CORBA_Object::_is_a (value, env); // remote call\n"; - os->decr_indent (); - *os << "}\n\n"; - - os->indent (); - *os << "const char* " << node->name () - << "::_interface_repository_id (void) const" - << be_nl - << "{" << be_idt_nl - << "return \"" << node->repoID () << "\";" << be_uidt_nl - << "}\n\n"; - - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor *visitor; - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_TYPECODE_DEFN); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_cs::" - "visit_interface - " - "TypeCode definition failed\n" - ), -1); - } - - - return 0; -} - -// ************************************************************ -// Interface visitor for server header -// ************************************************************ - -be_visitor_interface_sh::be_visitor_interface_sh (be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_sh::~be_visitor_interface_sh (void) -{ -} - -int -be_visitor_interface_sh::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - long i; // loop index - static char namebuf [NAMEBUFSIZE]; // holds the class name - - if (node->srv_hdr_gen () || node->imported ()) - return 0; - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - - os = this->ctx_->stream (); - - // generate the skeleton class name - - os->indent (); // start with whatever indentation level we are at - - // we shall have a POA_ prefix only if we are at the topmost level - if (!node->is_nested ()) - { - // we are outermost - ACE_OS::sprintf (namebuf, "POA_%s", node->local_name ()->get_string ()); - } - else - { - ACE_OS::sprintf (namebuf, "%s", node->local_name ()->get_string ()); - } - - *os << "class " << namebuf << ";" << be_nl; - - // generate the _ptr declaration - *os << "typedef " << namebuf << " *" << namebuf - << "_ptr;" << be_nl; - - // now generate the class definition - *os << "class " << idl_global->export_macro () - << " " << namebuf << " : "; - if (node->n_inherits () > 0) - { - // this interface inherits from other interfaces - be_interface *intf; // inherited interface - - *os << "public virtual "; - intf = be_interface::narrow_from_decl (node->inherits ()[0]); - *os << intf->relative_skel_name (node->full_skel_name ()); - for (i = 1; i < node->n_inherits (); i++) - { - *os << ", public virtual "; - intf = be_interface::narrow_from_decl (node->inherits ()[i]); - *os << intf->relative_skel_name (node->full_skel_name ()); - } // end of for loop - } - else - { - // We don't inherit from another user defined object, hence our - // base class is the ServantBase class. - *os << " public virtual PortableServer::ServantBase"; - } - *os << be_nl - << "{" << be_nl - << "protected:" << be_idt_nl - << namebuf << " (void);" << be_uidt_nl - << "public:" << be_idt_nl - << "virtual ~" << namebuf << " (void);" << be_nl; - - *os << "virtual CORBA::Boolean _is_a (" << be_idt << be_idt_nl - << "const char* logical_type_id," << be_nl - << "CORBA::Environment &_tao_environment" << be_uidt - << ");\n" << be_uidt; - - os->indent (); - *os << "virtual void* _downcast (" << be_idt << be_idt_nl - << "const char* logical_type_id" << be_uidt_nl - << ");\n" << be_uidt; - - // generate code for elements in the scope (e.g., operations) - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_sh::" - "visit_interface - " - "codegen for scope failed\n"), - -1); - } - // add a skeleton for our _is_a method - os->indent (); - *os << "static void _is_a_skel (CORBA::ServerRequest &req, " << - "void *obj, void *context, CORBA::Environment &_tao_enviroment);\n\n"; - - // generate skeletons for operations of our base classes. These skeletons - // just cast the pointer to the appropriate type before invoking the call - if (node->traverse_inheritance_graph (be_interface::gen_skel_helper, os) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_sh::" - "visit_interface - " - "inheritance graph traversal failed\n"), - -1); - } - - // add the dispatch method - os->indent (); - *os << "virtual void _dispatch (CORBA::ServerRequest &_tao_req, " - << "void *_tao_context, CORBA::Environment &_tao_env);\n\n"; - - // Print out the _this() method. - os->indent (); - *os << node->name () << " *_this (CORBA::Environment &_tao_environment);\n"; - // the _interface_repository_id method - os->indent (); - *os << "virtual const char* _interface_repository_id" - << " (void) const;\n"; - - os->decr_indent (); - - *os << "};\n\n"; - - // generate the collocated class - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_sh::" - "visit_interface - " - "codegen for collocated class failed\n"), - -1); - } - - // generate the TIE class - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_INTERFACE_TIE_SH); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_sh::" - "visit_interface - " - "codegen for TIE class failed\n"), - -1); - } - - *os << "\n"; - ctx.stream (tao_cg->server_template_header ()); - - return 0; -} - -// ************************************************************************ -// Interface visitor for server inline -// ************************************************************************ - -be_visitor_interface_si::be_visitor_interface_si (be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_si::~be_visitor_interface_si (void) -{ -} - -int -be_visitor_interface_si::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - - if (node->srv_inline_gen () || node->imported ()) - return 0; - - os = this->ctx_->stream (); - - os->indent (); // start with whatever indentation level we are at - - // Generate skeletons for operations of our base classes. These skeletons - // just cast the pointer to the appropriate type before invoking the - // call. Hence we generate these in the inline file - if (node->traverse_inheritance_graph (be_interface::gen_skel_helper, os) - == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_si::" - "visit_interface - " - "codegen for base class skeletons failed\n"), -1); - } - - // generate the TIE class - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_INTERFACE_TIE_SI); - ctx.stream (tao_cg->server_template_inline ()); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_sh::" - "visit_interface - " - "codegen for TIE class failed\n"), - -1); - } - - return 0; -} - -// ************************************************************ -// Interface visitor for server skeletons -// ************************************************************ - -be_visitor_interface_ss::be_visitor_interface_ss (be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_ss::~be_visitor_interface_ss (void) -{ -} - -int -be_visitor_interface_ss::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - - if (node->srv_skel_gen () || node->imported ()) - return 0; - - os = this->ctx_->stream (); - - // generate the skeleton class name - - os->indent (); // start with whatever indentation level we are at - - if (node->gen_operation_table () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_ss::" - "visit_interface - " - "codegen for operation table failed\n"), - -1); - } - - // constructor - *os << "// skeleton constructor" << be_nl; - // find if we are at the top scope or inside some module - if (!node->is_nested ()) - { - // we are outermost. So the POA_ prefix is prepended to our name - *os << node->full_skel_name () << "::POA_" << node->local_name () << - " (void)" << be_nl; - } - else - { - // the POA_ prefix is prepended to our outermost module name - *os << node->full_skel_name () << "::" << node->local_name () << - " (void)" << be_nl; - } - - *os << "{" << be_idt_nl - << "this->optable_ = &tao_" << node->flatname () - << "_optable;" << be_uidt_nl - << "}\n\n"; - - // destructor - os->indent (); - *os << "// skeleton destructor" << be_nl; - - if (!node->is_nested ()) - { - // we are outermost. So the POA_ prefix is prepended to our name - *os << node->full_skel_name () << "::~POA_" << node->local_name () << - " (void)" << be_nl; - } - else - { - // the POA_ prefix is prepended to our outermost module name - *os << node->full_skel_name () << "::~" << node->local_name () << - " (void)" << be_nl; - } - *os << "{\n"; - *os << "}\n"; - - - // generate code for elements in the scope (e.g., operations) - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_ss::" - "visit_interface - " - "codegen for scope failed\n"), - -1); - } - - // generate code for the _is_a skeleton - os->indent (); - *os << "void " << node->full_skel_name () - << "::_is_a_skel (" << be_idt << be_idt_nl - << "CORBA::ServerRequest &_tao_server_request, " << be_nl - << "void * _tao_object_reference," << be_nl - << "void * /*context*/," << be_nl - << "CORBA::Environment &_tao_environment" << be_uidt_nl - << ")" << be_uidt_nl; - *os << "{\n"; - os->incr_indent (); - *os << "static const TAO_Param_Data_Skel " << node->flatname () - << "_is_a_paramdata [] = " << be_nl; - *os << "{" << be_idt_nl; - *os << "{CORBA::_tc_boolean, 0, 0}," << be_nl; - *os << "{CORBA::_tc_string, CORBA::ARG_IN, 0}" << be_uidt_nl; - *os << "};" << be_nl; - *os << "static const TAO_Call_Data_Skel " << node->flatname () - << "_is_a_calldata = " << be_nl; - *os << "{\"_is_a\", 1, 2, " << node->flatname () << "_is_a_paramdata};" - << be_nl; - *os << "CORBA::Environment _tao_skel_environment;" << be_nl; - *os << node->full_skel_name () << "_ptr _tao_impl = (" - << node->full_skel_name () << "_ptr) _tao_object_reference;" - << be_nl; - *os << "CORBA::Boolean _tao_retval;" << be_nl; - *os << "char *_tao_value = 0;" << be_nl; - *os << "_tao_server_request.demarshal (" << be_idt_nl - << "_tao_environment, " << be_nl - << "&" << node->flatname () << "_is_a_calldata, " << be_nl - << "&_tao_retval, " << be_nl - << "&_tao_value" << be_uidt_nl - << ");" << be_nl; - *os << "if (_tao_environment.exception () != 0) return;" << be_nl; - *os << "_tao_retval = _tao_impl->_is_a (_tao_value, " - << "_tao_skel_environment);" << be_nl; - *os << "_tao_server_request.marshal (" << be_idt_nl - << "_tao_environment, " << be_nl - << "_tao_skel_environment," << be_nl - << "&" << node->flatname () << "_is_a_calldata, " << be_nl - << "&_tao_retval, " << be_nl - << "&_tao_value" << be_uidt_nl - << ");" << be_nl; - *os << "CORBA::string_free (_tao_value);" << be_uidt_nl; - *os << "}\n\n"; - - - os->indent (); - *os << "CORBA::Boolean " << node->full_skel_name () - << "::_is_a (" << be_idt << be_idt_nl - << "const char* value," << be_nl - << "CORBA::Environment &_tao_environment" << be_uidt_nl - << ")" << be_uidt_nl - << "{" << be_idt_nl - << "if (\n" << be_idt; - if (node->traverse_inheritance_graph (be_interface::is_a_helper, os) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_ss::" - "visit_interface - " - "traversal of inhertance graph failed\n"), - -1); - } - - os->indent (); - *os << "(!ACE_OS::strcmp ((char *)value, " - << "CORBA::_tc_Object->id (_tao_environment))))" - << be_idt_nl << "return CORBA::B_TRUE;" << be_uidt_nl - << "else" << be_idt_nl - << "return CORBA::B_FALSE;" << be_uidt << be_uidt << be_uidt_nl - << "}\n\n"; - - os->indent (); - *os << "void* " << node->full_skel_name () - << "::_downcast (" << be_idt << be_idt_nl - << "const char* logical_type_id" << be_uidt_nl - << ")" << be_uidt_nl - << "{" << be_idt_nl; - - if (node->traverse_inheritance_graph (be_interface::downcast_helper, os) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_ss::" - "visit_interface - " - "traversal of inhertance graph failed\n"), - -1); - } - - *os << "if (ACE_OS::strcmp (logical_type_id, " - << "\"IDL:omg.org/CORBA/Object:1.0\") == 0)" << be_idt_nl - << "return ACE_static_cast(PortableServer::Servant, this);" - << be_uidt_nl; - - *os << "return 0;" << be_uidt_nl - << "}\n\n"; - - - // now the dispatch method - os->indent (); - *os << "void " << node->full_skel_name () << - "::_dispatch (CORBA::ServerRequest &req, " << - "void *context, CORBA::Environment &env)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "TAO_Skeleton skel; // pointer to skeleton for operation" << be_nl; - *os << "const char *opname = req.operation (); // retrieve operation name" - << be_nl; - *os << "// find the skeleton corresponding to this opname" << be_nl; - *os << "if (this->_find (opname, skel) == -1)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "env.exception (new CORBA_BAD_OPERATION (CORBA::COMPLETED_NO));" - << be_nl; - *os << "ACE_ERROR ((LM_ERROR, \"Bad operation <%s>\\n\", opname));\n"; - os->decr_indent (); - *os << "}\n"; - *os << "else" << be_nl; - *os << " skel (req, this, context, env);\n"; - os->decr_indent (); - *os << "}\n\n"; - - os->indent (); - *os << "const char* " << node->full_skel_name () - << "::_interface_repository_id (void) const" - << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return \"" << node->repoID () << "\";\n"; - os->decr_indent (); - *os << "}\n\n"; - - // generate the collocated class impl - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_ss::" - "visit_interface - " - "Bad visitor for collocated class\n"), - -1); - } - - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_ss::" - "visit_interface - " - "codegen for collocated class failed\n"), - -1); - } - delete visitor; - - *os << "\n"; - - // the _this () operation - *os << node->name () << "*" << be_nl - << node->full_skel_name () - << "::_this (CORBA_Environment &_env)" << be_nl - << "{" << be_idt_nl - << "STUB_Object *stub = this->_create_stub (_env);" << be_nl - << "if (_env.exception () != 0)" << be_idt_nl - << "return 0;" << be_uidt_nl - << "return new " << node->full_coll_name () - << " (this, stub);" << be_uidt << be_nl; - - *os << "}\n\n"; - - return 0; -} - -// ************************************************************ -// collocated class in header -// ************************************************************ - -be_visitor_interface_collocated_sh::be_visitor_interface_collocated_sh -(be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_collocated_sh::~be_visitor_interface_collocated_sh (void) -{ -} - -int be_visitor_interface_collocated_sh::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - os->gen_ifdef_macro (node->flatname (), "_collocated"); - - // output the class defn - os->indent (); - *os << "class " << idl_global->export_macro () - << " " << node->local_coll_name (); - os->incr_indent (); - *os << " : public virtual " << node->name (); - - // generate base classes if any - if (node->n_inherits () > 0) - { - for (int i = 0; i < node->n_inherits (); ++i) - { - *os << "," << be_nl; - be_interface* parent = - be_interface::narrow_from_decl (node->inherits()[i]); - *os << " public virtual " - << parent->relative_coll_name (node->full_coll_name ()); - } - } - *os << "\n"; - os->decr_indent (); - *os << "{" << be_nl; - *os << "public:\n"; - os->incr_indent (); - - *os << node->local_coll_name () << " (\n"; - - os->incr_indent (0); - os->incr_indent (); - - // XXXASG - can we make this a method to return the right name ?? - if (!node->is_nested ()) - { - // The skeleton name is the outermost, we need to printout the - // POA_ prefix that goes with it. - *os << "POA_"; - } - - *os << node->local_name () << "_ptr " - << " servant," << be_nl; - - *os << "STUB_Object *stub\n"; - os->decr_indent (); - *os << ");\n"; - os->decr_indent (0); - - os->indent (); - if (!node->is_nested ()) - { - // The skeleton name is the outermost, we need to printout the - // POA_ prefix that goes with it. - *os << "POA_"; - } - *os << node->local_name () - << "_ptr _get_servant (void) const;" << be_nl; - - *os << "virtual CORBA::Boolean _is_a (" << be_idt << be_idt_nl - << "const char *logical_type_id," << be_nl - << "CORBA::Environment &_tao_environment" << be_uidt_nl - << ");\n" << be_uidt; - - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_collocated_sh::" - "visit_interface - " - "codegen for scope failed\n"), - -1); - } - -#if 0 - // XXXASG - don't remove until we are sure that the scope visitor is doing - // the task we expect it to do - if (node->nmembers () > 0) - { - UTL_ScopeActiveIterator *si; - ACE_NEW_RETURN (si, - UTL_ScopeActiveIterator (node, - UTL_Scope::IK_decls), - -1); - while (!si->is_done ()) - { - AST_Decl *d = si->item (); - si->next (); - be_decl *bd = be_decl::narrow_from_decl (d); - if (d->imported () || bd == 0) - { - continue; - } - if (bd->accept (this) == -1) - { - delete si; - return -1; - } - } - delete si; - } -#endif - - os->decr_indent (); - - *os << be_nl << "private:\n"; - os->incr_indent (); - if (!node->is_nested ()) - { - // The skeleton name is the outermost, we need to printout the - // POA_ prefix that goes with it. - *os << "POA_"; - } - *os << node->local_name () << "_ptr servant_;\n"; - os->decr_indent (); - *os << "};\n\n"; - - os->gen_endif (); - - return 0; -} - -#if 0 -int be_visitor_interface_collocated_sh::visit_operation (be_operation *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - os->indent (); // start with the current indentation level - - // every operation is declared virtual - *os << "virtual "; - - // first generate the return type - be_type *bt = be_type::narrow_from_decl (node->return_type ()); - - // XXASG - this changes - if (bt->write_as_return (os, bt) == -1) - { - return -1; - } - - // generate the operation name - *os << " " << node->local_name () << " "; - - // XXXASG - TODO - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_OPERATION_ARGLIST_OTHERS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_colocated_sh::" - "visit_operation - " - "Bad visitor for arglist\n"), - -1); - } - - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_colocated_sh::" - "visit_operation - " - "codegen for arglist failed\n"), - -1); - } - *os << ";\n"; - - return 0; -} - -int be_visitor_interface_collocated_sh::visit_attribute (be_attribute *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - os->indent (); // start with the current indentation level - - be_type* bt = be_type::narrow_from_decl (node->field_type ()); - - // the retrieve method is defined virtual - *os << "virtual "; - - // XXXASG - change this - if (bt->write_as_return (os, bt) == -1) - { - return -1; - } - - *os << " " << node->local_name () << " (" << be_idt << be_idt_nl - << "CORBA::Environment &env" << be_uidt_nl - << ");\n" << be_uidt; - - if (!node->readonly ()) - { - os->indent (); - *os << "virtual void " << node->local_name () - << " (" << be_idt << be_idt; - - // XXXASG - TODO - be_visitor_args_decl vdecl (os); - vdecl.current_type_name (bt->name ()); - vdecl.argument_direction (AST_Argument::dir_IN); - if (bt->accept (&vdecl) == -1) - return -1; - - *os << " _tao_value," << be_nl - << "CORBA::Environment &_tao_environment" << be_uidt_nl - << ");\n" << be_uidt; - } - return 0; -} -#endif - -// ************************************************************ -// be_visitor_interface_collacted_ss -// ************************************************************ - -be_visitor_interface_collocated_ss::be_visitor_interface_collocated_ss -(be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_collocated_ss::~be_visitor_interface_collocated_ss (void) -{ -} - -int be_visitor_interface_collocated_ss::visit_interface (be_interface *node) -{ - TAO_OutStream *os = tao_cg->server_skeletons (); - long i; - - this->ctx_->node (node); - - *os << node->full_coll_name () << "::" - << node->local_coll_name () << " (\n"; - - os->incr_indent (0); - os->incr_indent (); - *os << node->full_skel_name () << "_ptr " - << " servant," << be_nl; - - *os << "STUB_Object *stub\n"; - os->decr_indent (); - *os << ")\n"; - os->decr_indent (0); - - os->incr_indent (); - - if (node->is_nested ()) - { - be_decl* scope = - be_scope::narrow_from_scope (node->defined_in ())->decl (); - - *os << ": ACE_NESTED_CLASS (" - << scope->name () << "," - << node->local_name () - << ") ()," << be_nl; - } - else - { - *os << ": " << node->name () - << " ()," << be_nl; - } - - // @@ We should call the constructor for all base classes, since we - // are using multiple inheritance. - - if (node->n_inherits () > 0) - { - for (i = 0; i < node->n_inherits (); ++i) - { - be_interface* parent = - be_interface::narrow_from_decl (node->inherits()[i]); - if (parent->is_nested ()) - { - be_decl* scope = - be_scope::narrow_from_scope (parent->defined_in())->decl (); - - *os << " ACE_NESTED_CLASS (" - << "POA_" << scope->name () << "," - << parent->local_coll_name () - << ") (servant, stub)," << be_nl; - } - else - { - *os << " " << parent->full_coll_name () - << " (servant, stub)," << be_nl; - } - } - } - - *os << " CORBA_Object (stub, servant, CORBA::B_TRUE)," << be_nl - << " servant_ (servant)"; - - *os << "\n"; - os->decr_indent (); - *os << "{\n"; - *os << "}\n\n"; - - os->indent (); - *os << node->full_skel_name () << "_ptr " - << node->full_coll_name () << "::" - << "_get_servant (void) const\n" - << "{\n"; - os->incr_indent (); - *os << "return this->servant_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - os->indent (); - *os << "CORBA::Boolean " << node->full_coll_name () - << "::_is_a (" << be_idt << be_idt_nl - << "const char* logical_type_id," << be_nl - << "CORBA::Environment &_tao_environment" << be_uidt_nl - << ")" << be_uidt_nl - << "{" << be_idt_nl - << "return this->servant_->_is_a (" << be_idt << be_idt_nl - << "logical_type_id," << be_nl - << "_tao_environment" << be_uidt_nl - << ");" << be_uidt << be_uidt_nl - << "}\n\n"; - - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_collocated_ss::" - "visit_scope - " - "codegen for scope failed\n"), - -1); - } - - return 0; -} - -// *************************************************************************** -// Interface visitor for generating Any operator declarations in the client header -// *************************************************************************** - -be_visitor_interface_any_op_ch::be_visitor_interface_any_op_ch -(be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_any_op_ch::~be_visitor_interface_any_op_ch (void) -{ -} - -int -be_visitor_interface_any_op_ch::visit_interface (be_interface *node) -{ - if (node->cli_hdr_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the Any <<= and >>= operator declarations - os->indent (); - *os << "// Any operators for interface " << node->name () << be_nl; - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, const " << node->name () - << " &); // copying version" << be_nl; - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, " << node->name () - << "*); // noncopying version" << be_nl; - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator>>= (const CORBA::Any &, " - << node->name () << " *&);\n"; - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::visit_interface - " - "codegen for scope failed\n"), -1); - } - - node->cli_hdr_any_op_gen (1); - return 0; -} - -// *************************************************************************** -// Interface visitor for generating Any operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_interface_any_op_cs::be_visitor_interface_any_op_cs -(be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_any_op_cs::~be_visitor_interface_any_op_cs (void) -{ -} - -int -be_visitor_interface_any_op_cs::visit_interface (be_interface *node) -{ - if (node->cli_stub_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // generate the Any <<= and >>= operator declarations - // Any <<= and >>= operators - os->indent (); - *os << "void operator<<= (CORBA::Any &_tao_any, " - << node->name () << "_ptr _tao_elem) // copying" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "CORBA::Object_ptr *_tao_obj_ptr;" << be_nl - << "ACE_NEW (_tao_obj_ptr, CORBA::Object_ptr);" << be_nl - << "*_tao_obj_ptr = " << node->name () - << "::_duplicate (_tao_elem);" << be_nl - << "_tao_any.replace (" << node->tc_name () << ", " - << "_tao_obj_ptr, 1, _tao_env);" << be_uidt_nl - << "}" << be_nl; - - *os << "void operator<<= (CORBA::Any &_tao_any, " - << node->name () << "_ptr *_tao_elem) // non copying" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "_tao_any.replace (" << node->tc_name () << ", " - << "_tao_elem, 1, _tao_env); // consume it" << be_uidt_nl - << "}" << be_nl; - - *os << "CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, " - << node->name () << "_ptr &_tao_elem)" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "_tao_elem = " << node->name () << "::_nil ();" << be_nl - << "if (!_tao_any.type ()->equal (" << node->tc_name () - << ", _tao_env)) return 0; // not equal" << be_nl - << "TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());" - << be_nl - << "CORBA::Object_ptr *_tao_obj_ptr;" << be_nl - << "ACE_NEW_RETURN (_tao_obj_ptr, CORBA::Object_ptr, 0);" << be_nl - << "if (stream.decode (" << node->tc_name () - << ", _tao_obj_ptr, 0, _tao_env)" << be_nl - << " == CORBA::TypeCode::TRAVERSE_CONTINUE)" << be_nl - << "{" << be_idt_nl - << "_tao_elem = " << node->name () - << "::_narrow (*_tao_obj_ptr, _tao_env);" << be_nl - << "if (_tao_env.exception ()) return 0; // narrow failed" << be_nl - << "CORBA::release (*_tao_obj_ptr);" << be_nl - << "*_tao_obj_ptr = _tao_elem;" << be_nl - << "((CORBA::Any *)&_tao_any)->replace (_tao_any.type (), " - << "_tao_obj_ptr, 1, _tao_env);" - << be_nl - << "if (_tao_env.exception ()) return 0; // narrow failed" << be_nl - << "return 1;" << be_uidt_nl - << "}" << be_nl - << "return 0; // failure" << be_uidt_nl - << "}\n\n"; - - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::visit_interface - " - "codegen for scope failed\n"), -1); - } - - node->cli_stub_any_op_gen (1); - return 0; -} - -// ************************************************************ -// Interface visitor for server header -// ************************************************************ - -be_visitor_interface_tie_sh::be_visitor_interface_tie_sh (be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_tie_sh::~be_visitor_interface_tie_sh (void) -{ -} - -int -be_visitor_interface_tie_sh::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - static char namebuf [NAMEBUFSIZE]; // holds the class name - static char tiename [NAMEBUFSIZE]; // holds the tie name - - if (node->srv_hdr_gen () || node->imported ()) - return 0; - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::memset (tiename, '\0', NAMEBUFSIZE); - - os = this->ctx_->stream (); - - // generate the skeleton class name which will be used to determine the TIE - // class name - - // we shall have a POA_ prefix only if we are at the topmost level - if (!node->is_nested ()) - { - // we are outermost - ACE_OS::sprintf (namebuf, "POA_%s", node->local_name ()->get_string ()); - ACE_OS::sprintf (tiename, "POA_%s_tie", - node->local_name ()->get_string ()); - } - else - { - ACE_OS::sprintf (namebuf, "%s", node->local_name ()->get_string ()); - ACE_OS::sprintf (tiename, "%s_tie", - node->local_name ()->get_string ()); - } - - // now generate the class definition - os->indent (); // start with whatever indentation level we are at - - // Since templates nested inside of classes are broken on most C++ compilers, - // we generate code for this inside a conditional macro. The code is - // activated only if "namespaces" are supported on the platform - if (node->is_nested ()) - { - *os << "\n#if defined (ACE_HAS_USING_KEYWORD)" << be_nl; - } - - *os << "// TIE class: Refer to CORBA v2.2, Section 20.34.4" << be_nl; - *os << "template " << be_nl; - *os << "class " << idl_global->export_macro () - << " " << tiename << " : public " << namebuf << be_nl; - *os << "{" << be_nl - << "public:" << be_idt_nl - << tiename << " (T &t);" << be_nl - << "// the T& ctor" << be_nl - << tiename << " (T &t, PortableServer::POA_ptr poa);" << be_nl - << "// ctor taking a POA" << be_nl - << tiename << " (T *tp, CORBA::Boolean release=1);" << be_nl - << "// ctor taking pointer and an ownership flag" << be_nl - << tiename << " (T *tp, PortableServer::POA_ptr poa, " - << "CORBA::Boolean release=1);" << be_nl - << "// ctor with T*, ownership flag and a POA" << be_nl - << "~" << tiename << " (void);" << be_nl - << "// dtor" << be_nl << be_nl - << "// TIE specific functions" << be_nl - << "T *_tied_object (void);" << be_nl - << "// return the underlying object" << be_nl - << "void _tied_object (T &obj);" << be_nl - << "// set the underlying object" << be_nl - << "void _tied_object (T *obj, CORBA::Boolean release=1);" << be_nl - << "// set the underlying object and the ownership flag" << be_nl - << "CORBA::Boolean _is_owner (void);" << be_nl - << "// do we own it" << be_nl - << "void _is_owner (CORBA::Boolean b);" << be_nl - << "// set the ownership" << be_nl << be_nl - << "// overridden ServantBase operations" << be_nl - << "PortableServer::POA_ptr _default_POA (CORBA::Environment &env);\n"; - - // generate code for the operations in the scope - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_tie_sh::" - "visit_interface - " - "codegen for scope failed\n"), - -1); - } - - *os << be_uidt << "private:" << be_idt_nl - << "T *ptr_;" << be_nl - << "PortableServer::POA_var poa_;" << be_nl - << "CORBA::Boolean rel_;" << be_nl << be_nl - << "// copy and assignment are not allowed" << be_nl - << tiename << " (const " << tiename << " &);" << be_nl - << "void operator= (const " << tiename << " &);" << be_uidt_nl - << "};\n\n"; - - if (node->is_nested ()) - { - *os << "#endif /* ACE_HAS_USING_KEYWORD */\n"; - } - - return 0; -} - -// ************************************************************************ -// Interface visitor for server inline -// ************************************************************************ - -be_visitor_interface_tie_si::be_visitor_interface_tie_si (be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_tie_si::~be_visitor_interface_tie_si (void) -{ -} - -int -be_visitor_interface_tie_si::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - static char fulltiename [NAMEBUFSIZE]; // holds the class name - static char localtiename [NAMEBUFSIZE]; // holds the tie name - - if (node->srv_inline_gen () || node->imported ()) - return 0; - - ACE_OS::memset (fulltiename, '\0', NAMEBUFSIZE); - ACE_OS::memset (localtiename, '\0', NAMEBUFSIZE); - - os = this->ctx_->stream (); - - // generate the skeleton class name which will be used to determine the TIE - // class name - - // we are outermost - ACE_OS::sprintf (fulltiename, "%s_tie", node->full_skel_name ()); - if (!node->is_nested ()) - { - ACE_OS::sprintf (localtiename, "POA_%s_tie", - node->local_name ()->get_string ()); - } - else - { - ACE_OS::sprintf (localtiename, "%s_tie", - node->local_name ()->get_string ()); - } - - if (node->is_nested ()) - { - *os << "\n#if defined (ACE_HAS_USING_KEYWORD)\n"; - } - - os->indent (); // start with whatever indentation level we are at - - *os << "template ACE_INLINE" << be_nl - << fulltiename << "::" << localtiename << " (T &t)" << be_nl - << "\t: ptr_ (&t)," << be_nl - << "\t poa_ (PortableServer::POA::_nil ())," << be_nl - << "\t rel_ (0)" << be_nl - << "{}" << be_nl << be_nl; - - *os << "template ACE_INLINE" << be_nl - << fulltiename << "::" << localtiename - << " (T &t, PortableServer::POA_ptr poa)" << be_nl - << "\t: ptr_ (&t)," << be_nl - << "\t poa_ (PortableServer::POA::_duplicate (poa))," << be_nl - << "\t rel_ (0)" << be_nl - << "{}" << be_nl << be_nl; - - *os << "template ACE_INLINE" << be_nl - << fulltiename << "::" << localtiename - << " (T *tp, CORBA::Boolean release)" << be_nl - << "\t: ptr_ (tp)," << be_nl - << "\t poa_ (PortableServer::POA::_nil ())," << be_nl - << "\t rel_ (release)" << be_nl - << "{}" << be_nl << be_nl; - - *os << "template ACE_INLINE" << be_nl - << fulltiename << "::" << localtiename - << " (T *tp, PortableServer::POA_ptr poa, CORBA::Boolean release)" - << be_nl - << "\t: ptr_ (tp)," << be_nl - << "\t poa_ (PortableServer::POA::_duplicate (poa))," << be_nl - << "\t rel_ (release)" << be_nl - << "{}" << be_nl << be_nl; - - *os << "template ACE_INLINE" << be_nl - << fulltiename << "::~" << localtiename << " (void)" << be_nl - << "{" << be_idt_nl - << "CORBA::release (this->poa_);" << be_nl - << "if (this->rel_) delete this->ptr_;" << be_uidt_nl - << "}" << be_nl << be_nl; - - *os << "template ACE_INLINE T *" << be_nl - << fulltiename << "::_tied_object (void)" << be_nl - << "{" << be_idt_nl - << "return this->ptr_;" << be_uidt_nl - << "}" << be_nl << be_nl; - - *os << "template ACE_INLINE void" << be_nl - << fulltiename << "::_tied_object (T &obj)" << be_nl - << "{" << be_idt_nl - << "if (this->rel_) delete this->ptr_;" << be_nl - << "this->ptr_ = &obj;" << be_nl - << "this->rel_ = 0;" << be_uidt_nl - << "}" << be_nl << be_nl; - - *os << "template ACE_INLINE void" << be_nl - << fulltiename << "::_tied_object (T *obj, " - << "CORBA::Boolean release)" << be_nl - << "{" << be_idt_nl - << "if (this->rel_) delete this->ptr_;" << be_nl - << "this->ptr_ = obj;" << be_nl - << "this->rel_ = release;" << be_uidt_nl - << "}" << be_nl << be_nl; - - *os << "template ACE_INLINE CORBA::Boolean" << be_nl - << fulltiename << "::_is_owner (void)" << be_nl - << "{" << be_idt_nl - << "return this->rel_;" << be_uidt_nl - << "}" << be_nl << be_nl; - - *os << "template ACE_INLINE void" << be_nl - << fulltiename << "::_is_owner (CORBA::Boolean b)" << be_nl - << "{" << be_idt_nl - << "this->rel_ = b;" << be_uidt_nl - << "}" << be_nl << be_nl; - - *os << "template ACE_INLINE " - << "PortableServer::POA_ptr" << be_nl - << fulltiename << "::_default_POA (CORBA::Environment &env)" << be_nl - << "{" << be_idt_nl - << "if (!CORBA::is_nil (this->poa_.in ()))" << be_idt_nl - << "return PortableServer::POA::_duplicate (this->poa_.in ());" - << be_uidt_nl - << "else" << be_nl - << "{" << be_idt_nl - << "TAO_POA *poa = TAO_ORB_Core_instance ()->root_poa ();" << be_nl - << "PortableServer::POA_var result = poa->_this (env);" << be_nl - << "if (env.exception () != 0)" << be_idt_nl - << "return PortableServer::POA::_nil ();" << be_uidt_nl - << "else" << be_idt_nl - << "return result._retn ();" << be_uidt << be_uidt_nl - << "}" << be_uidt - << "}\n\n"; - - // generate code for the operations in the scope - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_tie_si::" - "visit_interface - " - "codegen for scope failed\n"), - -1); - } - - if (node->is_nested ()) - { - *os << "#endif /* ACE_HAS_USING_KEYWORD */\n"; - } - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_interface_fwd.cpp b/TAO/TAO_IDL/be/be_visitor_interface_fwd.cpp deleted file mode 100644 index 3e9ce97d5cf..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_interface_fwd.cpp +++ /dev/null @@ -1,146 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_interface_fwd.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Interface_Fwd -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_interface_fwd.h" - -// ******************************************************************** -// Visitor implementation for the Interface_Fwd type -// This one for the client header file -// ******************************************************************** - -be_visitor_interface_fwd_ch::be_visitor_interface_fwd_ch (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_interface_fwd_ch::~be_visitor_interface_fwd_ch (void) -{ -} - -// visit the Interface_Fwd_Ch node and its scope -int -be_visitor_interface_fwd_ch::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - if (!node->cli_hdr_gen () && !node->imported ()) - { - os->indent (); // start from the current - - // all we do in this is generate a forward declaration of the class - *os << "class " << node->local_name () << ";" << be_nl; - - // generate the ifdefined macro for the _ptr type - os->gen_ifdef_macro (node->flatname (), "_ptr"); - - // generate the _ptr declaration - *os << "typedef " << node->local_name () << " *" << node->local_name () - << "_ptr;\n"; - - os->gen_endif (); - - // enclose under an ifdef macro - os->gen_ifdef_macro (node->flatname (), "_var"); - - // generate the _var declaration - if (node->gen_var_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_fwd_ch::" - "visit_interface_fwd - " - "codegen for _var failed\n"), -1); - } - // gen an endif - os->gen_endif (); - - // enclose under an ifdef macro - os->gen_ifdef_macro (node->flatname (), "_out"); - - // generate the _out declaration - ORBOS/97-05-15 pg 16-20 spec - if (node->gen_out_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_fwd_ch::" - "visit_interface_fwd - " - "codegen for _out failed\n"), -1); - } - // generate the endif macro - os->gen_endif (); - node->cli_hdr_gen (I_TRUE); - } - return 0; -} - -// ******************************************************************** -// Visitor implementation for the Interface_Fwd type -// This one for the client inline file -// ******************************************************************** - -be_visitor_interface_fwd_ci::be_visitor_interface_fwd_ci (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_interface_fwd_ci::~be_visitor_interface_fwd_ci (void) -{ -} - -// visit the Interface_Fwd_ci node and its scope -int -be_visitor_interface_fwd_ci::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - if (!node->cli_inline_gen () && !node->imported ()) - { - - // generate the ifdefined macro for the _var type - os->gen_ifdef_macro (node->flatname (), "_var"); - - if (node->gen_var_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_fwd_ci::" - "visit_interface_fwd - " - "codegen for _var failed\n"), -1); - } - - os->gen_endif (); - - // generate the ifdefined macro for the _out type - os->gen_ifdef_macro (node->flatname (), "_out"); - - if (node->gen_out_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_fwd_ci::" - "visit_interface_fwd - " - "codegen for _out failed\n"), -1); - } - os->gen_endif (); - - node->cli_stub_gen (I_TRUE); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_module.cpp b/TAO/TAO_IDL/be/be_visitor_module.cpp deleted file mode 100644 index 4f8e5c3a64d..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_module.cpp +++ /dev/null @@ -1,723 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_module.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Module -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_module.h" - -// ****************************************************** -// Generic Module visitor -// ****************************************************** - -be_visitor_module::be_visitor_module (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_module::~be_visitor_module (void) -{ -} - -// visit the Module node and its scope -int be_visitor_module::visit_module (be_module *node) -{ - // all we have to do is to visit the scope - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::visit_module - " - "codegen for scope failed\n"), -1); - } - return 0; -} - -// =all common visit methods for module visitor - -// visit a constant -int -be_visitor_module::visit_constant (be_constant *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_MODULE_CH: - ctx.state (TAO_CodeGen::TAO_CONSTANT_CH); - break; - case TAO_CodeGen::TAO_MODULE_CS: - ctx.state (TAO_CodeGen::TAO_CONSTANT_CS); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CH: - case TAO_CodeGen::TAO_MODULE_ANY_OP_CS: - case TAO_CodeGen::TAO_MODULE_CI: - case TAO_CodeGen::TAO_MODULE_SH: - case TAO_CodeGen::TAO_MODULE_SI: - case TAO_CodeGen::TAO_MODULE_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_constant - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_constant - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_constant - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -//visit an enum -int -be_visitor_module::visit_enum (be_enum *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_MODULE_CH: - ctx.state (TAO_CodeGen::TAO_ENUM_CH); - break; - case TAO_CodeGen::TAO_MODULE_CS: - ctx.state (TAO_CodeGen::TAO_ENUM_CS); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_ENUM_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_ENUM_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_MODULE_CI: - case TAO_CodeGen::TAO_MODULE_SH: - case TAO_CodeGen::TAO_MODULE_SI: - case TAO_CodeGen::TAO_MODULE_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_enum - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_enum - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_enum - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an exception -int -be_visitor_module::visit_exception (be_exception *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_MODULE_CH: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CH); - break; - case TAO_CodeGen::TAO_MODULE_CI: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CI); - break; - case TAO_CodeGen::TAO_MODULE_CS: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CS); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_MODULE_SH: - case TAO_CodeGen::TAO_MODULE_SI: - case TAO_CodeGen::TAO_MODULE_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_exception - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_exception - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_exception - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an interface -int -be_visitor_module::visit_interface (be_interface *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_MODULE_CH: - ctx.state (TAO_CodeGen::TAO_INTERFACE_CH); - break; - case TAO_CodeGen::TAO_MODULE_CI: - ctx.state (TAO_CodeGen::TAO_INTERFACE_CI); - break; - case TAO_CodeGen::TAO_MODULE_CS: - ctx.state (TAO_CodeGen::TAO_INTERFACE_CS); - break; - case TAO_CodeGen::TAO_MODULE_SH: - ctx.state (TAO_CodeGen::TAO_INTERFACE_SH); - break; - case TAO_CodeGen::TAO_MODULE_SI: - ctx.state (TAO_CodeGen::TAO_INTERFACE_SI); - break; - case TAO_CodeGen::TAO_MODULE_SS: - ctx.state (TAO_CodeGen::TAO_INTERFACE_SS); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS); - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_interface - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_interface - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_interface - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an interface_fwd -int -be_visitor_module::visit_interface_fwd (be_interface_fwd *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_MODULE_CH: - ctx.state (TAO_CodeGen::TAO_INTERFACE_FWD_CH); - break; - case TAO_CodeGen::TAO_MODULE_CI: - ctx.state (TAO_CodeGen::TAO_INTERFACE_FWD_CI); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CH: - case TAO_CodeGen::TAO_MODULE_ANY_OP_CS: - case TAO_CodeGen::TAO_MODULE_CS: - case TAO_CodeGen::TAO_MODULE_SH: - case TAO_CodeGen::TAO_MODULE_SI: - case TAO_CodeGen::TAO_MODULE_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_interface_fwd - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_interface_fwd - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_interface_fwd - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an structure -int -be_visitor_module::visit_structure (be_structure *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_MODULE_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_CH); - break; - case TAO_CodeGen::TAO_MODULE_CI: - ctx.state (TAO_CodeGen::TAO_STRUCT_CI); - break; - case TAO_CodeGen::TAO_MODULE_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_CS); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_MODULE_SH: - case TAO_CodeGen::TAO_MODULE_SI: - case TAO_CodeGen::TAO_MODULE_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_structure - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_structure - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_structure - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an union -int -be_visitor_module::visit_union (be_union *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_MODULE_CH: - ctx.state (TAO_CodeGen::TAO_UNION_CH); - break; - case TAO_CodeGen::TAO_MODULE_CI: - ctx.state (TAO_CodeGen::TAO_UNION_CI); - break; - case TAO_CodeGen::TAO_MODULE_CS: - ctx.state (TAO_CodeGen::TAO_UNION_CS); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_UNION_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_UNION_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_MODULE_SH: - case TAO_CodeGen::TAO_MODULE_SI: - case TAO_CodeGen::TAO_MODULE_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_union - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_union - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_union - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit a typedef -int -be_visitor_module::visit_typedef (be_typedef *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_MODULE_CH: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CH); - break; - case TAO_CodeGen::TAO_MODULE_CI: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CI); - break; - case TAO_CodeGen::TAO_MODULE_CS: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CS); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_MODULE_SH: - case TAO_CodeGen::TAO_MODULE_SI: - case TAO_CodeGen::TAO_MODULE_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_typedef - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_typedef - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// ****************************************************** -// Module visitor for client header -// ****************************************************** - -be_visitor_module_ch::be_visitor_module_ch (be_visitor_context *ctx) - : be_visitor_module (ctx) -{ -} - -be_visitor_module_ch::~be_visitor_module_ch (void) -{ -} - -int -be_visitor_module_ch::visit_module (be_module *node) -{ - TAO_OutStream *os; // output stream - - if (!node->cli_hdr_gen () && !node->imported ()) - { - os = this->ctx_->stream (); - - // XXXASG - Modules really map to namespace. We need to see if our target - // compiler supports namespaces or not. This visitor generates a class for a - // module. We can have the factory generate another module visitor that can - // generate namespaces - - os->indent (); // start from whatever indentation level we were at - // now generate the class definition - *os << "TAO_NAMESPACE " // << idl_global->export_macro () - << " " << node->local_name () << be_nl - << "{\n"; - os->incr_indent (0); - - // generate code for the module definition by traversing thru the - // elements of its scope. We depend on the front-end to have made sure - // that only legal syntactic elements appear in our scope. - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module_ch::" - "visit_module - " - "codegen for scope failed\n"), -1); - } - - *os << be_uidt_nl - << "}; // module " << node->name () << "\n\n"; - - } - return 0; -} - -// ************************************************************ -// Module visitor for server header -// ************************************************************ - -be_visitor_module_sh::be_visitor_module_sh (be_visitor_context *ctx) - : be_visitor_module (ctx) -{ -} - -be_visitor_module_sh::~be_visitor_module_sh (void) -{ -} - -int -be_visitor_module_sh::visit_module (be_module *node) -{ - TAO_OutStream *os; // output stream - - if (!node->srv_hdr_gen () && !node->imported ()) // not generated and not imported - { - os = this->ctx_->stream (); - - // generate the skeleton class name - - os->indent (); // start with whatever indentation level we are at - - // now generate the class definition. The prefix POA_ is prepended to our - // name only if we are the outermost module - *os << "TAO_NAMESPACE "; // << idl_global->export_macro () - - if (!node->is_nested ()) - // we are outermost module - *os << " POA_" << node->local_name () << be_nl; - else - // we are inside another module - *os << " " << node->local_name () << be_nl; - - *os << "{" << be_nl - << be_idt; - - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module_sh::" - "visit_module - " - "codegen for scope failed\n"), -1); - } - - os->decr_indent (); - *os << "};\n\n"; - } - return 0; - -} - -// *************************************************************************** -// Module visitor for generating Any operator declarations in the client header -// and stub -// *************************************************************************** - -be_visitor_module_any_op::be_visitor_module_any_op (be_visitor_context *ctx) - : be_visitor_module (ctx) -{ -} - -be_visitor_module_any_op::~be_visitor_module_any_op (void) -{ -} - -int -be_visitor_module_any_op::visit_module (be_module *node) -{ - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::visit_module - " - "codegen for scope failed\n"), -1); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation.cpp b/TAO/TAO_IDL/be/be_visitor_operation.cpp deleted file mode 100644 index 4cf001bb6ef..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation.cpp +++ /dev/null @@ -1,3430 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_operation.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Operation -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -// ****************************************************** -// primary visitor for "operation" in client header -// ****************************************************** - -be_visitor_operation_ch::be_visitor_operation_ch (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_operation_ch::~be_visitor_operation_ch (void) -{ -} - -int -be_visitor_operation_ch::visit_operation (be_operation *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; // type node - - os = this->ctx_->stream (); - this->ctx_->node (node); // save the node - - os->indent (); // start with the current indentation level - - // every operation is declared virtual in the client code - *os << "virtual "; - - // STEP I: generate the return type - bt = be_type::narrow_from_decl (node->return_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ch::" - "visit_operation - " - "Bad return type\n"), - -1); - } - - // grab the right visitor to generate the return type - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_OPERATION_RETTYPE_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_ch::" - "visit_operation - " - "Bad visitor to return type\n"), - -1); - } - - if (bt->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ch::" - "visit_operation - " - "codegen for return type failed\n"), - -1); - } - delete visitor; - - // STEP 2: generate the operation name - *os << " " << node->local_name (); - - // STEP 3: generate the argument list with the appropriate mapping. For these - // we grab a visitor that generates the parameter listing - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARGLIST_CH); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_ch::" - "visit_operation - " - "Bad visitor to return type\n"), - -1); - } - - if (node->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ch::" - "visit_operation - " - "codegen for argument list failed\n"), - -1); - } - delete visitor; - - return 0; -} - -// ************************************************************ -// Operation visitor for client stubs -// ************************************************************ - -be_visitor_operation_cs::be_visitor_operation_cs (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_operation_cs::~be_visitor_operation_cs (void) -{ -} - -// processing to be done after every element in the scope is processed -int -be_visitor_operation_cs::post_process () -{ - // all we do here is to insert a comma and a newline - TAO_OutStream *os = this->ctx_->stream (); - *os << ",\n"; - return 0; -} - -int -be_visitor_operation_cs::visit_operation (be_operation *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; // type node - be_visitor_context ctx; // visitor context - be_visitor *visitor; // visitor - - os = this->ctx_->stream (); - this->ctx_->node (node); // save the node for future use - - os->indent (); // start with the current indentation level - - // retrieve the operation return type - bt = be_type::narrow_from_decl (node->return_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "Bad return type\n"), - -1); - } - - // Generate the return type mapping (same as in the header file) - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETTYPE_OTHERS); - visitor = tao_cg->make_visitor (&ctx); - - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_cs::" - "visit_operation - " - "Bad visitor for return type\n"), - -1); - } - - if (bt->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for return type failed\n"), - -1); - } - delete visitor; - - // Generate the operation name - *os << " " << node->name (); - - // Generate the argument list with the appropriate mapping (same as - // in the header file) - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARGLIST_OTHERS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_cs::" - "visit_operation - " - "Bad visitor to return type\n"), - -1); - } - - if (node->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for argument list failed\n"), - -1); - } - delete visitor; - - // Generate the actual code for the stub. However, if any of the argument - // types is "native", we flag a MARSHAL exception. - // last argument - is always CORBA::Environment - *os << "{\n"; - os->incr_indent (0); - - // Generate the param_data and call_data tables. We generate these if and - // only if none of our arguments is of "native" type. Native types cannot be - // marshaled. Hence, stubs for such operations will generate MARSHAL - // exceptions. As a result it is pointless generating these tables - if (!node->has_native ()) - { - // native type does not exist. Generate the static tables - - // Generate the TAO_Param_Data table - os->indent (); - *os << "static const TAO_Param_Data "; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->flatname () << - "_paramdata [] = " << be_nl; - *os << "{\n"; - os->incr_indent (); - - // entry for the return type - *os << "{" << bt->tc_name () << ", PARAM_RETURN, 0}"; - if (node->nmembers () > 0) - *os << ",\n"; - - // generate entries for the param data table for arguments - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "visit scope failed\n"), - -1); - } - *os << "\n"; - os->decr_indent (); - *os << "}; // " << node->flatname () << "_paramdata\n\n"; - - // Check if this operation raises any exceptions. In that case, we must - // generate a list of exception typecodes. This is not valid for - // attributes - if (!this->ctx_->attribute ()) - { - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_EXCEPTLIST_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) " - "be_visitor_operation_cs::visit_operation - " - "Exceptionlist generation error\n"), - -1); - } - } - - // now generate the calldata table - os->indent (); - *os << "static const TAO_Call_Data "; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->flatname () - << "_calldata = " << be_nl - << "{" - << "\""; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->local_name () << "\", "; - - // are we oneway or two operation? - if (node->flags () == AST_Operation::OP_oneway) - { - *os << "0, "; // for false - } - else - { - *os << "1, "; // for true - } - // insert the size of the paramdata table i.e., number of arguments + 1 - // for return type - *os << (node->argument_count () + 1) << ", "; - - // insert the address of the paramdata table - // first check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->flatname () << "_paramdata, "; - - // insert exception list (if any) - node for attributes - if (this->ctx_->attribute ()) - *os << "0, 0};\n\n"; - else - { - if (node->exceptions ()) - { - *os << node->exceptions ()->length () - << ", _tao_" << node->flatname () << "_exceptiondata};\n\n"; - } - else - *os << "0, 0};\n\n"; - } - } // end of if !(native) - - // Declare a return type - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for return var decl failed\n"), - -1); - } - - os->indent (); - if (node->has_native ()) // native exists => no stub - { - *os << "_tao_environment.exception (new CORBA::MARSHAL " - << "(CORBA::COMPLETED_NO));" << be_nl; - *os << "return _tao_retval;\n"; - } - else - { - // Generate code that retrieves the underlying stub object and then - // invokes do_static_call on it. - *os << "STUB_Object *istub = this->stubobj (_tao_environment);" << be_nl - << "if (istub)" << be_nl - << "{\n"; - os->incr_indent (0); - - // do any pre do_static_call processing with return type. This includes - // allocating memory, initialization. - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_PRE_DOCALL_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for retval pre do_static_call failed\n"), - -1); - } - - - // do any pre do_static_call stuff with arguments - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_PRE_DOCALL_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for argument pre do_static_call failed\n"), - -1); - } - - // call do_static_call with appropriate number of arguments - os->indent (); - *os << "istub->do_static_call (" << be_idt_nl - << "_tao_environment, " << be_nl - << "&"; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->flatname () << "_calldata,\n"; - - // pass the appropriate return value to docall - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_DOCALL_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for return var in do_static_call failed\n"), - -1); - } - // insert a comma after the return val if there are arguments - if (node->argument_count () > 0) - { - *os << ",\n"; - } - - // pass each argument to do_static_call - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_DOCALL_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for return var in do_static_call failed\n"), - -1); - } - - // end the do_static_call - *os << be_uidt_nl; - *os << ");\n"; - - // do any post processing for the retval - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_POST_DOCALL_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for return type post do_static_call failed\n"), - -1); - } - - // do any post processing for the arguments - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_POST_DOCALL_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for args in post do_static_call failed\n"), - -1); - } - - } // end of if (!native) - - os->decr_indent (); - *os << "} // end of if (istub)\n"; - // return the appropriate return value - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_RETURN_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for return var failed\n"), - -1); - } - os->decr_indent (); - *os << "}\n\n"; - return 0; -} - -int -be_visitor_operation_cs::visit_argument (be_argument *node) -{ - // this method is used to generate the ParamData table entry - - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; // argument type - - // retrieve the type for this argument - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - os->indent (); - *os << "{" << bt->tc_name () << ", "; - switch (node->direction ()) - { - case AST_Argument::dir_IN: - *os << "PARAM_IN, "; - break; - case AST_Argument::dir_INOUT: - *os << "PARAM_INOUT, "; - break; - case AST_Argument::dir_OUT: - *os << "PARAM_OUT, "; - break; - } - *os << "0}"; - - return 0; -} - -// ************************************************************ -// Operation visitor for server header -// ************************************************************ - -be_visitor_operation_sh::be_visitor_operation_sh (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_operation_sh::~be_visitor_operation_sh (void) -{ -} - -int -be_visitor_operation_sh::visit_operation (be_operation *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; // type node representing the return type - - os = this->ctx_->stream (); - this->ctx_->node (node); // save the node - - os->indent (); // start with the current indentation level - - // every operation is declared virtual in the client code - *os << "virtual "; - - // STEP I: generate the return type - bt = be_type::narrow_from_decl (node->return_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_sh::" - "visit_operation - " - "Bad return type\n"), - -1); - } - - // grab the right visitor to generate the return type - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_OPERATION_RETTYPE_OTHERS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_sh::" - "visit_operation - " - "Bad visitor to return type\n"), - -1); - } - - if (bt->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_sh::" - "visit_operation - " - "codegen for return type failed\n"), - -1); - } - delete visitor; - - // STEP 2: generate the operation name - *os << " " << node->local_name (); - - // STEP 3: generate the argument list with the appropriate mapping. For these - // we grab a visitor that generates the parameter listing - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARGLIST_SH); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_sh::" - "visit_operation - " - "Bad visitor to return type\n"), - -1); - } - - if (node->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_sh::" - "visit_operation - " - "codegen for argument list failed\n"), - -1); - } - delete visitor; - - // generate the corresponding static skeleton method for this operation only - // if there was no "native" type - if (!node->has_native ()) - { - os->indent (); - *os << "static void "; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->local_name () << - "_skel (" << be_idt << be_idt_nl - << "CORBA::ServerRequest &_tao_req, " << be_nl - << "void *_tao_obj, " << be_nl - << "void *_tao_context, " << be_nl - << "CORBA::Environment &_tao_env" - << be_uidt_nl << be_uidt << ");\n\n"; - } - - return 0; -} - -// ************************************************************ -// Operation visitor for server skeletons -// ************************************************************ - -be_visitor_operation_ss::be_visitor_operation_ss (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_operation_ss::~be_visitor_operation_ss (void) -{ -} - -// processing to be done after every element in the scope is processed -int -be_visitor_operation_ss::post_process () -{ - // all we do here is to insert a comma and a newline - TAO_OutStream *os = this->ctx_->stream (); - *os << ",\n"; - return 0; -} - -int -be_visitor_operation_ss::visit_operation (be_operation *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; // type node for return type - - os = this->ctx_->stream (); // grab the o/p stream - this->ctx_->node (node); // save the node for future use - - os->indent (); // start with the current indentation level - - // if there is an argument of type "native", return immediately - if (node->has_native ()) - return 0; - - // retrieve the operation return type - bt = be_type::narrow_from_decl (node->return_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "Bad return type\n"), - -1); - } - - // We need the interface node in which this operation was defined. However, - // if this operation node was an attribute node in disguise, we get this - // information from the context - be_interface *intf; - intf = this->ctx_->attribute () - ? be_interface::narrow_from_scope (this->ctx_->attribute ()->defined_in ()) - : be_interface::narrow_from_scope (node->defined_in ()); - - if (!intf) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "bad interface scope\n"), - -1); - } - - // generate the signature of the static skeleton - os->indent (); - *os << "void " << intf->full_skel_name () << "::"; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->local_name () - << "_skel (" << be_idt << be_idt_nl - << "CORBA::ServerRequest &_tao_server_request, " << be_nl - << "void *_tao_object_reference, " << be_nl - << "void * /* context */, " << be_nl - << "CORBA::Environment &_tao_environment" << be_uidt << be_uidt_nl - << ")" << be_nl; - - // generate the actual code for the skeleton. However, if any of the argument - // types is "native", we do not generate any skeleton - // last argument - is always CORBA::Environment - *os << "{" << be_idt_nl; - - // generate the param_data and call_data tables. We generate these if and - // only if none of our arguments is of "native" type. Native types cannot be - // marshaled. - // native type does not exist. Generate the static tables - - // generate the TAO_Param_Data_Skel table - *os << "static const TAO_Param_Data_Skel "; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->flatname () << - "_paramdata [] = " << be_nl; - *os << "{\n"; - os->incr_indent (); - - // entry for the return type - *os << "{" << bt->tc_name () << ", 0, 0}"; - if (node->nmembers () > 0) - *os << ",\n"; - - // generate entries for the param data table for arguments - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "visit scope failed\n"), - -1); - } - *os << "\n"; - os->decr_indent (); - *os << "}; // " << node->flatname () << "_paramdata\n\n"; - - // now generate the calldata table - os->indent (); - *os << "static const TAO_Call_Data_Skel "; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->flatname () - << "_calldata = " << be_nl - << "{" - << "\""; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->local_name () << "\", "; - - // are we oneway or two operation? - if (node->flags () == AST_Operation::OP_oneway) - { - *os << "0, "; // for false - } - else - { - *os << "1, "; // for true - } - // insert the size of the paramdata table i.e., number of arguments + 1 - // for return type - *os << (node->argument_count () + 1) << ", "; - - // insert the address of the paramdata table - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->flatname () << "_paramdata};\n\n"; - - os->indent (); - // declare an environment variable for user raised exceptions - *os << "CORBA::Environment _tao_skel_environment;" << be_nl; - // get the right object implementation. - *os << intf->full_skel_name () << " *_tao_impl = (" - << intf->full_skel_name () << " *)_tao_object_reference;\n"; - - // declare a return type variable - be_visitor_context ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_SS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for return var decl failed\n"), - -1); - } - - // declare variables for arguments - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_DECL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for return var decl failed\n"), - -1); - } - - - // setup parameters for demarshaling and demarshal them - os->indent (); - *os << "_tao_server_request.demarshal (" << be_idt_nl - << "_tao_environment, " << be_nl - << "&"; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->flatname () << "_calldata,\n"; - - // pass the appropriate return value to the demarshal operation - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_DEMARSHAL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "codegen for return var in demarshal failed\n"), - -1); - } - // insert a comma after the return val if there are arguments - if (node->argument_count () > 0) - *os << ",\n"; - - // pass each argument to the demarshal operation - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_DEMARSHAL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for argument in demarshal failed\n"), - -1); - } - - // end the demarshal call - *os << be_uidt_nl; - *os << ");\n"; - - // check for exception - os->indent (); - *os << "if (_tao_environment.exception ()) return;\n"; - - // do pre upcall processing if any - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_PRE_UPCALL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "codegen for making upcall failed\n"), - -1); - } - // make the upcall and assign to the return val - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_ASSIGN_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "codegen for retval assignment failed\n"), - -1); - } - - // make the upcall - *os << "_tao_impl->" << node->local_name () << " (" << be_idt << "\n"; - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_UPCALL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "codegen for making upcall failed\n"), - -1); - } - // last argument is the environment - if (node->argument_count () > 0) - *os << ",\n"; - os->indent (); - *os << "_tao_skel_environment"; - // end the upcall - *os << be_uidt_nl; - *os << ");\n"; - - // do any post processing for the arguments - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_POST_UPCALL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "codegen for args in post upcall failed\n"), - -1); - } - - // check if we are oneway in which case, we are done - if (node->flags () == AST_Operation::OP_oneway) - { - // we are done. Nothing else to do, except closing the function body. - os->decr_indent (); - *os << "}\n\n"; - return 0; - } - - // setup parameters for marshaling and marshal them into the - // outgoing stream - os->indent (); - *os << "_tao_server_request.marshal (" << be_idt_nl - << "_tao_environment, " << be_nl - << "_tao_skel_environment, " << be_nl - << "&"; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->flatname () << "_calldata,\n"; - - // pass the appropriate return value to the marshal operation - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_MARSHAL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "codegen for return var in marshal failed\n"), - -1); - } - // insert a comma after the return val if there are arguments - if (node->argument_count () > 0) - { - *os << ",\n"; - } - - // pass each argument to the marshal operation - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_MARSHAL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for argument in marshal failed\n"), - -1); - } - // end the marshal call - *os << be_uidt_nl; - *os << ");\n"; - - // do any post processing for the retval - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_POST_UPCALL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "codegen for return type post upcall failed\n"), - -1); - } - - // do any post processing for the arguments - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_POST_MARSHAL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "codegen for args in post marshal failed\n"), - -1); - } - - os->decr_indent (); - *os << "}\n\n"; - return 0; -} - -int -be_visitor_operation_ss::visit_argument (be_argument *node) -{ - // this method is used to generate the ParamData table entry - - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; // argument type - - // retrieve the type for this argument - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - os->indent (); - *os << "{" << bt->tc_name () << ", "; - switch (node->direction ()) - { - case AST_Argument::dir_IN: - *os << "CORBA::ARG_IN, "; - break; - case AST_Argument::dir_INOUT: - *os << "CORBA::ARG_INOUT, "; - break; - case AST_Argument::dir_OUT: - *os << "CORBA::ARG_OUT, "; - break; - } - *os << "0}"; - - return 0; -} - -// ************************************************************************* -// be_visitor_operation_collocated_sh -- -// This visitor generates code for the collocated operation signature in a -// server header file -// ************************************************************************* - -be_visitor_operation_collocated_sh::be_visitor_operation_collocated_sh -(be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_operation_collocated_sh::~be_visitor_operation_collocated_sh (void) -{ -} - -int be_visitor_operation_collocated_sh::visit_operation (be_operation *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; // type node representing the return type - - os = this->ctx_->stream (); - this->ctx_->node (node); // save the node - - os->indent (); // start with the current indentation level - - // every operation is declared virtual in the client code - *os << "virtual "; - - // STEP I: generate the return type - bt = be_type::narrow_from_decl (node->return_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_sh::" - "visit_operation - " - "Bad return type\n"), - -1); - } - - // grab the right visitor to generate the return type - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_OPERATION_RETTYPE_OTHERS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_sh::" - "visit_operation - " - "Bad visitor to return type\n"), - -1); - } - - if (bt->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_sh::" - "visit_operation - " - "codegen for return type failed\n"), - -1); - } - delete visitor; - - // STEP 2: generate the operation name - *os << " " << node->local_name (); - - // STEP 3: generate the argument list with the appropriate mapping. For these - // we grab a visitor that generates the parameter listing - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARGLIST_COLLOCATED_SH); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_sh::" - "visit_operation - " - "Bad visitor to return type\n"), - -1); - } - - if (node->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_sh::" - "visit_operation - " - "codegen for argument list failed\n"), - -1); - } - delete visitor; - - return 0; -} - -// ************************************************************************* -// be_visitor_operation_collocated_ss -- -// This visitor generates code for the collocated operation signature in a -// server skeletons file -// ************************************************************************* - -be_visitor_operation_collocated_ss::be_visitor_operation_collocated_ss -(be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_operation_collocated_ss::~be_visitor_operation_collocated_ss (void) -{ -} - -int be_visitor_operation_collocated_ss::visit_operation (be_operation *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - // We need the interface node in which this operation was defined. However, - // if this operation node was an attribute node in disguise, we get this - // information from the context - be_interface *intf; - intf = this->ctx_->attribute () - ? be_interface::narrow_from_scope (this->ctx_->attribute ()->defined_in ()) - : be_interface::narrow_from_scope (node->defined_in ()); - - if (!intf) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_collocated_ss::" - "visit_operation - " - "bad interface scope\n"), - -1); - } - - // retrieve the operation return type - be_type *bt = be_type::narrow_from_decl (node->return_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_collocated_ss::" - "visit_operation - " - "Bad return type\n"), - -1); - } - - // STEP 2: generate the return type mapping (same as in the header file) - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_OPERATION_RETTYPE_OTHERS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_collocated_ss::" - "visit_operation - " - "Bad visitor for return type\n"), - -1); - } - - if (bt->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_collocated_ss::" - "visit_operation - " - "codegen for return type failed\n"), - -1); - } - delete visitor; - - *os << " " << intf->full_coll_name () << "::" - << node->local_name () << " "; - - // STEP 4: generate the argument list with the appropriate mapping (same as - // in the header file) - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARGLIST_OTHERS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_cs::" - "visit_operation - " - "Bad visitor to return type\n"), - -1); - } - - if (node->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for argument list failed\n"), - -1); - } - delete visitor; - - *os << "{" << be_idt << "\n"; - - os->indent (); - if (bt->node_type () != AST_Decl::NT_pre_defined - || be_predefined_type::narrow_from_decl (bt)->pt () != AST_PredefinedType::PT_void) - { - *os << "return "; - } - - *os << "this->servant_->" << node->local_name () << " (" << be_idt << "\n"; - - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_COLLOCATED_ARG_UPCALL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "codegen for making upcall failed\n"), - -1); - } - // last argument is the environment - if (node->argument_count () > 0) - *os << ",\n"; - os->indent (); - *os << "_tao_environment"; - // end the upcall - *os << be_uidt_nl; - *os << ");" << be_uidt_nl; - *os << "}\n\n"; - - return 0; -} - -// **************************************************************************** -// Operation visitor for return types. This generates the mapping for a return -// type in an operation signature -// **************************************************************************** - -be_visitor_operation_rettype::be_visitor_operation_rettype (be_visitor_context - *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_rettype::~be_visitor_operation_rettype (void) -{ -} - -int -be_visitor_operation_rettype::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope (), "_slice") << " *"; - else - *os << bt->name () << "_slice *"; - return 0; -} - -int -be_visitor_operation_rettype::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()); - else - *os << bt->name (); - return 0; -} - -int -be_visitor_operation_rettype::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope (), "_ptr"); - else - *os << bt->name () << "_ptr"; - return 0; -} - -int -be_visitor_operation_rettype::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope (), "_ptr"); - else - *os << bt->name () << "_ptr"; - return 0; -} - -int -be_visitor_operation_rettype::visit_native (be_native *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()) << " *"; - else - *os << bt->name () << " *"; - return 0; -} - -int -be_visitor_operation_rettype::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - switch (node->pt ()) - { - case AST_PredefinedType::PT_pseudo: - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope (), "_ptr"); - else - *os << bt->name () << "_ptr"; - break; - case AST_PredefinedType::PT_any: - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()) << " *"; - else - *os << bt->name () << " *"; - break; - default: - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()); - else - *os << bt->name (); - break; - } - return 0; -} - -int -be_visitor_operation_rettype::visit_sequence (be_sequence *node) -{ - // we should never directly be here because anonymous sequence return types - // are not allowed - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()) << " *"; - else - *os << bt->name () << " *"; - return 0; -} - -int -be_visitor_operation_rettype::visit_string (be_string * /* node*/) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - *os << "char *"; - return 0; -} - -int -be_visitor_operation_rettype::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()); - else - *os << bt->name (); - - // based on whether we are variable or not, we return a pointer or the - // aggregate type - if (node->size_type () == be_decl::VARIABLE) - *os << " *"; - return 0; -} - -int -be_visitor_operation_rettype::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_rettype::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_operation_rettype::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()); - else - *os << bt->name (); - - // based on whether we are variable or not, we return a pointer or the - // aggregate type - if (node->size_type () == be_decl::VARIABLE) - *os << " *"; - return 0; -} - -// ************************************************************ -// operation visitor to generate the argument list. -// We have separated code generation for this from the 4 main -// visitors to avoid code duplication and tight coupling -// ************************************************************ - -be_visitor_operation_arglist::be_visitor_operation_arglist (be_visitor_context - *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_operation_arglist::~be_visitor_operation_arglist (void) -{ -} - -int -be_visitor_operation_arglist::visit_operation (be_operation *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - os->incr_indent (0); // these are for pretty printing - os->incr_indent (0); - *os << " (\n"; - - // all we do is hand over code generation to our scope - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_arglist::" - "visit_operation - " - "codegen for scope failed\n"), - -1); - } - - // last argument - is always CORBA::Environment - os->indent (); - *os << "CORBA::Environment &_tao_environment\n"; - os->decr_indent (); - *os << " )"; - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_OPERATION_ARGLIST_CH: - case TAO_CodeGen::TAO_OPERATION_ARGLIST_COLLOCATED_SH: - *os << ";\n"; - break; - case TAO_CodeGen::TAO_OPERATION_ARGLIST_SH: - // each method is pure virtual in the server header - *os << " = 0;\n"; - break; - default: - *os << "\n"; - } - - os->decr_indent (0); - return 0; -} - -int -be_visitor_operation_arglist::visit_argument (be_argument *node) -{ - // get the visitor that will dump the argument's mapping in the operation - // signature. - be_visitor_context ctx (*this->ctx_); - - // first grab the interface definition inside which this operation is - // defined. We need this since argument types may very well be declared - // inside the scope of the interface node. In such cases, we would like to - // generate the appropriate relative scoped names. - be_operation *op = this->ctx_->be_scope_as_operation (); - if (!op) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_arglist::" - "visit_argument - " - "Bad operation\n"), - -1); - } - - // We need the interface node in which this operation was defined. However, - // if this operation node was an attribute node in disguise, we get this - // information from the context - be_interface *intf; - intf = this->ctx_->attribute () - ? be_interface::narrow_from_scope (this->ctx_->attribute ()->defined_in ()) - : be_interface::narrow_from_scope (op->defined_in ()); - - if (!intf) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_arglist::" - "visit_argument - " - "Bad interface\n"), - -1); - } - ctx.scope (intf); // set new scope - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_OPERATION_ARGLIST_CH: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_ARGLIST_CH); - break; - case TAO_CodeGen::TAO_OPERATION_ARGLIST_OTHERS: - case TAO_CodeGen::TAO_OPERATION_ARGLIST_SH: - case TAO_CodeGen::TAO_OPERATION_ARGLIST_COLLOCATED_SH: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_ARGLIST_OTHERS); - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_arglist::" - "visit_argument - " - "Bad context\n"), - -1); - } - } - - // grab a visitor - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_arglist::" - "visit_argument - " - "Bad visitor\n"), - -1); - } - if (node->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_arglist::" - - "visit_argument - " - "codegen for arglist failed\n"), - -1); - } - delete visitor; - return 0; -} - -// ************************************************************ -// be_visitor_operation_rettype_vardecl_cs -// This visitor generates code for variable declaration and initialization -// of the return type. -// ************************************************************ - -be_visitor_operation_rettype_vardecl_cs:: -be_visitor_operation_rettype_vardecl_cs (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_rettype_vardecl_cs:: -~be_visitor_operation_rettype_vardecl_cs (void) -{ -} - -int -be_visitor_operation_rettype_vardecl_cs::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << bt->name () << "_slice *_tao_retval = 0;\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_cs::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << bt->name () << " _tao_retval = (" << bt->name () << ")0;\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_cs::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << bt->name () << "_ptr _tao_retval = " << bt->name () << "::_nil ();\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_cs::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << bt->name () << "_ptr _tao_retval = " << bt->name () << "::_nil ();\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_cs::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - switch (node->pt ()) - { - case AST_PredefinedType::PT_pseudo: - os->indent (); - *os << bt->name () << "_ptr _tao_retval = 0;\n"; - break; - case AST_PredefinedType::PT_any: - os->indent (); - *os << bt->name () << " *_tao_retval = 0;\n"; - break; - case AST_PredefinedType::PT_void: - break; - default: - os->indent (); - *os << bt->name () << " _tao_retval = 0;\n"; - break; - } - return 0; -} - -int -be_visitor_operation_rettype_vardecl_cs::visit_sequence (be_sequence *node) -{ - // we should never directly be here because anonymous sequence return types - // are not allowed - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << bt->name () << " *_tao_retval = 0;\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_cs::visit_string (be_string * /* node*/) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "char *_tao_retval = 0;\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_cs::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - // based on whether we are variable or not, we return a pointer or the - // aggregate type - if (node->size_type () == be_decl::VARIABLE) - *os << bt->name () << " *_tao_retval = 0;\n"; - else - { - *os << bt->name () << " _tao_retval;" << be_nl; - *os << "ACE_OS::memset (&_tao_retval, 0, sizeof (" << bt->name () << "));\n"; - } - return 0; -} - -int -be_visitor_operation_rettype_vardecl_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_rettype_vardecl_cs::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_operation_rettype_vardecl_cs::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - // based on whether we are variable or not, we return a pointer or the - // aggregate type - if (node->size_type () == be_decl::VARIABLE) - *os << bt->name () << " *_tao_retval = 0;\n"; - else - { - *os << bt->name () << " _tao_retval;" << be_nl; - *os << "ACE_OS::memset (&_tao_retval, 0, sizeof (" << bt->name () << "));\n"; - } - return 0; -} - -// ***************************************************************************** -// be_visitor_operation_rettype_pre_docall_cs -// -// This visitor generates code that passes the return type variable to the -// do_static_call method -// ***************************************************************************** - -be_visitor_operation_rettype_pre_docall_cs:: -be_visitor_operation_rettype_pre_docall_cs (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_rettype_pre_docall_cs:: -~be_visitor_operation_rettype_pre_docall_cs (void) -{ -} - -int -be_visitor_operation_rettype_pre_docall_cs::visit_array (be_array *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval"; - return 0; -} - -int -be_visitor_operation_rettype_pre_docall_cs::visit_interface (be_interface *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "CORBA::Object_ptr _tao_base_retval = CORBA::Object::_nil ();\n"; - return 0; -} - -int -be_visitor_operation_rettype_pre_docall_cs::visit_interface_fwd (be_interface_fwd *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "CORBA::Object_ptr _tao_base_retval = CORBA::Object::_nil ();\n"; - return 0; -} - -int -be_visitor_operation_rettype_pre_docall_cs:: -visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - switch (node->pt ()) - { - case AST_PredefinedType::PT_any: - os->indent (); - *os << "ACE_NEW_RETURN (_tao_retval, CORBA::Any, _tao_retval);\n"; - break; - default: - break; - } - return 0; -} - -int -be_visitor_operation_rettype_pre_docall_cs::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "ACE_NEW_RETURN (_tao_retval, " << node->name () << ", _tao_retval);\n"; - return 0; -} - -int -be_visitor_operation_rettype_pre_docall_cs::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - // check if the union is variable - if (node->size_type () == be_type::VARIABLE) - { - os->indent (); - *os << "ACE_NEW_RETURN (_tao_retval, " << node->name () << ", _tao_retval);\n"; - } - return 0; -} - -int -be_visitor_operation_rettype_pre_docall_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_rettype_pre_docall_cs::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_operation_rettype_pre_docall_cs::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - // check if the union is variable - if (node->size_type () == be_type::VARIABLE) - { - os->indent (); - *os << "ACE_NEW_RETURN (_tao_retval, " << node->name () << ", _tao_retval);\n"; - } - return 0; -} - -// ***************************************************************************** -// be_visitor_operation_rettype_docall_cs -// -// This visitor generates code that passes the return type variable to the -// do_static_call method -// ***************************************************************************** - -be_visitor_operation_rettype_docall_cs::be_visitor_operation_rettype_docall_cs -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_rettype_docall_cs:: -~be_visitor_operation_rettype_docall_cs (void) -{ -} - -int -be_visitor_operation_rettype_docall_cs::visit_array (be_array *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval"; - return 0; -} - -int -be_visitor_operation_rettype_docall_cs::visit_enum (be_enum *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "&_tao_retval"; - return 0; -} - -int -be_visitor_operation_rettype_docall_cs::visit_interface (be_interface *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "&_tao_base_retval"; - return 0; -} - -int -be_visitor_operation_rettype_docall_cs::visit_interface_fwd (be_interface_fwd *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "&_tao_base_retval"; - return 0; -} - -int -be_visitor_operation_rettype_docall_cs::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - switch (node->pt ()) - { - case AST_PredefinedType::PT_void: - *os << "0"; - break; - case AST_PredefinedType::PT_any: - *os << "_tao_retval"; - break; - default: - *os << "&_tao_retval"; - break; - } - return 0; -} - -int -be_visitor_operation_rettype_docall_cs::visit_sequence (be_sequence *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval"; - return 0; -} - -int -be_visitor_operation_rettype_docall_cs::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "&_tao_retval"; - return 0; -} - -int -be_visitor_operation_rettype_docall_cs::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - // check if the struct is variable - if (node->size_type () == be_type::VARIABLE) - *os << "_tao_retval"; - else - *os << "&_tao_retval"; - return 0; -} - -int -be_visitor_operation_rettype_docall_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_rettype_docall_cs::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_operation_rettype_docall_cs::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - // check if the union is variable - if (node->size_type () == be_type::VARIABLE) - *os << "_tao_retval"; - else - *os << "&_tao_retval"; - return 0; -} - -// ******************************************************************************* -// be_visitor_operation_rettype_post_docall_cs -// -// This visitor generates code that passes the return type variable to the -// do_static_call method -// ******************************************************************************** - -be_visitor_operation_rettype_post_docall_cs:: -be_visitor_operation_rettype_post_docall_cs (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_rettype_post_docall_cs:: -~be_visitor_operation_rettype_post_docall_cs (void) -{ -} - -int -be_visitor_operation_rettype_post_docall_cs::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval = " << node->name () - << "::_narrow (_tao_base_retval, _tao_environment);" << be_nl; - *os << "CORBA::release (_tao_base_retval);\n"; - return 0; -} - -int -be_visitor_operation_rettype_post_docall_cs:: -visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval = " << node->name () - << "::_narrow (_tao_base_retval, _tao_environment);" << be_nl; - *os << "CORBA::release (_tao_base_retval);\n"; - return 0; -} - -// ************************************************************ -// be_visitor_operation_rettype_return_cs -// -// code to generate the return statement of the stub. -// ************************************************************ - -be_visitor_operation_rettype_return_cs::be_visitor_operation_rettype_return_cs -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_rettype_return_cs::~be_visitor_operation_rettype_return_cs (void) -{ -} - -int -be_visitor_operation_rettype_return_cs::visit_array (be_array *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "return _tao_retval;\n"; - return 0; -} - -int -be_visitor_operation_rettype_return_cs::visit_enum (be_enum *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "return _tao_retval;\n"; - return 0; -} - -int -be_visitor_operation_rettype_return_cs::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - // we must narrow it - *os << "return _tao_retval;\n"; - return 0; -} - -int -be_visitor_operation_rettype_return_cs::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - // we must narrow it - *os << "return _tao_retval;\n"; - return 0; -} - -int -be_visitor_operation_rettype_return_cs::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - switch (node->pt ()) - { - case AST_PredefinedType::PT_void: - *os << "return;\n"; - break; - default: - *os << "return _tao_retval;\n"; - break; - } - return 0; -} - -int -be_visitor_operation_rettype_return_cs::visit_sequence (be_sequence *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "return _tao_retval;\n"; - return 0; -} - -int -be_visitor_operation_rettype_return_cs::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "return _tao_retval;\n"; - return 0; -} - -int -be_visitor_operation_rettype_return_cs::visit_structure (be_structure *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "return _tao_retval;\n"; - return 0; -} - -int -be_visitor_operation_rettype_return_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_rettype_return_cs::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_operation_rettype_return_cs::visit_union (be_union *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "return _tao_retval;\n"; - return 0; -} - -// ******************************************************************************** -// be_visitor_operation_rettype_vardecl_ss -// This visitor generates code for variable declaration and initialization -// of the return type. -// ******************************************************************************** - -be_visitor_operation_rettype_vardecl_ss::be_visitor_operation_rettype_vardecl_ss -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_rettype_vardecl_ss:: -~be_visitor_operation_rettype_vardecl_ss (void) -{ -} - -int -be_visitor_operation_rettype_vardecl_ss::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << bt->name () << "_var _tao_retval;\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_ss::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << bt->name () << " _tao_retval;\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_ss::visit_interface (be_interface *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - // due to the virtual inheritance and the fact that we will be passing the - // address of the objref to the marshaling routine, we use the base - // CORBA::Object_ptr as the type for the return value even though the actual - // return type may be some derived class - *os << "CORBA::Object_var _tao_retval = CORBA::Object::_nil ();" << be_nl; - *os << "CORBA::Object_ptr &_tao_ptr_retval = _tao_retval.out ();\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_ss:: -visit_interface_fwd (be_interface_fwd *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - // due to the virtual inheritance and the fact that we will be passing the - // address of the objref to the marshaling routine, we use the base - // CORBA::Object_ptr as the type for the return value even though the actual - // return type may be some derived class - *os << "CORBA::Object_var _tao_retval = CORBA::Object::_nil ();" << be_nl; - *os << "CORBA::Object_ptr &_tao_ptr_retval = _tao_retval.out ();\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_ss:: -visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - switch (node->pt ()) - { - case AST_PredefinedType::PT_pseudo: - os->indent (); - *os << bt->name () << "_var _tao_retval;" << be_nl; - *os << bt->name () << "_ptr &_tao_ptr_retval = _tao_retval.out ();\n"; - break; - case AST_PredefinedType::PT_any: - os->indent (); - *os << bt->name () << "_var _tao_retval;" << be_nl; - *os << bt->name () << "_ptr &_tao_ptr_retval = _tao_retval.out ();\n"; - break; - case AST_PredefinedType::PT_void: - break; - default: - os->indent (); - *os << bt->name () << " _tao_retval = 0;\n"; - break; - } - return 0; -} - -int -be_visitor_operation_rettype_vardecl_ss::visit_sequence (be_sequence *node) -{ - // we should never directly be here because anonymous sequence return types - // are not allowed - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << bt->name () << "_var _tao_retval;" << be_nl; - *os << bt->name () << " *&_tao_ptr_retval = _tao_retval.out ();\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_ss::visit_string (be_string * /* node*/) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "CORBA::String_var _tao_retval;" << be_nl; - *os << "char *&_tao_ptr_retval = _tao_retval.out ();\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_ss::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - // based on whether we are variable or not, we return a pointer or the - // aggregate type - if (node->size_type () == be_decl::VARIABLE) - { - *os << bt->name () << "_var _tao_retval;" << be_nl; - *os << bt->name () << " *&_tao_ptr_retval = _tao_retval.out ();\n"; - } - else - *os << bt->name () << " _tao_retval;\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_ss::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_rettype_vardecl_ss::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_operation_rettype_vardecl_ss::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - // based on whether we are variable or not, we return a pointer or the - // aggregate type - if (node->size_type () == be_decl::VARIABLE) - { - *os << bt->name () << "_var _tao_retval;" << be_nl; - *os << bt->name () << " *&_tao_ptr_retval = _tao_retval.out ();\n"; - } - else - *os << bt->name () << " _tao_retval;\n"; - return 0; -} - -// **************************************************************************** -// Visitor that passes the return value to the marshal/demarshal routine -// **************************************************************************** - -be_visitor_operation_rettype_marshal_ss:: -be_visitor_operation_rettype_marshal_ss (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_rettype_marshal_ss:: -~be_visitor_operation_rettype_marshal_ss (void) -{ -} - -int -be_visitor_operation_rettype_marshal_ss::visit_array (be_array *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_ptr_retval"; - return 0; -} - -int -be_visitor_operation_rettype_marshal_ss::visit_enum (be_enum *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "&_tao_retval"; - - return 0; -} - -int -be_visitor_operation_rettype_marshal_ss::visit_interface (be_interface *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "&_tao_ptr_retval"; - - return 0; -} - -int -be_visitor_operation_rettype_marshal_ss:: -visit_interface_fwd (be_interface_fwd *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "&_tao_ptr_retval"; - - return 0; -} - -int -be_visitor_operation_rettype_marshal_ss:: -visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - switch (node->pt ()) - { - case AST_PredefinedType::PT_void: - os->indent (); - *os << "0"; - break; - case AST_PredefinedType::PT_pseudo: - os->indent (); - *os << "&_tao_ptr_retval"; - break; - case AST_PredefinedType::PT_any: - os->indent (); - *os << "_tao_ptr_retval"; - break; - default: - os->indent (); - *os << "&_tao_retval"; - break; - } - return 0; -} - -int -be_visitor_operation_rettype_marshal_ss::visit_sequence (be_sequence *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_ptr_retval"; - - return 0; -} - -int -be_visitor_operation_rettype_marshal_ss::visit_string (be_string * /* node*/) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "&_tao_ptr_retval"; - - return 0; -} - -int -be_visitor_operation_rettype_marshal_ss::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - if (node->size_type () == be_type::VARIABLE) - *os << "_tao_ptr_retval"; - else - *os << "&_tao_retval"; - - return 0; -} - -int -be_visitor_operation_rettype_marshal_ss::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_rettype_marshal_ss::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_operation_rettype_marshal_ss::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - if (node->size_type () == be_type::VARIABLE) - *os << "_tao_ptr_retval"; - else - *os << "&_tao_retval"; - - return 0; -} - -// **************************************************************************** -// visitor for assignment to a return value variable from the upcall -// **************************************************************************** - -be_visitor_operation_rettype_assign_ss:: -be_visitor_operation_rettype_assign_ss (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_rettype_assign_ss:: -~be_visitor_operation_rettype_assign_ss (void) -{ -} - -int -be_visitor_operation_rettype_assign_ss::visit_array (be_array *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval = "; - return 0; -} - -int -be_visitor_operation_rettype_assign_ss::visit_enum (be_enum *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval = "; - - return 0; -} - -int -be_visitor_operation_rettype_assign_ss::visit_interface (be_interface *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval = "; - - return 0; -} - -int -be_visitor_operation_rettype_assign_ss:: -visit_interface_fwd (be_interface_fwd *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval = "; - - return 0; -} - -int -be_visitor_operation_rettype_assign_ss:: -visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - switch (node->pt ()) - { - case AST_PredefinedType::PT_void: - break; - case AST_PredefinedType::PT_pseudo: - case AST_PredefinedType::PT_any: - default: - *os << "_tao_retval = "; - break; - } - return 0; -} - -int -be_visitor_operation_rettype_assign_ss::visit_sequence (be_sequence *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval = "; - - return 0; -} - -int -be_visitor_operation_rettype_assign_ss::visit_string (be_string * /* node*/) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval = "; - - return 0; -} - -int -be_visitor_operation_rettype_assign_ss::visit_structure (be_structure *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval = "; - - return 0; -} - -int -be_visitor_operation_rettype_assign_ss::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_rettype_assign_ss::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_operation_rettype_assign_ss::visit_union (be_union *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval = "; - - return 0; -} - -// **************************************************************************** -// visitor to do any post processing for return type after an upcall -// **************************************************************************** - -be_visitor_operation_rettype_post_upcall_ss::be_visitor_operation_rettype_post_upcall_ss (be_visitor_context - *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_rettype_post_upcall_ss::~be_visitor_operation_rettype_post_upcall_ss (void) -{ -} - -int -be_visitor_operation_rettype_post_upcall_ss::visit_array (be_array *) -{ - return 0; -} - -int -be_visitor_operation_rettype_post_upcall_ss::visit_enum (be_enum *node) -{ - return 0; -} - -int -be_visitor_operation_rettype_post_upcall_ss::visit_interface (be_interface *node) -{ - return 0; -} - -int -be_visitor_operation_rettype_post_upcall_ss::visit_interface_fwd (be_interface_fwd *node) -{ - return 0; -} - -int -be_visitor_operation_rettype_post_upcall_ss::visit_predefined_type (be_predefined_type *node) -{ - return 0; -} - -int -be_visitor_operation_rettype_post_upcall_ss::visit_sequence (be_sequence *node) -{ - return 0; -} - -int -be_visitor_operation_rettype_post_upcall_ss::visit_string (be_string * /* node*/) -{ - return 0; -} - -int -be_visitor_operation_rettype_post_upcall_ss::visit_structure (be_structure *node) -{ - return 0; -} - -int -be_visitor_operation_rettype_post_upcall_ss::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_rettype_post_upcall_ss::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_operation_rettype_post_upcall_ss::visit_union (be_union *node) -{ - return 0; -} - -// ************************************************************ -// generic operation visitor to handle the pre/post do_static_call/upcall stuff with -// arguments -// ************************************************************ - -be_visitor_operation_argument::be_visitor_operation_argument (be_visitor_context - *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_operation_argument::~be_visitor_operation_argument (void) -{ -} - -int -be_visitor_operation_argument::post_process (void) -{ - TAO_OutStream *os = this->ctx_->stream (); - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_OPERATION_ARG_DOCALL_CS: - case TAO_CodeGen::TAO_OPERATION_ARG_UPCALL_SS: - case TAO_CodeGen::TAO_OPERATION_COLLOCATED_ARG_UPCALL_SS: - case TAO_CodeGen::TAO_OPERATION_ARG_DEMARSHAL_SS: - case TAO_CodeGen::TAO_OPERATION_ARG_MARSHAL_SS: - *os << ",\n"; - break; - default: - break; - } - return 0; -} - -int -be_visitor_operation_argument::visit_operation (be_operation *node) -{ - // all we do is hand over code generation to our scope - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_argument::" - "visit_operation - " - "codegen for scope failed\n"), - -1); - } - - return 0; -} - -int -be_visitor_operation_argument::visit_argument (be_argument *node) -{ - // get the visitor that will dump the argument's mapping in the operation - // signature. - be_visitor_context ctx (*this->ctx_); - - // first grab the interface definition inside which this operation is - // defined. We need this since argument types may very well be declared - // inside the scope of the interface node. In such cases, we would like to - // generate the appropriate relative scoped names. - be_operation *op = this->ctx_->be_scope_as_operation (); - if (!op) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_arglist::" - "visit_argument - " - "Bad operation\n"), - -1); - } - - // We need the interface node in which this operation was defined. However, - // if this operation node was an attribute node in disguise, we get this - // information from the context - be_interface *intf; - intf = this->ctx_->attribute () - ? be_interface::narrow_from_scope (this->ctx_->attribute ()->defined_in ()) - : be_interface::narrow_from_scope (op->defined_in ()); - - if (!intf) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_arglist::" - "visit_argument - " - "Bad interface\n"), - -1); - } - ctx.scope (intf); // set new scope - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_OPERATION_ARG_PRE_DOCALL_CS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS); - break; - case TAO_CodeGen::TAO_OPERATION_ARG_DOCALL_CS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS); - break; - case TAO_CodeGen::TAO_OPERATION_ARG_POST_DOCALL_CS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS); - break; - case TAO_CodeGen::TAO_OPERATION_ARG_DECL_SS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS); - break; - case TAO_CodeGen::TAO_OPERATION_ARG_DEMARSHAL_SS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_DEMARSHAL_SS); - break; - case TAO_CodeGen::TAO_OPERATION_ARG_MARSHAL_SS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_MARSHAL_SS); - break; - case TAO_CodeGen::TAO_OPERATION_ARG_PRE_UPCALL_SS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS); - break; - case TAO_CodeGen::TAO_OPERATION_COLLOCATED_ARG_UPCALL_SS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_COLLOCATED_UPCALL_SS); - break; - case TAO_CodeGen::TAO_OPERATION_ARG_UPCALL_SS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS); - break; - case TAO_CodeGen::TAO_OPERATION_ARG_POST_UPCALL_SS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS); - break; - case TAO_CodeGen::TAO_OPERATION_ARG_POST_MARSHAL_SS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_POST_MARSHAL_SS); - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_argument::" - "visit_argument - " - "Bad context\n"), - -1); - } - } - - // grab a visitor - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_argument::" - "visit_argument - " - "Bad visitor\n"), - -1); - } - if (node->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_argument::" - - "visit_argument - " - "codegen for argument failed\n"), - -1); - } - delete visitor; - return 0; -} - - -// **************************************************************************** -// visitor to generate the exception list for operations -// **************************************************************************** - -be_visitor_operation_exceptlist_cs::be_visitor_operation_exceptlist_cs (be_visitor_context - *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_exceptlist_cs::~be_visitor_operation_exceptlist_cs (void) -{ -} - -int -be_visitor_operation_exceptlist_cs::visit_operation (be_operation *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - // don't do anything if the exception list is empty - if (node->exceptions ()) - { - os->indent (); -#if 0 - *os << "static CORBA::TypeCode_ptr " << "_tao_" << node->flatname () - << "_exceptlist [] = {" << be_idt_nl; -#endif - *os << "static TAO_Exception_Data " << "_tao_" << node->flatname () - << "_exceptiondata [] = " << be_nl; - *os << "{" << be_idt_nl; - // initialize an iterator to iterate thru the exception list - UTL_ExceptlistActiveIterator *ei; - ACE_NEW_RETURN (ei, - UTL_ExceptlistActiveIterator (node->exceptions ()), - -1); - // continue until each element is visited - while (!ei->is_done ()) - { - be_exception *excp = be_exception::narrow_from_decl (ei->item ()); - - if (excp == 0) - { - delete ei; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_exceptlist_cs" - "visit_operation - " - "codegen for scope failed\n"), -1); - - } - *os << "{"; - *os << excp->tc_name (); - *os << ", "; - *os << excp->name () << "::_alloc}"; - ei->next (); - if (!ei->is_done ()) - { - *os << ",\n"; - os->indent (); - } - // except the last one is processed? - - } // end of while loop - delete ei; - *os << be_uidt_nl << "};\n\n"; - } // end of if - return 0; -} - -// ************************************************************ -// Operation visitor for server header for TIE class operations -// ************************************************************ - -be_visitor_operation_tie_sh::be_visitor_operation_tie_sh (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_operation_tie_sh::~be_visitor_operation_tie_sh (void) -{ -} - -int -be_visitor_operation_tie_sh::visit_operation (be_operation *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; // type node representing the return type - - os = this->ctx_->stream (); - this->ctx_->node (node); // save the node - - os->indent (); // start with the current indentation level - - // STEP I: generate the return type - bt = be_type::narrow_from_decl (node->return_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_tie_sh::" - "visit_operation - " - "Bad return type\n"), - -1); - } - - // grab the right visitor to generate the return type - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_OPERATION_RETTYPE_OTHERS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_tie_sh::" - "visit_operation - " - "Bad visitor to return type\n"), - -1); - } - - if (bt->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_tie_sh::" - "visit_operation - " - "codegen for return type failed\n"), - -1); - } - delete visitor; - - // STEP 2: generate the operation name - *os << " " << node->local_name (); - - // STEP 3: generate the argument list with the appropriate mapping. For these - // we grab a visitor that generates the parameter listing - ctx = *this->ctx_; - // we use the _CH state here because the _SH state produces pure virtual - // methods. - ctx.state (TAO_CodeGen::TAO_OPERATION_ARGLIST_CH); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_tie_sh::" - "visit_operation - " - "Bad visitor to return type\n"), - -1); - } - - if (node->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_tie_sh::" - "visit_operation - " - "codegen for argument list failed\n"), - -1); - } - delete visitor; - return 0; -} - -// ************************************************************ -// Operation visitor for server inline for TIE class operations -// ************************************************************ - -be_visitor_operation_tie_si::be_visitor_operation_tie_si -(be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_operation_tie_si::~be_visitor_operation_tie_si (void) -{ -} - -int be_visitor_operation_tie_si::visit_operation (be_operation *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - // We need the interface node in which this operation was defined. However, - // if this operation node was an attribute node in disguise, we get this - // information from the context - be_interface *intf; - intf = this->ctx_->attribute () - ? be_interface::narrow_from_scope (this->ctx_->attribute ()->defined_in ()) - : be_interface::narrow_from_scope (node->defined_in ()); - - if (!intf) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_tie_si::" - "visit_operation - " - "bad interface scope\n"), - -1); - } - - // retrieve the operation return type - be_type *bt = be_type::narrow_from_decl (node->return_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_tie_si::" - "visit_operation - " - "Bad return type\n"), - -1); - } - - os->indent (); - *os << "template ACE_INLINE\n"; - - // generate the return type mapping (same as in the header file) - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_OPERATION_RETTYPE_OTHERS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_tie_si::" - "visit_operation - " - "Bad visitor for return type\n"), - -1); - } - - if (bt->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_tie_si::" - "visit_operation - " - "codegen for return type failed\n"), - -1); - } - delete visitor; - - *os << " " << intf->full_skel_name () << "_tie::" - << node->local_name () << " "; - - // STEP 4: generate the argument list with the appropriate mapping (same as - // in the header file) - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARGLIST_OTHERS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_cs::" - "visit_operation - " - "Bad visitor for argument list\n"), - -1); - } - - if (node->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for argument list failed\n"), - -1); - } - delete visitor; - - *os << "{" << be_idt << "\n"; - - os->indent (); - if (bt->node_type () != AST_Decl::NT_pre_defined - || be_predefined_type::narrow_from_decl (bt)->pt () != AST_PredefinedType::PT_void) - { - *os << "return "; - } - - *os << "this->ptr_->" << node->local_name () << " (" << be_idt << "\n"; - - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_UPCALL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "codegen for making upcall failed\n"), - -1); - } - // last argument is the environment - if (node->argument_count () > 0) - *os << ",\n"; - os->indent (); - *os << "_tao_environment"; - // end the upcall - *os << be_uidt_nl; - *os << ");" << be_uidt_nl; - *os << "}\n\n"; - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_root.cpp b/TAO/TAO_IDL/be/be_visitor_root.cpp deleted file mode 100644 index 980109c42ae..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_root.cpp +++ /dev/null @@ -1,980 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_root.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Root -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" -#include "be_visitor_root.h" - -// Generic Root visitor -be_visitor_root::be_visitor_root (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_root::~be_visitor_root (void) -{ -} - -// this method must be overridden by the derived root visitors -int -be_visitor_root::init (void) -{ - return -1; -} - -// visit the Root node and its scope -int be_visitor_root::visit_root (be_root *node) -{ - // open the appropriate output file based on what state we are in. The - // overridden "init" method of derived classes will do the job. - if (this->init () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::init - " - "failed to initialize context\n"), -1); - } - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::visit_root - " - "codegen for scope failed\n"), -1); - } - - // The last thing we need to do is make one more pass thru the entire tree - // and generate code for all the <<= and >>= operators for all the - // user-defined types. - // - // XXXASG - this part of the code may be conditionally generated because at - // times it is not necessary to have these operators at all. TO-DO. - be_visitor_context ctx (*this->ctx_); - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - ctx.state (TAO_CodeGen::TAO_ROOT_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_CS: - ctx.state (TAO_CodeGen::TAO_ROOT_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_ROOT_SH: - (void) tao_cg->end_server_header (); - (void) tao_cg->end_server_template_header (); - return 0; - break; - case TAO_CodeGen::TAO_ROOT_CI: - case TAO_CodeGen::TAO_ROOT_SI: - return 0; // nothing to be done - case TAO_CodeGen::TAO_ROOT_SS: - (void) tao_cg->end_server_template_skeletons (); - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_constant - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_root - " - "NUL visitor\n" - ), -1); - } - - // generate the <<= and >>= operators for all the user-defined data types in - // the outermost scope - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_root - " - "failed to generate Any operators\n" - ), -1); - } - delete visitor; - - // generate any final code such as #endifs - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - (void) tao_cg->end_client_header (); - break; - default: - break; - } - return 0; -} - -// =all common visit methods for root visitor - -// visit a constant -int -be_visitor_root::visit_constant (be_constant *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - ctx.state (TAO_CodeGen::TAO_CONSTANT_CH); - break; - case TAO_CodeGen::TAO_ROOT_CS: - ctx.state (TAO_CodeGen::TAO_CONSTANT_CS); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - case TAO_CodeGen::TAO_ROOT_ANY_OP_CS: - case TAO_CodeGen::TAO_ROOT_CI: - case TAO_CodeGen::TAO_ROOT_SH: - case TAO_CodeGen::TAO_ROOT_SI: - case TAO_CodeGen::TAO_ROOT_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_constant - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_constant - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_constant - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -//visit an enum -int -be_visitor_root::visit_enum (be_enum *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - ctx.state (TAO_CodeGen::TAO_ENUM_CH); - break; - case TAO_CodeGen::TAO_ROOT_CS: - ctx.state (TAO_CodeGen::TAO_ENUM_CS); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_ENUM_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_ENUM_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_ROOT_CI: - case TAO_CodeGen::TAO_ROOT_SH: - case TAO_CodeGen::TAO_ROOT_SI: - case TAO_CodeGen::TAO_ROOT_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_enum - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_enum - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_enum - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an exception -int -be_visitor_root::visit_exception (be_exception *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CH); - break; - case TAO_CodeGen::TAO_ROOT_CI: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CI); - break; - case TAO_CodeGen::TAO_ROOT_CS: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CS); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_ROOT_SH: - case TAO_CodeGen::TAO_ROOT_SI: - case TAO_CodeGen::TAO_ROOT_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_exception - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_exception - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_exception - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an interface -int -be_visitor_root::visit_interface (be_interface *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - ctx.state (TAO_CodeGen::TAO_INTERFACE_CH); - break; - case TAO_CodeGen::TAO_ROOT_CI: - ctx.state (TAO_CodeGen::TAO_INTERFACE_CI); - break; - case TAO_CodeGen::TAO_ROOT_CS: - ctx.state (TAO_CodeGen::TAO_INTERFACE_CS); - break; - case TAO_CodeGen::TAO_ROOT_SH: - ctx.state (TAO_CodeGen::TAO_INTERFACE_SH); - break; - case TAO_CodeGen::TAO_ROOT_SI: - ctx.state (TAO_CodeGen::TAO_INTERFACE_SI); - break; - case TAO_CodeGen::TAO_ROOT_SS: - ctx.state (TAO_CodeGen::TAO_INTERFACE_SS); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS); - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_interface - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_interface - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_interface - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an interface_fwd -int -be_visitor_root::visit_interface_fwd (be_interface_fwd *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - ctx.state (TAO_CodeGen::TAO_INTERFACE_FWD_CH); - break; - case TAO_CodeGen::TAO_ROOT_CI: - ctx.state (TAO_CodeGen::TAO_INTERFACE_FWD_CI); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - case TAO_CodeGen::TAO_ROOT_ANY_OP_CS: - case TAO_CodeGen::TAO_ROOT_CS: - case TAO_CodeGen::TAO_ROOT_SH: - case TAO_CodeGen::TAO_ROOT_SI: - case TAO_CodeGen::TAO_ROOT_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_interface_fwd - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_interface_fwd - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_interface_fwd - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an module -int -be_visitor_root::visit_module (be_module *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - ctx.state (TAO_CodeGen::TAO_MODULE_CH); - break; - case TAO_CodeGen::TAO_ROOT_CI: - ctx.state (TAO_CodeGen::TAO_MODULE_CI); - break; - case TAO_CodeGen::TAO_ROOT_CS: - ctx.state (TAO_CodeGen::TAO_MODULE_CS); - break; - case TAO_CodeGen::TAO_ROOT_SH: - ctx.state (TAO_CodeGen::TAO_MODULE_SH); - break; - case TAO_CodeGen::TAO_ROOT_SI: - ctx.state (TAO_CodeGen::TAO_MODULE_SI); - break; - case TAO_CodeGen::TAO_ROOT_SS: - ctx.state (TAO_CodeGen::TAO_MODULE_SS); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_MODULE_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_MODULE_ANY_OP_CS); - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_module - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_module - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_module - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an structure -int -be_visitor_root::visit_structure (be_structure *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_CH); - break; - case TAO_CodeGen::TAO_ROOT_CI: - ctx.state (TAO_CodeGen::TAO_STRUCT_CI); - break; - case TAO_CodeGen::TAO_ROOT_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_CS); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_ROOT_SH: - case TAO_CodeGen::TAO_ROOT_SI: - case TAO_CodeGen::TAO_ROOT_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_structure - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_structure - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_structure - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an union -int -be_visitor_root::visit_union (be_union *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - ctx.state (TAO_CodeGen::TAO_UNION_CH); - break; - case TAO_CodeGen::TAO_ROOT_CI: - ctx.state (TAO_CodeGen::TAO_UNION_CI); - break; - case TAO_CodeGen::TAO_ROOT_CS: - ctx.state (TAO_CodeGen::TAO_UNION_CS); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_UNION_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_UNION_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_ROOT_SH: - case TAO_CodeGen::TAO_ROOT_SI: - case TAO_CodeGen::TAO_ROOT_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_union - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_union - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_union - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an typedef -int -be_visitor_root::visit_typedef (be_typedef *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CH); - break; - case TAO_CodeGen::TAO_ROOT_CI: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CI); - break; - case TAO_CodeGen::TAO_ROOT_CS: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CS); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_ROOT_SH: - case TAO_CodeGen::TAO_ROOT_SI: - case TAO_CodeGen::TAO_ROOT_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_typedef - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_typedef - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_typedef - " - "failed to accept visitor" - ), -1); - } - delete visitor; - return 0; -} - -// ******************************** -// Root visitor for client header -// ******************************** - -be_visitor_root_ch::be_visitor_root_ch (be_visitor_context *ctx) - : be_visitor_root (ctx) -{ -} - -be_visitor_root_ch::~be_visitor_root_ch (void) -{ -} - -int -be_visitor_root_ch::init (void) -{ - // first open the client-side header file for writing - if (tao_cg->start_client_header (idl_global->be_get_client_hdr_fname ()) - == -1) - { - ACE_ERROR ((LM_ERROR, - "(%N:%l) be_visitor_root_ch::init - " - "Error opening client header file\n")); - return -1; - } - - // init the stream - this->ctx_->stream (tao_cg->client_header ()); - return 0; -} - -// ********************************* -// Root visitor for client inline -// ********************************* - -be_visitor_root_ci::be_visitor_root_ci (be_visitor_context *ctx) - : be_visitor_root (ctx) -{ -} - -be_visitor_root_ci::~be_visitor_root_ci (void) -{ -} - -int -be_visitor_root_ci::init (void) -{ - // first open the client-side inline file for writing - if (tao_cg->start_client_inline (idl_global->be_get_client_inline_fname ()) - == -1) - { - ACE_ERROR ((LM_ERROR, - "(%N:%l) be_visitor_root_ci - " - "Error opening client inline file\n")); - return -1; - } - - this->ctx_->stream (tao_cg->client_inline ()); - return 0; -} - -// *********************************** -// Root visitor for client stubs -// *********************************** - -be_visitor_root_cs::be_visitor_root_cs (be_visitor_context *ctx) - : be_visitor_root (ctx) -{ -} - -be_visitor_root_cs::~be_visitor_root_cs (void) -{ -} - -int -be_visitor_root_cs::init (void) -{ - // first open the file - if (tao_cg->start_client_stubs (idl_global->be_get_client_stub_fname ()) - == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root_cs - " - "Error opening client stub file\n"), -1); - } - - // init stream - this->ctx_->stream (tao_cg->client_stubs ()); - return 0; -} - -// *********************************** -// Root visitor for server header -// *********************************** - -be_visitor_root_sh::be_visitor_root_sh (be_visitor_context *ctx) - : be_visitor_root (ctx) -{ -} - -be_visitor_root_sh::~be_visitor_root_sh (void) -{ -} - -int -be_visitor_root_sh::init (void) -{ - // open the file - if (tao_cg->start_server_header (idl_global->be_get_server_hdr_fname ()) - == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root_sh::init - " - "Error opening server header file\n"), -1); - } - - if (tao_cg->start_server_template_header - (idl_global->be_get_server_template_hdr_fname ()) - == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root_sh::init - " - "Error opening server template header file\n"), - -1); - } - - // set the stream and the next state - this->ctx_->stream (tao_cg->server_header ()); - return 0; -} - -// *********************************************** -// Root visitor for server inline -// *********************************************** - -be_visitor_root_si::be_visitor_root_si (be_visitor_context *ctx) - : be_visitor_root (ctx) -{ -} - -be_visitor_root_si::~be_visitor_root_si (void) -{ -} - -int -be_visitor_root_si::init (void) -{ - // first open the file for writing - if (tao_cg->start_server_inline (idl_global->be_get_server_inline_fname ()) - == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root_si::init - " - "server inline open failed\n"), -1); - } - - if (tao_cg->start_server_template_inline - (idl_global->be_get_server_template_inline_fname ()) - == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root_si::init - " - "Error opening server template inline file\n"), - -1); - } - - // init stream - this->ctx_->stream (tao_cg->server_inline ()); - return 0; -} - -// ****************************************************** -// Root visitor for server skeletons -// ****************************************************** - -be_visitor_root_ss::be_visitor_root_ss (be_visitor_context *ctx) - : be_visitor_root (ctx) -{ -} - -be_visitor_root_ss::~be_visitor_root_ss (void) -{ -} - -int -be_visitor_root_ss::init (void) -{ - // first open the file for writing - if (tao_cg->start_server_skeletons (idl_global - ->be_get_server_skeleton_fname ()) - == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root_ss::init - " - "Error opening server skeletons file\n"), -1); - } - - if (tao_cg->start_server_template_skeletons - (idl_global->be_get_server_template_skeleton_fname ()) - == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root_ss::init - " - "Error opening server template skeleton file\n"), - -1); - } - - // set stream - this->ctx_->stream (tao_cg->server_skeletons ()); - return 0; -} - -// *************************************************************************** -// Root visitor for generating Any operator declarations in the client header -// and stub -// *************************************************************************** - -be_visitor_root_any_op::be_visitor_root_any_op (be_visitor_context *ctx) - : be_visitor_root (ctx) -{ -} - -be_visitor_root_any_op::~be_visitor_root_any_op (void) -{ -} - -int -be_visitor_root_any_op::visit_root (be_root *node) -{ - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::visit_root - " - "codegen for scope failed\n"), -1); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_scope.cpp b/TAO/TAO_IDL/be/be_visitor_scope.cpp deleted file mode 100644 index 0d28959f0f3..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_scope.cpp +++ /dev/null @@ -1,98 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_scope.cpp -// -// = DESCRIPTION -// Visitor for the base be_scope node. This serves to maintain the current -// state (context) of code generation for the derived visitor. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_scope.h" - -// ****************************************************** -// Generic visitor for a scope. -// All elements that give rise to a scope inherit from -// this class -// ****************************************************** - -be_visitor_scope::be_visitor_scope (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_scope::~be_visitor_scope (void) -{ -} - -// visit the scope and its elements -int -be_visitor_scope::visit_scope (be_scope *node) -{ - // proceed if the number of members in our scope is greater than 0 - if (node->nmembers () > 0) - { - // initialize an iterator to iterate thru our scope - UTL_ScopeActiveIterator *si; - ACE_NEW_RETURN (si, - UTL_ScopeActiveIterator (node, - UTL_Scope::IK_decls), - -1); - // continue until each element is visited - while (!si->is_done ()) - { - AST_Decl *d = si->item (); - if (!d) - { - delete si; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_scope::visit_scope - " - "bad node in this scope\n"), -1); - - } - be_decl *bd = be_decl::narrow_from_decl (d); - // set the scope node as "node" in which the code is being generated - // so that elements in the node's scope can use it for code generation - this->ctx_->scope (node->decl ()); - // set the node to be visited - this->ctx_->node (bd); - if (bd == 0 || bd->accept (this) == -1) - { - delete si; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_scope::visit_scope - " - "codegen for scope failed\n"), -1); - - } - si->next (); - if (!si->is_done ()) - this->post_process (); // anything to be done after each element - // except the last one is processed? - - } // end of while loop - delete si; - } // end of if - - return 0; -} - -int -be_visitor_scope::post_process (void) -{ - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_sequence.cpp b/TAO/TAO_IDL/be/be_visitor_sequence.cpp deleted file mode 100644 index 466d3959f85..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_sequence.cpp +++ /dev/null @@ -1,1671 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_sequence.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Sequence -// -// = AUTHOR -// Aniruddha Gokhale and Carlos O'Ryan -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" -#include "be_visitor_sequence.h" - -// Root visitor for client header -be_visitor_sequence_ch::be_visitor_sequence_ch (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_sequence_ch::~be_visitor_sequence_ch (void) -{ -} - -int -be_visitor_sequence_ch::gen_base_sequence_class (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - // retrieve the base type since we may need to do some code - // generation for the base type. - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "Bad element type\n"), -1); - } - - // generate the appropriate sequence type - switch (node->managed_type ()) - { - case be_sequence::MNG_OBJREF: // sequence of objrefs - if (node->unbounded ()) - *os << "TAO_Unbounded_Object_Sequence<"; - else - *os << "TAO_Bounded_Object_Sequence<"; - break; - case be_sequence::MNG_STRING: // sequence of strings - if (node->unbounded ()) - *os << "TAO_Unbounded_String_Sequence"; - else - *os << "TAO_Bounded_String_Sequence"; - break; - default: // not a managed type - if (node->unbounded ()) - *os << "TAO_Unbounded_Sequence<"; - else - *os << "TAO_Bounded_Sequence<"; - break; - } - - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQUENCE_BASE_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "base type visit failed\n"), - -1); - } - delete visitor; - - // find out if the sequence is of a managed type and if it is bounded or not - if (node->managed_type () == be_sequence::MNG_STRING) - { - if (!node->unbounded ()) - { - *os << "<" << node->max_size () << ">"; - } - } - else - { - if (node->unbounded ()) - { - *os << ">"; - } - else - { - *os << ", " << node->max_size () << ">"; - } - } - return 0; -} - -int be_visitor_sequence_ch::visit_sequence (be_sequence *node) -{ - be_type *bt; // type node - TAO_OutStream *os = this->ctx_->stream (); - - // first create a name for ourselves - if (node->create_name (this->ctx_->tdef ()) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "failed creating name\n"), -1); - } - - if (node->cli_hdr_gen () || node->imported ()) - return 0; - - // generate the ifdefined macro for the sequence type - os->gen_ifdef_macro (node->flatname ()); - - os->indent (); // start with the current indentation level - - // retrieve the base type since we may need to do some code - // generation for the base type. - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "Bad element type\n"), -1); - } - - *os << "// *************************************************************" - << be_nl - << "// " << node->local_name () << be_nl - << "// *************************************************************" - << be_nl << be_nl; - - // generate a typedef to a parametrized sequence - *os << "class " << idl_global->export_macro () - << " " << node->local_name () << " : public "; - if (this->gen_base_sequence_class (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "codegen for base sequence class\n"), -1); - } - - *os << be_nl - << "{" << be_nl - << "public:" << be_idt_nl - << node->local_name () << " (void); // default ctor" << be_nl; - // for unbounded sequences, we have a different set of constructors - if (node->unbounded ()) - { - *os << node->local_name () << " (CORBA::ULong max); // uses max size" - << be_nl; - } - - *os << node->local_name () << " (" << be_idt_nl; - if (node->unbounded ()) - { - // unbounded seq takes this extra parameter - *os << "CORBA::ULong max, " << be_nl; - } - *os << "CORBA::ULong length, " << be_nl; - // generate the base type for the buffer - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQUENCE_BUFFER_TYPE_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "Bad visitor\n"), -1); - } - - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "base type visit failed\n"), - -1); - } - delete visitor; - *os << " *buffer, " << be_nl - << "CORBA::Boolean release=0" << be_uidt_nl - << ");" << be_nl; - *os << node->local_name () << " (const " << node->local_name () - << " &); // copy ctor" << be_nl; - *os << "~" << node->local_name () << " (void); // dtor\n"; - - os->decr_indent (); - *os << "};" << be_nl; - - // define a _ptr type. This is just an extension for convenience - *os << "typedef " << node->local_name () << " *" - << node->local_name () << "_ptr;\n"; - - if (!this->ctx_->tdef ()) - { - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_TYPECODE_DECL); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "TypeCode declaration failed\n" - ), -1); - } - } - - os->gen_endif (); // endif macro - - // generate the ifdefined macro for the var type - os->gen_ifdef_macro (node->flatname (), "_var"); - - // generate the var and out types - if (this->gen_var_defn (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "codegen for _var failed\n"), -1); - } - - os->gen_endif (); - - // generate the ifdefined macro for the _out type - os->gen_ifdef_macro (node->flatname (), "_out"); - - if (this->gen_out_defn (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "codegen for _out failed\n"), - -1); - } - os->gen_endif (); - node->cli_hdr_gen (1); - - return 0; -} - -// generate the _var definition for ourself -int -be_visitor_sequence_ch::gen_var_defn (be_sequence *node) -{ - TAO_OutStream *os; // output stream - char namebuf [NAMEBUFSIZE]; // names - be_type *bt; // base type - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_var", node->local_name ()->get_string ()); - - os = this->ctx_->stream (); - - *os << "// *************************************************************" - << be_nl; - *os << "// class " << node->name () << "_var" << be_nl; - *os << "// *************************************************************\n\n"; - - // retrieve base type - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "gen_var_defn - " - "Bad base type\n"), - -1); - } - - // generate the var definition (always in the client header). - // Depending upon the data type, there are some differences which we account - // for over here. - - os->indent (); // start with whatever was our current indent level - *os << "class " << idl_global->export_macro () - << " " << namebuf << be_nl; - *os << "{" << be_nl; - *os << "public:\n"; - os->incr_indent (); - // default constr - *os << namebuf << " (void); // default constructor" << be_nl; - // constr - *os << namebuf << " (" << node->local_name () << " *);" << be_nl; - // copy constructor - *os << namebuf << " (const " << namebuf << - " &); // copy constructor" << be_nl; - // destructor - *os << "~" << namebuf << " (void); // destructor" << be_nl; - *os << be_nl; - // assignment operator from a pointer - *os << namebuf << " &operator= (" << node->local_name () << " *);" << be_nl; - // assignment from _var - *os << namebuf << " &operator= (const " << namebuf << - " &);" << be_nl; - - // arrow operator - *os << node->local_name () << " *operator-> (void);" << be_nl; - *os << "const " << node->local_name () << " *operator-> (void) const;" << be_nl; - *os << be_nl; - - // other extra types (cast operators, [] operator, and others) - - // cast operator - *os << "operator const " << node->local_name () << " &() const;" << be_nl; - *os << "operator " << node->local_name () << " &();" << be_nl; - *os << "operator " << node->local_name () << " &() const;" << be_nl; - - // overloaded [] operator. The const version is not required for sequences - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQELEM_RETTYPE_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "gen_var_defn - " - "Bad visitor\n"), -1); - } - - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_sequence::" - "gen_var_defn - " - "[] ret type gen failed\n"), - -1); - } - delete visitor; - - *os << "operator[] (CORBA::ULong index);" << be_nl; - - *os << "// in, inout, out, _retn " << be_nl; - // the return types of in, out, inout, and _retn are based on the parameter - // passing rules and the base type - *os << "const " << node->local_name () << " &in (void) const;" << be_nl; - *os << node->local_name () << " &inout (void);" << be_nl; - *os << node->local_name () << " *&out (void);" << be_nl; - *os << node->local_name () << " *_retn (void);" << be_nl; - - // generate an additional member function that returns the underlying pointer - *os << node->local_name () << " *ptr (void) const;\n"; - - *os << "\n"; - os->decr_indent (); - - // generate the private section - *os << "private:\n"; - os->incr_indent (); - *os << node->local_name () << " *ptr_;\n"; - - os->decr_indent (); - *os << "};\n\n"; - - return 0; -} - -// generate the _out definition -int -be_visitor_sequence_ch::gen_out_defn (be_sequence *node) -{ - TAO_OutStream *os; // output stream - char namebuf [NAMEBUFSIZE]; // to hold the _out name - be_type *bt; // base type - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_out", node->local_name ()->get_string ()); - os = this->ctx_->stream (); - - // retrieve base type - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "gen_out_defn - " - "Bad base type\n"), - -1); - } - - // generate the out definition (always in the client header) - os->indent (); // start with whatever was our current indent level - - *os << "class " << idl_global->export_macro () << " " - << namebuf << be_nl; - *os << "{" << be_nl; - *os << "public:\n"; - os->incr_indent (); - - // No default constructor - - // constructor from a pointer - *os << namebuf << " (" << node->local_name () << " *&);" << be_nl; - // constructor from a _var & - *os << namebuf << " (" << node->local_name () << "_var &);" << be_nl; - // constructor from a _out & - *os << namebuf << " (" << namebuf << " &);" << be_nl; - // assignment operator from a _out & - *os << namebuf << " &operator= (" << namebuf << " &);" << be_nl; - // assignment operator from a pointer &, cast operator, ptr fn, operator - // -> and any other extra operators - // assignment - *os << namebuf << " &operator= (" << node->local_name () << " *);" << be_nl; - // operator () - *os << "operator " << node->local_name () << " *&();" << be_nl; - // ptr fn - *os << node->local_name () << " *&ptr (void);" << be_nl; - // operator -> - *os << node->local_name () << " *operator-> (void);" << be_nl; - - // overloaded [] operator only for sequence. The const version is not - // required - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQELEM_RETTYPE_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "gen_out_defn - " - "Bad visitor\n"), -1); - } - - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_sequence::" - "gen_var_defn - " - "[] ret type gen failed\n"), - -1); - } - delete visitor; - *os << "operator[] (CORBA::ULong index);" << be_nl; - *os << "\n"; - os->decr_indent (); - *os << "private:\n"; - os->incr_indent (); - - *os << node->local_name () << " *&ptr_;" << be_nl; - *os << "// assignment from T_var not allowed" << be_nl; - *os << "void operator= (const " << node->local_name () << "_var &);\n"; - - os->decr_indent (); - *os << "};\n\n"; - - return 0; -} - -// *********************************************************** -// sequence visitor for inline generation -// *********************************************************** - - -be_visitor_sequence_ci::be_visitor_sequence_ci (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_sequence_ci::~be_visitor_sequence_ci (void) -{ -} - -int -be_visitor_sequence_ci::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - if (node->cli_inline_gen () || node->imported ()) - return 0; - - // all we do is generate the _var and _out implementations - if (this->gen_var_impl (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ci::" - "visit_sequence - " - "codegen for _var failed\n"), -1); - } - - if (this->gen_out_impl (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ci::" - "visit_sequence - " - "codegen for _out failed\n"), -1); - } - - return 0; -} - -int -be_visitor_sequence_ci::gen_var_impl (be_sequence *node) -{ - TAO_OutStream *os; // output stream - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _var names - be_type *bt; // base type - - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_var", node->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_var", node->local_name ()->get_string ()); - - os = this->ctx_->stream (); - - // retrieve base type - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ci::" - "visit_sequence - " - "Bad element type\n"), -1); - } - - // generate the var implementation in the inline file - os->indent (); // start with whatever was our current indent level - - *os << "// *************************************************************" - << be_nl; - *os << "// Inline operations for class " << fname << be_nl; - *os << "// *************************************************************\n\n"; - - // default constr - *os << "ACE_INLINE" << be_nl - << fname << "::" << lname - << " (void) // default constructor" << be_nl - << " " << ": ptr_ (0)" << be_nl - << "{}\n\n"; - - // constr from a _ptr - os->indent (); - *os << "ACE_INLINE" << be_nl; - *os << fname << "::" << lname << " (" << node->name () << " *p)" << be_nl; - *os << " : ptr_ (p)" << be_nl; - *os << "{}\n\n"; - - // copy constructor - os->indent (); - *os << "ACE_INLINE" << be_nl; - *os << fname << "::" << lname << " (const " << fname << - " &p) // copy constructor" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "if (p.ptr_)" << be_nl; - *os << " this->ptr_ = new " << node->name () << "(*p.ptr_);" << be_nl; - *os << "else" << be_nl; - *os << " this->ptr_ = 0;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // destructor - os->indent (); - *os << "ACE_INLINE" << be_nl; - *os << fname << "::~" << lname << " (void) // destructor" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "delete this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // assignment operator from a pointer - os->indent (); - *os << "ACE_INLINE " << fname << " &" << be_nl; - *os << fname << "::operator= (" << node->name () << - " *p)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "delete this->ptr_;" << be_nl; - *os << "this->ptr_ = p;" << be_nl; - *os << "return *this;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // assignment operator from _var - os->indent (); - *os << "ACE_INLINE " << fname << " &" << be_nl; - *os << fname << "::operator= (const " << fname << - " &p) // deep copy" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "if (this != &p)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "delete this->ptr_;" << be_nl; - *os << "this->ptr_ = new " << node->name () << " (*p.ptr_);\n"; - os->decr_indent (); - *os << "}" << be_nl; - *os << "return *this;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // two arrow operators - os->indent (); - *os << "ACE_INLINE const " << node->name () << " *" << be_nl; - *os << fname << "::operator-> (void) const" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - os->indent (); - *os << "ACE_INLINE " << node->name () << " *" << be_nl; - *os << fname << "::operator-> (void)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // other extra methods - 3 cast operator () - os->indent (); - *os << "ACE_INLINE " << be_nl; - *os << fname << "::operator const " << node->name () << - " &() const // cast" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return *this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - os->indent (); - *os << "ACE_INLINE " << be_nl; - *os << fname << "::operator " << node->name () << " &() // cast " << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return *this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - os->indent (); - *os << "ACE_INLINE " << be_nl; - *os << fname << "::operator " << node->name () << " &() const// cast " << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return *this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // operator [] - os->indent (); - *os << "ACE_INLINE "; - - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQELEM_RETTYPE_CI); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ci::" - "gen_var_impl - " - "Bad visitor\n"), -1); - } - - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ci::" - "gen_var_impl - " - "[] ret type gen failed\n"), - -1); - } - delete visitor; - - *os << be_nl; - *os << fname << "::operator[] (CORBA::ULong index)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return this->ptr_->operator[] (index);\n"; - os->decr_indent (); - *os << "}\n\n"; - - // in, inout, out, and _retn - os->indent (); - *os << "ACE_INLINE const " << node->name () << " &" << be_nl; - *os << fname << "::in (void) const" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return *this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - os->indent (); - *os << "ACE_INLINE " << node->name () << " &" << be_nl; - *os << fname << "::inout (void)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return *this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - os->indent (); - *os << "// mapping for variable size " << be_nl; - *os << "ACE_INLINE " << node->name () << " *&" << be_nl; - *os << fname << "::out (void)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "delete this->ptr_;" << be_nl; - *os << "this->ptr_ = 0;" << be_nl; - *os << "return this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - os->indent (); - *os << "ACE_INLINE " << node->name () << " *" << be_nl; - *os << fname << "::_retn (void)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << node->name () << " *tmp = this->ptr_;" << be_nl; - *os << "this->ptr_ = 0;" << be_nl; - *os << "return tmp;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // the additional ptr () member function - os->indent (); - *os << "ACE_INLINE " << node->name () << " *" << be_nl; - *os << fname << "::ptr (void) const" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - return 0; -} - -int -be_visitor_sequence_ci::gen_out_impl (be_sequence *node) -{ - TAO_OutStream *os; // output stream - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _out names - be_type *bt; // base type - - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_out", node->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_out", node->local_name ()->get_string ()); - - os = this->ctx_->stream (); - - // retrieve base type - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ci::" - "gen_out_impl - " - "Bad element type\n"), -1); - } - - // generate the out implementation in the inline file - - os->indent (); // start with whatever was our current indent level - - *os << "// *************************************************************" - << be_nl; - *os << "// Inline operations for class " << fname << be_nl; - *os << "// *************************************************************\n\n"; - - // constr from a pointer - os->indent (); - *os << "ACE_INLINE" << be_nl; - *os << fname << "::" << lname << " (" << node->name () << " *&p)" << be_nl; - *os << " : ptr_ (p)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "this->ptr_ = 0;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // constructor from _var & - os->indent (); - *os << "ACE_INLINE" << be_nl; - *os << fname << "::" << lname << " (" << node->name () << - "_var &p) // constructor from _var" << be_nl; - *os << " : ptr_ (p.out ())" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "delete this->ptr_;" << be_nl; - *os << "this->ptr_ = 0;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // copy constructor - os->indent (); - *os << "ACE_INLINE" << be_nl; - *os << fname << "::" << lname << " (" << fname << - " &p) // copy constructor" << be_nl; - *os << " : ptr_ (p.ptr_)" << be_nl; - *os << "{}\n\n"; - - // assignment operator from _out & - os->indent (); - *os << "ACE_INLINE " << fname << " &" << be_nl; - *os << fname << "::operator= (" << fname << - " &p)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "this->ptr_ = p.ptr_;" << be_nl; - *os << "return *this;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // assignment from _var is not allowed by a private declaration - - // assignment operator from pointer - os->indent (); - *os << "ACE_INLINE " << fname << " &" << be_nl; - *os << fname << "::operator= (" << node->name () << - " *p)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "this->ptr_ = p;" << be_nl; - *os << "return *this;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // other extra methods - cast operator () - os->indent (); - *os << "ACE_INLINE " << be_nl; - *os << fname << "::operator " << node->name () << - " *&() // cast" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // ptr function - os->indent (); - *os << "ACE_INLINE " << node->name () << " *&" << be_nl; - *os << fname << "::ptr (void) // ptr" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // operator -> - os->indent (); - *os << "ACE_INLINE " << node->name () << " *" << be_nl; - *os << fname << "::operator-> (void)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // sequence has an additional method - os->indent (); - *os << "ACE_INLINE "; - - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQELEM_RETTYPE_CI); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ci::" - "gen_out_impl - " - "Bad visitor\n"), -1); - } - - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ci::" - "gen_out_impl - " - "[] ret type gen failed\n"), - -1); - } - delete visitor; - - *os << be_nl; - *os << fname << "::operator[] (CORBA::ULong index)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return this->ptr_->operator[] (index);\n"; - os->decr_indent (); - *os << "}\n\n"; - - return 0; -} - -// ************************************************************ -// Root visitor for client stub class -// ************************************************************ - -be_visitor_sequence_cs::be_visitor_sequence_cs (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_sequence_cs::~be_visitor_sequence_cs (void) -{ -} - -// XXXASG - this method is same as that in the _ch visitor. So we need some -// abstraction for this - -int -be_visitor_sequence_cs::gen_base_sequence_class (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - // retrieve the base type since we may need to do some code - // generation for the base type. - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cs::" - "gen_base_sequence_class - " - "Bad element type\n"), -1); - } - - // generate the appropriate sequence type - switch (node->managed_type ()) - { - case be_sequence::MNG_OBJREF: // sequence of objrefs - if (node->unbounded ()) - *os << "TAO_Unbounded_Object_Sequence<"; - else - *os << "TAO_Bounded_Object_Sequence<"; - break; - case be_sequence::MNG_STRING: // sequence of strings - if (node->unbounded ()) - *os << "TAO_Unbounded_String_Sequence"; - else - *os << "TAO_Bounded_String_Sequence"; - break; - default: // not a managed type - if (node->unbounded ()) - *os << "TAO_Unbounded_Sequence<"; - else - *os << "TAO_Bounded_Sequence<"; - break; - } - - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQUENCE_BASE_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cs::" - "visit_sequence - " - "base type visit failed\n"), - -1); - } - delete visitor; - - // find out if the sequence is of a managed type and if it is bounded or not - if (node->managed_type () == be_sequence::MNG_STRING) - { - if (!node->unbounded ()) - { - *os << "<" << node->max_size () << ">"; - } - } - else - { - if (node->unbounded ()) - { - *os << ">"; - } - else - { - *os << ", " << node->max_size () << ">"; - } - } - return 0; -} - -int be_visitor_sequence_cs::visit_sequence (be_sequence *node) -{ - // generate the constructors - be_type *bt; // type node - TAO_OutStream *os = this->ctx_->stream (); - - if (node->cli_stub_gen () || node->imported ()) - return 0; - - // generate the ifdefined macro for the sequence type - os->gen_ifdef_macro (node->flatname ()); - - os->indent (); // start with the current indentation level - - // retrieve the base type since we may need to do some code - // generation for the base type. - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cs::" - "visit_sequence - " - "Bad element type\n"), -1); - } - - *os << "// *************************************************************" - << be_nl - << "// " << node->name () << be_nl - << "// *************************************************************" - << be_nl << be_nl; - - // default constructor - *os << node->name () << "::" << node->local_name () << " (void)" << be_nl - << "{}" << be_nl; - - // for unbounded sequences, we have a different set of constructors - if (node->unbounded ()) - { - *os << node->name () << "::" << node->local_name () - << " (CORBA::ULong max) // uses max size" << be_nl - << " : "; - // pass it to the base constructor - if (this->gen_base_sequence_class (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cs::" - "visit_sequence - " - "codegen for base sequence class\n"), -1); - } - *os << " (max)" << be_nl - << "{}" << be_nl; - } - - // constructor with the buffer - *os << node->name () << "::" << node->local_name () << " ("; - if (node->unbounded ()) - { - *os << "CORBA::ULong max, "; // unbounded seq takes this extra parameter - } - *os << "CORBA::ULong length, "; - // generate the base type for the buffer - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQUENCE_BUFFER_TYPE_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "Bad visitor\n"), -1); - } - - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "base type visit failed\n"), - -1); - } - delete visitor; - *os << " *buffer, CORBA::Boolean release)" << be_nl - << " : "; - // pass it to the base constructor - if (this->gen_base_sequence_class (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cs::" - "visit_sequence - " - "codegen for base sequence class\n"), -1); - } - *os << " ("; - if (node->unbounded ()) - { - *os << "max, "; - } - *os << "length, buffer, release)" << be_nl - << "{}" << be_nl; - - // copy constructor - *os << node->name () << "::" << node->local_name () - << " (const " << node->local_name () - << " &seq) // copy ctor" << be_nl - << " : "; - // pass it to the base constructor - if (this->gen_base_sequence_class (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cs::" - "visit_sequence - " - "codegen for base sequence class\n"), -1); - } - *os << " (seq)" << be_nl - << "{}" << be_nl; - - // destructor - *os << node->name () << "::~" << node->local_name () - << " (void) // dtor" << be_nl - << "{}\n\n"; - - if (!this->ctx_->tdef ()) - { - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_TYPECODE_DEFN); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cs::" - "visit_sequence - " - "TypeCode definition failed\n" - ), -1); - } - } - - os->gen_endif (); - - return 0; -} - -// **************************************************************** -// We have to generate the parameters for the template that implements -// each sequence type. -// **************************************************************** - -be_visitor_sequence_base:: -be_visitor_sequence_base (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_sequence_base::~be_visitor_sequence_base (void) -{ -} - -int -be_visitor_sequence_base::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - *os << node->name (); - return 0; -} - -// helper -int -be_visitor_sequence_base::visit_node (be_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_SEQUENCE_BASE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()); - else - *os << bt->name (); - return 0; -} - -int -be_visitor_sequence_base::visit_sequence (be_sequence *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_base::visit_interface (be_interface *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_base::visit_interface_fwd (be_interface_fwd *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_base::visit_string (be_string *) -{ - // NO-OP, we have ad-hoc classes from strings. - return 0; -} - -int -be_visitor_sequence_base::visit_structure (be_structure *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_base::visit_union (be_union *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_base::visit_enum (be_enum *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_base::visit_exception (be_exception *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_base::visit_array (be_array *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_base::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_sequence_base::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -// **************************************************************** -// We have to generate the buffer type in the constructor -// **************************************************************** - -be_visitor_sequence_buffer_type:: -be_visitor_sequence_buffer_type (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_sequence_buffer_type::~be_visitor_sequence_buffer_type (void) -{ -} - -// helper -int -be_visitor_sequence_buffer_type::visit_node (be_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_SEQUENCE_BUFFER_TYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()); - else - *os << bt->name (); - return 0; -} - -int -be_visitor_sequence_buffer_type::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - if (node->pt () == AST_PredefinedType::PT_pseudo) - *os << node->name () << "_ptr"; - else - *os << node->name (); - return 0; -} - -int -be_visitor_sequence_buffer_type::visit_sequence (be_sequence *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_buffer_type::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - if (this->ctx_->state () == TAO_CodeGen::TAO_SEQUENCE_BUFFER_TYPE_CH) - *os << node->nested_type_name (this->ctx_->scope (), "_ptr"); - else - *os << node->name () << "_ptr"; - return 0; -} - -int -be_visitor_sequence_buffer_type::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - if (this->ctx_->state () == TAO_CodeGen::TAO_SEQUENCE_BUFFER_TYPE_CH) - *os << node->nested_type_name (this->ctx_->scope (), "_ptr"); - else - *os << node->name () << "_ptr"; - return 0; -} - -int -be_visitor_sequence_buffer_type::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); - *os << "char *"; - return 0; -} - -int -be_visitor_sequence_buffer_type::visit_structure (be_structure *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_buffer_type::visit_union (be_union *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_buffer_type::visit_enum (be_enum *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_buffer_type::visit_exception (be_exception *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_buffer_type::visit_array (be_array *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_buffer_type::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_sequence_buffer_type::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -// *********************************************************** -// sequence element type visitor for return types of [] methods -// *********************************************************** - - -be_visitor_sequence_elemtype:: -be_visitor_sequence_elemtype (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_sequence_elemtype::~be_visitor_sequence_elemtype (void) -{ -} - -// helper -int -be_visitor_sequence_elemtype::visit_node (be_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_SEQELEM_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()) << " &"; - else - *os << bt->name () << " &"; - return 0; -} - -int -be_visitor_sequence_elemtype::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - switch (node->pt ()) - { - case AST_PredefinedType::PT_pseudo: - if (this->ctx_->state () == TAO_CodeGen::TAO_SEQELEM_RETTYPE_CH) - { - *os << "TAO_Object_Manager<" << bt->nested_type_name - (this->ctx_->scope ()) << "> "; - } - else - *os << "TAO_Object_Manager<" << bt->name () << "> "; - break; - default: - if (this->ctx_->state () == TAO_CodeGen::TAO_SEQELEM_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()) << " &"; - else - *os << bt->name () << " &"; - } - return 0; -} - -int -be_visitor_sequence_elemtype::visit_sequence (be_sequence *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_elemtype::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - - *os << "TAO_Object_Manager <" - << bt->nested_type_name (this->ctx_->scope ()) - << " > "; - - return 0; -} - -int -be_visitor_sequence_elemtype::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - - *os << "TAO_Object_Manager <" - << bt->nested_type_name (this->ctx_->scope ()) - << " > "; - - return 0; -} - -int -be_visitor_sequence_elemtype::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); - - *os << "TAO_String_Manager "; - return 0; -} - -int -be_visitor_sequence_elemtype::visit_structure (be_structure *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_elemtype::visit_union (be_union *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_elemtype::visit_enum (be_enum *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_elemtype::visit_exception (be_exception *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_elemtype::visit_array (be_array *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_elemtype::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_sequence_elemtype::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -// *************************************************************************** -// Sequence visitor for generating Any operator declarations in the client header -// *************************************************************************** - -be_visitor_sequence_any_op_ch::be_visitor_sequence_any_op_ch -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_sequence_any_op_ch::~be_visitor_sequence_any_op_ch (void) -{ -} - -int -be_visitor_sequence_any_op_ch::visit_sequence (be_sequence *node) -{ - if (node->cli_hdr_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the Any <<= and >>= operators - os->indent (); - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, const " << node->name () - << " &); // copying version" << be_nl; - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, " << node->name () - << "*); // noncopying version" << be_nl; - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator>>= (const CORBA::Any &, " - << node->name () << " *&);\n"; - - node->cli_hdr_any_op_gen (1); - return 0; -} - -// *************************************************************************** -// Sequence visitor for generating Any operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_sequence_any_op_cs::be_visitor_sequence_any_op_cs -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_sequence_any_op_cs::~be_visitor_sequence_any_op_cs (void) -{ -} - -int -be_visitor_sequence_any_op_cs::visit_sequence (be_sequence *node) -{ - if (node->cli_stub_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // Any <<= and >>= operators - os->indent (); - *os << "void operator<<= (CORBA::Any &_tao_any, const " - << node->name () << " &_tao_elem) // copying" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "_tao_any.replace (" << node->tc_name () << ", &" - << "_tao_elem, 1, _tao_env);" << be_uidt_nl - << "}" << be_nl; - - *os << "void operator<<= (CORBA::Any &_tao_any, " - << node->name () << " *_tao_elem) // non copying" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "_tao_any.replace (" << node->tc_name () << ", " - << "_tao_elem, 0, _tao_env);" << be_uidt_nl - << "}" << be_nl; - - *os << "CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, " - << node->name () << " *&_tao_elem)" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "if (!_tao_any.type ()->equal (" << node->tc_name () - << ", _tao_env)) return 0; // not equal" << be_nl - << "if (_tao_any.any_owns_data ())" << be_nl - << "{" << be_idt_nl - << "ACE_NEW_RETURN (_tao_elem, " << node->name () << ", 0);" - << be_nl - << "TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());" - << be_nl - << "if (stream.decode (" << node->tc_name () - << ", _tao_elem, 0, _tao_env)" << be_nl - << " == CORBA::TypeCode::TRAVERSE_CONTINUE)" << be_nl - << "{" << be_idt_nl - << "((CORBA::Any *)&_tao_any)->replace (_tao_any.type (), " - << "_tao_elem, 1, _tao_env);" - << be_nl - << " return 1;" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl // decode failed - << "{" << be_idt_nl - << "delete _tao_elem;" << be_nl - << "return 0;" << be_uidt_nl - << "}" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl // else any does not own the data - << "{" << be_idt_nl - << "_tao_elem = (" << node->name () << " *)_tao_any.value ();" - << be_nl - << "return 1;" << be_uidt_nl - << "}" << be_uidt_nl - << "}\n\n"; - - - node->cli_stub_any_op_gen (1); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_structure.cpp b/TAO/TAO_IDL/be/be_visitor_structure.cpp deleted file mode 100644 index 3e5261a34c6..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_structure.cpp +++ /dev/null @@ -1,478 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_structure.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Structure -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_structure.h" - -// generic struct visitor -be_visitor_structure::be_visitor_structure (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_structure::~be_visitor_structure (void) -{ -} - -// visit the Structure node and its scope -int -be_visitor_structure::visit_structure (be_structure *node) -{ - return -1; // must be overriden -} - -int -be_visitor_structure::visit_field (be_field *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_STRUCT_CH: - ctx.state (TAO_CodeGen::TAO_FIELD_CH); - break; - case TAO_CodeGen::TAO_STRUCT_CI: - ctx.state (TAO_CodeGen::TAO_FIELD_CI); - break; - case TAO_CodeGen::TAO_STRUCT_CS: - ctx.state (TAO_CodeGen::TAO_FIELD_CS); - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure::" - "visit_field - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure::" - "visit_field - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure::" - "visit_field - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// ****************************************************** -// for client header -// ****************************************************** - -be_visitor_structure_ch::be_visitor_structure_ch (be_visitor_context *ctx) - : be_visitor_structure (ctx) -{ -} - -be_visitor_structure_ch::~be_visitor_structure_ch (void) -{ -} - -// visit the Structure node and its scope -int be_visitor_structure_ch::visit_structure (be_structure *node) -{ - TAO_OutStream *os; // output stream - - if (!node->cli_hdr_gen () && !node->imported ()) // not already generated and - // not imported - { - os = this->ctx_->stream (); - - os->indent (); // start from whatever indentation level we were at - *os << "struct " << node->local_name () << be_nl - << "{" << be_idt << "\n"; - - // generate code for field members - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_ch::" - "visit_structure - " - "codegen for scope failed\n"), -1); - } - - os->decr_indent (); - *os << "};\n\n"; - - // generate var defn - if (node->gen_var_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_ch::" - "visit_structure - " - "codegen for _var failed\n"), -1); - } - - // a class is generated for an out defn only for a variable length struct - if (node->size_type () == be_decl::VARIABLE) - { - if (node->gen_out_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_ch::" - "visit_structure - " - "codegen for _out failed\n"), -1); - } - } - else - { - os->indent (); - *os << "typedef " << node->local_name () << " &" << node->local_name - () << "_out;\n\n"; - } - - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor *visitor; - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_TYPECODE_DECL); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_ch::" - "visit_structure - " - "TypeCode declaration failed\n" - ), -1); - } - - - node->cli_hdr_gen (I_TRUE); - } - return 0; -} - -// ****************************************************** -// for client inline -// ****************************************************** - -be_visitor_structure_ci::be_visitor_structure_ci (be_visitor_context *ctx) - : be_visitor_structure (ctx) -{ -} - -be_visitor_structure_ci::~be_visitor_structure_ci (void) -{ -} - -// visit the Structure node and its scope -int be_visitor_structure_ci::visit_structure (be_structure *node) -{ - if (!node->cli_inline_gen () && !node->imported ()) - { - if (node->gen_var_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_ci::" - "visit_structure - " - "codegen for _var failed\n"), -1); - } - if (node->size_type () == be_decl::VARIABLE && - node->gen_out_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_ci::" - "visit_structure - " - "codegen for _out failed\n"), -1); - } - // all we have to do is to visit the scope - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_ci::" - "visit_structure - " - "codegen for scope failed\n"), -1); - } - node->cli_inline_gen (I_TRUE); - } - return 0; -} - -// *************************************************************************** -// for client stubs -// *************************************************************************** -be_visitor_structure_cs::be_visitor_structure_cs (be_visitor_context *ctx) - : be_visitor_structure (ctx) -{ -} - -be_visitor_structure_cs::~be_visitor_structure_cs (void) -{ -} - -// visit the Structure_Cs node and its scope -int be_visitor_structure_cs::visit_structure (be_structure *node) -{ - TAO_OutStream *os; // output stream - - if (!node->cli_stub_gen () && !node->imported ()) - { - os = this->ctx_->stream (); - - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor *visitor; - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_TYPECODE_DEFN); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_cs::" - "visit_structure - " - "TypeCode definition failed\n" - ), -1); - } - - - // do any code generation required for the scope members - // all we have to do is to visit the scope - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_cs::" - "visit_structure - " - "codegen for scope failed\n"), -1); - } - node->cli_stub_gen (I_TRUE); - } - - return 0; -} - -// *************************************************************************** -// Structure visitor for generating Any operator declarations in the client header -// *************************************************************************** - -be_visitor_structure_any_op_ch::be_visitor_structure_any_op_ch -(be_visitor_context *ctx) - : be_visitor_structure (ctx) -{ -} - -be_visitor_structure_any_op_ch::~be_visitor_structure_any_op_ch (void) -{ -} - -int -be_visitor_structure_any_op_ch::visit_structure (be_structure *node) -{ - if (node->cli_hdr_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the Any <<= and >>= operator declarations - os->indent (); - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, const " << node->name () - << " &); // copying version" << be_nl; - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, " << node->name () - << "*); // noncopying version" << be_nl; - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator>>= (const CORBA::Any &, " - << node->name () << " *&);\n"; - - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure::visit_structure - " - "codegen for scope failed\n"), -1); - } - - node->cli_hdr_any_op_gen (1); - return 0; -} - -int -be_visitor_structure_any_op_ch::visit_field (be_field *node) -{ - be_type *bt; // field's type - - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_any_op_ch::" - "visit_field - " - "Bad field type\n" - ), -1); - } - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_any_op_ch::" - "visit_field - " - "codegen for field type failed\n" - ), -1); - } - return 0; -} - -// *************************************************************************** -// Structure visitor for generating Any operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_structure_any_op_cs::be_visitor_structure_any_op_cs -(be_visitor_context *ctx) - : be_visitor_structure (ctx) -{ -} - -be_visitor_structure_any_op_cs::~be_visitor_structure_any_op_cs (void) -{ -} - -int -be_visitor_structure_any_op_cs::visit_structure (be_structure *node) -{ - if (node->cli_stub_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // generate the Any <<= and >>= operator declarations - // Any <<= and >>= operators - os->indent (); - *os << "void operator<<= (CORBA::Any &_tao_any, const " - << node->name () << " &_tao_elem) // copying" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "_tao_any.replace (" << node->tc_name () << ", new " - << node->name () << "(_tao_elem), 1, _tao_env);" - << " // copy the value" << be_uidt_nl - << "}" << be_nl; - - *os << "void operator<<= (CORBA::Any &_tao_any, " - << node->name () << " *_tao_elem) // non copying" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "_tao_any.replace (" << node->tc_name () << ", " - << "_tao_elem, 1, _tao_env); // consume it" << be_uidt_nl - << "}" << be_nl; - - *os << "CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, " - << node->name () << " *&_tao_elem)" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "if (!_tao_any.type ()->equal (" << node->tc_name () - << ", _tao_env)) return 0; // not equal" << be_nl - << "if (_tao_any.any_owns_data ())" << be_nl - << "{" << be_idt_nl - << "ACE_NEW_RETURN (_tao_elem, " << node->name () << ", 0);" - << be_nl - << "TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());" - << be_nl - << "if (stream.decode (" << node->tc_name () - << ", _tao_elem, 0, _tao_env)" << be_nl - << " == CORBA::TypeCode::TRAVERSE_CONTINUE)" << be_nl - << "{" << be_idt_nl - << "((CORBA::Any *)&_tao_any)->replace (_tao_any.type (), " - << "_tao_elem, 1, _tao_env);" - << be_nl - << " return 1;" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl // decode failed - << "{" << be_idt_nl - << "delete _tao_elem;" << be_nl - << "return 0;" << be_uidt_nl - << "}" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl // else any does not own the data - << "{" << be_idt_nl - << "_tao_elem = (" << node->name () << " *)_tao_any.value ();" - << be_nl - << "return 1;" << be_uidt_nl - << "}" << be_uidt_nl - << "}\n\n"; - - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure::visit_structure - " - "codegen for scope failed\n"), -1); - } - - node->cli_stub_any_op_gen (1); - return 0; -} - -int -be_visitor_structure_any_op_cs::visit_field (be_field *node) -{ - be_type *bt; // field's type - - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_any_op_cs::" - "visit_field - " - "Bad field type\n" - ), -1); - } - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_any_op_cs::" - "visit_field - " - "codegen for field type failed\n" - ), -1); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_typecode.cpp b/TAO/TAO_IDL/be/be_visitor_typecode.cpp deleted file mode 100644 index 165f2f76c28..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_typecode.cpp +++ /dev/null @@ -1,314 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_typecode.cpp -// -// = DESCRIPTION -// Visitors for generation of code for TypeCodes for various types -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_typecode.h" - -// ****************************************************** -// TypeCode declarations -// ****************************************************** - -be_visitor_typecode_decl::be_visitor_typecode_decl (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_typecode_decl::~be_visitor_typecode_decl (void) -{ -} - -int -be_visitor_typecode_decl::visit_type (be_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - // Generate the typecode decl - if (node->is_nested ()) - { - // we have a scoped name - os->indent (); - // is our enclosing scope a module? We need this check because for - // platforms that support namespaces, the typecode must be declared - // extern - if (node->defined_in ()->scope_node_type () == AST_Decl::NT_module) - *os << "TAO_NAMESPACE_STORAGE_CLASS "; - else - *os << "static "; - *os << "CORBA::TypeCode_ptr " << node->tc_name - ()->last_component () << ";\n\n"; - } - else - { - // we are in the ROOT scope - os->indent (); - *os << "extern CORBA::TypeCode_ptr " << node->tc_name - ()->last_component () << ";\n\n"; - } - return 0; -} - -int -be_visitor_typecode_decl::visit_array (be_array *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_decl::visit_enum (be_enum *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_decl::visit_exception (be_exception *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_decl::visit_interface (be_interface *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_decl::visit_sequence (be_sequence *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_decl::visit_structure (be_structure *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_decl::visit_typedef (be_typedef *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_decl::visit_union (be_union *node) -{ - return this->visit_type (node); -} - -// ****************************************************** -// TypeCode Definitions -// ****************************************************** - -be_visitor_typecode_defn::be_visitor_typecode_defn (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_typecode_defn::~be_visitor_typecode_defn (void) -{ -} - -// the following needs to be done to deal with the most bizarre behavior of -// MSVC++ compiler -int -be_visitor_typecode_defn::gen_nested_namespace_begin (be_module *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - UTL_IdListActiveIterator *i; - - i = new UTL_IdListActiveIterator (node->name ()); - while (!(i->is_done ())) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - { - // leave the outermost root scope - *os << "TAO_NAMESPACE_BEGIN (" << i->item ()->get_string () - << ")" << be_nl; - } - i->next (); - } - delete i; - return 0; -} - -// the following needs to be done to deal with the most bizarre behavior of -// MSVC++ compiler -int -be_visitor_typecode_defn::gen_nested_namespace_end (be_module *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - UTL_IdListActiveIterator *i; - - i = new UTL_IdListActiveIterator (node->name ()); - while (!(i->is_done ())) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - { - // leave the outermost root scope - *os << "TAO_NAMESPACE_END" << be_nl; - } - i->next (); - } - delete i; - return 0; -} - -int -be_visitor_typecode_defn::visit_type (be_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - os->indent (); - // generate the typecode information here - *os << "static const CORBA::Long _oc_" << node->flatname () << "[] =" - << be_nl; - *os << "{" << be_idt << "\n"; - // note that we just need the parameters here and hence we generate the - // encapsulation for the parameters - if (node->gen_encapsulation () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typecode_defn::" - "visit_type - " - "codegen for typecode failed\n"), -1); - } - *os << be_uidt << "};" << be_nl; - - *os << "static CORBA::TypeCode _tc__tc_" << node->flatname () - << " ("; - switch (node->node_type ()) - { - case AST_Decl::NT_array: - *os << "CORBA::tk_array"; - break; - case AST_Decl::NT_enum: - *os << "CORBA::tk_enum"; - break; - case AST_Decl::NT_except: - *os << "CORBA::tk_except"; - break; - case AST_Decl::NT_interface: - *os << "CORBA::tk_objref"; - break; - case AST_Decl::NT_sequence: - *os << "CORBA::tk_sequence"; - break; - case AST_Decl::NT_struct: - *os << "CORBA::tk_struct"; - break; - case AST_Decl::NT_typedef: - *os << "CORBA::tk_alias"; - break; - case AST_Decl::NT_union: - *os << "CORBA::tk_union"; - break; - default: - return -1; // error - } - - *os << ", sizeof (_oc_" << node->flatname () - << "), (char *) &_oc_" << node->flatname () - << ", CORBA::B_FALSE);" << be_nl; - - // is our enclosing scope a module? We need this check because for - // platforms that support namespaces, the typecode must be declared - // extern - if (node->is_nested () && - node->defined_in ()->scope_node_type () == AST_Decl::NT_module) - { - *os << "TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)" << be_nl; - be_module *module = be_module::narrow_from_scope (node->defined_in ()); - if (!module || (this->gen_nested_namespace_begin (module) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_typecode_defn::visit_type - " - "Error parsing nested name\n"), - -1); - } - *os << "TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_" - << node->local_name () << ", &_tc__tc_" - << node->flatname () << ")" << be_nl; - if (this->gen_nested_namespace_end (module) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_typecode_defn::visit_type - " - "Error parsing nested name\n"), - -1); - } - } - else - { - // outermost scope. - *os << "CORBA::TypeCode_ptr " << node->tc_name () << " = &_tc__tc_" - << node->flatname () << ";\n\n"; - } - return 0; -} - -int -be_visitor_typecode_defn::visit_array (be_array *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_defn::visit_enum (be_enum *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_defn::visit_exception (be_exception *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_defn::visit_interface (be_interface *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_defn::visit_sequence (be_sequence *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_defn::visit_structure (be_structure *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_defn::visit_typedef (be_typedef *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_defn::visit_union (be_union *node) -{ - return this->visit_type (node); -} diff --git a/TAO/TAO_IDL/be/be_visitor_typedef.cpp b/TAO/TAO_IDL/be/be_visitor_typedef.cpp deleted file mode 100644 index 2c3921daa59..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_typedef.cpp +++ /dev/null @@ -1,1804 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_typedef.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Typedef -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_typedef.h" - -// ****************************************************** -// Generic Typedef visitor -// ****************************************************** - -be_visitor_typedef::be_visitor_typedef (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_typedef::~be_visitor_typedef (void) -{ -} - -// visit the Typedef node and its scope -int be_visitor_typedef::visit_typedef (be_typedef *node) -{ - return -1; // must be overridden -} - -// =all common visit methods for typedef visitor - -// visit a array -int -be_visitor_typedef::visit_array (be_array *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_TYPEDEF_CH: - ctx.state (TAO_CodeGen::TAO_ARRAY_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_CS: - ctx.state (TAO_CodeGen::TAO_ARRAY_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_CI: - ctx.state (TAO_CodeGen::TAO_ARRAY_CI); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_ARRAY_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_ARRAY_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_SH: - case TAO_CodeGen::TAO_TYPEDEF_SI: - case TAO_CodeGen::TAO_TYPEDEF_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_array - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_array - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_array - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -//visit an enum -int -be_visitor_typedef::visit_enum (be_enum *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_TYPEDEF_CH: - ctx.state (TAO_CodeGen::TAO_ENUM_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_CS: - ctx.state (TAO_CodeGen::TAO_ENUM_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_ENUM_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_ENUM_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_CI: - case TAO_CodeGen::TAO_TYPEDEF_SH: - case TAO_CodeGen::TAO_TYPEDEF_SI: - case TAO_CodeGen::TAO_TYPEDEF_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_enum - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_enum - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_enum - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an predefined type -int -be_visitor_typedef::visit_predefined_type (be_predefined_type *node) -{ - return 0; -} - -// visit an sequence -int -be_visitor_typedef::visit_sequence (be_sequence *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_TYPEDEF_CH: - ctx.state (TAO_CodeGen::TAO_SEQUENCE_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_CI: - ctx.state (TAO_CodeGen::TAO_SEQUENCE_CI); - break; - case TAO_CodeGen::TAO_TYPEDEF_CS: - ctx.state (TAO_CodeGen::TAO_SEQUENCE_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_SEQUENCE_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_SEQUENCE_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_SH: - case TAO_CodeGen::TAO_TYPEDEF_SI: - case TAO_CodeGen::TAO_TYPEDEF_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_sequence - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_sequence - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_sequence - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an structure -int -be_visitor_typedef::visit_string (be_string *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_TYPEDEF_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_CI: - ctx.state (TAO_CodeGen::TAO_STRUCT_CI); - break; - case TAO_CodeGen::TAO_TYPEDEF_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CH: - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CS: - case TAO_CodeGen::TAO_TYPEDEF_SH: - case TAO_CodeGen::TAO_TYPEDEF_SI: - case TAO_CodeGen::TAO_TYPEDEF_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_string - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_string - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_string - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an structure -int -be_visitor_typedef::visit_structure (be_structure *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_TYPEDEF_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_CI: - ctx.state (TAO_CodeGen::TAO_STRUCT_CI); - break; - case TAO_CodeGen::TAO_TYPEDEF_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_SH: - case TAO_CodeGen::TAO_TYPEDEF_SI: - case TAO_CodeGen::TAO_TYPEDEF_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_structure - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_structure - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_structure - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an union -int -be_visitor_typedef::visit_union (be_union *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_TYPEDEF_CH: - ctx.state (TAO_CodeGen::TAO_UNION_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_CI: - ctx.state (TAO_CodeGen::TAO_UNION_CI); - break; - case TAO_CodeGen::TAO_TYPEDEF_CS: - ctx.state (TAO_CodeGen::TAO_UNION_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_UNION_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_UNION_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_SH: - case TAO_CodeGen::TAO_TYPEDEF_SI: - case TAO_CodeGen::TAO_TYPEDEF_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_union - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_union - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_union - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// ****************************************************** -// Typedef visitor for client header -// ****************************************************** - -be_visitor_typedef_ch::be_visitor_typedef_ch (be_visitor_context *ctx) - : be_visitor_typedef (ctx) -{ -} - -be_visitor_typedef_ch::~be_visitor_typedef_ch (void) -{ -} - -int -be_visitor_typedef_ch::visit_typedef (be_typedef *node) -{ - TAO_OutStream *os; // output stream - - os = this->ctx_->stream (); - - // In general, we may have a chain of typedefs. i.e., - // typedef sequence X; - // typedef X Y; - // typedef Y Z; and so on - // The first time we will be in will be for node Z for which the code - // generation has to take place. However, it is not enough to just generate - // code that looks like - - // typedef Y Z; - // For different types (in this case we have a sequence), we will need - // typedefs for the _var and _out types for Z. If it had been an array, we - // will additionally have the _forany type as well as inlined *_alloc, _dup, - // and _free methods. - // - // Finally, we need to differentiate between the case where we were - // generating code for - // typedef sequence X; and - // typedef Y Z; where Y was somehow aliased to the sequence. In the former - // case, we will need to generate all the code for sequence or whatever - // the type maybe. In the latter, we just need typedefs for the type and all - // associated _var, _out, and other types. - - be_type *bt; // base type - - if (this->ctx_->tdef ()) - { - // the fact that we are here indicates that we were generating code for a - // typedef node whose base type also happens to be another typedef-ed - // (i.e. an alias) node for another (possibly alias) node - - this->ctx_->alias (node); // save this alias - - // grab the most primitive base type in the chain to avoid recusrsively - // going thru this visit method - bt = node->primitive_base_type (); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "bad primitive base type\n" - ), -1); - } - - // accept on this base type, but generate code for the typedef node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - this->ctx_->alias (0); // reset - } - else - { - // the context has not stored any "tdef" node. So we must be in here for - // the first time - this->ctx_->tdef (node); // save the typedef node - - // grab the immediate base type node - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "bad base type\n" - ), -1); - } - - // accept on this base type, but generate code for the typedef node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - - // generate the typecode decl for this typedef node - if (!node->imported ()) - { - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor *visitor; - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_TYPECODE_DECL); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "TypeCode declaration failed\n" - ), -1); - } - - - } - this->ctx_->tdef (0); // reset - } - - return 0; -} - -int -be_visitor_typedef_ch::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - // is the base type an alias to an array node or an actual array node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // is our base type an array node. If so, generate code for that array node - if (bt->node_type () == AST_Decl::NT_array) - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_array (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_array - " - "base class visitor failed \n" - ), -1); - } - } - else - { - // base type is simply an alias to an array node. Simply output the - // required typedefs - - os->indent (); - // typedef the type and the _slice type - *os << "typedef " << bt->nested_type_name (scope) - << " " << tdef->nested_type_name (scope) << ";" << be_nl; - *os << "typedef " << bt->nested_type_name (scope, "_slice") - << " " << tdef->nested_type_name (scope, "_slice") << ";" << be_nl; - // typedef the _var, _out, and _forany types - *os << "typedef " << bt->nested_type_name (scope, "_var") - << " " << tdef->nested_type_name (scope, "_var") << ";" << be_nl; - *os << "typedef " << bt->nested_type_name (scope, "_out") - << " " << tdef->nested_type_name (scope, "_out") << ";" << be_nl; - *os << "typedef " << bt->nested_type_name (scope, "_forany") - << " " << tdef->nested_type_name (scope, "_forany") << ";" << be_nl; - // the _alloc, _dup, copy, and free methods - *os << "static " << tdef->nested_type_name (scope, "_slice") << " *" - << tdef->nested_type_name (scope, "_alloc") << " (void);" << be_nl; - *os << "static " << tdef->nested_type_name (scope, "_slice") << " *" - << tdef->nested_type_name (scope, "_dup") << " (const " - << tdef->nested_type_name (scope, "_slice") << " *_tao_slice);" << be_nl; - *os << "static void " << tdef->nested_type_name (scope, "_copy") << " (" - << tdef->nested_type_name (scope, "_slice") << " *_tao_to, const " - << tdef->nested_type_name (scope, "_slice") << " *_tao_from);" << be_nl; - *os << "static void " << tdef->nested_type_name (scope, "_free") << " (" - << tdef->nested_type_name (scope, "_slice") << " *_tao_slice);" << be_nl; - } - return 0; -} - -int -be_visitor_typedef_ch::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_enum) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_enum (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_enum - " - "base class visitor failed \n" - ), -1); - } - } - - // now generate the typedefs - os->indent (); - // typedef the type and the _slice type - *os << "typedef " << bt->nested_type_name (scope) - << " " << tdef->nested_type_name (scope) << ";" << be_nl; - // typedef the _out - *os << "typedef " << bt->nested_type_name (scope, "_out") - << " " << tdef->nested_type_name (scope, "_out") << ";" << be_nl; - return 0; -} - -int -be_visitor_typedef_ch::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - // now generate the typedefs - os->indent (); - - // typedef the _ptr - *os << "typedef " << bt->nested_type_name (scope, "_ptr") - << " " << tdef->nested_type_name (scope, "_ptr") << ";" << be_nl; - - // typedef the _var - *os << "typedef " << bt->nested_type_name (scope, "_var") - << " " << tdef->nested_type_name (scope, "_var") << ";" << be_nl; - - // typedef the _out - *os << "typedef " << bt->nested_type_name (scope, "_out") - << " " << tdef->nested_type_name (scope, "_out") << ";" << be_nl; - - return 0; -} - -int -be_visitor_typedef_ch::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - // now generate the typedefs - os->indent (); - // typedef the type - *os << "typedef " << bt->nested_type_name (scope) - << " " << tdef->nested_type_name (scope) << ";" << be_nl; - if ((node->pt () == AST_PredefinedType::PT_pseudo) || - (node->pt () == AST_PredefinedType::PT_any)) - { - // typedef the _ptr and _var - *os << "typedef " << bt->nested_type_name (scope, "_ptr") - << " " << tdef->nested_type_name (scope, "_ptr") << ";" << be_nl; - *os << "typedef " << bt->nested_type_name (scope, "_var") - << " " << tdef->nested_type_name (scope, "_var") << ";" << be_nl; - } - // typedef the _out - *os << "typedef " << bt->nested_type_name (scope, "_out") - << " " << tdef->nested_type_name (scope, "_out") << ";" << be_nl; - return 0; -} - -int -be_visitor_typedef_ch::visit_string (be_string *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - - // now generate the typedefs - os->indent (); - // typedef the type and the _slice type - *os << "typedef char *" - << " " << tdef->nested_type_name (scope) << ";" << be_nl; - // typedef the _var, _out, and _forany types - *os << "typedef CORBA::String_var" - << " " << tdef->nested_type_name (scope, "_var") << ";" << be_nl; - *os << "typedef CORBA::String_out" - << " " << tdef->nested_type_name (scope, "_out") << ";" << be_nl; - return 0; -} - -int -be_visitor_typedef_ch::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_sequence) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_sequence (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_sequence - " - "base class visitor failed \n" - ), -1); - } - } - else - { - // now generate the typedefs - os->indent (); - // typedef the type - *os << "typedef " << bt->nested_type_name (scope) - << " " << tdef->nested_type_name (scope) << ";" << be_nl; - // typedef the _var, _out types - *os << "typedef " << bt->nested_type_name (scope, "_var") - << " " << tdef->nested_type_name (scope, "_var") << ";" << be_nl; - *os << "typedef " << bt->nested_type_name (scope, "_out") - << " " << tdef->nested_type_name (scope, "_out") << ";" << be_nl; - } - return 0; -} - -int -be_visitor_typedef_ch::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_struct) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_structure (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_structure - " - "base class visitor failed \n" - ), -1); - } - } - - // now generate the typedefs - os->indent (); - // typedef the type - *os << "typedef " << bt->nested_type_name (scope) - << " " << tdef->nested_type_name (scope) << ";" << be_nl; - // typedef the _var, _out types - *os << "typedef " << bt->nested_type_name (scope, "_var") - << " " << tdef->nested_type_name (scope, "_var") << ";" << be_nl; - *os << "typedef " << bt->nested_type_name (scope, "_out") - << " " << tdef->nested_type_name (scope, "_out") << ";" << be_nl; - return 0; -} - -int -be_visitor_typedef_ch::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_union) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_union (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_union - " - "base class visitor failed \n" - ), -1); - } - } - - // now generate the typedefs - os->indent (); - // typedef the type and the _slice type - *os << "typedef " << bt->nested_type_name (scope) - << " " << tdef->nested_type_name (scope) << ";" << be_nl; - // typedef the _var, _out types - *os << "typedef " << bt->nested_type_name (scope, "_var") - << " " << tdef->nested_type_name (scope, "_var") << ";" << be_nl; - *os << "typedef " << bt->nested_type_name (scope, "_out") - << " " << tdef->nested_type_name (scope, "_out") << ";" << be_nl; - return 0; -} - -// ****************************************************** -// Typedef visitor for client inline -// ****************************************************** - -be_visitor_typedef_ci::be_visitor_typedef_ci (be_visitor_context *ctx) - : be_visitor_typedef (ctx) -{ -} - -be_visitor_typedef_ci::~be_visitor_typedef_ci (void) -{ -} - -int -be_visitor_typedef_ci::visit_typedef (be_typedef *node) -{ - TAO_OutStream *os; // output stream - - os = this->ctx_->stream (); - - // In general, we may have a chain of typedefs. i.e., - // typedef sequence X; - // typedef X Y; - // typedef Y Z; and so on - // The first time we will be in will be for node Z for which the code - // generation has to take place. However, it is not enough to just generate - // code that looks like - - // typedef Y Z; - // For different types (in this case we have a sequence), we will need - // typedefs for the _var and _out types for Z. If it had been an array, we - // will additionally have the _forany type as well as inlined *_alloc - // methods. - // - // Finally, we need to differentiate between the case where we were - // generating code for - // typedef sequence X; and - // typedef Y Z; where Y was somehow aliased to the sequence. In the former - // case, we will need to generate all the code for sequence or whatever - // the type maybe. In the latter, we just need typedefs for the type and all - // associated _var, _out, and other types. - - be_type *bt; // base type - - if (this->ctx_->tdef ()) - { - // the fact that we are here indicates that we were generating code for a - // typedef node whose base type also happens to be another typedef-ed - // (i.e. an alias) node for another (possibly alias) node - - this->ctx_->alias (node); // save this alias - - // grab the most primitive base type in the chain to avoid recusrsively - // going thru this visit method - bt = node->primitive_base_type (); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "bad primitive base type\n" - ), -1); - } - // accept on this base type - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - - this->ctx_->alias (0); - } - else - { - // the context has not stored any "tdef" node. So we must be in here for - // the first time - this->ctx_->tdef (node); // save the typedef node - - // grab the immediate base type node - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "bad base type\n" - ), -1); - } - // accept on this base type - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - - this->ctx_->tdef (0); - } - return 0; -} - -int -be_visitor_typedef_ci::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_array) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_array (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ci::" - "visit_array - " - "base class visitor failed \n" - ), -1); - } - } - else - { - // generate the inline code for alloc, dup, copy, and free methods - - // alloc method - os->indent (); - *os << "ACE_INLINE " << tdef->name () << "_slice *" << be_nl; - *os << tdef->name () << "_alloc (void)" << be_nl; - *os << "{" << be_idt_nl; - *os << "return " << bt->name () << "_alloc ();" << be_uidt_nl; - *os << "}\n\n"; - - // dup method - os->indent (); - *os << "ACE_INLINE " << tdef->name () << "_slice *" << be_nl; - *os << tdef->name () << "_dup (const " << tdef->name () - << "_slice *_tao_src)" << be_nl; - *os << "{" << be_idt_nl; - *os << "return " << bt->name () << "_dup (_tao_src);" << be_uidt_nl; - *os << "}\n\n"; - - // copy method - os->indent (); - *os << "ACE_INLINE void" << be_nl; - *os << tdef->name () << "_copy (" << tdef->name () - << "_slice *_tao_dest, const " << tdef->name () - << "_slice *_tao_src)" << be_nl; - *os << "{" << be_idt_nl; - *os << bt->name () << "_copy (_tao_dest, _tao_src);" << be_uidt_nl; - *os << "}\n\n"; - - // free method - os->indent (); - *os << "ACE_INLINE void" << be_nl; - *os << tdef->name () << "_free (" << tdef->name () - << "_slice *_tao_src)" << be_nl; - *os << "{" << be_idt_nl; - *os << bt->name () << "_free (_tao_src);" << be_uidt_nl; - *os << "}\n\n"; - } - return 0; -} - -int -be_visitor_typedef_ci::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_sequence) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_sequence (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ci::" - "visit_sequence - " - "base class visitor failed \n" - ), -1); - } - } - return 0; -} - -int -be_visitor_typedef_ci::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_struct) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_structure (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ci::" - "visit_structure - " - "base class visitor failed \n" - ), -1); - } - } - return 0; -} - -int -be_visitor_typedef_ci::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_union) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_union (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ci::" - "visit_union - " - "base class visitor failed \n" - ), -1); - } - } - return 0; -} - -// ****************************************************** -// Typedef visitor for client stubs -// ****************************************************** - -be_visitor_typedef_cs::be_visitor_typedef_cs (be_visitor_context *ctx) - : be_visitor_typedef (ctx) -{ -} - -be_visitor_typedef_cs::~be_visitor_typedef_cs (void) -{ -} - -int -be_visitor_typedef_cs::visit_typedef (be_typedef *node) -{ - TAO_OutStream *os; // output stream - - os = this->ctx_->stream (); - - // In general, we may have a chain of typedefs. i.e., - // typedef sequence X; - // typedef X Y; - // typedef Y Z; and so on - // The first time we will be in will be for node Z for which the code - // generation has to take place. However, it is not enough to just generate - // code that looks like - - // typedef Y Z; - // For different types (in this case we have a sequence), we will need - // typedefs for the _var and _out types for Z. If it had been an array, we - // will additionally have the _forany type as well as inlined *_alloc - // methods. - // - // Finally, we need to differentiate between the case where we were - // generating code for - // typedef sequence X; and - // typedef Y Z; where Y was somehow aliased to the sequence. In the former - // case, we will need to generate all the code for sequence or whatever - // the type maybe. In the latter, we just need typedefs for the type and all - // associated _var, _out, and other types. - - be_type *bt; // base type - - if (this->ctx_->tdef ()) - { - // the fact that we are here indicates that we were generating code for a - // typedef node whose base type also happens to be another typedef-ed - // (i.e. an alias) node for another (possibly alias) node - - this->ctx_->alias (node); // save this alias - - // grab the most primitive base type in the chain to avoid recusrsively - // going thru this visit method - bt = node->primitive_base_type (); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "bad primitive base type\n" - ), -1); - } - // accept on this base type - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - this->ctx_->alias (0); - } - else - { - // the context has not stored any "tdef" node. So we must be in here for - // the first time - this->ctx_->tdef (node); // save the typedef node - - // grab the immediate base type node - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "bad base type\n" - ), -1); - } - // accept on this base type - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - - if (!node->imported ()) - { - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor *visitor; - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_TYPECODE_DEFN); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_cs::" - "visit_typedef - " - "TypeCode definition failed\n" - ), -1); - } - - } - this->ctx_->tdef (0); - } - - return 0; -} - -// *************************************************************************** -// Typedef visitor for generating Any operator declarations in the client header -// *************************************************************************** - -be_visitor_typedef_any_op_ch::be_visitor_typedef_any_op_ch -(be_visitor_context *ctx) - : be_visitor_typedef (ctx) -{ -} - -be_visitor_typedef_any_op_ch::~be_visitor_typedef_any_op_ch (void) -{ -} - -int -be_visitor_typedef_any_op_ch::visit_typedef (be_typedef *node) -{ - if (node->cli_hdr_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the Any <<= and >>= operator declarations - // Any <<= and >>= operators - os->indent (); - - // In general, we may have a chain of typedefs. i.e., - // typedef sequence X; - // typedef X Y; - // typedef Y Z; and so on - // The first time we will be in will be for node Z for which the code - // generation has to take place. However, it is not enough to just generate - // code that looks like - - // typedef Y Z; - // For different types (in this case we have a sequence), we will need - // typedefs for the _var and _out types for Z. If it had been an array, we - // will additionally have the _forany type as well as inlined *_alloc, _dup, - // and _free methods. - // - // Finally, we need to differentiate between the case where we were - // generating code for - // typedef sequence X; and - // typedef Y Z; where Y was somehow aliased to the sequence. In the former - // case, we will need to generate all the code for sequence or whatever - // the type maybe. In the latter, we just need typedefs for the type and all - // associated _var, _out, and other types. - - be_type *bt; // base type - - if (this->ctx_->tdef ()) - { - // the fact that we are here indicates that we were generating code for a - // typedef node whose base type also happens to be another typedef-ed - // (i.e. an alias) node for another (possibly alias) node - - this->ctx_->alias (node); // save this alias - - // grab the most primitive base type in the chain to avoid recusrsively - // going thru this visit method - bt = node->primitive_base_type (); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_ch::" - "visit_typedef - " - "bad primitive base type\n" - ), -1); - } - - // accept on this base type, but generate code for the typedef node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_ch::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - this->ctx_->alias (0); // reset - } - else - { - // the context has not stored any "tdef" node. So we must be in here for - // the first time - this->ctx_->tdef (node); // save the typedef node - - // grab the immediate base type node - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_ch::" - "visit_typedef - " - "bad base type\n" - ), -1); - } - - // accept on this base type, but generate code for the typedef node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_ch::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - - this->ctx_->tdef (0); // reset - } - - node->cli_hdr_any_op_gen (1); - return 0; -} - -int -be_visitor_typedef_any_op_ch::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (!bt->imported () && - bt->node_type () == AST_Decl::NT_array) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_array (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_ch::" - "visit_array - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_any_op_ch::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_enum) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_enum (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_ch::" - "visit_enum - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_any_op_ch::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_sequence) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_sequence (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_ch::" - "visit_sequence - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_any_op_ch::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_struct) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_structure (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_ch::" - "visit_structure - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_any_op_ch::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_union) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_union (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_ch::" - "visit_union - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -// *************************************************************************** -// Typedef visitor for generating Any operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_typedef_any_op_cs::be_visitor_typedef_any_op_cs -(be_visitor_context *ctx) - : be_visitor_typedef (ctx) -{ -} - -be_visitor_typedef_any_op_cs::~be_visitor_typedef_any_op_cs (void) -{ -} - -int -be_visitor_typedef_any_op_cs::visit_typedef (be_typedef *node) -{ - if (node->cli_stub_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // generate the Any <<= and >>= operator declarations - // Any <<= and >>= operators - os->indent (); - - // In general, we may have a chain of typedefs. i.e., - // typedef sequence X; - // typedef X Y; - // typedef Y Z; and so on - // The first time we will be in will be for node Z for which the code - // generation has to take place. However, it is not enough to just generate - // code that looks like - - // typedef Y Z; - // For different types (in this case we have a sequence), we will need - // typedefs for the _var and _out types for Z. If it had been an array, we - // will additionally have the _forany type as well as inlined *_alloc, _dup, - // and _free methods. - // - // Finally, we need to differentiate between the case where we were - // generating code for - // typedef sequence X; and - // typedef Y Z; where Y was somehow aliased to the sequence. In the former - // case, we will need to generate all the code for sequence or whatever - // the type maybe. In the latter, we just need typedefs for the type and all - // associated _var, _out, and other types. - - be_type *bt; // base type - - if (this->ctx_->tdef ()) - { - // the fact that we are here indicates that we were generating code for a - // typedef node whose base type also happens to be another typedef-ed - // (i.e. an alias) node for another (possibly alias) node - - this->ctx_->alias (node); // save this alias - - // grab the most primitive base type in the chain to avoid recusrsively - // going thru this visit method - bt = node->primitive_base_type (); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_cs::" - "visit_typedef - " - "bad primitive base type\n" - ), -1); - } - - // accept on this base type, but generate code for the typedef node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_cs::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - this->ctx_->alias (0); // reset - } - else - { - // the context has not stored any "tdef" node. So we must be in here for - // the first time - this->ctx_->tdef (node); // save the typedef node - - // grab the immediate base type node - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_cs::" - "visit_typedef - " - "bad base type\n" - ), -1); - } - - // accept on this base type, but generate code for the typedef node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_cs::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - - this->ctx_->tdef (0); // reset - } - - node->cli_stub_any_op_gen (1); - return 0; -} - -int -be_visitor_typedef_any_op_cs::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (!bt->imported () && - bt->node_type () == AST_Decl::NT_array) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_array (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_cs::" - "visit_array - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_any_op_cs::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_enum) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_enum (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_cs::" - "visit_enum - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_any_op_cs::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_sequence) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_sequence (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_cs::" - "visit_sequence - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_any_op_cs::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_struct) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_structure (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_cs::" - "visit_structure - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_any_op_cs::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_union) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_union (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_cs::" - "visit_union - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_union.cpp b/TAO/TAO_IDL/be/be_visitor_union.cpp deleted file mode 100644 index 09ea167c66b..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union.cpp +++ /dev/null @@ -1,1036 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_union.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Union -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union.h" - -// generic struct visitor -be_visitor_union::be_visitor_union (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_union::~be_visitor_union (void) -{ -} - -// visit the Union node and its scope -int -be_visitor_union::visit_union (be_union *node) -{ - return -1; // must be overriden -} - -int -be_visitor_union::visit_union_branch (be_union_branch *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_UNION_PUBLIC_CH: - ctx.state (TAO_CodeGen::TAO_UNION_PUBLIC_CH); - break; - case TAO_CodeGen::TAO_UNION_PRIVATE_CH: - ctx.state (TAO_CodeGen::TAO_UNION_PRIVATE_CH); - break; - case TAO_CodeGen::TAO_UNION_PUBLIC_CI: - ctx.state (TAO_CodeGen::TAO_UNION_PUBLIC_CI); - break; - case TAO_CodeGen::TAO_UNION_PUBLIC_CS: - ctx.state (TAO_CodeGen::TAO_UNION_PUBLIC_CS); - break; - case TAO_CodeGen::TAO_UNION_PUBLIC_ASSIGN_CS: - ctx.state (TAO_CodeGen::TAO_UNION_PUBLIC_ASSIGN_CS); - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union::" - "visit_union_branch - " - "Bad context state\n" - ), -1); - } - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union::" - "visit_union_branch - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union::" - "visit_union_branch - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// ****************************************************** -// for client header -// ****************************************************** - -be_visitor_union_ch::be_visitor_union_ch (be_visitor_context *ctx) - : be_visitor_union (ctx) -{ -} - -be_visitor_union_ch::~be_visitor_union_ch (void) -{ -} - -// visit the Union node and its scope -int be_visitor_union_ch::visit_union (be_union *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; // type node - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - - if (!node->cli_hdr_gen () && !node->imported ()) // not already generated and - // not imported - { - os = this->ctx_->stream (); - - // generate the ifdefined macro for the union type - os->gen_ifdef_macro (node->flatname ()); - os->indent (); // start with the current indentation level - *os << "class " << node->local_name () << be_nl - << "{" << be_nl - << "public:" << be_idt_nl - - // generate default and copy constructors - << node->local_name () << " (void); // default constructor" << be_nl - << node->local_name () << " (const " << node->local_name () - << " &); // copy constructor" << be_nl - // generate destructor - << "~" << node->local_name () << " (void); // destructor" << be_nl - // generate assignment operator - << node->local_name () << " &operator= (const " - << node->local_name () << " &); // copy constructor\n\n"; - - // retrieve the disriminant type - bt = be_type::narrow_from_decl (node->disc_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ch::" - "visit_union - " - "bad disciminant type\n"), -1); - } - - // the discriminant type may have to be defined here if it was an enum - // declaration inside of the union statement. - - ctx.state (TAO_CodeGen::TAO_UNION_DISCTYPEDEFN_CH); // set current code - // gen state - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ch::" - "visit_union - " - "bad visitor\n"), -1); - } - - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ch::" - " visit_union - " - "codegen for discriminant failed\n"), -1); - } - delete visitor; - - // now generate the public defn for the union branch members. For this, - // set our state to reflect what we are aiming to do - this->ctx_->state (TAO_CodeGen::TAO_UNION_PUBLIC_CH); // set current code - // gen state - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ch::" - "visit_union - " - "codegen for public defn of union members\n"), - -1); - } - - // now generate the private data members of the union - os->decr_indent (); - *os << "private:\n"; - os->incr_indent (); - *os << bt->nested_type_name (node) << " disc_;" << be_nl; // emit the - // ACE_NESTED_CLASS macro - - // the members are inside of a union - *os << "union" << be_nl; - *os << "{\n"; - os->incr_indent (0); - this->ctx_->state (TAO_CodeGen::TAO_UNION_PRIVATE_CH); // set current - // code gen state - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ch::" - "visit_union - " - "codegen for private members of union\n"), -1); - } - - os->decr_indent (); - *os << "}; // end of union \n"; - - os->decr_indent (); - *os << "}; // " << node->name () << "\n\n"; - - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_TYPECODE_DECL); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ch::" - "visit_union - " - "TypeCode declaration failed\n" - ), -1); - } - - - os->gen_endif (); - - // generate the ifdefined macro for the _var type - os->gen_ifdef_macro (node->flatname (), "_var"); - // generate var defn - if (node->gen_var_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ch::" - "visit_union - " - "codegen for _var\n"), -1); - } - os->gen_endif (); - - // generate the ifdefined macro for the array type - os->gen_ifdef_macro (node->flatname (), "_out"); - // a class is generated for an out defn only for a variable length struct - if (node->size_type () == be_decl::VARIABLE) - { - if (node->gen_out_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ch::" - "visit_union - " - "codegen for _out\n"), -1); - } - } - else - { - os->indent (); - *os << "typedef " << node->local_name () << " &" << node->local_name - () << "_out;\n\n"; - } - os->gen_endif (); - - node->cli_hdr_gen (I_TRUE); - } - - return 0; -} - -// ****************************************************** -// for client inline -// ****************************************************** - -be_visitor_union_ci::be_visitor_union_ci (be_visitor_context *ctx) - : be_visitor_union (ctx) -{ -} - -be_visitor_union_ci::~be_visitor_union_ci (void) -{ -} - -// visit the Union node and its scope -int be_visitor_union_ci::visit_union (be_union *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; // type node - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - - if (!node->cli_inline_gen () && !node->imported ()) - { - os = this->ctx_->stream (); - - *os << "// *************************************************************" - << be_nl; - *os << "// Inline operations for union " << node->name () << be_nl; - *os << "// *************************************************************\n\n"; - - // generate the default constructor and the destructor here - os->indent (); - *os << "// default constructor" << be_nl - << "ACE_INLINE" << be_nl - << node->name () << "::" << node->local_name () << " (void)" << be_nl - << "{" << be_nl - << "}" << be_nl << be_nl; - - *os << "// destructor" << be_nl - << "ACE_INLINE" << be_nl - << node->name () << "::~" << node->local_name () << " (void)" << be_nl - << "{" << be_nl - << "}\n\n"; - - // the discriminant type may have to be defined here if it was an enum - // declaration inside of the union statement. - - bt = be_type::narrow_from_decl (node->disc_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ci::" - "visit_union - " - "bad discriminant type\n"), -1); - } - - ctx.state (TAO_CodeGen::TAO_UNION_DISCTYPEDEFN_CI); // set current code - // gen state - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ci::" - "visit_union - " - "bad visitor\n"), -1); - } - // generate code for the discriminant - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ci::" - "visit union - " - "codegen for discrminant failed\n"), -1); - } - - // now generate the implementation of the access methods for the - // union. For this set our state - this->ctx_->state (TAO_CodeGen::TAO_UNION_PUBLIC_CI); - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ci::" - "visit_union - " - "codegen for scope failed\n"), -1); - } - - // generate the ifdefined macro for the array type - os->gen_ifdef_macro (node->flatname (), "_var"); - if (node->gen_var_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ci::" - "visit_union - " - "codegen for _var failed\n"), -1); - } - os->gen_endif (); - - // generate the ifdefined macro for the array type then generate the _out - // impl - os->gen_ifdef_macro (node->flatname (), "_out"); - if (node->size_type () == be_decl::VARIABLE - && node->gen_out_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ci::" - "visit_union - " - "codegen for _out failed\n"), -1); - } - os->gen_endif (); - - node->cli_inline_gen (I_TRUE); - } - return 0; -} - -// ****************************************************** -// for client stubs -// ****************************************************** - -be_visitor_union_cs::be_visitor_union_cs (be_visitor_context *ctx) - : be_visitor_union (ctx) -{ -} - -be_visitor_union_cs::~be_visitor_union_cs (void) -{ -} - -// visit the Union_cs node and its scope -int be_visitor_union_cs::visit_union (be_union *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; // for discriminant type - - if (!node->cli_stub_gen () && !node->imported ()) - { - os = this->ctx_->stream (); - - be_visitor_context ctx (*this->ctx_); - // the discriminant type may have to be defined here if it was an enum - // declaration inside of the union statement. We need to generate its - // typecode - - bt = be_type::narrow_from_decl (node->disc_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_cs::" - "visit_union - " - "bad discriminant type\n"), -1); - } - - ctx.state (TAO_CodeGen::TAO_UNION_DISCTYPEDEFN_CS); // set current code - // gen state - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_cs::" - "visit_union - " - "bad visitor\n"), -1); - } - // generate code for the discriminant - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_cs::" - "visit union - " - "codegen for discrminant failed\n"), -1); - } - - // first generate code for any of the members (if required, e.g., - // anonymous sequences, structs, unions, arrays) - this->ctx_->state (TAO_CodeGen::TAO_UNION_PUBLIC_CS); // set current code - // gen state - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_cs" - "visit_union - " - "codegen for scope failed\n"), -1); - } - - // now generate the operations on the union such as the copy constructor - // and the assignment operator - - *os << "// *************************************************************" - << be_nl; - *os << "// Operations for union " << node->name () << be_nl; - *os << "// *************************************************************\n\n"; - - this->ctx_->state (TAO_CodeGen::TAO_UNION_PUBLIC_ASSIGN_CS); - - // generate the copy constructor and the assignment operator here - os->indent (); - *os << "// copy constructor" << be_nl; - *os << node->name () << "::" << node->local_name () << " (const " << - node->name () << " &u)" << be_nl; - *os << "{\n"; - os->incr_indent (); - // first set the discriminant - *os << "this->disc_ = u.disc_;" << be_nl; - // now switch based on the disc value - *os << "switch (this->disc_)" << be_nl; - *os << "{\n"; - os->incr_indent (0); - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_cs" - "visit_union - " - "codegen for copy ctor failed\n"), -1); - } - - os->decr_indent (); - *os << "}\n"; - os->decr_indent (); - *os << "}\n\n"; - - // assignment operator - os->indent (); - *os << "// assignment operator" << be_nl; - *os << node->name () << " &" << be_nl; // return type - *os << node->name () << "::operator= (const " << - node->name () << " &u)" << be_nl; - *os << "{\n"; - os->incr_indent (); - // first set the discriminant - *os << "this->disc_ = u.disc_;" << be_nl; - // now switch based on the disc value - *os << "switch (this->disc_)" << be_nl; - *os << "{\n"; - os->incr_indent (0); - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_cs" - "visit_union - " - "codegen for assign op failed\n"), -1); - } - - os->decr_indent (); - *os << "}" << be_nl; - *os << "return *this;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_TYPECODE_DEFN); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_cs::" - "visit_union - " - "TypeCode definition failed\n" - ), -1); - } - - - node->cli_stub_gen (I_TRUE); - } - return 0; -} - - -// ************************************************************************* -// be_visitor_discriminant_ch - visitor for discriminant in client header file -// ************************************************************************* - -be_visitor_union_discriminant_ch::be_visitor_union_discriminant_ch -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_union_discriminant_ch::~be_visitor_union_discriminant_ch (void) -{ -} - -int -be_visitor_union_discriminant_ch::visit_enum (be_enum *node) -{ - TAO_OutStream *os; // output stream - be_union *bu = - this->ctx_->be_node_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - os = this->ctx_->stream (); - - if (bt->node_type () != AST_Decl::NT_typedef // not a typedef - && bt->is_child (bu)) // bt is defined inside the union - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the enum declaration - ctx.state (TAO_CodeGen::TAO_ENUM_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_discriminant_ch::" - "visit_enum - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_discriminant_ch::" - "visit_enum - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - os->indent (); - // the set method - *os << "void _d (" << bt->nested_type_name (bu) << ");" << be_nl; - // the get method - *os << bt->nested_type_name (bu) << " _d (void) const;\n\n"; - return 0; -} - -int -be_visitor_union_discriminant_ch::visit_predefined_type (be_predefined_type - *node) -{ - TAO_OutStream *os; // output stream - be_union *bu = - this->ctx_->be_node_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - os = this->ctx_->stream (); - - os->indent (); - // the set method - *os << "void _d (" << bt->nested_type_name (bu) << ");" << be_nl; - // the get method - *os << bt->nested_type_name (bu) << " _d (void) const;\n\n"; - return 0; -} - -int -be_visitor_union_discriminant_ch::visit_typedef (be_typedef *node) -{ - TAO_OutStream *os; // output stream - - os = this->ctx_->stream (); - this->ctx_->alias (node); // save the typedef node for use in code generation - // as we visit the base type - - // the node to be visited in the base primitve type that gets typedefed - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_discriminant_ch::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - this->ctx_->alias (0); - return 0; -} - -// ************************************************************************* -// be_visitor_discriminant_ci - visitor for discriminant in client inline file -// ************************************************************************* - -be_visitor_union_discriminant_ci::be_visitor_union_discriminant_ci -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_union_discriminant_ci::~be_visitor_union_discriminant_ci (void) -{ -} - -int -be_visitor_union_discriminant_ci::visit_enum (be_enum *node) -{ - TAO_OutStream *os; // output stream - be_union *bu = - this->ctx_->be_node_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - os = this->ctx_->stream (); - - os->indent (); - // the set method - *os << "// accessor to set the discriminant" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::_d (" << bt->name () - << " discval)" << be_nl - << "{" << be_idt_nl - << "this->disc_ = discval;" << be_uidt_nl - << "}" << be_nl; - - // the get method - *os << "// accessor to get the discriminant" << be_nl - << "ACE_INLINE " << bt->name () << be_nl - << bu->name () << "::_d (void) const" << be_nl - << "{" << be_idt_nl - << "return this->disc_;" << be_uidt_nl - << "}\n\n"; - return 0; -} - -int -be_visitor_union_discriminant_ci::visit_predefined_type (be_predefined_type - *node) -{ - TAO_OutStream *os; // output stream - be_union *bu = - this->ctx_->be_node_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - os = this->ctx_->stream (); - - os->indent (); - // the set method - *os << "// accessor to set the discriminant" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::_d (" << bt->name () - << " discval)" << be_nl - << "{" << be_idt_nl - << "this->disc_ = discval;" << be_uidt_nl - << "}" << be_nl; - - // the get method - *os << "// accessor to get the discriminant" << be_nl - << "ACE_INLINE " << bt->name () << be_nl - << bu->name () << "::_d (void) const" << be_nl - << "{" << be_idt_nl - << "return this->disc_;" << be_uidt_nl - << "}\n\n"; - return 0; -} - -int -be_visitor_union_discriminant_ci::visit_typedef (be_typedef *node) -{ - TAO_OutStream *os; // output stream - - os = this->ctx_->stream (); - this->ctx_->alias (node); // save the typedef node for use in code generation - // as we visit the base type - - // the node to be visited in the base primitve type that gets typedefed - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_discriminant_ci::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - this->ctx_->alias (0); - - return 0; -} - -// ************************************************************************* -// be_visitor_discriminant_cs - visitor for discriminant in client stubs -// ************************************************************************* - -be_visitor_union_discriminant_cs::be_visitor_union_discriminant_cs -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_union_discriminant_cs::~be_visitor_union_discriminant_cs (void) -{ -} - -int -be_visitor_union_discriminant_cs::visit_enum (be_enum *node) -{ - TAO_OutStream *os; // output stream - be_union *bu = - this->ctx_->be_node_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - os = this->ctx_->stream (); - - if (bt->node_type () != AST_Decl::NT_typedef // not a typedef - && bt->is_child (bu)) // bt is defined inside the union - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // generate the typecode for the enum - ctx.state (TAO_CodeGen::TAO_ENUM_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_discriminant_cs::" - "visit_enum - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_discriminant_cs::" - "visit_enum - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} - -// *************************************************************************** -// Union visitor for generating Any operator declarations in the client header -// *************************************************************************** - -be_visitor_union_any_op_ch::be_visitor_union_any_op_ch -(be_visitor_context *ctx) - : be_visitor_union (ctx) -{ -} - -be_visitor_union_any_op_ch::~be_visitor_union_any_op_ch (void) -{ -} - -int -be_visitor_union_any_op_ch::visit_union (be_union *node) -{ - if (node->cli_hdr_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the Any <<= and >>= operator declarations - os->indent (); - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, const " << node->name () - << " &); // copying version" << be_nl; - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, " << node->name () - << "*); // noncopying version" << be_nl; - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator>>= (const CORBA::Any &, " - << node->name () << " *&);\n"; - - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union::visit_union - " - "codegen for scope failed\n"), -1); - } - - node->cli_hdr_any_op_gen (1); - return 0; -} - -int -be_visitor_union_any_op_ch::visit_union_branch (be_union_branch *node) -{ - be_type *bt; // field's type - - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_any_op_ch::" - "visit_union_branch - " - "Bad field type\n" - ), -1); - } - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_any_op_ch::" - "visit_field - " - "codegen for field type failed\n" - ), -1); - } - return 0; -} - -// *************************************************************************** -// Union visitor for generating Any operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_union_any_op_cs::be_visitor_union_any_op_cs -(be_visitor_context *ctx) - : be_visitor_union (ctx) -{ -} - -be_visitor_union_any_op_cs::~be_visitor_union_any_op_cs (void) -{ -} - -int -be_visitor_union_any_op_cs::visit_union (be_union *node) -{ - if (node->cli_stub_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // generate the Any <<= and >>= operator declarations - os->indent (); - *os << "void operator<<= (CORBA::Any &_tao_any, const " - << node->name () << " &_tao_elem) // copying" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "_tao_any.replace (" << node->tc_name () << ", new " - << node->name () << "(_tao_elem), 1, _tao_env);" << be_uidt_nl - << "}" << be_nl; - - *os << "void operator<<= (CORBA::Any &_tao_any, " - << node->name () << " *_tao_elem) // non copying" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "_tao_any.replace (" << node->tc_name () << ", " - << "_tao_elem, 1, _tao_env); // consume it" << be_uidt_nl - << "}" << be_nl; - - *os << "CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, " - << node->name () << " *&_tao_elem)" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "if (!_tao_any.type ()->equal (" << node->tc_name () - << ", _tao_env)) return 0; // not equal" << be_nl - << "if (_tao_any.any_owns_data ())" << be_nl - << "{" << be_idt_nl - << "ACE_NEW_RETURN (_tao_elem, " << node->name () << ", 0);" - << be_nl - << "TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());" - << be_nl - << "if (stream.decode (" << node->tc_name () - << ", _tao_elem, 0, _tao_env)" << be_nl - << " == CORBA::TypeCode::TRAVERSE_CONTINUE)" << be_nl - << "{" << be_idt_nl - << "((CORBA::Any *)&_tao_any)->replace (_tao_any.type (), " - << "_tao_elem, 1, _tao_env);" - << be_nl - << " return 1;" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl // decode failed - << "{" << be_idt_nl - << "delete _tao_elem;" << be_nl - << "return 0;" << be_uidt_nl - << "}" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl // else any does not own the data - << "{" << be_idt_nl - << "_tao_elem = (" << node->name () << " *)_tao_any.value ();" - << be_nl - << "return 1;" << be_uidt_nl - << "}" << be_uidt_nl - << "}\n\n"; - - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union::visit_union - " - "codegen for scope failed\n"), -1); - } - - node->cli_stub_any_op_gen (1); - return 0; -} - -int -be_visitor_union_any_op_cs::visit_union_branch (be_union_branch *node) -{ - be_type *bt; // field's type - - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_any_op_cs::" - "visit_union_branch - " - "Bad field type\n" - ), -1); - } - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_any_op_cs::" - "visit_union_branch - " - "codegen for field type failed\n" - ), -1); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch.cpp deleted file mode 100644 index 0fb4047c38f..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union_branch.cpp +++ /dev/null @@ -1,2110 +0,0 @@ -// -// $Id$ -// -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_union_branch.cpp -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Union_Branch" node -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union_branch.h" - -// ********************************************** -// visitor for union_branch in the client header file -// ********************************************** - -// constructor -be_visitor_union_branch_public_ch::be_visitor_union_branch_public_ch -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_union_branch_public_ch::~be_visitor_union_branch_public_ch (void) -{ -} - -// visit the union_branch node -int -be_visitor_union_branch_public_ch::visit_union_branch (be_union_branch *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; // union_branch's type - - os = this->ctx_->stream (); - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_union_branch - " - "Bad union_branch type\n" - ), -1); - } - - this->ctx_->node (node); // save the node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_union_branch - " - "codegen for union_branch type failed\n" - ), -1); - } - return 0; -} - -// =visit operations on all possible data types that a union_branch can be - -// visit array type -int -be_visitor_union_branch_public_ch::visit_array (be_array *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch member - be_decl *bu = this->ctx_->scope (); // get the enclosing union node - be_type *bt; - - // check if we are visiting this via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_array - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - if (bt->node_type () != AST_Decl::NT_typedef // not a typedef - && bt->is_child (bu)) // bt is defined inside the union - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the enum declaration - ctx.state (TAO_CodeGen::TAO_ARRAY_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_array - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_array - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - // now use this enum as a "type" for the subsequent declarator - os->indent (); // start from current indentation - // the set method - *os << "void " << ub->local_name () << " (" - << bt->nested_type_name (bu) << ");// set" - << be_nl; - // the get method - *os << bt->nested_type_name (bu, "_slice *") << " " << ub->local_name () - << " (void) const; // get method\n\n"; - - return 0; -} - -// visit enum type -int -be_visitor_union_branch_public_ch::visit_enum (be_enum *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch member - be_decl *bu = this->ctx_->scope (); // get the enclosing union node - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_enum - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - if (bt->node_type () != AST_Decl::NT_typedef // not a typedef - && bt->is_child (bu)) // bt is defined inside the union - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the enum declaration - ctx.state (TAO_CodeGen::TAO_ENUM_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_enum - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_enum - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - // now use this enum as a "type" for the subsequent declarator - os->indent (); // start from current indentation - // the set method - *os << "void " << ub->local_name () << " (" - << bt->nested_type_name (bu) << ");// set" - << be_nl; - // the get method - *os << bt->nested_type_name (bu) << " " << ub->local_name () - << " (void) const; // get method\n\n"; - - return 0; -} - -// visit interface type -int -be_visitor_union_branch_public_ch::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_interface - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); // start from current indentation - // set method - *os << "void " << ub->local_name () << " (" - << bt->nested_type_name (bu, "_ptr") - << ");// set" << be_nl; - // get method - *os << bt->nested_type_name (bu, "_ptr") << " " << ub->local_name () - << " (void) const; // get method\n\n"; - return 0; -} - -// visit interface forward type -int -be_visitor_union_branch_public_ch::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_interface_fwd - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); // start from current indentation - // set method - *os << "void " << ub->local_name () << " (" - << bt->nested_type_name (bu, "_ptr") - << ");// set" << be_nl; - // get method - *os << bt->nested_type_name (bu, "_ptr") << " " << ub->local_name () - << " (void) const; // get method\n\n"; - return 0; -} - -// visit predefined type -int -be_visitor_union_branch_public_ch::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_predefined_type - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); // start from current indentation - if (node->pt () == AST_PredefinedType::PT_pseudo) - { - // set method - *os << "void " << ub->local_name () << " (" - << bt->nested_type_name (bu, "_ptr") << ");// set" << be_nl; - // get method - *os << bt->nested_type_name (bu, "_ptr") << " " << ub->local_name () - << " (void) const; // get method\n\n"; - } - else - { - // set method - *os << "void " << ub->local_name () << " (" - << bt->nested_type_name (bu) << ");// set" << be_nl; - // get method - *os << bt->nested_type_name (bu) << " " << ub->local_name () - << " (void) const; // get method\n\n"; - } - return 0; -} - -// visit sequence type -int -be_visitor_union_branch_public_ch::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_sequence - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - if (bt->node_type () != AST_Decl::NT_typedef // not a typedef - && bt->is_child (bu)) // bt is defined inside the union - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the sequence declaration - ctx.state (TAO_CodeGen::TAO_SEQUENCE_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_sequence - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_sequence - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - os->indent (); - // set method - *os << "void " << ub->local_name () << " (const " - << bt->nested_type_name (bu) << " &);// set" << be_nl; - // read-only - *os << "const " << bt->nested_type_name (bu) << " &" - << ub->local_name () << " (void) const; // get method (read only)" - << be_nl; - // read/write - *os << bt->nested_type_name (bu) << " &" << ub->local_name () - << " (void); // get method (read/write only)\n\n"; - - return 0; -} - -// visit string type -int -be_visitor_union_branch_public_ch::visit_string (be_string *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_string - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); - // three methods to set the string value - *os << "void " << ub->local_name () << " (char *); // set" << be_nl; - *os << "void " << ub->local_name () << " (const char *); // set" - << be_nl; - *os << "void " << ub->local_name () << " (const CORBA::String_var&); // set" - << be_nl; - //get method - *os << "const char *" << ub->local_name () - << " (void) const; // get method\n\n"; - return 0; -} - -// visit structure type -int -be_visitor_union_branch_public_ch::visit_structure (be_structure *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_structure - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - if (bt->node_type () != AST_Decl::NT_typedef // not a typedef - && bt->is_child (bu)) // bt is defined inside the union - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the sequence declaration - ctx.state (TAO_CodeGen::TAO_STRUCT_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_structure - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_structure - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - os->indent (); - // set method - *os << "void " << ub->local_name () << " (const " - << bt->nested_type_name (bu) << " &);// set" << be_nl - // read-only - << "const " << bt->nested_type_name (bu) << " &" - << ub->local_name () << " (void) const; // get method (read only)" - << be_nl - // read/write - << bt->nested_type_name (bu) << " &" << ub->local_name () - << " (void); // get method (read/write only)\n\n"; - - return 0; -} - -// visit typedefed type -int -be_visitor_union_branch_public_ch::visit_typedef (be_typedef *node) -{ - TAO_OutStream *os; // output stream - - os = this->ctx_->stream (); - os->indent (); // start from current indentation level - this->ctx_->alias (node); // save the node for use in code generation and - // indicate that the union_branch of the union_branch node - // is a typedefed quantity - - // make a decision based on the primitive base type - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_spec_ch::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - this->ctx_->alias (0); - return 0; -} - -// visit union type -int -be_visitor_union_branch_public_ch::visit_union (be_union *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_union - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - if (bt->node_type () != AST_Decl::NT_typedef // not a typedef - && bt->is_child (bu)) // bt is defined inside the union - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the sequence declaration - ctx.state (TAO_CodeGen::TAO_STRUCT_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_union - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_union - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - os->indent (); - // set method - *os << "void " << ub->local_name () << " (const " - << bt->nested_type_name (bu) << " &);// set" << be_nl - // read-only - << "const " << bt->nested_type_name (bu) << " &" - << ub->local_name () << " (void) const; // get method (read only)" - << be_nl - // read/write - << bt->nested_type_name (bu) << " &" << ub->local_name () - << " (void); // get method (read/write only)\n\n"; - - return 0; -} - -// ********************************************** -// visitor for union_branch in the client header generating the private information -// ********************************************** - -// constructor -be_visitor_union_branch_private_ch::be_visitor_union_branch_private_ch (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_union_branch_private_ch::~be_visitor_union_branch_private_ch (void) -{ -} - -// visit the union_branch node -int -be_visitor_union_branch_private_ch::visit_union_branch (be_union_branch *node) -{ - TAO_OutStream *os; - be_type *bt; // union_branch's type - - os = this->ctx_->stream (); - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cs::" - "visit_union_branch - " - "Bad union_branch type\n" - ), -1); - } - - this->ctx_->node (node); // save the node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cs::" - "visit_union_branch - " - "codegen for union_branch type failed\n" - ), -1); - } - return 0; -} - -// =visit operations on all possible data types that a union_branch can be - -int -be_visitor_union_branch_private_ch::visit_array (be_array *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_array - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); - *os << bt->nested_type_name (bu, "_slice") << " *" << ub->local_name () - << "_;\n"; - return 0; -} - -int -be_visitor_union_branch_private_ch::visit_enum (be_enum *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_enum - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); // start from current indentation - *os << bt->nested_type_name (bu) << " " << ub->local_name () << "_;\n"; - return 0; -} - -int -be_visitor_union_branch_private_ch::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_interface - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); // start from current indentation - // C++ does not allow an object declaration inside a union. Hence we - // must have a pointer. This changes some of the methods - *os << bt->nested_type_name (bu, "_var") << " *" << ub->local_name () << - "_;\n"; - return 0; -} - -int -be_visitor_union_branch_private_ch::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_interface_fwd - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); // start from current indentation - // C++ does not allow an object declaration inside a union. Hence we - // must have a pointer. This changes some of the methods - *os << bt->nested_type_name (bu, "_var") << " *" << ub->local_name () << - "_;\n"; - return 0; -} - -int -be_visitor_union_branch_private_ch::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_predefined_type - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - if (node->pt () == AST_PredefinedType::PT_pseudo) - { - // Cannot have an object inside of a union - os->indent (); // start from current indentation - *os << bt->nested_type_name (bu, "_var") << " *" << ub->local_name () << - "_;\n"; - } - else - { - os->indent (); // start from current indentation - *os << bt->nested_type_name (bu) << " " << ub->local_name () << - "_;\n"; - } - return 0; -} - -int -be_visitor_union_branch_private_ch::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_sequence - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); - // C++ doesn't allow object instances inside unions, so we need a - // pointer - *os << bt->nested_type_name (bu) << " *" << ub->local_name () << "_;\n"; - return 0; -} - -int -be_visitor_union_branch_private_ch::visit_string (be_string *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_string - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - *os << "CORBA::String_var *" << ub->local_name () << "_;\n"; - return 0; -} - -int -be_visitor_union_branch_private_ch::visit_structure (be_structure *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_structure - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); - *os << bt->nested_type_name (bu) << " " << ub->local_name () << "_;\n"; - return 0; -} - -int -be_visitor_union_branch_private_ch::visit_typedef (be_typedef *node) -{ - TAO_OutStream *os; // output stream - - os = this->ctx_->stream (); - this->ctx_->alias (node); // save the typedef node for use in code generation - // as we visit the base type - - // the node to be visited in the base primitve type that gets typedefed - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_union_branch_private_ch::visit_union (be_union *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_union - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); - // C++ doesn't allow object instances inside unions, so we need a - // pointer - *os << bt->nested_type_name (bu) << " *" << ub->local_name () << "_;\n"; - return 0; -} - -// ***************************************************** -// visitor for union_branch in the client inline file -// ***************************************************** - -// constructor -be_visitor_union_branch_public_ci::be_visitor_union_branch_public_ci (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_union_branch_public_ci::~be_visitor_union_branch_public_ci (void) -{ -} - -// visit the union_branch node -int -be_visitor_union_branch_public_ci::visit_union_branch (be_union_branch *node) -{ - TAO_OutStream *os; - be_type *bt; // union_branch's type - - os = this->ctx_->stream (); - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cs::" - "visit_union_branch - " - "Bad union_branch type\n" - ), -1); - } - - this->ctx_->node (node); // save the node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cs::" - "visit_union_branch - " - "codegen for union_branch type failed\n" - ), -1); - } - return 0; -} - -// =visit operations on all possible data types that a union_branch can be - -int -be_visitor_union_branch_public_ci::visit_array (be_array *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_enum - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - if (bt->node_type () != AST_Decl::NT_typedef // not a typedef - && bt->is_child (bu)) // bt is defined inside the union - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the enum declaration - ctx.state (TAO_CodeGen::TAO_ARRAY_CI); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_array - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_array - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - // set method - os->indent (); // start from current indentation - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () << " (" << bt->name () - << " val)// set" << be_nl - << "{\n"; - os->incr_indent (); - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - be_nl; - } - *os << "// set the value" << be_nl - << "this->" << ub->local_name () << "_ = val;\n"; - } - else - { - // default label - // XXXASG - TODO - } - os->decr_indent (); - *os << "}" << be_nl; - - // get method - *os << "// retrieve the member" << be_nl - << "ACE_INLINE " << bt->name () << "_slice *" << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl - << "{\n"; - os->incr_indent (); - *os << "return this->" << ub->local_name () << "_;\n"; - os->decr_indent (); - *os << "}\n\n"; - return 0; -} - -int -be_visitor_union_branch_public_ci::visit_enum (be_enum *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_enum - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - // set method - os->indent (); // start from current indentation - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () << " (" << bt->name () - << " val)// set" << be_nl - << "{\n"; - os->incr_indent (); - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - be_nl; - } - *os << "// set the value" << be_nl - << "this->" << ub->local_name () << "_ = val;\n"; - } - else - { - // default label - // XXXASG - TODO - } - os->decr_indent (); - *os << "}" << be_nl; - - // get method - *os << "// retrieve the member" << be_nl - << "ACE_INLINE " << bt->name () << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl - << "{\n"; - os->incr_indent (); - *os << "return this->" << ub->local_name () << "_;\n"; - os->decr_indent (); - *os << "}\n\n"; - return 0; -} - -int -be_visitor_union_branch_public_ci::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_interface - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - // set method - os->indent (); // start from current indentation - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () << " (" << bt->name () - << "_ptr val)// set" << be_nl - << "{\n"; - os->incr_indent (); - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - be_nl; - } - *os << "// set the value" << be_nl - << "this->" << ub->local_name () << "_ = val;\n"; - } - else - { - // default label - // XXXASG - TODO - } - os->decr_indent (); - *os << "}" << be_nl; - - // get method - *os << "// retrieve the member" << be_nl - << "ACE_INLINE " << bt->name () << "_ptr " << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl - << "{\n"; - os->incr_indent (); - *os << "return this->" << ub->local_name () << "_;\n"; - os->decr_indent (); - *os << "}\n\n"; - return 0; -} - -int -be_visitor_union_branch_public_ci::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_interface_fwd - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - // set method - os->indent (); // start from current indentation - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () << " (" << bt->name () - << "_ptr val)// set" << be_nl - << "{\n"; - os->incr_indent (); - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - be_nl; - } - *os << "// set the value" << be_nl - << "this->" << ub->local_name () << "_ = val;\n"; - } - else - { - // default label - // XXXASG - TODO - } - os->decr_indent (); - *os << "}" << be_nl; - - // get method - *os << "// retrieve the member" << be_nl - << "ACE_INLINE " << bt->name () << "_ptr " << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl - << "{\n"; - os->incr_indent (); - *os << "return this->" << ub->local_name () << "_;\n"; - os->decr_indent (); - *os << "}\n\n"; - return 0; -} - -int -be_visitor_union_branch_public_ci::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_interface - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - // set method - os->indent (); // start from current indentation - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () << " (" << bt->name (); - if (node->pt () == AST_PredefinedType::PT_pseudo) - *os << "_ptr"; - *os << " val)// set" << be_nl - << "{\n"; - os->incr_indent (); - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - be_nl; - } - *os << "// set the value" << be_nl - << "this->" << ub->local_name () << "_ = val;\n"; - } - else - { - // default label - // XXXASG - TODO - } - os->decr_indent (); - *os << "}" << be_nl; - - // get method - *os << "// retrieve the member" << be_nl - << "ACE_INLINE " << bt->name (); - if (node->pt () == AST_PredefinedType::PT_pseudo) - *os << "_ptr"; - *os << be_nl; - *os << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl - << "{\n"; - os->incr_indent (); - *os << "return this->" << ub->local_name () << "_;\n"; - os->decr_indent (); - *os << "}\n\n"; - return 0; -} - -int -be_visitor_union_branch_public_ci::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_sequence - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - // (1) set from a const - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () - << " (const " << bt->name () << " &val)" << be_nl - << "{" << be_idt_nl; - - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->disc_ = " << ub->label ()->label_val () << ";" - << be_nl; - } - *os << "// set the value" << be_nl - << "*this->" << ub->local_name () << "_ = val;" << be_uidt_nl; - } - else - { - // default label - // XXXASG - TODO - } - *os << "}" << be_nl; - - // readonly get method - *os << "// readonly get method " << be_nl - << "ACE_INLINE const " << bt->name () << " &" << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl - << "{" << be_idt_nl - << "return *this->" << ub->local_name () << "_;" << be_uidt_nl - << "}" << be_nl; - - // read/write get method - *os << "// read/write get method " << be_nl - << "ACE_INLINE " << bt->name () << " &" << be_nl - << bu->name () << "::" << ub->local_name () << " (void)" << be_nl - << "{" << be_idt_nl - << "return *this->" << ub->local_name () << "_;" << be_uidt_nl - << "}\n\n"; - - return 0; -} - -int -be_visitor_union_branch_public_ci::visit_string (be_string *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_string - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - // three methods to set the string value - - // (1) set method from char* - os->indent (); // start from current indentation - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () << " (char *val)" - << be_nl - << "{" << be_idt_nl; - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - be_nl; - } - *os << "// set the value" << be_nl - << "if (!this->" << ub->local_name () << "_) // does not exist" - << be_nl - << " this->" << ub->local_name () - << "_ = new CORBA::String_var (val);" << be_nl - << "else" << be_nl - << " *this->" << ub->local_name () << "_ = val;"; - } - else - { - // default label - // XXXASG - TODO - } - *os << be_uidt_nl << "}" << be_nl; - - // (2) set method from const char * - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () - << " (const char *val)" << be_nl - << "{\n"; - os->incr_indent (); - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - be_nl; - } - *os << "// set the value" << be_nl - << "if (!this->" << ub->local_name () << "_) // does not exist" - << be_nl - << " this->" << ub->local_name () - << "_ = new CORBA::String_var (val);" << be_nl - << "else" << be_nl - << " *this->" << ub->local_name () << "_ = val;" << be_uidt_nl; - } - else - { - // default label - // XXXASG - TODO - } - - *os << "}" << be_nl; - - // (3) set from const String_var& - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () - << " (const CORBA::String_var &val)" << be_nl - << "{" << be_idt_nl; - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - be_nl; - } - *os << "// set the value" << be_nl - << "if (!this->" << ub->local_name () << "_) // does not exist" - << be_nl - << " this->" << ub->local_name () - << "_ = new CORBA::String_var (val);" << be_nl - << "else" << be_nl - << " *this->" << ub->local_name () << "_ = val;"; - } - else - { - // default label - // XXXASG - TODO - } - *os << be_uidt_nl << "}" << be_nl; - - // get method - *os << "ACE_INLINE const char *" << be_nl - << bu->name () << "::" << ub->local_name () - << " (void) const // get method" << be_nl - << "{" << be_idt_nl - << "return *this->" << ub->local_name () << "_;" << be_uidt_nl - << "}\n\n"; - return 0; -} - -int -be_visitor_union_branch_public_ci::visit_structure (be_structure *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_structure - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - if (bt->node_type () != AST_Decl::NT_typedef // not a typedef - && bt->is_child (bu)) // bt is defined inside the union - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the enum declaration - ctx.state (TAO_CodeGen::TAO_STRUCT_CI); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_structure - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_structure - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - // (1) set from a const - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () - << " (const " << bt->name () << " &val)" << be_nl - << "{" << be_idt_nl; - - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->disc_ = " << ub->label ()->label_val () << ";" - << be_nl; - } - *os << "// set the value" << be_nl - << "this->" << ub->local_name () << "_ = val;" << be_uidt_nl; - } - else - { - // default label - // XXXASG - TODO - } - *os << "}" << be_nl; - - // readonly get method - *os << "// readonly get method " << be_nl - << "ACE_INLINE const " << bt->name () << " &" << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl - << "{" << be_idt_nl - << "return this->" << ub->local_name () << "_;" << be_uidt_nl - << "}" << be_nl; - - // read/write get method - *os << "// read/write get method " << be_nl - << "ACE_INLINE " << bt->name () << " &" << be_nl - << bu->name () << "::" << ub->local_name () << " (void)" << be_nl - << "{" << be_idt_nl - << "return this->" << ub->local_name () << "_;" << be_uidt_nl - << "}\n\n"; - - return 0; -} - -int -be_visitor_union_branch_public_ci::visit_typedef (be_typedef *node) -{ - TAO_OutStream *os; // output stream - - os = this->ctx_->stream (); - this->ctx_->alias (node); // save the typedef node for use in code generation - // as we visit the base type - - // the node to be visited in the base primitve type that gets typedefed - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_union_branch_public_ci::visit_union (be_union *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_union - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - if (bt->node_type () != AST_Decl::NT_typedef // not a typedef - && bt->is_child (bu)) // bt is defined inside the union - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the enum declaration - ctx.state (TAO_CodeGen::TAO_UNION_CI); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_union - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_union - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - // (1) set from a const - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () - << " (const " << bt->name () << " &val)" << be_nl - << "{" << be_idt_nl; - os->incr_indent (); // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - be_nl; - } - *os << "// set the value" << be_nl - << "*this->" << ub->local_name () << "_ = val;" << be_uidt_nl; - } - else - { - // default label - // XXXASG - TODO - } - *os << "}" << be_nl; - - // readonly get method - *os << "// readonly get method " << be_nl - << "ACE_INLINE const " << bt->name () << " &" << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl - << "{" << be_idt_nl - << "return *this->" << ub->local_name () << "_;" << be_uidt_nl - << "}" << be_nl; - - // read/write get method - *os << "// read/write get method " << be_nl - << "ACE_INLINE " << bt->name () << " &" << be_nl - << bu->name () << "::" << ub->local_name () << " (void)" << be_nl - << "{" << be_idt_nl - << "return *this->" << ub->local_name () << "_;" << be_uidt_nl - << "}\n\n"; - - return 0; -} - -// ********************************************** -// visitor for union_branch in the client stubs file -// ********************************************** - -// constructor -be_visitor_union_branch_public_cs::be_visitor_union_branch_public_cs (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_union_branch_public_cs::~be_visitor_union_branch_public_cs (void) -{ -} - -// visit the union_branch node -int -be_visitor_union_branch_public_cs::visit_union_branch (be_union_branch *node) -{ - TAO_OutStream *os; // output stream - - be_type *bt; // union_branch's type - - os = this->ctx_->stream (); - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_cs::" - "visit_union_branch - " - "Bad union_branch type\n" - ), -1); - } - - this->ctx_->node (node); // save the node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_cs::" - "visit_union_branch - " - "codegen for union_branch type failed\n" - ), -1); - } - return 0; -} - -// visit array type -int -be_visitor_union_branch_public_cs::visit_array (be_array *node) -{ - return 0; -} - -// visit enum type -int -be_visitor_union_branch_public_cs::visit_enum (be_enum *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // generate the typcode for enums - ctx.state (TAO_CodeGen::TAO_ENUM_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_cs::" - "visit_enum - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_cs::" - "visit_enum - " - "codegen failed\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit sequence type -int -be_visitor_union_branch_public_cs::visit_sequence (be_sequence *node) -{ - return 0; -} - -// visit string type -int -be_visitor_union_branch_public_cs::visit_string (be_string *node) -{ - return 0; -} - -// visit structure type -int -be_visitor_union_branch_public_cs::visit_structure (be_structure *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // generate the inline code for structs - ctx.state (TAO_CodeGen::TAO_STRUCT_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_cs::" - "visit_struct - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_cs::" - "visit_struct - " - "codegen failed\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit union type -int -be_visitor_union_branch_public_cs::visit_union (be_union *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // generate the inline code for union - ctx.state (TAO_CodeGen::TAO_UNION_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_cs::" - "visit_union - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_cs::" - "visit_union - " - "codegen failed\n" - ), -1); - } - delete visitor; - return 0; -} - - -// ********************************************** -// visitor for union_branch in the client stubs file generating the code for -// the copy ctor and assignment operator -// ********************************************** - -// constructor -be_visitor_union_branch_public_assign_cs::be_visitor_union_branch_public_assign_cs -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_union_branch_public_assign_cs::~be_visitor_union_branch_public_assign_cs -(void) -{ -} - -// visit the union_branch node -int -be_visitor_union_branch_public_assign_cs::visit_union_branch (be_union_branch *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - - os = this->ctx_->stream (); - - // This visitor is used when we are generating the copy ctor and - // assignment operator for the union. - // Individual assignment of the members takes place inside a case - // statement because the type of member assigned is based on the value - // of the discriminant - os->indent (); - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "case " << ub->label ()->label_val ()->n () << ":" << be_idt_nl; - } - else - { - *os << "case " << ub->label ()->label_val () << ":" << be_idt_nl; - } - - *os << "this->" << ub->local_name () << "_ = u." << ub->local_name () - << "_;" << be_nl - << "break;\n"; - os->decr_indent (0); - - return 0; -} diff --git a/TAO/TAO_IDL/be_include/be.h b/TAO/TAO_IDL/be_include/be.h deleted file mode 100644 index 5505a36ad8b..00000000000 --- a/TAO/TAO_IDL/be_include/be.h +++ /dev/null @@ -1,125 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _BE_BE_HH -#define _BE_BE_HH - -// be.h -// - -#if defined (ACE_WIN32) -#pragma warning(disable:4250) -#endif /* ACE_WIN32 */ - -// ACE includes - -#include "ace/ACE.h" -#include "ace/OS.h" -#include "ace/Singleton.h" -#include "ace/Synch.h" -#include "ace/Log_Msg.h" -#include "ace/Containers.h" - -/* - * BE includes - */ - -#include "be_decl.h" // class BE_Decl -#include "be_scope.h" // class BE_Scope -#include "be_generator.h" // BE generator class -#include "be_type.h" -#include "be_predefined_type.h" // class BE_PredefinedType -#include "be_module.h" // class BE_Module -#include "be_interface.h" // class BE_Interface -#include "be_interface_fwd.h" // class BE_InterfaceFwd -#include "be_structure.h" // class BE_Structure -#include "be_exception.h" // class BE_Exception -#include "be_expression.h" // class BE_Expr_val -#include "be_enum.h" // class BE_Enum -#include "be_operation.h" // class BE_Operation -#include "be_field.h" // class BE_Field -#include "be_argument.h" // class BE_Argument -#include "be_attribute.h" // class BE_Attribute -#include "be_union.h" // class BE_Union -#include "be_union_branch.h" // class BE_UnionBranch -#include "be_union_label.h" // class BE_UnionLabel -#include "be_constant.h" // class BE_Constant -#include "be_enum_val.h" // class BE_EnumVal -#include "be_array.h" // class BE_Array -#include "be_sequence.h" // class BE_Sequence -#include "be_string.h" // class BE_String -#include "be_typedef.h" // class BE_Typedef -#include "be_root.h" // class BE_Root -#include "be_native.h" // class BE_Native - -#include "be_helper.h" // helper functions -#include "be_codegen.h" // code generator -#include "be_factory.h" // factory - -#include "be_visitor.h" // abstract visitor -#include "be_visitor_context.h" // visitor context - -#endif // _BE_BE_HH diff --git a/TAO/TAO_IDL/be_include/be_argument.h b/TAO/TAO_IDL/be_include/be_argument.h deleted file mode 100644 index cbf2e30f249..00000000000 --- a/TAO/TAO_IDL/be_include/be_argument.h +++ /dev/null @@ -1,49 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_argument.h -// -// = DESCRIPTION -// Extension of class AST_Argument that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_ARGUMENT_H) -#define BE_ARGUMENT_H - -/* - * BE_Argument - */ -class be_argument : public virtual AST_Argument, - public virtual be_decl -{ -public: - // =Operations - - be_argument (void); - // default constructor - - be_argument (AST_Argument::Direction d, AST_Type *ft, UTL_ScopedName *n, - UTL_StrList *p); - // constructor - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_argument, AST_Argument, be_decl); - DEF_NARROW_FROM_DECL (be_argument); -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_array.h b/TAO/TAO_IDL/be_include/be_array.h deleted file mode 100644 index 2d47c20f846..00000000000 --- a/TAO/TAO_IDL/be_include/be_array.h +++ /dev/null @@ -1,104 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_array.h -// -// = DESCRIPTION -// Extension of class AST_Array that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_ARRAY_H) -#define BE_ARRAY_H - -class TAO_OutStream; - -/* - * BE_Array - */ -class be_array : public virtual AST_Array, - public virtual be_type -{ -public: - // =Operations - - be_array (void); - // default constructor - - be_array (UTL_ScopedName *n, unsigned long ndims, UTL_ExprList *dims); - // constructor - - ~be_array (void); - - virtual int gen_var_defn (void); - // generate the _var class definition - - virtual int gen_var_impl (void); - // generate the implementation for the _var class - - virtual int gen_out_defn (void); - // generate the _out class definition - - virtual int gen_out_impl (void); - // generate the _out implementation - - virtual int gen_forany_defn (void); - // the forany class - - virtual int gen_forany_impl (void); - // the forany impl - - virtual int gen_dimensions (TAO_OutStream *os, unsigned short slice=0); - // generate dimensions. If slice == 1, generate dimensions for the slice - // definition - - virtual int gen_typecode (void); - // generate the typecode - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_size (void); - // return typecode size - - virtual long tc_encap_len (void); - // return length of encapsulation - - virtual int write_as_return (TAO_OutStream *stream, - be_type *type); - // write the mapping as a return value on the stream. - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_array, AST_Array, be_type); - DEF_NARROW_FROM_DECL (be_array); - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown - - virtual int create_name (void); - // create a name for us - - const char* tao_name (void); - -private: - char* tao_name_; - // We need a name to generate typecodes and other objects, but it - // must be different from the typedef name.... -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_attribute.h b/TAO/TAO_IDL/be_include/be_attribute.h deleted file mode 100644 index 93f7d111279..00000000000 --- a/TAO/TAO_IDL/be_include/be_attribute.h +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_attribute.h -// -// = DESCRIPTION -// Extension of class AST_Attribute that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_ATTRIBUTE_H) -#define BE_ATTRIBUTE_H - -/* - * BE_Attribute - */ -class be_attribute : public virtual AST_Attribute, - public virtual be_decl -{ -public: - // =Operations - - be_attribute (void); - // default constructor - - be_attribute (idl_bool ro, AST_Type *ft, UTL_ScopedName *n, UTL_StrList *p); - // constructor - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_attribute, AST_Attribute, be_decl); - DEF_NARROW_FROM_DECL (be_attribute); -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_codegen.h b/TAO/TAO_IDL/be_include/be_codegen.h deleted file mode 100644 index aafbadc5ddc..00000000000 --- a/TAO/TAO_IDL/be_include/be_codegen.h +++ /dev/null @@ -1,505 +0,0 @@ -// $Id$ -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_codegen.h -// -// = DESCRIPTION -// The Code generator class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_CODEGEN_H) -#define TAO_BE_CODEGEN_H - -#define NAMEBUFSIZE 1024 -// maximum length of static buffers used to store names - -class TAO_Visitor_Factory; -class be_visitor_context; - -class TAO_CodeGen -{ - // = TITLE - // TAO_CodeGen - // - // = DESCRIPTION - // Holds global parameters for the Back End and generates the C++ mapping - // -public: - - // define all the code generation states. The first letter C/S of the suffix stands - // for client/server-side and the second letter H/I/S stands for - // header/inline/impl file. These are used to denote the state or the context - // of code generation we are in and serves to produce the right kind of - // visitor for us - - enum CG_STATE - { - // initial state - TAO_INITIAL, - - // rest of the state in alphabetical order of the types - - // emitting code for arguments of an operation. No distinction between - // headers, inlines, stubs. - TAO_ARGUMENT_CH, // in client header - TAO_ARGUMENT_CI, // in client inline - TAO_ARGUMENT_CS, // in client stubs - TAO_ARGUMENT_SH, // in server header - TAO_ARGUMENT_SI, // in server inline - TAO_ARGUMENT_SS, // in server skeleton - TAO_ARGUMENT_ARGLIST_CH, // argument in op signature of - // ... client header - TAO_ARGUMENT_ARGLIST_OTHERS, // ... in other cases - TAO_ARGUMENT_PRE_DOCALL_CS, // preprocessing of argument - // variable before passing to - // do_static_call (in stub) - TAO_ARGUMENT_DOCALL_CS, // passing argument variable to do_static_call - TAO_ARGUMENT_POST_DOCALL_CS, // postprocessing of argument - // variable after do_static_call - TAO_ARGUMENT_VARDECL_SS, // declaration of argument - // variable in skeleton (server) - TAO_ARGUMENT_MARSHAL_SS, // passing argument node to the - TAO_ARGUMENT_DEMARSHAL_SS, // demarshal and marshal - // operations - TAO_ARGUMENT_POST_MARSHAL_SS, - TAO_ARGUMENT_PRE_UPCALL_SS, // preprocessing of argument - // variable before upcall - TAO_ARGUMENT_UPCALL_SS, // passing argument variable to upcall - TAO_ARGUMENT_COLLOCATED_UPCALL_SS, // passing argument - // variable to upcall - TAO_ARGUMENT_POST_UPCALL_SS, // postprocessing of argument - // variable after upcall - - // emitting code for attributes. - TAO_ATTRIBUTE_CH, // in client header - TAO_ATTRIBUTE_CS, // in client stubs - TAO_ATTRIBUTE_SH, // in server header - TAO_ATTRIBUTE_SS, // in server skeletons - TAO_ATTRIBUTE_COLLOCATED_SH, // in server header for collocated - TAO_ATTRIBUTE_COLLOCATED_SS, // in server skeletons for - // collocated - - TAO_ATTRIBUTE_RETVAL_DECL_SS, - TAO_ATTRIBUTE_RETVAL_ASSIGN_SS, - TAO_ATTRIBUTE_RETURN_TYPE_CH, - TAO_ATTRIBUTE_INPARAM_TYPE_CH, - TAO_ATTRIBUTE_RETURN_TYPE_CS, - TAO_ATTRIBUTE_RETVAL_DECL_CS, - TAO_ATTRIBUTE_RETVAL_EXCEPTION_CS, - TAO_ATTRIBUTE_RETVAL_RETURN_CS, - TAO_ATTRIBUTE_INPARAM_TYPE_CS, - TAO_ATTRIBUTE_PRE_DOCALL_CS, - TAO_ATTRIBUTE_DOCALL_CS, - TAO_ATTRIBUTE_POST_DOCALL_CS, - TAO_ATTRIBUTE_RETURN_TYPE_SH, - TAO_ATTRIBUTE_INPARAM_TYPE_SH, - TAO_ATTRIBUTE_RESULT_SS, - TAO_ATTRIBUTE_INPARAM_TYPE_SS, - TAO_ATTRIBUTE_PRE_UPCALL_SS, - TAO_ATTRIBUTE_UPCALL_SS, - TAO_ATTRIBUTE_POST_UPCALL_SS, - TAO_ATTRIBUTE_TIE_SH, - TAO_ATTRIBUTE_TIE_SI, - - // emitting code for array defn - TAO_ARRAY_CH, - TAO_ARRAY_CI, - TAO_ARRAY_CS, - - TAO_ARRAY_DEFN_CH, - TAO_ARRAY_DEFN_CI, - TAO_ARRAY_DEFN_CS, - TAO_ARRAY_DEFN_SH, - TAO_ARRAY_DEFN_SI, - TAO_ARRAY_DEFN_SS, - TAO_ARRAY_ANY_OP_CH, - TAO_ARRAY_ANY_OP_CS, - - // emitting code for rest of the array decl - TAO_ARRAY_OTHER_CH, - TAO_ARRAY_OTHER_CI, - TAO_ARRAY_OTHER_CS, - TAO_ARRAY_OTHER_SH, - TAO_ARRAY_OTHER_SI, - TAO_ARRAY_OTHER_SS, - - // emitting code for the constants - TAO_CONSTANT_CH, // in client header - TAO_CONSTANT_CI, // XXXASG rm? - TAO_CONSTANT_CS, // in client stub - - // emitting code for enums - TAO_ENUM_CH, // in client header - TAO_ENUM_CI, // XXXASG rm? - TAO_ENUM_CS, // in client stubs - TAO_ENUM_SH, // XXXASG rm? all 3 - TAO_ENUM_SI, - TAO_ENUM_SS, - TAO_ENUM_ANY_OP_CH, - TAO_ENUM_ANY_OP_CS, - - // emitting code for exceptions - TAO_EXCEPTION_CH, - TAO_EXCEPTION_CTOR_CH, - TAO_EXCEPTION_CI, - TAO_EXCEPTION_CS, - TAO_EXCEPTION_CTOR_CS, - TAO_EXCEPTION_CTOR_ASSIGN_CS, - TAO_EXCEPTION_SH, - TAO_EXCEPTION_SI, - TAO_EXCEPTION_SS, - TAO_EXCEPTION_ANY_OP_CH, - TAO_EXCEPTION_ANY_OP_CS, - - // emitting fields i.e., struct members - TAO_FIELD_CH, - TAO_FIELD_CI, - TAO_FIELD_CS, - - // emitting code for the interface - TAO_INTERFACE_CH, - TAO_INTERFACE_CI, - TAO_INTERFACE_CS, - TAO_INTERFACE_SH, - TAO_INTERFACE_SI, - TAO_INTERFACE_SS, - TAO_INTERFACE_COLLOCATED_SH, - TAO_INTERFACE_COLLOCATED_SS, - TAO_INTERFACE_ANY_OP_CH, - TAO_INTERFACE_ANY_OP_CS, - TAO_INTERFACE_TIE_SH, - TAO_INTERFACE_TIE_SI, - - // emitting code for the interface forward declaration - TAO_INTERFACE_FWD_CH, - TAO_INTERFACE_FWD_CI, - - // emitting code for the module - TAO_MODULE_CH, - TAO_MODULE_CI, - TAO_MODULE_CS, - TAO_MODULE_SH, - TAO_MODULE_SI, - TAO_MODULE_SS, - TAO_MODULE_ANY_OP_CH, - TAO_MODULE_ANY_OP_CS, - - // emitting code for an operation. - TAO_OPERATION_CH, // in client header - TAO_OPERATION_CI, // XXXASG rm? - TAO_OPERATION_CS, // in client stubs - TAO_OPERATION_SH, // in server header - TAO_OPERATION_SI, // XXXASG rm? - TAO_OPERATION_SS, // in server skeletons - TAO_OPERATION_COLLOCATED_SH, // in collocated server header - TAO_OPERATION_COLLOCATED_SS, // in collocated server skel - TAO_OPERATION_RETTYPE_CH, // return type in client header op - // signature - TAO_OPERATION_RETTYPE_OTHERS, // ... in other cases - TAO_OPERATION_RETURN_TYPE_CS, // - TAO_OPERATION_ARGLIST_CH, // parameter list in op signature - // ... for client header - TAO_OPERATION_ARGLIST_SH, // ... for server header - TAO_OPERATION_ARGLIST_COLLOCATED_SH, // ... for collocated server - TAO_OPERATION_ARGLIST_OTHERS, // ... for all other cases - TAO_OPERATION_RETVAL_DECL_CS, // return value variable declaration - TAO_OPERATION_RETVAL_EXCEPTION_CS, // return value on exception (error) - TAO_OPERATION_RETVAL_PRE_DOCALL_CS, // preprocessing for return value - // before sending over the wire - TAO_OPERATION_ARG_PRE_DOCALL_CS, // preprocessing of arguments - // before do_static_call - TAO_OPERATION_RETVAL_DOCALL_CS, // passing the return type - // variable to do_static_call - TAO_OPERATION_ARG_DOCALL_CS, // passing argument variable to do_static_call - TAO_OPERATION_RETVAL_POST_DOCALL_CS, // processing of return type - // after do_static_call - TAO_OPERATION_ARG_POST_DOCALL_CS, // processing of arg after do_static_call - TAO_OPERATION_RETVAL_RETURN_CS, // returning the return type - // variable - TAO_OPERATION_EXCEPTLIST_CS, // generating the exception list - TAO_OPERATION_RETVAL_DECL_SS, // return type decl in skeleton - TAO_OPERATION_ARG_DECL_SS, // argument decl in skeleton - TAO_OPERATION_RETVAL_DEMARSHAL_SS, // passing return type variable - TAO_OPERATION_ARG_DEMARSHAL_SS, // and argument variables to the - TAO_OPERATION_RETVAL_MARSHAL_SS, // marshal and demarshal operations - TAO_OPERATION_ARG_MARSHAL_SS, - TAO_OPERATION_ARG_POST_MARSHAL_SS, - TAO_OPERATION_RETVAL_ASSIGN_SS, // assigning to return type - // variable - TAO_OPERATION_ARG_PRE_UPCALL_SS, // pre upcall processing - TAO_OPERATION_RETVAL_UPCALL_SS, // passing return type var and argument - TAO_OPERATION_ARG_UPCALL_SS, // variables to upcall - TAO_OPERATION_COLLOCATED_ARG_UPCALL_SS, // variables to upcall for - // collocated op - TAO_OPERATION_RETVAL_POST_UPCALL_SS, // post upcall processing for - TAO_OPERATION_ARG_POST_UPCALL_SS, // return and argument variables - TAO_OPERATION_RESULT_SS, // XXXASG rm? - TAO_OPERATION_TIE_SH, - TAO_OPERATION_TIE_SI, - - // for predefined type - TAO_PREDEFINED_TYPE_CH, - TAO_PREDEFINED_TYPE_CI, - TAO_PREDEFINED_TYPE_CS, - - // emitting code for root - TAO_ROOT_CH, - TAO_ROOT_CI, - TAO_ROOT_CS, - TAO_ROOT_SH, - TAO_ROOT_SI, - TAO_ROOT_SS, - TAO_ROOT_ANY_OP_CH, - TAO_ROOT_ANY_OP_CS, - - // emitting sequences - TAO_SEQUENCE_CH, - TAO_SEQUENCE_CI, - TAO_SEQUENCE_CS, - TAO_SEQUENCE_ANY_OP_CH, - TAO_SEQUENCE_ANY_OP_CS, - - // emitting code for sequence base type - TAO_SEQUENCE_BASE_CH, - TAO_SEQUENCE_BASE_CI, - TAO_SEQUENCE_BASE_CS, - TAO_SEQUENCE_BASE_SH, - TAO_SEQUENCE_BASE_SI, - TAO_SEQUENCE_BASE_SS, - - // emitting code for sequence body - TAO_SEQUENCE_BODY_CH, - TAO_SEQUENCE_BODY_CI, - TAO_SEQUENCE_BODY_CS, - TAO_SEQUENCE_BODY_SH, - TAO_SEQUENCE_BODY_SI, - TAO_SEQUENCE_BODY_SS, - - // for special sequnce elements - TAO_SEQELEM_RETTYPE_CH, - TAO_SEQELEM_RETTYPE_CI, - TAO_SEQELEM_RETTYPE_CS, - - // for sequence buffer types - TAO_SEQUENCE_BUFFER_TYPE_CH, - TAO_SEQUENCE_BUFFER_TYPE_CI, - TAO_SEQUENCE_BUFFER_TYPE_CS, - - // emitting code for strings - TAO_STRING_CH, - TAO_STRING_CI, - TAO_STRING_CS, - TAO_STRING_SH, - TAO_STRING_SI, - TAO_STRING_SS, - - // emitting code for struct and its members - TAO_STRUCT_CH, - TAO_STRUCT_CI, - TAO_STRUCT_CS, - TAO_STRUCT_ANY_OP_CH, - TAO_STRUCT_ANY_OP_CS, - - // emitting code for typedefs - TAO_TYPEDEF_CH, - TAO_TYPEDEF_CI, - TAO_TYPEDEF_CS, - TAO_TYPEDEF_SH, - TAO_TYPEDEF_SI, - TAO_TYPEDEF_SS, - TAO_TYPEDEF_ANY_OP_CH, - TAO_TYPEDEF_ANY_OP_CS, - - // emitting code for unions - TAO_UNION_CH, - TAO_UNION_CI, - TAO_UNION_CS, - TAO_UNION_ANY_OP_CH, - TAO_UNION_ANY_OP_CS, - - // emitting code for the discriminant - TAO_UNION_DISCTYPEDEFN_CH, - TAO_UNION_DISCTYPEDEFN_CI, - TAO_UNION_DISCTYPEDEFN_CS, - TAO_UNION_DISCTYPEDEFN_SH, - TAO_UNION_DISCTYPEDEFN_SI, - TAO_UNION_DISCTYPEDEFN_SS, - - // emitting code for the public members of the union - TAO_UNION_PUBLIC_CH, - TAO_UNION_PUBLIC_CI, - TAO_UNION_PUBLIC_CS, - TAO_UNION_PUBLIC_ASSIGN_CS, - TAO_UNION_PUBLIC_SH, - TAO_UNION_PUBLIC_SI, - TAO_UNION_PUBLIC_SS, - - // emitting code for private members of the union - TAO_UNION_PRIVATE_CH, - TAO_UNION_PRIVATE_CI, - TAO_UNION_PRIVATE_CS, - TAO_UNION_PRIVATE_SH, - TAO_UNION_PRIVATE_SI, - TAO_UNION_PRIVATE_SS, - - // emitting code for typecodes - TAO_TYPECODE_DECL, - TAO_TYPECODE_DEFN, - - // Always must be last - TAO_UNKNOWN - - }; - - TAO_CodeGen (void); - // Constructor - - ~TAO_CodeGen (void); - // destructor - - be_visitor *make_visitor (be_visitor_context *); - // Factory that makes the right visitor based on the contex. This - // delegates the task to its factory data member - - int gen_cplusplus_mapping (void); - // generate the C++ mapping for CORBA IDL - - int start_client_header (const char *fname); - // set the client header stream - - int start_client_inline (const char *fname); - // set the client inline stream - - int start_client_stubs (const char *fname); - // set the client stub stream - - int start_server_header (const char *fname); - // set the server header stream - - int start_server_template_header (const char *fname); - // set the server template header stream - - int start_server_inline (const char *fname); - // set the server inline stream - - int start_server_template_inline (const char *fname); - // set the server template inline stream - - int start_server_skeletons (const char *fname); - // set the server skeletons stream - - int start_server_template_skeletons (const char *fname); - // set the server template skeletons stream - - int end_client_header (void); - // generate code at the end such as the <<= and >>= operators alongwith the - // ending #endif statement - - int end_server_header (void); - // put a last #endif in the server header - - int end_server_template_header (void); - // put a last #endif in the server template header - - int end_server_template_skeletons (void); - // put a last #endif in the server skeletons - - TAO_OutStream *client_header (void); - // get the client header stream - - TAO_OutStream *client_stubs (void); - // get the client stubs stream - - TAO_OutStream *client_inline (void); - // get the client inline stream - - TAO_OutStream *server_header (void); - // get the server header stream - - TAO_OutStream *server_template_header (void); - // get the server header template stream - - TAO_OutStream *server_skeletons (void); - // get the server skeletons stream - - TAO_OutStream *server_template_skeletons (void); - // get the server template skeletons stream - - TAO_OutStream *server_inline (void); - // get the server inline stream - - TAO_OutStream *server_template_inline (void); - // get the server template inline stream - - void outstream (TAO_OutStream *os); - // set current out stream - - TAO_OutStream *outstream (void); - // retrieve current out stream being used - - void visitor_factory (TAO_Visitor_Factory *); - // set the visitor factory object - - void node (be_decl *n); - // pass info - - be_decl *node (void); - // retrieve passed info - - const char *upcase (const char *str); - // convert input string to all upcase - -private: - TAO_OutStream *client_header_; - // client header stream - - TAO_OutStream *client_stubs_; - // client stub file stream - - TAO_OutStream *client_inline_; - // client side inline definitions - - TAO_OutStream *server_header_; - // server header stream - - TAO_OutStream *server_template_header_; - // server header template stream - - TAO_OutStream *server_skeletons_; - // server skeleton stream - - TAO_OutStream *server_template_skeletons_; - // server skeleton template stream - - TAO_OutStream *server_inline_; - // server side inline file - - TAO_OutStream *server_template_inline_; - // server side template inline file - - TAO_OutStream *curr_os_; - // currently used out stream - - be_decl *node_; - // save current node in this - - TAO_Visitor_Factory *visitor_factory_; - // visitor factory object - -}; - -typedef ACE_Singleton TAO_CODEGEN; -// Singleton instance of the BE code generator - -extern TAO_CodeGen *tao_cg; // code generator instance which is used everywhere - -#endif /* if !defined */ diff --git a/TAO/TAO_IDL/be_include/be_constant.h b/TAO/TAO_IDL/be_include/be_constant.h deleted file mode 100644 index 75a503e3e19..00000000000 --- a/TAO/TAO_IDL/be_include/be_constant.h +++ /dev/null @@ -1,56 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_constant.h -// -// = DESCRIPTION -// Extension of class AST_Constant that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_CONSTANT_H) -#define BE_CONSTANT_H - -/* - * BE_Constant - */ -class be_constant : public virtual AST_Constant , public virtual be_decl -{ -public: - // Operations - - be_constant (void); - // constructor - - be_constant (AST_Expression::ExprType et, - AST_Expression *v, - UTL_ScopedName *n, - UTL_StrList *p); - // constructor - - // = helper - char *exprtype_to_string (void); - // returns the appropriate type - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_constant, AST_Constant, be_decl); - DEF_NARROW_FROM_DECL (be_constant); - -}; - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_decl.h b/TAO/TAO_IDL/be_include/be_decl.h deleted file mode 100644 index 0d0f3f1daa4..00000000000 --- a/TAO/TAO_IDL/be_include/be_decl.h +++ /dev/null @@ -1,169 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_decl.h -// -// = DESCRIPTION -// Extension of the AST_Decl class. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_DECL_H) -#define TAO_BE_DECL_H - -class be_scope; -class be_visitor; - -/* - * BE_Decl - */ -class be_decl : public virtual AST_Decl -{ - // = TITLE - // be_decl - // = DESCRIPTION - // The back end extension of the AST_Decl class. Provides an abstract - // interface - // -public: - enum SIZE_TYPE - { - SIZE_UNKNOWN, - FIXED, - VARIABLE - }; - // indicates if we are fixed size or variable. Most useful for structs, - // unions, and arrays. - - // =Operations - - be_decl (void); - // Default constructor - - be_decl (AST_Decl::NodeType type, UTL_ScopedName *n, UTL_StrList *pragmas); - // constructor that sets the node type - - ~be_decl (void); - // destructor - - virtual void size_type (SIZE_TYPE); - // set the size type - - virtual SIZE_TYPE size_type (void); - // return our size type - - const char *repoID (void); - // retrieve the repository ID - - const char *fullname (void); - // return the stringified full name - - const char *flatname (void); - // return the flattened full scoped name - - virtual idl_bool is_nested (void); - // determines if we are inside of a nested scope or not - - virtual int gen_encapsulation (void); - // encapsulation of parameters - - virtual long tc_encap_len (void); - // return length of encapsulation - - virtual be_scope *scope (void); - // return the scope created by this node (if one exists) - - // Visiting - virtual int accept (be_visitor *visitor); - - // boolean methods to test if code was already generated - idl_bool cli_hdr_gen (void); - idl_bool cli_stub_gen (void); - idl_bool cli_inline_gen (void); - idl_bool srv_hdr_gen (void); - idl_bool srv_skel_gen (void); - idl_bool srv_inline_gen (void); - idl_bool cli_hdr_any_op_gen (void); - idl_bool cli_stub_any_op_gen (void); - - // set the flag indicating that code generation is done - void cli_hdr_gen (idl_bool); - void cli_stub_gen (idl_bool); - void cli_inline_gen (idl_bool); - void srv_hdr_gen (idl_bool); - void srv_skel_gen (idl_bool); - void srv_inline_gen (idl_bool); - void cli_hdr_any_op_gen (idl_bool); - void cli_stub_any_op_gen (idl_bool); - - idl_bool is_child (be_decl *node); - // am I a direct child of node? - - // Narrowing - DEF_NARROW_METHODS1 (be_decl, AST_Decl); - DEF_NARROW_FROM_DECL (be_decl); - -protected: - // =helper - - virtual int compute_size_type (void); - // determine our size type and set it if it is unknown - - virtual void compute_repoID (void); - // computes the repoID - - virtual void compute_fullname (void); - // computes the fully scoped name - - virtual void compute_flatname (void); - // compute the flattened fully scoped name - - virtual int tc_name2long (const char *name, long *&, long &); - // name represented as a padded array of longs - - virtual long repoID_encap_len (void); - // return encapsulation length required to hold repository ID - - virtual long name_encap_len (void); - // return encapsulation length required to hold IDL name - - // variables that indicate if the code generation for that node is already - // been done. This way we avoid regenerating same code. - idl_bool cli_hdr_gen_; - idl_bool cli_stub_gen_; - idl_bool cli_inline_gen_; - idl_bool srv_hdr_gen_; - idl_bool srv_skel_gen_; - idl_bool srv_inline_gen_; - idl_bool cli_hdr_any_op_gen_; - idl_bool cli_stub_any_op_gen_; - - char *fullname_; - // our full scoped name - - char *flatname_; - // flattened fully scoped name - - char *repoID_; - // repository ID - - SIZE_TYPE size_type_; - // whether we are fixed or variable size (by default fixed) - - long encap_len_; - // encapsulation length - required for typecodes - -}; - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_enum.h b/TAO/TAO_IDL/be_include/be_enum.h deleted file mode 100644 index 6196d5053aa..00000000000 --- a/TAO/TAO_IDL/be_include/be_enum.h +++ /dev/null @@ -1,79 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_enum.h -// -// = DESCRIPTION -// Extension of class AST_Enum that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_ENUM_H) -#define BE_ENUM_H - -/* - * BE_Enum - */ -class be_enum : public virtual AST_Enum, - public virtual be_scope, - public virtual be_type -{ -public: - // Operations - - be_enum (void); - // default constructor - - be_enum (UTL_ScopedName *n, UTL_StrList *p); - // constructor - - virtual int gen_typecode (void); - // generate the typecode - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_size (void); - // return typecode size - - virtual long tc_encap_len (void); - // return length of encapsulation - - virtual int member_count (void); - // return the count of members - - virtual int write_as_return (TAO_OutStream *stream, - be_type *type); - // write the mapping as a return value on the stream. - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_enum, AST_Enum, be_scope, be_type); - DEF_NARROW_FROM_DECL (be_enum); - DEF_NARROW_FROM_SCOPE (be_enum); - -private: - //=helper - - int compute_member_count (void); - // count the number of members - - int member_count_; - // number of members -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_enum_val.h b/TAO/TAO_IDL/be_include/be_enum_val.h deleted file mode 100644 index 45815eef998..00000000000 --- a/TAO/TAO_IDL/be_include/be_enum_val.h +++ /dev/null @@ -1,55 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_enum_val.h -// -// = DESCRIPTION -// Extension of class AST_EnumVal that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_ENUM_VAL_H) -#define BE_ENUM_VAL_H - -/* - * BE_EnumVal - */ -class be_enum_val : public virtual AST_EnumVal, - public virtual be_decl -{ -public: - // =Operations - - be_enum_val (void); - // default constructor - - be_enum_val (unsigned long v, UTL_ScopedName *n, UTL_StrList *p); - // constructor - - virtual int gen_encapsulation (void); - // generate the typecode - - virtual long tc_encap_len (void); - // return length of encapsulation - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_enum_val, AST_EnumVal, be_decl); - DEF_NARROW_FROM_DECL (be_enum_val); -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_exception.h b/TAO/TAO_IDL/be_include/be_exception.h deleted file mode 100644 index 1f9348e993a..00000000000 --- a/TAO/TAO_IDL/be_include/be_exception.h +++ /dev/null @@ -1,61 +0,0 @@ -// $Id$ - -#if !defined (BE_EXCEPTION_H) -#define BE_EXCEPTION_H - -/* - * BE_Exception - */ -class be_exception : public virtual AST_Exception, - public virtual be_scope, - public virtual be_type - -{ -public: - // Operations - be_exception (void); - // default constructor - - be_exception (UTL_ScopedName *n, UTL_StrList *p); - // constructor - - // =code generation - - virtual int gen_typecode (void); - // generate the typecode - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_size (void); - // return typecode size - - virtual long tc_encap_len (void); - // return length of encapsulation - - virtual int member_count (void); - // return the count of members - - virtual int write_as_return (TAO_OutStream *stream, - be_type *type); - // write the mapping as a return value on the stream. - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_exception, AST_Exception, be_scope, be_type); - DEF_NARROW_FROM_DECL (be_exception); - DEF_NARROW_FROM_SCOPE (be_exception); - -private: - //=helper - - int compute_member_count (void); - // count the number of members - - int member_count_; - // number of members -}; - -#endif // end of if !defined (...) diff --git a/TAO/TAO_IDL/be_include/be_expression.h b/TAO/TAO_IDL/be_include/be_expression.h deleted file mode 100644 index 01829d9b3bf..00000000000 --- a/TAO/TAO_IDL/be_include/be_expression.h +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_expression.h -// -// = DESCRIPTION -// Extension of class AST_Expression that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_EXPRESSION_H) -#define BE_EXPRESSION_H - -/* - * BE_Expression - */ -class be_expression : public virtual AST_Expression -{ -public: - // Operations - be_expression (UTL_ScopedName *n); - be_expression (AST_Expression *b, AST_Expression::ExprType t); - be_expression (AST_Expression::ExprComb c, - AST_Expression *v1, - AST_Expression *v2); - be_expression (long l); - be_expression (long l, AST_Expression::ExprType t); - be_expression (unsigned long l); - be_expression (String *s); - be_expression (char c); - be_expression (double d); - - // Visiting - virtual int accept (be_visitor *visitor); -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_factory.h b/TAO/TAO_IDL/be_include/be_factory.h deleted file mode 100644 index 9ed9a18f0de..00000000000 --- a/TAO/TAO_IDL/be_include/be_factory.h +++ /dev/null @@ -1,72 +0,0 @@ -// $Id$ - -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL Backend -// -// = FILENAME -// be_factory.h -// -// = DESCRIPTION -// Defines a factory that returns a specialized output stream object that -// understands a specific Front End -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_FACTORY_H) -#define TAO_BE_FACTORY_H - -class TAO_Visitor_Factory -{ - // =TITLE - // TAO_Visitor_Factory - // - // =DESCRIPTION - // Abstract factory that creates visitors -public: - virtual ~TAO_Visitor_Factory (void); - // destructor - - virtual be_visitor *make_visitor (be_visitor_context *) = 0; - // create the right visitor - -}; - -class TAO_OutStream_Factory -{ - // =TITLE - // TAO_OutStream_Factory - // =DESCRIPTION - // factory to produce specialized instances of the output stream objects -public: - enum TAO_OutStream_Type - { - TAO_SUNSOFT, - TAO_FLICK - }; - - TAO_OutStream_Factory (void); - // constructor - - ~TAO_OutStream_Factory (void); - // destructor - - TAO_OutStream *make_outstream (void); - // make the specialized out stream class - - int set_stream_type (TAO_OutStream_Type t); - // set the stream type - -private: - TAO_OutStream_Type strm_type_; -}; - -typedef ACE_Singleton TAO_OUTSTREAM_FACTORY; -// Singleton instance of the OutStream factory - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_field.h b/TAO/TAO_IDL/be_include/be_field.h deleted file mode 100644 index b5802574bad..00000000000 --- a/TAO/TAO_IDL/be_include/be_field.h +++ /dev/null @@ -1,58 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_field.h -// -// = DESCRIPTION -// Extension of class AST_Field that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_FIELD_H) -#define BE_FIELD_H - -/* - * BE_Field - */ -class be_field : public virtual AST_Field, - public virtual be_decl -{ -public: - // =Operations - - be_field (void); - // default constructor - - be_field (AST_Type *ft, UTL_ScopedName *n, UTL_StrList *p); - // constructor - - virtual int gen_encapsulation (void); - // generate the typecode - - virtual long tc_encap_len (void); - // return the total byte length of ourselves represented as an encapsulation - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_field, AST_Field, be_decl); - DEF_NARROW_FROM_DECL (be_field); - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_generator.h b/TAO/TAO_IDL/be_include/be_generator.h deleted file mode 100644 index a4d6d22f636..00000000000 --- a/TAO/TAO_IDL/be_include/be_generator.h +++ /dev/null @@ -1,166 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _BE_GENERATOR_BE_GENERATOR_HH -#define _BE_GENERATOR_BE_GENERATOR_HH - -// be_generator.hh -// -// Defines BE class for generator -// -// This defines the same protocol as the AST_Generator class but actually -// is implemented to create nodes of AST classes subclassed in this BE - -/* -** DEPENDENCIES: AST_Generator.h -** -** USE: Included from be.h -*/ - -class be_generator : public AST_Generator { -public: - virtual AST_Root *create_root(UTL_ScopedName *n, - UTL_StrList *p); - // Create a node representing a module which is the root of an AST made up of - // BE nodes - - // Operations - virtual AST_PredefinedType - *create_predefined_type(AST_PredefinedType::PredefinedType t, - UTL_ScopedName *n, - UTL_StrList *p); - - virtual AST_Module *create_module(UTL_ScopedName *n, UTL_StrList *p); - virtual AST_Interface *create_interface(UTL_ScopedName *n, - AST_Interface **ih, - long nih, - UTL_StrList *p); - virtual AST_InterfaceFwd *create_interface_fwd(UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_Exception *create_exception(UTL_ScopedName *n, UTL_StrList *p); - virtual AST_Structure *create_structure(UTL_ScopedName *n, UTL_StrList *p); - virtual AST_Enum *create_enum(UTL_ScopedName *n, UTL_StrList *p); - virtual AST_Operation *create_operation(AST_Type *rt, - AST_Operation::Flags fl, - UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_Field *create_field(AST_Type *ft, UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_Argument *create_argument(AST_Argument::Direction d, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_Attribute *create_attribute(idl_bool ro, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_Union *create_union(AST_ConcreteType *dt, - UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_UnionBranch *create_union_branch(AST_UnionLabel *lab, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_UnionLabel *create_union_label(AST_UnionLabel::UnionLabel ul, - AST_Expression *lv); - virtual AST_Constant *create_constant(AST_Expression::ExprType et, - AST_Expression *ev, - UTL_ScopedName *n, - UTL_StrList *p); - - virtual AST_Expression *create_expr(UTL_ScopedName *n); - virtual AST_Expression *create_expr(AST_Expression *v, - AST_Expression::ExprType t); - virtual AST_Expression *create_expr(AST_Expression::ExprComb c, - AST_Expression *v1, - AST_Expression *v2); - virtual AST_Expression *create_expr(long v); - virtual AST_Expression *create_expr(long v, - AST_Expression::ExprType t); - virtual AST_Expression *create_expr(unsigned long v); - virtual AST_Expression *create_expr(String *s); - virtual AST_Expression *create_expr(char c); - virtual AST_Expression *create_expr(double d); - - virtual AST_EnumVal *create_enum_val(unsigned long v, - UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_Array *create_array(UTL_ScopedName *n, - unsigned long ndims, - UTL_ExprList *dims); - virtual AST_Sequence *create_sequence(AST_Expression *v, AST_Type *bt); - virtual AST_String *create_string(AST_Expression *v); - virtual AST_String *create_wstring(AST_Expression *v); - virtual AST_Typedef *create_typedef(AST_Type *bt, - UTL_ScopedName *n, - UTL_StrList *p); - // Create a node representing a native - virtual AST_Native *create_native (UTL_ScopedName *n, - UTL_StrList *p); - -}; - -#endif // _BE_GENERATOR_BE_GENERATOR_HH diff --git a/TAO/TAO_IDL/be_include/be_helper.h b/TAO/TAO_IDL/be_include/be_helper.h deleted file mode 100644 index 1c179150ad6..00000000000 --- a/TAO/TAO_IDL/be_include/be_helper.h +++ /dev/null @@ -1,179 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_helper.h -// -// = DESCRIPTION -// Defines the abstract class for outputting the C++ mapping. This is a -// helper class to the singleton TAO_CodeGen class -// -// = AUTHOR -// Aniruddha Gokhale -// -// Improvements by Carlos O'Ryan -// -// ============================================================================ - -#if !defined (TAO_BE_OUTSTRM_H) -#define TAO_BE_OUTSTRM_H - -// a dummy structure to inform TAO_OutStream's << operator to put a newline -// and use the current indentation for the succeeding line -struct TAO_NL -{ -public: - TAO_NL (void); -}; - -struct TAO_INDENT -{ - // = TITLE - // Operates like a manipulator, increasing the indentation level. - // - // = DESCRIPTION - // Increase the indentation level, if the "do_now" parameter is - // not zero then the method is called on the stream. - // - TAO_INDENT (int do_now = 0); - - const int do_now_; -}; - -struct TAO_UNINDENT -{ - // = TITLE - // Operates like a manipulator, decreasing the indentation level. - // - // = DESCRIPTION - // Decrease the indentation level, if the "do_now" parameter is - // not zero then the method is called on the stream. - // - TAO_UNINDENT (int do_now = 0); - - const int do_now_; -}; - -extern const TAO_NL be_nl; -extern const TAO_INDENT be_idt; -extern const TAO_INDENT be_idt_nl; -extern const TAO_UNINDENT be_uidt; -extern const TAO_UNINDENT be_uidt_nl; - -class TAO_OutStream -{ - // =TITLE - // TAO_OutStream - // =DESCRIPTION - // Defines an interface by which the backend code generator can print its - // output to the underlying I/O handle. This is a helper class that will be - // used by the TAO_CodeGen class. However, this is an abstract class and - // classes that understand specific front ends must derive from this - // class. -public: - - // Enumerated type to indicate the stream type - enum STREAM_TYPE - { - TAO_CLI_HDR, - TAO_CLI_INL, - TAO_CLI_IMPL, - TAO_SVR_HDR, - TAO_SVR_TMPL_HDR, - TAO_SVR_INL, - TAO_SVR_TMPL_INL, - TAO_SVR_IMPL, - TAO_SVR_TMPL_IMPL - }; - - TAO_OutStream (void); - // constructor. - - virtual ~TAO_OutStream (void); - // destructor - - int open (const char *fname, TAO_OutStream::STREAM_TYPE st=TAO_OutStream::TAO_CLI_HDR); - // open the underlying low-level handle for output - - void stream_type (TAO_OutStream::STREAM_TYPE); - // set the stream type - - TAO_OutStream::STREAM_TYPE stream_type (void); - // return the stream type - - int incr_indent (unsigned short flag=1); - // increment the indentation level and by default actually indent the output - // accordingly - - int decr_indent (unsigned short flag=1); - // decrease the indentation level and by default actually indent the output - // accordingly - - int reset (void); - // reset indentation level to 0 - - int indent (void); - // indent starting next line - - int nl (void); - // put a newline and indent on the next line - - int print (const char *format, ...); - // "printf" style variable argument print - - int gen_ifdef_macro (const char *flatname, const char *suffix=0); - // generate a #if !defined, #defined macro - - int gen_endif (void); - // generate an endif statement - - // =overloaded operators - - TAO_OutStream &operator<< (const char *str); - // output the char string and return a reference to ourselves - - TAO_OutStream &operator<< (const long num); - // output the integer and return a reference to ourselves - - // = MANIPULATORS - - TAO_OutStream &operator<< (const TAO_NL& nl); - TAO_OutStream &operator<< (const TAO_INDENT& i); - TAO_OutStream &operator<< (const TAO_UNINDENT& i); - - // The following will be provided by specialized classes - - TAO_OutStream &operator<< (Identifier *id); - // output an Identifier node - - TAO_OutStream &operator<< (UTL_IdList *idl); - // output a scoped name - - TAO_OutStream &operator<< (AST_Expression *expr); - // output an AST_Expression node - - // provided by specialized classes - virtual TAO_OutStream &print (Identifier *id) = 0; - - virtual TAO_OutStream &print (UTL_IdList *idl) = 0; - - virtual TAO_OutStream &print (AST_Expression *idl) = 0; - -protected: - FILE *fp_; - // the underlying low-level I/O handle - - TAO_OutStream::STREAM_TYPE st_; - // stream type - - int indent_level_; - // indentation level - -}; - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_interface.h b/TAO/TAO_IDL/be_include/be_interface.h deleted file mode 100644 index d1381d40448..00000000000 --- a/TAO/TAO_IDL/be_include/be_interface.h +++ /dev/null @@ -1,165 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_interface.h -// -// = DESCRIPTION -// Extension of class AST_Interface that provides additional means for C++ -// mapping of an interface. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_INTERFACE_H) -#define TAO_BE_INTERFACE_H - -class TAO_OutStream; - -/* - * BE_Interface - */ -class be_interface : public virtual AST_Interface, - public virtual be_scope, - public virtual be_type -{ - // = TITLE - // The back end extension of the AST_Interface class - // - // = DESCRIPTION - // -public: - - // used to pass functions to the template method - typedef int (*tao_code_emitter) (be_interface *, be_interface *, TAO_OutStream *); - - // Operations - be_interface (void); - // Default constructor - - be_interface (UTL_ScopedName *n, AST_Interface **ih, long nih, - UTL_StrList *p); - // Constructor that sets its scoped name , a list of inherited interfaces - // , the number of inherited interfaces , and any prgmas

- - ~be_interface (void); - // dtor - - virtual int gen_var_defn (void); - // generate the _var class definition - - virtual int gen_var_impl (void); - // generate the implementation for the _var class - - virtual int gen_out_defn (void); - // generate the _out class definition - - virtual int gen_out_impl (void); - // generate the _out implementation - - const char *full_skel_name (void); - // retrieve the fully scoped skel class name - - // - // Each interface (to fix names "T") also defines two help classes, - // the "collocated" class inherits from T, but delegates on the - // skeleton for T (usually POA_T or POA_ModuleName::T), in other - // words it is a Bridge from T to its implementation. - // The class is nested inside the skeleton class. - // - // The "stub" is a class defined on the client scope, it actually - // defines the stubs (all operations in T are pure virtual). - // @@ TODO currently the stub class is not implemented. - // - const char *full_coll_name (void); - // retrieve the fully qualified collocated class name - - const char *local_coll_name (void) const; - // retrieve the fully qualified collocated class name - - virtual int gen_typecode (void); - // generate the typecode - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_size (void); - // return typecode size - - virtual long tc_encap_len (void); - // return length of encapsulation - - virtual int traverse_inheritance_graph (tao_code_emitter gen, - TAO_OutStream *os); - // template method using breadth first traversal of inheritance graph - - const char *relative_skel_name (const char *other_class_name); - // relative skeleton name - - const char *relative_coll_name (const char *other_class_name); - // relative name for collocated class. - - // Visiting - virtual int accept (be_visitor *visitor); - - virtual int write_as_return (TAO_OutStream *stream, - be_type *type); - // write the mapping as a return value on the stream. - - // Narrowing - DEF_NARROW_METHODS3 (be_interface, AST_Interface, be_scope, be_type); - DEF_NARROW_FROM_DECL (be_interface); - DEF_NARROW_FROM_SCOPE (be_interface); - - static int is_a_helper (be_interface *, be_interface *, TAO_OutStream *os); - // helper method passed to the template method - - static int downcast_helper (be_interface *, - be_interface *, - TAO_OutStream *os); - - static int gen_optable_helper (be_interface *, - be_interface *, - TAO_OutStream *os); - // helper method passed to the template method - - static int gen_skel_helper (be_interface *, - be_interface *, - TAO_OutStream *os); - // helper method passed to the template method - - void compute_fullskelname (void); - // compute the fully scoped skel class name - - int gen_operation_table (void); - // generate the operation table including entries for inherited interfaces - - static const char *relative_name (const char* our_name, - const char *other_class_name); - // relative name for collocated class. - - int gen_optable_entries (be_interface *); - // generate the operation table entries - - void compute_coll_name (void); - // compute the fully qualified collocated class name. - -private: - char *full_skel_name_; // fully scoped skeleton name - - int skel_count_; // number of static skeletons in the operation table - - char *full_coll_name_; - char *local_coll_name_; -}; - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_interface_fwd.h b/TAO/TAO_IDL/be_include/be_interface_fwd.h deleted file mode 100644 index e14b051837a..00000000000 --- a/TAO/TAO_IDL/be_include/be_interface_fwd.h +++ /dev/null @@ -1,76 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_interface.h -// -// = DESCRIPTION -// Extension of class AST_Interface_Fwd that provides additional means for C++ -// mapping of an interface. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_INTERFACE_FWD_H) -#define BE_INTERFACE_FWD_H - -/* - * BE_InterfaceFwd - */ -class be_interface_fwd : public virtual AST_InterfaceFwd, - public virtual be_type -{ - // =TITLE - // be_interface_fwd - // =DESCRIPTION - // Extensions to the AST_Interface_Fwd class -public: - // Operations - - be_interface_fwd (void); - // default constructor - - be_interface_fwd (UTL_ScopedName *n, UTL_StrList *p); - // constructor - - virtual int gen_var_defn (void); - // generate the _var class definition - - virtual int gen_var_impl (void); - // generate the implementation for the _var class - - virtual int gen_out_defn (void); - // generate the _out class definition - - virtual int gen_out_impl (void); - // generate the _out implementation - - virtual int gen_typecode (void); - // generate the typecode - - virtual long tc_size (void); - // return typecode size - - virtual int write_as_return (TAO_OutStream *stream, - be_type *type); - // write the mapping as a return value on the stream. - - // Visiting - virtual int accept (be_visitor* visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_interface_fwd, AST_InterfaceFwd, be_type); - DEF_NARROW_FROM_DECL (be_interface_fwd); - -}; - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_interpretive.h b/TAO/TAO_IDL/be_include/be_interpretive.h deleted file mode 100644 index e6312b8d2cd..00000000000 --- a/TAO/TAO_IDL/be_include/be_interpretive.h +++ /dev/null @@ -1,40 +0,0 @@ -// $Id$ - -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL Backend -// -// = FILENAME -// be_interpretive_visitor.h -// -// = DESCRIPTION -// Defines a factory that returns a specialized visitor object based on the -// code generation state. The visitors returned by this factory generate -// stubs and skeletons that use interpretive form of marshaling -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -class TAO_Interpretive_Visitor_Factory: public TAO_Visitor_Factory -{ - // =TITLE - // TAO_Visitor_Factory - // - // =DESCRIPTION - // Factory that creates visitors that generate stubs/skeletons for - // interpretive form of marshaling -public: - TAO_Interpretive_Visitor_Factory (void); - // constructor - - virtual ~TAO_Interpretive_Visitor_Factory (void); - // destructor - - virtual be_visitor *make_visitor (be_visitor_context *); - // create the right visitor - -}; diff --git a/TAO/TAO_IDL/be_include/be_module.h b/TAO/TAO_IDL/be_include/be_module.h deleted file mode 100644 index 68190f9406b..00000000000 --- a/TAO/TAO_IDL/be_include/be_module.h +++ /dev/null @@ -1,56 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_module.h -// -// = DESCRIPTION -// Extension of class AST_Module that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_MODULE_H) -#define _BE_MODULE_H - -/* - * BE_Module - */ - -class be_module : public virtual AST_Module, - public virtual be_scope, - public virtual be_decl -{ -public: - // =Operations - - be_module (void); - // default constructor - - be_module (UTL_ScopedName *n, UTL_StrList *p); - // constructor - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_module, AST_Module, be_scope, be_decl); - DEF_NARROW_FROM_DECL (be_module); - DEF_NARROW_FROM_SCOPE (be_module); - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_native.h b/TAO/TAO_IDL/be_include/be_native.h deleted file mode 100644 index 869e17a0fca..00000000000 --- a/TAO/TAO_IDL/be_include/be_native.h +++ /dev/null @@ -1,59 +0,0 @@ -// $Id$ - -// Id -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_native.h -// -// = DESCRIPTION -// The native IDL type -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - - -#if !defined (BE_NATIVE_H) -#define BE_NATIVE_H - -// Representation of "native" IDL type added by the POA spec - -class be_native : public virtual AST_Native, public virtual be_type -{ -public: - // =Operations - - // Constructor(s) - be_native (void); - // default constructor - - be_native(UTL_ScopedName *n, UTL_StrList *p); - // constructor that initializes its scoped name - - virtual ~be_native (void) {} - // destructor - - virtual int gen_typecode (void); - // generate the typecode description - - virtual long tc_size (void); - // return typecode size - - virtual int write_as_return (TAO_OutStream *stream, - be_type *type); - // write the mapping as a return value on the stream. - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2(be_native, AST_Native, be_type); - DEF_NARROW_FROM_DECL(be_native); -}; - -#endif /* BE_NATIVE_H */ diff --git a/TAO/TAO_IDL/be_include/be_operation.h b/TAO/TAO_IDL/be_include/be_operation.h deleted file mode 100644 index 21859abdd96..00000000000 --- a/TAO/TAO_IDL/be_include/be_operation.h +++ /dev/null @@ -1,78 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_operation.h -// -// = DESCRIPTION -// Extension of class AST_Operation that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_OPERATION_H) -#define BE_OPERATION_H - -class be_argument; - -/* - * BE_Operation - */ -class be_operation : public virtual AST_Operation, - public virtual be_scope, - public virtual be_decl -{ -public: - // =Operations - - be_operation (void); - // default constructor - - be_operation (AST_Type *rt, AST_Operation::Flags fl, UTL_ScopedName *n, - UTL_StrList *p); - // constructor - - virtual int argument_count (void); - // return the count of members - - virtual int has_native (void); - // Any of the arguments or the return value is a type. - // This is important because in that case no code should be - // generated for the stubs. - - be_argument *add_argument_to_scope (be_argument *arg); - // add an argument to the scope - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_operation, AST_Operation, be_scope, be_decl); - DEF_NARROW_FROM_DECL (be_operation); - DEF_NARROW_FROM_SCOPE (be_operation); - -protected: - //=helper - int compute_size_type (void); - // compute the size type if it is unknown - - int compute_argument_attr (void); - // count the number of arguments - - int argument_count_; - // number of arguments - - int has_native_; - // Is any argument of type native. -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_predefined_type.h b/TAO/TAO_IDL/be_include/be_predefined_type.h deleted file mode 100644 index 8d0aa7a44fd..00000000000 --- a/TAO/TAO_IDL/be_include/be_predefined_type.h +++ /dev/null @@ -1,77 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_predefined_type.h -// -// = DESCRIPTION -// Extension of class AST_PredefinedType that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_PREDEFINED_TYPE_H) -#define _BE_PREDEFINED_TYPE_H - -// be_classes.hh -// -// Defines all classes for dummy BE - -/* - * BE_PredefinedType - */ -class be_predefined_type : public virtual AST_PredefinedType, - public virtual be_type -{ -public: - // =Operations - - be_predefined_type (void); - // default constructor - - be_predefined_type (AST_PredefinedType::PredefinedType t, UTL_ScopedName *n, - UTL_StrList *p); - // constructor - - virtual int gen_typecode (void); - // generate the typecode - - virtual long tc_size (void); - // return typecode size - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_encap_len (void); - // return length of encapsulation - - virtual int write_as_return (TAO_OutStream *stream, - be_type *type); - // write the mapping as a return value on the stream. - - // Visiting - virtual int accept (be_visitor* visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_predefined_type, AST_PredefinedType, be_type); - DEF_NARROW_FROM_DECL (be_predefined_type); - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown - - virtual void compute_tc_name (void); - // overridden method -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_root.h b/TAO/TAO_IDL/be_include/be_root.h deleted file mode 100644 index d0d1221b7f2..00000000000 --- a/TAO/TAO_IDL/be_include/be_root.h +++ /dev/null @@ -1,58 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_root.h -// -// = DESCRIPTION -// Extension of class AST_Root that provides the backend -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_ROOT_H) -#define TAO_BE_ROOT_H - -class be_root : public virtual AST_Root, - public virtual be_scope, - public virtual be_decl -{ - // = TITLE - // The back end extension of the AST_Root class - // - // = DESCRIPTION - // -public: - // Operations - be_root (void); - // Default constructor - - be_root (UTL_ScopedName *n, UTL_StrList *p); - // Constructor that sets its scoped name , and any pragmas

- - // =Scope management functions that override the AST scope management methods - // since the AST methods set the names of the sequences, strings, and arrays - // to a fixed value which interferes with our back-end code generation - AST_Sequence *fe_add_sequence (AST_Sequence *); - AST_String *fe_add_string (AST_String *); - AST_Array *fe_add_array (AST_Array *); - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_root, AST_Root, be_scope, be_decl); - DEF_NARROW_FROM_DECL (be_root); - DEF_NARROW_FROM_SCOPE (be_root); -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_scope.h b/TAO/TAO_IDL/be_include/be_scope.h deleted file mode 100644 index 0378a5dec80..00000000000 --- a/TAO/TAO_IDL/be_include/be_scope.h +++ /dev/null @@ -1,76 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_scope.h -// -// = DESCRIPTION -// Extension of the UTL_Scope CFE class -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_SCOPE_H) -#define TAO_BE_SCOPE_H - -class be_decl; - -/* - * BE_Scope - */ -class be_scope : public virtual UTL_Scope -{ - // = TITLE - // be_scope - // = DESCRIPTION - // The back end extension of the UTL_Scope class - // -public: - // Operations - - be_scope (void); - // Default constructor - - be_scope (AST_Decl::NodeType nt); - // constructor that sets the node type - - virtual ~be_scope (void); - // destructor - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_encap_len (void); - // return length of encapsulation - - virtual void comma (unsigned short set); - // set the comma producing state - - int comma (void) const; - // get the comma producing state - - virtual be_decl *decl (void); - // return the be_decl node corresponding to this scope node - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS1 (be_scope, UTL_Scope); - DEF_NARROW_FROM_SCOPE (be_scope); - -private: - unsigned short comma_; - // if set, generate a comma after every element is handled -}; - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_sequence.h b/TAO/TAO_IDL/be_include/be_sequence.h deleted file mode 100644 index cd9e446cf54..00000000000 --- a/TAO/TAO_IDL/be_include/be_sequence.h +++ /dev/null @@ -1,108 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_sequence.h -// -// = DESCRIPTION -// Extension of class AST_Sequence that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_SEQUENCE_H) -#define BE_SEQUENCE_H - -/* - * BE_Sequence - */ - -class be_typedef; - -// A sequence in OMG IDL does not define a scoping construct just as a struct -// or union or an interface do. However, in the C++ mapping, a sequence becomes -// a class. If the base type of a sequence is another anonymous sequence, then -// the base type is defined in the scope of this sequence. Hence we define -// be_sequence to possess the additional characteristics of a scope -class be_sequence : public virtual AST_Sequence, - public virtual be_scope, - public virtual be_type -{ -public: - enum MANAGED_TYPE - { - MNG_UNKNOWN , - MNG_NONE, - MNG_STRING, - MNG_OBJREF - }; - - // =Operations - - be_sequence (void); - // default constructor - - be_sequence (AST_Expression *v, AST_Type *bt); - // constructor - - virtual int create_name (be_typedef *node=0); - // create a name for ourselves. If we are typedefed, then we get the name of - // the typedef node, else we generate a name for ourselves - - virtual int gen_typecode (void); - // generate the typecode - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_size (void); - // return typecode size - - virtual long tc_encap_len (void); - // return length of encapsulation - - virtual MANAGED_TYPE managed_type (void); - // return the managed type - - virtual idl_bool unbounded (void) const; - // is this sequence bounded or not - - // =Scope management functions - be_sequence *fe_add_sequence (be_sequence *); - - virtual be_decl *decl (void); - // overridden method on the be_scope class - - virtual int write_as_return (TAO_OutStream *stream, - be_type *type); - // write the mapping as a return value on the stream. - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_sequence, AST_Sequence, be_scope, be_type); - DEF_NARROW_FROM_DECL (be_sequence); - -protected: - virtual char *gen_name (void); - // helper to create_name - -private: - idl_bool unbounded_; - // whether we are bounded or unbounded - - MANAGED_TYPE mt_; - // our managed type -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_state.h b/TAO/TAO_IDL/be_include/be_state.h deleted file mode 100644 index 48284bd7813..00000000000 --- a/TAO/TAO_IDL/be_include/be_state.h +++ /dev/null @@ -1,296 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_state.h -// -// = DESCRIPTION -// The Code generator state class and its subclasses -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_STATE_H) -#define TAO_BE_STATE_H - -class be_state -{ - // =TITLE - // be_state - // =DESCRIPTION - // Emits code based on current state. This is an abstract base class. The - // task of code generation is handled by subclasses. -public: - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0) = 0; - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef - - virtual ~be_state (void); - // destructor - -protected: - be_state (void); - // constructor -}; - -// ============== subclasses ==================== - -class be_state_struct : public be_state -{ - // =TITLE - // be_state_struct - // =DESCRIPTION - // struct generation -public: - - be_state_struct (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton TAO_BE_STATE_STRUCT; - -class be_state_union_disctypedefn_ch: public be_state -{ - // =TITLE - // be_state_union_disctypedefn_ch - // =DESCRIPTION - // union discriminant defn generation in client header -public: - - be_state_union_disctypedefn_ch (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_UNION_DISCTYPEDEFN_CH; - -class be_state_union_disctypedefn_ci: public be_state -{ - // =TITLE - // be_state_union_disctypedefn_ci - // =DESCRIPTION - // union discriminant defn generation in client inline file -public: - - be_state_union_disctypedefn_ci (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_UNION_DISCTYPEDEFN_CI; - -class be_state_union_public_ch: public be_state -{ - // =TITLE - // be_state_union_public_ch - // =DESCRIPTION - // union discriminant defn generation in client header file -public: - - be_state_union_public_ch (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_UNION_PUBLIC_CH; - -class be_state_union_public_ci: public be_state -{ - // =TITLE - // be_state_union_public_ci - // =DESCRIPTION - // union discriminant defn generation in client inline file -public: - - be_state_union_public_ci (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_UNION_PUBLIC_CI; - -class be_state_union_private_ch: public be_state -{ - // =TITLE - // be_state_union_private_ch - // =DESCRIPTION - // union discriminant defn generation in client header file -public: - - be_state_union_private_ch (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_UNION_PRIVATE_CH; - -class be_state_union_public_cs: public be_state -{ - // =TITLE - // be_state_union_public_cs - // =DESCRIPTION - // union discriminant defn generation in client stubs file -public: - - be_state_union_public_cs (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_UNION_PUBLIC_CS; - -class be_state_operation: public be_state -{ - // =TITLE - // be_state_operation - // =DESCRIPTION - // operation return type -public: - - be_state_operation (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_OPERATION; - -class be_state_argument: public be_state -{ - // =TITLE - // be_state_argument - // =DESCRIPTION - // argument return type -public: - - be_state_argument (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_ARGUMENT; - -class be_state_typedef: public be_state -{ - // =TITLE - // be_state_typedef - // =DESCRIPTION - // typedef code generation -public: - - be_state_typedef (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_TYPEDEF; - -class be_state_array: public be_state -{ - // =TITLE - // be_state_array - // =DESCRIPTION - // array code generation -public: - - be_state_array (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_ARRAY; - -class be_state_sequence: public be_state -{ - // =TITLE - // be_state_sequence - // =DESCRIPTION - // sequence code generation -public: - - be_state_sequence (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_SEQUENCE; - -class be_state_attribute : public be_state -{ - // =TITLE - // be_state_attribute - // =DESCRIPTION - // attribute code generation -public: - be_state_attribute (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third - // parameter is used for recursive invocation involving a typedef -}; - -typedef ACE_Singleton - TAO_BE_STATE_ATTRIBUTE; - -class be_state_exception : public be_state -{ - // =TITLE - // be_state_exception - // =DESCRIPTION - // exception code generation -public: - be_state_exception (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third - // parameter is used for recursive invocation involving a typedef -}; - -typedef ACE_Singleton - TAO_BE_STATE_EXCEPTION; - -#endif /* end of be_state */ diff --git a/TAO/TAO_IDL/be_include/be_string.h b/TAO/TAO_IDL/be_include/be_string.h deleted file mode 100644 index 983653f4824..00000000000 --- a/TAO/TAO_IDL/be_include/be_string.h +++ /dev/null @@ -1,71 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_string.h -// -// = DESCRIPTION -// Extension of class AST_String that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_STRING_H) -#define BE_STRING_H - -/* - * BE_String - */ -class be_string : public virtual AST_String, - public virtual be_type -{ -public: - // Operations - - be_string (void); - // default constructor - - be_string (AST_Expression *v); - // constructor - - be_string (AST_Expression *v, long wide); - // constructor - - virtual int gen_typecode (void); - // generate the typecode - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_size (void); - // return typecode size - - virtual long tc_encap_len (void); - // return length of encapsulation - - virtual int write_as_return (TAO_OutStream *stream, - be_type *type); - // write the mapping as a return value on the stream. - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_string, AST_String, be_type); - DEF_NARROW_FROM_DECL (be_string); - -protected: - virtual void compute_tc_name (void); - // overridden method to compute typecode name -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_structure.h b/TAO/TAO_IDL/be_include/be_structure.h deleted file mode 100644 index 52fe361e00e..00000000000 --- a/TAO/TAO_IDL/be_include/be_structure.h +++ /dev/null @@ -1,95 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_structure.h -// -// = DESCRIPTION -// Extension of class AST_Structure that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_STRUCTURE_H) -#define BE_STRUCTURE_H - -/* - * BE_Structure - */ -class be_structure : public virtual AST_Structure, - public virtual be_scope, - public virtual be_type -{ -public: - // =Operations - - be_structure (void); - // default constructor - - be_structure (UTL_ScopedName *n, UTL_StrList *p); - // constructor - - virtual int gen_var_defn (void); - // generate the _var class definition - - virtual int gen_var_impl (void); - // generate the implementation for the _var class - - virtual int gen_out_defn (void); - // generate the _out class definition - - virtual int gen_out_impl (void); - // generate the _out implementation - - virtual int gen_typecode (void); - // generate the typecode - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_size (void); - // return typecode size - - virtual long tc_encap_len (void); - // return length of encapsulation - - virtual int member_count (void); - // return the count of members - - virtual int write_as_return (TAO_OutStream *stream, - be_type *type); - // write the mapping as a return value on the stream. - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_structure, AST_Structure, be_scope, be_type); - DEF_NARROW_FROM_DECL (be_structure); - DEF_NARROW_FROM_SCOPE (be_structure); - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown - -private: - //=helper - - int compute_member_count (void); - // count the number of members - - int member_count_; - // number of members -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_sunsoft.h b/TAO/TAO_IDL/be_include/be_sunsoft.h deleted file mode 100644 index 15b9b9a2568..00000000000 --- a/TAO/TAO_IDL/be_include/be_sunsoft.h +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_sunsoft.h -// -// = DESCRIPTION -// SunSoft specific backend output generation -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_HELPER_H) -#define TAO_BE_HELPER_H - -class TAO_SunSoft_OutStream : public TAO_OutStream -{ - // =TITLE - // TAO_SunSoft_OutStream - // =DESCRIPTION - // Backend specific to SunSoft AST nodes -public: - TAO_SunSoft_OutStream (void); - // constructor - - ~TAO_SunSoft_OutStream (void); - // destuctor - - virtual TAO_OutStream &print (Identifier *id); - // output the SunSoft IDL Identifier Node - - virtual TAO_OutStream &print (UTL_IdList *idl); - // output the SunSoft IDL UTL_IdList Node which is usually used to maintain a - // scoped name - - virtual TAO_OutStream &print (AST_Expression *expr); - // output the contents of the AST_Expression node -}; - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_type.h b/TAO/TAO_IDL/be_include/be_type.h deleted file mode 100644 index 56e4acfd5c4..00000000000 --- a/TAO/TAO_IDL/be_include/be_type.h +++ /dev/null @@ -1,106 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_type.h -// -// = DESCRIPTION -// Extension of class AST_Type that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_TYPE_H) -#define BE_TYPE_H - -class TAO_OutStream; - -/* - * BE_Type - */ -class be_type : public virtual AST_Type, - public virtual be_decl -{ -public: - // =Operations - - be_type (void); - // default constructor - - be_type (AST_Decl::NodeType nt, UTL_ScopedName *n, UTL_StrList *p); - // constructor - - virtual ~be_type (void); - - virtual int gen_var_defn (void); - // generate the _var class definition - - virtual int gen_var_impl (void); - // generate the implementation for the _var class - - virtual int gen_out_defn (void); - // generate the _out class definition - - virtual int gen_out_impl (void); - // generate the _out implementation - - virtual int gen_typecode (void) = 0; - // generate the typecode description - - virtual long tc_size (void) = 0; - // return typecode size - - UTL_ScopedName *tc_name (void); - // return the typecode name - - virtual const char *nested_type_name (be_decl *d, const char *suffix = 0); - // type name of a node used when generating declarations - - virtual int write_as_return (TAO_OutStream *stream, - be_type *type); - // Different types have different mappings as return values, for - // instance interfaces are returned by reference (_ptr), but basic - // types by value. - // Typedefs are tricky, their mapping depend on the real type they - // are aliasing, but the name should be the typedef name, hence - // typedefs delegate on their base type, but pass their nodes down - // so the real name can be generated; hence the parameter. - // This method writes the type as a return value on the stream. - - virtual AST_Decl::NodeType base_node_type (void) const; - // Typedefs are tricky to handle, in many points their mapping - // depend on base type they are aliasing. Since typedefs can be - // recursive simply using "base_type->node_type()" will not work, so - // the most "unaliased" type is needed. - - // Visiting - virtual int accept (be_visitor* visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_type, AST_Type, be_decl); - DEF_NARROW_FROM_DECL (be_type); - -protected: - virtual void compute_tc_name (void); - // computes the fully scoped typecode name - - UTL_ScopedName *tc_name_; - // typecode name - - char *type_name_; - // type name (this uses the ACE NESTED macro) - - char *nested_type_name_; - // for the corresponding method. -}; - -#endif // end of if !defined diff --git a/TAO/TAO_IDL/be_include/be_typedef.h b/TAO/TAO_IDL/be_include/be_typedef.h deleted file mode 100644 index abc9d767b3b..00000000000 --- a/TAO/TAO_IDL/be_include/be_typedef.h +++ /dev/null @@ -1,77 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_typedef.h -// -// = DESCRIPTION -// Extension of class AST_typedef that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_TYPEDEF_H) -#define BE_TYPEDEF_H - -/* - * BE_Typedef - */ -class be_typedef : public virtual AST_Typedef, - public virtual be_type -{ -public: - // =Operations - - be_typedef (void); - // default constructor - - be_typedef (AST_Type *bt, UTL_ScopedName *n, UTL_StrList *p); - // constructor - - be_type *primitive_base_type (void); - // return the most primitive base type by traversing the chain of typedefed - // base types - - virtual int gen_typecode (void); - // generate the typecode - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_size (void); - // return typecode size - - virtual long tc_encap_len (void); - // return length of encapsulation - - virtual AST_Decl::NodeType base_node_type (void) const; - // Return the most "unaliased" type node for the base type (see - // be_type.h). - - virtual int write_as_return (TAO_OutStream *stream, - be_type *type); - // write the mapping as a return value on the stream. - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_typedef, AST_Typedef, be_type); - DEF_NARROW_FROM_DECL (be_typedef); - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown - -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_union.h b/TAO/TAO_IDL/be_include/be_union.h deleted file mode 100644 index 55757b68030..00000000000 --- a/TAO/TAO_IDL/be_include/be_union.h +++ /dev/null @@ -1,103 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_union.h -// -// = DESCRIPTION -// Extension of class AST_Union that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_UNION_H) -#define BE_UNION_H - -/* - * BE_Union - */ -class be_union : public virtual AST_Union, - public virtual be_scope, - public virtual be_type -{ -public: - // =Operations - - be_union (void); - // default constructor - - be_union(AST_ConcreteType *dt, UTL_ScopedName *n, UTL_StrList *p); - // constructor - - virtual int gen_var_defn (void); - // generate the _var class definition - - virtual int gen_var_impl (void); - // generate the implementation for the _var class - - virtual int gen_out_defn (void); - // generate the _out class definition - - virtual int gen_out_impl (void); - // generate the _out implementation - - virtual int gen_typecode (void); - // generate the typecode - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_size (void); - // return typecode size - - virtual long tc_encap_len (void); - // return length of encapsulation - - virtual int member_count (void); - // return the count of members - - virtual int default_index (void); - // return the default index used - - virtual int write_as_return (TAO_OutStream *stream, - be_type *type); - // write the mapping as a return value on the stream. - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_union, AST_Union, be_scope, be_type); - DEF_NARROW_FROM_DECL(be_union); - DEF_NARROW_FROM_SCOPE(be_union); - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown - -private: - //=helper - - int compute_member_count (void); - // count the number of members - - int compute_default_index (void); - // count the default index - - int member_count_; - // number of members - - int default_index_; - // default label index (zero based indexing) -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_union_branch.h b/TAO/TAO_IDL/be_include/be_union_branch.h deleted file mode 100644 index 349db9ff58f..00000000000 --- a/TAO/TAO_IDL/be_include/be_union_branch.h +++ /dev/null @@ -1,58 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_union_branch.h -// -// = DESCRIPTION -// Extension of class AST_UnionBranch that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_UNION_BRANCH_H) -#define BE_UNION_BRANCH_H - -/* - * BE_UnionBranch - */ -class be_union_branch : public virtual AST_UnionBranch, - public virtual be_decl -{ -public: - // Operations - be_union_branch (void); - // default constructor - - be_union_branch (AST_UnionLabel *lab, AST_Type *ft, UTL_ScopedName *n, - UTL_StrList *p); - // constructor - - virtual int gen_encapsulation (void); - // generate the encapsulation - - virtual long tc_encap_len (void); - // return the total byte length of ourselves represented as an encapsulation - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_union_branch, AST_UnionBranch, be_decl); - DEF_NARROW_FROM_DECL (be_union_branch); -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown - -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_union_label.h b/TAO/TAO_IDL/be_include/be_union_label.h deleted file mode 100644 index 311e6b94dc9..00000000000 --- a/TAO/TAO_IDL/be_include/be_union_label.h +++ /dev/null @@ -1,19 +0,0 @@ -// $Id$ - -#if !defined(BE_UNION_LABEL_H) -#define BE_UNION_LABEL_H - -/* - * BE_UnionLabel - */ -class be_union_label : public virtual AST_UnionLabel { -public: - // Operations - be_union_label(); - be_union_label(AST_UnionLabel::UnionLabel ul, AST_Expression *v); - - // Visiting - virtual int accept (be_visitor *visitor); -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_visitor.h b/TAO/TAO_IDL/be_include/be_visitor.h deleted file mode 100644 index 4f8f6d9844b..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor.h +++ /dev/null @@ -1,157 +0,0 @@ -// -// $Id$ -// - -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor.h -// -// = DESCRIPTION -// The abstract visitor class. The concrete classes are responsible for code -// generation. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Carlos O'Ryan, Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_H) -#define TAO_BE_VISITOR_H - -class be_decl; -class be_scope; -class be_type; -class be_predefined_type; -class be_module; -class be_interface; -class be_interface_fwd; -class be_structure; -class be_exception; -class be_expression; -class be_enum; -class be_operation; -class be_field; -class be_argument; -class be_attribute; -class be_union; -class be_union_branch; -class be_union_label; -class be_constant; -class be_enum_val; -class be_array; -class be_sequence; -class be_string; -class be_typedef; -class be_root; -class be_native; - -class be_visitor_context; -class TAO_OutStream; - -class be_visitor -{ - // - // = TITLE - // Base class for visitors. - // - // = DESCRIPTION - // To implement code generation we use the "Visitor Pattern", this - // is the abstract "Visitor". - // The "visit" methods are not pure virtual to facilitate the - // implementation of simple visitors that only override a few. - // -public: - virtual ~be_visitor (void); - - virtual int visit_decl (be_decl *d); - // visit a decl node - - virtual int visit_scope (be_scope *node); - // visit the scope - - virtual int visit_type (be_type *node); - // visit the type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit the predefined type - - virtual int visit_module (be_module *node); - // visit module - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface_fwd - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_exception (be_exception *node); - // visit exception - - virtual int visit_expression (be_expression *node); - // visit expression - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_operation (be_operation *node); - // visit an operation - - virtual int visit_field (be_field *node); - // visit a field - - virtual int visit_argument (be_argument *node); - // visit argument - - virtual int visit_attribute (be_attribute *node); - // visit an attribute - - virtual int visit_union (be_union *node); - // visit union - - virtual int visit_union_branch (be_union_branch *node); - // visit union branch - - virtual int visit_union_label (be_union_label *node); - // visit union label - - virtual int visit_constant (be_constant *node); - // visit a constant - - virtual int visit_enum_val (be_enum_val *node); - // visit enum val - - virtual int visit_array (be_array *node); - // visit an array - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_string (be_string *node); - // visit a string - - virtual int visit_typedef (be_typedef *node); - // visit a typedef - - virtual int visit_root (be_root *node); - // visit a root - - virtual int visit_native (be_native *node); - // visit a native - -protected: - be_visitor (void); - // constructor is protected - -}; - -#endif // TAO_BE_VISITOR_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_args.h b/TAO/TAO_IDL/be_include/be_visitor_args.h deleted file mode 100644 index 95772b59119..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_args.h +++ /dev/null @@ -1,606 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_args.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments -// -// = AUTHOR -// Aniruddha Gokhale and Carlos O' Ryan -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARGS_H -#define _BE_VISITOR_ARGS_H - -#include "be_visitor_decl.h" - -class be_visitor_args : public be_visitor_decl -{ - // - // = TITLE - // Generates the code for arguments output. - // - // = DESCRIPTION - // At several stages in the code generation a node of type - // "be_operation" is visited, and the code for its arguments must - // be generated. - // Sometimes the argument declarations must be generated (such as - // in the class declaration), other the arguments names (such as - // in method invocations). - // This class implements some common functionality required across all - // argument visitors - // -public: - be_visitor_args (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args (void); - // destructor - - //= helper - virtual const char *type_name (be_type *type, const char *suffix=0); - // helper that produces either a nested name for header files or full name - // for others - - virtual AST_Argument::Direction direction (void); - // return the direction of the argument node - - virtual int visit_argument (be_argument *node); - // must be overridden by derived classes -}; - -class be_visitor_args_arglist : public be_visitor_args -{ - // - // = TITLE - // Generates the code for arguments output. - // - // = DESCRIPTION - // At several stages in the code generation a node of type - // "be_operation" is visited, and the code for its arguments must - // be generated. - // Sometimes the argument declarations must be generated (such as - // in the class declaration), other the arguments names (such as - // in method invocations). - // This class implements the declaration output, in other words, - // it outputs both the arguments and their types. - // -public: - be_visitor_args_arglist (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_arglist (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_native (be_native *node); - // visit native node - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -// ************************************************************ -// class be_visitor_args_pre_docall_cs -// ************************************************************ -class be_visitor_args_pre_docall_cs : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_docall_cs - // - // = DESCRIPTION - // Code to be generated when making the do_static_call - // -public: - be_visitor_args_pre_docall_cs (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_pre_docall_cs (void); - // destructor - - virtual int void_return_type (void); - // return true if the operation return type is void - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -// ************************************************************ -// class be_visitor_args_docall_cs -// ************************************************************ -class be_visitor_args_docall_cs : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_docall_cs - // - // = DESCRIPTION - // Code to be generated when making the do_static_call - // -public: - be_visitor_args_docall_cs (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_docall_cs (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -// ************************************************************ -// class be_visitor_args_post_docall_cs -// ************************************************************ -class be_visitor_args_post_docall_cs : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_post_docall_cs - // - // = DESCRIPTION - // Code to be generated after the do_static_call is done - // -public: - be_visitor_args_post_docall_cs (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_post_docall_cs (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type -}; - -// ************************************************************ -// class be_visitor_args_vardecl_ss -// ************************************************************ -class be_visitor_args_vardecl_ss : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_vardecl_ss - // - // = DESCRIPTION - // Visitor for variable declaration for argument - // -public: - be_visitor_args_vardecl_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_vardecl_ss (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -// ************************************************************ -// class be_visitor_args_pre_upcall_ss -// ************************************************************ -class be_visitor_args_pre_upcall_ss : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_upcall_ss - // - // = DESCRIPTION - // Visitor for passing argument to the upcall - // -public: - be_visitor_args_pre_upcall_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_pre_upcall_ss (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -// ************************************************************ -// class be_visitor_args_upcall_ss -// ************************************************************ -class be_visitor_args_upcall_ss : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_upcall_ss - // - // = DESCRIPTION - // Visitor for passing argument to the upcall - // -public: - be_visitor_args_upcall_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_upcall_ss (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -// ************************************************************ -// class be_visitor_args_marshal_ss -// ************************************************************ -class be_visitor_args_marshal_ss : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_marshal_ss - // - // = DESCRIPTION - // Visitor for passing argument to the marshaling/demarshaling routine - // -public: - be_visitor_args_marshal_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_marshal_ss (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -// ************************************************************ -// class be_visitor_args_post_upcall_ss -// ************************************************************ -class be_visitor_args_post_upcall_ss : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_post_upcall_ss - // - // = DESCRIPTION - // Visitor for post processing after upcall - // -public: - be_visitor_args_post_upcall_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_post_upcall_ss (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -// ************************************************************ -// class be_visitor_args_post_marshal_ss -// ************************************************************ -class be_visitor_args_post_marshal_ss : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_post_marshal_ss - // - // = DESCRIPTION - // Visitor for post processing after marshal - // -public: - be_visitor_args_post_marshal_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_post_marshal_ss (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif // _BE_VISITOR_ARGS_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_array.h b/TAO/TAO_IDL/be_include/be_visitor_array.h deleted file mode 100644 index 1aed4d15daa..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_array.h +++ /dev/null @@ -1,156 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_array.h -// -// = DESCRIPTION -// Visitors for generation of code for Arrays -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#ifndef _BE_VISITOR_ARRAY_H -#define _BE_VISITOR_ARRAY_H - -#include "be_visitor_decl.h" - - -// ************************************************************ -// class be_visitor_array_ch -// ************************************************************ - -class be_visitor_array_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_array_ch - // - // = DESCRIPTION - // Code to be generated for arrays in the client header file - // -public: - be_visitor_array_ch (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_array_ch (void); - // destructor - - virtual int visit_array (be_array *node); - // visit the array node - -}; - -// ************************************************************ -// class be_visitor_array_ci -// ************************************************************ - -class be_visitor_array_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_array_ci - // - // = DESCRIPTION - // Code to be generated for arrays in the client inline file - // -public: - be_visitor_array_ci (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_array_ci (void); - // destructor - - virtual int visit_array (be_array *node); - // visit the array node - -}; - -// ************************************************************ -// class be_visitor_array_cs -// ************************************************************ - -class be_visitor_array_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_array_cs - // - // = DESCRIPTION - // Code to be generated for arrays in the client stub file - // -public: - be_visitor_array_cs (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_array_cs (void); - // destructor - - virtual int visit_array (be_array *node); - // visit the array node - -}; - -// ************************************************************ -// class be_visitor_array_cs -// ************************************************************ - -class be_visitor_array_any_op_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_array_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for array that generates the Any operator - // declarations - // - -public: - be_visitor_array_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_array_any_op_ch (void); - // destructor - - virtual int visit_array (be_array *node); - // visit array - -}; - -// ************************************************************ -// class be_visitor_array_cs -// ************************************************************ - -class be_visitor_array_any_op_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_array_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for array that generates the Any operator - // implementations - // - -public: - be_visitor_array_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_array_any_op_cs (void); - // destructor - - virtual int visit_array (be_array *node); - // visit array - -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_visitor_attribute.h b/TAO/TAO_IDL/be_include/be_visitor_attribute.h deleted file mode 100644 index 6db40e2a693..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_attribute.h +++ /dev/null @@ -1,56 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_attribute.h -// -// = DESCRIPTION -// Concrete visitor for the Attribute class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_ATTRIBUTE_H) -#define TAO_BE_VISITOR_ATTRIBUTE_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -// ************************************************************ -// Attribute visitor -// ************************************************************ - -class be_visitor_attribute : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_attribute - // - // = DESCRIPTION - // This is a concrete visitor to generate code for attributes. We have one - // class for mapping into the client and server. - // - // -public: - be_visitor_attribute (be_visitor_context *ctx); - // constructor - - ~be_visitor_attribute (void); - // destructor - - virtual int visit_attribute (be_attribute *node); - // visit attribute. We provide code for this method in the derived class - -}; - - -#endif diff --git a/TAO/TAO_IDL/be_include/be_visitor_constant.h b/TAO/TAO_IDL/be_include/be_visitor_constant.h deleted file mode 100644 index f91580e3dd0..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_constant.h +++ /dev/null @@ -1,79 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_constant.h -// -// = DESCRIPTION -// Concrete visitor for the constant class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_CONSTANT_H) -#define TAO_BE_VISITOR_CONSTANT_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -class be_visitor_constant_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_constant_ch - // - // = DESCRIPTION - // This is the visitor for constant for the header file - // - // -public: - be_visitor_constant_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_constant_ch (void); - // destructor - - virtual int visit_constant (be_constant *node); - // visit constant. - -}; - -class be_visitor_constant_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_constant_cs - // - // = DESCRIPTION - // This is the visitor for constant for the impl file - // - // -public: - be_visitor_constant_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_constant_cs (void); - // destructor - - virtual int visit_constant (be_constant *node); - // visit constant - - // = special methods - - virtual int gen_nested_namespace_begin (be_module *node); - // generate the nested namespace begins - - virtual int gen_nested_namespace_end (be_module *node); - // generate the nested namespace ends -}; - -#endif // TAO_BE_VISITOR_CONSTANT_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_context.h b/TAO/TAO_IDL/be_include/be_visitor_context.h deleted file mode 100644 index 5896f2dd892..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_context.h +++ /dev/null @@ -1,229 +0,0 @@ -// -// $Id$ -// - -/* -*- C++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_context.h -// -// = DESCRIPTION -// This class serves to provide all the necessary context information to the -// visitor as it generates code. This may include the scope inside which the -// code is generated, the output file that is being used, and others. This -// context information will be passed to the abstract/concrete visitor -// factory which in turn will use it to construct the right visitor. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_CONTEXT_H) -#define TAO_BE_VISITOR_CONTEXT_H - -class be_visitor_context -{ -public: - be_visitor_context (void); - // default constructor - - be_visitor_context (const be_visitor_context &ctx); - // default constructor - - ~be_visitor_context (void); - // destructor - - be_visitor_context &operator= (const be_visitor_context &ctx); - // assignment operator - - // =helpers - - void reset (void); - // reset the context - - void stream (TAO_OutStream *os); - // set the output stream - - TAO_OutStream *stream (void); - // get the stream - - void scope (be_decl *scope); - // set the scope - - be_decl *scope (void); - // get the scope in which code will be generated - - void node (be_decl *node); - // current node being visited - - be_decl *node (void); - // node being visited - - void state (TAO_CodeGen::CG_STATE); - // code generation state - - TAO_CodeGen::CG_STATE state (void); - // return the code generation state - - void alias (be_typedef *node); - // set the alias node (if any) - - be_typedef *alias (void); - // return the aliased node (if any) - - void tdef (be_typedef *node); - // set the typedef node (if any) - - be_typedef *tdef (void); - // return the typedef node (if any) - - void attribute (be_attribute *attr); - // set the attribute node if any - - be_attribute *attribute (void); - // get the attribute node - - void exception (idl_bool); - // is it the special ctor for exceptions? - - idl_bool exception (void); - // is it the special ctor for exceptions? - - void comma (idl_bool); - // scope supoorts generation of comma after each element - - idl_bool comma (void); - // are we supposed to generate a comma? - - // = helpers - - // visitors may need the actual type of the node stored in this context. We - // could have kept separate nodes but that would have increased the size of - // the context class by a large extent. So we will rely on the - // "narrow_from_decl" approach - - // two types of helpers are provided here. One of them returns the node as - // the desired actual type. The other returns the scope as the desired type. - - be_argument *be_node_as_argument (void); - // return the node as argument if possible - - be_array *be_node_as_array (void); - // return the node as array if possible - - be_attribute *be_node_as_attribute (void); - // return the node as attribute if possible - - be_constant *be_node_as_constant (void); - // return the node as constant if possible - - be_enum *be_node_as_enum (void); - // return the node as enum if possible - - be_enum_val *be_node_as_enum_val (void); - // return the node as enum_val if possible - - be_exception *be_node_as_exception (void); - // return the node as exception if possible - - be_field *be_node_as_field (void); - // return the node as field if possible - - be_interface *be_node_as_interface (void); - // return the node as interface if possible - - be_interface_fwd *be_node_as_interface_fwd (void); - // return the node as interface_fwd if possible - - be_module *be_node_as_module (void); - // return the node as module if possible - - be_operation *be_node_as_operation (void); - // return the node as operation if possible - - be_predefined_type *be_node_as_predefined_type (void); - // return the node as predefined_type if possible - - be_root *be_node_as_root (void); - // return the node as root if possible - - be_sequence *be_node_as_sequence (void); - // return the node as sequence if possible - - be_string *be_node_as_string (void); - // return the node as string if possible - - be_structure *be_node_as_structure (void); - // return the node as structure if possible - - be_typedef *be_node_as_typedef (void); - // return the node as typedef if possible - - be_union *be_node_as_union (void); - // return the node as union if possible - - be_union_branch *be_node_as_union_branch (void); - // return the node as union_branch if possible - - // for scope - - be_enum *be_scope_as_enum (void); - // return the scope as enum if possible - - be_exception *be_scope_as_exception (void); - // return the scope as exception if possible - - be_interface *be_scope_as_interface (void); - // return the scope as interface if possible - - be_module *be_scope_as_module (void); - // return the scope as module if possible - - be_operation *be_scope_as_operation (void); - // return the scope as operation if possible - - be_root *be_scope_as_root (void); - // return the scope as root if possible - - be_structure *be_scope_as_structure (void); - // return the scope as structure if possible - - be_union *be_scope_as_union (void); - // return the scope as union if possible - -private: - TAO_CodeGen::CG_STATE state_; - // code generation state - - TAO_OutStream *os_; - // current output stream - - be_decl *scope_; - // current scope in which code is generated - - be_decl *node_; - // current node - - be_typedef *alias_; - // aliased node used as a scoped name to define IDL types. - - be_typedef *tdef_; - // typedef node - - be_attribute *attr_; - // attribute node stored here while generating its code - - idl_bool exception_; - // is it the special ctor for exceptions? - - idl_bool comma_; - // whether scope should generate a comma after every element -}; - - -#endif /* BE_VISITOR_CONTEXT_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_decl.h b/TAO/TAO_IDL/be_include/be_visitor_decl.h deleted file mode 100644 index 4c8f575cacd..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_decl.h +++ /dev/null @@ -1,52 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_decl.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Decl" node -// -// = AUTHOR -// Aniruddha Gokhale and Carlos O'Ryan -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_DECL_H) -#define TAO_BE_VISITOR_DECL_H - -#include "be_visitor.h" - -class be_visitor_decl : public be_visitor -{ - // - // = TITLE - // be_visitor_decl - // - // = DESCRIPTION - // This is a concrete visitor for the be_decl node. Its only purpose is to - // maintain state information for the derived visitor - // -public: - be_visitor_decl (be_visitor_context *ctx); - // constructor - - ~be_visitor_decl (void); - // destructor - -protected: - // using a protected mechanism will allow derived visitors to access this - // information - - be_visitor_context *ctx_; - // any context information required by the visitor -}; - - -#endif // TAO_BE_VISITOR_DECL_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum.h b/TAO/TAO_IDL/be_include/be_visitor_enum.h deleted file mode 100644 index bd8779d7349..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_enum.h +++ /dev/null @@ -1,125 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_enum.h -// -// = DESCRIPTION -// Concrete visitor for the enum class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_ENUM_H) -#define TAO_BE_VISITOR_ENUM_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -class be_visitor_enum_ch : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_enum_ch - // - // = DESCRIPTION - // This is the base visitor for enum for the header file - // - // -public: - be_visitor_enum_ch (be_visitor_context *ctx); - // conenumor - - ~be_visitor_enum_ch (void); - // deenumor - - virtual int visit_enum (be_enum *node); - // visit enum. - - // =visit operations on syntactically valid elements in our scope - - virtual int visit_enum_val (be_enum_val *node); - // visit enum_val - - // = helper - - virtual int post_process (void); - // generate a comma after each element is processed -}; - -class be_visitor_enum_cs : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_enum_cs - // - // = DESCRIPTION - // This is the visitor for enum for the impl file - // - // -public: - be_visitor_enum_cs (be_visitor_context *ctx); - // conenumor - - ~be_visitor_enum_cs (void); - // deenumor - - virtual int visit_enum (be_enum *node); - // visit enum and generate the typecode - -}; - -class be_visitor_enum_any_op_ch : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_enum_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for enum that generates the Any operator - // declarations - // - -public: - be_visitor_enum_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_enum_any_op_ch (void); - // destructor - - virtual int visit_enum (be_enum *node); - // visit enum -}; - -class be_visitor_enum_any_op_cs : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_enum_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for enum that generates the Any operator - // implementations - // - -public: - be_visitor_enum_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_enum_any_op_cs (void); - // destructor - - virtual int visit_enum (be_enum *node); - // visit enum -}; - -#endif // TAO_BE_VISITOR_ENUM_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception.h b/TAO/TAO_IDL/be_include/be_visitor_exception.h deleted file mode 100644 index a569cec9eb8..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception.h +++ /dev/null @@ -1,281 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_exception.h -// -// = DESCRIPTION -// Concrete visitor for the Exception class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_EXCEPTION_H) -#define TAO_BE_VISITOR_EXCEPTION_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -class be_visitor_exception : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_exception - // - // = DESCRIPTION - // This is the base visitor for exception - // - // -public: - be_visitor_exception (be_visitor_context *ctx); - // ctor - - ~be_visitor_exception (void); - // dtor - - virtual int visit_exception (be_exception *node); - // visit exception. We provide code for this method in the derived class - - // =visit operations on syntactically valid elements in our scope - - virtual int visit_field (be_field *node); - // visit field -}; - -class be_visitor_exception_ch : public be_visitor_exception -{ - // - // = TITLE - // be_visitor_exception_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for exception - // - // -public: - be_visitor_exception_ch (be_visitor_context *ctx); - // constructureor - - ~be_visitor_exception_ch (void); - // destructureor - - virtual int visit_exception (be_exception *node); - // visit exception. We provide code for this method in the derived class - -}; - -class be_visitor_exception_ci : public be_visitor_exception -{ - // - // = TITLE - // be_visitor_exception_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for exception - // - // -public: - be_visitor_exception_ci (be_visitor_context *ctx); - // ctor - - ~be_visitor_exception_ci (void); - // dtor - - virtual int visit_exception (be_exception *node); - // visit exception. We provide code for this method in the derived class - -}; - -class be_visitor_exception_cs : public be_visitor_exception -{ - // - // = TITLE - // be_visitor_exception_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for exception - // - // -public: - be_visitor_exception_cs (be_visitor_context *ctx); - // ctor - - ~be_visitor_exception_cs (void); - // dtor - - virtual int visit_exception (be_exception *node); - // visit exception. We provide code for this method in the derived class - -}; - -class be_visitor_exception_ctor : public be_visitor_scope -{ - // =TITLE - // be_visitor_exception_ctor - // - // =DESCRIPTION - // generation of the special constructor -public: - be_visitor_exception_ctor (be_visitor_context *ctx); - // ctor - - ~be_visitor_exception_ctor (void); - // dtor - - virtual int post_process (void); - // post processing after each element - - virtual int visit_exception (be_exception *node); - // visit exception. We provide code for this method in the derived class - - virtual int visit_field (be_field *node); - // visit the argument node - - // =visit all the nodes that can be the types for the field - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -class be_visitor_exception_ctor_assign : public be_visitor_scope -{ - // =TITLE - // be_visitor_exception_ctor_assign - // - // =DESCRIPTION - // generation of the assignment statements in -public: - be_visitor_exception_ctor_assign (be_visitor_context *ctx); - // ctor - - ~be_visitor_exception_ctor_assign (void); - // dtor - - virtual int visit_exception (be_exception *node); - // visit exception. - - virtual int visit_field (be_field *node); - // visit the field node - - // =visit all the nodes that can be the types for the field - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -class be_visitor_exception_any_op_ch : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_exception_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for exception that generates the Any operator - // declarations - // - -public: - be_visitor_exception_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_exception_any_op_ch (void); - // destructor - - virtual int visit_exception (be_exception *node); - // visit exception - - virtual int visit_field (be_field *node); - // visit field -}; - -class be_visitor_exception_any_op_cs : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_exception_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for exception that generates the Any operator - // implementations - // - -public: - be_visitor_exception_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_exception_any_op_cs (void); - // destructor - - virtual int visit_exception (be_exception *node); - // visit exception - - virtual int visit_field (be_field *node); - // visit field -}; - -#endif // TAO_BE_VISITOR_EXCEPTION_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_field.h b/TAO/TAO_IDL/be_include/be_visitor_field.h deleted file mode 100644 index 9846554bccc..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_field.h +++ /dev/null @@ -1,162 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_field.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Field" node -// -// = AUTHOR -// Aniruddha Gokhale and Carlos O'Ryan -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_FIELD_H) -#define TAO_BE_VISITOR_FIELD_H - -#include "be_visitor_decl.h" - -class be_visitor_field_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_field_ch - // - // = DESCRIPTION - // This is a concrete visitor for the be_field node for the client header. - // -public: - be_visitor_field_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_field_ch (void); - // destructor - - virtual int visit_field (be_field *node); - // visit the field node - - // =visit operations on all possible data types that a field can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -class be_visitor_field_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_field_ci - // - // = DESCRIPTION - // This is a concrete visitor for the be_field node for the client inline - // file - // -public: - be_visitor_field_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_field_ci (void); - // destructor - - virtual int visit_field (be_field *node); - // visit the field node - - // =visit operations on all possible data types that a field can be and for - // which inline code must be generated - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -class be_visitor_field_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_field_cs - // - // = DESCRIPTION - // This is a concrete visitor for the be_field node for the client stubs - // file - // -public: - be_visitor_field_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_field_cs (void); - // destructor - - virtual int visit_field (be_field *node); - // visit the field node - - // =visit operations on all possible data types that a field can be and impl - // code must be generated - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif // TAO_BE_VISITOR_FIELD_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface.h b/TAO/TAO_IDL/be_include/be_visitor_interface.h deleted file mode 100644 index 14aa6d95166..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface.h +++ /dev/null @@ -1,344 +0,0 @@ - -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_interface.h -// -// = DESCRIPTION -// Concrete visitor for the Interface class -// -// = AUTHOR -// Carlos O'Ryan and Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_INTERFACE_H) -#define TAO_BE_VISITOR_INTERFACE_H - -#include "be_visitor_scope.h" - - -// = DESCRIPTION -// Interface code generation is complex, the client stubs require -// two different class and the server also require other two. -// Only one of them includes whatever nested typedefs, exceptions -// and or structures are defined in the interface. -// To break this complexity a different visitor is used for each -// case. -// -// = NOTE -// Visitors were added recently into the compiler, so some -// code is still generated using the old "state oriented" approach; -// notably only the _collocated class is actually generated using -// the visitor, in the other cases (the interface class and the -// skeleton class) we still call back the old code generation -// methods. -// - -class be_visitor_interface : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_interface - // - // = DESCRIPTION - // This is a concrete visitor for interface that abstracts all common tasks - // - -public: - be_visitor_interface (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit the interface node - - // =visit methods on all elements syntactically valid in a Interface scope - - virtual int visit_attribute (be_attribute *node); - // visit attribute - - virtual int visit_constant (be_constant *node); - // visit a constant - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_exception (be_exception *node); - // visit an exception - - virtual int visit_operation (be_operation *node); - // visit operation - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - - virtual int visit_typedef (be_typedef *node); - // visit the typedef node - -}; - -// we need derived interface visitors for the client and server header files. For -// the others, they use the default interface visitor - -class be_visitor_interface_ch : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for interface - // - // -public: - be_visitor_interface_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_ch (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor - -}; - -class be_visitor_interface_ci : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for interface - // - // -public: - be_visitor_interface_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_ci (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor - -}; - -class be_visitor_interface_cs : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for interface - // - // -public: - be_visitor_interface_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_cs (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -class be_visitor_interface_sh : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for interface - // - // -public: - be_visitor_interface_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_sh (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -class be_visitor_interface_si : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_si - // - // = DESCRIPTION - // This is a concrete visitor to generate the server inline for interface - // - // -public: - be_visitor_interface_si (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_si (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -class be_visitor_interface_ss : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_ss - // - // = DESCRIPTION - // This is a concrete visitor to generate the server skeletons for interface - // - // -public: - be_visitor_interface_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_ss (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -class be_visitor_interface_collocated_sh : public be_visitor_interface -{ - // = TITLE - // Generate the "collocated" class declaration. - -public: - be_visitor_interface_collocated_sh (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_interface_collocated_sh (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit an interface - -}; - -class be_visitor_interface_collocated_ss : public be_visitor_interface -{ - // = TITLE - // Generate the "collocated" class declaration. - -public: - be_visitor_interface_collocated_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_interface_collocated_ss (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit interface - -}; - -class be_visitor_interface_any_op_ch : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for interface that generates the Any operator - // declarations - // - -public: - be_visitor_interface_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_any_op_ch (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit interface -}; - -class be_visitor_interface_any_op_cs : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for interface that generates the Any operator - // implementations - // - -public: - be_visitor_interface_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_any_op_cs (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit interface -}; - -class be_visitor_interface_tie_sh : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_tie_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for the TIE class - // - // -public: - be_visitor_interface_tie_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_tie_sh (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -class be_visitor_interface_tie_si : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_tie_si - // - // = DESCRIPTION - // This is a concrete visitor to generate the server inline for operations - // of the TIE class - // - // -public: - be_visitor_interface_tie_si (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_tie_si (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -#endif // _BE_VISITOR_INTERFACE_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd.h b/TAO/TAO_IDL/be_include/be_visitor_interface_fwd.h deleted file mode 100644 index b24a9942e39..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd.h +++ /dev/null @@ -1,72 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_interface_fwd.h -// -// = DESCRIPTION -// Concrete visitor for the interface_fwd class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_INTERFACE_FWD_H) -#define TAO_BE_VISITOR_INTERFACE_FWD_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -class be_visitor_interface_fwd_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_interface_fwd_ch - // - // = DESCRIPTION - // This is the visitor for interface_fwd for the header file - // - // -public: - be_visitor_interface_fwd_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_fwd_ch (void); - // destructor - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface_fwd. - -}; - -class be_visitor_interface_fwd_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_interface_fwd_ci - // - // = DESCRIPTION - // This is the visitor for interface_fwd for the inline file - // - // -public: - be_visitor_interface_fwd_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_fwd_ci (void); - // destructor - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface_fwd - -}; - -#endif // TAO_BE_VISITOR_INTERFACE_FWD_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_module.h b/TAO/TAO_IDL/be_include/be_visitor_module.h deleted file mode 100644 index 272af5bad45..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_module.h +++ /dev/null @@ -1,145 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_module.h -// -// = DESCRIPTION -// Concrete visitor for the Module class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_MODULE_H) -#define TAO_BE_VISITOR_MODULE_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -class be_visitor_module : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_module - // - // = DESCRIPTION - // This is a concrete visitor for module that abstracts all common tasks - // - -public: - be_visitor_module (be_visitor_context *ctx); - // constructor - - ~be_visitor_module (void); - // destructor - - // =visit methods on all elements syntactically valid in a Module scope - - virtual int visit_constant (be_constant *node); - // visit a constant - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_exception (be_exception *node); - // visit an exception - - virtual int visit_interface (be_interface *node); - // visit an interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit an interface - - virtual int visit_module (be_module *node); - // visit a module - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - - virtual int visit_typedef (be_typedef *node); - // visit the typedef node - -}; - -// we need derived module visitors for the client and server header files. For -// the others, they use the default module visitor - -class be_visitor_module_ch : public be_visitor_module -{ - // - // = TITLE - // be_visitor_module_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for module - // - // -public: - be_visitor_module_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_module_ch (void); - // destructor - - virtual int visit_module (be_module *node); - // visit module. We provide code for this method in the derived class - -}; - -class be_visitor_module_sh : public be_visitor_module -{ - // - // = TITLE - // be_visitor_module_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for module - // - // -public: - be_visitor_module_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_module_sh (void); - // destructor - - virtual int visit_module (be_module *node); - // visit module. We provide code for this method in the derived class - -}; - -class be_visitor_module_any_op : public be_visitor_module -{ - // - // = TITLE - // be_visitor_module_any_op - // - // = DESCRIPTION - // This is a concrete visitor for module that generates the Any operator - // declarations and implementations - // - -public: - be_visitor_module_any_op (be_visitor_context *ctx); - // constructor - - ~be_visitor_module_any_op (void); - // destructor - - virtual int visit_module (be_module *node); - // visit module -}; - -#endif // TAO_BE_VISITOR_MODULE_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation.h b/TAO/TAO_IDL/be_include/be_visitor_operation.h deleted file mode 100644 index 414d848311c..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation.h +++ /dev/null @@ -1,839 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_operation.h -// -// = DESCRIPTION -// Concrete visitor for the Operation class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_OPERATION_H) -#define TAO_BE_VISITOR_OPERATION_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -// ************************************************************ -// Operation visitor for client header -// ************************************************************ - -class be_visitor_operation_ch : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for operation - // - // -public: - be_visitor_operation_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_ch (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. We provide code for this method in the derived class - -}; - -// ************************************************************ -// Operation visitor for client stubs -// ************************************************************ - -class be_visitor_operation_cs : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for operation - // - // -public: - be_visitor_operation_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_cs (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. - - virtual int visit_argument (be_argument *node); - // visit argument to generate ParamData entries - - virtual int post_process (void); - // stuff to output after every member of the scope is handled -}; - -// ************************************************************ -// Operation visitor for server header -// ************************************************************ - -class be_visitor_operation_sh : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for operation - // - // -public: - be_visitor_operation_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_sh (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. We provide code for this method in the derived class - -}; - -// ************************************************************ -// Operation visitor for server skeletons -// ************************************************************ - -class be_visitor_operation_ss : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_ss - // - // = DESCRIPTION - // This is a concrete visitor to generate the server skeletons for operation - // - // -public: - be_visitor_operation_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_ss (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. We provide code for this method in the derived class - - virtual int visit_argument (be_argument *node); - // visit argument to generate ParamData entries - - virtual int post_process (void); - // stuff to output after every member of the scope is handled -}; - -// ************************************************************ -// Operation visitor for server header in the collocated class -// ************************************************************ - -class be_visitor_operation_collocated_sh : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_collocated_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for operation - // in the collocated class - // - // -public: - be_visitor_operation_collocated_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_collocated_sh (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation node. - -}; - -// ***************************************************************** -// Operation visitor for server skeletons for the collocated class -// ***************************************************************** - -class be_visitor_operation_collocated_ss : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_ss - // - // = DESCRIPTION - // This is a concrete visitor to generate the server skeletons for - // operation in the collocated class - // - // -public: - be_visitor_operation_collocated_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_collocated_ss (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation node. - -}; - -// *********************************************************************** -// Operation visitor for operation declaration inside the TIE class -// *********************************************************************** - -class be_visitor_operation_tie_sh : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_tie_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the operaton inside a TIE class - // - // -public: - be_visitor_operation_tie_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_tie_sh (void); - // destructor - - virtual int visit_operation (be_operation *node); - // set the right context and make a visitor -}; - -// *********************************************************************** -// Operation visitor for operation declaration inside the TIE class -// *********************************************************************** - -class be_visitor_operation_tie_si : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_tie_ss - // - // = DESCRIPTION - // This is a concrete visitor to generate the operaton inside a TIE class - // - // -public: - be_visitor_operation_tie_si (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_tie_si (void); - // destructor - - virtual int visit_operation (be_operation *node); - // set the right context and make a visitor -}; - -// *********************************************************************** -// Operation visitor for return types in the signature of the operation -// *********************************************************************** - -class be_visitor_operation_rettype : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_ch - // - // = DESCRIPTION - // This is a visitor to generate operation return types - // - // -public: - be_visitor_operation_rettype (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_native (be_native *node); - // visit native type - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -// ****************************************************************************** -// Operation visitor for argument list - generates parameters in the signature -// ****************************************************************************** - -class be_visitor_operation_arglist : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operaion_arglist - // - // = DESCRIPTION - // This is a visitor to generate operation argument list - // - // -public: - be_visitor_operation_arglist (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_arglist (void); - // destructor - - int visit_operation (be_operation *node); - // visit the operation - - int visit_argument (be_argument *node); - // visit each argument - -}; - -// ************************************************************ -// Operation visitor for return type variable declaration -// ************************************************************ - -class be_visitor_operation_rettype_vardecl_cs :public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_vardecl_cs - // - // = DESCRIPTION - // This is a visitor to generate a variable declaration ofr an operation - // return type - // -public: - be_visitor_operation_rettype_vardecl_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_vardecl_cs (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -// ************************************************************ -// Operation visitor for preprocessing before do_static_call is invoked -// ************************************************************ - -class be_visitor_operation_rettype_pre_docall_cs :public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_pre_docall_cs - // - // = DESCRIPTION - // This is a visitor to generate any pre processing before the do_static_call is - // made - // -public: - be_visitor_operation_rettype_pre_docall_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_pre_docall_cs (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -// ************************************************************ -// Operation visitor for passing return variable to do_static_call -// ************************************************************ - -class be_visitor_operation_rettype_docall_cs :public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_docall_cs - // - // = DESCRIPTION - // This is a visitor to generate a variable declaration ofr an operation - // return type - // -public: - be_visitor_operation_rettype_docall_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_docall_cs (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -// ************************************************************ -// Operation visitor for postprocessing after do_static_call is invoked -// ************************************************************ - -class be_visitor_operation_rettype_post_docall_cs :public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_psot_docall_cs - // - // = DESCRIPTION - // This is a visitor to generate any post processing after the do_static_call is - // made - // -public: - be_visitor_operation_rettype_post_docall_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_post_docall_cs (void); - // destructor - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node -}; - -// ************************************************************ -// Operation visitor for returning the return val -// ************************************************************ - -class be_visitor_operation_rettype_return_cs :public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_return_cs - // - // = DESCRIPTION - // This is a visitor to generate a variable declaration ofr an operation - // return type - // -public: - be_visitor_operation_rettype_return_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_return_cs (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -// ****************************************************************************** -// Visitor for -// ****************************************************************************** - -class be_visitor_operation_exceptlist_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operaion_exceptlist_cs - // - // = DESCRIPTION - // This is a visitor to generate operation exception list to be provided to - // the do_static_call - // - // -public: - be_visitor_operation_exceptlist_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_exceptlist_cs (void); - // destructor - - int visit_operation (be_operation *node); - // visit the operation - -}; - -// ************************************************************ -// generic operation visitor for docall, upcall, pre/post -// ************************************************************ - -class be_visitor_operation_argument : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_argument - // - // = DESCRIPTION - // This is a visitor to generate a variable declaration ofr an operation - // return type - // -public: - be_visitor_operation_argument (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_argument (void); - // destructor - - int post_process (void); - // stuff to o/p after each element of the scope is handled - - int visit_operation (be_operation *node); - // visit the operation - - int visit_argument (be_argument *node); - // visit argument - -}; - -// ************************************************************ -// Operation visitor for return type variable declaration in the server -// skeleton -// ************************************************************ - -class be_visitor_operation_rettype_vardecl_ss :public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_vardecl_ss - // - // = DESCRIPTION - // This is a visitor to generate a variable declaration ofr an operation - // return type in the server skeleton - // -public: - be_visitor_operation_rettype_vardecl_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_vardecl_ss (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -// *********************************************************************** -// Operation visitor for passing return type to the marshal/demarshal routine -// inside the server skeleton -// *********************************************************************** - -class be_visitor_operation_rettype_marshal_ss : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_marshal_ss - // - // = DESCRIPTION - // This is a visitor to pass return type to the marshal/demarshal routines - // - // -public: - be_visitor_operation_rettype_marshal_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_marshal_ss (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -// *********************************************************************** -// Operation visitor for assignment to return types in an upcall -// *********************************************************************** - -class be_visitor_operation_rettype_assign_ss : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_ch - // - // = DESCRIPTION - // This is a visitor to generate code that assigns to the return type - // variable in the upcall - // - // -public: - be_visitor_operation_rettype_assign_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_assign_ss (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -// *********************************************************************** -// Operation visitor for post upcall processing of return types -// *********************************************************************** - -class be_visitor_operation_rettype_post_upcall_ss : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_post_upcall_ss - // - // = DESCRIPTION - // This is a visitor for post processing after an upcall - // - // -public: - be_visitor_operation_rettype_post_upcall_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_post_upcall_ss (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -#endif // TAO_BE_VISITOR_OPERATION_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_root.h b/TAO/TAO_IDL/be_include/be_visitor_root.h deleted file mode 100644 index 68d3dcf4867..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root.h +++ /dev/null @@ -1,232 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_root.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// -// = AUTHOR -// Aniruddha Gokhale and Carlos O'Ryan -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_ROOT_H) -#define TAO_BE_VISITOR_ROOT_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -class be_visitor_root : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_root - // - // = DESCRIPTION - // This is a concrete visitor for root that abstracts all common tasks - // - -public: - be_visitor_root (be_visitor_context *ctx); - // constructor - - ~be_visitor_root (void); - // destructor - - virtual int visit_root (be_root *node); - // visit root - - // =visit methods on all elements syntactically valid in a Root scope - - virtual int visit_constant (be_constant *node); - // visit a constant - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_exception (be_exception *node); - // visit an exception - - virtual int visit_interface (be_interface *node); - // visit an interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit an interface - - virtual int visit_module (be_module *node); - // visit a module - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - - virtual int visit_typedef (be_typedef *node); - // visit the typedef node - - // =helper. This is used by derived clases to set the right context - - virtual int init (void); - // will be overridden by derived classes that set the appropriate context -}; - -class be_visitor_root_ch : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for root - // - // -public: - be_visitor_root_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_ch (void); - // destructor - - virtual int init (void); - // set the right context and make a visitor -}; - -class be_visitor_root_ci : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for root - // - // -public: - be_visitor_root_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_ci (void); - // destructor - - virtual int init (void); - // set the right context and make a visitor -}; - -class be_visitor_root_cs : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for root - // - // -public: - be_visitor_root_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_cs (void); - // destructor - - virtual int init (void); - // set the right context and make a visitor -}; - -class be_visitor_root_sh : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for root - // - // -public: - be_visitor_root_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_sh (void); - // destructor - - virtual int init (void); - // set the right context and make a visitor -}; - -class be_visitor_root_si : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_si - // - // = DESCRIPTION - // This is a concrete visitor to generate the server inline for root - // - // -public: - be_visitor_root_si (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_si (void); - // destructor - - virtual int init (void); - // set the right context and make a visitor -}; - -class be_visitor_root_ss : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_ss - // - // = DESCRIPTION - // This is a concrete visitor to generate the server skeletons for root - // - // -public: - be_visitor_root_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_ss (void); - // destructor - - virtual int init (void); - // set the right context and make a visitor -}; - - -class be_visitor_root_any_op : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_any_op - // - // = DESCRIPTION - // This is a concrete visitor for root that generates the Any operator - // declarations and implementations - // - -public: - be_visitor_root_any_op (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_any_op (void); - // destructor - - virtual int visit_root (be_root *node); - // visit root -}; - -#endif // TAO_BE_VISITOR_ROOT_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_scope.h b/TAO/TAO_IDL/be_include/be_visitor_scope.h deleted file mode 100644 index 07796a9b0e2..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_scope.h +++ /dev/null @@ -1,53 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_scope.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Scope" node -// -// = AUTHOR -// Aniruddha Gokhale and Carlos O'Ryan -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_SCOPE_H) -#define TAO_BE_VISITOR_SCOPE_H - -#include "be_visitor.h" -#include "be_visitor_decl.h" - -class be_visitor_scope : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_scope - // - // = DESCRIPTION - // This is a concrete visitor for the be_scope node. Its only purpose is to - // iterate over the elements of the scope - // -public: - be_visitor_scope (be_visitor_context *ctx); - // constructor - - ~be_visitor_scope (void); - // destructor - - int visit_scope (be_scope *node); - // visit scope - - virtual int post_process (void); - // do any processing after every element except the last one of the scope is - // processed -}; - - -#endif // TAO_BE_VISITOR_SCOPE_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence.h b/TAO/TAO_IDL/be_include/be_visitor_sequence.h deleted file mode 100644 index da412d0b9e4..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence.h +++ /dev/null @@ -1,258 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -#if !defined (TAO_BE_VISITOR_SEQUENCE_H) -#define TAO_BE_VISITOR_SEQUENCE_H - -#include "be_visitor_decl.h" - -class be_visitor_sequence_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for - // sequences - // -public: - be_visitor_sequence_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_sequence_ch (void); - // destructor - - virtual int visit_sequence (be_sequence *node); - // visit sequence node - - virtual int gen_base_sequence_class (be_sequence *node); - // generate the base sequence class - - virtual int gen_var_defn (be_sequence *node); - // generate the var defn - - virtual int gen_out_defn (be_sequence *node); - // generate the out defn -}; - -class be_visitor_sequence_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for - // sequences. The only purpose is to generate the implementation for the - // _var and _out classes - // -public: - be_visitor_sequence_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_sequence_ci (void); - // destructor - - virtual int visit_sequence (be_sequence *node); - // visit sequence node - - virtual int gen_var_impl (be_sequence *node); - // generate the var impl - - virtual int gen_out_impl (be_sequence *node); - // generate the out impl -}; - -class be_visitor_sequence_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for - // sequences - // -public: - be_visitor_sequence_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_sequence_cs (void); - // destructor - - virtual int visit_sequence (be_sequence *node); - // visit sequence node - - virtual int gen_base_sequence_class (be_sequence *node); - // generate the base sequence class - -}; - -// =helper visitors to generate the base type and element type - -class be_visitor_sequence_base : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_base - // - // = DESCRIPTION - // This is a concrete visitor to generate the template parameters - // for a TAO_*_Sequence instantiation. - // - // = BUGS - // The class name is misleading, eventually this class could be - // used to generate code in other files, not only the client - // header. - // The visitor factory should provide a factory method that builds - // this class on the fly. - // -public: - be_visitor_sequence_base (be_visitor_context *ctx); - // Constructor - - ~be_visitor_sequence_base (void); - // destructor - - // = Visitor methods. - virtual int visit_predefined_type (be_predefined_type *node); - virtual int visit_interface (be_interface *node); - virtual int visit_interface_fwd (be_interface_fwd *node); - virtual int visit_structure (be_structure *node); - virtual int visit_enum (be_enum *node); - virtual int visit_exception (be_exception *node); - virtual int visit_union (be_union *node); - virtual int visit_array (be_array *node); - virtual int visit_string (be_string *node); - virtual int visit_sequence (be_sequence *node); - virtual int visit_typedef (be_typedef *node); - -protected: - int visit_node (be_type *); - // helper that does the common job - -}; - -class be_visitor_sequence_buffer_type : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_buffer_type - // - // = DESCRIPTION - // This is a concrete visitor to generate the buffer type - // for a TAO_*_Sequence instantiation. - // -public: - be_visitor_sequence_buffer_type (be_visitor_context *ctx); - // Constructor - - ~be_visitor_sequence_buffer_type (void); - // destructor - - // = Visitor methods. - virtual int visit_predefined_type (be_predefined_type *node); - virtual int visit_interface (be_interface *node); - virtual int visit_interface_fwd (be_interface_fwd *node); - virtual int visit_structure (be_structure *node); - virtual int visit_enum (be_enum *node); - virtual int visit_exception (be_exception *node); - virtual int visit_union (be_union *node); - virtual int visit_array (be_array *node); - virtual int visit_string (be_string *node); - virtual int visit_sequence (be_sequence *node); - virtual int visit_typedef (be_typedef *node); - -protected: - int visit_node (be_type *); - // helper that does the common job - -}; - -class be_visitor_sequence_elemtype : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_elemtype - // - // = DESCRIPTION - // This is a concrete visitor to generate the return type for the - // [] operators - // - // = NOTES - // This class may eventually go away when the _var and _out classes are - // generated using templates -public: - be_visitor_sequence_elemtype (be_visitor_context *ctx); - // Constructor - - ~be_visitor_sequence_elemtype (void); - // destructor - - // = Visitors - virtual int visit_predefined_type (be_predefined_type *node); - virtual int visit_interface (be_interface *node); - virtual int visit_interface_fwd (be_interface_fwd *node); - virtual int visit_structure (be_structure *node); - virtual int visit_enum (be_enum *node); - virtual int visit_exception (be_exception *node); - virtual int visit_union (be_union *node); - virtual int visit_array (be_array *node); - virtual int visit_sequence (be_sequence *node); - virtual int visit_typedef (be_typedef *node); - virtual int visit_string (be_string *node); - -protected: - int visit_node (be_type *); - // helper that does the common job - -}; - -class be_visitor_sequence_any_op_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for sequence that generates the Any operator - // declarations - // - -public: - be_visitor_sequence_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_sequence_any_op_ch (void); - // destructor - - virtual int visit_sequence (be_sequence *node); - // visit sequence -}; - -class be_visitor_sequence_any_op_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for sequence that generates the Any operator - // implementations - // - -public: - be_visitor_sequence_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_sequence_any_op_cs (void); - // destructor - - virtual int visit_sequence (be_sequence *node); - // visit sequence -}; - -#endif /* TAO_BE_VISITOR_SEQUENCE_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure.h b/TAO/TAO_IDL/be_include/be_visitor_structure.h deleted file mode 100644 index 63484a80692..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_structure.h +++ /dev/null @@ -1,171 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_structure.h -// -// = DESCRIPTION -// Concrete visitor for the Structure class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_STRUCTURE_H) -#define TAO_BE_VISITOR_STRUCTURE_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -class be_visitor_structure : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_structure - // - // = DESCRIPTION - // This is the base visitor for structure - // - // -public: - be_visitor_structure (be_visitor_context *ctx); - // constructureor - - ~be_visitor_structure (void); - // destructureor - - virtual int visit_structure (be_structure *node); - // visit structure. We provide code for this method in the derived class - - // =visit operations on syntactically valid elements in our scope - - virtual int visit_field (be_field *node); - // visit field -}; - -class be_visitor_structure_ch : public be_visitor_structure -{ - // - // = TITLE - // be_visitor_structure_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for structure - // - // -public: - be_visitor_structure_ch (be_visitor_context *ctx); - // constructureor - - ~be_visitor_structure_ch (void); - // destructureor - - virtual int visit_structure (be_structure *node); - // visit structure. We provide code for this method in the derived class - -}; - -class be_visitor_structure_ci : public be_visitor_structure -{ - // - // = TITLE - // be_visitor_structure_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for structure - // - // -public: - be_visitor_structure_ci (be_visitor_context *ctx); - // constructureor - - ~be_visitor_structure_ci (void); - // destructureor - - virtual int visit_structure (be_structure *node); - // visit structure. We provide code for this method in the derived class - -}; - -class be_visitor_structure_cs : public be_visitor_structure -{ - // - // = TITLE - // be_visitor_structure_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for structure - // - // -public: - be_visitor_structure_cs (be_visitor_context *ctx); - // constructureor - - ~be_visitor_structure_cs (void); - // destructureor - - virtual int visit_structure (be_structure *node); - // visit structure. We provide code for this method in the derived class - -}; - -class be_visitor_structure_any_op_ch : public be_visitor_structure -{ - // - // = TITLE - // be_visitor_structure_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for structure that generates the Any operator - // declarations - // - -public: - be_visitor_structure_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_structure_any_op_ch (void); - // destructor - - virtual int visit_structure (be_structure *node); - // visit structure - - virtual int visit_field (be_field *node); - // visit field -}; - -class be_visitor_structure_any_op_cs : public be_visitor_structure -{ - // - // = TITLE - // be_visitor_structure_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for structure that generates the Any operator - // implementations - // - -public: - be_visitor_structure_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_structure_any_op_cs (void); - // destructor - - virtual int visit_structure (be_structure *node); - // visit structure - - virtual int visit_field (be_field *node); - // visit field -}; - - -#endif // TAO_BE_VISITOR_STRUCTURE_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_typecode.h b/TAO/TAO_IDL/be_include/be_visitor_typecode.h deleted file mode 100644 index 23bb9f5f3ea..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typecode.h +++ /dev/null @@ -1,132 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_typecode.h -// -// = DESCRIPTION -// Concrete visitor to generate code for TypeCodes -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_TYPECODE_H) -#define TAO_BE_VISITOR_TYPECODE_H - -#include "be_visitor_decl.h" - -class be_visitor_typecode_decl : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_typecode_decl - // - // = DESCRIPTION - // This is a concrete visitor for generating TypeCode declarations - // - -public: - be_visitor_typecode_decl (be_visitor_context *ctx); - // constructor - - ~be_visitor_typecode_decl (void); - // destructor - - virtual int visit_type (be_type *node); - // visit a generic be_type node - - // =visit methods on all types. They call the generic visit_type - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_exception (be_exception *node); - // visit an enum - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_typedef (be_typedef *node); - // visit a typedef - - virtual int visit_union (be_union *node); - // visit a union - -}; - - -class be_visitor_typecode_defn : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_typecode_defn - // - // = DESCRIPTION - // This is a concrete visitor for generating TypeCode definitions - // - -public: - be_visitor_typecode_defn (be_visitor_context *ctx); - // constructor - - ~be_visitor_typecode_defn (void); - // destructor - - virtual int visit_type (be_type *node); - // visit a generic be_type node - - // =visit methods on all types. They call the generic visit_type - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_exception (be_exception *node); - // visit an enum - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_typedef (be_typedef *node); - // visit a typedef - - virtual int visit_union (be_union *node); - // visit a union - - - // = special methods - - virtual int gen_nested_namespace_begin (be_module *node); - // generate the nested namespace begins - - virtual int gen_nested_namespace_end (be_module *node); - // generate the nested namespace ends -}; - -#endif /* TAO_BE_VISITOR_TYPECODE_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef.h b/TAO/TAO_IDL/be_include/be_visitor_typedef.h deleted file mode 100644 index 7e5370057db..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef.h +++ /dev/null @@ -1,267 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_typedef.h -// -// = DESCRIPTION -// Concrete visitor for the Typedef class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_TYPEDEF_H) -#define TAO_BE_VISITOR_TYPEDEF_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -class be_visitor_typedef : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_typedef - // - // = DESCRIPTION - // This is a concrete visitor for typedef that abstracts all common tasks - // - -public: - be_visitor_typedef (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // must be overridden - - // =visit methods on all elements syntactically valid as types that can be - // typedefed. - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type node - - virtual int visit_string (be_string *node); - // visit a typedef - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - -}; - -// we need derived typedef visitors for the client files. - -class be_visitor_typedef_ch : public be_visitor_typedef -{ - // - // = TITLE - // be_visitor_typedef_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for typedef - // - // -public: - be_visitor_typedef_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef_ch (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // visit typedef. We provide code for this method in the derived class - - // =visit methods on all elements syntactically valid as types that can be - // typedefed. - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_interface (be_interface *node); - // visit an interface; - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type node - - virtual int visit_string (be_string *node); - // visit a typedef - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - -}; - -class be_visitor_typedef_ci : public be_visitor_typedef -{ - // - // = TITLE - // be_visitor_typedef_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for typedef - // - // -public: - be_visitor_typedef_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef_ci (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // visit typedef. We provide code for this method in the derived class - - // =visit methods on all elements syntactically valid as types that can be - // typedefed. - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - -}; - -class be_visitor_typedef_cs : public be_visitor_typedef -{ - // - // = TITLE - // be_visitor_typedef_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for typedef - // - // -public: - be_visitor_typedef_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef_cs (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // visit typedef. We provide code for this method in the derived class - -}; - -class be_visitor_typedef_any_op_ch : public be_visitor_typedef -{ - // - // = TITLE - // be_visitor_typedef_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for typedef that generates the Any operator - // declarations and implementations - // - -public: - be_visitor_typedef_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef_any_op_ch (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // visit typedef - - // =visit methods on all elements syntactically valid as types that can be - // typedefed. - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - -}; - -class be_visitor_typedef_any_op_cs : public be_visitor_typedef -{ - // - // = TITLE - // be_visitor_typedef_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for typedef that generates the Any operator - // declarations and implementations - // - -public: - be_visitor_typedef_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef_any_op_cs (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // visit typedef - - // =visit methods on all elements syntactically valid as types that can be - // typedefed. - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - -}; - - -#endif // TAO_BE_VISITOR_TYPEDEF_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_union.h b/TAO/TAO_IDL/be_include/be_visitor_union.h deleted file mode 100644 index c812317d841..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union.h +++ /dev/null @@ -1,250 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_union.h -// -// = DESCRIPTION -// Concrete visitor for the Union class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_UNION_H) -#define TAO_BE_VISITOR_UNION_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -class be_visitor_union : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_union - // - // = DESCRIPTION - // This is the base visitor for union - // - // -public: - be_visitor_union (be_visitor_context *ctx); - // constructor - - ~be_visitor_union (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union. We provide code for this method in the derived class - - // =visit operations on syntactically valid elements in our scope - - virtual int visit_union_branch (be_union_branch *node); - // visit union_branch -}; - -class be_visitor_union_ch : public be_visitor_union -{ - // - // = TITLE - // be_visitor_union_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for union - // - // -public: - be_visitor_union_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_ch (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union. We provide code for this method in the derived class - -}; - -class be_visitor_union_ci : public be_visitor_union -{ - // - // = TITLE - // be_visitor_union_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for union - // - // -public: - be_visitor_union_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_ci (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union. We provide code for this method in the derived class - -}; - -class be_visitor_union_cs : public be_visitor_union -{ - // - // = TITLE - // be_visitor_union_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for union - // - // -public: - be_visitor_union_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_cs (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union. We provide code for this method in the derived class - -}; - -class be_visitor_union_discriminant_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_discriminant_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for union - // discriminant - // - // -public: - be_visitor_union_discriminant_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_discriminant_ch (void); - // destructor - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_predefined_type (be_predefined_type *node); - // visit a predefined type - - virtual int visit_typedef (be_typedef *node); - // visit a typedef node -}; - -class be_visitor_union_discriminant_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_discriminant_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for union - // discriminant - // - // -public: - be_visitor_union_discriminant_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_discriminant_ci (void); - // destructor - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_predefined_type (be_predefined_type *node); - // visit a predefined type - - virtual int visit_typedef (be_typedef *node); - // visit a typedef node -}; - -class be_visitor_union_discriminant_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_discriminant_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for union - // discriminant - // - // -public: - be_visitor_union_discriminant_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_discriminant_cs (void); - // destructor - - virtual int visit_enum (be_enum *node); - // visit an enum. Required to generate the typecode for an enum definition - // appearing side the union - -}; - -class be_visitor_union_any_op_ch : public be_visitor_union -{ - // - // = TITLE - // be_visitor_union_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for union that generates the Any operator - // declarations - // - -public: - be_visitor_union_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_any_op_ch (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union - - virtual int visit_union_branch (be_union_branch *node); - // visit union_branch -}; - -class be_visitor_union_any_op_cs : public be_visitor_union -{ - // - // = TITLE - // be_visitor_union_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for union that generates the Any operator - // implementations - // - -public: - be_visitor_union_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_any_op_cs (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union - - virtual int visit_union_branch (be_union_branch *node); - // visit union_branch -}; - -#endif // TAO_BE_VISITOR_UNION_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch.h deleted file mode 100644 index 780099165eb..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch.h +++ /dev/null @@ -1,254 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_union_branch.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Union_Branch" node -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_UNION_BRANCH_H) -#define TAO_BE_VISITOR_UNION_BRANCH_H - -#include "be_visitor_decl.h" - -class be_visitor_union_branch_public_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_public_ch - // - // = DESCRIPTION - // This is a concrete visitor for the be_union_branch node for the client - // header. This generates the code for the public section of the "union" - // class - // -public: - be_visitor_union_branch_public_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_public_ch (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -class be_visitor_union_branch_private_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_private_ch - // - // = DESCRIPTION - // This is a concrete visitor for the be_union_branch node for the client - // header. This generates the code for the private section of the "union" - // class - // -public: - be_visitor_union_branch_private_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_private_ch (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -class be_visitor_union_branch_public_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_public_ci - // - // = DESCRIPTION - // This visitor is used to generate the accessors for the members of the - // union - // -public: - be_visitor_union_branch_public_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_public_ci (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -class be_visitor_union_branch_public_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_public_cs - // - // = DESCRIPTION - // This visitor is used to generate implementation such as typecodes for - // constructed types - // -public: - be_visitor_union_branch_public_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_public_cs (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -class be_visitor_union_branch_public_assign_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_public_assign_cs - // - // = DESCRIPTION - // This is used to generate the body of the assignment operator and the - // copy constructor of the union class - // -public: - be_visitor_union_branch_public_assign_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_public_assign_cs (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - -}; - -#endif // TAO_BE_VISITOR_UNION_BRANCH_H diff --git a/TAO/TAO_IDL/docs/ANNOUNCEMENT b/TAO/TAO_IDL/docs/ANNOUNCEMENT deleted file mode 100644 index 870db6f6006..00000000000 --- a/TAO/TAO_IDL/docs/ANNOUNCEMENT +++ /dev/null @@ -1,131 +0,0 @@ -WHAT: - -SunSoft, Inc., Mountain View, California, has placed the source code to -Project DOE's Interface Definition Language (IDL) compiler front end -(CFE) on OMG's file server, making the implementation publicly -available. This release is identified by the version number 1.3. - -Project DOE is SunSoft's corporate-wide development effort to integrate -distributed object technology into the Solaris O/S. OMG (Object Management -Group) is the industry wide body formed to create specifications for -distributed object technology. It currently has more than 370 members. OMG -IDL is part of OMG's CORBA 1.1 specification and provides a standardized -way for defining object interfaces. OMG IDL forms the basis for distributed -object interactionin Project DOE. - -The SunSoft OMG IDL CFE provides a complete framework for building -CORBA 1.1-compliant preprocessors for OMG IDL. By using this standard -implementation, developers of OMG IDL compilers will save many months -of work and enhance the portability and interoperability of OMG -IDL-interfaced objects. - -The SunSoft OMG IDL CFE allows convenient and fast integration of new back -ends to the compiler. The release consists of a front end which converts -OMG IDL to an intermediate format, a compiler framework driver, an example -implementation of a compiler back end, and a set of protocols for -interaction between the front and back ends. The SunSoft OMG IDL CFE -parser uses components generated by yacc and lex. - -The SunSoft OMG IDL CFE is designed to allow easy extension of OMG IDL -without impacting existing back-end implementations. As the CORBA -specification evolves, any new updates to the IDE CFE will be placed -by SunSoft on the OMG server. - -This release provides a directory with many examples of OMG IDL -specifications to allow users to become familiar with the process of -writing OMG IDL code. - -For more information send email to idl-cfe@sun.com. - -HOW: - -The SunSoft OMG IDL CFE is available at no charge through anonymous FTP -in source form on the OMG file server, omg.org. Please retrieve the -file OMG_IDL_CFE_1.3.tar.Z from the directory pub/OMG_IDL_CFE_1.3. Please -let us know who you are if you retrieve the compiler front end using this -method, by sending email to idl-cfe@sun.com. - -You can also retrieve the software by using the OMG mail server program. -Send email with the subject 'help' to omg_idl@omg.org, and the mail server -will respond with instructions on how to retrieve the software. - -WHEN: - -The SunSoft OMG IDL CFE is available now. - -CONTACT: - -Please let us know who you are if you decide to use this software, and how -you use it. Please send email to: - - idl-cfe@sun.com - -This address can also be used to report problems, bugs, suggestions and -send general comments. - -We ask that if you make extensions or modifications to this source release, -please make these extensions available to others using the OMG IDL compiler -front end, by sending the modified sources to the above email address. This -will help us evaluate your extensions for inclusion in a future version. It -also ensures your investment in these extensions when new versions of the -CFE are released. - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - -COPYRIGHT NOTICE: - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 diff --git a/TAO/TAO_IDL/docs/BUG_REPORT b/TAO/TAO_IDL/docs/BUG_REPORT deleted file mode 100644 index 28c34ae141d..00000000000 --- a/TAO/TAO_IDL/docs/BUG_REPORT +++ /dev/null @@ -1,144 +0,0 @@ -OMG IDL COMPILER FRONT END PROBLEM REPORT FORM --============================================- - -Checklist: Did you: -- include configuration information? -- include compiler version number (use -V to obtain)? -- include script of run? -- include IDL file causing problem? -- make any changes to the CFE? If so, did you include a diff against - original version? - -PLEASE SEND THE COMPLETED BUG REPORT TO: idl-cfe@sun.com. - -THANK YOU FOR REPORTING THIS PROBLEM! THROUGH YOUR COLLABORATION, SUNSOFT -WILL BE ABLE TO IMPROVE THE FUNCTIONALITY OF THIS PRODUCT. RECEIPT OF BUG -REPORTS WILL BE ACKNOWLEDGED BUT NO OBLIGATION IS UNDERTAKEN BY SUNSOFT TO -CORRECT THE REPORTED PROBLEM. SEE YOUR COPYRIGHT AND LICENSE INFORMATION. - - -CONFIGURATION INFORMATION (describe your hardware platform, operating -system and which compilers you used to compile the CFE): - - - - - - -COMPILER VERSION INFORMATION (include output from idl -V here): - - - - - - - -PROBLEM DESCRIPTION (describe problem, include script if available): - - - - - - - - -IDL INPUT CAUSING PROBLEM (include IDL input causing problem): - - - - - - - - - -DID YOU MAKE ANY CHANGES TO THE CFE? [Y] _ [N] _ -IF YES, INCLUDE A DIF OF YOUR VERSION AGAINST ORIGINAL VERSION: - - - - - - - - - -PROPOSED FIX (if you believe you know the cause of the problem, please -include a proposed change to the software to correct it): - - - - - - - - -ANY OTHER RELEVANT INPUT (include here any other information you believe -may be relevant to the resolution of the problem you described): - - - - - - -PLEASE SEND THIS PROBLEM REPORT TO idl-cfe@sun.com. - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - -COPYRIGHT NOTICE: - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 diff --git a/TAO/TAO_IDL/docs/CHANGES b/TAO/TAO_IDL/docs/CHANGES deleted file mode 100644 index ae6fca7bcea..00000000000 --- a/TAO/TAO_IDL/docs/CHANGES +++ /dev/null @@ -1,122 +0,0 @@ -CHANGES WHICH AFFECT BE WRITERS --=============================- - -INTRODUCTION - -This file describes changes that affect BE writers. It contains IMPORTANT -INFORMATION for BE writers who wish to migrate a BE written to operate with -release 1.2 to operate with release 1.3. It is likely that not following -these instructions will result in a compilable but malfunctioning compiler. - -AST INHERITANCE CHANGES - -The AST has been reorganized so that AST_Union and AST_Exception now -inherit from AST_Structure. This means that constructors of BE classes -which inherit from AST_Union or AST_Exception now need to explicitly call -an initializer for AST_Structure in their init section. - -We repeat below the information given in the file WRITING_A_BE, in the -section entitled "WRITING A BE". - -AST_EXCEPTION - -The signature for constructors of classes inheriting from AST_Exception -should now be: - - BE_Exception::BE_Exception(UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(AST_Decl::NT_except, n, p), - AST_Structure(AST_Decl::NT_except, n, p), - UTL_Scope(AST_Decl::NT_except) - -AST_UNION - -The signature for constructors of classes inheriting from AST_Union should -now be: - - BE_Union::BE_Union(AST_ConcreteType *dt, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Union(dt, n, p), - AST_Structure(AST_Decl::NT_union, n, p), - AST_Decl(AST_Decl::NT_union, n, p), - UTL_Scope(AST_Decl::NT_union) - -IDL_BOOL TYPE - -To increase portability and reduce dependency of the sources on POSIX -compliance in targets of ports, IDL now provides its own boolean type which -is named idl_bool. It provides two truth values, I_TRUE and I_FALSE. - -UTL_SCOPEDNAME TYPE - -The UTL_ScopedName type is now a list of Identifier nodes; in previous -releases it used to be a list of String nodes. If your BE constructs scoped -names this change will prevent recompilation until you modify your -constructor calls to invoke constructors for Identifier instead of for -String. The signature of the constructor is: - - Identifier::Identifier(char *, long x=1, long y=0, long z=I_FALSE) - -The additional arguments which can be defaulted to the values indicated are -included for future use. - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. diff --git a/TAO/TAO_IDL/docs/CLI b/TAO/TAO_IDL/docs/CLI deleted file mode 100644 index a61c2bae365..00000000000 --- a/TAO/TAO_IDL/docs/CLI +++ /dev/null @@ -1,187 +0,0 @@ -OMG INTERFACE DEFINITION LANGUAGE COMPILER FRONT END: COMMAND LINE INTERFACE --==========================================================================- - -INTRODUCTION - -This document describes general OMG Interface Definition Language compiler -command line options. Options that are specific to a given back end, object -adapter or language are not described here. These should be described in a -document detailing the interface implemented by each specific back end. - -OMG INTERFACE DEFINITION LANGUAGE COMMAND LINE OPTIONS - -OMG Interface Definition Language compiler options are described below. -Unless otherwise noted, only one occurrence of each option is allowed. -The following conventions are used - -- Text in '[..]' is optional. -- Text followed by '*' can be repeated zero or more times. -- Text followed by '+' can be repeated once or more times. -- '{' and '}' are used to group text to cause '+' or '*' to apply to - the entire grouped text. -- 'aa|bb' means either 'aa' or 'bb'. - -COMMAND LINE SUMMARY - - idl [flag | file-name]* - -Flags are command line words that start with a '-'. All other command line -words are assumed to be file names. If no file names are given, input is -taken from stdin. - -COMMAND LINE FLAGS - --A[xyz] A local escape. This can be used to specify additional options that - are specific to a given implementation. More than one -A option is - allowed - --Dname[=value] - Defines name and an optional value to be passed to a compliant C++ - preprocessor, as if by #define. White space between the -D option - and the name is optional. More than one -D option is allowed. - --d If no parse errors were found, prints out a representation of the - IDL input to stderr. - --E Runs the C++ preprocessor on the OMG Interface Definition Language - input and sends the result to the standard output. - --Idirectory - Causes directory to be added to the search path for include files. - More than one -I option is allowed. This option is processed by a - compliant C++ preprocessor. - --Uname Undefines name, as if by #undef. White space between the -U option - and the name is optional. More than one -U option is allowed. - --V Causes the version information of the CFE to be displayed. No other - work is done, regardless of any other options. - --W[b|p][,arg]+ - Hands off the arguments supplied to a specific portion of the OMG - Interface Definition Language compiler: - - - -Wb arguments are handed to the loaded back end - - -Wp arguments are handed to a compliant C++ preprocessor - --Yp,pathname - Specifies an alternate path for finding a C++ compliant - preprocessor. Specifiers other than 'p' may be defined in future - versions of the CFE. More than one -Y option may appear. The last - one specifying each component takes effect. - - This option exists but currently does nothing. Instead, we use the - preprocessing facilities provided by invoking CC -E always. - --bback_end - Causes the CFE to use a different compiler back end than the - default one (if dynamic loading is supported). Legal values for - this option and the default value are implementation specific. - --u Prints a usage message from the CFE. All possible options are - shown. No other work is done regardless of any other options. - --v Causes the CFE to produce informational output as the various - phases of the compiler execute. - --w Suppresses IDL compiler warning messages. - - -WHITESPACE - -All option arguments may be separated from their option letter by -whitespace. For example, -D FOO is equivalent to -DFOO. - -UNKNOWN OPTIONS - -If an unknown option is passed to the CFE, the offending option is -displayed to the user together with a usage message, and no compilation is -performed. - -PASSING OPTIONS TO COMPILER PHASES - -The order in which options appear on the command line is preserved when -they are passed to various compiler phases. - -MUTUALLY EXCLUSIVE OPTION COMBINATIONS - -Mutually exclusive or ambiguous option combinations are resolved by using -the option that appears later on the command line. For example, - - -DFOO -UFOO - -has no effect and leaves FOO undefined for the preprocessor. - -OPTION SCOPE - -All options are in effect for the entire IDL compilation run. If multiple -IDL source file names are given on the command line, all options apply to -each file. If different IDL source files require different sets of options -for successfull compilation, they must be compiled separately. - -EXIT STATUS - -IDL Compilers exit with status equal to zero for successfull compilations. -If errors were found by the CFE, the exit status is a count of the errors. -The exit status for unsuccessfull compilations aborted by BEs is defined by -each BE. - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - -COPYRIGHT NOTICE: - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 diff --git a/TAO/TAO_IDL/docs/COPYRIGHT b/TAO/TAO_IDL/docs/COPYRIGHT deleted file mode 100644 index 461ad949518..00000000000 --- a/TAO/TAO_IDL/docs/COPYRIGHT +++ /dev/null @@ -1,57 +0,0 @@ -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. diff --git a/TAO/TAO_IDL/docs/INSTALL b/TAO/TAO_IDL/docs/INSTALL deleted file mode 100644 index 6fcaa710042..00000000000 --- a/TAO/TAO_IDL/docs/INSTALL +++ /dev/null @@ -1,229 +0,0 @@ -INTERFACE DEFINITION LANGUAGE INSTALLATION GUIDE --==============================================- - -INTRODUCTION - -This file describes the installation process for OMG_IDL_CFE version 1.3. -This file explains how to: - -- install the source code -- modify the sources to customize them for different configurations -- modify the sources to implement your own back end - -TESTED CONFIGURATIONS - -This release has been tested and is believed to operate correctly on: -- SunPro Sparcworks 2.x and 3.0 on SunOS 4.1.x -- SunPro Sparcworks 2.x and 3.0 on Solaris 2.3 -- g++ 2.5.8 on SunOS 4.1.x -- g++ 2.5.8 on Solaris 2.3 - -This is the first release of OMG IDL CFE which is preconfigured to compile -correctly for Solaris 2.x and with SunPro SparcWorks compilers. - -CUSTOMIZATION - -The release contains a file idl_make_vars in the current directory, which -is included in each Makefile. This file defines all the customizable -variables for the CFE. - -OSV should be set to a string denoting the operating system upon which you -wish to build the CFE. The CFE as shipped is preconfigured to compile -correctly on Solaris 2.x (OSV=SOLARIS2), and has also been tested on SunOS -4.1.x (OSV=SUNOS4). It contains code donated by HP which enables it to be -compiled on Apollo Domain systems (OSV=apollo) and HPUX systems (OSV=hpux), -but these two configurations have not been tested. - -C++ and CCC should be set to identify the C++ compiler you will use to -compile this release. Their values should be identical. Both are set to -address differences between various make programs - some predefine CCC, -others use C++ to denote the C++ compiler. The possible values are CC -(which uses the Sparcworks compilers on SunOS 4.1 and Solaris 2.3) and g++, -which uses the installed version of GNU C++. - -CCFLAGS should be set to a list of flags to pass to the C++ compiler. As -shipped, this list is -g. NOTE: We have not extensively tested the release -with optimization turned on. - -CPP_FLAGS should be set to a list of flags to pass to the C++ preprocessor. -Use this variable to enable or disable specific customizations you make to -the BE or CFE sources. - -YFLAGS should be set to a list of flags to pass to the Yacc program. As -shipped, the list is -d -t, which causes Yacc to generate y.tab.h and -y.tab.c files. - -LEXFLAGS should be set to a list of flags to pass to the Lex program. As -shipped, the list -t. - -RANLIB should be set to the location of the ranlib program on your system. -As shipped this is ranlib. If your system has no ranlib you can set this -variable to ':' or /bin/true. As shipped the variable is preset to -/bin/true since Solaris 2.x does not use ranlib. - -AR should be set to the location of the ar program on your system. As -shipped this is ar. If your system has a different mechanism for creating -libraries, you should modify the value of this variable accordingly. - -ARFLAGS should be set to the flags to be passed to the ar program. As -shipped this is 'crv'. - -INSTALLATION - -a. Disk space requirements - -This distribution requires approximately 350 KBytes when compressed. When -uncompressed, untarred and compiled, approximately 10 MBytes of disk space -are consumed on a Sun 4. - -b. Getting the software - -Use anonymous FTP to omg.org and supply your e-mail address as password. -Change directories to pub/OMG_IDL_CFE_1.3, set bin and get the compressed -tar file OMG_IDL_CFE_1.3.tar.Z. - -The distribution may, in the future, be made available from other archives -on the Internet. However, omg.org will always have the most up-to-date -version of this software. - -After transferring this file, uncompress it and untar it in a directory of -your choice. - -c. Compiling it - -If you are using a Sparcstation running Solaris 2.x and have the SunPro -Sparcworks compilers installed, you may directly install the software. If -your hardware or operating system configurations are different, read and -follow the instructions in the previous section first. - -At the root directory of the release, issue - - % make - -or - - % make all - -This will compile the provided sources and the sources found in the be -directory. Executing this make target causes 'make all' to be invoked in -each subdirectory, resulting in building the libraries for each component -and finally a link step producing an executable IDL compiler. - -In order to make only the compiler front end components, without compiling -the sources found in the be directory and without building an executable, -issue - - % make libs - -This will build the libraries in the ast, fe, util, driver and narrow -directories. To build only the be, issue - - % make be - -To build all libraries without creating an executable, issue - - % make all_libs - -To remove all files created by the build process, issue - - % make clean - -This will not remove any files created by Yacc and Lex, because you may be -using the ones provided in the distribution (see below). - -d. Yacc and Lex - -Some installations may not have a C++ aware Yacc and Lex processor. For -these installations, we have included the output of yacc and lex in the -release. If you need to use these files to build the release because you -don't have access to a C++ capable Yacc or Lex, go to the "fe" directory, -issue the command: - - % touch lex.yy.cc y.tab.cc y.tab.hh - -This will ensure that the processed files appear to be newer than the -source files they were produced from and will cause "make" to skip their -production. - -NOTE: The files provided in the distribution have been produced on Solaris -2.3 and may contain OS-specific #include directives. If you intend to use -these files, you may have to edit them to make them work in your -environment. The provided files are known to compile cleanly without -modification with both SunPro Sparcworks compilers and GNU C++ on both -SunOS 4.1 and Solaris 2.3. We have not tested the grammar and lexer input -files with bison or flex. - -IMPLEMENTING A BACK END - -To implement your own back end, you can start with the provided sources in -the be directory and modify them. The Makefile understands the 'make all' -target and will generate libbe.a in the demo_be directory. As set up, the -variable CPP_FLAGS allows you to place include files either in the current -directory or in the include directory. Alternatively, you can place your -include files in a new directory and modify CPP_FLAGS to cause the C++ -preprocessor to search this new directory for referenced include files, by -adding a new -I directive. - -Additional detail on the structure and function of back ends, and on the -protocol which a back end must implement, are found in the document -entitled WRITING_A_BE. - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. diff --git a/TAO/TAO_IDL/docs/PROBLEMS b/TAO/TAO_IDL/docs/PROBLEMS deleted file mode 100644 index 65cfb6a1893..00000000000 --- a/TAO/TAO_IDL/docs/PROBLEMS +++ /dev/null @@ -1,132 +0,0 @@ -OMG INTERFACE DEFINITION LANGUAGE COMPILER FRONT END: KNOWN PROBLEMS --==================================================================- - -INTRODUCTION - -This file describes what configurations are known to work correctly with -this release, and what are the known problems with this release as shipped. -Comments about future possible enhancements do not imply a commitment on -the part of Sun or any of its subsidiaries to produce these enhancements. - -TESTED CONFIGURATIONS - -This release has been tested and is known to operate correctly on: - -- Sparcstation 2 running SunOS 4.1.2, when compiled with SparcWorks 3.0 -- Sparcstation 10 running Solaris 2.3, when compiled with SparcWorks 3.0.1 -- Sparcstation 10 running Solaris 2.3, when compiled with SparcWorks 4.0 - -We are aware of a bug in GNU C++ (the latest version we tested was 2.5) -which causes up-casting (changing the type of an instance from a base class -to a more derived class, also known as "narrowing") to fail or cause a -program crash. - -PROBLEMS: - -This is a list of known problems with the current version of the CFE: - -- The following syntax, although legal, is not accepted by the CFE: - - .. sequence > .. - - This causes a parse error. The cause of this problem is that the '>>' is - read as a right shif operater and not as two '>'s. You can avoid this - problem by instead writing - - .. sequence > .. - -- The following syntax, although legal, is not accepted by the CFE: - - const string foo = "abc" " and" " another" " string"; - - Instead, write: - - const string foo = "abc and another string"; - -- The printout produced by the -d option for dumping the AST is not always - perfect. Specifically, dumping of sequences and arrays is deficient. - -POSSIBLE FUTURE ENHANCEMENTS: - -This is a list of areas in which the code of the CFE may change in future -releases: - -- The current release is restricted in its use of C++ because it must - be possible to compile it using C++ 2.1. However, we have also provided - files that depend on features which are only present in C++ 3.0, such as - templates. If your compiler supports templates and you wish to use them, - copy the files in include/utl_tmpl to include, and copy the files in - util/utl_tmpl to util. You will also need to make compiler dependent - modifications to Makefiles throughout the CFE directory hierarchy to - enable the use of templates. - - The code using templates was donated by Steve Vinoski of HP. - - In a future release of the CFE only the template code may be included, - and hence users will need to use a C++ 3.0 or higher compiler. - -- The UTL_list classes defined in the util directory are rudimentary. More - features may be added to make the functionality richer. - -- The UTL_String class may be rewritten or replaced by a standard ANSI C++ - String implementation. Applications will be shielded from this change. - -COPYRIGHT: - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. diff --git a/TAO/TAO_IDL/docs/README b/TAO/TAO_IDL/docs/README deleted file mode 100644 index 6d73554acce..00000000000 --- a/TAO/TAO_IDL/docs/README +++ /dev/null @@ -1,233 +0,0 @@ -INTERFACE DEFINITION LANGUAGE COMPILER FRONT END --==============================================- - -INTRODUCTION - -Welcome to the publicly available source release of SunSoft's -implementation of the compiler front end (CFE) for OMG Interface Definition -Language! This is Release 1.3 of the CFE. - -The Interface Definition Language (IDL) implementation is divided into -three parts: - -- A main program for driving the compilation process -- A parser and attendant utilities -- One or more back ends (BEs) for taking the processed input and producing - output in a target language and target format - -WARNINGS - -This is a preliminary version. This software is made available AS IS and -WITH NO GUARANTEES. Please read the copyright notice attached at the -bottom of this file. - -IMPORTANT NOTICE FOR USERS OF OMG IDL CFE VERSION 1.2. - -Please carefully read the file CHANGES to obtain IMPORTANT INFORMATION on -changes in that may affect the manner in which a BE is constructed. You -must follow instructions contained in the file CHANGES to obtain a -functional BE if you are migrating an existing BE from OMG IDL CFE v. 1.2. - -TARGET AUDIENCE - -Who should use this release? - -- You can use this source release to create a stand alone parser for OMG - Interface Definition Language. This may be useful to verify the legality - of IDL input. -- Developers of OMG Interface Definition Language compilers should use this - release as a basis for writing their back ends, to obtain a common - framework for their compiler and to provide portable and uniform - parsing of IDL input. - -HOW TO OBTAIN THIS SOFTWARE - -Please use anonymous FTP to omg.org and supply your e-mail address as the -password. Then change directories to pub/OMG_IDL_CFE_1.3, set binary transfer -and get the file OMG_IDL_CFE_1.3.TAR.Z. This file includes copies of all -individual documentation files in the directory. - -Precompiled binaries constructed from the sources in this release will be -made available shortly, in the directory pub/OMG_IDL_CFE_1.3/bin. These -binaries are useful for parsing IDL source and for learning about the -language. Precompiled binaries for Solaris 2.x and for SunOS 4.x will be -provided. - -You can also use the mail server program to retrieve this software. Send -email with the subject 'help' to omg_idl@omg.org, and the mail server will -respond with instructions on how to retrieve the software. - -Copies of this software may be made available from archives other than -omg.org. New versions made available by Sun will be placed on omg.org and a -message will be sent to this newsgroup announcing its availability. - -Finally, the SunSoft OMG IDL CFE is also available on magnetic tape for a -nominal media charge directly from SunSoft. Please refer to part number -DIDL-100-STP when ordering. - -CONTACT POINT - -Please let us know who you are if you decide to use this software, and how -you use it. Please send e-mail to: - - idl-cfe@sun.com - -This address can also be used to report problems, bugs, suggestions and -send general comments. - -WHAT IS PROVIDED IN THE RELEASE - -Provided in this release are: - -- A main program for driving an Interface Definition Language compiler -- A parser for the Interface Definition Language grammar which builds an - internal representation of the input parsed. This internal - representation, named an Abstract Syntax Tree (AST), is used as input to - a back end -- Some utility functions used by the parser -- A demonstration back end (BE) which exercises the front end but produces - no translated output -- Documentation of the public interfaces and of the contract between - the compiler front end and a back end - -OPERATION - -A complete compiler operates in two passes: - -- The first pass, provided in this release, parses the IDL input and - produces an internal representation, called an Abstract Syntax Tree (AST). - This pass also does a complete syntax and semantics check of the input - provided to ensure that exactly legal IDL input is accepted. If a syntax - or semantic error is discovered, the second pass is not invoked. -- The second pass, provided by compiler developers, takes the AST and - produces output in the language and format of choice. A demonstration - back end is provided in the release. - -HOW TO USE THIS SOFTWARE - -To create a complete compiler from OMG Interface Definition Language to a -target language, compiler developers will: - -- Write a back end (BE) to take the internal representation of the input - parsed and translate it to the target language and format. You will - probably want to replace the BE directory in this source tree with your - own BE directory -- Link the BE with the sources provided here to produce a complete - compiler. - -DOCUMENTATION - -The OMG Interface Definition Language is fully described in the CORBA -documentation, Chapter 4. This document may be obtained from OMG. - -This release also provides the following documents: - -- This README file, describing the release -- INSTALL, describing installation of the software -- WRITING_A_BE contains all the information needed to start writing a back - end for this distribution -- CHANGES_IN_AST describes changes that affect migration of BEs written - against version 1.2 to version 1.3. -- CLI, describing the command line interface to the CFE -- ROADMAP, describing the directory structure for the source code. This - file will assist a developer in understanding the structure of the code - and navigating it -- PROBLEMS, describing a list of issues that may be addressed in future - releases -- BUG_REPORT, containing a form for use in reporting bugs and problems - with the IDL CFE - -ENVIRONMENT - -The INSTALL file explains how to customize the software for specific -platforms. The source distribution expects the following environment: - -- Sparcstation 1, 2, or 10 hardware -- SunPro SparcWorks 3.x or 4.0 - -As preconfigured, it compiles on Solaris 2.x. It can be reconfigured to -compile on SunOS 4.x, HPUX or Apollo Domain OS. As far as is known, no use -is made of Sun Make-specific features, and the Makefiles should be usable -with other make programs. - -This release has been tested and is believed to operate correctly with: -- SunPro Sparcworks 2.x and 3.0 on SunOS 4.1.x -- SunPro Sparcworks 2.x and 3.0 on Solaris 2.3 -- g++ 2.5.8 on SunOS 4.1.x -- g++ 2.5.8 on Solaris 2.3 - -INSTALLATION - -This release is targetted for Sun workstations running Solaris 2.x. The -process of installing this software is described in detail in the file -INSTALL in this directory. The INSTALL file also describes how to customize -the release for your own environment if it is different. - -KNOWN PROBLEMS - -A list of known deficiencies is provided in the file PROBLEMS in this -directory. If you find a problem which is not mentioned in it, please -report it as described below. Please read this file now to be apprised of -the problems found so far with this release. - -COPYRIGHT - -This copyright notice appears on all files. Please read it! - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. diff --git a/TAO/TAO_IDL/docs/ROADMAP b/TAO/TAO_IDL/docs/ROADMAP deleted file mode 100644 index 5da0d83823c..00000000000 --- a/TAO/TAO_IDL/docs/ROADMAP +++ /dev/null @@ -1,126 +0,0 @@ -INTERFACE DEFINITION LANGUAGE SOURCE TREE ROADMAP --===============================================- - -INTRODUCTION - -This file provides an overview of the directory structure of the sources -for the compiler front end for OMG Interface Definition Language. This will -be of use in understanding the source structure and will aid developers of -BEs. - -DIRECTORIES - -The following directories are present: - -- idl_specs: Contains many examples of IDL specifications, including the - IDL specifications of several Object Services, and several - files that somewhat exhaustively test features of the IDL - language -- include: Contains all include (".hh") files -- ast: Contains implementations for all classes comprising - the AST internal representation of the input parsed -- fe: Contains the Yacc grammar and Lex specification for - the OMG Interface Definition Language, and some utilities -- driver: Contains the main program which drives the compilation - process -- util: Contains utility classes used throughout the CFE. These - classes may also be of use in writing a BE -- narrow: Contains an implementation of a narrowing mechanism used - in the CFE. Since C++ does not provide compiler support - for narrowing, this is provided as an explicit service -- demo_be: Contains a demonstration back end which subclasses all - the AST classes but adds no functionality - -NAMING CONVENTIONS - -The file names start with two or three characters identifying the component -to which they belong: - -- idl_: This is the prefix for all files which contain global - elements of the CFE -- ast_: This is the prefix for all files containing implementations - or definitions of the AST -- fe_: This is the prefix for all files belonging to the parser -- drv_: This is the prefix for all files belonging to the compiler - driver -- utl_: This prefix is used to identify files belonging to the set of - utlities provided with the CFE -- nr_: This prefix identifies files belonging to the narrowing mechanim -- be_: This is the prefix for all files belonging to the back end - -All C++ files use the ".cc" extension, and all include files have the ".hh" -extension. All make files are named Makefile. Each directory contains a -make file. Lex input files have the ".ll" extension, and Yacc input files -use the ".yy" extension. All files containing IDL specifications have a -name ending with the ".idl" suffix. - -INCLUDE FILE HIERARCHY - -There are two main include files which must be included in all source -files. These are idl.hh and idl_extern.hh. The idl.hh file includes the -definitions for all the facilities provided by the CFE. The idl_extern.hh -file declares globally accessible data and exported application programmer -interface entry points. - -Each component has an include file for its own. Back end writers will want -to modify be.hh and possibly be_extern.hh. - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. diff --git a/TAO/TAO_IDL/docs/WRITING_A_BE b/TAO/TAO_IDL/docs/WRITING_A_BE deleted file mode 100644 index 5c3c069f7a1..00000000000 --- a/TAO/TAO_IDL/docs/WRITING_A_BE +++ /dev/null @@ -1,1350 +0,0 @@ -OMG INTERFACE DEFINITION LANGUAGE COMPILER FRONT END PROTOCOLS -============================================================== - -INTRODUCTION ------------- - -Welcome to the publicly available source release of SunSoft's -implementation of the compiler front end (CFE) for OMG Interface Definition -Language! - -This document explains how to use the release to create a fully functional -OMG Interface Definition Language to target language compiler for your -selected target system configuration. The section OVERVIEW explains this -document's structure. - -CONTEXT -------- - -The implementation has three parts: - -1. A main program driving the compilation process -2. A parser and attendant utilities for converting the IDL input into - an internal form -3. One or more back ends which take as input the internal form representing - the IDL input, and which produce output in a target language and target - format - -The release contains components 1 and 2, and a demonstration implementation -of component 3. To use this release, you - -- write a back end which takes the internal representation of the parsed input - and translates it to the target language and format. You may replace or - modify the demonstration back end provided. -- link the back end with the provided main program and parser sources - to produce a complete compiler. - -OVERVIEW --------- - -This document does not explain IDL nor does it introduce IDL features. -For this information, refer to the OMG CORBA specification, available by -anonymous FTP from omg.org. - -This document does not explain C++, except to demonstrate how it is -used to construct the CFE. The ARM by Stroustrup and Ellis provides a -thorough explanation of C++. - -This document consists of two independent parts. The first part -s all CFE supported protocols and the required -application programmer's interface entry points that a conformant -BE must provide. The second part steps through the process of -constructing a working BE. - -The first part describes: - -- The compilation process -- The Abstract Syntax Tree (AST) internal representation of parsed IDL - input -- How access to member data fields is managed -- How the AST is generated from the IDL input (Generator protocol) -- How definition scopes are nested and how name lookup works -- The narrowing mechanism -- How definition scopes are managed and how nodes are added to scopes -- How BEs get control during the AST construction process (Add protocol) -- The inheritance scheme used by the AST and how it affects BEs -- How errors are handled and reported -- How the CFE is initialized -- How the command line arguments are parsed -- What global variables and functions are provided -- What API is required to be supported by a BE in order to link - with the CFE -- What files must be included in each BE file - -The second part describes - -- The API to be supplied by each BE -- How to subclass from the AST to add BE specific functionality -- How to subclass from the Generator protocol to create BE specific - extended AST nodes -- How to write constructors for the derived BE classes -- How to use the Add protocol to store BE specific information -- How to maintain BE specific information which applies to the entire - AST generated from the IDL input -- How to use data members in your BE -- How to build a complete compiler - -PART I. FEATURES OF THE CFE --=========================- - -THE COMPILATION PROCESS ------------------------ - -The OMG IDL compiler operates as follows: - -- Parses command line arguments. If an option is directed at a - BE, an appropriate operation provided by the BE is invoked to process - the option. -- Performs global initialization. -- Forks a copy of the compiler for each file specified as input. -- An ANSI-compatible preprocessor preprocesses the IDL input. -- Parses the file using the CFE parser, and constructs an AST describing the - IDL input. -- Prints the AST for verification, if requested. -- Invokes the BE to process the AST and produce the output - characteristic of that BE. - -ABSTRACT SYNTAX TREE --------------------- - -The AST (Abstract Syntax Tree) is the primary mechanism for communication -between a BE and the CFE. It consists of a tree of instances of classes -defined in the CFE or refinements of those classes as defined in a BE. -The class hierarchy of the AST closely resembles the structure of the IDL -syntax. Most AST classes have direct equivalents in IDL constructs. - -The UTL_Scope class defines common functionality for definition scope -management and name lookup. This is explained in a following section. -UTL_Scope is defined in include/utl_scope.hh and implemented in -util/utl_scope.cc. - -The AST provides the following classes: - -AST_Decl Base of the AST class hierarchy. Each class in the AST - inherits from AST_Decl. Defined in include/ast_decl.hh - and implemented in ast/ast_decl.cc - -AST_Type Common base class for all classes which represent IDL - type constructs. Defined in include/ast_type.hh and - implemented in ast/ast_type.cc. Inherits from AST_Decl. - -AST_ConcreteType Common base class for all classes which represent IDL - types other than interfaces. Defined in the file - include/ast_concrete_type.hh and implemented in - ast/ast_concrete_type.cc. Inherits from AST_Type. - -AST_PredefinedType Instances of this class represent all predefined types - such as long, char and so forth. Defined in the file - include/ast_predefined_type.hh and implemented in - ast/ast_predefined_type.cc. Inherits from - AST_ConcreteType. - -AST_Module Represents the IDL module construct. Defined in the - file include/ast_module.hh and implemented in - ast/ast_module.cc. Inherits from AST_Decl and - UTL_Scope. - -AST_Root Represents the root of the abstract syntax tree being - constructed. Is a subclass of AST_Module. Can be - subclassed in BEs to store information associated with - the entire AST. Defined in the file include/ast_root.hh - and implemented in ast/ast_root.cc. Inherits from - AST_Module. - -AST_Interface Represents the IDL interface construct. Defined in - include/ast_interface.hh and implemented in the file - ast/ast_interface.cc. Inherits from AST_Type and - UTL_Scope. - -AST_InterfaceFwd Represents a forward declaration of an IDL interface. - Defined in include/ast_interface_fwd.hh and implemented - in ast/ast_interface_fwd.cc. Inherits from AST_Decl. - -AST_Attribute Represents an IDL attribute construct. Defined in - include/ast_attribute.hh and implemented in the file - ast/ast_attribute.cc. Inherits from AST_Decl. - -AST_Exception Represents an IDL exception construct. Defined in - include/ast_exception.hh and implemented in the file - ast/ast_exception.cc. Inherits from AST_Decl. - -AST_Structure Represents an IDL struct construct. Defined in the file - include/ast_structure.hh and implemented in the file - ast/ast_structure.cc. Inherits from AST_ConcreteType - and UTL_Scope. - -AST_Field Represents a field in an IDL struct or exception - construct. Defined in include/ast_field.hh and - implemented in ast/ast_field.cc. Inherits from - AST_Decl. - -AST_Operation Represents an IDL operation construct. Defined in the - file include/ast_operation.hh and implemented in - ast/ast_operation.cc. Inherits from AST_Decl and - UTL_Scope. - -AST_Argument Represents an argument to an IDL operation construct. - Defined in include/ast_argument.hh and implemented in - ast/ast_argument.cc. Inherits from AST_Field. - -AST_Union Represents an IDL union construct. Defined in - include/ast_union.hh and implemented in - ast/ast_union.cc. Inherits from AST_ConcreteType and - from UTL_Scope. - -AST_UnionBranch Represents an individual branch in an IDL union - construct. Defined in include/ast_union_branch.hh and - implemented in ast/ast_union_branch.cc. Inherits from - AST_Field. - -AST_UnionLabel Represents the label of an individual branch in an IDL - union construct. Defined in include/ast_union_label.hh - and implemented in ast/ast_union_label.cc - -AST_Constant Represents an IDL constant construct. Defined in - include/ast_constant.hh and implemented in the file - ast/ast_constant.cc. Inherits from AST_Decl. - -AST_Enum Represents an IDL enum construct. Defined in the file - include/ast_enum.hh and implemented in ast/ast_enum.cc. - Inherits from AST_ConcreteType and UTL_Scope. - -AST_EnumVal Represents an enumerator in an IDL enum construct. - Defined in include/ast_enum_val.hh and implemented in - ast/ast_enum_val.cc. Inherits from AST_Constant. - -AST_Sequence Represents an IDL sequence construct. Defined in - include/ast_sequence.hh and implemented in - ast/ast_sequence.cc. Inherits from AST_Decl. - -AST_String Represents an IDL string construct. Defined in the file - include/ast_string.hh and implemented in - ast/ast_string.cc. Inherits from AST_Decl. - -AST_Array Represents an array modifier to the type of an IDL - field or typedef declaration. Defined in the file - include/ast_array.hh and implemented in - ast/ast_array.cc. Inherits from AST_Decl. - -AST_Typedef Represents an IDL typedef construct. Defined in the file - include/ast_typedef.hh and implemented in - ast/ast_typedef.cc. Inherits from AST_Decl. - -AST_Expression Represents an IDL expression. Defined in the file - include/ast_expression.hh and implemented in - ast/ast_expression.cc. - -AST_Root A subclass of AST_Module, an instance of this class - is used to represent the distinguished root node of - the AST. Defined in include/ast_root.hh and implemented - in ast/ast_root.cc. Inherits from AST_Module. - - -USING INSTANCE DATA -------------------- - -The AST classes define member data fields in addition to defining -operations on instances. These member data fields are all private, to allow -only the instance in which they are stored direct access. Other objects -(including other instances of the same class) can obtain access to the -member data fields of an instance through accessor functions. These -accessor functions allow retrieval of the data, and in some cases update -functions are also provided to store new values. - -There are several reasons why this approach is taken. First, it hides the -actual implementation of the member data fields from outside the class. For -example, a Thermometer class would not expose whether its temperature -reading is stored in Farenheit or Celsius units, and it could allow access -through either unit method. - -Second, protecting access to member data in this manner restricts the -ability to update it to the instance itself, save where update functions -are explicitly provided. This makes for more reliable implementations, -since the manipulation of the data is isolated in the class implementation -itself. - -Third, wrapping a function call around access to member data allows such -access and update operations to be protected in a multithreaded -environment. While the CFE itself is not multithreaded and the access -operations as currently defined do no special work to protect against -mutliple conflicting access operations, this may be changed in a future -version. Moving the CFE to a multithreaded environment without protecting -access to member data in this manner would be extremely difficult. - -The protocol defined in the CFE is that member data fields are all private -and have names which start with the prefix "pd_" (denoting Private Data). -The access functions have names which are the same as the name of the field -sans the prefix. For example, AST_Decl has a field pd_defined_in and an -access function defined_in(). - -The update functions have names starting with "set_" followed by the name -of the corresponding access function. Thus, AST_Decl defines a function -set_in_main_file(boolean) which sets the pd_in_main_file data member's -value to the boolean provided. - -GENERATION OF THE AST ---------------------- - -The CFE generates the abstract syntax tree after parsing IDL -input. The nodes of the AST are defined by classes introduced in the -previous section, or by subclasses thereof as defined by each BE. In -writing the CFE, we were faced with the following problem: how to generate -the AST containing nodes of the derived classes as defined in each BE -without knowledge of the types and conventions of these BE classes. - -One alternative was to define a naming scheme which predetermines the names -of each subclass a BE can define. The AST would then be generated by -calling an appropriate constructor on the BE derived class. This scheme -suffers from some shortcomings: - -- It breaks the modularity of the compiler and imports knowledge about - types defined in a BE into the CFE, where this information does not belong. -- It restricts a compiler to having only one BE loaded at a time because the - names of these classes can be in use in only one BE at a time. -- It requires a BE to provide derived classes for all AST classes, even for - those classes where the BE adds no functionality. - -The mechanism we chose is different. We define the AST_Generator class -which has an operation for each constructor defined on each AST class. The -operation takes arguments appropriate to the constructor, invokes it and -returns the created AST node, using the type known to the CFE. All such -operations on the generator are declared virtual. The names of all -operations start with "create_" and contain the name of the construct. -Thus, an operation which invokes a constructor of an AST_Module is named -create_module. AST_Generator is defined in include/ast_generator.hh and -implemented in ast/ast_generator.cc. - -If a BE derives from any AST class, it must also derive from the -AST_Generator class and redefine the relevant operations to invoke -constructors of the BE provided class instead of the AST provided class. -For example, if BE_Module is a subclass of AST_Module in a BE, the BE would -also define BE_Generator and redefine create_module to call the constructor -of BE_Module instead of that provided by AST_Module. - -During initialization, the CFE causes an instance of the BE derived -generator to be created and saved. This is explained in the section on -REQUIRED ENTRY POINTS SUPPLIED BY A BE. During parsing, actions in the Yacc -grammar invoke operations on the saved instance to create new nodes for the -AST as it is being built. These operations invoke constructors for BE -derived classes or for AST provided classes if they were not overridden. - -DEFINITION SCOPES ------------------ - -IDL is a nested scoped language. The scoping rules are defined by the CORBA -spec and closely follow those of C++. - -Scope management is implemented in two classes provided in the utilities -library, UTL_Scope and UTL_Stack. UTL_Scope manages associations between -names and AST nodes, and UTL_Stack manages scope nesting and entry and exit -from definition scopes as the parse is proceeding. UTL_Scope is defined in -include/utl_scope.hh and implemented in util/utl_scope.cc. UTL_Stack is -defined in include/utl_stack.hh and implemented in util/utl_stack.cc. - -During initialization, the CFE creates an instance of UTL_Stack and saves -it. During parsing, as definition scopes are entered and exited, AST nodes -are pushed onto, or popped from, the stack represented by the saved -instances. Nodes on the stack are stored as instances of UTL_Scope. Section -THE NARROWING MECHANISM explains how to obtain the real type of a node -retrieved from the stack. - -All definition scopes are linked in a tree rooted in the distinguished AST -root node. This linkage is implemented by UTL_Scope and AST_Decl. The -linkage is a permanent record of the scope nesting while the stack is a -dynamic record which at each instant represents the current state of the -parse. - -The nesting information is used to do name lookup. IDL uses scoped names -which are concatenations of definition scope names ending with individual -construct names. For example, in - - interface a { - struct b { - long c; - }; - const long k = 23; - struct s { - long ar[k]; - }; - }; - -the name a::b::c represents the long field in the struct b inside the -interface a. - -Lookup is performed by searching down the linkage chain for the first component -of the name, then, when found, recursively resolving the remaining -components in the scope defined by the first component. Lookup is relative -to the scope of use; in the above example, k could also have been referred to -as a::k within the struct s. - -Nodes are stored in a definition scope as instances of AST_Decl. Thus, name -lookup returns instances of AST_Decl. The next section, THE NARROWING -MECHANISM, explains how to obtain the real type of a node retrieved from a -definition scope. - -THE NARROWING MECHANISM ------------------------ - -Here we give only a cursory explanation of how narrowing works. We -concentrate on defining the problem and showing how to use our narrowing -mechanism. The narrowing mechanism is defined in include/idl_narrow.hh. - -As explained above, nodes are stored on the scope stack as instances of -UTL_Scope, and inside definition scopes as instances of AST_Decl. Also, -nodes are linked in a nesting tree as instances of AST_Decl. Given a node -retrieved from the stack or a definition scope, one is faced with the task -of obtaining its real class. C++ does not currently provide an implicit -mechanism for narrowing to a derived class, so the CFE defines its own -mechanism. This mechanism requires some work on your part as BE implementor -and requires some explicit code to be written when it is to be used. - -The class AST_Decl defines an enum whose members encode specific AST node -classes. AST_Decl provides an accessor function, node_type(), which -retrieves a member of the enum representing the AST type of the node. Thus, -if an instance of AST_Decl really is an instance of AST_Module, the -node_type() accessor returns AST_Decl::NT_module. - -The class UTL_Scope also provides an accessor function, scope_node_type(), -which returns a member of the enum encoding the actual type of the node. -Thus, given an UTL_Scope instance which is really an instance of -AST_Operation, scope_node_type() would return AST_Decl::NT_op. - -Perusing the header files for classes provided by the AST, you will note -the use of some macros defined in include/idl_narrow.hh. These macros -define the explicit narrowing mechanism: - -DEF_NARROW_METHODSx(,) for x equal to 0,1,2 or 3, -defines a narrowing method for the specified class which has 0,1,2 or 3 -immediate base classes from which it inherits. For example, ast_module.hh -which defines AST_Module contains the following line: - - DEF_NARROW_METHODS2(AST_Module, AST_Decl, UTL_Scope) - -This is because AST_Module inherits directly from AST_Decl and UTL_Scope. - -DEF_NARROW_FROM_DECL() appears in class definitions for classes -which are derived from AST_Decl and which can be stored in a definition -scope. This macro declares a static operation narrow_from_decl(AST_Decl *) -on the class in which it appears. The operation returns the provided -instance as an instance of if it can be narrowed, or NULL. - -DEF_NARROW_FROM_SCOPE() appears in class definitions of classes -which are derived from UTL_Scope and which can be stored on the scope -stack. This macro declares a static operation narrow_from_scope(UTL_Scope *) -on the class in which it appears. The operation returns the provided -instance as an instance of if it can be narrowed, or NULL. - -Now look in the files implementing these classes. You will note occurrences -of the following macros: - -IMPL_NARROW_METHODSx(,) for x equal to 0,1,2 or 3, -implements a narrowing method for the specified class which has 0,1,2 or 3 -immediate base classes from which it inherits. For example, ast_module.cc -which implements AST_Module contains the following line: - - IMPL_NARROW_METHODS2(AST_Module, AST_Decl, UTL_Scope) - -IMPL_NARROW_FROM_DECL() implements a method to narrow from an -instance of AST_Decl to an instance of as defined above. - -IMPL_NARROW_FROM_SCOPE() implements a method to narrow from an -instance of UTL_Scope to an instance of as defined above. - -To put it all together: In the file ast_module.hh, you will find: - - // Narrowing - DEF_NARROW_METHODS2(AST_Module, AST_Decl, UTL_Scope); - DEF_NARROW_FROM_DECL(AST_Module); - DEF_NARROW_FROM_SCOPE(AST_Module); - -In the file ast_module.cc, you will see: - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS2(AST_Module, AST_Decl, UTL_Scope) -IMPL_NARROW_FROM_DECL(AST_Module) -IMPL_NARROW_FROM_SCOPE(AST_Module) - -The CFE uses narrowing internally to obtain the correct type of nodes in -the AST. The CFE contains many code fragments such as the following: - - AST_Decl *d = get_an_AST_Decl_from_somewhere(); - AST_Module *m; - ... - if (d->node_type() == AST_Decl::NT_module) { - m = AST_Module::narrow(d); - if (m == NULL) { // Narrow failed - ... - } else { // Success, do normal processing - ... - } - } - ... - -Similar code implements narrowing instances of UTL_Scope to their actual -types. - -In your BE classes which derive from UTL_Scope you must include a line -defining how to narrow from a scope, so: - - DEF_NARROW_FROM_SCOPE() - -and similarly for your BE classes which derive from AST_Decl. - -The narrowing mechanism is defined only for narrowing from AST_Decl and -UTL_Scope. If your BE class inherits directly from one or more classes -which themselves are derived from AST_Decl and/or UTL_Scope, you must -include a line - - DEF_NARROW_METHODSx(,,) - -To make this concrete, here is what you'd write in a definition of BE_union -which inherits from AST_Union: - - DEF_NARROW_METHODS1(BE_Union, AST_Union); - DEF_NARROW_FROM_DECL(BE_Union); - DEF_NARROW_FROM_SCOPE(BE_Union); - -and in the implementation file of BE_Union: - -/* - * Narrowing methods: - */ -IMPL_NARROW_METHODS1(BE_Union, AST_Union) -IMPL_NARROW_FROM_DECL(BE_Union) -IMPL_NARROW_FROM_SCOPE(BE_Union) - -Then, in BE code which expects to see an instance of your derived BE_Union -class, you will write: - - AST_Decl *d = get_an_AST_Decl_from_somewhere(); - BE_Union *u; - ... - if (d->node_type() == AST_Decl::NT_union) { - u = BE_Union::narrow_from_decl(d); - if (u == NULL) { // Narrow failed - ... - } else { // Success, do normal processing - ... - } - } - ... - - -SCOPE MANAGEMENT ----------------- - -Instances of classes which are derived from UTL_Scope implement definition -scopes. A definition scope can contain any kind of AST node as long as it -is derived from AST_Decl. However, specific kinds of definition scopes such -as interfaces and unions can contain only a restricted subset of all AST -node types. - -UTL_Scope provides operations to add instances of each AST provided class -to a definition scope. The names of these operations are constructed by -prepending the string "add_" to the name of the IDL construct. So, to add -an interface to a definition scope, invoke the operation add_interface. -The operations are all defined virtual and are intended to be overridden in -classes derived from UTL_Scope. - -If the node was successfully added to the definition scope, the node is -returned as the result. Otherwise the node is not added to the definition -scope and NULL is returned. - -All add operation implementations in UTL_Scope return NULL. Thus, -only the operations which implement legal additions to a specific kind of -definition scope must be overridden in the implementation of that -definition scope. For example, in AST_Module the add_interface operation is -overridden to add the provided instance of AST_Interface to the scope and -to return the provided instance if the addition was successful. Operations -which were not overridden return NULL to indicate that the addition is -illegal in this context. For example, in AST_Operation the definition of -add_interface is not overridden since it is illegal to store an interface -inside an operation definition scope. - -The add operations are invoked in the actions in the Yacc grammar. The -following fragment is a representative example of code using the add -operations: - - AST_Constant *d = construct_a_new_constant(); - ... - if (current_scope->add_constant(d) == NULL) { // Failed - ... - } else { // Succeeded - ... - } - -BE INTERACTION DURING THE PARSING PROCESS ------------------------------------------ - -The add operations can be overridden in BE derived classes to let the BE -perform additional house-keeping work during the process of constructing -the AST. For example, a BE could keep separate lists of interfaces as they -are being added to a module. - -If you override an add operation in your BE, you must invoke the overridden -operation in the superclass of your derived class to allow the CFE to -perform its own house-keeping tasks. A good rule is to invoke the operation -on the superclass before you do your own processing; then, if the -superclass operation returns NULL, this indicates that the addition failed -and your own code should immediately return NULL. An example explains this: - -AST_Interface * -BE_Module::add_interface(AST_Interface *i) -{ - if (AST_Module::add_interface(i) == NULL) // Failed, bail out! - return NULL; - ... // Do your own work here - return i; // Return success indication -} - -We strongly advise you to only define add operations that override add -operations provided by the AST classes. Add operations which -do not override equivalent operations in the AST in effect -extend the semantics of the language accepted by the compiler. For -example, the CFE does not have an add_interface operation on -AST_Operation. If you were to define one in your BE_Operation class, -the resulting compiler would allow an interface to be -stored in an operation definition scope. The current CORBA specification -does not allow this. - -AST INHERITANCE SCHEME ----------------------- - -The AST classes all use public virtual inheritance to construct the -inheritance tree. This ensures that a class may appear several times in the -inheritance tree through different paths and the derived class's instances -will have only one copy of the inherited class's data. - -The use of public virtual inheritance has several important effects on how -a BE is constructed. We explain those effects below. - -First, you must define a default constructor for your BE class, since -your class may be used as a virtual base class of some other class. In this -case the compiler may want to call a default constructor for your class. It -is a good idea to have a default constructor anyway, even if you do not -plan to subclass your BE class, since for most C++ compilers this causes -the code to be smaller. Your default constructor should initialize all -constant data members. Additionally, it may initialize any non-constant -data member whose value must be set before the first time the instance is -used. - -Second, the constructor of your BE derived class must explicitly call all -constructors of virtual base classes which perform useful work. For -example, if a class in the AST from which your BE class inherits has an -initializer for a data member, you must call that constructor. This rule is -discussed in detail in the C++ ARM. An example may help here. - -Suppose you define a class BE_attribute which inherits from AST_Attribute. -Its constructor should be as follows: - - BE_Attribute::BE_Attribute(boolean ro, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Attribute(ro, ft, n, p), - AST_Field(ft, n, p), - AST_Decl(AST_Decl::NT_attr, n, p) - { - } - -The calls to the constructors of AST_Attribute, AST_Field and AST_Decl are -needed because these constructors do useful initializations on their -classes. - -Note that there is some redundancy in the data passed to these -constructors. We chose to preserve this redundancy since it should be -possible to create BEs which subclass only some of the classes supplied by -the AST. This means that the constructors on each class provided by the AST -should take arguments which are sufficient to construct the instance if -the AST class is the most derived one. - -The code supplied with this release contains a demonstration BE which -subclasses all the AST provided classes. The constructors for each class -provided by the BE are found in the file be/be_classes.cc. - -INITIALIZATION --------------- - -The following steps take place at initialization: - -- The global data instance is created, stored in idl_global and filled with - default values (in driver/drv_init.cc). -- The command line arguments are parsed (in driver/drv_args.cc). -- For each IDL input file, a copy of the compiler process is forked (in - driver/drv_fork.cc). -- The IDL input is preprocessed (in driver/drv_preproc.cc). -- FE initialization stage 1 is done: the scopes stack is created and stored - in the global data variable idl_global->scopes() field (in fe/fe_init.cc). -- BE_init is called to create the generator instance and the returned - instance is stored in the global data variable idl_global->gen() field. -- FE initialization stage 2 is done: the global scope is created, pushed on - the scopes stack and populated with predefined types (in fe/fe_init.cc). - -GLOBAL STATE AND ENTRY POINTS ------------------------------ - -The CFE has one global variable named idl_global, which stores an instance -of a class IDL_GlobalData as explained below: - -The CFE defines a class IDL_GlobalData which defines the global -information used in a specific run of the compiler. IDL_GlobalData is -defined in include/idl_global.hh and implemented in the file -util/utl_global.cc. - -Initialization creates an instance of this class and stores it in the value -of the global variable idl_global. Thus, the individual pieces of -information stored in the instance are accessible everywhere. - -ERROR HANDLING --------------- - -All error handling is defined by a class provided by the CFE, UTL_Error. -This class is defined in include/utl_error.hh and implemented in the file -util/utl_error.cc. The class provides several methods for reporting -specific errors as well as generic error reporting methods taking zero to -three arguments. - -The CFE instantiates the class and stores the instance as part of the -global state, accessible as idl_global->err(). Thus, to cause an error -report, you would write code similar to the following: - - if (error condition found) - idl_global->err()->specific_error_message(arg1, ..); - -or - - if (error condition found) - idl_global->err()->generic_error_message(flag, arg1, ..); - -The flag argument is one of the predefined error conditions found in the -enum at the head of the UTL_Error class definition. The arguments to the -specific error message routine are defined by the signature of that -routine. The arguments to a generic error message routine are always -instances of AST_Decl. - -The running count of errors is accessible as idl_global->err_count(). If -the value returned by this operation is non-zero after the IDL input has -been parsed, the BE is not invoked. - -HANDLING OF COMMAND LINE ARGUMENTS ----------------------------------- - -Defined command line arguments are specified in the document CLI, in this -directory. The CFE calls the required BE API entry point BE_prep_arg to -process arguments passed within a -Wb flag. - -REQUIRED ENTRY POINTS SUPPLIED BY A BE --------------------------------------- - -The following API entry points must be supplied by a BE in order to -successfully link with the CFE: - -extern "C" AST_Generator *BE_init(); - - Creates an instance of the generator object and returns it. Note - that the global scope is not yet set up and the scopes stack is - empty when this routine is called. - -extern "C" void BE_produce(); - - Called by the compiler main program after the IDL input has been - successfully parsed and processed. The job of this routine is to - carry out the specific function of the BE. The AST is accessible as - the value of idl_global->root(). - -extern "C" void BE_prep_arg(char *, idl_bool); - - Called to process an argument passed in with a -Wb flag. The boolean - will always be FALSE. - -extern "C" void BE_abort(); - - Called when the CFE decides to abort the compilation. Can be used in - a BE to clean up after itself, e.g. remove temporary files or - directories it created while the parse was in progress. - -extern "C" void BE_version(); - - Called when a -V argument is processed. This should produce a - message for the user identifying the BE that is loaded and its - version information. - -PART II. WRITING A BACK END --=========================- - -REQUIRED API THAT EACH BE MUST SUPPORT --------------------------------------- - -Below are the API entry points that each BE must supply in order to use the -CFE framework. This is a repeat of the BE API section: - -extern "C" AST_Generator *BE_init(); - - Creates an instance of the generator object and returns it. Note - that the scopes stack is still not set up at the time this routine - is called. - -extern "C" void BE_produce(); - - Called by the compiler main program after the IDL input has been - successfully parsed and processed. The job of this routine is to - carry out the specific function of the BE. The AST is accessible as - the value of idl_global->root(). - -extern "C" void BE_prep_arg(char *, boolean); - - Called to process an argument passed in with a -Wb flag. The boolean - will always be FALSE. - -extern "C" void BE_abort(); - - Called when the CFE decides to abort the compilation. Can be used in - a BE to clean up after itself, e.g. remove temporary files or - directories it created while the parse was in progress. - -extern "C" void BE_version(); - - Called when a -V argument is processed. This should produce a - message for the user identifying the BE that is loaded and its - version information. - -WHAT FILES TO INCLUDE ---------------------- - -To use the CFE, each implementation file of your BE must include the -following two header files: - -#include -#include - -Following this, you can include any header files needed by your BE. - -HOW TO SUBCLASS THE AST ------------------------ - -Your BE may subclass from any of the classes provided by the AST. Your -class should use public virtual inheritance to ensure that only one copy of -the class's data members is present in each instance. Read the section on -HOW TO WRITE CONSTRUCTORS to learn about additional considerations that you -must take into account when writing constructors for your BE classes. - -HOW TO SUBCLASS THE GENERATOR TO CREATE BE ENHANCED AST NODES -------------------------------------------------------------- - -Your BE subclasses from classes provided by the AST. To ensure that -instances of these classes are constructed when the AST is built, you must -also subclass AST_Generator and return an instance of your subclass from -the call to BE_init. - -The AST_Generator class provides operations to create instances of all -classes defined in the AST. For example, the operation to create an -AST_Attribute node is as follows: - - AST_Attribute * - AST_Generator::create_attribute(...) - { - return new AST_Attribute(...); - } - -In your BE_Generator subclass of AST_Generator, you will override methods -for creation of nodes of all AST classes which you have subclassed. Thus, -if your BE has a class BE_Attribute which is a subclass of AST_Attribute, -your BE_Generator class definition has to override the create_attribute -method to ensure that instances of BE_Attribute are created. - -The definition of the overriden operations should call the constructor of -the derived class and return the new node as an instance of the inherited -class. Thus, the implementation of create_attribute is as follows: - - AST_Attribute * - BE_Generator::create_attribute(...) - { - return new BE_Attribute(...); - } - -The Yacc grammar actions call create_xxx operations on the generator -instance stored in the global variable idl_global->gen() field. By storing -an instance of your derived generator class BE_Generator you ensure that -instances of the BE classes you defined will be created. - -HOW TO WRITE CONSTRUCTORS FOR BE CLASSES ----------------------------------------- - -As mentioned above, the AST uses public virtual inheritance to derive the -AST class hierarchy. This has two important effects on how you write a BE, -specifically how you write constructors for derived BE classes. - -First, you must define a default constructor for your BE class, since -your class may be used as a virtual base class of some other class. In that -case the compiler may want to call a default constructor for your class. It -is a good idea to have a default constructor anyway, even if you do not -plan to subclass your BE class, since for most C++ compilers this causes -the code to be smaller. Your default constructor should initialize all -constant data members. Additionally, it may initialize any non-constant -data member whose value must be set before the first time the instance is -used. - -Second, the constructor for your BE class must explicitly call all -constructors of virtual base classes which do some useful work. For -example, if a class in the AST from which your BE class inherits, directly -or indirectly, has an initializer for a data member, your BE class's -constructor must call the AST class's constructor. This is discussed -extensively in the C++ ARM. - -Below is a list showing how to write constructors for subclasses of each -class provided by the BE. For each AST class we show a definition of a -constructor for a derived class which calls all neccessary constructors on -AST classes: - -AST_Argument: - - BE_Argument::BE_Argument(AST_Argument::Direction d, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Argument(d, ft, n, p), - AST_Field(AST_Decl::NT_argument, ft, n, p), - AST_Decl(AST_Decl::NT_argument, n, p) - { - } - -AST_Array: - - BE_Array::BE_Array(UTL_ScopedName *n, - unsigned long nd, - UTL_ExprList *ds) - : AST_Array(n, nd, ds), - AST_Decl(AST_Decl::NT_array, n, NULL) - - { - } - -AST_Attribute: - - BE_Attribute::BE_Attribute(boolean ro, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Attribute(ro, ft, n, p), - AST_Field(AST_Decl::NT_attr, ft, n, p), - AST_Decl(AST_Decl::NT_attr, n, p) - { - } - -AST_ConcreteType: - - BE_ConcreteType::BE_ConcreteType(AST_Decl::NodeType nt, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(nt, n, p) - { - } - -AST_Constant: - - BE_Constant::BE_Constant(AST_Expression::ExprType t, - AST_Expression *v, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Constant(t, v, n, p), - AST_Decl(AST_Decl::NT_const, n, p) - { - } - -AST_Decl: - - BE_Decl::BE_Decl(AST_Decl::NodeType nt, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(nt, n, p) - { - } - -AST_Enum: - - BE_Enum::BE_Enum(UTL_ScopedName *n, - UTL_StrList *p) - : AST_Enum(n, p), - AST_Decl(AST_Decl::NT_enum, n, p), - UTL_Scope(AST_Decl::NT_enum) - { - } - -AST_EnumVal: - - BE_EnumVal::BE_EnumVal(unsigned long v, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_EnumVal(v, n, p), - AST_Constant(AST_Expression::EV_ulong, - AST_Decl::NT_enum_val, - new AST_Expression(v), - n, - p), - AST_Decl(AST_Decl::NT_enum_val, n, p) - { - } - -AST_Exception: - - BE_Exception::BE_Exception(UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(AST_Decl::NT_except, n, p), - AST_Structure(AST_Decl::NT_except, n, p), - UTL_Scope(AST_Decl::NT_except) - { - } - -AST_Field: - - BE_Field::BE_Field(AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Field(ft, n, p), - AST_Decl(AST_Decl::NT_field, n, p) - { - } - -AST_Interface: - - BE_Interface::BE_Interface(UTL_ScopedName *n, - AST_Interface **ih, - long nih, - UTL_StrList *p) - : AST_Interface(n, ih, nih, p), - AST_Decl(AST_Decl::NT_interface, n, p), - UTL_Scope(AST_Decl::NT_interface) - { - } - -AST_InterfaceFwd: - - BE_InterfaceFwd::BE_InterfaceFwd(UTL_ScopedName *n, - UTL_StrList *p) - : AST_InterfaceFwd(n, p), - AST_Decl(AST_Decl::NT_interface_fwd, n, p) - { - } - -AST_Module: - - BE_Module::BE_Module(UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(AST_Decl::NT_module, n, p), - UTL_Scope(AST_Decl::NT_module) - { - } - -AST_Operation: - - BE_Operation::BE_Operation(AST_Type *rt, - AST_Operation::Flags fl, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Operation(rt, fl, n, p), - AST_Decl(AST_Decl::NT_op, n, p), - UTL_Scope(AST_Decl::NT_op) - { - } - -AST_PredefinedType: - - BE_PredefinedType::BE_PredefinedType( - AST_PredefinedType::PredefinedType *pt, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_PredefinedType(pt, n, p), - AST_Decl(AST_Decl::NT_pre_defined, n, p) - { - } - -AST_Root: - - BE_Root::BE_Root(UTL_ScopedName *n, UTL_StrList *p) - : AST_Module(n, p), - AST_Decl(AST_Decl::NT_module, n, p), - UTL_Scope(AST_Decl::NT_module) - { - } - - -AST_Sequence: - - BE_Sequence::BE_Sequence(AST_Expression *ms, AST_Type *bt) - : AST_Sequence(ms, bt), - AST_Decl(AST_Decl::NT_sequence, - new UTL_ScopedName(new String("sequence"), NULL), - NULL) - { - } - -AST_String: - - BE_String::BE_String(AST_Expression *ms) - : AST_String(ms), - AST_Decl(AST_Decl::NT_string, - new UTL_ScopedName(new String("string"), NULL), - NULL) - { - } - -AST_Structure: - - BE_Structure::BE_Structure(UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(AST_Decl::NT_struct, n, p), - UTL_Scope(AST_Decl::NT_struct) - { - } - -AST_Type: - - BE_Type::BE_Type(AST_Decl::NodeType nt, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(nt, n, p) - { - } - -AST_Typedef: - - BE_Typedef::BE_Typedef(AST_Type *bt, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Typedef(bt, n, p), - AST_Decl(AST_Decl::NT_typedef, n, p) - { - } - -AST_Union: - - BE_Union::BE_Union(AST_ConcreteType *dt, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Union(dt, n, p), - AST_Structure(AST_Decl::NT_union, n, p), - AST_Decl(AST_Decl::NT_union, n, p), - UTL_Scope(AST_Decl::NT_union) - { - } - -AST_UnionBranch: - - BE_UnionBranch::BE_UnionBranch(AST_UnionLabel *fl, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_UnionBranch(fl, ft, n, p), - AST_Field(ft, n, p), - AST_Decl(AST_Decl::NT_union_branch, n, p) - { - } - -AST_UnionLabel: - - BE_UnionLabel::BE_UnionLabel(AST_UnionLabel::UnionLabel lk, - AST_Expression *lv) - : AST_UnionLabel(lk, lv) - { - } - -HOW TO USE THE ADD PROTOCOL ---------------------------- - -As explained the section SCOPE MANAGEMENT, the CFE manages scopes by -calling type-specific functions to add new nodes to the scope to be -augmented. These functions can be overridden in your BE classes to do work -specific to your BE class. For example, in a BE_module class, you might -override add_interface to do additional work. - -The protocol defined by the "add_" functions is that they return NULL to -indicate failure. They return the node that was added (and which was given -as an argument) if the operation succeeded. Your functions in your BE class -should follow the same protocol. - -The "add_" functions defined in the BE must call the overridden function in -the base class defind in the CFE in order for the CFE scope management -mechanism to work. Otherwise, the CFE does not get an opportunity to -augment its scopes with the new node to be added. It is good practice to -call the overridden "add_" function as the first action in your BE -function, because the success or failure of the CFE operation indicates -whether your function should complete its task or abort early. - -Here is an example. Suppose you have defined a class BE_module which -inherits from AST_Module. You may wish to override the add_interface -function as follows: - - class BE_Module : public virtual AST_Module - { - .... - /* - * ADD protocol - */ - virtual AST_Interface *add_interface(AST_Interface *); - ... - }; - -The implementation of this function would look something like the following: - - AST_Interface * - BE_Module::add_interface(AST_Interface *new_in) - { - /* - * Check that the CFE operation succeeds. If it returns - * NULL, stop any further work - */ - if (AST_Module::add_interface(new_in) == NULL) - return NULL; - /* - * OK, non-NULL, this means the BE can do its own work here - */ - ... - /* - * Finally, don't forget to return the argument to indicate - * success - */ - return new_in; - } - -HOW TO MAINTAIN BE SPECIFIC INFORMATION ---------------------------------------- - -The CFE provides a special class AST_Root, a subclass of AST_Module. An -instance of the AST_Root class is used as the distinguished root of the -abstract syntax tree built during a parse. - -Your BE can subclass BE_Root from AST_Root and override the create_root -operation in your BE_Generator class derived from AST_Generator. This will -cause the CFE to create an instance of your BE_Root class as the root of -the tree being constructed. - -You can use the instance of the BE_Root class as a convenient place to -store information specific to an individual tree. For example, you could -add operations on the BE_Root class to count how many nodes of each class -are created. - -HOW TO USE MEMBER DATA ----------------------- - -As explained above, the AST classes provide access and update functions for -manipulating data members. Your BE classes must use these functions when -they require access to data members defined in the AST classes, since the -data members themselves are private. - -It is good practice to follow the same scheme in your BE classes. Make all -data members private. Prepend the names of all such fields with "pd_". -Define access functions with names equal to the name of the field without the -prefix. Define update functions according to need by prepending the name of -the access function with the prefix "set_". - -Using these techniques will allow your BE to enjoy the same benefits that -are imparted onto the CFE. Your BE will be easier to move to a -multithreaded environment and its data members will be better protected and -hidden. - -HOW TO BUILD A COMPLETE COMPILER --------------------------------- - -We now have all information needed to write a BE and to link it in with the -CFE, to produce a complete IDL compiler. - -The following assumes that your BE will be stored in the "be" directory -under the "release" directory. See the document ROADMAP for an explanation -of the directory structure of the source release. If you decide to use a -different directory to store your BE, you may have to modify the CPP_FLAGS in -"idl_make_vars" in the top-level directory to allow your BE to find the -include files it needs. You will also need to modify several targets in -the Makefile in the top-level directory to correctly compile your BE into a -library and to correctly link it in with the CFE to produce a complete -compiler. - -You can get started quickly on writing your BE by modifying the sources -found in the "demo_be" directory. The Makefile supports all the the targets -that are needed to build a complete system and the maintenance target -"clean" which assists in keeping the files and directories tidy. The files -provided in the "demo_be" directory also provide all the API entry points -that are mandated by this document. - -To build a complete compiler, invoke "make" or "make all" in the top-level -directory. This will compile your BE and all the CFE sources, if this is -the first invocation. On subsequent invocations this will recompile only -the modified files. You will rarely if at all modify the CFE sources, so -the overhead of compiling the CFE is incurred only the first time. To build -just your BE, you can invoke "make all" or "make" in the "demo_be" -directory. You can also, from the top-level directory, invoke "make -demo_be/libbe.a". - -HOW TO OBTAIN ASSISTANCE ------------------------- - -First, read all the documents provided. If you have unanswered questions, -mail them to - - idl-cfe@sun.com - -Sun does not promise to support the IDL CFE source release in any manner. -However, we will attempt to answer questions and correct problems as time -allows. - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - -COPYRIGHT NOTICE ----------------- - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 diff --git a/TAO/TAO_IDL/driver/Makefile b/TAO/TAO_IDL/driver/Makefile deleted file mode 100644 index f7d541968ad..00000000000 --- a/TAO/TAO_IDL/driver/Makefile +++ /dev/null @@ -1,361 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Makefile for libdrv -#---------------------------------------------------------------------------- - -MAKEFILE = Makefile -LIBNAME = libdrv -LIB = $(LIBNAME).a -SHLIB = $(LIBNAME).$(SOEXT) -IDL_CFE_VERSION = \"1.3.0\" - -# These are components that are sources of -DRIVER_FILES = \ - drv_init \ - drv_private \ - drv_args \ - drv_fork \ - drv_link \ - drv_preproc - -FILES = $(DRIVER_FILES) - -LSRC = $(addsuffix .cpp,$(FILES)) -LOBJ = $(addsuffix .o,$(FILES)) -SHOBJ = $(addsuffix .so,$(FILES)) - - -LDLIBS = -lACE -LIBS = -lACE -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -BUILD = $(VSHLIB) #$(VLIB) - - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Local targets (and local hacks) -#---------------------------------------------------------------------------- - -# Need the following. But we should be able to handle this using ACE's functionality -CPPFLAGS += -I../include -I. -DCPP_LOCATION=\"$(CXX)\" -DIDL_CFE_VERSION=$(IDL_CFE_VERSION) - -$(LOBJS): $(LHDRS) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/drv_init.o .obj/drv_init.so .shobj/drv_init.o .shobj/drv_init.so: drv_init.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../include/drv_private.h \ - ../include/drv_link.h -.obj/drv_private.o .obj/drv_private.so .shobj/drv_private.o .shobj/drv_private.so: drv_private.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../include/drv_private.h -.obj/drv_args.o .obj/drv_args.so .shobj/drv_args.o .shobj/drv_args.so: drv_args.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../include/drv_private.h \ - ../include/drv_link.h -.obj/drv_fork.o .obj/drv_fork.so .shobj/drv_fork.o .shobj/drv_fork.so: drv_fork.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../include/drv_private.h \ - $(ACE_ROOT)/ace/Process_Manager.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Process.h \ - $(ACE_ROOT)/ace/Process.i \ - $(ACE_ROOT)/ace/Process_Manager.i -.obj/drv_link.o .obj/drv_link.so .shobj/drv_link.o .shobj/drv_link.so: drv_link.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../include/drv_private.h \ - ../include/drv_link.h -.obj/drv_preproc.o .obj/drv_preproc.so .shobj/drv_preproc.o .shobj/drv_preproc.so: drv_preproc.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../include/drv_private.h \ - ../include/drv_link.h \ - $(ACE_ROOT)/ace/Process_Manager.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Process.h \ - $(ACE_ROOT)/ace/Process.i \ - $(ACE_ROOT)/ace/Process_Manager.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/TAO_IDL/driver/drv_args.cpp b/TAO/TAO_IDL/driver/drv_args.cpp deleted file mode 100644 index acb4db7622e..00000000000 --- a/TAO/TAO_IDL/driver/drv_args.cpp +++ /dev/null @@ -1,273 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// drv_args.c - Argument parsing for IDL compiler main driver - -#include "idl.h" -#include "idl_extern.h" - -#include "drv_private.h" -#include "drv_link.h" - -#include - -/* - * Push a file into the list of files to be processed - */ -static void -DRV_push_file(char *s) -{ - DRV_files[DRV_nfiles++] = s; -} - -/* - * Prepare a CPP argument - */ -static void -DRV_prep_cpp_arg(char *s) -{ - char *newarg = new char[512]; - char *farg; - - newarg[0] = '\0'; - for (farg = strtok(s, ","); farg != NULL; farg = strtok(NULL, ",")) - strcat(newarg,farg); - DRV_cpp_putarg(newarg); -} - -/* - * Print a usage message and exit - */ -void -DRV_usage() -{ - cerr << idl_global->prog_name() - << GTDEVEL(": usage: ") - << idl_global->prog_name() - << GTDEVEL(" [flag | file]*\n"); - cerr << GTDEVEL("Legal flags:\n"); - cerr << GTDEVEL(" -A...\t\t\tlocal implementation-specific escape\n"); - cerr << GTDEVEL(" -Dname[=value]\t\tdefines name for preprocessor\n"); - cerr << GTDEVEL(" -E\t\t\truns preprocessor only, prints on stdout\n"); - cerr << GTDEVEL(" -Idir\t\t\tincludes dir in search path for preprocessor\n"); - cerr << GTDEVEL(" -Uname\t\t\tundefines name for preprocessor\n"); - cerr << GTDEVEL(" -V\t\t\tprints version info then exits\n"); - cerr << GTDEVEL(" -W[p|b],arg1,argn\tpasses args to preprocessor or BE\n"); - cerr << GTDEVEL(" -Yp,path\t\tdefines location of preprocessor\n"); - cerr << GTDEVEL(" -bback_end\t\tcauses specified back end to be used\n"); - cerr << GTDEVEL(" -u\t\t\tprints usage message and exits\n"); - cerr << GTDEVEL(" -v\t\t\ttraces compilation stages\n"); - cerr << GTDEVEL(" -w\t\t\tsuppresses IDL compiler warning messages\n"); -} - -/* - * Parse arguments on command line - */ -void -DRV_parse_args(long ac, char **av) -{ - char *buffer; - char *s; - long i; - - DRV_cpp_init(); - idl_global->set_prog_name(av[0]); - for (i = 1; i < ac; i++) { - if (av[i][0] == '-') { - switch (av[i][1]) { - case 0: - DRV_push_file("standard input"); - break; - case 'A': - if (av[i][2] == '\0') { - if (i < ac - 1) { - i++; - s = av[i]; - } else - exit(99); - } else - s = av[i] + 2; - strcat(idl_global->local_escapes(), s); - strcat(idl_global->local_escapes(), " "); - break; - case 'D': - case 'U': - case 'I': - if (av[i][2] == '\0') { - if (i < ac - 1) { - buffer = new char[strlen(av[i]) + strlen(av[i + 1]) + 2]; - sprintf(buffer, "%s%s", av[i], av[i+1]); - DRV_cpp_putarg(buffer); - i++; - } else { - cerr << GTDEVEL("IDL: missing argument after '") - << av[i] - << GTDEVEL("' flag\n"); - exit(99); - } - } else - DRV_cpp_putarg(av[i]); - break; - case 'E': - idl_global->set_compile_flags(idl_global->compile_flags() | - IDL_CF_ONLY_PREPROC); - break; - case 'V': - idl_global->set_compile_flags(idl_global->compile_flags() | - IDL_CF_VERSION); - break; - case 'W': - if (av[i][2] == '\0') { - if (i < ac - 1) { - i++; - s = av[i]; - } else { - cerr << GTDEVEL("IDL: missing argument after '") - << av[i] - << GTDEVEL("' flag\n"); - exit(99); - } - } else - s = av[i] + 2; - switch (*s) { - default: - cerr << GTDEVEL("IDL: -W must be followed by 'p' or 'b'\n"); - exit(99); - case 'p': - if (*(s + 1) == ',') - DRV_prep_cpp_arg(s + 2); - break; - case 'b': - if (*(s + 1) == ',') - (*DRV_BE_prep_arg)(s + 2, I_TRUE); - break; - } - break; - case 'Y': - if (av[i][2] == '\0') { - if (i < ac - 1) { - i++; - s = av[i]; - } else { - cerr << GTDEVEL("IDL: missing argument after '") - << av[i] - << GTDEVEL("' flag\n"); - exit(99); - } - } else - s = av[i] + 2; - switch (*s) { - case 'p': - if (*(s + 1) == ',') { - idl_global->set_cpp_location(s + 2); - DRV_cpp_new_location(s + 2); - } - break; - default: - break; - } - break; - case 'b': - if (av[i][2] == '\0') { - if (i < ac - 1) { - i++; - s = av[i]; - } else { - cerr << GTDEVEL("IDL: missing argument after '") - << av[i] - << GTDEVEL("' flag\n"); - exit(99); - } - } else - s = av[i] + 2; - idl_global->set_be(s); - break; - case 'd': - idl_global->set_compile_flags(idl_global->compile_flags() | - IDL_CF_DUMP_AST); - break; - case 'u': - idl_global->set_compile_flags(idl_global->compile_flags() | - IDL_CF_ONLY_USAGE); - break; - case 'v': - idl_global->set_compile_flags(idl_global->compile_flags() | - IDL_CF_INFORMATIVE); - break; - case 'w': - idl_global->set_compile_flags(idl_global->compile_flags() | - IDL_CF_NOWARNINGS); - break; - default: - cerr << GTDEVEL("IDL: Illegal option '") << av[i] << "'\n"; - idl_global->set_compile_flags(idl_global->compile_flags() | - IDL_CF_ONLY_USAGE); - break; - } - } else - DRV_push_file(av[i]); - } -} diff --git a/TAO/TAO_IDL/driver/drv_fork.cpp b/TAO/TAO_IDL/driver/drv_fork.cpp deleted file mode 100644 index 963da3a9dac..00000000000 --- a/TAO/TAO_IDL/driver/drv_fork.cpp +++ /dev/null @@ -1,127 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * DRV_fork.cc - Fork a process for each file to be processed, wait for - * status from the child process - */ - -#include "idl.h" -#include "idl_extern.h" - -#include "drv_private.h" - -#include "ace/Process_Manager.h" - -/* - * Fork off a process, wait for it to die - */ -void -DRV_fork() -{ - // This will not work on NT, but I can hardly think of some way to - // make it work. - // The idea is to make it compile, and always use the compiler with - // just one file, that works because then there is no fork - // involved. - for (DRV_file_index = 0; - DRV_file_index < DRV_nfiles; - ++DRV_file_index) - { - ACE_Process_Options options; - options.creation_flags (ACE_Process_Options::NO_EXEC); - - ACE_Process_Manager manager; - pid_t child_pid = manager.spawn (options); - if (child_pid == 0) - { - /* - * OK, do it to this file (in the child) - */ - DRV_drive(DRV_files[DRV_file_index]); - ACE_OS::exit(0); - } - - if (child_pid == -1) - { - cerr << GTDEVEL("IDL: spawn failed\n"); - ACE_OS::exit (99); - /*NOTREACHED*/ - } - - // child_pid is the process id of something at this point. - if (manager.wait () == -1) - { - cerr << GTDEVEL("IDL: wait failed\n"); - ACE_OS::exit (99); - /*NOTREACHED*/ - } - } - /* - * Now the parent process can exit - */ - exit(0); -} diff --git a/TAO/TAO_IDL/driver/drv_init.cpp b/TAO/TAO_IDL/driver/drv_init.cpp deleted file mode 100644 index c34c2c923ed..00000000000 --- a/TAO/TAO_IDL/driver/drv_init.cpp +++ /dev/null @@ -1,121 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// DRV_init.cc - Initialization for IDL compiler driver program - -#include "idl.h" -#include "idl_extern.h" - -#include "drv_private.h" -#include "drv_link.h" - -void -DRV_init() -{ - // Initialize global data - - idl_global = new IDL_GlobalData(); - - idl_global->set_scopes(NULL); - idl_global->set_root(NULL); - idl_global->set_gen(NULL); - idl_global->set_err((*DRV_FE_new_UTL_Error)()); - idl_global->set_err_count(0); - idl_global->set_indent((*DRV_FE_new_UTL_Indenter)()); - - idl_global->set_filename(NULL); - idl_global->set_main_filename(NULL); - idl_global->set_real_filename(NULL); - idl_global->set_stripped_filename(NULL); - idl_global->set_import(I_TRUE); - idl_global->set_in_main_file(I_FALSE); - idl_global->set_lineno(-1); - - idl_global->set_prog_name(NULL); - - idl_global->set_cpp_location(CPP_LOCATION); - - idl_global->set_be(""); - - idl_global->set_local_escapes(new char[1024]); - - idl_global->set_pragmas(NULL); - - idl_global->set_compile_flags(0); - - idl_global->set_read_from_stdin(I_FALSE); - - idl_global->set_include_file_names(NULL); - idl_global->set_n_include_file_names(0); - - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - - // Initialize driver private data - - DRV_nfiles = 0; - DRV_file_index = 0; -} - diff --git a/TAO/TAO_IDL/driver/drv_link.cpp b/TAO/TAO_IDL/driver/drv_link.cpp deleted file mode 100644 index b142b67a3f3..00000000000 --- a/TAO/TAO_IDL/driver/drv_link.cpp +++ /dev/null @@ -1,138 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* -** drv_link.cc - routines for programatic linking -** -** This file is set up so that you can easily convert the CFE to do -** dynamic loading of either the front end (parser) or BEs. Since no -** portable dynamic loading mechanism exists, we have removed the specific -** one which is in Sunsoft\'s version and which uses Solaris dlopen. -*/ - -#include "idl.h" -#include "idl_extern.h" - -#include "drv_private.h" -#include "drv_link.h" - -DRV_PF_FE_init_stage1 DRV_FE_init_stage1; -DRV_PF_FE_init_stage2 DRV_FE_init_stage2; -DRV_PF_FE_yyparse DRV_FE_yyparse; -DRV_PF_FE_set_yyin DRV_FE_set_yyin; -DRV_PF_FE_new_UTL_Error DRV_FE_new_UTL_Error; -DRV_PF_FE_new_UTL_Indenter DRV_FE_new_UTL_Indenter; -DRV_PF_FE_new_UTL_String DRV_FE_new_UTL_String; - -DRV_PF_BE_init DRV_BE_init; -DRV_PF_BE_produce DRV_BE_produce; -DRV_PF_BE_abort DRV_BE_abort; -DRV_PF_BE_prep_arg DRV_BE_prep_arg; -DRV_PF_BE_version DRV_BE_version; - -void -DRV_FE_open() -{ - DRV_FE_init_stage1 = &FE_init_stage1; - DRV_FE_init_stage2 = &FE_init_stage2; - DRV_FE_yyparse = &FE_yyparse; - DRV_FE_set_yyin = &FE_set_yyin; - DRV_FE_new_UTL_Error = &FE_new_UTL_Error; - DRV_FE_new_UTL_Indenter = &FE_new_UTL_Indenter; - DRV_FE_new_UTL_String = &FE_new_UTL_String; -} - -void -DRV_FE_close() -{ - DRV_FE_init_stage1 = 0; - DRV_FE_init_stage2 = 0; - DRV_FE_yyparse = 0; - DRV_FE_set_yyin = 0; - DRV_FE_new_UTL_Error = 0; - DRV_FE_new_UTL_Indenter = 0; - DRV_FE_new_UTL_String = 0; -} - -void -DRV_BE_open() -{ - DRV_BE_init = &BE_init; - DRV_BE_produce = &BE_produce; - DRV_BE_abort = &BE_abort; - DRV_BE_prep_arg = &BE_prep_arg; - DRV_BE_version = &BE_version; -} - -void -DRV_BE_close() -{ - DRV_BE_init = 0; - DRV_BE_produce = 0; - DRV_BE_abort = 0; - DRV_BE_prep_arg = 0; - DRV_BE_version = 0; -} diff --git a/TAO/TAO_IDL/driver/drv_preproc.cpp b/TAO/TAO_IDL/driver/drv_preproc.cpp deleted file mode 100644 index 69c92c911ee..00000000000 --- a/TAO/TAO_IDL/driver/drv_preproc.cpp +++ /dev/null @@ -1,356 +0,0 @@ -/* $Id$ */ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * DRV_pre_proc.cc - pass an IDL file through the C preprocessor - */ - -#include "idl.h" -#include "idl_extern.h" - -#include "drv_private.h" -#include "drv_link.h" - -#include "ace/Process_Manager.h" -#include "ace/Env_Value_T.h" - -#undef MAX_ARGLIST -#define MAX_ARGLIST 128 - -static char *arglist[MAX_ARGLIST]; -static long argcount = 0; - -/* - * Push the new CPP location if we got a -Yp argument - */ -void -DRV_cpp_new_location(char *new_loc) -{ - arglist[0] = new_loc; -} - -/* - * Push an argument into the arglist - */ -void -DRV_cpp_putarg(char *str) -{ - if (argcount >= MAX_ARGLIST) { - cerr << idl_global->prog_name() - << GTDEVEL(": More than ") - << MAX_ARGLIST - << GTDEVEL(" arguments to preprocessor\n"); - exit (99); - } - arglist[argcount++] = str; -} - -/* - * Initialize the cpp argument list - */ -void -DRV_cpp_init() -{ - - char *cpp_loc; - - // DRV_cpp_putarg("\\cygnus\\H-i386-cygwin32\\bin\\echo"); - ACE_Env_Value cpp_path ("CPP_LOCATION", (char *) 0); - - if (cpp_path != 0) - cpp_loc = cpp_path; - else - cpp_loc = idl_global->cpp_location(); - DRV_cpp_putarg(cpp_loc); - DRV_cpp_putarg("-E"); - DRV_cpp_putarg("-DIDL"); - DRV_cpp_putarg("-I."); -} - -/* - * lines can be 1024 chars long - */ -#define LINEBUF_SIZE 1024 -static char drv_line[LINEBUF_SIZE + 1]; - -/* - * Get a line from stdin - */ -static long -DRV_get_line(FILE *f) -{ - char *l = fgets(drv_line, LINEBUF_SIZE, f); - long i; - - if (l == NULL) - return I_FALSE; - if (*l == '\0' && feof(f)) - return I_FALSE; - if (*l == '\0') - return I_TRUE; - i = strlen(l) - 1; - if (l[i] == '\n') - l[i] = '\0'; - return I_TRUE; -} - -/* - * Copy from stdin to a file - */ -static void -DRV_copy_input(FILE *fin, char *fn) -{ - FILE *f = fopen(fn, "w"); - - if (f == NULL) { - cerr << idl_global->prog_name() - << GTDEVEL(": cannot open temp file ") - << fn - << GTDEVEL(" for writing\n"); - exit(99); - } - if (fin == NULL) { - cerr << idl_global->prog_name() - << GTDEVEL(": cannot open input file\n"); - exit(99); - } - while (DRV_get_line(fin)) - fprintf(f, "%s\n", drv_line); - fclose(f); -} - -/* - * Strip down a name to the last component, i.e. everything after the last - * '/' character - */ -static char * -DRV_stripped_name(char *fn) -{ - char *n = fn; - long l; - - if (n == NULL) - return NULL; - l = strlen(n); - for (n += l; l > 0 && *n != '/'; l--, n--); - if (*n == '/') n++; - return n; -} - -/* - * File names - */ -static char tmp_file[128]; -static char tmp_ifile[128]; - -/* - * Pass input through preprocessor - */ -void -DRV_pre_proc(char *myfile) -{ - long readfromstdin = I_FALSE; - char catbuf[512]; - - // Macro to avoid "warning: unused parameter" type warning. - ACE_UNUSED_ARG (readfromstdin); - - const char* tmpdir = getenv("TMP"); - if (tmpdir != 0) - { - ACE_OS::strcpy (tmp_file, tmpdir); - ACE_OS::strcpy (tmp_ifile, tmpdir); - } - else - { - ACE_OS::strcpy (tmp_file, ACE_DIRECTORY_SEPARATOR_STR_A); - ACE_OS::strcat (tmp_file, "tmp"); - ACE_OS::strcpy (tmp_ifile, ACE_DIRECTORY_SEPARATOR_STR_A); - ACE_OS::strcat (tmp_ifile, "tmp"); - } - - ACE_OS::strcat (tmp_file, ACE_DIRECTORY_SEPARATOR_STR_A); - ACE_OS::strcat (tmp_file, "idlf_XXXXXX"); - - ACE_OS::strcat (tmp_ifile, ACE_DIRECTORY_SEPARATOR_STR_A); - ACE_OS::strcat (tmp_ifile, "idli_XXXXXX"); - - (void) ACE_OS::mktemp (tmp_file); ACE_OS::strcat (tmp_file, ".cc"); - (void) ACE_OS::mktemp (tmp_ifile); ACE_OS::strcat (tmp_ifile, ".cc"); - if (strcmp(myfile, "standard input") == 0) { - idl_global->set_filename((*DRV_FE_new_UTL_String)(tmp_ifile)); - idl_global->set_main_filename((*DRV_FE_new_UTL_String)(tmp_ifile)); - idl_global-> - set_stripped_filename( - (*DRV_FE_new_UTL_String)(DRV_stripped_name(tmp_ifile)) - ); - idl_global->set_real_filename((*DRV_FE_new_UTL_String)(tmp_ifile)); - DRV_copy_input(stdin, tmp_ifile); - idl_global->set_read_from_stdin(I_TRUE); - } else { - FILE *fd = fopen(myfile, "r"); - DRV_copy_input(fd, tmp_ifile); - fclose(fd); - idl_global->set_read_from_stdin(I_FALSE); - idl_global->set_filename((*DRV_FE_new_UTL_String)(myfile)); - idl_global->set_main_filename((*DRV_FE_new_UTL_String)(myfile)); - idl_global-> - set_stripped_filename( - (*DRV_FE_new_UTL_String)(DRV_stripped_name(myfile)) - ); - idl_global->set_real_filename((*DRV_FE_new_UTL_String)(tmp_ifile)); - } - - // We use ACE instead of the (low level) fork facilities, this also - // work on NT. - ACE_Process manager; - ACE_Process_Options cpp_options; - DRV_cpp_putarg (tmp_ifile); - DRV_cpp_putarg (0); // Null terminate the arglist. - cpp_options.command_line (arglist); - ACE_HANDLE fd = ACE_OS::open(tmp_file, O_WRONLY | O_CREAT | O_TRUNC, 0777); - if (fd == ACE_INVALID_HANDLE) { - cerr << idl_global->prog_name() - << GTDEVEL(": cannot open temp file ") - << tmp_file << " for writing\n"; - return; - } - cpp_options.set_handles (ACE_INVALID_HANDLE, fd); - if (manager.spawn (cpp_options) == -1) - { - cerr << idl_global->prog_name() - << GTDEVEL(": spawn of ") - << arglist[0] - << GTDEVEL(" failed\n"); - return; - } - - // Close the output file on the parent process. - if (ACE_OS::close (fd) == -1) - { - cerr << idl_global->prog_name () - << GTDEVEL(": cannot close temp file") - << tmp_file << " on parent\n"; - return; - } - - // Remove the null termination and the input file from the arglist, - // the next file will the previous args. - argcount -= 2; - - if (manager.wait () == -1) - { - cerr << idl_global->prog_name () - << GTDEVEL(": wait for child process failed\n"); - return; - } - // TODO: Manage problems in the pre-processor, in the previous - // version the current process would exit if the pre-processor - // returned with error. - - - FILE * yyin = fopen(tmp_file, "r"); - if (yyin == NULL) { - cerr << idl_global->prog_name() - << GTDEVEL(": Could not open cpp output file ") - << tmp_file - << "\n"; - exit(99); - } - (*DRV_FE_set_yyin)((File *) yyin); - - // @@ TODO: This is not portable, cat(1) is a UNIX tool. - if (idl_global->compile_flags() & IDL_CF_ONLY_PREPROC) { - sprintf(catbuf, "cat < %s", tmp_file); - system(catbuf); - } - - if (ACE_OS::unlink(tmp_ifile) == -1) { - cerr << idl_global->prog_name() - << GTDEVEL(": Could not remove cpp input file ") - << tmp_ifile - << "\n"; - exit(99); - } -#if !defined (ACE_WIN32) - // TODO: This unlink fails every time under NT, it seems that you - // cannot remove an open file under that OS? - if (ACE_OS::unlink(tmp_file) == -1) { - cerr << idl_global->prog_name() - << GTDEVEL(": Could not remove cpp output file ") - << tmp_file - << "\n"; - exit(99); - } -#endif /* !ACE_WIN32 */ - if (idl_global->compile_flags() & IDL_CF_ONLY_PREPROC) - exit(0); -} - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) - template class ACE_Env_Value; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -# pragma instantiate ACE_Env_Value -#endif diff --git a/TAO/TAO_IDL/driver/drv_private.cpp b/TAO/TAO_IDL/driver/drv_private.cpp deleted file mode 100644 index 5766ace1506..00000000000 --- a/TAO/TAO_IDL/driver/drv_private.cpp +++ /dev/null @@ -1,81 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// drv_global.cc - Global variables for IDL compiler driver program - -#include "idl.h" -#include "idl_extern.h" - -#include "drv_private.h" - -// Storage for file names - -#define NFILES 1024 - -char *DRV_files[NFILES]; -long DRV_nfiles = 0; -long DRV_file_index = -1; -IDL_GlobalData *idl_global = NULL; diff --git a/TAO/TAO_IDL/fe/Makefile b/TAO/TAO_IDL/fe/Makefile deleted file mode 100644 index 48152fe057f..00000000000 --- a/TAO/TAO_IDL/fe/Makefile +++ /dev/null @@ -1,403 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Makefile for libfe -#---------------------------------------------------------------------------- - -MAKEFILE = Makefile -LIBNAME = libfe -LIB = $(LIBNAME).a -SHLIB = $(LIBNAME).$(SOEXT) -IDL_CFE_VERSION = \"1.3.0\" - -# These are components that are sources of -FE_FILES = \ - fe_declarator \ - fe_private \ - fe_init \ - fe_extern \ - fe_interface_header - -OTHER_FILES = \ - y.tab \ - lex.yy - -FILES = $(FE_FILES) $(OTHER_FILES) - -LSRC = $(addsuffix .cpp,$(FILES)) -LHDR = $(addsuffix .h,$(HDRS)) -LOBJ = $(addsuffix .o,$(FILES)) -SHOBJ = $(addsuffix .so,$(FILES)) - - -LDLIBS = -lACE -LIBS = -lACE -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -BUILD = $(VSHLIB) #$(VLIB) - - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Local targets (and local hacks) -#---------------------------------------------------------------------------- - -CPPFLAGS += -D_REENTRANT -I../include -I. -DCPP_LOCATION=\"$(CXX)\" -DIDL_CFE_VERSION=$(IDL_CFE_VERSION) -YACC = yacc -LEX = flex -YFLAGS = -t -d -LFLAGS = -t - -# Create the parser and lexer -y.tab.h y.tab.cpp: idl.yy - @-$(RM) -f $@ - $(YACC) $(YFLAGS) idl.yy - @sed -e "s/yy/tao_yy/g" \ - -e "s/YY/TAO_YY/g" < y.tab.c > y.tab.cpp - @sed -e "s/yy/tao_yy/g" \ - -e "s/YY/TAO_YY/g" < y.tab.h > /tmp/$@ - @mv /tmp/$@ y.tab.h - @patch < y.tab.cpp.diff - @-$(RM) -f y.tab.cpp.orig y.tab.c - -lex.yy.cpp: idl.ll y.tab.h - $(LEX) $(LFLAGS) idl.ll > /tmp/$@ - @#### Replace #includes of standard headers with #include of ace/OS.h, - @#### so that ace/config.h is #included first. - @sed -e 's%#include.*%#include "ace/OS.h"%g' \ - -e "s/yy/tao_yy/g" \ - -e "s/YY/TAO_YY/g" \ - -e '/#include.*stdlib.h/D' \ - -e '/#include.*unistd.h/D' \ - -e 's/ECHO/TAO_ECHO/g' < /tmp/$@ > $@ - @patch < lex.yy.cpp.diff - @-$(RM) -f /tmp/$@ lex.yy.cpp.orig - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/fe_declarator.o .obj/fe_declarator.so .shobj/fe_declarator.o .shobj/fe_declarator.so: fe_declarator.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../include/fe_private.h \ - ../include/fe_interface_header.h ../include/fe_declarator.h -.obj/fe_private.o .obj/fe_private.so .shobj/fe_private.o .shobj/fe_private.so: fe_private.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../include/fe_private.h \ - ../include/fe_interface_header.h ../include/fe_declarator.h -.obj/fe_init.o .obj/fe_init.so .shobj/fe_init.o .shobj/fe_init.so: fe_init.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../include/fe_private.h \ - ../include/fe_interface_header.h ../include/fe_declarator.h -.obj/fe_extern.o .obj/fe_extern.so .shobj/fe_extern.o .shobj/fe_extern.so: fe_extern.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../include/fe_private.h \ - ../include/fe_interface_header.h ../include/fe_declarator.h -.obj/fe_interface_header.o .obj/fe_interface_header.so .shobj/fe_interface_header.o .shobj/fe_interface_header.so: fe_interface_header.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../include/fe_private.h \ - ../include/fe_interface_header.h ../include/fe_declarator.h -.obj/y.tab.o .obj/y.tab.so .shobj/y.tab.o .shobj/y.tab.so: y.tab.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../include/fe_private.h \ - ../include/fe_interface_header.h ../include/fe_declarator.h -.obj/lex.yy.o .obj/lex.yy.so .shobj/lex.yy.o .shobj/lex.yy.so: lex.yy.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h ../include/fe_private.h \ - ../include/fe_interface_header.h ../include/fe_declarator.h y.tab.h - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/TAO_IDL/fe/fe_declarator.cpp b/TAO/TAO_IDL/fe/fe_declarator.cpp deleted file mode 100644 index 08a6407d7fd..00000000000 --- a/TAO/TAO_IDL/fe/fe_declarator.cpp +++ /dev/null @@ -1,159 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * fe_declarator.cc - Implementation of FE private declaration - * statement class - * - * The FE_Declarator class is used to hold together complex declarations - * until all the components are parsed and before they are composed into - * an AST_Type node. - */ - -#include "idl.h" -#include "idl_extern.h" - -#include "fe_private.h" - -/* - * Constructor(s) and destructor - */ - -FE_Declarator::FE_Declarator(UTL_ScopedName *n, DeclaratorType dt, - AST_Decl *cp) - : pd_complex_part(cp), - pd_name(n), - pd_decl_type(dt) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Compose the type of the complex declarator (if any) with the base -// type supplied in ct -AST_Type * -FE_Declarator::compose(AST_Decl *d) -{ - AST_Array *arr; - AST_Type *ct; - - ct = AST_Type::narrow_from_decl(d); - if (ct == NULL) { - idl_global->err()->not_a_type(d); - return NULL; - } - if (ct->node_type() == AST_Decl::NT_except) { - idl_global->err()->not_a_type(d); - return NULL; - } - if (pd_decl_type == FD_simple || pd_complex_part == NULL) { - return ct; - } - if (pd_complex_part->node_type() == AST_Decl::NT_array) { - arr = AST_Array::narrow_from_decl(pd_complex_part); - arr->set_base_type(ct); - - /* - * Add the new array to the types defined in the global scope - */ - idl_global->root()->fe_add_array(arr); - - return arr; - } - return NULL; // return through this statement should not happen -} - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Data accessors - */ - -AST_Decl * -FE_Declarator::complex_part() -{ - return pd_complex_part; -} - -UTL_ScopedName * -FE_Declarator::name() -{ - return pd_name; -} - -FE_Declarator::DeclaratorType -FE_Declarator::decl_type() -{ - return pd_decl_type; -} diff --git a/TAO/TAO_IDL/fe/fe_extern.cpp b/TAO/TAO_IDL/fe/fe_extern.cpp deleted file mode 100644 index ba16f3357dc..00000000000 --- a/TAO/TAO_IDL/fe/fe_extern.cpp +++ /dev/null @@ -1,124 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * fe_extern.cc - export FE interfaces to driver - */ - -#include "idl.h" -#include "idl_extern.h" - -#include "fe_private.h" - -#include "utl_error.h" -#include "utl_indenter.h" -#include "utl_string.h" - -/* - * yacc parser interface - */ - -extern int tao_yyparse(); -extern FILE * tao_yyin; - -int -FE_yyparse() -{ - int result = tao_yyparse(); - if (idl_global->err_count() == 0) { - idl_global->root()->call_add(); - } - return result; -} - -void -FE_set_yyin(File * f) -{ - tao_yyin = (FILE*)f; -} - -/* - * constructor interfaces - */ - -UTL_Error * -FE_new_UTL_Error() -{ - return new UTL_Error(); -} - -UTL_Indenter * -FE_new_UTL_Indenter() -{ - return new UTL_Indenter(); -} - -UTL_String * -FE_new_UTL_String(char * str) -{ - return new UTL_String(str); -} diff --git a/TAO/TAO_IDL/fe/fe_init.cpp b/TAO/TAO_IDL/fe/fe_init.cpp deleted file mode 100644 index 2c16d2e9946..00000000000 --- a/TAO/TAO_IDL/fe/fe_init.cpp +++ /dev/null @@ -1,369 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * fe_init.cc - Initialize the FE - * - * The FE initialization is carried out in two stages, with the BE - * initialization protocol sandwiched between the two stages. - * - * The first stage is responsible for creating the scopes stack. - * The second stage is run after the BE initialization has created - * and returned an instance of AST_Generator (or a subclass). This - * instance is used to create the root node for the AST, and to - * populate it with AST_PredefinedType nodes which represent the - * predefined IDL types. This AST root is then pushed on the scopes - * stack as the outermost scope. - */ - -#include "idl.h" -#include "idl_extern.h" - -#include "fe_private.h" - -/* - * Create a scoped name - */ -static UTL_ScopedName * -create_scoped_name(char *s) -{ - return new UTL_ScopedName(new Identifier(s, 1, 0, I_FALSE), NULL); -} - -/* - * Populate the global scope with all predefined entities - */ -void -fe_populate(AST_Module *m) -{ - AST_PredefinedType *pdt; - - pdt = idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_long, - create_scoped_name("long"), - NULL); - m->fe_add_predefined_type(pdt); - - pdt = - idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_ulong, - create_scoped_name("unsigned long"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = - idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_longlong, - create_scoped_name("long long"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = - idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_ulonglong, - create_scoped_name("unsigned long long"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_short, - create_scoped_name("short"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = - idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_ushort, - create_scoped_name("unsigned short"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_float, - create_scoped_name("float"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = - idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_double, - create_scoped_name("double"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = - idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_longdouble, - create_scoped_name("long double"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_char, - create_scoped_name("char"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = - idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_wchar, - create_scoped_name("wchar_t"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_octet, - create_scoped_name("octet"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_any, - create_scoped_name("any"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = - idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_boolean, - create_scoped_name("boolean"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_void, - create_scoped_name("void"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("Object"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("TypeCode"), - NULL); - m->fe_add_predefined_type(pdt); - - /* - * Add these to make all keywords protected even in different spellings - */ - - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("attribute"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("case"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("const"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("context"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("default"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("enum"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("exception"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("in"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("out"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("inout"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("interface"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("module"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("oneway"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("raises"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("readonly"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("sequence"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("string"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("wstring_t"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("struct"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("switch"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("typedef"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("union"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("unsigned"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("TRUE"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("FALSE"), - NULL); - m->fe_add_predefined_type(pdt); -} - -/* - * Initialization stage 1: create global scopes stack - */ -void -FE_init_stage1() -{ - idl_global->set_scopes(new UTL_ScopeStack()); - if (idl_global->scopes() == NULL) { - cerr << GTDEVEL("IDL: FE init failed to create scope stack, exiting\n"); - exit(99); - } -} - -/* - * Initialization stage 2: create global scope and populate it - */ -void -FE_init_stage2() -{ - AST_Root *r; - - /* - * Check that the BE init created a generator object - */ - if (idl_global->gen() == NULL) { - cerr << GTDEVEL("IDL: BE did not initialize idl_global->gen(), exiting\n"); - exit(99); - } - /* - * Create a global root for the AST. Note that the AST root has no - * name - */ - r = idl_global->gen()->create_root(create_scoped_name(""), NULL); - idl_global->set_root(r); - if (r == NULL) { - cerr << GTDEVEL("IDL: FE init failed to create AST root, exiting\n"); - exit(99); - } - /* - * Push it on the stack - */ - idl_global->scopes()->push(idl_global->root()); - /* - * Populate it with nodes for predefined types - */ - fe_populate(idl_global->root()); - /* - * Set flag to indicate we are processing the main file now - */ - idl_global->set_in_main_file(I_TRUE); -} diff --git a/TAO/TAO_IDL/fe/fe_interface_header.cpp b/TAO/TAO_IDL/fe/fe_interface_header.cpp deleted file mode 100644 index 7df470f7ffa..00000000000 --- a/TAO/TAO_IDL/fe/fe_interface_header.cpp +++ /dev/null @@ -1,284 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * fe_interface_header.cc - Implements the FE private class FE_InterfaceHeader - * - * FE_InterfaceHeader instances are used to store information about an - * interface header as the interface is being parsed and before the - * AST_Interface node used to represent this interface is created. - */ - -#include "idl.h" -#include "idl_extern.h" - -#include "fe_private.h" - -/* - * Constructor(s) and destructor - */ - -FE_InterfaceHeader::FE_InterfaceHeader(UTL_ScopedName *n, UTL_NameList *nl) - : pd_interface_name(n) -{ - compile_inheritance(nl); -} - -/* - * Private operations - */ - -// Compute flattened, non-repeating list of inherited interfaces - -#undef INCREMENT -#define INCREMENT 512 - -/* - * Private storage used to store interfaces seen already in the - * computation of the unique, flattened inheritance list - */ -static AST_Interface **iseen = NULL; -static long iallocated = 0; -static long iused = 0; - -/* - * Add an interface to an inheritance spec - */ -static void -add_inheritance(AST_Interface *i) -{ - long oiallocated; - long k; - AST_Interface **oiseen; - - /* - * Make sure there's space for one more - */ - if (iallocated == iused) { - if (iallocated == 0) { - iallocated = INCREMENT; - iseen = new AST_Interface *[iallocated]; - } else { - oiallocated = iallocated; - oiseen = iseen; - iallocated += INCREMENT; - iseen = new AST_Interface *[iallocated]; - for (k = 0; k < iused; k++) - iseen[k] = oiseen[k]; - delete oiseen; - } - } - /* - * OK, now insert it - */ - iseen[iused] = i; - iused++; -} - -/* - * Have we already seen this interface? - */ -static long -already_seen(AST_Interface *ip) -{ - long i; - - for (i = 0; i < iused; i++) { - if (iseen[i] == ip) - return I_TRUE; - } - return I_FALSE; -} - -/* - * Add this interface to the list of inherited if not already there - */ -void -FE_InterfaceHeader::compile_one_inheritance(AST_Interface *i) -{ - /* - * Check for badly formed interface - */ - if (i == NULL) - return; - /* - * If we've seen it already then don't expand again - */ - if (already_seen(i)) - return; - /* - * OK, add i to the list of inherited interfaces - */ - add_inheritance(i); -} - -/* - * Compute the list of top-level interfaces this one inherits from - */ -void -FE_InterfaceHeader::compile_inheritance(UTL_NameList *nl) -{ - UTL_NamelistActiveIterator *l = new UTL_NamelistActiveIterator(nl); - AST_Decl *d; - AST_Interface *i; - long k; - - iused = 0; - /* - * Compute expanded flattened non-repeating list of interfaces - * which this one inherits from - */ - while (!(l->is_done())) { - /* - * Check that scope stack is valid - */ - if (idl_global->scopes()->top() == NULL) { - idl_global->err()->lookup_error(l->item()); - return; - } - /* - * Look it up - */ - d = idl_global->scopes()->top()->lookup_by_name(l->item(), I_TRUE); - /* - * Not found? - */ - if (d == NULL) { - idl_global->err()->lookup_error(l->item()); - return; - } - /* - * Not an interface? - */ - while(d->node_type() == AST_Decl::NT_typedef) - d = AST_Typedef::narrow_from_decl(d)->base_type(); - if (d->node_type() != AST_Decl::NT_interface) { - idl_global->err()->inheritance_error(pd_interface_name, d); - return; - } - /* - * OK, cast to an interface - */ - i = AST_Interface::narrow_from_decl(d); - if (i == NULL) - idl_global->err()->inheritance_error(pd_interface_name, d); - /* - * Forward declared interface? - */ - if (!i->is_defined()) { - idl_global->err()->inheritance_fwd_error(pd_interface_name, i); - return; - } - /* - * OK, see if we have to add this to the list of interfaces - * inherited from - */ - compile_one_inheritance(i); - - /* - * Next element in header list - */ - l->next(); - } - delete l; - /* - * OK, install in interface header - */ - pd_inherits = new AST_Interface *[iused]; - for (k = 0; k < iused; k++) - pd_inherits[k] = iseen[k]; - pd_n_inherits = iused; -} - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Data accessors - */ - -UTL_ScopedName * -FE_InterfaceHeader::interface_name() -{ - return pd_interface_name; -} - -AST_Interface ** -FE_InterfaceHeader::inherits() -{ - return pd_inherits; -} - -long -FE_InterfaceHeader::n_inherits() -{ - return pd_n_inherits; -} diff --git a/TAO/TAO_IDL/fe/fe_private.cpp b/TAO/TAO_IDL/fe/fe_private.cpp deleted file mode 100644 index 90a2ec449f5..00000000000 --- a/TAO/TAO_IDL/fe/fe_private.cpp +++ /dev/null @@ -1,80 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * fe_private.cc - Declare global data which are private to the FE - * part - */ - -#include "idl.h" -#include "idl_extern.h" - -#include "fe_private.h" - -/* - * List of pragmas - */ -UTL_StrList *DRV_global_pragmas = NULL; diff --git a/TAO/TAO_IDL/fe/idl.ll b/TAO/TAO_IDL/fe/idl.ll deleted file mode 100644 index 17f11b8fb21..00000000000 --- a/TAO/TAO_IDL/fe/idl.ll +++ /dev/null @@ -1,528 +0,0 @@ - -%{ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -IDL_INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -IDL_ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -IDL_INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -IDL_ANY OBLIGATION ON THE PART OF Sun OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IDL_IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR IDL_ANY PATENTS BY -IDL_INTERFACE DEFINITION LANGUAGE CFE OR IDL_ANY PART THEREOF. - -IDL_IN NO EVENT WILL SUN OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -IDL_ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * idl.ll - Lexical scanner for IDL 1.1 - */ - -#include "idl.h" -#include "idl_extern.h" -#include "fe_private.h" -#include "y.tab.h" - -static char idl_escape_reader(char *); -static double idl_atof(char *); -static long idl_atoi(char *, long); -static void idl_parse_line_and_file(char *); -static void idl_store_pragma(char *); - -#if 0 /* defined (HPUX) */ -// HPUX has yytext typed to unsigned char *. We make sure here that -// we'll always use char * static char* __yytext = (char*) yytext; -// NOTE: This will not work under flex(1) were yytext is not a fixed -// buffer, but a dynamically allocated one. This function should do -// the trick for us. -inline char *__yytext() -{ - return (char *) yytext; -} -#define ace_yytext __yytext() -#else -#define ace_yytext yytext -#endif /* 0 */ -%} - -%array - -%% - -any return IDL_ANY; -module return IDL_MODULE; -raises return IDL_RAISES; -readonly return IDL_READONLY; -attribute return IDL_ATTRIBUTE; -exception return IDL_EXCEPTION; -context return IDL_CONTEXT; -interface return IDL_INTERFACE; -const return IDL_CONST; -typedef return IDL_TYPEDEF; -struct return IDL_STRUCT; -enum return IDL_ENUM; -string return IDL_STRING; -wstring_t return IDL_WSTRING; -sequence return IDL_SEQUENCE; -union return IDL_UNION; -switch return IDL_SWITCH; -case return IDL_CASE; -default return IDL_DEFAULT; -float return IDL_FLOAT; -double return IDL_DOUBLE; -long return IDL_LONG; -short return IDL_SHORT; -unsigned return IDL_UNSIGNED; -char return IDL_CHAR; -wchar_t return IDL_WCHAR; -boolean return IDL_BOOLEAN; -octet return IDL_OCTET; -void return IDL_VOID; -native return IDL_NATIVE; - -TRUE return IDL_TRUETOK; -FALSE return IDL_FALSETOK; - -inout return IDL_INOUT; -in return IDL_IN; -out return IDL_OUT; -oneway return IDL_ONEWAY; - -\<\< return IDL_LEFT_SHIFT; -\>\> return IDL_RIGHT_SHIFT; -\:\: { - yylval.strval = "::"; - return IDL_SCOPE_DELIMITOR; - } - -[a-zA-Z][a-zA-Z0-9_]* { - char *z = (char *) malloc(strlen(ace_yytext) + 1); - strcpy(z, ace_yytext); - yylval.strval = z; - return IDENTIFIER; -} - --?[0-9]+"."[0-9]*([eE][+-]?[0-9]+)?[lLfF]? { - yylval.dval = idl_atof(ace_yytext); - return IDL_FLOATING_PT_LITERAL; - } --?[0-9]+[eE][+-]?[0-9]+[lLfF]? { - yylval.dval = idl_atof(ace_yytext); - return IDL_FLOATING_PT_LITERAL; - } - --?[1-9][0-9]* { - yylval.ival = idl_atoi(ace_yytext, 10); - return IDL_INTEGER_LITERAL; - } --?0[xX][a-fA-F0-9]+ { - yylval.ival = idl_atoi(ace_yytext, 16); - return IDL_INTEGER_LITERAL; - } --?0[0-7]* { - yylval.ival = idl_atoi(ace_yytext, 8); - return IDL_INTEGER_LITERAL; - } - -"\""[^\"]*"\"" { - /* Skip the quotes */ - char *tmp = ace_yytext; - tmp[strlen(tmp)-1] = '\0'; - yylval.sval = new String(tmp + 1); - return IDL_STRING_LITERAL; - } -"'"."'" { - yylval.cval = ace_yytext [1]; - return IDL_CHARACTER_LITERAL; - } -"'"\\([0-7]{1,3})"'" { - // octal character constant - yylval.cval = idl_escape_reader(ace_yytext + 1); - return IDL_CHARACTER_LITERAL; - } -"'"\\."'" { - yylval.cval = idl_escape_reader(ace_yytext + 1); - return IDL_CHARACTER_LITERAL; - } -^#[ \t]*pragma[ \t].*\n {/* remember pragma */ - idl_global->set_lineno(idl_global->lineno() + 1); - idl_store_pragma(ace_yytext); - } -^#[ \t]*[0-9]*" ""\""[^\"]*"\""" "[0-9]*\n { - idl_parse_line_and_file(ace_yytext); - } -^#[ \t]*[0-9]*" ""\""[^\"]*"\""\n { - idl_parse_line_and_file(ace_yytext); - } -^#line[ \t]*[0-9]*" ""\""[^\"]*"\""\n { - idl_parse_line_and_file(ace_yytext); - } -^#[ \t]*[0-9]*\n { - idl_parse_line_and_file(ace_yytext); - } -^#[ \t]*ident.*\n { - /* ignore cpp ident */ - idl_global->set_lineno(idl_global->lineno() + 1); - } -\/\/.*\n { - /* ignore comments */ - idl_global->set_lineno(idl_global->lineno() + 1); - } -"/*" { - for(;;) { - char c = yyinput(); - if (c == '*') { - char next = yyinput(); - if (next == '/') - break; - else - yyunput(c, NULL); - if (c == '\n') - idl_global->set_lineno(idl_global->lineno() + 1); - } - } - } -[ \t]* ; -\n { - idl_global->set_lineno(idl_global->lineno() + 1); - } -. return ace_yytext [0]; - -%% - /* subroutines */ - -/* - * Strip down a name to the last component, i.e. everything after the last - * '/' character - */ -static char * -stripped_name(UTL_String *fn) -{ - char *n = fn->get_string(); - long l; - - if (n == NULL) - return NULL; - l = strlen(n); - for (n += l; l > 0 && *n != '/'; l--, n--); - if (*n == '/') n++; - return n; -} - -/* - * Parse a #line statement generated by the C preprocessor - */ -static void -idl_parse_line_and_file(char *buf) -{ - char *r = buf; - char *h; - UTL_String *nm; - - /* Skip initial '#' */ - if (*r != '#') - return; - else - r++; - - /* Check to see if we're running under the screwy Microsoft scheme */ - /* of putting #line num instead of #num. */ - - if (ACE_OS::strncmp (r, "line", 4) == 0) - r += 5; - - /* Find line number */ - while (*r == ' ' || *r == '\t') - r++; - h = r; - for (; *r != '\0' && *r != ' ' && *r != '\t'; r++) - continue; - *r++ = 0; - idl_global->set_lineno(idl_atoi(h, 10)); - - /* Find file name, if present */ - for (; *r != '"'; r++) - if (*r == '\n' || *r == '\0') - return; - - h = ++r; - for (; *r != '"'; r++) - continue; - *r = 0; - if (*h == '\0') - idl_global->set_filename(new String("standard input")); - else - { - long i; - long j; - - // Put Microsoft-style pathnames into a canonical form. - for (i = 0, j = 0; h[j] != '\0'; i++, j++) - { - if (h[j] == '\\' && h[j + 1] == '\\') - j++; - - h[i] = h[j]; - } - h[i] = '\0'; - idl_global->set_filename(new String(h)); - } - idl_global->set_in_main_file( - (idl_global->filename()->compare(idl_global->real_filename())) ? - I_TRUE : - I_FALSE - ); - /* - * If it's an import file store the stripped name for the BE to use - */ - if (!(idl_global->in_main_file()) && idl_global->import()) { - nm = new UTL_String(stripped_name(idl_global->filename())); - idl_global->store_include_file_name(nm); - } -} - -/* - * Store a #pragma line into the list of pragmas - */ -static void -idl_store_pragma(char *buf) -{ - char *cp = buf + 1; - while(*cp != 'p') - cp++; - while(*cp != ' ' && *cp != '\t') - cp++; - while(*cp == ' ' || *cp == '\t') - cp++; - char pragma[80]; - char *pp = pragma; - while(*cp != '\n') { - *pp++ = *cp++; - } - *pp = 0; - if (strcmp(pragma, "import") == 0) { - idl_global->set_import(I_TRUE); - return; - } - if (strcmp(pragma, "include") == 0) { - idl_global->set_import(I_FALSE); - return; - } - UTL_StrList *p = idl_global->pragmas(); - if (p == NULL) - idl_global->set_pragmas(new UTL_StrList(new String(buf), NULL)); - else { - p->nconc(new UTL_StrList(new String(buf), NULL)); - idl_global->set_pragmas(p); - } -} - -/* - * idl_atoi - Convert a string of digits into an integer according to base b - */ -static long -idl_atoi(char *s, long b) -{ - long r = 0; - long negative = 0; - - if (*s == '-') { - negative = 1; - s++; - } - if (b == 8 && *s == '0') - s++; - else if (b == 16 && *s == '0' && (*(s + 1) == 'x' || *(s + 1) == 'X')) - s += 2; - - for (; *s; s++) - if (*s <= '9' && *s >= '0') - r = (r * b) + (*s - '0'); - else if (b > 10 && *s <= 'f' && *s >= 'a') - r = (r * b) + (*s - 'a' + 10); - else if (b > 10 && *s <= 'F' && *s >= 'A') - r = (r * b) + (*s - 'A' + 10); - else - break; - - if (negative) - r *= -1; - - return r; -} - -/* - * Convert a string to a float; atof doesn't seem to work, always. - */ -static double -idl_atof(char *s) -{ - char *h = s; - double d = 0.0; - double f = 0.0; - double e, k; - long neg = 0, negexp = 0; - - ACE_UNUSED_ARG (f); - ACE_UNUSED_ARG (h); - - if (*s == '-') { - neg = 1; - s++; - } - while (*s >= '0' && *s <= '9') { - d = (d * 10) + *s - '0'; - s++; - } - if (*s == '.') { - s++; - e = 10; - while (*s >= '0' && *s <= '9') { - d += (*s - '0') / (e * 1.0); - e *= 10; - s++; - } - } - if (*s == 'e' || *s == 'E') { - s++; - if (*s == '-') { - negexp = 1; - s++; - } else if (*s == '+') - s++; - e = 0; - while (*s >= '0' && *s <= '9') { - e = (e * 10) + *s - '0'; - s++; - } - if (e > 0) { - for (k = 1; e > 0; k *= 10, e--); - if (negexp) - d /= k; - else - d *= k; - } - } - - if (neg) d *= -1.0; - - return d; -} - -/* - * Convert (some) escaped characters into their ascii values - */ -static char -idl_escape_reader( - char *str -) -{ - if (str[0] != '\\') { - return str[0]; - } - - switch (str[1]) { - case 'n': - return '\n'; - case 't': - return '\t'; - case 'v': - return '\v'; - case 'b': - return '\b'; - case 'r': - return '\r'; - case 'f': - return '\f'; - case 'a': - return '\a'; - case '\\': - return '\\'; - case '\?': - return '?'; - case '\'': - return '\''; - case '"': - return '"'; - case 'x': - { - int i; - // hex value - for (i = 2; str[i] != '\0' && isxdigit(str[i]); i++) { - continue; - } - char save = str[i]; - str[i] = '\0'; - char out = (char)idl_atoi(&str[2], 16); - str[i] = save; - return out; - } - break; - default: - // check for octal value - if (str[1] >= '0' && str[1] <= '7') { - int i; - for (i = 1; str[i] >= '0' && str[i] <= '7'; i++) { - continue; - } - char save = str[i]; - str[i] = '\0'; - char out = (char)idl_atoi(&str[1], 8); - str[i] = save; - return out; - } else { - return str[1] - 'a'; - } - break; - } -} diff --git a/TAO/TAO_IDL/fe/idl.yy b/TAO/TAO_IDL/fe/idl.yy deleted file mode 100644 index 328672ba4b6..00000000000 --- a/TAO/TAO_IDL/fe/idl.yy +++ /dev/null @@ -1,2288 +0,0 @@ - - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -IDL_INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -IDL_ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -IDL_INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -IDL_ANY OBLIGATION ON THE PART OF Sun OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IDL_IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR IDL_ANY PATENTS BY -IDL_INTERFACE DEFINITION LANGUAGE CFE OR IDL_ANY PART THEREOF. - -IDL_IN NO EVENT WILL SUN OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -IDL_ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * idl.yy - YACC grammar for IDL 1.1 - */ - -/* Declarations */ - -%{ -#include "idl.h" -#include "idl_extern.h" -#include "fe_private.h" -#include - -#if (defined(apollo) || defined(hpux)) && defined(__cplusplus) -extern "C" int yywrap(); -#endif // (defined(apollo) || defined(hpux)) && defined(__cplusplus) - -void yyerror (char *); -int yylex (void); -extern "C" int yywrap (void); -extern char yytext[]; -extern int yyleng; -#define YYDEBUG_LEXER_TEXT (yytext[yyleng] = '\0', yytext) -// Force the pretty debugging code to compile. -#define YYDEBUG 1 -%} - -/* - * Declare the type of values in the grammar - */ - -%union { - AST_Decl *dcval; /* Decl value */ - UTL_StrList *slval; /* String list */ - UTL_NameList *nlval; /* Name list */ - UTL_ExprList *elval; /* Expression list */ - UTL_LabelList *llval; /* Label list */ - UTL_DeclList *dlval; /* Declaration list */ - FE_InterfaceHeader *ihval; /* Interface header */ - AST_Expression *exval; /* Expression value */ - AST_UnionLabel *ulval; /* Union label */ - AST_Field *ffval; /* Field value */ - AST_Expression::ExprType etval; /* Expression type */ - AST_Argument::Direction dival; /* Argument direction */ - AST_Operation::Flags ofval; /* Operation flags */ - FE_Declarator *deval; /* Declarator value */ - idl_bool bval; /* Boolean value */ - long ival; /* Long value */ - double dval; /* Double value */ - float fval; /* Float value */ - char cval; /* Char value */ - - String *sval; /* String value */ - char *strval; /* char * value */ - Identifier *idval; /* Identifier */ - UTL_IdList *idlist; /* Identifier list */ -} - -/* - * Token types: These are returned by the lexer - */ - -%token IDENTIFIER - -%token IDL_CONST -%token IDL_MODULE -%token IDL_INTERFACE -%token IDL_TYPEDEF -%token IDL_LONG -%token IDL_SHORT -%token IDL_UNSIGNED -%token IDL_DOUBLE -%token IDL_FLOAT -%token IDL_CHAR -%token IDL_WCHAR -%token IDL_OCTET -%token IDL_BOOLEAN -%token IDL_ANY -%token IDL_STRUCT -%token IDL_UNION -%token IDL_SWITCH -%token IDL_ENUM -%token IDL_SEQUENCE -%token IDL_STRING -%token IDL_WSTRING -%token IDL_EXCEPTION -%token IDL_CASE -%token IDL_DEFAULT -%token IDL_READONLY -%token IDL_ATTRIBUTE -%token IDL_ONEWAY -%token IDL_IDEMPOTENT -%token IDL_VOID -%token IDL_IN -%token IDL_OUT -%token IDL_INOUT -%token IDL_RAISES -%token IDL_CONTEXT -%token IDL_NATIVE - -%token IDL_INTEGER_LITERAL -%token IDL_STRING_LITERAL -%token IDL_CHARACTER_LITERAL -%token IDL_FLOATING_PT_LITERAL -%token IDL_TRUETOK -%token IDL_FALSETOK - -%token IDL_SCOPE_DELIMITOR -%token IDL_LEFT_SHIFT -%token IDL_RIGHT_SHIFT - -/* - * These are production names: - */ - -%type type_spec simple_type_spec constructed_type_spec -%type template_type_spec sequence_type_spec string_type_spec -%type struct_type enum_type switch_type_spec union_type -%type array_declarator op_type_spec seq_head wstring_type_spec -%type param_type_spec - -%type scoped_name -%type opt_context at_least_one_string_literal -%type string_literals - -%type at_least_one_scoped_name scoped_names inheritance_spec -%type opt_raises - -%type at_least_one_array_dim array_dims - -%type at_least_one_case_label case_labels - -%type at_least_one_declarator declarators -%type at_least_one_simple_declarator simple_declarators - -%type interface_header - -%type expression const_expr or_expr xor_expr and_expr shift_expr -%type add_expr mult_expr unary_expr primary_expr literal -%type positive_int_expr array_dim - -%type case_label - -%type element_spec - -%type const_type integer_type char_type boolean_type -%type floating_pt_type any_type signed_int -%type unsigned_int base_type_spec octet_type - -%type direction - -%type opt_op_attribute - -%type declarator simple_declarator complex_declarator - -%type opt_readonly - -%type interface_decl id - -%type type_dcl -%% - -/* - * Production starts here - */ -start : definitions ; - -definitions - : definition definitions - | /* empty */ - ; - -definition - : type_dcl - { - idl_global->set_parse_state(IDL_GlobalData::PS_TypeDeclSeen); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } - | const_dcl - { - idl_global->set_parse_state(IDL_GlobalData::PS_ConstDeclSeen); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } - | exception - { - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptDeclSeen); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } - | interface_def - { - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceDeclSeen); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } - | module - { - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleDeclSeen); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } - | error - { - idl_global->err()->syntax_error(idl_global->parse_state()); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - yyerrok; - } - ; - -module : IDL_MODULE - { - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleSeen); - } - IDENTIFIER - { - UTL_ScopedName *n = - new UTL_ScopedName(new Identifier($3, 1, 0, I_FALSE), NULL); - AST_Module *m = NULL; - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleIDSeen); - /* - * Make a new module and add it to the enclosing scope - */ - if (s != NULL) { - m = idl_global->gen()->create_module(n, p); - (void) s->fe_add_module(m); - } - /* - * Push it on the stack - */ - idl_global->scopes()->push(m); - } - '{' - { - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleSqSeen); - } - definitions - { - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleBodySeen); - } - '}' - { - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleQsSeen); - /* - * Finished with this module - pop it from the scope stack - */ - idl_global->scopes()->pop(); - } - ; - -interface_def - : interface - | forward - ; - -interface : - interface_header - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Interface *i = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - AST_Decl *d = NULL; - AST_Interface *fd = NULL; - - ACE_UNUSED_ARG (v); - - /* - * Make a new interface node and add it to its enclosing scope - */ - if (s != NULL && $1 != NULL) { - i = idl_global->gen()->create_interface($1->interface_name(), - $1->inherits(), - $1->n_inherits(), - p); - if (i != NULL && - (d = s->lookup_by_name(i->name(), I_FALSE)) != NULL) { - /* - * See if we're defining a forward declared interface. - */ - if (d->node_type() == AST_Decl::NT_interface) { - /* - * Narrow to an interface - */ - fd = AST_Interface::narrow_from_decl(d); - /* - * Successful? - */ - if (fd == NULL) { - /* - * Should we give an error here? - */ - } - /* - * If it is a forward declared interface.. - */ - else if (!fd->is_defined()) { - /* - * Check if redefining in same scope - */ - if (fd->defined_in() != s) { - idl_global->err() - ->error3(UTL_Error::EIDL_SCOPE_CONFLICT, - i, - fd, - ScopeAsDecl(s)); - } - /* - * All OK, do the redefinition - */ - else { - fd->set_inherits($1->inherits()); - fd->set_n_inherits($1->n_inherits()); - /* - * Update place of definition - */ - fd->set_imported(idl_global->imported()); - fd->set_in_main_file(idl_global->in_main_file()); - fd->set_line(idl_global->lineno()); - fd->set_file_name(idl_global->filename()); - fd->add_pragmas(p); - /* - * Use full definition node - */ - delete i; - i = fd; - } - } - } - } - /* - * Add the interface to its definition scope - */ - (void) s->fe_add_interface(i); - } - /* - * Push it on the scope stack - */ - idl_global->scopes()->push(i); - } - '{' - { - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceSqSeen); - } - exports - { - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceBodySeen); - } - '}' - { - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceQsSeen); - /* - * Done with this interface - pop it off the scopes stack - */ - idl_global->scopes()->pop(); - } - ; - -interface_decl: - IDL_INTERFACE - { - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceSeen); - } - id - { - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceIDSeen); - $$ = $3; - } - ; - -interface_header : - interface_decl inheritance_spec - { - idl_global->set_parse_state(IDL_GlobalData::PS_InheritSpecSeen); - /* - * Create an AST representation of the information in the header - * part of an interface - this representation contains a computed - * list of all interfaces which this interface inherits from, - * recursively - */ - $$ = new FE_InterfaceHeader(new UTL_ScopedName($1, NULL), $2); - } - ; - -inheritance_spec - : ':' - { - idl_global->set_parse_state(IDL_GlobalData::PS_InheritColonSeen); - } - at_least_one_scoped_name - { - $$ = $3; - } - | /* EMPTY */ - { - $$ = NULL; - } - ; - -exports - : exports export - | /* EMPTY */ - ; - -export - : type_dcl - { - idl_global->set_parse_state(IDL_GlobalData::PS_TypeDeclSeen); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } - | const_dcl - { - idl_global->set_parse_state(IDL_GlobalData::PS_ConstDeclSeen); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } - | exception - { - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptDeclSeen); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } - | attribute - { - idl_global->set_parse_state(IDL_GlobalData::PS_AttrDeclSeen); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } - | operation - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpDeclSeen); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } - | error - { - idl_global->err()->syntax_error(idl_global->parse_state()); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - yyerrok; - } - ; - -at_least_one_scoped_name : - scoped_name scoped_names - { - $$ = new UTL_NameList($1, $2); - } - ; - -scoped_names - : scoped_names - ',' - { - idl_global->set_parse_state(IDL_GlobalData::PS_SNListCommaSeen); - } - scoped_name - { - idl_global->set_parse_state(IDL_GlobalData::PS_ScopedNameSeen); - - if ($1 == NULL) - $$ = new UTL_NameList($4, NULL); - else { - $1->nconc(new UTL_NameList($4, NULL)); - $$ = $1; - } - } - | /* EMPTY */ - { - $$ = NULL; - } - ; - -scoped_name - : id - { - idl_global->set_parse_state(IDL_GlobalData::PS_SN_IDSeen); - - $$ = new UTL_IdList($1, NULL); - } - | IDL_SCOPE_DELIMITOR - { - idl_global->set_parse_state(IDL_GlobalData::PS_ScopeDelimSeen); - } - id - { - idl_global->set_parse_state(IDL_GlobalData::PS_SN_IDSeen); - - $$ = new UTL_IdList(new Identifier($1, 1, 0, I_FALSE), - new UTL_IdList($3, NULL)); - } - | scoped_name - IDL_SCOPE_DELIMITOR - { - idl_global->set_parse_state(IDL_GlobalData::PS_ScopeDelimSeen); - } - id - { - idl_global->set_parse_state(IDL_GlobalData::PS_SN_IDSeen); - - $1->nconc(new UTL_IdList($4, NULL)); - $$ = $1; - } - ; - -id: IDENTIFIER - { - $$ = new Identifier($1, 1, 0, I_FALSE); - } - ; - -forward : - interface_decl - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName($1, NULL); - AST_InterfaceFwd *f = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_ForwardDeclSeen); - /* - * Create a node representing a forward declaration of an - * interface. Store it in the enclosing scope - */ - if (s != NULL) { - f = idl_global->gen()->create_interface_fwd(n, p); - (void) s->fe_add_interface_fwd(f); - } - } - ; - -const_dcl : - IDL_CONST - { - idl_global->set_parse_state(IDL_GlobalData::PS_ConstSeen); - } - const_type - { - idl_global->set_parse_state(IDL_GlobalData::PS_ConstTypeSeen); - } - id - { - idl_global->set_parse_state(IDL_GlobalData::PS_ConstIDSeen); - } - '=' - { - idl_global->set_parse_state(IDL_GlobalData::PS_ConstAssignSeen); - } - expression - { - UTL_ScopedName *n = new UTL_ScopedName($5, NULL); - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Constant *c = NULL; - UTL_StrList *p = idl_global->pragmas(); - AST_Decl *v = NULL; - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_ConstExprSeen); - /* - * Create a node representing a constant declaration. Store - * it in the enclosing scope - */ - if ($9 != NULL && s != NULL) { - if ($9->coerce($3) == NULL) - idl_global->err()->coercion_error($9, $3); - else { - c = - idl_global->gen()->create_constant($3, $9, n, p); - (void) s->fe_add_constant(c); - } - } - } - ; - -const_type - : integer_type - | char_type - | octet_type - | boolean_type - | floating_pt_type - | string_type_spec - { - $$ = AST_Expression::EV_string; - } - | wstring_type_spec - { - $$ = AST_Expression::EV_wstring; - } - | scoped_name - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Decl *d = NULL; - AST_PredefinedType *c = NULL; - AST_Typedef *t = NULL; - - /* - * If the constant's type is a scoped name, it must resolve - * to a scalar constant type - */ - if (s != NULL && (d = s->lookup_by_name($1, I_TRUE)) != NULL) { - /* - * Look through typedefs - */ - while (d->node_type() == AST_Decl::NT_typedef) { - t = AST_Typedef::narrow_from_decl(d); - if (t == NULL) - break; - d = t->base_type(); - } - if (d == NULL) - $$ = AST_Expression::EV_any; - else if (d->node_type() == AST_Decl::NT_pre_defined) { - c = AST_PredefinedType::narrow_from_decl(d); - if (c != NULL) { - $$ = idl_global->PredefinedTypeToExprType(c->pt()); - } else { - $$ = AST_Expression::EV_any; - } - } else - $$ = AST_Expression::EV_any; - } else - $$ = AST_Expression::EV_any; - } - ; - -expression : const_expr ; - -const_expr : or_expr ; - -or_expr : xor_expr - | or_expr '|' xor_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_or, $1, $3); - } - ; - -xor_expr - : and_expr - | xor_expr '^' and_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_xor, $1, $3); - } - ; - -and_expr - : shift_expr - | and_expr '&' shift_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_and, $1, $3); - } - ; - -shift_expr - : add_expr - | shift_expr IDL_LEFT_SHIFT add_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_right,$1,$3); - } - | shift_expr IDL_RIGHT_SHIFT add_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_left,$1,$3); - } - ; - -add_expr - : mult_expr - | add_expr '+' mult_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_add, $1, $3); - } - | add_expr '-' mult_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_minus,$1,$3); - } - ; - -mult_expr - : unary_expr - | mult_expr '*' unary_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_mul, $1, $3); - } - | mult_expr '/' unary_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_div, $1, $3); - } - | mult_expr '%' unary_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_mod, $1, $3); - } - ; - -unary_expr - : primary_expr - | '+' primary_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_u_plus, - $2, - NULL); - } - | '-' primary_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_u_minus, - $2, - NULL); - } - | '~' primary_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_bit_neg, - $2, - NULL); - } - ; - -primary_expr - : scoped_name - { - /* - * An expression which is a scoped name is not resolved now, - * but only when it is evaluated (such as when it is assigned - * as a constant value) - */ - $$ = idl_global->gen()->create_expr($1); - } - | literal - | '(' const_expr ')' - { - $$ = $2; - } - ; - -literal - : IDL_INTEGER_LITERAL - { - $$ = idl_global->gen()->create_expr($1); - } - | IDL_STRING_LITERAL - { - $$ = idl_global->gen()->create_expr($1); - } - | IDL_CHARACTER_LITERAL - { - $$ = idl_global->gen()->create_expr($1); - } - | IDL_FLOATING_PT_LITERAL - { - $$ = idl_global->gen()->create_expr($1); - } - | IDL_TRUETOK - { - $$ = idl_global->gen()->create_expr((idl_bool) I_TRUE, - AST_Expression::EV_bool); - } - | IDL_FALSETOK - { - $$ = idl_global->gen()->create_expr((idl_bool) I_FALSE, - AST_Expression::EV_bool); - } - ; - -positive_int_expr : - const_expr - { - $1->evaluate(AST_Expression::EK_const); - $$ = idl_global->gen()->create_expr($1, AST_Expression::EV_ulong); - } - ; - -type_dcl - : IDL_TYPEDEF - { - idl_global->set_parse_state(IDL_GlobalData::PS_TypedefSeen); - } - type_declarator {$$ = 0;} - | struct_type { $$ = 0;} - | union_type { $$ = 0;} - | enum_type { $$ = 0;} - | IDL_NATIVE simple_declarator - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Native *node = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_NativeSeen); - /* - * Create a node representing a Native and add it to its - * enclosing scope - */ - if (s != NULL) { - node = idl_global->gen()->create_native ($2->name (), p); - /* - * Add it to its defining scope - */ - (void) s->fe_add_native (node); - } - } - ; - -type_declarator : - type_spec - { - idl_global->set_parse_state(IDL_GlobalData::PS_TypeSpecSeen); - } - at_least_one_declarator - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_DecllistActiveIterator *l; - FE_Declarator *d = NULL; - AST_Typedef *t = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_DeclaratorsSeen); - /* - * Create a list of type renamings. Add them to the - * enclosing scope - */ - if (s != NULL && $1 != NULL && $3 != NULL) { - l = new UTL_DecllistActiveIterator($3); - for (;!(l->is_done()); l->next()) { - d = l->item(); - if (d == NULL) - continue; - AST_Type * tp = d->compose($1); - if (tp == NULL) - continue; - t = idl_global->gen()->create_typedef(tp, d->name(), p); - (void) s->fe_add_typedef(t); - } - delete l; - } - } - ; - -type_spec - : simple_type_spec - | constructed_type_spec - ; - -simple_type_spec - : base_type_spec - { - $$ = idl_global->scopes()->bottom()->lookup_primitive_type($1); - } - | template_type_spec - | scoped_name - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Decl *d = NULL; - - if (s != NULL) - d = s->lookup_by_name($1, I_TRUE); - if (d == NULL) - idl_global->err()->lookup_error($1); - $$ = d; - } - ; - -base_type_spec - : integer_type - | floating_pt_type - | char_type - | boolean_type - | octet_type - | any_type - ; - -template_type_spec - : sequence_type_spec - | string_type_spec - | wstring_type_spec - ; - -constructed_type_spec - : struct_type - | union_type - | enum_type - ; - -at_least_one_declarator : - declarator declarators - { - $$ = new UTL_DeclList($1, $2); - } - ; - -declarators - : declarators - ',' - { - idl_global->set_parse_state(IDL_GlobalData::PS_DeclsCommaSeen); - } - declarator - { - idl_global->set_parse_state(IDL_GlobalData::PS_DeclsDeclSeen); - - if ($1 == NULL) - $$ = new UTL_DeclList($4, NULL); - else { - $1->nconc(new UTL_DeclList($4, NULL)); - $$ = $1; - } - } - | /* EMPTY */ - { - $$ = NULL; - } - ; - -declarator - : simple_declarator - | complex_declarator - ; - -at_least_one_simple_declarator : - simple_declarator simple_declarators - { - $$ = new UTL_DeclList($1, $2); - } - ; - -simple_declarators - : simple_declarators - ',' - { - idl_global->set_parse_state(IDL_GlobalData::PS_DeclsCommaSeen); - } - simple_declarator - { - idl_global->set_parse_state(IDL_GlobalData::PS_DeclsDeclSeen); - - if ($1 == NULL) - $$ = new UTL_DeclList($4, NULL); - else { - $1->nconc(new UTL_DeclList($4, NULL)); - $$ = $1; - } - } - | /* EMPTY */ - { - $$ = NULL; - } - ; - -simple_declarator : - id - { - $$ = new FE_Declarator(new UTL_ScopedName($1, NULL), - FE_Declarator::FD_simple, NULL); - } - ; - -complex_declarator : - array_declarator - { - $$ = new FE_Declarator(new UTL_ScopedName($1->local_name(), NULL), - FE_Declarator::FD_complex, - $1); - } - ; - -integer_type - : signed_int - | unsigned_int - ; - -signed_int - : IDL_LONG - { - $$ = AST_Expression::EV_long; - } - | IDL_LONG IDL_LONG - { - $$ = AST_Expression::EV_longlong; - } - | IDL_SHORT - { - $$ = AST_Expression::EV_short; - } - ; - -unsigned_int - : IDL_UNSIGNED IDL_LONG - { - $$ = AST_Expression::EV_ulong; - } - | IDL_UNSIGNED IDL_LONG IDL_LONG - { - $$ = AST_Expression::EV_ulonglong; - } - | IDL_UNSIGNED IDL_SHORT - { - $$ = AST_Expression::EV_ushort; - } - ; - -floating_pt_type - : IDL_DOUBLE - { - $$ = AST_Expression::EV_double; - } - | IDL_FLOAT - { - $$ = AST_Expression::EV_float; - } - | IDL_LONG IDL_DOUBLE - { - $$ = AST_Expression::EV_longdouble; - } - ; - -char_type - : IDL_CHAR - { - $$ = AST_Expression::EV_char; - } - | IDL_WCHAR - { - $$ = AST_Expression::EV_wchar; - } - ; - -octet_type - : IDL_OCTET - { - $$ = AST_Expression::EV_octet; - } - ; - -boolean_type - : IDL_BOOLEAN - { - $$ = AST_Expression::EV_bool; - } - ; - -any_type - : IDL_ANY - { - $$ = AST_Expression::EV_any; - } - ; - -struct_type : - IDL_STRUCT - { - idl_global->set_parse_state(IDL_GlobalData::PS_StructSeen); - } - id - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName($3, NULL); - AST_Structure *d = NULL; - UTL_StrList *p = idl_global->pragmas(); - AST_Decl *v = NULL; - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_StructIDSeen); - /* - * Create a node representing a struct declaration. Add it - * to the enclosing scope - */ - if (s != NULL) { - d = idl_global->gen()->create_structure(n, p); - (void) s->fe_add_structure(d); - } - /* - * Push the scope of the struct on the scopes stack - */ - idl_global->scopes()->push(d); - } - '{' - { - idl_global->set_parse_state(IDL_GlobalData::PS_StructSqSeen); - } - at_least_one_member - { - idl_global->set_parse_state(IDL_GlobalData::PS_StructBodySeen); - } - '}' - { - idl_global->set_parse_state(IDL_GlobalData::PS_StructQsSeen); - /* - * Done with this struct. Pop its scope off the scopes stack - */ - if (idl_global->scopes()->top() == NULL) - $$ = NULL; - else { - $$ = - AST_Structure::narrow_from_scope( - idl_global->scopes()->top_non_null()); - idl_global->scopes()->pop(); - } - } - ; - -at_least_one_member : member members ; - -members - : members member - | /* EMPTY */ - ; - -member : - type_spec - { - idl_global->set_parse_state(IDL_GlobalData::PS_MemberTypeSeen); - } - at_least_one_declarator - { - idl_global->set_parse_state(IDL_GlobalData::PS_MemberDeclsSeen); - } - ';' - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_DecllistActiveIterator *l = NULL; - FE_Declarator *d = NULL; - AST_Field *f = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_MemberDeclsCompleted); - /* - * Check for illegal recursive use of type - */ - if ($1 != NULL && AST_illegal_recursive_type($1)) - idl_global->err()->error1(UTL_Error::EIDL_RECURSIVE_TYPE, $1); - /* - * Create a node representing a struct or exception member - * Add it to the enclosing scope - */ - else if (s != NULL && $1 != NULL && $3 != NULL) { - l = new UTL_DecllistActiveIterator($3); - for (;!(l->is_done()); l->next()) { - d = l->item(); - if (d == NULL) - continue; - AST_Type *tp = d->compose($1); - if (tp == NULL) - continue; - f = idl_global->gen()->create_field(tp, d->name(), p); - (void) s->fe_add_field(f); - } - delete l; - } - } - | error - { - idl_global->err()->syntax_error(idl_global->parse_state()); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - yyerrok; - } - ; - -union_type : - IDL_UNION - { - idl_global->set_parse_state(IDL_GlobalData::PS_UnionSeen); - } - id - { - idl_global->set_parse_state(IDL_GlobalData::PS_UnionIDSeen); - } - IDL_SWITCH - { - idl_global->set_parse_state(IDL_GlobalData::PS_SwitchSeen); - } - '(' - { - idl_global->set_parse_state(IDL_GlobalData::PS_SwitchOpenParSeen); - } - switch_type_spec - { - idl_global->set_parse_state(IDL_GlobalData::PS_SwitchTypeSeen); - } - ')' - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName($3, NULL); - AST_Union *u = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_SwitchCloseParSeen); - /* - * Create a node representing a union. Add it to its enclosing - * scope - */ - if ($9 != NULL && s != NULL) { - AST_ConcreteType *tp = AST_ConcreteType::narrow_from_decl($9); - if (tp == NULL) { - idl_global->err()->not_a_type($9); - } else { - u = idl_global->gen()->create_union(tp, n, p); - (void) s->fe_add_union(u); - } - } - /* - * Push the scope of the union on the scopes stack - */ - idl_global->scopes()->push(u); - } - '{' - { - idl_global->set_parse_state(IDL_GlobalData::PS_UnionSqSeen); - } - at_least_one_case_branch - { - idl_global->set_parse_state(IDL_GlobalData::PS_UnionBodySeen); - } - '}' - { - idl_global->set_parse_state(IDL_GlobalData::PS_UnionQsSeen); - /* - * Done with this union. Pop its scope from the scopes stack - */ - if (idl_global->scopes()->top() == NULL) - $$ = NULL; - else { - $$ = - AST_Union::narrow_from_scope( - idl_global->scopes()->top_non_null()); - idl_global->scopes()->pop(); - } - } - ; - -switch_type_spec : - integer_type - { - $$ = idl_global->scopes()->bottom()->lookup_primitive_type($1); - } - | char_type - { - $$ = idl_global->scopes()->bottom()->lookup_primitive_type($1); - } - | octet_type - { - $$ = idl_global->scopes()->bottom()->lookup_primitive_type($1); - } - | boolean_type - { - $$ = idl_global->scopes()->bottom()->lookup_primitive_type($1); - } - | enum_type - | scoped_name - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Decl *d = NULL; - AST_PredefinedType *p = NULL; - AST_Typedef *t = NULL; - long found = I_FALSE; - - /* - * The discriminator is a scoped name. Try to resolve to - * one of the scalar types or to an enum. Thread through - * typedef's to arrive at the base type at the end of the - * chain - */ - if (s != NULL && (d = s->lookup_by_name($1, I_TRUE)) != NULL) { - while (!found) { - switch (d->node_type()) { - case AST_Decl::NT_enum: - $$ = d; - found = I_TRUE; - break; - case AST_Decl::NT_pre_defined: - p = AST_PredefinedType::narrow_from_decl(d); - if (p != NULL) { - switch (p->pt()) { - case AST_PredefinedType::PT_long: - case AST_PredefinedType::PT_ulong: - case AST_PredefinedType::PT_longlong: - case AST_PredefinedType::PT_ulonglong: - case AST_PredefinedType::PT_short: - case AST_PredefinedType::PT_char: - case AST_PredefinedType::PT_wchar: - case AST_PredefinedType::PT_octet: - case AST_PredefinedType::PT_boolean: - $$ = p; - found = I_TRUE; - break; - default: - $$ = NULL; - found = I_TRUE; - break; - } - } - break; - case AST_Decl::NT_typedef: - t = AST_Typedef::narrow_from_decl(d); - if (t != NULL) d = t->base_type(); - break; - default: - $$ = NULL; - found = I_TRUE; - break; - } - } - } else - $$ = NULL; - - if ($$ == NULL) - idl_global->err()->lookup_error($1); - } - ; - -at_least_one_case_branch : case_branch case_branches ; - -case_branches - : case_branches case_branch - | /* empty */ - ; - -case_branch : - at_least_one_case_label - { - idl_global->set_parse_state(IDL_GlobalData::PS_UnionLabelSeen); - } - element_spec - { - idl_global->set_parse_state(IDL_GlobalData::PS_UnionElemSeen); - } - ';' - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_LabellistActiveIterator *l = NULL; - AST_UnionLabel *d = NULL; - AST_UnionBranch *b = NULL; - AST_Field *f = $3; - - idl_global->set_parse_state(IDL_GlobalData::PS_UnionElemCompleted); - /* - * Create several nodes representing branches of a union. - * Add them to the enclosing scope (the union scope) - */ - if (s != NULL && $1 != NULL && $3 != NULL) { - l = new UTL_LabellistActiveIterator($1); - for (;!(l->is_done()); l->next()) { - d = l->item(); - if (d == NULL) - continue; - b = idl_global->gen()->create_union_branch(d, - f->field_type(), - f->name(), - f->pragmas()); - (void) s->fe_add_union_branch(b); - } - delete l; - } - } - | error - { - idl_global->err()->syntax_error(idl_global->parse_state()); - } - ';' - - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - yyerrok; - } - ; - -at_least_one_case_label : - case_label case_labels - { - $$ = new UTL_LabelList($1, $2); - } - ; - -case_labels - : case_labels case_label - { - if ($1 == NULL) - $$ = new UTL_LabelList($2, NULL); - else { - $1->nconc(new UTL_LabelList($2, NULL)); - $$ = $1; - } - } - | /* EMPTY */ - { - $$ = NULL; - } - ; - -case_label - : IDL_DEFAULT - { - idl_global->set_parse_state(IDL_GlobalData::PS_DefaultSeen); - } - ':' - { - idl_global->set_parse_state(IDL_GlobalData::PS_LabelColonSeen); - - $$ = idl_global->gen()-> - create_union_label(AST_UnionLabel::UL_default, - NULL); - } - | IDL_CASE - { - idl_global->set_parse_state(IDL_GlobalData::PS_CaseSeen); - } - const_expr - { - idl_global->set_parse_state(IDL_GlobalData::PS_LabelExprSeen); - } - ':' - { - idl_global->set_parse_state(IDL_GlobalData::PS_LabelColonSeen); - - $$ = idl_global->gen()->create_union_label(AST_UnionLabel::UL_label, - $3); - } - ; - -element_spec : - type_spec - { - idl_global->set_parse_state(IDL_GlobalData::PS_UnionElemTypeSeen); - } - declarator - { - idl_global->set_parse_state(IDL_GlobalData::PS_UnionElemDeclSeen); - /* - * Check for illegal recursive use of type - */ - if ($1 != NULL && AST_illegal_recursive_type($1)) - idl_global->err()->error1(UTL_Error::EIDL_RECURSIVE_TYPE, $1); - /* - * Create a field in a union branch - */ - else if ($1 == NULL || $3 == NULL) - $$ = NULL; - else { - AST_Type *tp = $3->compose($1); - if (tp == NULL) - $$ = NULL; - else - $$ = idl_global->gen()->create_field(tp, - $3->name(), - idl_global->pragmas()); - } - } - ; - -enum_type : - IDL_ENUM - { - idl_global->set_parse_state(IDL_GlobalData::PS_EnumSeen); - } - id - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName($3, NULL); - AST_Enum *e = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_EnumIDSeen); - /* - * Create a node representing an enum and add it to its - * enclosing scope - */ - if (s != NULL) { - e = idl_global->gen()->create_enum(n, p); - /* - * Add it to its defining scope - */ - (void) s->fe_add_enum(e); - } - /* - * Push the enum scope on the scopes stack - */ - idl_global->scopes()->push(e); - } - '{' - { - idl_global->set_parse_state(IDL_GlobalData::PS_EnumSqSeen); - } - at_least_one_enumerator - { - idl_global->set_parse_state(IDL_GlobalData::PS_EnumBodySeen); - } - '}' - { - idl_global->set_parse_state(IDL_GlobalData::PS_EnumQsSeen); - /* - * Done with this enum. Pop its scope from the scopes stack - */ - if (idl_global->scopes()->top() == NULL) - $$ = NULL; - else { - $$ = AST_Enum::narrow_from_scope(idl_global->scopes()->top_non_null()); - idl_global->scopes()->pop(); - } - } - ; - -at_least_one_enumerator : enumerator enumerators ; - -enumerators - : enumerators - ',' - { - idl_global->set_parse_state(IDL_GlobalData::PS_EnumCommaSeen); - } - enumerator - | /* EMPTY */ - ; - -enumerator : - IDENTIFIER - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = - new UTL_ScopedName(new Identifier($1, 1, 0, I_FALSE), NULL); - AST_EnumVal *e = NULL; - AST_Enum *c = NULL; - UTL_StrList *p = idl_global->pragmas(); - - /* - * Create a node representing one enumerator in an enum - * Add it to the enclosing scope (the enum scope) - */ - if (s != NULL && s->scope_node_type() == AST_Decl::NT_enum) { - c = AST_Enum::narrow_from_scope(s); - if (c != NULL) - e = idl_global->gen()->create_enum_val(c->next_enum_val(), n, p); - (void) s->fe_add_enum_val(e); - } - } - ; - -sequence_type_spec - : seq_head - ',' - { - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceCommaSeen); - } - positive_int_expr - { - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceExprSeen); - } - '>' - { - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceQsSeen); - /* - * Remove sequence marker from scopes stack - */ - if (idl_global->scopes()->top() == NULL) - idl_global->scopes()->pop(); - /* - * Create a node representing a sequence - */ - if ($4 == NULL || $4->coerce(AST_Expression::EV_ulong) == NULL) { - idl_global->err()->coercion_error($4, AST_Expression::EV_ulong); - $$ = NULL; - } else if ($1 == NULL) { - $$ = NULL; - } else { - AST_Type *tp = AST_Type::narrow_from_decl($1); - if (tp == NULL) - $$ = NULL; - else { - $$ = idl_global->gen()->create_sequence($4, tp); - /* - * Add this AST_Sequence to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_sequence(AST_Sequence::narrow_from_decl($$)); - } - } - } - | seq_head - '>' - { - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceQsSeen); - /* - * Remove sequence marker from scopes stack - */ - if (idl_global->scopes()->top() == NULL) - idl_global->scopes()->pop(); - /* - * Create a node representing a sequence - */ - if ($1 == NULL) - $$ = NULL; - else { - AST_Type *tp = AST_Type::narrow_from_decl($1); - if (tp == NULL) - $$ = NULL; - else { - $$ = - idl_global->gen()->create_sequence( - idl_global->gen()->create_expr((unsigned long) 0), - tp); - /* - * Add this AST_Sequence to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_sequence(AST_Sequence::narrow_from_decl($$)); - } - } - } - ; - -seq_head: - IDL_SEQUENCE - { - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceSeen); - /* - * Push a sequence marker on scopes stack - */ - idl_global->scopes()->push(NULL); - } - '<' - { - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceSqSeen); - } - simple_type_spec - { - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceTypeSeen); - $$ = $5; - } - ; - -string_type_spec - : string_head - '<' - { - idl_global->set_parse_state(IDL_GlobalData::PS_StringSqSeen); - } - positive_int_expr - { - idl_global->set_parse_state(IDL_GlobalData::PS_StringExprSeen); - } - '>' - { - idl_global->set_parse_state(IDL_GlobalData::PS_StringQsSeen); - /* - * Create a node representing a string - */ - if ($4 == NULL || $4->coerce(AST_Expression::EV_ulong) == NULL) { - idl_global->err()->coercion_error($4, AST_Expression::EV_ulong); - $$ = NULL; - } else { - $$ = idl_global->gen()->create_string($4); - /* - * Add this AST_String to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_string(AST_String::narrow_from_decl($$)); - } - } - | string_head - { - idl_global->set_parse_state(IDL_GlobalData::PS_StringCompleted); - /* - * Create a node representing a string - */ - $$ = - idl_global->gen()->create_string( - idl_global->gen()->create_expr((unsigned long) 0)); - /* - * Add this AST_String to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_string(AST_String::narrow_from_decl($$)); - } - ; - -string_head: - IDL_STRING - { - idl_global->set_parse_state(IDL_GlobalData::PS_StringSeen); - } - ; - -wstring_type_spec - : wstring_head - '<' - { - idl_global->set_parse_state(IDL_GlobalData::PS_StringSqSeen); - } - positive_int_expr - { - idl_global->set_parse_state(IDL_GlobalData::PS_StringExprSeen); - } - '>' - { - idl_global->set_parse_state(IDL_GlobalData::PS_StringQsSeen); - /* - * Create a node representing a string - */ - if ($4 == NULL || $4->coerce(AST_Expression::EV_ulong) == NULL) { - idl_global->err()->coercion_error($4, AST_Expression::EV_ulong); - $$ = NULL; - } else { - $$ = idl_global->gen()->create_wstring($4); - /* - * Add this AST_String to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_string(AST_String::narrow_from_decl($$)); - } - } - | wstring_head - { - idl_global->set_parse_state(IDL_GlobalData::PS_StringCompleted); - /* - * Create a node representing a string - */ - $$ = - idl_global->gen()->create_wstring( - idl_global->gen()->create_expr((unsigned long) 0)); - /* - * Add this AST_String to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_string(AST_String::narrow_from_decl($$)); - } - ; - -wstring_head: - IDL_WSTRING - { - idl_global->set_parse_state(IDL_GlobalData::PS_StringSeen); - } - ; - -array_declarator : - id - { - idl_global->set_parse_state(IDL_GlobalData::PS_ArrayIDSeen); - } - at_least_one_array_dim - { - idl_global->set_parse_state(IDL_GlobalData::PS_ArrayCompleted); - /* - * Create a node representing an array - */ - if ($3 != NULL) { - $$ = idl_global->gen()->create_array(new UTL_ScopedName($1, NULL), - $3->length(), $3); - } - } - ; - -at_least_one_array_dim : - array_dim array_dims - { - $$ = new UTL_ExprList($1, $2); - } - ; - -array_dims - : array_dims array_dim - { - if ($1 == NULL) - $$ = new UTL_ExprList($2, NULL); - else { - $1->nconc(new UTL_ExprList($2, NULL)); - $$ = $1; - } - } - | /* EMPTY */ - { - $$ = NULL; - } - ; - -array_dim : - '[' - { - idl_global->set_parse_state(IDL_GlobalData::PS_DimSqSeen); - } - positive_int_expr - { - idl_global->set_parse_state(IDL_GlobalData::PS_DimExprSeen); - } - ']' - { - idl_global->set_parse_state(IDL_GlobalData::PS_DimQsSeen); - /* - * Array dimensions are expressions which must be coerced to - * positive integers - */ - if ($3 == NULL || $3->coerce(AST_Expression::EV_ulong) == NULL) { - idl_global->err()->coercion_error($3, AST_Expression::EV_ulong); - $$ = NULL; - } else - $$ = $3; - } - ; - -attribute: - opt_readonly - IDL_ATTRIBUTE - { - idl_global->set_parse_state(IDL_GlobalData::PS_AttrSeen); - } - param_type_spec - { - idl_global->set_parse_state(IDL_GlobalData::PS_AttrTypeSeen); - } - at_least_one_simple_declarator - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_DecllistActiveIterator *l = NULL; - AST_Attribute *a = NULL; - FE_Declarator *d = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_AttrCompleted); - /* - * Create nodes representing attributes and add them to the - * enclosing scope - */ - if (s != NULL && $4 != NULL && $6 != NULL) { - l = new UTL_DecllistActiveIterator($6); - for (;!(l->is_done()); l->next()) { - d = l->item(); - if (d == NULL) - continue; - AST_Type *tp = d->compose($4); - if (tp == NULL) - continue; - a = idl_global->gen()->create_attribute($1, tp, d->name(), p); - /* - * Add one attribute to the enclosing scope - */ - (void) s->fe_add_attribute(a); - } - delete l; - } - } - ; - -opt_readonly - : IDL_READONLY - { - idl_global->set_parse_state(IDL_GlobalData::PS_AttrROSeen); - $$ = I_TRUE; - } - | /* EMPTY */ - { - $$ = I_FALSE; - } - ; - -exception : - IDL_EXCEPTION - { - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptSeen); - } - id - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName($3, NULL); - AST_Exception *e = NULL; - UTL_StrList *p = idl_global->pragmas(); - AST_Decl *v = NULL; - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptIDSeen); - /* - * Create a node representing an exception and add it to - * the enclosing scope - */ - if (s != NULL) { - e = idl_global->gen()->create_exception(n, p); - (void) s->fe_add_exception(e); - } - /* - * Push the exception scope on the scope stack - */ - idl_global->scopes()->push(e); - } - '{' - { - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptSqSeen); - } - members - { - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptBodySeen); - } - '}' - { - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptQsSeen); - /* - * Done with this exception. Pop its scope from the scope stack - */ - idl_global->scopes()->pop(); - } - ; - -operation : - opt_op_attribute - op_type_spec - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpTypeSeen); - } - IDENTIFIER - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = - new UTL_ScopedName(new Identifier($4, 1, 0, I_FALSE), NULL); - AST_Operation *o = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_OpIDSeen); - /* - * Create a node representing an operation on an interface - * and add it to its enclosing scope - */ - if (s != NULL && $2 != NULL) { - AST_Type *tp = AST_Type::narrow_from_decl($2); - if (tp == NULL) { - idl_global->err()->not_a_type($2); - } else if (tp->node_type() == AST_Decl::NT_except) { - idl_global->err()->not_a_type($2); - } else { - o = idl_global->gen()->create_operation(tp, $1, n, p); - (void) s->fe_add_operation(o); - } - } - /* - * Push the operation scope onto the scopes stack - */ - idl_global->scopes()->push(o); - } - parameter_list - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpParsCompleted); - } - opt_raises - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpRaiseCompleted); - } - opt_context - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Operation *o = NULL; - - idl_global->set_parse_state(IDL_GlobalData::PS_OpCompleted); - /* - * Add exceptions and context to the operation - */ - if (s != NULL && s->scope_node_type() == AST_Decl::NT_op) { - o = AST_Operation::narrow_from_scope(s); - - if ($8 != NULL && o != NULL) - (void) o->fe_add_exceptions($8); - if ($10 != NULL) - (void) o->fe_add_context($10); - } - /* - * Done with this operation. Pop its scope from the scopes stack - */ - idl_global->scopes()->pop(); - } - ; - -opt_op_attribute - : IDL_ONEWAY - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpAttrSeen); - $$ = AST_Operation::OP_oneway; - } - | IDL_IDEMPOTENT - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpAttrSeen); - $$ = AST_Operation::OP_idempotent; - } - | /* EMPTY */ - { - $$ = AST_Operation::OP_noflags; - } - ; - -op_type_spec - : param_type_spec - | IDL_VOID - { - $$ = - idl_global->scopes()->bottom() - ->lookup_primitive_type(AST_Expression::EV_void); - } - ; - -parameter_list - : '(' - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpSqSeen); - } - ')' - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpQsSeen); - } - | '(' - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpSqSeen); - } - at_least_one_parameter - ')' - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpQsSeen); - } - ; - -at_least_one_parameter : parameter parameters ; - -parameters - : parameters - ',' - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpParCommaSeen); - } - parameter - | /* EMPTY */ - ; - -parameter : - direction - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpParDirSeen); - } - param_type_spec - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpParTypeSeen); - } - declarator - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Argument *a = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_OpParDeclSeen); - /* - * Create a node representing an argument to an operation - * Add it to the enclosing scope (the operation scope) - */ - if ($3 != NULL && $5 != NULL && s != NULL) { - AST_Type *tp = $5->compose($3); - if (tp != NULL) { - a = idl_global->gen()->create_argument($1, tp, $5->name(), p); - (void) s->fe_add_argument(a); - } - } - } - ; - -param_type_spec - : base_type_spec - { - $$ = idl_global->scopes()->bottom()->lookup_primitive_type($1); - } - | string_type_spec - | scoped_name - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Decl *d = NULL; - - if (s != NULL) - d = s->lookup_by_name($1, I_TRUE); - if (d == NULL) - idl_global->err()->lookup_error($1); - $$ = d; - } - ; - -direction - : IDL_IN - { - $$ = AST_Argument::dir_IN; - } - | IDL_OUT - { - $$ = AST_Argument::dir_OUT; - } - | IDL_INOUT - { - $$ = AST_Argument::dir_INOUT; - } - ; - -opt_raises - : IDL_RAISES - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpRaiseSeen); - } - '(' - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpRaiseSqSeen); - } - at_least_one_scoped_name - ')' - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpRaiseQsSeen); - $$ = $5; - } - | /* EMPTY */ - { - $$ = NULL; - } - ; - -opt_context - : IDL_CONTEXT - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpContextSeen); - } - '(' - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpContextSqSeen); - } - at_least_one_string_literal - ')' - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpContextQsSeen); - $$ = $5; - } - | /* EMPTY */ - { - $$ = NULL; - } - ; - -at_least_one_string_literal : - IDL_STRING_LITERAL string_literals - { - $$ = new UTL_StrList($1, $2); - } - ; - -string_literals - : string_literals - ',' - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpContextCommaSeen); - } - IDL_STRING_LITERAL - { - if ($1 == NULL) - $$ = new UTL_StrList($4, NULL); - else { - $1->nconc(new UTL_StrList($4, NULL)); - $$ = $1; - } - } - | /* EMPTY */ - { - $$ = NULL; - } - ; - -%% -/* programs */ - -/* - * ??? - */ -int -yywrap() -{ - return 1; -} - -/* - * Report an error situation discovered in a production - * - * This does not do anything since we report all error situations through - * idl_global->err() operations - */ -void -yyerror(char *) -{ -} diff --git a/TAO/TAO_IDL/fe/lex.yy.cpp b/TAO/TAO_IDL/fe/lex.yy.cpp deleted file mode 100644 index 55ca14680cc..00000000000 --- a/TAO/TAO_IDL/fe/lex.yy.cpp +++ /dev/null @@ -1,2197 +0,0 @@ -// $Id$ -/* A lexical scanner generated by flex */ - -/* Scanner skeleton version: - * $Header: /home/daffy/u0/vern/flex/flex-2.4.7/RCS/flex.skl,v 1.2 94/08/03 11:13:24 vern Exp $ - */ - -#define FLEX_SCANNER - -#include "ace/OS.h" - - -/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ -#ifdef c_plusplus -#ifndef __cplusplus -#define __cplusplus -#endif -#endif - - -#ifdef __cplusplus - - -/* Use prototypes in function declarations. */ -#define TAO_YY_USE_PROTOS - -/* The "const" storage-class-modifier is valid. */ -#define TAO_YY_USE_CONST - -#else /* ! __cplusplus */ - -#ifdef __STDC__ - -#define TAO_YY_USE_PROTOS -#define TAO_YY_USE_CONST - -#endif /* __STDC__ */ -#endif /* ! __cplusplus */ - - -#ifdef __TURBOC__ -#define TAO_YY_USE_CONST -#endif - - -#ifndef TAO_YY_USE_CONST -#ifndef const -#define const -#endif -#endif - - -#ifdef TAO_YY_USE_PROTOS -#define TAO_YY_PROTO(proto) proto -#else -#define TAO_YY_PROTO(proto) () -#endif - -/* Returned upon end-of-file. */ -#define TAO_YY_NULL 0 - -/* Promotes a possibly negative, possibly signed char to an unsigned - * integer for use as an array index. If the signed char is negative, - * we want to instead treat it as an 8-bit unsigned char, hence the - * double cast. - */ -#define TAO_YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) - -/* Enter a start condition. This macro really ought to take a parameter, - * but we do it the disgusting crufty way forced on us by the ()-less - * definition of BEGIN. - */ -#define BEGIN tao_yy_start = 1 + 2 * - -/* Translate the current start state into a value that can be later handed - * to BEGIN to return to the state. - */ -#define TAO_YY_START ((tao_yy_start - 1) / 2) - -/* Action number for EOF rule of a given start state. */ -#define TAO_YY_STATE_EOF(state) (TAO_YY_END_OF_BUFFER + state + 1) - -/* Special action meaning "start processing a new file". Now included - * only for backward compatibility with previous versions of flex. - */ -#define TAO_YY_NEW_FILE tao_yyrestart( tao_yyin ) - -#define TAO_YY_END_OF_BUFFER_CHAR 0 - -/* Size of default input buffer. */ -#define TAO_YY_BUF_SIZE 16384 - -typedef struct tao_yy_buffer_state *TAO_YY_BUFFER_STATE; - -extern int tao_yyleng; -extern FILE *tao_yyin, *tao_yyout; - -#ifdef __cplusplus -extern "C" { -#endif - extern int tao_yywrap TAO_YY_PROTO(( void )); -#ifdef __cplusplus - } -#endif - -#define EOB_ACT_CONTINUE_SCAN 0 -#define EOB_ACT_END_OF_FILE 1 -#define EOB_ACT_LAST_MATCH 2 - -/* The funky do-while in the following #define is used to turn the definition - * int a single C statement (which needs a semi-colon terminator). This - * avoids problems with code like: - * - * if ( condition_holds ) - * tao_yyless( 5 ); - * else - * do_something_else(); - * - * Prior to using the do-while the compiler would get upset at the - * "else" because it interpreted the "if" statement as being all - * done when it reached the ';' after the tao_yyless() call. - */ - -/* Return all but the first 'n' matched characters back to the input stream. */ - -#define tao_yyless(n) \ - do \ - { \ - /* Undo effects of setting up tao_yytext. */ \ - *tao_yy_cp = tao_yy_hold_char; \ - tao_yy_c_buf_p = tao_yy_cp = tao_yy_bp + n - TAO_YY_MORE_ADJ; \ - TAO_YY_DO_BEFORE_ACTION; /* set up tao_yytext again */ \ - } \ - while ( 0 ) - -#define unput(c) tao_yyunput( c, tao_yytext_ptr ) - - -struct tao_yy_buffer_state - { - FILE *tao_yy_input_file; - - char *tao_yy_ch_buf; /* input buffer */ - char *tao_yy_buf_pos; /* current position in input buffer */ - - /* Size of input buffer in bytes, not including room for EOB - * characters. - */ - int tao_yy_buf_size; - - /* Number of characters read into tao_yy_ch_buf, not including EOB - * characters. - */ - int tao_yy_n_chars; - - /* Whether this is an "interactive" input source; if so, and - * if we're using stdio for input, then we want to use getc() - * instead of fread(), to make sure we stop fetching input after - * each newline. - */ - int tao_yy_is_interactive; - - /* Whether to try to fill the input buffer when we reach the - * end of it. - */ - int tao_yy_fill_buffer; - - int tao_yy_buffer_status; -#define TAO_YY_BUFFER_NEW 0 -#define TAO_YY_BUFFER_NORMAL 1 - /* When an EOF's been seen but there's still some text to process - * then we mark the buffer as TAO_YY_EOF_PENDING, to indicate that we - * shouldn't try reading from the input source any more. We might - * still have a bunch of tokens to match, though, because of - * possible backing-up. - * - * When we actually see the EOF, we change the status to "new" - * (via tao_yyrestart()), so that the user can continue scanning by - * just pointing tao_yyin at a new input file. - */ -#define TAO_YY_BUFFER_EOF_PENDING 2 - }; - -static TAO_YY_BUFFER_STATE tao_yy_current_buffer = 0; - -/* We provide macros for accessing buffer states in case in the - * future we want to put the buffer states in a more general - * "scanner state". - */ -#define TAO_YY_CURRENT_BUFFER tao_yy_current_buffer - - -/* tao_yy_hold_char holds the character lost when tao_yytext is formed. */ -static char tao_yy_hold_char; - -static int tao_yy_n_chars; /* number of characters read into tao_yy_ch_buf */ - - -int tao_yyleng; - -/* Points to current character in buffer. */ -static char *tao_yy_c_buf_p = (char *) 0; -static int tao_yy_init = 1; /* whether we need to initialize */ -static int tao_yy_start = 0; /* start state number */ - -/* Flag which is used to allow tao_yywrap()'s to do buffer switches - * instead of setting up a fresh tao_yyin. A bit of a hack ... - */ -static int tao_yy_did_buffer_switch_on_eof; - -static void tao_yyunput TAO_YY_PROTO(( int c, char *buf_ptr )); -void tao_yyrestart TAO_YY_PROTO(( FILE *input_file )); -void tao_yy_switch_to_buffer TAO_YY_PROTO(( TAO_YY_BUFFER_STATE new_buffer )); -void tao_yy_load_buffer_state TAO_YY_PROTO(( void )); -TAO_YY_BUFFER_STATE tao_yy_create_buffer TAO_YY_PROTO(( FILE *file, int size )); -void tao_yy_delete_buffer TAO_YY_PROTO(( TAO_YY_BUFFER_STATE b )); -void tao_yy_init_buffer TAO_YY_PROTO(( TAO_YY_BUFFER_STATE b, FILE *file )); - -#if 0 -static int tao_yy_start_stack_ptr = 0; -static int tao_yy_start_stack_depth = 0; -static int *tao_yy_start_stack = 0; -static void tao_yy_push_state TAO_YY_PROTO(( int new_state )); -static void tao_yy_pop_state TAO_YY_PROTO(( void )); -static int tao_yy_top_state TAO_YY_PROTO(( void )); -#endif /* 0 */ - -static void *tao_yy_flex_alloc TAO_YY_PROTO(( unsigned int )); -static void *tao_yy_flex_realloc TAO_YY_PROTO(( void *, unsigned int )); -static void tao_yy_flex_free TAO_YY_PROTO(( void * )); - -#define tao_yy_new_buffer tao_yy_create_buffer - -#define INITIAL 0 -typedef unsigned char TAO_YY_CHAR; -typedef int tao_yy_state_type; -FILE *tao_yyin = (FILE *) 0, *tao_yyout = (FILE *) 0; -extern char tao_yytext[]; - - -#ifndef tao_yytext_ptr -static void tao_yy_flex_strncpy TAO_YY_PROTO(( char *, const char *, int )); -#endif - -#ifdef __cplusplus -static int tao_yyinput TAO_YY_PROTO(( void )); -#else -static int input TAO_YY_PROTO(( void )); -#endif - -static tao_yy_state_type tao_yy_get_previous_state TAO_YY_PROTO(( void )); -static tao_yy_state_type tao_yy_try_NUL_trans TAO_YY_PROTO(( tao_yy_state_type current_state )); -static int tao_yy_get_next_buffer TAO_YY_PROTO(( void )); -static void tao_yy_fatal_error TAO_YY_PROTO(( const char msg[] )); - -/* Done after the current pattern has been matched and before the - * corresponding action - sets up tao_yytext. - */ -#define TAO_YY_DO_BEFORE_ACTION \ - tao_yytext_ptr = tao_yy_bp; \ - tao_yyleng = tao_yy_cp - tao_yy_bp; \ - tao_yy_hold_char = *tao_yy_cp; \ - *tao_yy_cp = '\0'; \ - if ( tao_yyleng >= TAO_YYLMAX ) \ - TAO_YY_FATAL_ERROR( "token too large, exceeds TAO_YYLMAX" ); \ - tao_yy_flex_strncpy( tao_yytext, tao_yytext_ptr, tao_yyleng + 1 ); \ - tao_yy_c_buf_p = tao_yy_cp; - -#define TAO_YY_END_OF_BUFFER 62 -static const short int tao_yy_accept[284] = - { 0, - 58, 58, 62, 60, 58, 59, 60, 60, 60, 60, - 45, 43, 60, 60, 60, 40, 40, 40, 40, 40, - 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, - 40, 40, 40, 40, 40, 60, 58, 0, 46, 0, - 0, 45, 43, 57, 0, 41, 45, 0, 0, 0, - 43, 39, 37, 38, 40, 40, 40, 40, 40, 40, - 40, 40, 40, 40, 40, 40, 40, 40, 34, 40, - 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, - 40, 40, 40, 40, 40, 40, 0, 54, 0, 0, - 0, 0, 0, 47, 0, 47, 0, 0, 56, 41, - - 0, 41, 0, 42, 44, 40, 40, 1, 40, 40, - 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, - 40, 40, 40, 40, 40, 35, 40, 40, 40, 40, - 40, 40, 40, 40, 40, 40, 40, 40, 0, 0, - 0, 0, 0, 49, 48, 0, 0, 41, 42, 40, - 31, 40, 40, 18, 25, 40, 40, 40, 40, 12, - 40, 40, 40, 40, 22, 40, 40, 40, 40, 40, - 40, 40, 40, 40, 40, 40, 40, 40, 40, 29, - 40, 40, 0, 0, 0, 0, 0, 48, 0, 32, - 40, 40, 9, 40, 40, 40, 40, 20, 33, 40, - - 40, 40, 28, 40, 40, 40, 40, 23, 40, 40, - 40, 40, 16, 40, 40, 40, 52, 0, 0, 0, - 0, 40, 40, 40, 40, 21, 40, 40, 2, 30, - 36, 3, 40, 40, 13, 11, 17, 40, 40, 40, - 40, 51, 0, 0, 0, 0, 0, 0, 40, 27, - 7, 19, 40, 40, 40, 40, 10, 40, 26, 40, - 0, 55, 0, 0, 0, 40, 40, 40, 4, 15, - 24, 40, 0, 0, 0, 5, 6, 8, 14, 53, - 0, 50, 0 - } ; - -static const int tao_yy_ec[256] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 4, 1, 5, 6, 1, 1, 1, 7, 1, - 1, 8, 9, 1, 10, 11, 12, 13, 14, 14, - 14, 14, 14, 14, 14, 15, 15, 16, 1, 17, - 1, 18, 1, 1, 19, 20, 20, 20, 21, 22, - 23, 23, 23, 23, 23, 24, 23, 23, 23, 23, - 23, 25, 26, 27, 28, 23, 23, 29, 23, 23, - 1, 30, 1, 1, 31, 1, 32, 33, 34, 35, - - 36, 37, 38, 39, 40, 23, 23, 41, 42, 43, - 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, - 54, 23, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1 - } ; - -static const int tao_yy_meta[55] = - { 0, - 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 3, 3, 3, 1, 1, 1, 3, 3, - 3, 3, 4, 4, 4, 4, 4, 4, 4, 1, - 4, 3, 3, 3, 3, 3, 3, 4, 4, 4, - 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, - 4, 4, 4, 4 - } ; - -static const short int tao_yy_base[294] = - { 0, - 0, 444, 449, 451, 53, 451, 443, 417, 45, 53, - 53, 58, 430, 428, 426, 0, 424, 417, 13, 397, - 31, 40, 34, 399, 396, 394, 393, 404, 47, 56, - 44, 381, 391, 389, 51, 105, 96, 427, 451, 424, - 88, 100, 111, 451, 427, 141, 128, 155, 170, 0, - 160, 451, 451, 451, 0, 405, 400, 373, 377, 381, - 376, 391, 379, 384, 370, 369, 384, 373, 42, 373, - 380, 365, 364, 376, 362, 370, 377, 362, 363, 359, - 365, 359, 64, 363, 363, 352, 184, 451, 111, 189, - 365, 359, 351, 451, 390, 389, 120, 392, 451, 0, - - 196, 451, 144, 199, 0, 368, 372, 0, 345, 350, - 354, 342, 82, 356, 354, 344, 349, 352, 333, 346, - 343, 330, 339, 342, 325, 0, 328, 340, 324, 326, - 88, 323, 335, 326, 329, 333, 335, 319, 360, 359, - 327, 319, 329, 451, 451, 187, 202, 213, 451, 339, - 0, 319, 322, 0, 0, 308, 320, 305, 313, 0, - 308, 303, 302, 303, 0, 308, 297, 298, 314, 309, - 300, 307, 293, 298, 306, 305, 303, 294, 298, 0, - 288, 294, 328, 157, 289, 295, 292, 451, 322, 0, - 295, 295, 0, 273, 284, 288, 274, 0, 0, 285, - - 285, 284, 0, 265, 270, 274, 273, 0, 277, 265, - 274, 276, 0, 268, 279, 266, 451, 205, 259, 228, - 265, 256, 262, 255, 254, 0, 262, 269, 0, 0, - 0, 0, 237, 238, 0, 0, 0, 220, 215, 199, - 201, 451, 231, 235, 245, 251, 248, 201, 182, 0, - 0, 0, 181, 188, 153, 159, 0, 155, 0, 158, - 169, 451, 162, 146, 101, 112, 101, 104, 0, 0, - 0, 88, 130, 120, 114, 0, 0, 0, 0, 451, - 107, 451, 451, 266, 270, 272, 276, 280, 75, 284, - 288, 292, 296 - - } ; - -static const short int tao_yy_def[294] = - { 0, - 283, 1, 283, 283, 283, 283, 284, 285, 283, 283, - 283, 283, 283, 283, 283, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 283, 283, 284, 283, 283, - 287, 283, 283, 283, 288, 283, 283, 283, 283, 289, - 283, 283, 283, 283, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 283, 283, 36, 283, - 283, 283, 283, 283, 283, 283, 283, 288, 283, 46, - - 283, 283, 283, 283, 289, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 290, 283, - 283, 283, 283, 283, 283, 283, 283, 283, 283, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 290, 283, 283, 283, 283, 283, 283, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 283, 283, 283, 283, - 283, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 283, 283, 291, 283, 283, 283, 283, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 291, 283, 292, 283, 283, 286, 286, 286, 286, 286, - 286, 286, 292, 283, 293, 286, 286, 286, 286, 283, - 293, 283, 0, 283, 283, 283, 283, 283, 283, 283, - 283, 283, 283 - - } ; - -static const short int tao_yy_nxt[506] = - { 0, - 4, 5, 6, 5, 7, 4, 8, 4, 4, 9, - 4, 10, 11, 12, 12, 13, 14, 15, 16, 16, - 16, 17, 16, 16, 16, 16, 18, 16, 16, 4, - 4, 19, 20, 21, 22, 23, 24, 16, 16, 25, - 26, 27, 28, 29, 16, 16, 30, 31, 32, 33, - 34, 35, 16, 16, 37, 58, 37, 42, 43, 43, - 44, 59, 61, 46, 45, 47, 47, 48, 46, 62, - 51, 51, 51, 49, 63, 64, 66, 105, 49, 78, - 73, 50, 79, 65, 85, 119, 67, 76, 49, 74, - 120, 77, 80, 49, 96, 81, 75, 37, 86, 37, - - 97, 97, 275, 134, 275, 50, 87, 88, 89, 282, - 46, 135, 47, 47, 48, 139, 282, 90, 90, 90, - 49, 46, 280, 51, 51, 51, 145, 174, 50, 156, - 157, 49, 146, 146, 274, 49, 279, 175, 46, 278, - 47, 47, 48, 277, 91, 92, 49, 276, 49, 93, - 263, 283, 50, 100, 100, 100, 104, 104, 104, 217, - 218, 101, 102, 49, 102, 46, 274, 48, 48, 48, - 46, 262, 51, 51, 51, 49, 101, 102, 103, 103, - 49, 102, 104, 104, 104, 87, 88, 89, 272, 271, - 49, 88, 140, 188, 270, 49, 90, 90, 90, 189, - - 189, 90, 90, 90, 147, 147, 269, 242, 148, 148, - 148, 104, 104, 104, 148, 148, 148, 243, 243, 243, - 149, 268, 149, 91, 267, 148, 148, 148, 93, 245, - 266, 246, 265, 242, 102, 149, 102, 262, 260, 149, - 247, 247, 247, 243, 243, 243, 245, 259, 246, 102, - 258, 264, 245, 102, 246, 263, 257, 247, 247, 247, - 247, 247, 247, 247, 247, 247, 38, 38, 38, 38, - 40, 256, 40, 40, 55, 55, 95, 255, 95, 95, - 98, 98, 98, 98, 183, 183, 183, 183, 261, 261, - 261, 261, 273, 273, 273, 273, 281, 281, 281, 281, - - 254, 253, 252, 251, 250, 249, 248, 244, 241, 240, - 239, 238, 237, 236, 235, 234, 233, 232, 231, 230, - 229, 228, 227, 226, 225, 224, 223, 222, 188, 221, - 220, 219, 184, 216, 215, 214, 213, 212, 211, 210, - 209, 208, 207, 206, 205, 204, 203, 202, 201, 200, - 199, 198, 197, 196, 195, 194, 193, 192, 191, 190, - 187, 186, 185, 139, 184, 182, 181, 180, 179, 178, - 177, 176, 173, 172, 171, 170, 169, 168, 167, 166, - 165, 164, 163, 162, 161, 160, 159, 158, 155, 154, - 153, 152, 151, 150, 99, 144, 144, 143, 142, 141, - - 138, 137, 136, 133, 132, 131, 130, 129, 128, 127, - 126, 125, 124, 123, 122, 121, 118, 117, 116, 115, - 114, 113, 112, 111, 110, 109, 108, 107, 106, 99, - 94, 39, 84, 83, 82, 72, 71, 70, 69, 68, - 60, 57, 56, 54, 53, 52, 41, 39, 283, 36, - 3, 283, 283, 283, 283, 283, 283, 283, 283, 283, - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - - 283, 283, 283, 283, 283 - } ; - -static const short int tao_yy_chk[506] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 5, 19, 5, 9, 9, 9, - 10, 19, 21, 11, 10, 11, 11, 11, 12, 21, - 12, 12, 12, 11, 21, 22, 23, 289, 12, 31, - 29, 11, 31, 22, 35, 69, 23, 30, 11, 29, - 69, 30, 31, 12, 41, 31, 29, 37, 35, 37, - - 41, 41, 265, 83, 265, 11, 36, 36, 36, 281, - 42, 83, 42, 42, 42, 89, 275, 36, 36, 36, - 42, 43, 274, 43, 43, 43, 97, 131, 42, 113, - 113, 43, 97, 97, 273, 42, 272, 131, 47, 268, - 47, 47, 47, 267, 36, 36, 43, 266, 47, 36, - 264, 89, 42, 46, 46, 46, 103, 103, 103, 184, - 184, 46, 46, 47, 46, 48, 263, 48, 48, 48, - 51, 261, 51, 51, 51, 48, 46, 46, 49, 49, - 51, 46, 49, 49, 49, 87, 87, 87, 260, 258, - 48, 90, 90, 146, 256, 51, 87, 87, 87, 146, - - 146, 90, 90, 90, 101, 101, 255, 218, 101, 101, - 101, 104, 104, 104, 147, 147, 147, 218, 218, 218, - 104, 254, 104, 87, 253, 148, 148, 148, 87, 220, - 249, 220, 248, 243, 148, 104, 148, 244, 241, 104, - 220, 220, 220, 243, 243, 243, 245, 240, 245, 148, - 239, 247, 246, 148, 246, 246, 238, 245, 245, 245, - 247, 247, 247, 246, 246, 246, 284, 284, 284, 284, - 285, 234, 285, 285, 286, 286, 287, 233, 287, 287, - 288, 288, 288, 288, 290, 290, 290, 290, 291, 291, - 291, 291, 292, 292, 292, 292, 293, 293, 293, 293, - - 228, 227, 225, 224, 223, 222, 221, 219, 216, 215, - 214, 212, 211, 210, 209, 207, 206, 205, 204, 202, - 201, 200, 197, 196, 195, 194, 192, 191, 189, 187, - 186, 185, 183, 182, 181, 179, 178, 177, 176, 175, - 174, 173, 172, 171, 170, 169, 168, 167, 166, 164, - 163, 162, 161, 159, 158, 157, 156, 153, 152, 150, - 143, 142, 141, 140, 139, 138, 137, 136, 135, 134, - 133, 132, 130, 129, 128, 127, 125, 124, 123, 122, - 121, 120, 119, 118, 117, 116, 115, 114, 112, 111, - 110, 109, 107, 106, 98, 96, 95, 93, 92, 91, - - 86, 85, 84, 82, 81, 80, 79, 78, 77, 76, - 75, 74, 73, 72, 71, 70, 68, 67, 66, 65, - 64, 63, 62, 61, 60, 59, 58, 57, 56, 45, - 40, 38, 34, 33, 32, 28, 27, 26, 25, 24, - 20, 18, 17, 15, 14, 13, 8, 7, 3, 2, - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - - 283, 283, 283, 283, 283 - } ; - -static tao_yy_state_type tao_yy_last_accepting_state; -static char *tao_yy_last_accepting_cpos; - -/* The intent behind this definition is that it'll catch - * any uses of REJECT which flex missed. - */ -#define REJECT reject_used_but_not_detected -#define tao_yymore() tao_yymore_used_but_not_detected -#define TAO_YY_MORE_ADJ 0 -#ifndef TAO_YYLMAX -#define TAO_YYLMAX 8192 -#endif - -char tao_yytext[TAO_YYLMAX]; -char *tao_yytext_ptr; -# line 1 "idl.ll" -# line 3 "idl.ll" -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -IDL_INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -IDL_ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -IDL_INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -IDL_ANY OBLIGATION ON THE PART OF Sun OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IDL_IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR IDL_ANY PATENTS BY -IDL_INTERFACE DEFINITION LANGUAGE CFE OR IDL_ANY PART THEREOF. - -IDL_IN NO EVENT WILL SUN OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -IDL_ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * idl.ll - Lexical scanner for IDL 1.1 - */ - -#include "idl.h" -#include "idl_extern.h" -#include "fe_private.h" -#include "y.tab.h" - -static char idl_escape_reader(char *); -static double idl_atof(char *); -static long idl_atoi(char *, long); -static void idl_parse_line_and_file(char *); -static void idl_store_pragma(char *); - -#if 0 /* defined (HPUX) */ -// HPUX has tao_yytext typed to unsigned char *. We make sure here that -// we'll always use char * static char* __tao_yytext = (char*) tao_yytext; -// NOTE: This will not work under flex(1) were tao_yytext is not a fixed -// buffer, but a dynamically allocated one. This function should do -// the trick for us. -inline char *__tao_yytext() -{ - return (char *) tao_yytext; -} -#define ace_tao_yytext __tao_yytext() -#else -#define ace_tao_yytext tao_yytext -#endif /* 0 */ - -/* Macros after this point can all be overridden by user definitions in - * section 1. - */ - -#ifdef TAO_YY_MALLOC_DECL -TAO_YY_MALLOC_DECL -#else -#if __STDC__ -#ifndef __cplusplus -#endif -#else -/* Just try to get by without declaring the routines. This will fail - * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) - * or sizeof(void*) != sizeof(int). - */ -#endif -#endif - -/* Amount of stuff to slurp up with each read. */ -#ifndef TAO_YY_READ_BUF_SIZE -#define TAO_YY_READ_BUF_SIZE 8192 -#endif - -/* Copy whatever the last rule matched to the standard output. */ - -#ifndef TAO_ECHO -/* This used to be an fputs(), but since the string might contain NUL's, - * we now use fwrite(). - */ -#define TAO_ECHO (void) fwrite( tao_yytext, tao_yyleng, 1, tao_yyout ) -#endif - -/* Gets input and stuffs it into "buf". number of characters read, or TAO_YY_NULL, - * is returned in "result". - */ -#ifndef TAO_YY_INPUT -#define TAO_YY_INPUT(buf,result,max_size) \ - if ( tao_yy_current_buffer->tao_yy_is_interactive ) \ - { \ - int c = getc( tao_yyin ); \ - result = c == EOF ? 0 : 1; \ - buf[0] = (char) c; \ - } \ - else if ( ((result = fread( buf, 1, max_size, tao_yyin )) == 0) \ - && ferror( tao_yyin ) ) \ - TAO_YY_FATAL_ERROR( "input in flex scanner failed" ); -#endif - -/* No semi-colon after return; correct usage is to write "tao_yyterminate();" - - * we don't want an extra ';' after the "return" because that will cause - * some compilers to complain about unreachable statements. - */ -#ifndef tao_yyterminate -#define tao_yyterminate() return TAO_YY_NULL -#endif - -/* Number of entries by which start-condition stack grows. */ -#ifndef TAO_YY_START_STACK_INCR -#define TAO_YY_START_STACK_INCR 25 -#endif - -/* Report a fatal error. */ -#ifndef TAO_YY_FATAL_ERROR -#define TAO_YY_FATAL_ERROR(msg) tao_yy_fatal_error( msg ) -#endif - -/* Default declaration of generated scanner - a define so the user can - * easily add parameters. - */ -#ifndef TAO_YY_DECL -#define TAO_YY_DECL int tao_yylex TAO_YY_PROTO(( void )) -#endif - -/* Code executed at the beginning of each rule, after tao_yytext and tao_yyleng - * have been set up. - */ -#ifndef TAO_YY_USER_ACTION -#define TAO_YY_USER_ACTION -#endif - -/* Code executed at the end of each rule. */ -#ifndef TAO_YY_BREAK -#define TAO_YY_BREAK break; -#endif - -TAO_YY_DECL - { - register tao_yy_state_type tao_yy_current_state; - register char *tao_yy_cp, *tao_yy_bp; - register int tao_yy_act; - -# line 100 "idl.ll" - - - - if ( tao_yy_init ) - { -#ifdef TAO_YY_USER_INIT - TAO_YY_USER_INIT; -#endif - - if ( ! tao_yy_start ) - tao_yy_start = 1; /* first start state */ - - if ( ! tao_yyin ) - tao_yyin = stdin; - - if ( ! tao_yyout ) - tao_yyout = stdout; - - if ( tao_yy_current_buffer ) - tao_yy_init_buffer( tao_yy_current_buffer, tao_yyin ); - else - tao_yy_current_buffer = - tao_yy_create_buffer( tao_yyin, TAO_YY_BUF_SIZE ); - - tao_yy_load_buffer_state(); - - tao_yy_init = 0; - } - - while ( 1 ) /* loops until end-of-file is reached */ - { - tao_yy_cp = tao_yy_c_buf_p; - - /* Support of tao_yytext. */ - *tao_yy_cp = tao_yy_hold_char; - - /* tao_yy_bp points to the position in tao_yy_ch_buf of the start of - * the current run. - */ - tao_yy_bp = tao_yy_cp; - - tao_yy_current_state = tao_yy_start; - if ( tao_yy_bp[-1] == '\n' ) - ++tao_yy_current_state; -tao_yy_match: - do - { - register TAO_YY_CHAR tao_yy_c = tao_yy_ec[TAO_YY_SC_TO_UI(*tao_yy_cp)]; - if ( tao_yy_accept[tao_yy_current_state] ) - { - tao_yy_last_accepting_state = tao_yy_current_state; - tao_yy_last_accepting_cpos = tao_yy_cp; - } - while ( tao_yy_chk[tao_yy_base[tao_yy_current_state] + tao_yy_c] != tao_yy_current_state ) - { - tao_yy_current_state = (int) tao_yy_def[tao_yy_current_state]; - if ( tao_yy_current_state >= 284 ) - tao_yy_c = tao_yy_meta[(unsigned int) tao_yy_c]; - } - tao_yy_current_state = tao_yy_nxt[tao_yy_base[tao_yy_current_state] + (unsigned int) tao_yy_c]; - ++tao_yy_cp; - } - while ( tao_yy_base[tao_yy_current_state] != 451 ); - -tao_yy_find_action: - tao_yy_act = tao_yy_accept[tao_yy_current_state]; - - TAO_YY_DO_BEFORE_ACTION; - - -do_action: /* This label is used only to access EOF actions. */ - - - switch ( tao_yy_act ) - { /* beginning of action switch */ - case 0: /* must back up */ - /* undo the effects of TAO_YY_DO_BEFORE_ACTION */ - *tao_yy_cp = tao_yy_hold_char; - tao_yy_cp = tao_yy_last_accepting_cpos; - tao_yy_current_state = tao_yy_last_accepting_state; - goto tao_yy_find_action; - -case 1: -TAO_YY_USER_ACTION -# line 102 "idl.ll" -return IDL_ANY; - TAO_YY_BREAK -case 2: -TAO_YY_USER_ACTION -# line 103 "idl.ll" -return IDL_MODULE; - TAO_YY_BREAK -case 3: -TAO_YY_USER_ACTION -# line 104 "idl.ll" -return IDL_RAISES; - TAO_YY_BREAK -case 4: -TAO_YY_USER_ACTION -# line 105 "idl.ll" -return IDL_READONLY; - TAO_YY_BREAK -case 5: -TAO_YY_USER_ACTION -# line 106 "idl.ll" -return IDL_ATTRIBUTE; - TAO_YY_BREAK -case 6: -TAO_YY_USER_ACTION -# line 107 "idl.ll" -return IDL_EXCEPTION; - TAO_YY_BREAK -case 7: -TAO_YY_USER_ACTION -# line 108 "idl.ll" -return IDL_CONTEXT; - TAO_YY_BREAK -case 8: -TAO_YY_USER_ACTION -# line 109 "idl.ll" -return IDL_INTERFACE; - TAO_YY_BREAK -case 9: -TAO_YY_USER_ACTION -# line 110 "idl.ll" -return IDL_CONST; - TAO_YY_BREAK -case 10: -TAO_YY_USER_ACTION -# line 111 "idl.ll" -return IDL_TYPEDEF; - TAO_YY_BREAK -case 11: -TAO_YY_USER_ACTION -# line 112 "idl.ll" -return IDL_STRUCT; - TAO_YY_BREAK -case 12: -TAO_YY_USER_ACTION -# line 113 "idl.ll" -return IDL_ENUM; - TAO_YY_BREAK -case 13: -TAO_YY_USER_ACTION -# line 114 "idl.ll" -return IDL_STRING; - TAO_YY_BREAK -case 14: -TAO_YY_USER_ACTION -# line 115 "idl.ll" -return IDL_WSTRING; - TAO_YY_BREAK -case 15: -TAO_YY_USER_ACTION -# line 116 "idl.ll" -return IDL_SEQUENCE; - TAO_YY_BREAK -case 16: -TAO_YY_USER_ACTION -# line 117 "idl.ll" -return IDL_UNION; - TAO_YY_BREAK -case 17: -TAO_YY_USER_ACTION -# line 118 "idl.ll" -return IDL_SWITCH; - TAO_YY_BREAK -case 18: -TAO_YY_USER_ACTION -# line 119 "idl.ll" -return IDL_CASE; - TAO_YY_BREAK -case 19: -TAO_YY_USER_ACTION -# line 120 "idl.ll" -return IDL_DEFAULT; - TAO_YY_BREAK -case 20: -TAO_YY_USER_ACTION -# line 121 "idl.ll" -return IDL_FLOAT; - TAO_YY_BREAK -case 21: -TAO_YY_USER_ACTION -# line 122 "idl.ll" -return IDL_DOUBLE; - TAO_YY_BREAK -case 22: -TAO_YY_USER_ACTION -# line 123 "idl.ll" -return IDL_LONG; - TAO_YY_BREAK -case 23: -TAO_YY_USER_ACTION -# line 124 "idl.ll" -return IDL_SHORT; - TAO_YY_BREAK -case 24: -TAO_YY_USER_ACTION -# line 125 "idl.ll" -return IDL_UNSIGNED; - TAO_YY_BREAK -case 25: -TAO_YY_USER_ACTION -# line 126 "idl.ll" -return IDL_CHAR; - TAO_YY_BREAK -case 26: -TAO_YY_USER_ACTION -# line 127 "idl.ll" -return IDL_WCHAR; - TAO_YY_BREAK -case 27: -TAO_YY_USER_ACTION -# line 128 "idl.ll" -return IDL_BOOLEAN; - TAO_YY_BREAK -case 28: -TAO_YY_USER_ACTION -# line 129 "idl.ll" -return IDL_OCTET; - TAO_YY_BREAK -case 29: -TAO_YY_USER_ACTION -# line 130 "idl.ll" -return IDL_VOID; - TAO_YY_BREAK -case 30: -TAO_YY_USER_ACTION -# line 131 "idl.ll" -return IDL_NATIVE; - TAO_YY_BREAK -case 31: -TAO_YY_USER_ACTION -# line 133 "idl.ll" -return IDL_TRUETOK; - TAO_YY_BREAK -case 32: -TAO_YY_USER_ACTION -# line 134 "idl.ll" -return IDL_FALSETOK; - TAO_YY_BREAK -case 33: -TAO_YY_USER_ACTION -# line 136 "idl.ll" -return IDL_INOUT; - TAO_YY_BREAK -case 34: -TAO_YY_USER_ACTION -# line 137 "idl.ll" -return IDL_IN; - TAO_YY_BREAK -case 35: -TAO_YY_USER_ACTION -# line 138 "idl.ll" -return IDL_OUT; - TAO_YY_BREAK -case 36: -TAO_YY_USER_ACTION -# line 139 "idl.ll" -return IDL_ONEWAY; - TAO_YY_BREAK -case 37: -TAO_YY_USER_ACTION -# line 141 "idl.ll" -return IDL_LEFT_SHIFT; - TAO_YY_BREAK -case 38: -TAO_YY_USER_ACTION -# line 142 "idl.ll" -return IDL_RIGHT_SHIFT; - TAO_YY_BREAK -case 39: -TAO_YY_USER_ACTION -# line 143 "idl.ll" -{ - tao_yylval.strval = "::"; - return IDL_SCOPE_DELIMITOR; - } - TAO_YY_BREAK -case 40: -TAO_YY_USER_ACTION -# line 148 "idl.ll" -{ - char *z = (char *) malloc(strlen(ace_tao_yytext) + 1); - strcpy(z, ace_tao_yytext); - tao_yylval.strval = z; - return IDENTIFIER; -} - TAO_YY_BREAK -case 41: -TAO_YY_USER_ACTION -# line 155 "idl.ll" -{ - tao_yylval.dval = idl_atof(ace_tao_yytext); - return IDL_FLOATING_PT_LITERAL; - } - TAO_YY_BREAK -case 42: -TAO_YY_USER_ACTION -# line 159 "idl.ll" -{ - tao_yylval.dval = idl_atof(ace_tao_yytext); - return IDL_FLOATING_PT_LITERAL; - } - TAO_YY_BREAK -case 43: -TAO_YY_USER_ACTION -# line 164 "idl.ll" -{ - tao_yylval.ival = idl_atoi(ace_tao_yytext, 10); - return IDL_INTEGER_LITERAL; - } - TAO_YY_BREAK -case 44: -TAO_YY_USER_ACTION -# line 168 "idl.ll" -{ - tao_yylval.ival = idl_atoi(ace_tao_yytext, 16); - return IDL_INTEGER_LITERAL; - } - TAO_YY_BREAK -case 45: -TAO_YY_USER_ACTION -# line 172 "idl.ll" -{ - tao_yylval.ival = idl_atoi(ace_tao_yytext, 8); - return IDL_INTEGER_LITERAL; - } - TAO_YY_BREAK -case 46: -TAO_YY_USER_ACTION -# line 177 "idl.ll" -{ - /* Skip the quotes */ - char *tmp = ace_tao_yytext; - tmp[strlen(tmp)-1] = '\0'; - tao_yylval.sval = new String(tmp + 1); - return IDL_STRING_LITERAL; - } - TAO_YY_BREAK -case 47: -TAO_YY_USER_ACTION -# line 184 "idl.ll" -{ - tao_yylval.cval = ace_tao_yytext [1]; - return IDL_CHARACTER_LITERAL; - } - TAO_YY_BREAK -case 48: -TAO_YY_USER_ACTION -# line 188 "idl.ll" -{ - // octal character constant - tao_yylval.cval = idl_escape_reader(ace_tao_yytext + 1); - return IDL_CHARACTER_LITERAL; - } - TAO_YY_BREAK -case 49: -TAO_YY_USER_ACTION -# line 193 "idl.ll" -{ - tao_yylval.cval = idl_escape_reader(ace_tao_yytext + 1); - return IDL_CHARACTER_LITERAL; - } - TAO_YY_BREAK -case 50: -TAO_YY_USER_ACTION -# line 197 "idl.ll" -{/* remember pragma */ - idl_global->set_lineno(idl_global->lineno() + 1); - idl_store_pragma(ace_tao_yytext); - } - TAO_YY_BREAK -case 51: -TAO_YY_USER_ACTION -# line 201 "idl.ll" -{ - idl_parse_line_and_file(ace_tao_yytext); - } - TAO_YY_BREAK -case 52: -TAO_YY_USER_ACTION -# line 204 "idl.ll" -{ - idl_parse_line_and_file(ace_tao_yytext); - } - TAO_YY_BREAK -case 53: -TAO_YY_USER_ACTION -# line 207 "idl.ll" -{ - idl_parse_line_and_file(ace_tao_yytext); - } - TAO_YY_BREAK -case 54: -TAO_YY_USER_ACTION -# line 210 "idl.ll" -{ - idl_parse_line_and_file(ace_tao_yytext); - } - TAO_YY_BREAK -case 55: -TAO_YY_USER_ACTION -# line 213 "idl.ll" -{ - /* ignore cpp ident */ - idl_global->set_lineno(idl_global->lineno() + 1); - } - TAO_YY_BREAK -case 56: -TAO_YY_USER_ACTION -# line 217 "idl.ll" -{ - /* ignore comments */ - idl_global->set_lineno(idl_global->lineno() + 1); - } - TAO_YY_BREAK -case 57: -TAO_YY_USER_ACTION -# line 221 "idl.ll" -{ - for(;;) { - char c = tao_yyinput(); - if (c == '*') { - char next = tao_yyinput(); - if (next == '/') - break; - else - tao_yyunput(c, NULL); - if (c == '\n') - idl_global->set_lineno(idl_global->lineno() + 1); - } - } - } - TAO_YY_BREAK -case 58: -TAO_YY_USER_ACTION -# line 235 "idl.ll" -; - TAO_YY_BREAK -case 59: -TAO_YY_USER_ACTION -# line 236 "idl.ll" -{ - idl_global->set_lineno(idl_global->lineno() + 1); - } - TAO_YY_BREAK -case 60: -TAO_YY_USER_ACTION -# line 239 "idl.ll" -return ace_tao_yytext [0]; - TAO_YY_BREAK -case 61: -TAO_YY_USER_ACTION -# line 241 "idl.ll" -TAO_ECHO; - TAO_YY_BREAK -case TAO_YY_STATE_EOF(INITIAL): - tao_yyterminate(); - - case TAO_YY_END_OF_BUFFER: - { - /* Amount of text matched not including the EOB char. */ - int tao_yy_amount_of_matched_text = tao_yy_cp - tao_yytext_ptr - 1; - - /* Undo the effects of TAO_YY_DO_BEFORE_ACTION. */ - *tao_yy_cp = tao_yy_hold_char; - - if ( tao_yy_current_buffer->tao_yy_buffer_status == TAO_YY_BUFFER_NEW ) - { - /* We're scanning a new file or input source. It's - * possible that this happened because the user - * just pointed tao_yyin at a new source and called - * tao_yylex(). If so, then we have to assure - * consistency between tao_yy_current_buffer and our - * globals. Here is the right place to do so, because - * this is the first action (other than possibly a - * back-up) that will match for the new input source. - */ - tao_yy_n_chars = tao_yy_current_buffer->tao_yy_n_chars; - tao_yy_current_buffer->tao_yy_input_file = tao_yyin; - tao_yy_current_buffer->tao_yy_buffer_status = TAO_YY_BUFFER_NORMAL; - } - - /* Note that here we test for tao_yy_c_buf_p "<=" to the position - * of the first EOB in the buffer, since tao_yy_c_buf_p will - * already have been incremented past the NUL character - * (since all states make transitions on EOB to the - * end-of-buffer state). Contrast this with the test - * in input(). - */ - if ( tao_yy_c_buf_p <= &tao_yy_current_buffer->tao_yy_ch_buf[tao_yy_n_chars] ) - { /* This was really a NUL. */ - tao_yy_state_type tao_yy_next_state; - - tao_yy_c_buf_p = tao_yytext_ptr + tao_yy_amount_of_matched_text; - - tao_yy_current_state = tao_yy_get_previous_state(); - - /* Okay, we're now positioned to make the NUL - * transition. We couldn't have - * tao_yy_get_previous_state() go ahead and do it - * for us because it doesn't know how to deal - * with the possibility of jamming (and we don't - * want to build jamming into it because then it - * will run more slowly). - */ - - tao_yy_next_state = tao_yy_try_NUL_trans( tao_yy_current_state ); - - tao_yy_bp = tao_yytext_ptr + TAO_YY_MORE_ADJ; - - if ( tao_yy_next_state ) - { - /* Consume the NUL. */ - tao_yy_cp = ++tao_yy_c_buf_p; - tao_yy_current_state = tao_yy_next_state; - goto tao_yy_match; - } - - else - { - tao_yy_cp = tao_yy_c_buf_p; - goto tao_yy_find_action; - } - } - - else switch ( tao_yy_get_next_buffer() ) - { - case EOB_ACT_END_OF_FILE: - { - tao_yy_did_buffer_switch_on_eof = 0; - - if ( tao_yywrap() ) - { - /* Note: because we've taken care in - * tao_yy_get_next_buffer() to have set up - * tao_yytext, we can now set up - * tao_yy_c_buf_p so that if some total - * hoser (like flex itself) wants to - * call the scanner after we return the - * TAO_YY_NULL, it'll still work - another - * TAO_YY_NULL will get returned. - */ - tao_yy_c_buf_p = tao_yytext_ptr + TAO_YY_MORE_ADJ; - - tao_yy_act = TAO_YY_STATE_EOF(TAO_YY_START); - goto do_action; - } - - else - { - if ( ! tao_yy_did_buffer_switch_on_eof ) - TAO_YY_NEW_FILE; - } - break; - } - - case EOB_ACT_CONTINUE_SCAN: - tao_yy_c_buf_p = - tao_yytext_ptr + tao_yy_amount_of_matched_text; - - tao_yy_current_state = tao_yy_get_previous_state(); - - tao_yy_cp = tao_yy_c_buf_p; - tao_yy_bp = tao_yytext_ptr + TAO_YY_MORE_ADJ; - goto tao_yy_match; - - case EOB_ACT_LAST_MATCH: - tao_yy_c_buf_p = - &tao_yy_current_buffer->tao_yy_ch_buf[tao_yy_n_chars]; - - tao_yy_current_state = tao_yy_get_previous_state(); - - tao_yy_cp = tao_yy_c_buf_p; - tao_yy_bp = tao_yytext_ptr + TAO_YY_MORE_ADJ; - goto tao_yy_find_action; - } - break; - } - - default: - TAO_YY_FATAL_ERROR( - "fatal flex scanner internal error--no action found" ); - } /* end of action switch */ - } /* end of scanning one token */ - } /* end of tao_yylex */ - - -/* tao_yy_get_next_buffer - try to read in a new buffer - * - * Returns a code representing an action: - * EOB_ACT_LAST_MATCH - - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position - * EOB_ACT_END_OF_FILE - end of file - */ - -static int tao_yy_get_next_buffer() - { - register char *dest = tao_yy_current_buffer->tao_yy_ch_buf; - register char *source = tao_yytext_ptr - 1; /* copy prev. char, too */ - register int number_to_move, i; - int ret_val; - - if ( tao_yy_c_buf_p > &tao_yy_current_buffer->tao_yy_ch_buf[tao_yy_n_chars + 1] ) - TAO_YY_FATAL_ERROR( - "fatal flex scanner internal error--end of buffer missed" ); - - if ( tao_yy_current_buffer->tao_yy_fill_buffer == 0 ) - { /* Don't try to fill the buffer, so this is an EOF. */ - if ( tao_yy_c_buf_p - tao_yytext_ptr - TAO_YY_MORE_ADJ == 1 ) - { - /* We matched a singled characater, the EOB, so - * treat this as a final EOF. - */ - return EOB_ACT_END_OF_FILE; - } - - else - { - /* We matched some text prior to the EOB, first - * process it. - */ - return EOB_ACT_LAST_MATCH; - } - } - - /* Try to read more data. */ - - /* First move last chars to start of buffer. */ - number_to_move = tao_yy_c_buf_p - tao_yytext_ptr; - - for ( i = 0; i < number_to_move; ++i ) - *(dest++) = *(source++); - - if ( tao_yy_current_buffer->tao_yy_buffer_status == TAO_YY_BUFFER_EOF_PENDING ) - /* don't do the read, it's not guaranteed to return an EOF, - * just force an EOF - */ - tao_yy_n_chars = 0; - - else - { - int num_to_read = - tao_yy_current_buffer->tao_yy_buf_size - number_to_move - 1; - - while ( num_to_read <= 0 ) - { /* Not enough room in the buffer - grow it. */ -#ifdef TAO_YY_USES_REJECT - TAO_YY_FATAL_ERROR( -"input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); -#else - - /* just a shorter name for the current buffer */ - TAO_YY_BUFFER_STATE b = tao_yy_current_buffer; - - int tao_yy_c_buf_p_offset = tao_yy_c_buf_p - b->tao_yy_ch_buf; - - b->tao_yy_buf_size *= 2; - b->tao_yy_ch_buf = (char *) - tao_yy_flex_realloc( (void *) b->tao_yy_ch_buf, - b->tao_yy_buf_size ); - - if ( ! b->tao_yy_ch_buf ) - TAO_YY_FATAL_ERROR( - "fatal error - scanner input buffer overflow" ); - - tao_yy_c_buf_p = &b->tao_yy_ch_buf[tao_yy_c_buf_p_offset]; - - num_to_read = tao_yy_current_buffer->tao_yy_buf_size - - number_to_move - 1; -#endif - } - - if ( num_to_read > TAO_YY_READ_BUF_SIZE ) - num_to_read = TAO_YY_READ_BUF_SIZE; - - /* Read in more data. */ - TAO_YY_INPUT( (&tao_yy_current_buffer->tao_yy_ch_buf[number_to_move]), - tao_yy_n_chars, num_to_read ); - } - - if ( tao_yy_n_chars == 0 ) - { - if ( number_to_move - TAO_YY_MORE_ADJ == 1 ) - { - ret_val = EOB_ACT_END_OF_FILE; - tao_yyrestart( tao_yyin ); - } - - else - { - ret_val = EOB_ACT_LAST_MATCH; - tao_yy_current_buffer->tao_yy_buffer_status = - TAO_YY_BUFFER_EOF_PENDING; - } - } - - else - ret_val = EOB_ACT_CONTINUE_SCAN; - - tao_yy_n_chars += number_to_move; - tao_yy_current_buffer->tao_yy_ch_buf[tao_yy_n_chars] = TAO_YY_END_OF_BUFFER_CHAR; - tao_yy_current_buffer->tao_yy_ch_buf[tao_yy_n_chars + 1] = TAO_YY_END_OF_BUFFER_CHAR; - - /* tao_yytext begins at the second character in tao_yy_ch_buf; the first - * character is the one which preceded it before reading in the latest - * buffer; it needs to be kept around in case it's a newline, so - * tao_yy_get_previous_state() will have with '^' rules active. - */ - - tao_yytext_ptr = &tao_yy_current_buffer->tao_yy_ch_buf[1]; - - return ret_val; - } - - -/* tao_yy_get_previous_state - get the state just before the EOB char was reached */ - -static tao_yy_state_type tao_yy_get_previous_state() - { - register tao_yy_state_type tao_yy_current_state; - register char *tao_yy_cp; - - register char *tao_yy_bp = tao_yytext_ptr; - - tao_yy_current_state = tao_yy_start; - if ( tao_yy_bp[-1] == '\n' ) - ++tao_yy_current_state; - - for ( tao_yy_cp = tao_yytext_ptr + TAO_YY_MORE_ADJ; tao_yy_cp < tao_yy_c_buf_p; ++tao_yy_cp ) - { - register TAO_YY_CHAR tao_yy_c = (*tao_yy_cp ? tao_yy_ec[TAO_YY_SC_TO_UI(*tao_yy_cp)] : 1); - if ( tao_yy_accept[tao_yy_current_state] ) - { - tao_yy_last_accepting_state = tao_yy_current_state; - tao_yy_last_accepting_cpos = tao_yy_cp; - } - while ( tao_yy_chk[tao_yy_base[tao_yy_current_state] + tao_yy_c] != tao_yy_current_state ) - { - tao_yy_current_state = (int) tao_yy_def[tao_yy_current_state]; - if ( tao_yy_current_state >= 284 ) - tao_yy_c = tao_yy_meta[(unsigned int) tao_yy_c]; - } - tao_yy_current_state = tao_yy_nxt[tao_yy_base[tao_yy_current_state] + (unsigned int) tao_yy_c]; - } - - return tao_yy_current_state; - } - - -/* tao_yy_try_NUL_trans - try to make a transition on the NUL character - * - * synopsis - * next_state = tao_yy_try_NUL_trans( current_state ); - */ - -#ifdef TAO_YY_USE_PROTOS -static tao_yy_state_type tao_yy_try_NUL_trans( tao_yy_state_type tao_yy_current_state ) -#else -static tao_yy_state_type tao_yy_try_NUL_trans( tao_yy_current_state ) -tao_yy_state_type tao_yy_current_state; -#endif - { - register int tao_yy_is_jam; - register char *tao_yy_cp = tao_yy_c_buf_p; - - register TAO_YY_CHAR tao_yy_c = 1; - if ( tao_yy_accept[tao_yy_current_state] ) - { - tao_yy_last_accepting_state = tao_yy_current_state; - tao_yy_last_accepting_cpos = tao_yy_cp; - } - while ( tao_yy_chk[tao_yy_base[tao_yy_current_state] + tao_yy_c] != tao_yy_current_state ) - { - tao_yy_current_state = (int) tao_yy_def[tao_yy_current_state]; - if ( tao_yy_current_state >= 284 ) - tao_yy_c = tao_yy_meta[(unsigned int) tao_yy_c]; - } - tao_yy_current_state = tao_yy_nxt[tao_yy_base[tao_yy_current_state] + (unsigned int) tao_yy_c]; - tao_yy_is_jam = (tao_yy_current_state == 283); - - return tao_yy_is_jam ? 0 : tao_yy_current_state; - } - - -#ifdef TAO_YY_USE_PROTOS -static void tao_yyunput( int c, register char *tao_yy_bp ) -#else -static void tao_yyunput( c, tao_yy_bp ) -int c; -register char *tao_yy_bp; -#endif - { - register char *tao_yy_cp = tao_yy_c_buf_p; - - /* undo effects of setting up tao_yytext */ - *tao_yy_cp = tao_yy_hold_char; - - if ( tao_yy_cp < tao_yy_current_buffer->tao_yy_ch_buf + 2 ) - { /* need to shift things up to make room */ - /* +2 for EOB chars. */ - register int number_to_move = tao_yy_n_chars + 2; - register char *dest = &tao_yy_current_buffer->tao_yy_ch_buf[ - tao_yy_current_buffer->tao_yy_buf_size + 2]; - register char *source = - &tao_yy_current_buffer->tao_yy_ch_buf[number_to_move]; - - while ( source > tao_yy_current_buffer->tao_yy_ch_buf ) - *--dest = *--source; - - tao_yy_cp += dest - source; - tao_yy_bp += dest - source; - tao_yy_n_chars = tao_yy_current_buffer->tao_yy_buf_size; - - if ( tao_yy_cp < tao_yy_current_buffer->tao_yy_ch_buf + 2 ) - TAO_YY_FATAL_ERROR( "flex scanner push-back overflow" ); - } - - if ( tao_yy_cp > tao_yy_bp && tao_yy_cp[-1] == '\n' ) - tao_yy_cp[-2] = '\n'; - - *--tao_yy_cp = (char) c; - - - /* Note: the formal parameter *must* be called "tao_yy_bp" for this - * macro to now work correctly. - */ - TAO_YY_DO_BEFORE_ACTION; /* set up tao_yytext again */ - } - - -#ifdef __cplusplus -static int tao_yyinput() -#else -static int input() -#endif - { - int c; - - *tao_yy_c_buf_p = tao_yy_hold_char; - - if ( *tao_yy_c_buf_p == TAO_YY_END_OF_BUFFER_CHAR ) - { - /* tao_yy_c_buf_p now points to the character we want to return. - * If this occurs *before* the EOB characters, then it's a - * valid NUL; if not, then we've hit the end of the buffer. - */ - if ( tao_yy_c_buf_p < &tao_yy_current_buffer->tao_yy_ch_buf[tao_yy_n_chars] ) - /* This was really a NUL. */ - *tao_yy_c_buf_p = '\0'; - - else - { /* need more input */ - tao_yytext_ptr = tao_yy_c_buf_p; - ++tao_yy_c_buf_p; - - switch ( tao_yy_get_next_buffer() ) - { - case EOB_ACT_END_OF_FILE: - { - if ( tao_yywrap() ) - { - tao_yy_c_buf_p = - tao_yytext_ptr + TAO_YY_MORE_ADJ; - return EOF; - } - - TAO_YY_NEW_FILE; -#ifdef __cplusplus - return tao_yyinput(); -#else - return input(); -#endif - } - - case EOB_ACT_CONTINUE_SCAN: - tao_yy_c_buf_p = tao_yytext_ptr + TAO_YY_MORE_ADJ; - break; - - case EOB_ACT_LAST_MATCH: -#ifdef __cplusplus - TAO_YY_FATAL_ERROR( - "unexpected last match in tao_yyinput()" ); -#else - TAO_YY_FATAL_ERROR( - "unexpected last match in input()" ); -#endif - } - } - } - - c = *(unsigned char *) tao_yy_c_buf_p; /* cast for 8-bit char's */ - *tao_yy_c_buf_p = '\0'; /* preserve tao_yytext */ - tao_yy_hold_char = *++tao_yy_c_buf_p; - - return c; - } - - -#ifdef TAO_YY_USE_PROTOS -void tao_yyrestart( FILE *input_file ) -#else -void tao_yyrestart( input_file ) -FILE *input_file; -#endif - { - if ( ! tao_yy_current_buffer ) - tao_yy_current_buffer = tao_yy_create_buffer( tao_yyin, TAO_YY_BUF_SIZE ); - - tao_yy_init_buffer( tao_yy_current_buffer, input_file ); - tao_yy_load_buffer_state(); - } - - -#ifdef TAO_YY_USE_PROTOS -void tao_yy_switch_to_buffer( TAO_YY_BUFFER_STATE new_buffer ) -#else -void tao_yy_switch_to_buffer( new_buffer ) -TAO_YY_BUFFER_STATE new_buffer; -#endif - { - if ( tao_yy_current_buffer == new_buffer ) - return; - - if ( tao_yy_current_buffer ) - { - /* Flush out information for old buffer. */ - *tao_yy_c_buf_p = tao_yy_hold_char; - tao_yy_current_buffer->tao_yy_buf_pos = tao_yy_c_buf_p; - tao_yy_current_buffer->tao_yy_n_chars = tao_yy_n_chars; - } - - tao_yy_current_buffer = new_buffer; - tao_yy_load_buffer_state(); - - /* We don't actually know whether we did this switch during - * EOF (tao_yywrap()) processing, but the only time this flag - * is looked at is after tao_yywrap() is called, so it's safe - * to go ahead and always set it. - */ - tao_yy_did_buffer_switch_on_eof = 1; - } - - -#ifdef TAO_YY_USE_PROTOS -void tao_yy_load_buffer_state( void ) -#else -void tao_yy_load_buffer_state() -#endif - { - tao_yy_n_chars = tao_yy_current_buffer->tao_yy_n_chars; - tao_yytext_ptr = tao_yy_c_buf_p = tao_yy_current_buffer->tao_yy_buf_pos; - tao_yyin = tao_yy_current_buffer->tao_yy_input_file; - tao_yy_hold_char = *tao_yy_c_buf_p; - } - - -#ifdef TAO_YY_USE_PROTOS -TAO_YY_BUFFER_STATE tao_yy_create_buffer( FILE *file, int size ) -#else -TAO_YY_BUFFER_STATE tao_yy_create_buffer( file, size ) -FILE *file; -int size; -#endif - { - TAO_YY_BUFFER_STATE b; - - b = (TAO_YY_BUFFER_STATE) tao_yy_flex_alloc( sizeof( struct tao_yy_buffer_state ) ); - - if ( ! b ) - TAO_YY_FATAL_ERROR( "out of dynamic memory in tao_yy_create_buffer()" ); - - b->tao_yy_buf_size = size; - - /* tao_yy_ch_buf has to be 2 characters longer than the size given because - * we need to put in 2 end-of-buffer characters. - */ - b->tao_yy_ch_buf = (char *) tao_yy_flex_alloc( b->tao_yy_buf_size + 2 ); - - if ( ! b->tao_yy_ch_buf ) - TAO_YY_FATAL_ERROR( "out of dynamic memory in tao_yy_create_buffer()" ); - - tao_yy_init_buffer( b, file ); - - return b; - } - - -#ifdef TAO_YY_USE_PROTOS -void tao_yy_delete_buffer( TAO_YY_BUFFER_STATE b ) -#else -void tao_yy_delete_buffer( b ) -TAO_YY_BUFFER_STATE b; -#endif - { - if ( b == tao_yy_current_buffer ) - tao_yy_current_buffer = (TAO_YY_BUFFER_STATE) 0; - - tao_yy_flex_free( (void *) b->tao_yy_ch_buf ); - tao_yy_flex_free( (void *) b ); - } - - -#ifdef TAO_YY_USE_PROTOS -void tao_yy_init_buffer( TAO_YY_BUFFER_STATE b, FILE *file ) -#else -void tao_yy_init_buffer( b, file ) -TAO_YY_BUFFER_STATE b; -FILE *file; -#endif - { - b->tao_yy_input_file = file; - - /* We put in the '\n' and start reading from [1] so that an - * initial match-at-newline will be true. - */ - - b->tao_yy_ch_buf[0] = '\n'; - b->tao_yy_n_chars = 1; - - /* We always need two end-of-buffer characters. The first causes - * a transition to the end-of-buffer state. The second causes - * a jam in that state. - */ - b->tao_yy_ch_buf[1] = TAO_YY_END_OF_BUFFER_CHAR; - b->tao_yy_ch_buf[2] = TAO_YY_END_OF_BUFFER_CHAR; - - b->tao_yy_buf_pos = &b->tao_yy_ch_buf[1]; - - b->tao_yy_is_interactive = file ? isatty( fileno(file) ) : 0; - - b->tao_yy_fill_buffer = 1; - - b->tao_yy_buffer_status = TAO_YY_BUFFER_NEW; - } - - -#if 0 -#ifdef TAO_YY_USE_PROTOS -static void tao_yy_push_state( int new_state ) -#else -static void tao_yy_push_state( new_state ) -int new_state; -#endif - { - if ( tao_yy_start_stack_ptr >= tao_yy_start_stack_depth ) - { - int new_size; - - tao_yy_start_stack_depth += TAO_YY_START_STACK_INCR; - new_size = tao_yy_start_stack_depth * sizeof( int ); - - if ( ! tao_yy_start_stack ) - tao_yy_start_stack = (int *) tao_yy_flex_alloc( new_size ); - - else - tao_yy_start_stack = (int *) tao_yy_flex_realloc( - (void *) tao_yy_start_stack, new_size ); - - if ( ! tao_yy_start_stack ) - TAO_YY_FATAL_ERROR( - "out of memory expanding start-condition stack" ); - } - - tao_yy_start_stack[tao_yy_start_stack_ptr++] = TAO_YY_START; - - BEGIN(new_state); - } - - -static void tao_yy_pop_state() - { - if ( --tao_yy_start_stack_ptr < 0 ) - TAO_YY_FATAL_ERROR( "start-condition stack underflow" ); - - BEGIN(tao_yy_start_stack[tao_yy_start_stack_ptr]); - } - - -static int tao_yy_top_state() - { - return tao_yy_start_stack[tao_yy_start_stack_ptr - 1]; - } -#endif /* 0 */ - -#ifdef TAO_YY_USE_PROTOS -static void tao_yy_fatal_error( const char msg[] ) -#else -static void tao_yy_fatal_error( msg ) -char msg[]; -#endif - { - (void) fprintf( stderr, "%s\n", msg ); - exit( 1 ); - } - - - -/* Redefine tao_yyless() so it works in section 3 code. */ - -#undef tao_yyless -#define tao_yyless(n) \ - do \ - { \ - /* Undo effects of setting up tao_yytext. */ \ - tao_yytext[tao_yyleng] = tao_yy_hold_char; \ - tao_yy_c_buf_p = tao_yytext + n - TAO_YY_MORE_ADJ; \ - tao_yy_hold_char = *tao_yy_c_buf_p; \ - *tao_yy_c_buf_p = '\0'; \ - tao_yyleng = n; \ - } \ - while ( 0 ) - - -/* Internal utility routines. */ - -#ifndef tao_yytext_ptr -#ifdef TAO_YY_USE_PROTOS -static void tao_yy_flex_strncpy( char *s1, const char *s2, int n ) -#else -static void tao_yy_flex_strncpy( s1, s2, n ) -char *s1; -const char *s2; -int n; -#endif - { - register int i; - for ( i = 0; i < n; ++i ) - s1[i] = s2[i]; - } -#endif - - -#ifdef TAO_YY_USE_PROTOS -static void *tao_yy_flex_alloc( unsigned int size ) -#else -static void *tao_yy_flex_alloc( size ) -unsigned int size; -#endif - { - return (void *) malloc( size ); - } - -#ifdef TAO_YY_USE_PROTOS -static void *tao_yy_flex_realloc( void *ptr, unsigned int size ) -#else -static void *tao_yy_flex_realloc( ptr, size ) -void *ptr; -unsigned int size; -#endif - { - return (void *) realloc( ptr, size ); - } - -#ifdef TAO_YY_USE_PROTOS -static void tao_yy_flex_free( void *ptr ) -#else -static void tao_yy_flex_free( ptr ) -void *ptr; -#endif - { - free( ptr ); - } -# line 241 "idl.ll" - - /* subroutines */ - -/* - * Strip down a name to the last component, i.e. everything after the last - * '/' character - */ -static char * -stripped_name(UTL_String *fn) -{ - char *n = fn->get_string(); - long l; - - if (n == NULL) - return NULL; - l = strlen(n); - for (n += l; l > 0 && *n != '/'; l--, n--); - if (*n == '/') n++; - return n; -} - -/* - * Parse a #line statement generated by the C preprocessor - */ -static void -idl_parse_line_and_file(char *buf) -{ - char *r = buf; - char *h; - UTL_String *nm; - - /* Skip initial '#' */ - if (*r != '#') - return; - else - r++; - - /* Check to see if we're running under the screwy Microsoft scheme */ - /* of putting #line num instead of #num. */ - - if (ACE_OS::strncmp (r, "line", 4) == 0) - r += 5; - - /* Find line number */ - while (*r == ' ' || *r == '\t') - r++; - h = r; - for (; *r != '\0' && *r != ' ' && *r != '\t'; r++) - continue; - *r++ = 0; - idl_global->set_lineno(idl_atoi(h, 10)); - - /* Find file name, if present */ - for (; *r != '"'; r++) - if (*r == '\n' || *r == '\0') - return; - - h = ++r; - for (; *r != '"'; r++) - continue; - *r = 0; - if (*h == '\0') - idl_global->set_filename(new String("standard input")); - else - { - long i; - long j; - - // Put Microsoft-style pathnames into a canonical form. - for (i = 0, j = 0; h[j] != '\0'; i++, j++) - { - if (h[j] == '\\' && h[j + 1] == '\\') - j++; - - h[i] = h[j]; - } - h[i] = '\0'; - idl_global->set_filename(new String(h)); - } - idl_global->set_in_main_file( - (idl_global->filename()->compare(idl_global->real_filename())) ? - I_TRUE : - I_FALSE - ); - /* - * If it's an import file store the stripped name for the BE to use - */ - if (!(idl_global->in_main_file()) && idl_global->import()) { - nm = new UTL_String(stripped_name(idl_global->filename())); - idl_global->store_include_file_name(nm); - } -} - -/* - * Store a #pragma line into the list of pragmas - */ -static void -idl_store_pragma(char *buf) -{ - char *cp = buf + 1; - while(*cp != 'p') - cp++; - while(*cp != ' ' && *cp != '\t') - cp++; - while(*cp == ' ' || *cp == '\t') - cp++; - char pragma[80]; - char *pp = pragma; - while(*cp != '\n') { - *pp++ = *cp++; - } - *pp = 0; - if (strcmp(pragma, "import") == 0) { - idl_global->set_import(I_TRUE); - return; - } - if (strcmp(pragma, "include") == 0) { - idl_global->set_import(I_FALSE); - return; - } - UTL_StrList *p = idl_global->pragmas(); - if (p == NULL) - idl_global->set_pragmas(new UTL_StrList(new String(buf), NULL)); - else { - p->nconc(new UTL_StrList(new String(buf), NULL)); - idl_global->set_pragmas(p); - } -} - -/* - * idl_atoi - Convert a string of digits into an integer according to base b - */ -static long -idl_atoi(char *s, long b) -{ - long r = 0; - long negative = 0; - - if (*s == '-') { - negative = 1; - s++; - } - if (b == 8 && *s == '0') - s++; - else if (b == 16 && *s == '0' && (*(s + 1) == 'x' || *(s + 1) == 'X')) - s += 2; - - for (; *s; s++) - if (*s <= '9' && *s >= '0') - r = (r * b) + (*s - '0'); - else if (b > 10 && *s <= 'f' && *s >= 'a') - r = (r * b) + (*s - 'a' + 10); - else if (b > 10 && *s <= 'F' && *s >= 'A') - r = (r * b) + (*s - 'A' + 10); - else - break; - - if (negative) - r *= -1; - - return r; -} - -/* - * Convert a string to a float; atof doesn't seem to work, always. - */ -static double -idl_atof(char *s) -{ - char *h = s; - double d = 0.0; - double f = 0.0; - double e, k; - long neg = 0, negexp = 0; - - ACE_UNUSED_ARG (f); - ACE_UNUSED_ARG (h); - - if (*s == '-') { - neg = 1; - s++; - } - while (*s >= '0' && *s <= '9') { - d = (d * 10) + *s - '0'; - s++; - } - if (*s == '.') { - s++; - e = 10; - while (*s >= '0' && *s <= '9') { - d += (*s - '0') / (e * 1.0); - e *= 10; - s++; - } - } - if (*s == 'e' || *s == 'E') { - s++; - if (*s == '-') { - negexp = 1; - s++; - } else if (*s == '+') - s++; - e = 0; - while (*s >= '0' && *s <= '9') { - e = (e * 10) + *s - '0'; - s++; - } - if (e > 0) { - for (k = 1; e > 0; k *= 10, e--); - if (negexp) - d /= k; - else - d *= k; - } - } - - if (neg) d *= -1.0; - - return d; -} - -/* - * Convert (some) escaped characters into their ascii values - */ -static char -idl_escape_reader( - char *str -) -{ - if (str[0] != '\\') { - return str[0]; - } - - switch (str[1]) { - case 'n': - return '\n'; - case 't': - return '\t'; - case 'v': - return '\v'; - case 'b': - return '\b'; - case 'r': - return '\r'; - case 'f': - return '\f'; - case 'a': - return '\a'; - case '\\': - return '\\'; - case '\?': - return '?'; - case '\'': - return '\''; - case '"': - return '"'; - case 'x': - { - int i; - // hex value - for (i = 2; str[i] != '\0' && isxdigit(str[i]); i++) { - continue; - } - char save = str[i]; - str[i] = '\0'; - char out = (char)idl_atoi(&str[2], 16); - str[i] = save; - return out; - } - break; - default: - // check for octal value - if (str[1] >= '0' && str[1] <= '7') { - int i; - for (i = 1; str[i] >= '0' && str[i] <= '7'; i++) { - continue; - } - char save = str[i]; - str[i] = '\0'; - char out = (char)idl_atoi(&str[1], 8); - str[i] = save; - return out; - } else { - return str[1] - 'a'; - } - break; - } -} diff --git a/TAO/TAO_IDL/fe/lex.yy.cpp.diff b/TAO/TAO_IDL/fe/lex.yy.cpp.diff deleted file mode 100644 index 755fc736937..00000000000 --- a/TAO/TAO_IDL/fe/lex.yy.cpp.diff +++ /dev/null @@ -1,34 +0,0 @@ ---- lex.yy.cpp.orig Mon Mar 23 15:30:42 1998 -+++ lex.yy.cpp Mon Mar 23 15:30:42 1998 -@@ -215,12 +215,14 @@ - void tao_yy_delete_buffer TAO_YY_PROTO(( TAO_YY_BUFFER_STATE b )); - void tao_yy_init_buffer TAO_YY_PROTO(( TAO_YY_BUFFER_STATE b, FILE *file )); - -+#if 0 - static int tao_yy_start_stack_ptr = 0; - static int tao_yy_start_stack_depth = 0; - static int *tao_yy_start_stack = 0; - static void tao_yy_push_state TAO_YY_PROTO(( int new_state )); - static void tao_yy_pop_state TAO_YY_PROTO(( void )); - static int tao_yy_top_state TAO_YY_PROTO(( void )); -+#endif /* 0 */ - - static void *tao_yy_flex_alloc TAO_YY_PROTO(( unsigned int )); - static void *tao_yy_flex_realloc TAO_YY_PROTO(( void *, unsigned int )); -@@ -1777,6 +1779,7 @@ - } - - -+#if 0 - #ifdef TAO_YY_USE_PROTOS - static void tao_yy_push_state( int new_state ) - #else -@@ -1822,7 +1825,7 @@ - { - return tao_yy_start_stack[tao_yy_start_stack_ptr - 1]; - } -- -+#endif /* 0 */ - - #ifdef TAO_YY_USE_PROTOS - static void tao_yy_fatal_error( const char msg[] ) diff --git a/TAO/TAO_IDL/fe/y.tab.cpp b/TAO/TAO_IDL/fe/y.tab.cpp deleted file mode 100644 index e44b16d50bc..00000000000 --- a/TAO/TAO_IDL/fe/y.tab.cpp +++ /dev/null @@ -1,3300 +0,0 @@ -// $Id$ -# line 74 "idl.tao_yy" -#include "idl.h" -#include "idl_extern.h" -#include "fe_private.h" -#include - -#if (defined(apollo) || defined(hpux)) && defined(__cplusplus) -extern "C" int tao_yywrap(); -#endif // (defined(apollo) || defined(hpux)) && defined(__cplusplus) - -void tao_yyerror (char *); -int tao_yylex (void); -extern "C" int tao_yywrap (void); -extern char tao_yytext[]; -extern int tao_yyleng; -#define TAO_YYDEBUG_LEXER_TEXT (tao_yytext[tao_yyleng] = '\0', tao_yytext) -// Force the pretty debugging code to compile. -#define TAO_YYDEBUG 1 - -# line 97 "idl.tao_yy" -typedef union -#ifdef __cplusplus - TAO_YYSTYPE -#endif - { - AST_Decl *dcval; /* Decl value */ - UTL_StrList *slval; /* String list */ - UTL_NameList *nlval; /* Name list */ - UTL_ExprList *elval; /* Expression list */ - UTL_LabelList *llval; /* Label list */ - UTL_DeclList *dlval; /* Declaration list */ - FE_InterfaceHeader *ihval; /* Interface header */ - AST_Expression *exval; /* Expression value */ - AST_UnionLabel *ulval; /* Union label */ - AST_Field *ffval; /* Field value */ - AST_Expression::ExprType etval; /* Expression type */ - AST_Argument::Direction dival; /* Argument direction */ - AST_Operation::Flags ofval; /* Operation flags */ - FE_Declarator *deval; /* Declarator value */ - idl_bool bval; /* Boolean value */ - long ival; /* Long value */ - double dval; /* Double value */ - float fval; /* Float value */ - char cval; /* Char value */ - - String *sval; /* String value */ - char *strval; /* char * value */ - Identifier *idval; /* Identifier */ - UTL_IdList *idlist; /* Identifier list */ -} TAO_YYSTYPE; -# define IDENTIFIER 257 -# define IDL_CONST 258 -# define IDL_MODULE 259 -# define IDL_INTERFACE 260 -# define IDL_TYPEDEF 261 -# define IDL_LONG 262 -# define IDL_SHORT 263 -# define IDL_UNSIGNED 264 -# define IDL_DOUBLE 265 -# define IDL_FLOAT 266 -# define IDL_CHAR 267 -# define IDL_WCHAR 268 -# define IDL_OCTET 269 -# define IDL_BOOLEAN 270 -# define IDL_ANY 271 -# define IDL_STRUCT 272 -# define IDL_UNION 273 -# define IDL_SWITCH 274 -# define IDL_ENUM 275 -# define IDL_SEQUENCE 276 -# define IDL_STRING 277 -# define IDL_WSTRING 278 -# define IDL_EXCEPTION 279 -# define IDL_CASE 280 -# define IDL_DEFAULT 281 -# define IDL_READONLY 282 -# define IDL_ATTRIBUTE 283 -# define IDL_ONEWAY 284 -# define IDL_IDEMPOTENT 285 -# define IDL_VOID 286 -# define IDL_IN 287 -# define IDL_OUT 288 -# define IDL_INOUT 289 -# define IDL_RAISES 290 -# define IDL_CONTEXT 291 -# define IDL_NATIVE 292 -# define IDL_INTEGER_LITERAL 293 -# define IDL_STRING_LITERAL 294 -# define IDL_CHARACTER_LITERAL 295 -# define IDL_FLOATING_PT_LITERAL 296 -# define IDL_TRUETOK 297 -# define IDL_FALSETOK 298 -# define IDL_SCOPE_DELIMITOR 299 -# define IDL_LEFT_SHIFT 300 -# define IDL_RIGHT_SHIFT 301 - -#ifdef __STDC__ -#include -// #include -#else -#include -#include -#endif - -// #include - -#ifdef __cplusplus - -#ifndef tao_yyerror - void tao_yyerror(const char *); -#endif - -#ifndef tao_yylex -#ifdef __EXTERN_C__ - extern "C" { int tao_yylex(void); } -#else - int tao_yylex(void); -#endif -#endif - int tao_yyparse(void); - -#endif -#define tao_yyclearin tao_yychar = -1 -#define tao_yyerrok tao_yyerrflag = 0 -extern int tao_yychar; -extern int tao_yyerrflag; -TAO_YYSTYPE tao_yylval; -TAO_YYSTYPE tao_yyval; -typedef int tao_yytabelem; -#ifndef TAO_YYMAXDEPTH -#define TAO_YYMAXDEPTH 150 -#endif -#if TAO_YYMAXDEPTH > 0 -int tao_yy_tao_yys[TAO_YYMAXDEPTH], *tao_yys = tao_yy_tao_yys; -TAO_YYSTYPE tao_yy_tao_yyv[TAO_YYMAXDEPTH], *tao_yyv = tao_yy_tao_yyv; -#else /* user does initial allocation */ -int *tao_yys; -TAO_YYSTYPE *tao_yyv; -#endif -static int tao_yymaxdepth = TAO_YYMAXDEPTH; -# define TAO_YYERRCODE 256 - -# line 2267 "idl.tao_yy" - -/* programs */ - -/* - * ??? - */ -int -tao_yywrap() -{ - return 1; -} - -/* - * Report an error situation discovered in a production - * - * This does not do anything since we report all error situations through - * idl_global->err() operations - */ -void -tao_yyerror(char *) -{ -} -tao_yytabelem tao_yyexca[] ={ --1, 0, - 0, 3, - -2, 0, --1, 1, - 0, -1, - -2, 0, --1, 3, - 0, 3, - 125, 3, - -2, 0, --1, 24, - 123, 32, - -2, 57, --1, 134, - 91, 229, - -2, 138, --1, 149, - 257, 254, - 262, 254, - 263, 254, - 264, 254, - 265, 254, - 266, 254, - 267, 254, - 268, 254, - 269, 254, - 270, 254, - 271, 254, - 277, 254, - 283, 241, - 286, 254, - 299, 254, - 125, 25, - -2, 0, --1, 181, - 125, 3, - -2, 0, --1, 222, - 125, 245, - -2, 0, --1, 269, - 125, 161, - -2, 0, --1, 319, - 41, 257, - -2, 259, --1, 357, - 125, 184, - -2, 0, - }; -# define TAO_YYNPROD 286 -# define TAO_YYLAST 528 -tao_yytabelem tao_yyact[]={ - - 72, 131, 347, 331, 344, 57, 167, 155, 128, 241, - 70, 230, 132, 207, 208, 35, 226, 110, 393, 388, - 333, 334, 335, 352, 328, 239, 147, 34, 349, 348, - 130, 112, 118, 119, 113, 112, 141, 36, 36, 101, - 59, 103, 104, 105, 100, 227, 36, 108, 98, 169, - 54, 78, 87, 88, 76, 77, 79, 80, 82, 81, - 83, 20, 21, 36, 22, 89, 90, 91, 78, 87, - 88, 76, 77, 79, 80, 82, 81, 83, 20, 21, - 73, 22, 89, 90, 91, 231, 305, 36, 73, 102, - 201, 346, 78, 87, 88, 76, 77, 79, 80, 82, - 81, 83, 162, 222, 160, 73, 89, 90, 91, 161, - 134, 154, 137, 36, 129, 349, 348, 159, 301, 87, - 88, 67, 143, 79, 80, 82, 81, 158, 2, 73, - 157, 22, 26, 36, 265, 6, 5, 153, 78, 87, - 88, 76, 77, 79, 80, 82, 81, 83, 55, 169, - 66, 367, 164, 90, 165, 73, 302, 291, 290, 95, - 36, 289, 242, 232, 204, 78, 87, 88, 76, 77, - 79, 80, 82, 81, 83, 73, 65, 217, 62, 13, - 90, 63, 13, 325, 4, 59, 36, 148, 96, 59, - 163, 78, 87, 88, 76, 77, 79, 80, 82, 81, - 243, 245, 73, 146, 145, 244, 90, 91, 192, 144, - 15, 106, 205, 10, 94, 312, 202, 263, 262, 93, - 250, 114, 221, 142, 20, 21, 117, 22, 73, 59, - 116, 16, 384, 371, 195, 166, 196, 197, 9, 115, - 15, 19, 25, 10, 14, 313, 61, 12, 134, 284, - 12, 176, 177, 283, 20, 21, 293, 22, 280, 60, - 11, 16, 279, 11, 278, 277, 36, 276, 275, 52, - 51, 134, 288, 50, 14, 49, 59, 48, 47, 300, - 386, 373, 45, 391, 213, 189, 188, 243, 245, 211, - 354, 304, 244, 209, 212, 210, 326, 303, 199, 198, - 389, 292, 170, 171, 172, 173, 174, 175, 73, 383, - 223, 35, 254, 255, 258, 259, 260, 225, 340, 256, - 257, 315, 329, 317, 253, 314, 261, 220, 13, 269, - 375, 353, 319, 252, 187, 251, 228, 206, 35, 285, - 64, 71, 392, 382, 363, 364, 339, 366, 243, 245, - 350, 342, 355, 244, 365, 214, 215, 216, 341, 330, - 13, 286, 368, 372, 324, 59, 36, 134, 378, 377, - 374, 129, 323, 376, 338, 370, 322, 318, 97, 99, - 311, 134, 385, 282, 266, 180, 122, 38, 310, 281, - 306, 249, 152, 219, 297, 140, 12, 86, 218, 139, - 85, 178, 170, 171, 172, 173, 174, 175, 73, 11, - 120, 203, 138, 309, 274, 273, 229, 184, 126, 42, - 380, 381, 362, 298, 361, 359, 379, 358, 12, 357, - 356, 343, 336, 320, 308, 272, 183, 125, 41, 271, - 307, 11, 270, 268, 224, 182, 124, 40, 337, 296, - 247, 299, 109, 53, 295, 33, 264, 179, 121, 37, - 136, 111, 246, 238, 237, 191, 236, 190, 235, 234, - 233, 186, 107, 46, 185, 149, 127, 43, 18, 17, - 267, 181, 123, 39, 32, 31, 8, 30, 7, 29, - 28, 27, 3, 1, 24, 193, 133, 194, 332, 75, - 74, 68, 92, 369, 168, 156, 287, 23, 321, 316, - 151, 360, 345, 248, 200, 327, 44, 150, 390, 387, - 351, 84, 240, 135, 294, 69, 58, 56 }; -tao_yytabelem tao_yypact[]={ - - -18,-10000000,-10000000, -18,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, --10000000,-10000000,-10000000,-10000000, -220,-10000000,-10000000,-10000000,-10000000,-10000000, --10000000,-10000000,-10000000,-10000000, 224,-10000000,-10000000, 219, 218, 216, - 214, 211, 210, -194,-10000000,-10000000,-10000000, -71, -220, -168, - -220, -220, -220, 88,-10000000,-10000000, -220,-10000000,-10000000,-10000000, --10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, -282, --10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, --10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, -231,-10000000, --10000000,-10000000,-10000000,-10000000, 177, 170, 166,-10000000, -230,-10000000, --10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, - -282,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, -219,-10000000, -220, --10000000, -220,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, -226,-10000000, - 163, -220, 86, 81, 80, -248, 64,-10000000,-10000000, -282, --10000000,-10000000,-10000000,-10000000,-10000000,-10000000, -220,-10000000, 109, 109, - 109,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, -48, - 255, 254, 125,-10000000,-10000000,-10000000, 40, 118, 299, -287, - 250, 247,-10000000,-10000000, 9, 9, 9, -282,-10000000, 109, --10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, -170, 161, --10000000, -18, -211, 296, -172, 38,-10000000,-10000000,-10000000,-10000000, --10000000,-10000000,-10000000, -258, -124,-10000000,-10000000,-10000000,-10000000,-10000000, --10000000,-10000000,-10000000, 158, 109, 109, 109, 109, 109, 109, - 109, 109, 109, 109,-10000000,-10000000,-10000000, 285, 156, 155, --10000000,-10000000, -211,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, --10000000,-10000000,-10000000, 209, 208, 206, 205, 203, 199,-10000000, --10000000,-10000000,-10000000,-10000000,-10000000, -282, -219, -220, 125, 109, --10000000, 118, 299, -287, 250, 250, 247, 247,-10000000,-10000000, --10000000,-10000000,-10000000,-10000000, 109,-10000000, 36, 33, 32, -211, - -220, 197, -144, 31, 253,-10000000,-10000000,-10000000,-10000000,-10000000, --10000000, -97, -171, -282,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, --10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, - -282, -227,-10000000,-10000000,-10000000,-10000000, 122, 186, 284, -172, - -220, 292,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, - 60, 252, -266, 281, -267,-10000000,-10000000,-10000000,-10000000,-10000000, - 277,-10000000,-10000000,-10000000,-10000000,-10000000, -165, -220, -268, 291, --10000000, 246, -97,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, --10000000,-10000000,-10000000,-10000000,-10000000,-10000000, 26, -165, -194, 174, - -252, 223, 109, 290, -219, -267, -220,-10000000,-10000000,-10000000, --10000000,-10000000,-10000000,-10000000,-10000000,-10000000, 268,-10000000,-10000000, 173, - -220, 222, -275,-10000000,-10000000,-10000000,-10000000, 259,-10000000,-10000000, - 239,-10000000, -276,-10000000 }; -tao_yytabelem tao_yypgo[]={ - - 0, 16, 148, 527, 526, 525, 10, 259, 178, 524, - 246, 523, 522, 521, 341, 9, 6, 520, 519, 518, - 8, 517, 516, 515, 514, 513, 512, 511, 30, 510, - 509, 508, 507, 506, 7, 505, 130, 127, 117, 104, - 109, 102, 190, 504, 111, 90, 2, 503, 502, 181, - 176, 150, 340, 501, 500, 499, 5, 121, 498, 497, - 1, 12, 496, 495, 494, 0, 184, 493, 128, 492, - 491, 136, 490, 135, 489, 488, 487, 486, 485, 484, - 483, 482, 481, 480, 479, 478, 477, 476, 475, 474, - 473, 472, 471, 470, 469, 468, 467, 466, 465, 464, - 463, 462, 461, 460, 459, 458, 457, 456, 455, 453, - 452, 450, 448, 447, 446, 445, 444, 443, 134, 103, - 442, 440, 439, 438, 437, 436, 435, 434, 433, 432, - 431, 430, 4, 429, 427, 426, 425, 424, 422, 421, - 420, 419, 418, 417, 416, 415, 11, 414, 413, 412, - 411, 410, 401, 400, 399, 398, 397, 395, 393, 392, - 391, 390, 389, 388, 387, 386, 385, 384, 383, 380, - 377, 376, 374, 372, 364, 359, 3, 358, 354, 351, - 347, 346, 345, 344, 343, 342 }; -tao_yytabelem tao_yyr1[]={ - - 0, 67, 68, 68, 70, 69, 72, 69, 74, 69, - 76, 69, 78, 69, 79, 69, 80, 81, 82, 83, - 77, 75, 75, 86, 87, 89, 84, 90, 64, 32, - 91, 22, 22, 88, 88, 93, 92, 94, 92, 95, - 92, 97, 92, 99, 92, 100, 92, 20, 101, 21, - 21, 16, 102, 16, 103, 16, 65, 85, 104, 105, - 106, 107, 71, 48, 48, 48, 48, 48, 48, 48, - 48, 33, 34, 35, 35, 36, 36, 37, 37, 38, - 38, 38, 39, 39, 39, 40, 40, 40, 40, 41, - 41, 41, 41, 42, 42, 42, 43, 43, 43, 43, - 43, 43, 44, 108, 66, 66, 66, 66, 66, 110, - 109, 1, 1, 2, 2, 2, 56, 56, 56, 56, - 56, 56, 4, 4, 4, 3, 3, 3, 28, 111, - 29, 29, 60, 60, 30, 112, 31, 31, 61, 62, - 49, 49, 54, 54, 54, 55, 55, 55, 52, 52, - 52, 50, 50, 57, 51, 53, 113, 114, 115, 117, - 7, 116, 119, 119, 120, 121, 118, 122, 118, 123, - 124, 125, 126, 127, 128, 129, 131, 10, 9, 9, - 9, 9, 9, 9, 130, 133, 133, 134, 135, 132, - 136, 132, 26, 27, 27, 137, 46, 138, 139, 46, - 140, 47, 141, 142, 143, 145, 8, 144, 148, 147, - 147, 146, 149, 150, 5, 5, 151, 152, 13, 154, - 155, 6, 6, 153, 157, 158, 14, 14, 156, 159, - 11, 24, 25, 25, 160, 161, 45, 162, 163, 96, - 63, 63, 164, 165, 166, 167, 73, 168, 169, 171, - 172, 98, 59, 59, 59, 12, 12, 173, 170, 174, - 170, 175, 178, 177, 177, 179, 180, 176, 15, 15, - 15, 58, 58, 58, 181, 182, 23, 23, 183, 184, - 17, 17, 18, 185, 19, 19 }; -tao_yytabelem tao_yyr2[]={ - - 0, 2, 4, 0, 1, 7, 1, 7, 1, 7, - 1, 7, 1, 7, 1, 7, 1, 1, 1, 1, - 19, 2, 2, 1, 1, 1, 15, 1, 7, 5, - 1, 7, 1, 4, 0, 1, 7, 1, 7, 1, - 7, 1, 7, 1, 7, 1, 7, 5, 1, 9, - 1, 3, 1, 7, 1, 9, 3, 3, 1, 1, - 1, 1, 19, 2, 2, 2, 2, 2, 3, 3, - 3, 2, 2, 2, 7, 2, 7, 2, 7, 2, - 7, 7, 2, 7, 7, 2, 7, 7, 7, 2, - 5, 5, 5, 3, 2, 7, 3, 3, 3, 3, - 3, 3, 3, 1, 7, 3, 3, 3, 5, 1, - 7, 2, 2, 3, 2, 3, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 5, 1, - 9, 1, 2, 2, 5, 1, 9, 1, 3, 3, - 2, 2, 3, 5, 3, 5, 7, 5, 3, 3, - 5, 3, 3, 3, 3, 3, 1, 1, 1, 1, - 19, 4, 4, 0, 1, 1, 11, 1, 7, 1, - 1, 1, 1, 1, 1, 1, 1, 35, 3, 3, - 3, 3, 2, 3, 4, 4, 0, 1, 1, 11, - 1, 7, 5, 5, 1, 1, 7, 1, 1, 11, - 1, 7, 1, 1, 1, 1, 19, 4, 1, 8, - 0, 3, 1, 1, 13, 5, 1, 1, 11, 1, - 1, 13, 3, 3, 1, 1, 13, 3, 3, 1, - 7, 5, 5, 1, 1, 1, 11, 1, 1, 13, - 3, 1, 1, 1, 1, 1, 19, 1, 1, 1, - 1, 21, 3, 3, 1, 2, 3, 1, 7, 1, - 9, 4, 1, 8, 0, 1, 1, 11, 3, 2, - 3, 3, 3, 3, 1, 1, 13, 1, 1, 1, - 13, 1, 5, 1, 9, 1 }; -tao_yytabelem tao_yychk[]={ - --10000000, -67, -68, -69, -66, -71, -73, -75, -77, 256, - 261, -7, -10, -8, 292, 258, 279, -84, -85, 259, - 272, 273, 275, -32, -64, 260, -68, -70, -72, -74, - -76, -78, -79, -108, -61, -65, 257, -104, -164, -80, - -113, -123, -141, -86, -22, 58, -90, 59, 59, 59, - 59, 59, 59, -109, -1, -2, -3, -56, -4, -16, - -7, -10, -8, -49, -52, -50, -51, -57, -53, -5, - -6, -14, -65, 299, -54, -55, 265, 266, 262, 267, - 268, 270, 269, 271, -13, -153, -156, 263, 264, 276, - 277, 278, -48, -49, -50, -57, -51, -52, -6, -14, - -16, -65, 257, -65, -65, -65, 123, -91, -65, -110, - 299, -102, 262, 265, 44, 62, 60, 60, 262, 263, - -151, -105, -165, -81, -114, -124, -142, -87, -20, -16, - -28, -60, -61, -62, -65, -11, -103, -65, -149, -154, - -157, 262, 60, -65, 123, 123, 123, 274, 123, -88, - -21, -29, -159, -65, -44, -34, -35, -36, -37, -38, - -39, -40, -41, -42, 43, 45, 126, -16, -43, 40, - 293, 294, 295, 296, 297, 298, -44, -44, -152, -106, - -166, -82, -115, -125, -143, -89, -92, -66, -71, -73, - -96, -98, 256, -63, -59, 282, 284, 285, 44, 44, - -24, -45, 91, -150, 124, 94, 38, 300, 301, 43, - 45, 42, 47, 37, -42, -42, -42, -34, -155, -158, - -2, 61, -119, -68, -116, -118, -1, 256, 40, -144, - -146, 257, 125, -93, -94, -95, -97, -99, -100, 283, - -12, -15, 286, -56, -6, -16, -101, -111, -25, -160, - 62, -36, -37, -38, -39, -39, -40, -40, -41, -41, - -41, 41, 62, 62, -107, -118, -167, -83, -117, -119, - -120, -122, -126, -145, -147, 59, 59, 59, 59, 59, - 59, -162, -168, -16, -60, -45, -44, -33, -34, 125, - 125, 125, -28, 59, -9, -49, -50, -57, -51, -8, - -16, 262, 125, 44, -15, 257, -161, -121, -127, -148, - -163, -169, 93, 59, 41, -146, -30, -61, -170, 40, - -128, -31, -171, -173, -174, 123, 44, -23, 290, 41, - -175, -176, -58, 287, 288, 289, -129, -112, -172, -181, - 41, -177, -179, -130, -132, -26, 256, -46, 281, 280, - -61, -17, 291, 40, 44, -15, -131, -133, -134, -136, - -27, -137, -138, -183, -182, -178, -180, 125, -132, -47, - -1, 59, -46, 58, -34, 40, -20, -176, -60, -135, - -140, -139, -184, 41, 59, -60, 58, -18, 294, 41, - -19, 44, -185, 294 }; -tao_yytabelem tao_yydef[]={ - - -2, -2, 1, -2, 4, 6, 8, 10, 12, 14, - 103, 105, 106, 107, 0, 58, 242, 21, 22, 16, - 156, 169, 202, 23, -2, 27, 2, 0, 0, 0, - 0, 0, 0, 0, 108, 138, 56, 0, 0, 0, - 0, 0, 0, 0, 29, 30, 0, 5, 7, 9, - 11, 13, 15, 104, 109, 111, 112, 113, 114, 115, - 125, 126, 127, 116, 117, 118, 119, 120, 121, 122, - 123, 124, 51, 52, 140, 141, 148, 149, 142, 151, - 152, 154, 153, 155, 0, 222, 227, 144, 0, 216, - 223, 228, 59, 63, 64, 65, 66, 67, 68, 69, - 70, 243, 17, 157, 170, 203, 24, 0, 28, 0, - 54, 0, 143, 150, 212, 215, 219, 224, 145, 147, - 0, 0, 0, 0, 0, 0, 0, 34, 31, 50, - 110, 131, 132, 133, -2, 139, 0, 53, 0, 0, - 0, 146, 217, 60, 244, 18, 158, 171, 204, -2, - 47, 128, 0, 55, 213, 102, 72, 73, 75, 77, - 79, 82, 85, 89, 0, 0, 0, 93, 94, 0, - 96, 97, 98, 99, 100, 101, 220, 225, 0, 0, - 163, -2, 0, 0, 0, 0, 33, 35, 37, 39, - 41, 43, 45, 0, 0, 240, 252, 253, 48, 129, - 230, 233, 234, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 90, 91, 92, 0, 0, 0, - 218, 61, -2, 19, 159, 163, 164, 167, 172, 205, - 210, 211, 26, 0, 0, 0, 0, 0, 0, 237, - 247, 255, 256, 268, 269, 270, 0, 0, 231, 0, - 214, 74, 76, 78, 80, 81, 83, 84, 86, 87, - 88, 95, 221, 226, 0, 162, 0, 0, 0, -2, - 0, 0, 0, 0, 207, 36, 38, 40, 42, 44, - 46, 0, 0, 49, 130, 232, 235, 62, 71, 246, - 20, 160, 165, 168, 173, 178, 179, 180, 181, 182, - 183, 142, 206, 208, 238, 248, 0, 0, 0, 0, - 0, 0, 236, 166, 174, 209, 239, 137, 249, -2, - 0, 134, 277, 0, 0, 175, 135, 250, 274, 258, - 0, 264, 265, 271, 272, 273, 0, 0, 281, 0, - 260, 261, 0, 176, 186, 187, 190, 194, 195, 197, - 136, 251, 278, 275, 262, 266, 0, -2, 0, 0, - 192, 0, 0, 0, 0, 0, 0, 177, 185, 188, - 200, 191, 193, 196, 198, 279, 0, 263, 267, 0, - 0, 0, 0, 276, 189, 201, 199, 0, 285, 280, - 282, 283, 0, 284 }; -typedef struct -#ifdef __cplusplus - tao_yytoktype -#endif -{ char *t_name; int t_val; } tao_yytoktype; -#ifndef TAO_YYDEBUG -# define TAO_YYDEBUG 1 /* allow debugging */ -#endif - -#if TAO_YYDEBUG - -tao_yytoktype tao_yytoks[] = -{ - {"IDENTIFIER", 257}, - {"IDL_CONST", 258}, - {"IDL_MODULE", 259}, - {"IDL_INTERFACE", 260}, - {"IDL_TYPEDEF", 261}, - {"IDL_LONG", 262}, - {"IDL_SHORT", 263}, - {"IDL_UNSIGNED", 264}, - {"IDL_DOUBLE", 265}, - {"IDL_FLOAT", 266}, - {"IDL_CHAR", 267}, - {"IDL_WCHAR", 268}, - {"IDL_OCTET", 269}, - {"IDL_BOOLEAN", 270}, - {"IDL_ANY", 271}, - {"IDL_STRUCT", 272}, - {"IDL_UNION", 273}, - {"IDL_SWITCH", 274}, - {"IDL_ENUM", 275}, - {"IDL_SEQUENCE", 276}, - {"IDL_STRING", 277}, - {"IDL_WSTRING", 278}, - {"IDL_EXCEPTION", 279}, - {"IDL_CASE", 280}, - {"IDL_DEFAULT", 281}, - {"IDL_READONLY", 282}, - {"IDL_ATTRIBUTE", 283}, - {"IDL_ONEWAY", 284}, - {"IDL_IDEMPOTENT", 285}, - {"IDL_VOID", 286}, - {"IDL_IN", 287}, - {"IDL_OUT", 288}, - {"IDL_INOUT", 289}, - {"IDL_RAISES", 290}, - {"IDL_CONTEXT", 291}, - {"IDL_NATIVE", 292}, - {"IDL_INTEGER_LITERAL", 293}, - {"IDL_STRING_LITERAL", 294}, - {"IDL_CHARACTER_LITERAL", 295}, - {"IDL_FLOATING_PT_LITERAL", 296}, - {"IDL_TRUETOK", 297}, - {"IDL_FALSETOK", 298}, - {"IDL_SCOPE_DELIMITOR", 299}, - {"IDL_LEFT_SHIFT", 300}, - {"IDL_RIGHT_SHIFT", 301}, - {"-unknown-", -1} /* ends search */ -}; - -char * tao_yyreds[] = -{ - "-no such reduction-", - "start : definitions", - "definitions : definition definitions", - "definitions : /* empty */", - "definition : type_dcl", - "definition : type_dcl ';'", - "definition : const_dcl", - "definition : const_dcl ';'", - "definition : exception", - "definition : exception ';'", - "definition : interface_def", - "definition : interface_def ';'", - "definition : module", - "definition : module ';'", - "definition : error", - "definition : error ';'", - "module : IDL_MODULE", - "module : IDL_MODULE IDENTIFIER", - "module : IDL_MODULE IDENTIFIER '{'", - "module : IDL_MODULE IDENTIFIER '{' definitions", - "module : IDL_MODULE IDENTIFIER '{' definitions '}'", - "interface_def : interface", - "interface_def : forward", - "interface : interface_header", - "interface : interface_header '{'", - "interface : interface_header '{' exports", - "interface : interface_header '{' exports '}'", - "interface_decl : IDL_INTERFACE", - "interface_decl : IDL_INTERFACE id", - "interface_header : interface_decl inheritance_spec", - "inheritance_spec : ':'", - "inheritance_spec : ':' at_least_one_scoped_name", - "inheritance_spec : /* empty */", - "exports : exports export", - "exports : /* empty */", - "export : type_dcl", - "export : type_dcl ';'", - "export : const_dcl", - "export : const_dcl ';'", - "export : exception", - "export : exception ';'", - "export : attribute", - "export : attribute ';'", - "export : operation", - "export : operation ';'", - "export : error", - "export : error ';'", - "at_least_one_scoped_name : scoped_name scoped_names", - "scoped_names : scoped_names ','", - "scoped_names : scoped_names ',' scoped_name", - "scoped_names : /* empty */", - "scoped_name : id", - "scoped_name : IDL_SCOPE_DELIMITOR", - "scoped_name : IDL_SCOPE_DELIMITOR id", - "scoped_name : scoped_name IDL_SCOPE_DELIMITOR", - "scoped_name : scoped_name IDL_SCOPE_DELIMITOR id", - "id : IDENTIFIER", - "forward : interface_decl", - "const_dcl : IDL_CONST", - "const_dcl : IDL_CONST const_type", - "const_dcl : IDL_CONST const_type id", - "const_dcl : IDL_CONST const_type id '='", - "const_dcl : IDL_CONST const_type id '=' expression", - "const_type : integer_type", - "const_type : char_type", - "const_type : octet_type", - "const_type : boolean_type", - "const_type : floating_pt_type", - "const_type : string_type_spec", - "const_type : wstring_type_spec", - "const_type : scoped_name", - "expression : const_expr", - "const_expr : or_expr", - "or_expr : xor_expr", - "or_expr : or_expr '|' xor_expr", - "xor_expr : and_expr", - "xor_expr : xor_expr '^' and_expr", - "and_expr : shift_expr", - "and_expr : and_expr '&' shift_expr", - "shift_expr : add_expr", - "shift_expr : shift_expr IDL_LEFT_SHIFT add_expr", - "shift_expr : shift_expr IDL_RIGHT_SHIFT add_expr", - "add_expr : mult_expr", - "add_expr : add_expr '+' mult_expr", - "add_expr : add_expr '-' mult_expr", - "mult_expr : unary_expr", - "mult_expr : mult_expr '*' unary_expr", - "mult_expr : mult_expr '/' unary_expr", - "mult_expr : mult_expr '%' unary_expr", - "unary_expr : primary_expr", - "unary_expr : '+' primary_expr", - "unary_expr : '-' primary_expr", - "unary_expr : '~' primary_expr", - "primary_expr : scoped_name", - "primary_expr : literal", - "primary_expr : '(' const_expr ')'", - "literal : IDL_INTEGER_LITERAL", - "literal : IDL_STRING_LITERAL", - "literal : IDL_CHARACTER_LITERAL", - "literal : IDL_FLOATING_PT_LITERAL", - "literal : IDL_TRUETOK", - "literal : IDL_FALSETOK", - "positive_int_expr : const_expr", - "type_dcl : IDL_TYPEDEF", - "type_dcl : IDL_TYPEDEF type_declarator", - "type_dcl : struct_type", - "type_dcl : union_type", - "type_dcl : enum_type", - "type_dcl : IDL_NATIVE simple_declarator", - "type_declarator : type_spec", - "type_declarator : type_spec at_least_one_declarator", - "type_spec : simple_type_spec", - "type_spec : constructed_type_spec", - "simple_type_spec : base_type_spec", - "simple_type_spec : template_type_spec", - "simple_type_spec : scoped_name", - "base_type_spec : integer_type", - "base_type_spec : floating_pt_type", - "base_type_spec : char_type", - "base_type_spec : boolean_type", - "base_type_spec : octet_type", - "base_type_spec : any_type", - "template_type_spec : sequence_type_spec", - "template_type_spec : string_type_spec", - "template_type_spec : wstring_type_spec", - "constructed_type_spec : struct_type", - "constructed_type_spec : union_type", - "constructed_type_spec : enum_type", - "at_least_one_declarator : declarator declarators", - "declarators : declarators ','", - "declarators : declarators ',' declarator", - "declarators : /* empty */", - "declarator : simple_declarator", - "declarator : complex_declarator", - "at_least_one_simple_declarator : simple_declarator simple_declarators", - "simple_declarators : simple_declarators ','", - "simple_declarators : simple_declarators ',' simple_declarator", - "simple_declarators : /* empty */", - "simple_declarator : id", - "complex_declarator : array_declarator", - "integer_type : signed_int", - "integer_type : unsigned_int", - "signed_int : IDL_LONG", - "signed_int : IDL_LONG IDL_LONG", - "signed_int : IDL_SHORT", - "unsigned_int : IDL_UNSIGNED IDL_LONG", - "unsigned_int : IDL_UNSIGNED IDL_LONG IDL_LONG", - "unsigned_int : IDL_UNSIGNED IDL_SHORT", - "floating_pt_type : IDL_DOUBLE", - "floating_pt_type : IDL_FLOAT", - "floating_pt_type : IDL_LONG IDL_DOUBLE", - "char_type : IDL_CHAR", - "char_type : IDL_WCHAR", - "octet_type : IDL_OCTET", - "boolean_type : IDL_BOOLEAN", - "any_type : IDL_ANY", - "struct_type : IDL_STRUCT", - "struct_type : IDL_STRUCT id", - "struct_type : IDL_STRUCT id '{'", - "struct_type : IDL_STRUCT id '{' at_least_one_member", - "struct_type : IDL_STRUCT id '{' at_least_one_member '}'", - "at_least_one_member : member members", - "members : members member", - "members : /* empty */", - "member : type_spec", - "member : type_spec at_least_one_declarator", - "member : type_spec at_least_one_declarator ';'", - "member : error", - "member : error ';'", - "union_type : IDL_UNION", - "union_type : IDL_UNION id", - "union_type : IDL_UNION id IDL_SWITCH", - "union_type : IDL_UNION id IDL_SWITCH '('", - "union_type : IDL_UNION id IDL_SWITCH '(' switch_type_spec", - "union_type : IDL_UNION id IDL_SWITCH '(' switch_type_spec ')'", - "union_type : IDL_UNION id IDL_SWITCH '(' switch_type_spec ')' '{'", - "union_type : IDL_UNION id IDL_SWITCH '(' switch_type_spec ')' '{' at_least_one_case_branch", - "union_type : IDL_UNION id IDL_SWITCH '(' switch_type_spec ')' '{' at_least_one_case_branch '}'", - "switch_type_spec : integer_type", - "switch_type_spec : char_type", - "switch_type_spec : octet_type", - "switch_type_spec : boolean_type", - "switch_type_spec : enum_type", - "switch_type_spec : scoped_name", - "at_least_one_case_branch : case_branch case_branches", - "case_branches : case_branches case_branch", - "case_branches : /* empty */", - "case_branch : at_least_one_case_label", - "case_branch : at_least_one_case_label element_spec", - "case_branch : at_least_one_case_label element_spec ';'", - "case_branch : error", - "case_branch : error ';'", - "at_least_one_case_label : case_label case_labels", - "case_labels : case_labels case_label", - "case_labels : /* empty */", - "case_label : IDL_DEFAULT", - "case_label : IDL_DEFAULT ':'", - "case_label : IDL_CASE", - "case_label : IDL_CASE const_expr", - "case_label : IDL_CASE const_expr ':'", - "element_spec : type_spec", - "element_spec : type_spec declarator", - "enum_type : IDL_ENUM", - "enum_type : IDL_ENUM id", - "enum_type : IDL_ENUM id '{'", - "enum_type : IDL_ENUM id '{' at_least_one_enumerator", - "enum_type : IDL_ENUM id '{' at_least_one_enumerator '}'", - "at_least_one_enumerator : enumerator enumerators", - "enumerators : enumerators ','", - "enumerators : enumerators ',' enumerator", - "enumerators : /* empty */", - "enumerator : IDENTIFIER", - "sequence_type_spec : seq_head ','", - "sequence_type_spec : seq_head ',' positive_int_expr", - "sequence_type_spec : seq_head ',' positive_int_expr '>'", - "sequence_type_spec : seq_head '>'", - "seq_head : IDL_SEQUENCE", - "seq_head : IDL_SEQUENCE '<'", - "seq_head : IDL_SEQUENCE '<' simple_type_spec", - "string_type_spec : string_head '<'", - "string_type_spec : string_head '<' positive_int_expr", - "string_type_spec : string_head '<' positive_int_expr '>'", - "string_type_spec : string_head", - "string_head : IDL_STRING", - "wstring_type_spec : wstring_head '<'", - "wstring_type_spec : wstring_head '<' positive_int_expr", - "wstring_type_spec : wstring_head '<' positive_int_expr '>'", - "wstring_type_spec : wstring_head", - "wstring_head : IDL_WSTRING", - "array_declarator : id", - "array_declarator : id at_least_one_array_dim", - "at_least_one_array_dim : array_dim array_dims", - "array_dims : array_dims array_dim", - "array_dims : /* empty */", - "array_dim : '['", - "array_dim : '[' positive_int_expr", - "array_dim : '[' positive_int_expr ']'", - "attribute : opt_readonly IDL_ATTRIBUTE", - "attribute : opt_readonly IDL_ATTRIBUTE param_type_spec", - "attribute : opt_readonly IDL_ATTRIBUTE param_type_spec at_least_one_simple_declarator", - "opt_readonly : IDL_READONLY", - "opt_readonly : /* empty */", - "exception : IDL_EXCEPTION", - "exception : IDL_EXCEPTION id", - "exception : IDL_EXCEPTION id '{'", - "exception : IDL_EXCEPTION id '{' members", - "exception : IDL_EXCEPTION id '{' members '}'", - "operation : opt_op_attribute op_type_spec", - "operation : opt_op_attribute op_type_spec IDENTIFIER", - "operation : opt_op_attribute op_type_spec IDENTIFIER parameter_list", - "operation : opt_op_attribute op_type_spec IDENTIFIER parameter_list opt_raises", - "operation : opt_op_attribute op_type_spec IDENTIFIER parameter_list opt_raises opt_context", - "opt_op_attribute : IDL_ONEWAY", - "opt_op_attribute : IDL_IDEMPOTENT", - "opt_op_attribute : /* empty */", - "op_type_spec : param_type_spec", - "op_type_spec : IDL_VOID", - "parameter_list : '('", - "parameter_list : '(' ')'", - "parameter_list : '('", - "parameter_list : '(' at_least_one_parameter ')'", - "at_least_one_parameter : parameter parameters", - "parameters : parameters ','", - "parameters : parameters ',' parameter", - "parameters : /* empty */", - "parameter : direction", - "parameter : direction param_type_spec", - "parameter : direction param_type_spec declarator", - "param_type_spec : base_type_spec", - "param_type_spec : string_type_spec", - "param_type_spec : scoped_name", - "direction : IDL_IN", - "direction : IDL_OUT", - "direction : IDL_INOUT", - "opt_raises : IDL_RAISES", - "opt_raises : IDL_RAISES '('", - "opt_raises : IDL_RAISES '(' at_least_one_scoped_name ')'", - "opt_raises : /* empty */", - "opt_context : IDL_CONTEXT", - "opt_context : IDL_CONTEXT '('", - "opt_context : IDL_CONTEXT '(' at_least_one_string_literal ')'", - "opt_context : /* empty */", - "at_least_one_string_literal : IDL_STRING_LITERAL string_literals", - "string_literals : string_literals ','", - "string_literals : string_literals ',' IDL_STRING_LITERAL", - "string_literals : /* empty */", -}; -#endif /* TAO_YYDEBUG */ -# line 1 "/usr/ccs/bin/yaccpar" -/* - * Copyright (c) 1993 by Sun Microsystems, Inc. - */ - -#if !defined (ACE_WIN32) -#pragma ident "@(#)yaccpar 6.12 93/06/07 SMI" -#endif /* ACE_WIN32 */ - -/* -** Skeleton parser driver for yacc output -*/ - -/* -** yacc user known macros and defines -*/ -#define TAO_YYERROR goto tao_yyerrlab -#define TAO_YYACCEPT return(0) -#define TAO_YYABORT return(1) -#define TAO_YYBACKUP( newtoken, newvalue )\ -{\ - if ( tao_yychar >= 0 || ( tao_yyr2[ tao_yytmp ] >> 1 ) != 1 )\ - {\ - tao_yyerror( "syntax error - cannot backup" );\ - goto tao_yyerrlab;\ - }\ - tao_yychar = newtoken;\ - tao_yystate = *tao_yyps;\ - tao_yylval = newvalue;\ - goto tao_yynewstate;\ -} -#define TAO_YYRECOVERING() (!!tao_yyerrflag) -#define TAO_YYNEW(type) malloc(sizeof(type) * tao_yynewmax) -#define TAO_YYCOPY(to, from, type) \ - (type *) memcpy(to, (char *) from, tao_yynewmax * sizeof(type)) -#define TAO_YYENLARGE( from, type) \ - (type *) realloc((char *) from, tao_yynewmax * sizeof(type)) -#ifndef TAO_YYDEBUG -# define TAO_YYDEBUG 1 /* make debugging available */ -#endif - -/* -** user known globals -*/ -int tao_yydebug; /* set to 1 to get debugging */ - -/* -** driver internal defines -*/ -#define TAO_YYFLAG (-10000000) - -/* -** global variables used by the parser -*/ -TAO_YYSTYPE *tao_yypv; /* top of value stack */ -int *tao_yyps; /* top of state stack */ - -int tao_yystate; /* current state */ -int tao_yytmp; /* extra var (lasts between blocks) */ - -int tao_yynerrs; /* number of errors */ -int tao_yyerrflag; /* error recovery flag */ -int tao_yychar; /* current input token number */ - - - -#ifdef TAO_YYNMBCHARS -#define TAO_YYLEX() tao_yycvtok(tao_yylex()) -/* -** tao_yycvtok - return a token if i is a wchar_t value that exceeds 255. -** If i<255, i itself is the token. If i>255 but the neither -** of the 30th or 31st bit is on, i is already a token. -*/ -#if defined(__STDC__) || defined(__cplusplus) -int tao_yycvtok(int i) -#else -int tao_yycvtok(i) int i; -#endif -{ - int first = 0; - int last = TAO_YYNMBCHARS - 1; - int mid; - wchar_t j; - - if(i&0x60000000){/*Must convert to a token. */ - if( tao_yymbchars[last].character < i ){ - return i;/*Giving up*/ - } - while ((last>=first)&&(first>=0)) {/*Binary search loop*/ - mid = (first+last)/2; - j = tao_yymbchars[mid].character; - if( j==i ){/*Found*/ - return tao_yymbchars[mid].tvalue; - }else if( j= 0; - tao_yy_i++ ) - { - if ( tao_yytoks[tao_yy_i].t_val == tao_yychar ) - break; - } - printf( "%s\n", tao_yytoks[tao_yy_i].t_name ); - } - } -#endif /* TAO_YYDEBUG */ - if ( ++tao_yy_ps >= &tao_yys[ tao_yymaxdepth ] ) /* room on stack? */ - { - /* - ** reallocate and recover. Note that pointers - ** have to be reset, or bad things will happen - */ - int tao_yyps_index = (tao_yy_ps - tao_yys); - int tao_yypv_index = (tao_yy_pv - tao_yyv); - int tao_yypvt_index = (tao_yypvt - tao_yyv); - int tao_yynewmax; -#ifdef TAO_YYEXPAND - tao_yynewmax = TAO_YYEXPAND(tao_yymaxdepth); -#else - tao_yynewmax = 2 * tao_yymaxdepth; /* double table size */ - if (tao_yymaxdepth == TAO_YYMAXDEPTH) /* first time growth */ - { - char *newtao_yys = (char *)TAO_YYNEW(int); - char *newtao_yyv = (char *)TAO_YYNEW(TAO_YYSTYPE); - if (newtao_yys != 0 && newtao_yyv != 0) - { - tao_yys = TAO_YYCOPY(newtao_yys, tao_yys, int); - tao_yyv = TAO_YYCOPY(newtao_yyv, tao_yyv, TAO_YYSTYPE); - } - else - tao_yynewmax = 0; /* failed */ - } - else /* not first time */ - { - tao_yys = TAO_YYENLARGE(tao_yys, int); - tao_yyv = TAO_YYENLARGE(tao_yyv, TAO_YYSTYPE); - if (tao_yys == 0 || tao_yyv == 0) - tao_yynewmax = 0; /* failed */ - } -#endif - if (tao_yynewmax <= tao_yymaxdepth) /* tables not expanded */ - { - tao_yyerror( "yacc stack overflow" ); - TAO_YYABORT; - } - tao_yymaxdepth = tao_yynewmax; - - tao_yy_ps = tao_yys + tao_yyps_index; - tao_yy_pv = tao_yyv + tao_yypv_index; - tao_yypvt = tao_yyv + tao_yypvt_index; - } - *tao_yy_ps = tao_yy_state; - *++tao_yy_pv = tao_yyval; - - /* - ** we have a new state - find out what to do - */ - tao_yy_newstate: - if ( ( tao_yy_n = tao_yypact[ tao_yy_state ] ) <= TAO_YYFLAG ) - goto tao_yydefault; /* simple state */ -#if TAO_YYDEBUG - /* - ** if debugging, need to mark whether new token grabbed - */ - tao_yytmp = tao_yychar < 0; -#endif - if ( ( tao_yychar < 0 ) && ( ( tao_yychar = TAO_YYLEX() ) < 0 ) ) - tao_yychar = 0; /* reached EOF */ -#if TAO_YYDEBUG - if ( tao_yydebug && tao_yytmp ) - { - register int tao_yy_i; - - printf( "Received token " ); - if ( tao_yychar == 0 ) - printf( "end-of-file\n" ); - else if ( tao_yychar < 0 ) - printf( "-none-\n" ); - else - { - for ( tao_yy_i = 0; tao_yytoks[tao_yy_i].t_val >= 0; - tao_yy_i++ ) - { - if ( tao_yytoks[tao_yy_i].t_val == tao_yychar ) - break; - } - printf( "%s\n", tao_yytoks[tao_yy_i].t_name ); - } - } -#endif /* TAO_YYDEBUG */ - if ( ( ( tao_yy_n += tao_yychar ) < 0 ) || ( tao_yy_n >= TAO_YYLAST ) ) - goto tao_yydefault; - if ( tao_yychk[ tao_yy_n = tao_yyact[ tao_yy_n ] ] == tao_yychar ) /*valid shift*/ - { - tao_yychar = -1; - tao_yyval = tao_yylval; - tao_yy_state = tao_yy_n; - if ( tao_yyerrflag > 0 ) - tao_yyerrflag--; - goto tao_yy_stack; - } - - tao_yydefault: - if ( ( tao_yy_n = tao_yydef[ tao_yy_state ] ) == -2 ) - { -#if TAO_YYDEBUG - tao_yytmp = tao_yychar < 0; -#endif - if ( ( tao_yychar < 0 ) && ( ( tao_yychar = TAO_YYLEX() ) < 0 ) ) - tao_yychar = 0; /* reached EOF */ -#if TAO_YYDEBUG - if ( tao_yydebug && tao_yytmp ) - { - register int tao_yy_i; - - printf( "Received token " ); - if ( tao_yychar == 0 ) - printf( "end-of-file\n" ); - else if ( tao_yychar < 0 ) - printf( "-none-\n" ); - else - { - for ( tao_yy_i = 0; - tao_yytoks[tao_yy_i].t_val >= 0; - tao_yy_i++ ) - { - if ( tao_yytoks[tao_yy_i].t_val - == tao_yychar ) - { - break; - } - } - printf( "%s\n", tao_yytoks[tao_yy_i].t_name ); - } - } -#endif /* TAO_YYDEBUG */ - /* - ** look through exception table - */ - { - register int *tao_yyxi = tao_yyexca; - - while ( ( *tao_yyxi != -1 ) || - ( tao_yyxi[1] != tao_yy_state ) ) - { - tao_yyxi += 2; - } - while ( ( *(tao_yyxi += 2) >= 0 ) && - ( *tao_yyxi != tao_yychar ) ) - ; - if ( ( tao_yy_n = tao_yyxi[1] ) < 0 ) - TAO_YYACCEPT; - } - } - - /* - ** check for syntax error - */ - if ( tao_yy_n == 0 ) /* have an error */ - { - /* no worry about speed here! */ - switch ( tao_yyerrflag ) - { - case 0: /* new error */ - tao_yyerror( "syntax error" ); - goto skip_init; - tao_yyerrlab: - /* - ** get globals into registers. - ** we have a user generated syntax type error - */ - tao_yy_pv = tao_yypv; - tao_yy_ps = tao_yyps; - tao_yy_state = tao_yystate; - skip_init: - tao_yynerrs++; - /* FALLTHRU */ - case 1: - case 2: /* incompletely recovered error */ - /* try again... */ - tao_yyerrflag = 3; - /* - ** find state where "error" is a legal - ** shift action - */ - while ( tao_yy_ps >= tao_yys ) - { - tao_yy_n = tao_yypact[ *tao_yy_ps ] + TAO_YYERRCODE; - if ( tao_yy_n >= 0 && tao_yy_n < TAO_YYLAST && - tao_yychk[tao_yyact[tao_yy_n]] == TAO_YYERRCODE) { - /* - ** simulate shift of "error" - */ - tao_yy_state = tao_yyact[ tao_yy_n ]; - goto tao_yy_stack; - } - /* - ** current state has no shift on - ** "error", pop stack - */ -#if TAO_YYDEBUG -# define _POP_ "Error recovery pops state %d, uncovers state %d\n" - if ( tao_yydebug ) - printf( _POP_, *tao_yy_ps, - tao_yy_ps[-1] ); -# undef _POP_ -#endif - tao_yy_ps--; - tao_yy_pv--; - } - /* - ** there is no state on stack with "error" as - ** a valid shift. give up. - */ - TAO_YYABORT; - case 3: /* no shift yet; eat a token */ -#if TAO_YYDEBUG - /* - ** if debugging, look up token in list of - ** pairs. 0 and negative shouldn't occur, - ** but since timing doesn't matter when - ** debugging, it doesn't hurt to leave the - ** tests here. - */ - if ( tao_yydebug ) - { - register int tao_yy_i; - - printf( "Error recovery discards " ); - if ( tao_yychar == 0 ) - printf( "token end-of-file\n" ); - else if ( tao_yychar < 0 ) - printf( "token -none-\n" ); - else - { - for ( tao_yy_i = 0; - tao_yytoks[tao_yy_i].t_val >= 0; - tao_yy_i++ ) - { - if ( tao_yytoks[tao_yy_i].t_val - == tao_yychar ) - { - break; - } - } - printf( "token %s\n", - tao_yytoks[tao_yy_i].t_name ); - } - } -#endif /* TAO_YYDEBUG */ - if ( tao_yychar == 0 ) /* reached EOF. quit */ - TAO_YYABORT; - tao_yychar = -1; - goto tao_yy_newstate; - } - }/* end if ( tao_yy_n == 0 ) */ - /* - ** reduction by production tao_yy_n - ** put stack tops, etc. so things right after switch - */ -#if TAO_YYDEBUG - /* - ** if debugging, print the string that is the user's - ** specification of the reduction which is just about - ** to be done. - */ - if ( tao_yydebug ) - printf( "Reduce by (%d) \"%s\"\n", - tao_yy_n, tao_yyreds[ tao_yy_n ] ); -#endif - tao_yytmp = tao_yy_n; /* value to switch over */ - tao_yypvt = tao_yy_pv; /* $vars top of value stack */ - /* - ** Look in goto table for next state - ** Sorry about using tao_yy_state here as temporary - ** register variable, but why not, if it works... - ** If tao_yyr2[ tao_yy_n ] doesn't have the low order bit - ** set, then there is no action to be done for - ** this reduction. So, no saving & unsaving of - ** registers done. The only difference between the - ** code just after the if and the body of the if is - ** the goto tao_yy_stack in the body. This way the test - ** can be made before the choice of what to do is needed. - */ - { - /* length of production doubled with extra bit */ - register int tao_yy_len = tao_yyr2[ tao_yy_n ]; - - if ( !( tao_yy_len & 01 ) ) - { - tao_yy_len >>= 1; - tao_yyval = ( tao_yy_pv -= tao_yy_len )[1]; /* $$ = $1 */ - tao_yy_state = tao_yypgo[ tao_yy_n = tao_yyr1[ tao_yy_n ] ] + - *( tao_yy_ps -= tao_yy_len ) + 1; - if ( tao_yy_state >= TAO_YYLAST || - tao_yychk[ tao_yy_state = - tao_yyact[ tao_yy_state ] ] != -tao_yy_n ) - { - tao_yy_state = tao_yyact[ tao_yypgo[ tao_yy_n ] ]; - } - goto tao_yy_stack; - } - tao_yy_len >>= 1; - tao_yyval = ( tao_yy_pv -= tao_yy_len )[1]; /* $$ = $1 */ - tao_yy_state = tao_yypgo[ tao_yy_n = tao_yyr1[ tao_yy_n ] ] + - *( tao_yy_ps -= tao_yy_len ) + 1; - if ( tao_yy_state >= TAO_YYLAST || - tao_yychk[ tao_yy_state = tao_yyact[ tao_yy_state ] ] != -tao_yy_n ) - { - tao_yy_state = tao_yyact[ tao_yypgo[ tao_yy_n ] ]; - } - } - /* save until reenter driver code */ - tao_yystate = tao_yy_state; - tao_yyps = tao_yy_ps; - tao_yypv = tao_yy_pv; - } - /* - ** code supplied by user is placed in this switch - */ - switch( tao_yytmp ) - { - -case 4: -# line 240 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_TypeDeclSeen); - } break; -case 5: -# line 244 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } break; -case 6: -# line 248 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ConstDeclSeen); - } break; -case 7: -# line 252 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } break; -case 8: -# line 256 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptDeclSeen); - } break; -case 9: -# line 260 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } break; -case 10: -# line 264 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceDeclSeen); - } break; -case 11: -# line 268 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } break; -case 12: -# line 272 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleDeclSeen); - } break; -case 13: -# line 276 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } break; -case 14: -# line 280 "idl.tao_yy" -{ - idl_global->err()->syntax_error(idl_global->parse_state()); - } break; -case 15: -# line 284 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - tao_yyerrok; - } break; -case 16: -# line 291 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleSeen); - } break; -case 17: -# line 295 "idl.tao_yy" -{ - UTL_ScopedName *n = - new UTL_ScopedName(new Identifier(tao_yypvt[-0].strval, 1, 0, I_FALSE), NULL); - AST_Module *m = NULL; - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleIDSeen); - /* - * Make a new module and add it to the enclosing scope - */ - if (s != NULL) { - m = idl_global->gen()->create_module(n, p); - (void) s->fe_add_module(m); - } - /* - * Push it on the stack - */ - idl_global->scopes()->push(m); - } break; -case 18: -# line 316 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleSqSeen); - } break; -case 19: -# line 320 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleBodySeen); - } break; -case 20: -# line 324 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleQsSeen); - /* - * Finished with this module - pop it from the scope stack - */ - idl_global->scopes()->pop(); - } break; -case 23: -# line 340 "idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Interface *i = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - AST_Decl *d = NULL; - AST_Interface *fd = NULL; - - ACE_UNUSED_ARG (v); - - /* - * Make a new interface node and add it to its enclosing scope - */ - if (s != NULL && tao_yypvt[-0].ihval != NULL) { - i = idl_global->gen()->create_interface(tao_yypvt[-0].ihval->interface_name(), - tao_yypvt[-0].ihval->inherits(), - tao_yypvt[-0].ihval->n_inherits(), - p); - if (i != NULL && - (d = s->lookup_by_name(i->name(), I_FALSE)) != NULL) { - /* - * See if we're defining a forward declared interface. - */ - if (d->node_type() == AST_Decl::NT_interface) { - /* - * Narrow to an interface - */ - fd = AST_Interface::narrow_from_decl(d); - /* - * Successful? - */ - if (fd == NULL) { - /* - * Should we give an error here? - */ - } - /* - * If it is a forward declared interface.. - */ - else if (!fd->is_defined()) { - /* - * Check if redefining in same scope - */ - if (fd->defined_in() != s) { - idl_global->err() - ->error3(UTL_Error::EIDL_SCOPE_CONFLICT, - i, - fd, - ScopeAsDecl(s)); - } - /* - * All OK, do the redefinition - */ - else { - fd->set_inherits(tao_yypvt[-0].ihval->inherits()); - fd->set_n_inherits(tao_yypvt[-0].ihval->n_inherits()); - /* - * Update place of definition - */ - fd->set_imported(idl_global->imported()); - fd->set_in_main_file(idl_global->in_main_file()); - fd->set_line(idl_global->lineno()); - fd->set_file_name(idl_global->filename()); - fd->add_pragmas(p); - /* - * Use full definition node - */ - delete i; - i = fd; - } - } - } - } - /* - * Add the interface to its definition scope - */ - (void) s->fe_add_interface(i); - } - /* - * Push it on the scope stack - */ - idl_global->scopes()->push(i); - } break; -case 24: -# line 424 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceSqSeen); - } break; -case 25: -# line 428 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceBodySeen); - } break; -case 26: -# line 432 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceQsSeen); - /* - * Done with this interface - pop it off the scopes stack - */ - idl_global->scopes()->pop(); - } break; -case 27: -# line 443 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceSeen); - } break; -case 28: -# line 447 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceIDSeen); - tao_yyval.idval = tao_yypvt[-0].idval; - } break; -case 29: -# line 455 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InheritSpecSeen); - /* - * Create an AST representation of the information in the header - * part of an interface - this representation contains a computed - * list of all interfaces which this interface inherits from, - * recursively - */ - tao_yyval.ihval = new FE_InterfaceHeader(new UTL_ScopedName(tao_yypvt[-1].idval, NULL), tao_yypvt[-0].nlval); - } break; -case 30: -# line 469 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InheritColonSeen); - } break; -case 31: -# line 473 "idl.tao_yy" -{ - tao_yyval.nlval = tao_yypvt[-0].nlval; - } break; -case 32: -# line 477 "idl.tao_yy" -{ - tao_yyval.nlval = NULL; - } break; -case 35: -# line 489 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_TypeDeclSeen); - } break; -case 36: -# line 493 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } break; -case 37: -# line 497 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ConstDeclSeen); - } break; -case 38: -# line 501 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } break; -case 39: -# line 505 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptDeclSeen); - } break; -case 40: -# line 509 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } break; -case 41: -# line 513 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_AttrDeclSeen); - } break; -case 42: -# line 517 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } break; -case 43: -# line 521 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpDeclSeen); - } break; -case 44: -# line 525 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } break; -case 45: -# line 529 "idl.tao_yy" -{ - idl_global->err()->syntax_error(idl_global->parse_state()); - } break; -case 46: -# line 533 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - tao_yyerrok; - } break; -case 47: -# line 541 "idl.tao_yy" -{ - tao_yyval.nlval = new UTL_NameList(tao_yypvt[-1].idlist, tao_yypvt[-0].nlval); - } break; -case 48: -# line 549 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SNListCommaSeen); - } break; -case 49: -# line 553 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ScopedNameSeen); - - if (tao_yypvt[-3].nlval == NULL) - tao_yyval.nlval = new UTL_NameList(tao_yypvt[-0].idlist, NULL); - else { - tao_yypvt[-3].nlval->nconc(new UTL_NameList(tao_yypvt[-0].idlist, NULL)); - tao_yyval.nlval = tao_yypvt[-3].nlval; - } - } break; -case 50: -# line 564 "idl.tao_yy" -{ - tao_yyval.nlval = NULL; - } break; -case 51: -# line 571 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SN_IDSeen); - - tao_yyval.idlist = new UTL_IdList(tao_yypvt[-0].idval, NULL); - } break; -case 52: -# line 577 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ScopeDelimSeen); - } break; -case 53: -# line 581 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SN_IDSeen); - - tao_yyval.idlist = new UTL_IdList(new Identifier(tao_yypvt[-2].strval, 1, 0, I_FALSE), - new UTL_IdList(tao_yypvt[-0].idval, NULL)); - } break; -case 54: -# line 589 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ScopeDelimSeen); - } break; -case 55: -# line 593 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SN_IDSeen); - - tao_yypvt[-3].idlist->nconc(new UTL_IdList(tao_yypvt[-0].idval, NULL)); - tao_yyval.idlist = tao_yypvt[-3].idlist; - } break; -case 56: -# line 602 "idl.tao_yy" -{ - tao_yyval.idval = new Identifier(tao_yypvt[-0].strval, 1, 0, I_FALSE); - } break; -case 57: -# line 609 "idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName(tao_yypvt[-0].idval, NULL); - AST_InterfaceFwd *f = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_ForwardDeclSeen); - /* - * Create a node representing a forward declaration of an - * interface. Store it in the enclosing scope - */ - if (s != NULL) { - f = idl_global->gen()->create_interface_fwd(n, p); - (void) s->fe_add_interface_fwd(f); - } - } break; -case 58: -# line 629 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ConstSeen); - } break; -case 59: -# line 633 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ConstTypeSeen); - } break; -case 60: -# line 637 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ConstIDSeen); - } break; -case 61: -# line 641 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ConstAssignSeen); - } break; -case 62: -# line 645 "idl.tao_yy" -{ - UTL_ScopedName *n = new UTL_ScopedName(tao_yypvt[-4].idval, NULL); - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Constant *c = NULL; - UTL_StrList *p = idl_global->pragmas(); - AST_Decl *v = NULL; - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_ConstExprSeen); - /* - * Create a node representing a constant declaration. Store - * it in the enclosing scope - */ - if (tao_yypvt[-0].exval != NULL && s != NULL) { - if (tao_yypvt[-0].exval->coerce(tao_yypvt[-6].etval) == NULL) - idl_global->err()->coercion_error(tao_yypvt[-0].exval, tao_yypvt[-6].etval); - else { - c = - idl_global->gen()->create_constant(tao_yypvt[-6].etval, tao_yypvt[-0].exval, n, p); - (void) s->fe_add_constant(c); - } - } - } break; -case 68: -# line 678 "idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_string; - } break; -case 69: -# line 682 "idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_wstring; - } break; -case 70: -# line 686 "idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Decl *d = NULL; - AST_PredefinedType *c = NULL; - AST_Typedef *t = NULL; - - /* - * If the constant's type is a scoped name, it must resolve - * to a scalar constant type - */ - if (s != NULL && (d = s->lookup_by_name(tao_yypvt[-0].idlist, I_TRUE)) != NULL) { - /* - * Look through typedefs - */ - while (d->node_type() == AST_Decl::NT_typedef) { - t = AST_Typedef::narrow_from_decl(d); - if (t == NULL) - break; - d = t->base_type(); - } - if (d == NULL) - tao_yyval.etval = AST_Expression::EV_any; - else if (d->node_type() == AST_Decl::NT_pre_defined) { - c = AST_PredefinedType::narrow_from_decl(d); - if (c != NULL) { - tao_yyval.etval = idl_global->PredefinedTypeToExprType(c->pt()); - } else { - tao_yyval.etval = AST_Expression::EV_any; - } - } else - tao_yyval.etval = AST_Expression::EV_any; - } else - tao_yyval.etval = AST_Expression::EV_any; - } break; -case 74: -# line 728 "idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_or, tao_yypvt[-2].exval, tao_yypvt[-0].exval); - } break; -case 76: -# line 736 "idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_xor, tao_yypvt[-2].exval, tao_yypvt[-0].exval); - } break; -case 78: -# line 744 "idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_and, tao_yypvt[-2].exval, tao_yypvt[-0].exval); - } break; -case 80: -# line 752 "idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_right,tao_yypvt[-2].exval,tao_yypvt[-0].exval); - } break; -case 81: -# line 756 "idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_left,tao_yypvt[-2].exval,tao_yypvt[-0].exval); - } break; -case 83: -# line 764 "idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_add, tao_yypvt[-2].exval, tao_yypvt[-0].exval); - } break; -case 84: -# line 768 "idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_minus,tao_yypvt[-2].exval,tao_yypvt[-0].exval); - } break; -case 86: -# line 776 "idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_mul, tao_yypvt[-2].exval, tao_yypvt[-0].exval); - } break; -case 87: -# line 780 "idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_div, tao_yypvt[-2].exval, tao_yypvt[-0].exval); - } break; -case 88: -# line 784 "idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_mod, tao_yypvt[-2].exval, tao_yypvt[-0].exval); - } break; -case 90: -# line 792 "idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_u_plus, - tao_yypvt[-0].exval, - NULL); - } break; -case 91: -# line 798 "idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_u_minus, - tao_yypvt[-0].exval, - NULL); - } break; -case 92: -# line 804 "idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_bit_neg, - tao_yypvt[-0].exval, - NULL); - } break; -case 93: -# line 813 "idl.tao_yy" -{ - /* - * An expression which is a scoped name is not resolved now, - * but only when it is evaluated (such as when it is assigned - * as a constant value) - */ - tao_yyval.exval = idl_global->gen()->create_expr(tao_yypvt[-0].idlist); - } break; -case 95: -# line 823 "idl.tao_yy" -{ - tao_yyval.exval = tao_yypvt[-1].exval; - } break; -case 96: -# line 830 "idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(tao_yypvt[-0].ival); - } break; -case 97: -# line 834 "idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(tao_yypvt[-0].sval); - } break; -case 98: -# line 838 "idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(tao_yypvt[-0].cval); - } break; -case 99: -# line 842 "idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(tao_yypvt[-0].dval); - } break; -case 100: -# line 846 "idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr((idl_bool) I_TRUE, - AST_Expression::EV_bool); - } break; -case 101: -# line 851 "idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr((idl_bool) I_FALSE, - AST_Expression::EV_bool); - } break; -case 102: -# line 859 "idl.tao_yy" -{ - tao_yypvt[-0].exval->evaluate(AST_Expression::EK_const); - tao_yyval.exval = idl_global->gen()->create_expr(tao_yypvt[-0].exval, AST_Expression::EV_ulong); - } break; -case 103: -# line 867 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_TypedefSeen); - } break; -case 104: -# line 870 "idl.tao_yy" -{tao_yyval.ival = 0;} break; -case 105: -# line 871 "idl.tao_yy" -{ tao_yyval.ival = 0;} break; -case 106: -# line 872 "idl.tao_yy" -{ tao_yyval.ival = 0;} break; -case 107: -# line 873 "idl.tao_yy" -{ tao_yyval.ival = 0;} break; -case 108: -# line 875 "idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Native *node = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_NativeSeen); - /* - * Create a node representing a Native and add it to its - * enclosing scope - */ - if (s != NULL) { - node = idl_global->gen()->create_native (tao_yypvt[-0].deval->name (), p); - /* - * Add it to its defining scope - */ - (void) s->fe_add_native (node); - } - } break; -case 109: -# line 900 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_TypeSpecSeen); - } break; -case 110: -# line 904 "idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_DecllistActiveIterator *l; - FE_Declarator *d = NULL; - AST_Typedef *t = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_DeclaratorsSeen); - /* - * Create a list of type renamings. Add them to the - * enclosing scope - */ - if (s != NULL && tao_yypvt[-2].dcval != NULL && tao_yypvt[-0].dlval != NULL) { - l = new UTL_DecllistActiveIterator(tao_yypvt[-0].dlval); - for (;!(l->is_done()); l->next()) { - d = l->item(); - if (d == NULL) - continue; - AST_Type * tp = d->compose(tao_yypvt[-2].dcval); - if (tp == NULL) - continue; - t = idl_global->gen()->create_typedef(tp, d->name(), p); - (void) s->fe_add_typedef(t); - } - delete l; - } - } break; -case 113: -# line 943 "idl.tao_yy" -{ - tao_yyval.dcval = idl_global->scopes()->bottom()->lookup_primitive_type(tao_yypvt[-0].etval); - } break; -case 115: -# line 948 "idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Decl *d = NULL; - - if (s != NULL) - d = s->lookup_by_name(tao_yypvt[-0].idlist, I_TRUE); - if (d == NULL) - idl_global->err()->lookup_error(tao_yypvt[-0].idlist); - tao_yyval.dcval = d; - } break; -case 128: -# line 983 "idl.tao_yy" -{ - tao_yyval.dlval = new UTL_DeclList(tao_yypvt[-1].deval, tao_yypvt[-0].dlval); - } break; -case 129: -# line 991 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DeclsCommaSeen); - } break; -case 130: -# line 995 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DeclsDeclSeen); - - if (tao_yypvt[-3].dlval == NULL) - tao_yyval.dlval = new UTL_DeclList(tao_yypvt[-0].deval, NULL); - else { - tao_yypvt[-3].dlval->nconc(new UTL_DeclList(tao_yypvt[-0].deval, NULL)); - tao_yyval.dlval = tao_yypvt[-3].dlval; - } - } break; -case 131: -# line 1006 "idl.tao_yy" -{ - tao_yyval.dlval = NULL; - } break; -case 134: -# line 1018 "idl.tao_yy" -{ - tao_yyval.dlval = new UTL_DeclList(tao_yypvt[-1].deval, tao_yypvt[-0].dlval); - } break; -case 135: -# line 1026 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DeclsCommaSeen); - } break; -case 136: -# line 1030 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DeclsDeclSeen); - - if (tao_yypvt[-3].dlval == NULL) - tao_yyval.dlval = new UTL_DeclList(tao_yypvt[-0].deval, NULL); - else { - tao_yypvt[-3].dlval->nconc(new UTL_DeclList(tao_yypvt[-0].deval, NULL)); - tao_yyval.dlval = tao_yypvt[-3].dlval; - } - } break; -case 137: -# line 1041 "idl.tao_yy" -{ - tao_yyval.dlval = NULL; - } break; -case 138: -# line 1048 "idl.tao_yy" -{ - tao_yyval.deval = new FE_Declarator(new UTL_ScopedName(tao_yypvt[-0].idval, NULL), - FE_Declarator::FD_simple, NULL); - } break; -case 139: -# line 1056 "idl.tao_yy" -{ - tao_yyval.deval = new FE_Declarator(new UTL_ScopedName(tao_yypvt[-0].dcval->local_name(), NULL), - FE_Declarator::FD_complex, - tao_yypvt[-0].dcval); - } break; -case 142: -# line 1070 "idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_long; - } break; -case 143: -# line 1074 "idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_longlong; - } break; -case 144: -# line 1078 "idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_short; - } break; -case 145: -# line 1085 "idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_ulong; - } break; -case 146: -# line 1089 "idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_ulonglong; - } break; -case 147: -# line 1093 "idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_ushort; - } break; -case 148: -# line 1100 "idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_double; - } break; -case 149: -# line 1104 "idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_float; - } break; -case 150: -# line 1108 "idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_longdouble; - } break; -case 151: -# line 1115 "idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_char; - } break; -case 152: -# line 1119 "idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_wchar; - } break; -case 153: -# line 1126 "idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_octet; - } break; -case 154: -# line 1133 "idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_bool; - } break; -case 155: -# line 1140 "idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_any; - } break; -case 156: -# line 1147 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StructSeen); - } break; -case 157: -# line 1151 "idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName(tao_yypvt[-0].idval, NULL); - AST_Structure *d = NULL; - UTL_StrList *p = idl_global->pragmas(); - AST_Decl *v = NULL; - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_StructIDSeen); - /* - * Create a node representing a struct declaration. Add it - * to the enclosing scope - */ - if (s != NULL) { - d = idl_global->gen()->create_structure(n, p); - (void) s->fe_add_structure(d); - } - /* - * Push the scope of the struct on the scopes stack - */ - idl_global->scopes()->push(d); - } break; -case 158: -# line 1175 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StructSqSeen); - } break; -case 159: -# line 1179 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StructBodySeen); - } break; -case 160: -# line 1183 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StructQsSeen); - /* - * Done with this struct. Pop its scope off the scopes stack - */ - if (idl_global->scopes()->top() == NULL) - tao_yyval.dcval = NULL; - else { - tao_yyval.dcval = - AST_Structure::narrow_from_scope( - idl_global->scopes()->top_non_null()); - idl_global->scopes()->pop(); - } - } break; -case 164: -# line 1208 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_MemberTypeSeen); - } break; -case 165: -# line 1212 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_MemberDeclsSeen); - } break; -case 166: -# line 1216 "idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_DecllistActiveIterator *l = NULL; - FE_Declarator *d = NULL; - AST_Field *f = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_MemberDeclsCompleted); - /* - * Check for illegal recursive use of type - */ - if (tao_yypvt[-4].dcval != NULL && AST_illegal_recursive_type(tao_yypvt[-4].dcval)) - idl_global->err()->error1(UTL_Error::EIDL_RECURSIVE_TYPE, tao_yypvt[-4].dcval); - /* - * Create a node representing a struct or exception member - * Add it to the enclosing scope - */ - else if (s != NULL && tao_yypvt[-4].dcval != NULL && tao_yypvt[-2].dlval != NULL) { - l = new UTL_DecllistActiveIterator(tao_yypvt[-2].dlval); - for (;!(l->is_done()); l->next()) { - d = l->item(); - if (d == NULL) - continue; - AST_Type *tp = d->compose(tao_yypvt[-4].dcval); - if (tp == NULL) - continue; - f = idl_global->gen()->create_field(tp, d->name(), p); - (void) s->fe_add_field(f); - } - delete l; - } - } break; -case 167: -# line 1249 "idl.tao_yy" -{ - idl_global->err()->syntax_error(idl_global->parse_state()); - } break; -case 168: -# line 1253 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - tao_yyerrok; - } break; -case 169: -# line 1261 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionSeen); - } break; -case 170: -# line 1265 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionIDSeen); - } break; -case 171: -# line 1269 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SwitchSeen); - } break; -case 172: -# line 1273 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SwitchOpenParSeen); - } break; -case 173: -# line 1277 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SwitchTypeSeen); - } break; -case 174: -# line 1281 "idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName(tao_yypvt[-8].idval, NULL); - AST_Union *u = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_SwitchCloseParSeen); - /* - * Create a node representing a union. Add it to its enclosing - * scope - */ - if (tao_yypvt[-2].dcval != NULL && s != NULL) { - AST_ConcreteType *tp = AST_ConcreteType::narrow_from_decl(tao_yypvt[-2].dcval); - if (tp == NULL) { - idl_global->err()->not_a_type(tao_yypvt[-2].dcval); - } else { - u = idl_global->gen()->create_union(tp, n, p); - (void) s->fe_add_union(u); - } - } - /* - * Push the scope of the union on the scopes stack - */ - idl_global->scopes()->push(u); - } break; -case 175: -# line 1310 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionSqSeen); - } break; -case 176: -# line 1314 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionBodySeen); - } break; -case 177: -# line 1318 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionQsSeen); - /* - * Done with this union. Pop its scope from the scopes stack - */ - if (idl_global->scopes()->top() == NULL) - tao_yyval.dcval = NULL; - else { - tao_yyval.dcval = - AST_Union::narrow_from_scope( - idl_global->scopes()->top_non_null()); - idl_global->scopes()->pop(); - } - } break; -case 178: -# line 1336 "idl.tao_yy" -{ - tao_yyval.dcval = idl_global->scopes()->bottom()->lookup_primitive_type(tao_yypvt[-0].etval); - } break; -case 179: -# line 1340 "idl.tao_yy" -{ - tao_yyval.dcval = idl_global->scopes()->bottom()->lookup_primitive_type(tao_yypvt[-0].etval); - } break; -case 180: -# line 1344 "idl.tao_yy" -{ - tao_yyval.dcval = idl_global->scopes()->bottom()->lookup_primitive_type(tao_yypvt[-0].etval); - } break; -case 181: -# line 1348 "idl.tao_yy" -{ - tao_yyval.dcval = idl_global->scopes()->bottom()->lookup_primitive_type(tao_yypvt[-0].etval); - } break; -case 183: -# line 1353 "idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Decl *d = NULL; - AST_PredefinedType *p = NULL; - AST_Typedef *t = NULL; - long found = I_FALSE; - - /* - * The discriminator is a scoped name. Try to resolve to - * one of the scalar types or to an enum. Thread through - * typedef's to arrive at the base type at the end of the - * chain - */ - if (s != NULL && (d = s->lookup_by_name(tao_yypvt[-0].idlist, I_TRUE)) != NULL) { - while (!found) { - switch (d->node_type()) { - case AST_Decl::NT_enum: - tao_yyval.dcval = d; - found = I_TRUE; - break; - case AST_Decl::NT_pre_defined: - p = AST_PredefinedType::narrow_from_decl(d); - if (p != NULL) { - switch (p->pt()) { - case AST_PredefinedType::PT_long: - case AST_PredefinedType::PT_ulong: - case AST_PredefinedType::PT_longlong: - case AST_PredefinedType::PT_ulonglong: - case AST_PredefinedType::PT_short: - case AST_PredefinedType::PT_char: - case AST_PredefinedType::PT_wchar: - case AST_PredefinedType::PT_octet: - case AST_PredefinedType::PT_boolean: - tao_yyval.dcval = p; - found = I_TRUE; - break; - default: - tao_yyval.dcval = NULL; - found = I_TRUE; - break; - } - } - break; - case AST_Decl::NT_typedef: - t = AST_Typedef::narrow_from_decl(d); - if (t != NULL) d = t->base_type(); - break; - default: - tao_yyval.dcval = NULL; - found = I_TRUE; - break; - } - } - } else - tao_yyval.dcval = NULL; - - if (tao_yyval.dcval == NULL) - idl_global->err()->lookup_error(tao_yypvt[-0].idlist); - } break; -case 187: -# line 1423 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionLabelSeen); - } break; -case 188: -# line 1427 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionElemSeen); - } break; -case 189: -# line 1431 "idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_LabellistActiveIterator *l = NULL; - AST_UnionLabel *d = NULL; - AST_UnionBranch *b = NULL; - AST_Field *f = tao_yypvt[-2].ffval; - - idl_global->set_parse_state(IDL_GlobalData::PS_UnionElemCompleted); - /* - * Create several nodes representing branches of a union. - * Add them to the enclosing scope (the union scope) - */ - if (s != NULL && tao_yypvt[-4].llval != NULL && tao_yypvt[-2].ffval != NULL) { - l = new UTL_LabellistActiveIterator(tao_yypvt[-4].llval); - for (;!(l->is_done()); l->next()) { - d = l->item(); - if (d == NULL) - continue; - b = idl_global->gen()->create_union_branch(d, - f->field_type(), - f->name(), - f->pragmas()); - (void) s->fe_add_union_branch(b); - } - delete l; - } - } break; -case 190: -# line 1459 "idl.tao_yy" -{ - idl_global->err()->syntax_error(idl_global->parse_state()); - } break; -case 191: -# line 1464 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - tao_yyerrok; - } break; -case 192: -# line 1472 "idl.tao_yy" -{ - tao_yyval.llval = new UTL_LabelList(tao_yypvt[-1].ulval, tao_yypvt[-0].llval); - } break; -case 193: -# line 1479 "idl.tao_yy" -{ - if (tao_yypvt[-1].llval == NULL) - tao_yyval.llval = new UTL_LabelList(tao_yypvt[-0].ulval, NULL); - else { - tao_yypvt[-1].llval->nconc(new UTL_LabelList(tao_yypvt[-0].ulval, NULL)); - tao_yyval.llval = tao_yypvt[-1].llval; - } - } break; -case 194: -# line 1488 "idl.tao_yy" -{ - tao_yyval.llval = NULL; - } break; -case 195: -# line 1495 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DefaultSeen); - } break; -case 196: -# line 1499 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_LabelColonSeen); - - tao_yyval.ulval = idl_global->gen()-> - create_union_label(AST_UnionLabel::UL_default, - NULL); - } break; -case 197: -# line 1507 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_CaseSeen); - } break; -case 198: -# line 1511 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_LabelExprSeen); - } break; -case 199: -# line 1515 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_LabelColonSeen); - - tao_yyval.ulval = idl_global->gen()->create_union_label(AST_UnionLabel::UL_label, - tao_yypvt[-2].exval); - } break; -case 200: -# line 1525 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionElemTypeSeen); - } break; -case 201: -# line 1529 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionElemDeclSeen); - /* - * Check for illegal recursive use of type - */ - if (tao_yypvt[-2].dcval != NULL && AST_illegal_recursive_type(tao_yypvt[-2].dcval)) - idl_global->err()->error1(UTL_Error::EIDL_RECURSIVE_TYPE, tao_yypvt[-2].dcval); - /* - * Create a field in a union branch - */ - else if (tao_yypvt[-2].dcval == NULL || tao_yypvt[-0].deval == NULL) - tao_yyval.ffval = NULL; - else { - AST_Type *tp = tao_yypvt[-0].deval->compose(tao_yypvt[-2].dcval); - if (tp == NULL) - tao_yyval.ffval = NULL; - else - tao_yyval.ffval = idl_global->gen()->create_field(tp, - tao_yypvt[-0].deval->name(), - idl_global->pragmas()); - } - } break; -case 202: -# line 1555 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_EnumSeen); - } break; -case 203: -# line 1559 "idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName(tao_yypvt[-0].idval, NULL); - AST_Enum *e = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_EnumIDSeen); - /* - * Create a node representing an enum and add it to its - * enclosing scope - */ - if (s != NULL) { - e = idl_global->gen()->create_enum(n, p); - /* - * Add it to its defining scope - */ - (void) s->fe_add_enum(e); - } - /* - * Push the enum scope on the scopes stack - */ - idl_global->scopes()->push(e); - } break; -case 204: -# line 1586 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_EnumSqSeen); - } break; -case 205: -# line 1590 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_EnumBodySeen); - } break; -case 206: -# line 1594 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_EnumQsSeen); - /* - * Done with this enum. Pop its scope from the scopes stack - */ - if (idl_global->scopes()->top() == NULL) - tao_yyval.dcval = NULL; - else { - tao_yyval.dcval = AST_Enum::narrow_from_scope(idl_global->scopes()->top_non_null()); - idl_global->scopes()->pop(); - } - } break; -case 208: -# line 1613 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_EnumCommaSeen); - } break; -case 211: -# line 1622 "idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = - new UTL_ScopedName(new Identifier(tao_yypvt[-0].strval, 1, 0, I_FALSE), NULL); - AST_EnumVal *e = NULL; - AST_Enum *c = NULL; - UTL_StrList *p = idl_global->pragmas(); - - /* - * Create a node representing one enumerator in an enum - * Add it to the enclosing scope (the enum scope) - */ - if (s != NULL && s->scope_node_type() == AST_Decl::NT_enum) { - c = AST_Enum::narrow_from_scope(s); - if (c != NULL) - e = idl_global->gen()->create_enum_val(c->next_enum_val(), n, p); - (void) s->fe_add_enum_val(e); - } - } break; -case 212: -# line 1646 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceCommaSeen); - } break; -case 213: -# line 1650 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceExprSeen); - } break; -case 214: -# line 1654 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceQsSeen); - /* - * Remove sequence marker from scopes stack - */ - if (idl_global->scopes()->top() == NULL) - idl_global->scopes()->pop(); - /* - * Create a node representing a sequence - */ - if (tao_yypvt[-2].exval == NULL || tao_yypvt[-2].exval->coerce(AST_Expression::EV_ulong) == NULL) { - idl_global->err()->coercion_error(tao_yypvt[-2].exval, AST_Expression::EV_ulong); - tao_yyval.dcval = NULL; - } else if (tao_yypvt[-5].dcval == NULL) { - tao_yyval.dcval = NULL; - } else { - AST_Type *tp = AST_Type::narrow_from_decl(tao_yypvt[-5].dcval); - if (tp == NULL) - tao_yyval.dcval = NULL; - else { - tao_yyval.dcval = idl_global->gen()->create_sequence(tao_yypvt[-2].exval, tp); - /* - * Add this AST_Sequence to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_sequence(AST_Sequence::narrow_from_decl(tao_yyval.dcval)); - } - } - } break; -case 215: -# line 1685 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceQsSeen); - /* - * Remove sequence marker from scopes stack - */ - if (idl_global->scopes()->top() == NULL) - idl_global->scopes()->pop(); - /* - * Create a node representing a sequence - */ - if (tao_yypvt[-1].dcval == NULL) - tao_yyval.dcval = NULL; - else { - AST_Type *tp = AST_Type::narrow_from_decl(tao_yypvt[-1].dcval); - if (tp == NULL) - tao_yyval.dcval = NULL; - else { - tao_yyval.dcval = - idl_global->gen()->create_sequence( - idl_global->gen()->create_expr((unsigned long) 0), - tp); - /* - * Add this AST_Sequence to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_sequence(AST_Sequence::narrow_from_decl(tao_yyval.dcval)); - } - } - } break; -case 216: -# line 1718 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceSeen); - /* - * Push a sequence marker on scopes stack - */ - idl_global->scopes()->push(NULL); - } break; -case 217: -# line 1726 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceSqSeen); - } break; -case 218: -# line 1730 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceTypeSeen); - tao_yyval.dcval = tao_yypvt[-0].dcval; - } break; -case 219: -# line 1739 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringSqSeen); - } break; -case 220: -# line 1743 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringExprSeen); - } break; -case 221: -# line 1747 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringQsSeen); - /* - * Create a node representing a string - */ - if (tao_yypvt[-2].exval == NULL || tao_yypvt[-2].exval->coerce(AST_Expression::EV_ulong) == NULL) { - idl_global->err()->coercion_error(tao_yypvt[-2].exval, AST_Expression::EV_ulong); - tao_yyval.dcval = NULL; - } else { - tao_yyval.dcval = idl_global->gen()->create_string(tao_yypvt[-2].exval); - /* - * Add this AST_String to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_string(AST_String::narrow_from_decl(tao_yyval.dcval)); - } - } break; -case 222: -# line 1765 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringCompleted); - /* - * Create a node representing a string - */ - tao_yyval.dcval = - idl_global->gen()->create_string( - idl_global->gen()->create_expr((unsigned long) 0)); - /* - * Add this AST_String to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_string(AST_String::narrow_from_decl(tao_yyval.dcval)); - } break; -case 223: -# line 1783 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringSeen); - } break; -case 224: -# line 1791 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringSqSeen); - } break; -case 225: -# line 1795 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringExprSeen); - } break; -case 226: -# line 1799 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringQsSeen); - /* - * Create a node representing a string - */ - if (tao_yypvt[-2].exval == NULL || tao_yypvt[-2].exval->coerce(AST_Expression::EV_ulong) == NULL) { - idl_global->err()->coercion_error(tao_yypvt[-2].exval, AST_Expression::EV_ulong); - tao_yyval.dcval = NULL; - } else { - tao_yyval.dcval = idl_global->gen()->create_wstring(tao_yypvt[-2].exval); - /* - * Add this AST_String to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_string(AST_String::narrow_from_decl(tao_yyval.dcval)); - } - } break; -case 227: -# line 1817 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringCompleted); - /* - * Create a node representing a string - */ - tao_yyval.dcval = - idl_global->gen()->create_wstring( - idl_global->gen()->create_expr((unsigned long) 0)); - /* - * Add this AST_String to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_string(AST_String::narrow_from_decl(tao_yyval.dcval)); - } break; -case 228: -# line 1835 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringSeen); - } break; -case 229: -# line 1842 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ArrayIDSeen); - } break; -case 230: -# line 1846 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ArrayCompleted); - /* - * Create a node representing an array - */ - if (tao_yypvt[-0].elval != NULL) { - tao_yyval.dcval = idl_global->gen()->create_array(new UTL_ScopedName(tao_yypvt[-2].idval, NULL), - tao_yypvt[-0].elval->length(), tao_yypvt[-0].elval); - } - } break; -case 231: -# line 1860 "idl.tao_yy" -{ - tao_yyval.elval = new UTL_ExprList(tao_yypvt[-1].exval, tao_yypvt[-0].elval); - } break; -case 232: -# line 1867 "idl.tao_yy" -{ - if (tao_yypvt[-1].elval == NULL) - tao_yyval.elval = new UTL_ExprList(tao_yypvt[-0].exval, NULL); - else { - tao_yypvt[-1].elval->nconc(new UTL_ExprList(tao_yypvt[-0].exval, NULL)); - tao_yyval.elval = tao_yypvt[-1].elval; - } - } break; -case 233: -# line 1876 "idl.tao_yy" -{ - tao_yyval.elval = NULL; - } break; -case 234: -# line 1883 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DimSqSeen); - } break; -case 235: -# line 1887 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DimExprSeen); - } break; -case 236: -# line 1891 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DimQsSeen); - /* - * Array dimensions are expressions which must be coerced to - * positive integers - */ - if (tao_yypvt[-2].exval == NULL || tao_yypvt[-2].exval->coerce(AST_Expression::EV_ulong) == NULL) { - idl_global->err()->coercion_error(tao_yypvt[-2].exval, AST_Expression::EV_ulong); - tao_yyval.exval = NULL; - } else - tao_yyval.exval = tao_yypvt[-2].exval; - } break; -case 237: -# line 1908 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_AttrSeen); - } break; -case 238: -# line 1912 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_AttrTypeSeen); - } break; -case 239: -# line 1916 "idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_DecllistActiveIterator *l = NULL; - AST_Attribute *a = NULL; - FE_Declarator *d = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_AttrCompleted); - /* - * Create nodes representing attributes and add them to the - * enclosing scope - */ - if (s != NULL && tao_yypvt[-2].dcval != NULL && tao_yypvt[-0].dlval != NULL) { - l = new UTL_DecllistActiveIterator(tao_yypvt[-0].dlval); - for (;!(l->is_done()); l->next()) { - d = l->item(); - if (d == NULL) - continue; - AST_Type *tp = d->compose(tao_yypvt[-2].dcval); - if (tp == NULL) - continue; - a = idl_global->gen()->create_attribute(tao_yypvt[-5].bval, tp, d->name(), p); - /* - * Add one attribute to the enclosing scope - */ - (void) s->fe_add_attribute(a); - } - delete l; - } - } break; -case 240: -# line 1950 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_AttrROSeen); - tao_yyval.bval = I_TRUE; - } break; -case 241: -# line 1955 "idl.tao_yy" -{ - tao_yyval.bval = I_FALSE; - } break; -case 242: -# line 1962 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptSeen); - } break; -case 243: -# line 1966 "idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName(tao_yypvt[-0].idval, NULL); - AST_Exception *e = NULL; - UTL_StrList *p = idl_global->pragmas(); - AST_Decl *v = NULL; - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptIDSeen); - /* - * Create a node representing an exception and add it to - * the enclosing scope - */ - if (s != NULL) { - e = idl_global->gen()->create_exception(n, p); - (void) s->fe_add_exception(e); - } - /* - * Push the exception scope on the scope stack - */ - idl_global->scopes()->push(e); - } break; -case 244: -# line 1990 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptSqSeen); - } break; -case 245: -# line 1994 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptBodySeen); - } break; -case 246: -# line 1998 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptQsSeen); - /* - * Done with this exception. Pop its scope from the scope stack - */ - idl_global->scopes()->pop(); - } break; -case 247: -# line 2010 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpTypeSeen); - } break; -case 248: -# line 2014 "idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = - new UTL_ScopedName(new Identifier(tao_yypvt[-0].strval, 1, 0, I_FALSE), NULL); - AST_Operation *o = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_OpIDSeen); - /* - * Create a node representing an operation on an interface - * and add it to its enclosing scope - */ - if (s != NULL && tao_yypvt[-2].dcval != NULL) { - AST_Type *tp = AST_Type::narrow_from_decl(tao_yypvt[-2].dcval); - if (tp == NULL) { - idl_global->err()->not_a_type(tao_yypvt[-2].dcval); - } else if (tp->node_type() == AST_Decl::NT_except) { - idl_global->err()->not_a_type(tao_yypvt[-2].dcval); - } else { - o = idl_global->gen()->create_operation(tp, tao_yypvt[-3].ofval, n, p); - (void) s->fe_add_operation(o); - } - } - /* - * Push the operation scope onto the scopes stack - */ - idl_global->scopes()->push(o); - } break; -case 249: -# line 2043 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpParsCompleted); - } break; -case 250: -# line 2047 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpRaiseCompleted); - } break; -case 251: -# line 2051 "idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Operation *o = NULL; - - idl_global->set_parse_state(IDL_GlobalData::PS_OpCompleted); - /* - * Add exceptions and context to the operation - */ - if (s != NULL && s->scope_node_type() == AST_Decl::NT_op) { - o = AST_Operation::narrow_from_scope(s); - - if (tao_yypvt[-2].nlval != NULL && o != NULL) - (void) o->fe_add_exceptions(tao_yypvt[-2].nlval); - if (tao_yypvt[-0].slval != NULL) - (void) o->fe_add_context(tao_yypvt[-0].slval); - } - /* - * Done with this operation. Pop its scope from the scopes stack - */ - idl_global->scopes()->pop(); - } break; -case 252: -# line 2076 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpAttrSeen); - tao_yyval.ofval = AST_Operation::OP_oneway; - } break; -case 253: -# line 2081 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpAttrSeen); - tao_yyval.ofval = AST_Operation::OP_idempotent; - } break; -case 254: -# line 2086 "idl.tao_yy" -{ - tao_yyval.ofval = AST_Operation::OP_noflags; - } break; -case 256: -# line 2094 "idl.tao_yy" -{ - tao_yyval.dcval = - idl_global->scopes()->bottom() - ->lookup_primitive_type(AST_Expression::EV_void); - } break; -case 257: -# line 2103 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpSqSeen); - } break; -case 258: -# line 2107 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpQsSeen); - } break; -case 259: -# line 2111 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpSqSeen); - } break; -case 260: -# line 2116 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpQsSeen); - } break; -case 262: -# line 2126 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpParCommaSeen); - } break; -case 265: -# line 2135 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpParDirSeen); - } break; -case 266: -# line 2139 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpParTypeSeen); - } break; -case 267: -# line 2143 "idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Argument *a = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_OpParDeclSeen); - /* - * Create a node representing an argument to an operation - * Add it to the enclosing scope (the operation scope) - */ - if (tao_yypvt[-2].dcval != NULL && tao_yypvt[-0].deval != NULL && s != NULL) { - AST_Type *tp = tao_yypvt[-0].deval->compose(tao_yypvt[-2].dcval); - if (tp != NULL) { - a = idl_global->gen()->create_argument(tao_yypvt[-4].dival, tp, tao_yypvt[-0].deval->name(), p); - (void) s->fe_add_argument(a); - } - } - } break; -case 268: -# line 2165 "idl.tao_yy" -{ - tao_yyval.dcval = idl_global->scopes()->bottom()->lookup_primitive_type(tao_yypvt[-0].etval); - } break; -case 270: -# line 2170 "idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Decl *d = NULL; - - if (s != NULL) - d = s->lookup_by_name(tao_yypvt[-0].idlist, I_TRUE); - if (d == NULL) - idl_global->err()->lookup_error(tao_yypvt[-0].idlist); - tao_yyval.dcval = d; - } break; -case 271: -# line 2184 "idl.tao_yy" -{ - tao_yyval.dival = AST_Argument::dir_IN; - } break; -case 272: -# line 2188 "idl.tao_yy" -{ - tao_yyval.dival = AST_Argument::dir_OUT; - } break; -case 273: -# line 2192 "idl.tao_yy" -{ - tao_yyval.dival = AST_Argument::dir_INOUT; - } break; -case 274: -# line 2199 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpRaiseSeen); - } break; -case 275: -# line 2203 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpRaiseSqSeen); - } break; -case 276: -# line 2208 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpRaiseQsSeen); - tao_yyval.nlval = tao_yypvt[-1].nlval; - } break; -case 277: -# line 2213 "idl.tao_yy" -{ - tao_yyval.nlval = NULL; - } break; -case 278: -# line 2220 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpContextSeen); - } break; -case 279: -# line 2224 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpContextSqSeen); - } break; -case 280: -# line 2229 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpContextQsSeen); - tao_yyval.slval = tao_yypvt[-1].slval; - } break; -case 281: -# line 2234 "idl.tao_yy" -{ - tao_yyval.slval = NULL; - } break; -case 282: -# line 2241 "idl.tao_yy" -{ - tao_yyval.slval = new UTL_StrList(tao_yypvt[-1].sval, tao_yypvt[-0].slval); - } break; -case 283: -# line 2249 "idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpContextCommaSeen); - } break; -case 284: -# line 2253 "idl.tao_yy" -{ - if (tao_yypvt[-3].slval == NULL) - tao_yyval.slval = new UTL_StrList(tao_yypvt[-0].sval, NULL); - else { - tao_yypvt[-3].slval->nconc(new UTL_StrList(tao_yypvt[-0].sval, NULL)); - tao_yyval.slval = tao_yypvt[-3].slval; - } - } break; -case 285: -# line 2262 "idl.tao_yy" -{ - tao_yyval.slval = NULL; - } break; -# line 532 "/usr/ccs/bin/yaccpar" - } - goto tao_yystack; /* reset registers in driver code */ -} diff --git a/TAO/TAO_IDL/fe/y.tab.cpp.diff b/TAO/TAO_IDL/fe/y.tab.cpp.diff deleted file mode 100644 index 8f29bff9c8b..00000000000 --- a/TAO/TAO_IDL/fe/y.tab.cpp.diff +++ /dev/null @@ -1,127 +0,0 @@ ---- y.tab.cpp.orig Fri Jan 23 11:09:05 1998 -+++ y.tab.cpp Fri Jan 23 11:08:33 1998 -@@ -97,13 +97,13 @@ - - #ifdef __STDC__ - #include --#include -+// #include - #else - #include - #include - #endif - --#include -+// #include - - #ifdef __cplusplus - -@@ -494,52 +494,52 @@ - - yytoktype yytoks[] = - { -- "IDENTIFIER", 257, -- "IDL_CONST", 258, -- "IDL_MODULE", 259, -- "IDL_INTERFACE", 260, -- "IDL_TYPEDEF", 261, -- "IDL_LONG", 262, -- "IDL_SHORT", 263, -- "IDL_UNSIGNED", 264, -- "IDL_DOUBLE", 265, -- "IDL_FLOAT", 266, -- "IDL_CHAR", 267, -- "IDL_WCHAR", 268, -- "IDL_OCTET", 269, -- "IDL_BOOLEAN", 270, -- "IDL_ANY", 271, -- "IDL_STRUCT", 272, -- "IDL_UNION", 273, -- "IDL_SWITCH", 274, -- "IDL_ENUM", 275, -- "IDL_SEQUENCE", 276, -- "IDL_STRING", 277, -- "IDL_WSTRING", 278, -- "IDL_EXCEPTION", 279, -- "IDL_CASE", 280, -- "IDL_DEFAULT", 281, -- "IDL_READONLY", 282, -- "IDL_ATTRIBUTE", 283, -- "IDL_ONEWAY", 284, -- "IDL_IDEMPOTENT", 285, -- "IDL_VOID", 286, -- "IDL_IN", 287, -- "IDL_OUT", 288, -- "IDL_INOUT", 289, -- "IDL_RAISES", 290, -- "IDL_CONTEXT", 291, -- "IDL_NATIVE", 292, -- "IDL_INTEGER_LITERAL", 293, -- "IDL_STRING_LITERAL", 294, -- "IDL_CHARACTER_LITERAL", 295, -- "IDL_FLOATING_PT_LITERAL", 296, -- "IDL_TRUETOK", 297, -- "IDL_FALSETOK", 298, -- "IDL_SCOPE_DELIMITOR", 299, -- "IDL_LEFT_SHIFT", 300, -- "IDL_RIGHT_SHIFT", 301, -- "-unknown-", -1 /* ends search */ -+ {"IDENTIFIER", 257}, -+ {"IDL_CONST", 258}, -+ {"IDL_MODULE", 259}, -+ {"IDL_INTERFACE", 260}, -+ {"IDL_TYPEDEF", 261}, -+ {"IDL_LONG", 262}, -+ {"IDL_SHORT", 263}, -+ {"IDL_UNSIGNED", 264}, -+ {"IDL_DOUBLE", 265}, -+ {"IDL_FLOAT", 266}, -+ {"IDL_CHAR", 267}, -+ {"IDL_WCHAR", 268}, -+ {"IDL_OCTET", 269}, -+ {"IDL_BOOLEAN", 270}, -+ {"IDL_ANY", 271}, -+ {"IDL_STRUCT", 272}, -+ {"IDL_UNION", 273}, -+ {"IDL_SWITCH", 274}, -+ {"IDL_ENUM", 275}, -+ {"IDL_SEQUENCE", 276}, -+ {"IDL_STRING", 277}, -+ {"IDL_WSTRING", 278}, -+ {"IDL_EXCEPTION", 279}, -+ {"IDL_CASE", 280}, -+ {"IDL_DEFAULT", 281}, -+ {"IDL_READONLY", 282}, -+ {"IDL_ATTRIBUTE", 283}, -+ {"IDL_ONEWAY", 284}, -+ {"IDL_IDEMPOTENT", 285}, -+ {"IDL_VOID", 286}, -+ {"IDL_IN", 287}, -+ {"IDL_OUT", 288}, -+ {"IDL_INOUT", 289}, -+ {"IDL_RAISES", 290}, -+ {"IDL_CONTEXT", 291}, -+ {"IDL_NATIVE", 292}, -+ {"IDL_INTEGER_LITERAL", 293}, -+ {"IDL_STRING_LITERAL", 294}, -+ {"IDL_CHARACTER_LITERAL", 295}, -+ {"IDL_FLOATING_PT_LITERAL", 296}, -+ {"IDL_TRUETOK", 297}, -+ {"IDL_FALSETOK", 298}, -+ {"IDL_SCOPE_DELIMITOR", 299}, -+ {"IDL_LEFT_SHIFT", 300}, -+ {"IDL_RIGHT_SHIFT", 301}, -+ {"-unknown-", -1} /* ends search */ - }; - - char * yyreds[] = -@@ -837,7 +837,9 @@ - * Copyright (c) 1993 by Sun Microsystems, Inc. - */ - -+#if !defined (ACE_WIN32) - #pragma ident "@(#)yaccpar 6.12 93/06/07 SMI" -+#endif /* ACE_WIN32 */ - - /* - ** Skeleton parser driver for yacc output diff --git a/TAO/TAO_IDL/fe/y.tab.h b/TAO/TAO_IDL/fe/y.tab.h deleted file mode 100644 index 88a7834e196..00000000000 --- a/TAO/TAO_IDL/fe/y.tab.h +++ /dev/null @@ -1,77 +0,0 @@ -// $Id$ -typedef union -#ifdef __cplusplus - TAO_YYSTYPE -#endif - { - AST_Decl *dcval; /* Decl value */ - UTL_StrList *slval; /* String list */ - UTL_NameList *nlval; /* Name list */ - UTL_ExprList *elval; /* Expression list */ - UTL_LabelList *llval; /* Label list */ - UTL_DeclList *dlval; /* Declaration list */ - FE_InterfaceHeader *ihval; /* Interface header */ - AST_Expression *exval; /* Expression value */ - AST_UnionLabel *ulval; /* Union label */ - AST_Field *ffval; /* Field value */ - AST_Expression::ExprType etval; /* Expression type */ - AST_Argument::Direction dival; /* Argument direction */ - AST_Operation::Flags ofval; /* Operation flags */ - FE_Declarator *deval; /* Declarator value */ - idl_bool bval; /* Boolean value */ - long ival; /* Long value */ - double dval; /* Double value */ - float fval; /* Float value */ - char cval; /* Char value */ - - String *sval; /* String value */ - char *strval; /* char * value */ - Identifier *idval; /* Identifier */ - UTL_IdList *idlist; /* Identifier list */ -} TAO_YYSTYPE; -extern TAO_YYSTYPE tao_yylval; -# define IDENTIFIER 257 -# define IDL_CONST 258 -# define IDL_MODULE 259 -# define IDL_INTERFACE 260 -# define IDL_TYPEDEF 261 -# define IDL_LONG 262 -# define IDL_SHORT 263 -# define IDL_UNSIGNED 264 -# define IDL_DOUBLE 265 -# define IDL_FLOAT 266 -# define IDL_CHAR 267 -# define IDL_WCHAR 268 -# define IDL_OCTET 269 -# define IDL_BOOLEAN 270 -# define IDL_ANY 271 -# define IDL_STRUCT 272 -# define IDL_UNION 273 -# define IDL_SWITCH 274 -# define IDL_ENUM 275 -# define IDL_SEQUENCE 276 -# define IDL_STRING 277 -# define IDL_WSTRING 278 -# define IDL_EXCEPTION 279 -# define IDL_CASE 280 -# define IDL_DEFAULT 281 -# define IDL_READONLY 282 -# define IDL_ATTRIBUTE 283 -# define IDL_ONEWAY 284 -# define IDL_IDEMPOTENT 285 -# define IDL_VOID 286 -# define IDL_IN 287 -# define IDL_OUT 288 -# define IDL_INOUT 289 -# define IDL_RAISES 290 -# define IDL_CONTEXT 291 -# define IDL_NATIVE 292 -# define IDL_INTEGER_LITERAL 293 -# define IDL_STRING_LITERAL 294 -# define IDL_CHARACTER_LITERAL 295 -# define IDL_FLOATING_PT_LITERAL 296 -# define IDL_TRUETOK 297 -# define IDL_FALSETOK 298 -# define IDL_SCOPE_DELIMITOR 299 -# define IDL_LEFT_SHIFT 300 -# define IDL_RIGHT_SHIFT 301 diff --git a/TAO/TAO_IDL/idl_make_vars b/TAO/TAO_IDL/idl_make_vars deleted file mode 100644 index f061649d004..00000000000 --- a/TAO/TAO_IDL/idl_make_vars +++ /dev/null @@ -1,62 +0,0 @@ -# Makefile include file for IDL compiler -# -# What OS we're compiling on. -# -# As shipped the CFE is preconfigured for SOLARIS 2.x -# =================================================== -# -# Uncomment the next line for SOLARIS 2.x -OSV = SOLARIS2 -# Uncomment the next line for SUNOS 4.x -# OSV = SUNOS4 -# Uncomment the next line for HPUX -# OSV = hpux -# Uncomment the next line for Apollo Domain -# OSV = apollo -# -# IDL_CFE_VERSION Defines what the current IDL CFE version is -IDL_CFE_VERSION = \"1.3.0\" -# -# Define LEXFLAGS to pass to lex -LEXFLAGS = -t -# -# Define YFLAGS to pass to yacc -YFLAGS = -t -d -# -# C++ What C++ compiler to use -# -# Also define CCC which is used instead of C++ in -# some versions of make. Make sure they refer to the -# same executable; if you modify one please also modify -# the other to be identical. -# -# Uncomment these two lines if you're using SunPro Sparcworks C++ compilers -# (Tested for SunPro Sparcworks 2.x with SunOS 4.x and Solaris 2.x, for -# SunPro Sparcworks 3.0 with Solaris 2.x) -C++ = CC -CCC = CC -# Uncomment these two lines if you're using g++ (tested for SunOS 4.x and -# Solaris 2.x only, with g++ 2.5.8) -# C++ = g++ -# CCC = g++ -# -# What flags to pass to the C preprocessor -CPPFLAGS += -I../include -I. -D$(OSV) \ - -DCPP_LOCATION=\"$(C++)\" \ - -DIDL_CFE_VERSION=$(IDL_CFE_VERSION) \ -# -# What flags to pass to the CC phase -CCFLAGS += -g -# -# What ranlib to use -# -# Uncomment the following line for SunOS 4.x and others which have ranlib -# RANLIB = ranlib -# Uncomment the following line for Solaris 2.x and others which don't have it -RANLIB = /bin/true -# -# What ar to use -AR = ar -# -# What flags to give to ar -ARFLAGS = crv diff --git a/TAO/TAO_IDL/idl_specs/array.idl b/TAO/TAO_IDL/idl_specs/array.idl deleted file mode 100644 index 9a35397c1ba..00000000000 --- a/TAO/TAO_IDL/idl_specs/array.idl +++ /dev/null @@ -1,39 +0,0 @@ -// $Id$ - -typedef sequence vec10; -typedef char str22[22][2]; -typedef boolean boolarray[3][40]; - - -struct A { - long a1; - char a2[17]; - char a3[10][2]; -// vec10 a3; -}; - -struct B { - long b1; - A b2; -}; - -struct C { - long c1; - long c2; -}; - -typedef A A_matrix[2][3][4]; -typedef B B_matrix[2][3][4]; -typedef C C_matrix[2][3][4]; - -typedef A_matrix A_rmatrix[2][3][4][5]; - -interface A_i { - A op(in A a1, inout A a2, out A a3); - str22 op2(in str22 a1, inout str22 a2, out str22 a3); - str22 op3(in short a1[3][4], inout short a2[3][4], out short a3[4][4]); - A_matrix op4(in A a1, inout A a2, out A a3); - attribute str22 attribute_array; - void foo(in any x[3], out any y[4], inout any z[3]); -}; - diff --git a/TAO/TAO_IDL/idl_specs/constant.idl b/TAO/TAO_IDL/idl_specs/constant.idl deleted file mode 100644 index 3ccded681e1..00000000000 --- a/TAO/TAO_IDL/idl_specs/constant.idl +++ /dev/null @@ -1,31 +0,0 @@ -// $Id$ - -const short l = 4; - -enum N { zero, un , deux, trois }; - -exception E { - short cause ; - }; - -module M { - const short l = 4; - - enum N { zero, un , deux, trois }; - - exception E { - short cause ; - }; - - interface A { - const short l = 4; - - enum N { zero, un , deux, trois }; - - exception E { - short cause ; - }; - N foo(in N x, out N y, inout N z); - }; -}; - diff --git a/TAO/TAO_IDL/idl_specs/dif2.idl b/TAO/TAO_IDL/idl_specs/dif2.idl deleted file mode 100644 index b21c65d6d58..00000000000 --- a/TAO/TAO_IDL/idl_specs/dif2.idl +++ /dev/null @@ -1,50 +0,0 @@ -// $Id$ - -/* A test interface for DIF1 */ - -interface ex1 -{ - void op0(); - float op1(in float f, out double d, inout long l); - double op2(in double d, out long l, inout short s); - long op3(in long l, out short s, inout unsigned long ul); - short op4(in short s, out unsigned long ul, inout unsigned short us); - unsigned long op5(inout unsigned long ul, in unsigned short us, out char c, in boolean b); - unsigned short op6(out unsigned short us, inout char c); -}; - -//interface ex3; - -interface ex2 : ex1 -{ - // operations continued from ex1 - char op7(in char c, out boolean b, inout octet o); - boolean op8(out boolean b, in octet o); - octet op9(inout octet o, out string s, in string <10> ls, inout long l); - string op10(in string s, out string <10> ls); - string <10> op11(inout string <10> ls, out long l); - long op12(in long l); -// ex3 op13(Environment *ev); -}; - -interface ex3 : ex1 -{ - // attributes - readonly attribute float float_attribute; - attribute double double_attribute; - readonly attribute long long_attribute; - attribute short short_attribute; - readonly attribute unsigned long unsigned_long_attribute; - -}; - -interface ex4 : ex2, ex3 -{ - attribute unsigned short unsigned_short_attribute; - readonly attribute char char_attribute; - attribute boolean boolean_attribute; - readonly attribute octet octet_attribute; - attribute string string_attribute; - readonly attribute string <10> limited_string_attribute; - readonly attribute ex4 an_object_attribute; -}; diff --git a/TAO/TAO_IDL/idl_specs/inherit.idl b/TAO/TAO_IDL/idl_specs/inherit.idl deleted file mode 100644 index 390f8d7e98e..00000000000 --- a/TAO/TAO_IDL/idl_specs/inherit.idl +++ /dev/null @@ -1,19 +0,0 @@ -// $Id$ - -interface one { - void op_one(); -}; -interface two : one { - void op_two(); -}; -interface three : one { - void op_three(); -}; -interface four : two, three { - void op_four(); -}; - -interface five : four, three, two { - void op_five(); -}; - diff --git a/TAO/TAO_IDL/idl_specs/module.idl b/TAO/TAO_IDL/idl_specs/module.idl deleted file mode 100644 index d40f45963a1..00000000000 --- a/TAO/TAO_IDL/idl_specs/module.idl +++ /dev/null @@ -1,22 +0,0 @@ -// $Id$ - -module mod1 -{ - module mod2 - { - interface ex1 - { - attribute long l1; - readonly attribute long l2; - - long m1(in long a); - }; - - interface ex2 : ex1 - { - attribute long l3; - - long m2(in long a, out long b); - }; - }; -}; diff --git a/TAO/TAO_IDL/idl_specs/primtypes.idl b/TAO/TAO_IDL/idl_specs/primtypes.idl deleted file mode 100644 index 63c6a27d809..00000000000 --- a/TAO/TAO_IDL/idl_specs/primtypes.idl +++ /dev/null @@ -1,25 +0,0 @@ -// $Id$ - -interface ex1 -{ - attribute long l1; - long m1(in long a); - ex1 mtypes( - in long a1, inout long a2, out long a3, - in unsigned long b1, inout unsigned long b2, out unsigned long b3, - in short c1,inout short c2, out short c3, - in unsigned short d1, inout unsigned short d2, out unsigned short d3, - in float e1, inout float e2, out float e3, - in double f1, inout double f2, out double f3, - in char g1, inout char g2, out char g3 - ); - -}; - -interface ex2 : ex1 -{ - readonly attribute long l2; - - long m2(in long a, out long b); - void mv(); -}; diff --git a/TAO/TAO_IDL/idl_specs/sequence.idl b/TAO/TAO_IDL/idl_specs/sequence.idl deleted file mode 100644 index 7a86a2cf481..00000000000 --- a/TAO/TAO_IDL/idl_specs/sequence.idl +++ /dev/null @@ -1,27 +0,0 @@ -// $Id$ - -typedef sequence vec10; -typedef sequence c20; -typedef sequence cc23; -typedef sequence c24; -typedef sequence< sequence, 10> c30; -struct TProgram { - string path; - sequence argv; - sequence envp; -}; - -struct foo { - long f1; - char f2; -}; - -typedef foo foo_ar[20]; -typedef sequence f_unbounded; -typedef sequence f_ar_unbounded; - -interface TestSeq { - attribute f_unbounded fattr; - typedef sequence also_vec10; - vec10 op(in also_vec10 a, out vec10 b, inout sequence c); -}; diff --git a/TAO/TAO_IDL/idl_specs/simple.idl b/TAO/TAO_IDL/idl_specs/simple.idl deleted file mode 100644 index b10cdd73668..00000000000 --- a/TAO/TAO_IDL/idl_specs/simple.idl +++ /dev/null @@ -1,18 +0,0 @@ -// $Id$ - -typedef sequence vec10; - -exception simple_error { - long reason; -}; - -interface simple { - long op(in long a, out simple b, inout long c) raises (simple_error); -}; - -interface simple2 : simple { - exception simple2_error { - long reason2; - }; - long op2(in long a, in simple b, out simple2 c) raises (simple2_error); -}; diff --git a/TAO/TAO_IDL/idl_specs/simple2.idl b/TAO/TAO_IDL/idl_specs/simple2.idl deleted file mode 100644 index 8f9202f9485..00000000000 --- a/TAO/TAO_IDL/idl_specs/simple2.idl +++ /dev/null @@ -1,28 +0,0 @@ -// $Id$ - -#include "simple.idl" - - -interface simple3 : simple2 { - exception OVERFLOW { - long a; - string msg; - }; - exception UNDERFLOW { - long b; - string msg; - }; - exception BADNUM { - vec10 c; - }; - exception USERERROR { - any reason; - }; - long op3(in long a, out simple3 b, out simple2 c, out simple d) - raises (OVERFLOW, UNDERFLOW, BADNUM); - any op4(in any x, inout any y, out any z) - raises(UNDERFLOW); - - oneway void op5() - raises(USERERROR); -}; diff --git a/TAO/TAO_IDL/idl_specs/struct.idl b/TAO/TAO_IDL/idl_specs/struct.idl deleted file mode 100644 index a098efd9b12..00000000000 --- a/TAO/TAO_IDL/idl_specs/struct.idl +++ /dev/null @@ -1,54 +0,0 @@ -// $Id$ - -struct bar { - long b1; - long b2; - string<20> b3; -}; - -struct bar2 { - long b3; - bar b4; -}; - -struct bar3 { - long b1; - long b2; - long b3; -}; - -struct bar4 { - long b1; - bar2 b2; - long b3; - bar3 b4; - long b5; -}; - - -interface foo { - long op(in bar a, out bar2 b); -}; -interface foo2 : foo { - bar op2(in bar2 a); - long op3(in long a, out char b); -}; - - -typedef unsigned short Coord; - -struct CellPos { - Coord row; - Coord col; -}; - -struct CellPos2 { - unsigned short row; - unsigned short col; -}; - -struct CellPos3 { - Coord row; - Coord col; - unsigned short col2; -}; diff --git a/TAO/TAO_IDL/idl_specs/union.idl b/TAO/TAO_IDL/idl_specs/union.idl deleted file mode 100644 index 587dae3a9c9..00000000000 --- a/TAO/TAO_IDL/idl_specs/union.idl +++ /dev/null @@ -1,28 +0,0 @@ -// $Id$ - -struct Bar { - long b1; - char b2; -}; - -union Foo switch (long) { -case 1: long x; -case 2: Bar y; -default: char z; -}; - - -union Foo2 switch (char) { - case 'a': long x; - case 'b': Foo y; -}; - -interface a { - struct astruct { - Foo2 a1; - Foo a2; - Bar a3; - }; - Foo2 opA(in astruct b); -}; - diff --git a/TAO/TAO_IDL/idl_specs/union2.idl b/TAO/TAO_IDL/idl_specs/union2.idl deleted file mode 100644 index 843980ac048..00000000000 --- a/TAO/TAO_IDL/idl_specs/union2.idl +++ /dev/null @@ -1,23 +0,0 @@ -// $Id$ - -enum FooDisc { - FOO1, - FOO2 -}; -union Foo switch (FooDisc) { -case FOO1: long x; -case FOO2: string y; -default: char z; -}; - - -struct Bar { - enum BarDisc { - BAR1, - BAR2 - } kind; - union Foo switch (BarDisc) { - case BAR1: long x; - case BAR2: long y; - } addr; -}; diff --git a/TAO/TAO_IDL/include/ast.h b/TAO/TAO_IDL/include/ast.h deleted file mode 100644 index fc05323e075..00000000000 --- a/TAO/TAO_IDL/include/ast.h +++ /dev/null @@ -1,120 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_AST_HH -#define _AST_AST_HH - -// ast.h -// -// Defines the classes which constitute the agreement between the CFE -// and BEs. - -/* -** DEPENDENCIES: NONE -** -** USE: Included from idl.hh -*/ - -#include "utl_scoped_name.h" // Define UTL_ScopedName - -#include "ast_decl.h" // class AST_Decl - -#include "ast_expression.h" // class AST_Expression - -#include "utl_scope.h" // class UTL_Scope - -#include "ast_type.h" // class AST_Type -#include "ast_concrete_type.h" // class AST_ConcreteType -#include "ast_predefined_type.h"// class AST_PredefinedType -#include "ast_module.h" // class AST_Module -#include "ast_root.h" // class AST_Root -#include "ast_interface.h" // class AST_Interface -#include "ast_interface_fwd.h" // class AST_InterfaceFwd -#include "ast_structure.h" // class AST_Structure -#include "ast_exception.h" // class AST_Exception -#include "ast_enum.h" // class AST_Enum -#include "ast_operation.h" // class AST_Operation -#include "ast_field.h" // class AST_Field -#include "ast_argument.h" // class AST_Argument -#include "ast_attribute.h" // class AST_Attribute -#include "ast_union.h" // class AST_Union -#include "ast_union_branch.h" // class AST_UnionBranch -#include "ast_union_label.h" // class AST_UnionLabel -#include "ast_constant.h" // class AST_Constant -#include "ast_enum_val.h" // class AST_EnumVal -#include "ast_array.h" // class AST_Array -#include "ast_sequence.h" // class AST_Sequence -#include "ast_string.h" // class AST_String -#include "ast_typedef.h" // class AST_Typedef -#include "ast_native.h" // class AST_Native - -#include "utl_list.h" // class UTL_List -#include "utl_strlist.h" // class UTL_StrList -#include "utl_exprlist.h" // class UTL_ExprList - -#include "ast_generator.h" // class AST_Generator - -#endif // _AST_AST_HH diff --git a/TAO/TAO_IDL/include/ast_argument.h b/TAO/TAO_IDL/include/ast_argument.h deleted file mode 100644 index 1f65d0ca9ac..00000000000 --- a/TAO/TAO_IDL/include/ast_argument.h +++ /dev/null @@ -1,115 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_ARGUMENT_AST_ARGUMENT_HH -#define _AST_ARGUMENT_AST_ARGUMENT_HH - -// Representation of argument to operation: -// -// An argument is a field with a direction attached - -/* -** DEPENDENCIES: ast_field.hh, utl_scoped_name.hh, ast_type.hh -** utl_strlist.hh, ast_decl.hh -** -** USE: Included from ast.hh -*/ - -#include "idl_fwd.h" -#include "idl_narrow.h" -#include "ast_field.h" - - -class AST_Argument : public virtual AST_Field -{ -public: - // Define enum with values denoting argument passing directions - enum Direction {dir_IN, dir_OUT, dir_INOUT}; - - // Operations - - // Constructor(s) - AST_Argument(); - AST_Argument(Direction direction, AST_Type *ft, UTL_ScopedName *n, - UTL_StrList *p); - virtual ~AST_Argument() {} - - // Data Accessors - Direction direction(); - - // Narrowing - DEF_NARROW_METHODS1(AST_Argument, AST_Field); - DEF_NARROW_FROM_DECL(AST_Argument); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - const Direction pd_direction; // Argument direction -}; - -#endif // _AST_ARGUMENT_AST_ARGUMENT_HH diff --git a/TAO/TAO_IDL/include/ast_array.h b/TAO/TAO_IDL/include/ast_array.h deleted file mode 100644 index 86d2387000b..00000000000 --- a/TAO/TAO_IDL/include/ast_array.h +++ /dev/null @@ -1,117 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_ARRAY_AST_ARRAY_HH -#define _AST_ARRAY_AST_ARRAY_HH - -// Representation of array declaration: -// -// An array is a combination of a list of dimensions and a base type - -/* -** DEPENDENCIES: ast_concrete_type.hh, utl_exprlist.hh, ast_type.hh, -** ast_decl.hh -** -** USE: Included from ast.hh -*/ - -class AST_Array : public virtual AST_ConcreteType { -public: - // Operations - - // Constructor(s) - AST_Array(); - AST_Array(UTL_ScopedName *n, unsigned long ndims, UTL_ExprList *dims); - virtual ~AST_Array() {} - - // Data Accessors - unsigned long n_dims(); - AST_Expression **dims(); - void set_dims(AST_Expression **, unsigned long); - AST_Type *base_type(); - void set_base_type(AST_Type *nbt); - - // Narrowing - DEF_NARROW_METHODS1(AST_Array, AST_ConcreteType); - DEF_NARROW_FROM_DECL(AST_Array); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - unsigned long pd_n_dims; // How many dimensions? - AST_Expression **pd_dims; // Their expressions - AST_Type *pd_base_type; // Base type of array - - // Operations - - // Compute how many dimensions - AST_Expression **compute_dims(UTL_ExprList *dims, - unsigned long ndims); -}; - -#endif // _AST_ARRAY_AST_ARRAY_HH diff --git a/TAO/TAO_IDL/include/ast_attribute.h b/TAO/TAO_IDL/include/ast_attribute.h deleted file mode 100644 index 6abc58967d6..00000000000 --- a/TAO/TAO_IDL/include/ast_attribute.h +++ /dev/null @@ -1,109 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_ATTRIBUTE_AST_ATTRIBUTE_HH -#define _AST_ATTRIBUTE_AST_ATTRIBUTE_HH - -// Representation of attribute declaration: -// -// An attribute is a field with a readonly property - -/* -** DEPENDENCIES: ast_field.hh, ast_type.hh, utl_scoped_name.hh, -** utl_strlist.hh, ast_decl.hh -** -** USE: Included from ast.h -*/ - -class AST_Attribute : public virtual AST_Field -{ -public: - // Operations - - // Constructor(s) - AST_Attribute(); - AST_Attribute(idl_bool readonly, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); - virtual ~AST_Attribute() {} - - // Data Accessors - idl_bool readonly(); - - // Narrowing - DEF_NARROW_METHODS1(AST_Attribute, AST_Field); - DEF_NARROW_FROM_DECL(AST_Attribute); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - const idl_bool pd_readonly; // Is attribute read-only? -}; - -#endif // _AST_ATTRIBUTE_AST_ATTRIBUTE_HH diff --git a/TAO/TAO_IDL/include/ast_concrete_type.h b/TAO/TAO_IDL/include/ast_concrete_type.h deleted file mode 100644 index 410c2eabe16..00000000000 --- a/TAO/TAO_IDL/include/ast_concrete_type.h +++ /dev/null @@ -1,95 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_CONCRETE_TYPE_AST_CONCRETE_TYPE_HH -#define _AST_CONCRETE_TYPE_AST_CONCRETE_TYPE_HH - -// Class for all concrete types -// -// This is useful to group together IDL types other than objects - -/* -** DEPENDENCIES: ast_type.hh, ast_decl.hh, utl_scoped_name.hh, utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -class AST_ConcreteType : public virtual AST_Type -{ -public: - // Operations - - // Constructor(s) - AST_ConcreteType(); - AST_ConcreteType(AST_Decl::NodeType nt, UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_ConcreteType() {} - - // Narrowing - DEF_NARROW_METHODS1(AST_ConcreteType, AST_Type); - DEF_NARROW_FROM_DECL(AST_ConcreteType); -}; - -#endif // _AST_CONCRETE_TYPE_AST_CONCRETE_TYPE_HH diff --git a/TAO/TAO_IDL/include/ast_constant.h b/TAO/TAO_IDL/include/ast_constant.h deleted file mode 100644 index 2f663c60a1e..00000000000 --- a/TAO/TAO_IDL/include/ast_constant.h +++ /dev/null @@ -1,117 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_CONSTANT_AST_CONSTANT_HH -#define _AST_CONSTANT_AST_CONSTANT_HH - -// Representation of constant declaration: -// -// NOTE: Part of the job of the constructor is to convert -// the AST_Constant_val it received to the type denoted by -// the ConstantType it received. -// -// NOTE: There are two constructors here, one that gets a NodeType -// parameter. This constructor is used from AST_EnumVal, which is -// just a glorified AST_Constant - -/* -** DEPENDENCIES: ast_decl.hh, ast_expression.hh, utl_scoped_name.hh, -** utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -class AST_Constant : public virtual AST_Decl -{ -public: - // Operations - - // Constructor(s) - AST_Constant(); - AST_Constant(AST_Expression::ExprType et, AST_Decl::NodeType nt, - AST_Expression *ev, UTL_ScopedName *n, UTL_StrList *p); - AST_Constant(AST_Expression::ExprType et, AST_Expression *ev, - UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_Constant() {} - - // Data Accessors - AST_Expression *constant_value(); - AST_Expression::ExprType et(); - - // Narrowing - DEF_NARROW_METHODS1(AST_Constant, AST_Decl); - DEF_NARROW_FROM_DECL(AST_Constant); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - AST_Expression *pd_constant_value; // The value - AST_Expression::ExprType pd_et; // Its expr type -}; - -#endif // _AST_CONSTANT_AST_CONSTANT_HH diff --git a/TAO/TAO_IDL/include/ast_decl.h b/TAO/TAO_IDL/include/ast_decl.h deleted file mode 100644 index 1177756ce85..00000000000 --- a/TAO/TAO_IDL/include/ast_decl.h +++ /dev/null @@ -1,190 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_DECL_AST_DECL_HH -#define _AST_DECL_AST_DECL_HH - -// Rock bottom of AST class hierarchy -// -// This class is inherited by all classes which represent named entities -// in IDL. It implements the line and file recording mechanism and also -// records the type of the node. This may be useful for BEs to be able -// to distinguish the real type of a node given only a superclass. - -/* -** DEPENDENCIES: utl_scope.hh, utl_scoped_name.hh, utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -#include "idl_fwd.h" -#include "idl_narrow.h" -#include "idl_bool.h" -#include "utl_scoped_name.h" -#include "utl_string.h" - -// This class is needed (only for g++) to get around a bug in g++ which -// causes virtual operations to not be looked up correctly if an operation -// is defined in more than one virtual public base class. This class makes -// the hierarchy rooted in a single class, thereby eliminating the situation -// that causes the bug to appear - -class COMMON_Base -{ - public: - // Narrowing - DEF_NARROW_METHODS0(COMMON_Base); -}; - -class AST_Decl : public virtual COMMON_Base -{ -public: - // Enum defining the different kinds of AST nodes - enum NodeType { - NT_module // Denotes a module - , NT_root // Denotes the root of AST - , NT_interface // Denotes an interface - , NT_interface_fwd // Fwd declared interface - , NT_const // Denotes a constant - , NT_except // Denotes an exception - , NT_attr // Denotes an attribute - , NT_op // Denotes an operation - , NT_argument // Denotes an op. argument - , NT_union // Denotes a union - , NT_union_branch // Denotes a union branch - , NT_struct // Denotes a structure - , NT_field // Denotes a field in structure - , NT_enum // Denotes an enumeration - , NT_enum_val // Denotes an enum. value - , NT_string // Denotes an IDL string - , NT_array // Denotes an IDL array - , NT_sequence // Denotes an IDL sequence - , NT_typedef // Denotes a typedef - , NT_pre_defined // Denotes a predefined type - , NT_native // Denotes a native type - // dependent on the programming - // language - }; - - // Operations - - // Constructor(s) - AST_Decl(); - AST_Decl(NodeType type, UTL_ScopedName *n, UTL_StrList *pragmas); - virtual ~AST_Decl() {} - - // Data Accessors - idl_bool imported(); - void set_imported(idl_bool is_it); - idl_bool in_main_file(); - void set_in_main_file(idl_bool is_it); - UTL_Scope *defined_in(); - void set_defined_in(UTL_Scope *); - NodeType node_type(); - long line(); - void set_line(long l); - String *file_name(); - void set_file_name(String *s); - UTL_ScopedName *name(); - void set_name(UTL_ScopedName *n); - Identifier *local_name(); - void add_pragmas(UTL_StrList *p); - UTL_StrList *pragmas(); - idl_bool added(); - void set_added(idl_bool is_it); - - // Narrowing - DEF_NARROW_METHODS0(AST_Decl); - DEF_NARROW_FROM_DECL(AST_Decl); - - // AST Dumping - virtual void dump(ostream &o); - - // Other operations - - // Return TRUE if "this" has "s" as an ancestor - idl_bool has_ancestor(AST_Decl *s); - -private: - // Data - idl_bool pd_imported; // Imported? - idl_bool pd_in_main_file; // Defined in main file? - UTL_Scope *pd_defined_in; // Scope - NodeType pd_node_type; // What kind of node - long pd_line; // Line defined in - String *pd_file_name; // What file defined in - UTL_ScopedName *pd_name; // As given - Identifier *pd_local_name; // Name in scope - UTL_StrList *pd_pragmas; // Pragmas - idl_bool pd_added; // already added - - // Operations - - // Compute the full name of an AST node - void compute_full_name(UTL_ScopedName *n); -}; - -#endif // _AST_DECL_AST_DECL_HH diff --git a/TAO/TAO_IDL/include/ast_enum.h b/TAO/TAO_IDL/include/ast_enum.h deleted file mode 100644 index 40189295737..00000000000 --- a/TAO/TAO_IDL/include/ast_enum.h +++ /dev/null @@ -1,115 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_ENUM_AST_ENUM_HH -#define _AST_ENUM_AST_ENUM_HH - -// Representation of enum: - -/* -** DEPENDENCIES: ast_concrete_type.hh, utl_scope.hh, ast_enum_val.hh, -** utl_scoped_name.hh, utl_strlist.hh, ast_expression.hh, -** -** USE: Included from ast.hh -*/ - -class AST_Enum : public virtual AST_ConcreteType, public virtual UTL_Scope -{ -public: - // Operations - - // Constructor(s) - AST_Enum(); - AST_Enum(UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_Enum() {} - - // Narrowing - DEF_NARROW_METHODS2(AST_Enum, AST_ConcreteType, UTL_Scope); - DEF_NARROW_FROM_DECL(AST_Enum); - DEF_NARROW_FROM_SCOPE(AST_Enum); - - // AST Dumping - virtual void dump(ostream &); - - // Other operations - - // Look up an AST_EnumVal by value - virtual AST_EnumVal *lookup_by_value(const AST_Expression *v); - - // Get value to be assigned to next enumerator - virtual unsigned long next_enum_val(); - -private: - // Data - unsigned long pd_enum_counter; // Value for next - // enumerator - // Scope management - friend int tao_yyparse(); - virtual AST_EnumVal *fe_add_enum_val(AST_EnumVal *v); - -}; - -#endif // _AST_ENUM_AST_ENUM_HH diff --git a/TAO/TAO_IDL/include/ast_enum_val.h b/TAO/TAO_IDL/include/ast_enum_val.h deleted file mode 100644 index 6851474b641..00000000000 --- a/TAO/TAO_IDL/include/ast_enum_val.h +++ /dev/null @@ -1,99 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_ENUM_VAL_AST_ENUM_VAL_HH -#define _AST_ENUM_VAL_AST_ENUM_VAL_HH - -// Representation of enumerator in enum: -// -// An enumerator is a constant of type unsigned long - -/* -** DEPENDENCIES: ast_constant.hh, utl_scoped_name.hh, utl_strlist.hh, -** ast_decl.hh -** -** USE: Included from ast.hh -*/ - -class AST_EnumVal : public virtual AST_Constant -{ -public: - // Operations - - // Constructor(s) - AST_EnumVal(); - AST_EnumVal(unsigned long v, UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_EnumVal() {} - - // Narrowing - DEF_NARROW_METHODS1(AST_EnumVal, AST_Constant); - DEF_NARROW_FROM_DECL(AST_EnumVal); - - // AST Dumping - virtual void dump(ostream &); -}; - -#endif // _AST_ENUM_VAL_AST_ENUM_VAL_HH diff --git a/TAO/TAO_IDL/include/ast_exception.h b/TAO/TAO_IDL/include/ast_exception.h deleted file mode 100644 index f3a667bd8b7..00000000000 --- a/TAO/TAO_IDL/include/ast_exception.h +++ /dev/null @@ -1,118 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_EXCEPTION_AST_EXCEPTION_HH -#define _AST_EXCEPTION_AST_EXCEPTION_HH - -// Representation of exception -// -// NOTE: An exception is not a type according to the CORBAS 1.1 -// -// NOTE: add(AST_ConcreteType *) is defined here because an exception -// can contain locally defined types in addition to fields. -// -// NOTE: add(AST_EnumValue *) is defined here because enums can -// be defined manifest locally; the constants defined in these -// enums are inserted in the enclosing scope. It is unlikely that -// a BE writer will need to overload this function in AST_Exception. - -/* -** DEPENDENCIES: ast_decl.hh, ast_structure.hh, utl_scope.hh, utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -class AST_Exception : public virtual AST_Structure -{ -public: - // Operations - - // Constructor(s) - AST_Exception(); - AST_Exception(UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_Exception() {} - - // Narrowing - DEF_NARROW_METHODS1(AST_Exception, AST_Structure); - DEF_NARROW_FROM_DECL(AST_Exception); - DEF_NARROW_FROM_SCOPE(AST_Exception); - - // AST Dumping - virtual void dump(ostream &o); - -private: - friend int tao_yyparse(); - // Scope Management Protocol - - virtual AST_Field *fe_add_field(AST_Field *f); - virtual AST_Union *fe_add_union(AST_Union *u); - virtual AST_Structure *fe_add_structure(AST_Structure *s); - virtual AST_Enum *fe_add_enum(AST_Enum *e); - virtual AST_EnumVal *fe_add_enum_val(AST_EnumVal *v); - -}; - -#endif // _AST_EXCEPTION_AST_EXCEPTION_HH diff --git a/TAO/TAO_IDL/include/ast_expression.h b/TAO/TAO_IDL/include/ast_expression.h deleted file mode 100644 index db3bd7abc41..00000000000 --- a/TAO/TAO_IDL/include/ast_expression.h +++ /dev/null @@ -1,231 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_EXPRESSION_AST_EXPRESSION_HH -#define _AST_EXPRESSION_AST_EXPRESSION_HH - -// Representation of expression values - -/* -** DEPENDENCIES: NONE -** -** USE: Included from ast.hh -*/ - -// An expression (and maybe its value, if computed) -class AST_Expression { -public: - // Enum to define all the different operators to combine expressions - enum ExprComb { - EC_add // '+' - , EC_minus // '-' - , EC_mul // '*' - , EC_div // '/' - , EC_mod // '%' - , EC_or // '|' - , EC_xor // '^' - , EC_and // '&' - , EC_left // '<<' - , EC_right // '>>' - , EC_u_plus // unary '+' - , EC_u_minus // unary '-' - , EC_bit_neg // '~' - , EC_none // No operator (missing) - , EC_symbol // a symbol (function or constant name) - }; - - // Enum to define the different kinds of evaluation possible - // Extend this for more kinds of evaluation as required - enum EvalKind { - EK_const // Must evaluate to constant - , EK_positive_int // Must evaluate to positive integer - }; - - // Enum to define expression type - enum ExprType { - EV_short // Expression value is short - , EV_ushort // Expression value is unsigned short - , EV_long // Expression value is long - , EV_ulong // Expression value is unsigned long - , EV_longlong // Expression value is long long - , EV_ulonglong // Expression value is unsigned long long - , EV_float // Expression value is 32-bit float - , EV_double // Expression value is 64-bit float - , EV_longdouble // Expression value is 128-bit float - , EV_char // Expression value is char - , EV_wchar // Expression value is wide char - , EV_octet // Expression value is unsigned char - , EV_bool // Expression value is boolean - , EV_string // Expression value is char * - , EV_wstring // Expression value is wchar_t * - , EV_any // Expression value is any of above - , EV_void // Expression value is void (absent) - , EV_none // Expression value is missing - }; - - // Structure to descrive value of constant expression and its type - struct AST_ExprValue { - union { - short sval; // Contains short expression value - unsigned short usval; // Contains unsigned short expr value - long lval; // Contains long expression value - unsigned long ulval; // Contains unsigned long expr value - unsigned long bval; // Contains boolean expression value - float fval; // Contains 32-bit float expr value - double dval; // Contains 64-bit float expr value - char cval; // Contains char expression value - unsigned char oval; // Contains unsigned char expr value - String *strval; // Contains String * expr value - unsigned long eval; // Contains enumeration value - } u; - ExprType et; - }; - - // Operations - - // Constructor(s) - AST_Expression(AST_Expression *v, ExprType t); - - AST_Expression(ExprComb c, AST_Expression *v1, AST_Expression *v2); - - AST_Expression(short s); - AST_Expression(unsigned short us); - AST_Expression(long l); - AST_Expression(long l, ExprType t); - AST_Expression(unsigned long ul); - AST_Expression(float f); - AST_Expression(double d); - AST_Expression(char c); - AST_Expression(unsigned char uc); - AST_Expression(String *s); - AST_Expression(UTL_ScopedName *n); - virtual ~AST_Expression () {} - - // Data Accessors - UTL_Scope *defined_in(); - void set_defined_in(UTL_Scope *d); - long line(); - void set_line(long l); - String *file_name(); - void set_file_name(String *f); - ExprComb ec(); - void set_ec(ExprComb new_ec); - AST_ExprValue *ev(); - void set_ev(AST_ExprValue *new_ev); - AST_Expression *v1(); - void set_v1(AST_Expression *e); - AST_Expression *v2(); - void set_v2(AST_Expression *e); - UTL_ScopedName *n(); - void set_n(UTL_ScopedName *new_n); - - // AST Dumping - virtual void dump(ostream &o); - - // Other operations - - // Evaluation and value coercion - virtual AST_ExprValue *eval(EvalKind ek); - virtual AST_ExprValue *coerce(ExprType t); - - // Evaluate then store value inside this AST_Expression - virtual void evaluate(EvalKind ek); - - // Compare to AST_Expressions - virtual long operator==(AST_Expression *vc); - virtual long compare(AST_Expression *vc); - -protected: - // Evaluate different sets of operators - virtual AST_ExprValue *eval_bin_op(EvalKind ek); - virtual AST_ExprValue *eval_bit_op(EvalKind ek); - virtual AST_ExprValue *eval_un_op(EvalKind ek); - virtual AST_ExprValue *eval_symbol(EvalKind ek); - -private: - // Data - UTL_Scope *pd_defined_in; // Scope - long pd_line; // Line defined in - String *pd_file_name; // What file defined in - - ExprComb pd_ec; // What combinator - AST_ExprValue *pd_ev; // computed value - AST_Expression *pd_v1; // 1st sub-expression - AST_Expression *pd_v2; // 2nd sub-expression - UTL_ScopedName *pd_n; // symbolic name (if any) - - // Operations - - // Fill out the lineno, filename and definition scope details - void fill_definition_details(); - - // Internal evaluation - virtual AST_ExprValue *eval_internal(EvalKind ek); -}; - -#endif // _AST_EXPR_VAL_AST_EXPR_VAL_HH - - diff --git a/TAO/TAO_IDL/include/ast_extern.h b/TAO/TAO_IDL/include/ast_extern.h deleted file mode 100644 index f344e371b83..00000000000 --- a/TAO/TAO_IDL/include/ast_extern.h +++ /dev/null @@ -1,93 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_EXTERN_AST_EXTERN_HH -#define _AST_EXTERN_AST_EXTERN_HH - -// ast_extern.hh -// -// Declares all global functions for the AST - -/* -** DEPENDENCIES: none -** -** USE: Included from idl_extern.hh -*/ - -// Functions: - -// Two functions are provided for storing AST nodes representing fwd -// declared interfaces, and for checking the stored nodes after parsing -// the entire AST. The check ensures that for each fwd declared interface -// the full definition was also seen. - -extern void AST_record_fwd_interface(AST_InterfaceFwd *i); -extern void AST_check_fwd_interface(); - -extern idl_bool AST_illegal_recursive_type(AST_Decl *t); - -#endif // _AST_EXTERN_AST_EXTERN_HH - diff --git a/TAO/TAO_IDL/include/ast_field.h b/TAO/TAO_IDL/include/ast_field.h deleted file mode 100644 index b3c6f04cd8c..00000000000 --- a/TAO/TAO_IDL/include/ast_field.h +++ /dev/null @@ -1,119 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_FIELD_AST_FIELD_HH -#define _AST_FIELD_AST_FIELD_HH - -// Representation of a generic field -// -// Used as member in structures, exceptions and unions, and as a base -// type for attributes and arguments to operations -// -// NOTE: There are two constructors here, the first is used when field -// is used directly inside a structure, the second when it is used as -// the base type for attributes and operations. - -/* -** DEPENDENCIES: ast_decl.hh, ast_type.hh, utl_scoped_name.hh, utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -#include "idl_fwd.h" -#include "idl_narrow.h" -#include "ast_decl.h" - - -class AST_Field : public virtual AST_Decl -{ -public: - // Operations - - // Constructor(s) - AST_Field(); - AST_Field(AST_Type *field_type, - UTL_ScopedName *n, UTL_StrList *p); - AST_Field(AST_Decl::NodeType nt, AST_Type *field_type, - UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_Field() {} - - // Data Accessors - AST_Type *field_type(); - - // Narrowing - DEF_NARROW_METHODS1(AST_Field, AST_Decl); - DEF_NARROW_FROM_DECL(AST_Field); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - AST_Type *pd_field_type; // Base type for field - -}; - -#endif // _AST_FIELD_AST_FIELD_HH diff --git a/TAO/TAO_IDL/include/ast_generator.h b/TAO/TAO_IDL/include/ast_generator.h deleted file mode 100644 index 6733bbad3e8..00000000000 --- a/TAO/TAO_IDL/include/ast_generator.h +++ /dev/null @@ -1,219 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_GENERATOR_AST_GENERATOR_HH -#define _AST_GENERATOR_AST_GENERATOR_HH - -// ast_generator.h -// -// Defines base class for generators - -/* -** DEPENDENCIES: ast_predefined_type.hh utl_scoped_name.hh utl_strlist.hh -** ast_module.hh ast_root.hh ast_interface.hh -** ast_interface_fwd.hh ast_exception.hh ast_structure.hh -** ast_enum.hh ast_operation.hh ast_type.hh ast_field.hh -** ast_argument.hh ast_attribute.hh ast_union.hh -** ast_concrete_type.hh ast_union_branch.hh ast_union_label.hh -** ast_expression.hh ast_enum_val.hh ast_array.hh -** ast_sequence.hh ast_string.hh ast_typedef.hh -** -** USE: Included from ast.hh -*/ - -class AST_Generator -{ -public: - // Operations - - // Create a node representing a predefined type - virtual AST_PredefinedType - *create_predefined_type(AST_PredefinedType::PredefinedType t, - UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing a module - virtual AST_Module *create_module(UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing a module which is the root of an AST - virtual AST_Root *create_root(UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing an interface - virtual AST_Interface *create_interface(UTL_ScopedName *n, - AST_Interface **ih, - long nih, - UTL_StrList *p); - - // Create a node representing a forward declaration of an interface - virtual AST_InterfaceFwd *create_interface_fwd(UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing an exception - virtual AST_Exception *create_exception(UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing a structure - virtual AST_Structure *create_structure(UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing an enum - virtual AST_Enum *create_enum(UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing an operation on an interface - virtual AST_Operation *create_operation(AST_Type *rt, - AST_Operation::Flags fl, - UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing a field in a structure, exception or - // union - virtual AST_Field *create_field(AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing an argument to an operation - virtual AST_Argument *create_argument(AST_Argument::Direction d, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing an attribute - virtual AST_Attribute *create_attribute(idl_bool ro, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing a union - virtual AST_Union *create_union(AST_ConcreteType *dt, - UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing one branch in a union - virtual AST_UnionBranch *create_union_branch(AST_UnionLabel *lab, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing a label on a union branch - virtual AST_UnionLabel *create_union_label(AST_UnionLabel::UnionLabel ul, - AST_Expression *lv); - - // Create a node representing a constant - virtual AST_Constant *create_constant(AST_Expression::ExprType et, - AST_Expression *ev, - UTL_ScopedName *n, - UTL_StrList *p); - - // Create various kinds of nodes representing expressions - virtual AST_Expression *create_expr(UTL_ScopedName *n); - virtual AST_Expression *create_expr(AST_Expression *v, - AST_Expression::ExprType t); - virtual AST_Expression *create_expr(AST_Expression::ExprComb c, - AST_Expression *v1, - AST_Expression *v2); - virtual AST_Expression *create_expr(long v); - virtual AST_Expression *create_expr(long v, - AST_Expression::ExprType t); - virtual AST_Expression *create_expr(unsigned long v); - virtual AST_Expression *create_expr(String *s); - virtual AST_Expression *create_expr(char c); - virtual AST_Expression *create_expr(double d); - - // Create a node representing an enumerator - virtual AST_EnumVal *create_enum_val(unsigned long v, - UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing an array type - virtual AST_Array *create_array(UTL_ScopedName *n, - unsigned long ndims, - UTL_ExprList *dims); - - // Create a node representing a sequence type - virtual AST_Sequence *create_sequence(AST_Expression *v, - AST_Type *bt); - - // Create a node representing a string type - virtual AST_String *create_string(AST_Expression *v); - - // Create a node representing a wide string type - virtual AST_String *create_wstring(AST_Expression *v); - - // Create a node representing a type renaming (typedef) - virtual AST_Typedef *create_typedef(AST_Type *bt, - UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing a native - virtual AST_Native *create_native (UTL_ScopedName *n, - UTL_StrList *p); - -}; - -#endif // _AST_GENERATOR_AST_GENERATOR_HH diff --git a/TAO/TAO_IDL/include/ast_interface.h b/TAO/TAO_IDL/include/ast_interface.h deleted file mode 100644 index c41eaf858fd..00000000000 --- a/TAO/TAO_IDL/include/ast_interface.h +++ /dev/null @@ -1,147 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_INTERFACE_AST_INTERFACE_HH -#define _AST_INTERFACE_AST_INTERFACE_HH - -// Representation of interface: -// -// NOTE: add(AST_EnumValue *) is defined here because enums can -// be defined manifest locally; the constants defined in these -// enums are inserted in the enclosing scope. - -/* -** DEPENDENCIES: ast_type.hh, utl_scope.hh, ast_decl.hh, utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -#include "idl_fwd.h" -#include "idl_narrow.h" -#include "ast_type.h" -#include "utl_scope.h" -#include "ast_decl.h" - - -class AST_Interface : public virtual AST_Type, public virtual UTL_Scope -{ -public: - // Operations - - // Constructor(s) - AST_Interface(); - AST_Interface(UTL_ScopedName *n, - AST_Interface **ih, - long nih, - UTL_StrList *p); - virtual ~AST_Interface() {} - - // Data Accessors - AST_Interface **inherits(); - void set_inherits(AST_Interface **i); - long n_inherits(); - void set_n_inherits(long i); - - // Is this interface defined? This predicate returns FALSE when an - // interface was forward declared but not defined yet, and TRUE in - // all other cases. - idl_bool is_defined() - { - return (pd_n_inherits < 0) ? I_FALSE : I_TRUE; - } - - // Narrowing - DEF_NARROW_METHODS2(AST_Interface, AST_Type, UTL_Scope); - DEF_NARROW_FROM_DECL(AST_Interface); - DEF_NARROW_FROM_SCOPE(AST_Interface); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - AST_Interface **pd_inherits; // Inherited interfaces - // This is an array of pointers - // to the inherited interfaces - long pd_n_inherits; // How many of them? - - // Scope Management Protocol - friend int tao_yyparse(); - - virtual AST_Constant *fe_add_constant(AST_Constant *c); - virtual AST_Exception *fe_add_exception(AST_Exception *e); - virtual AST_Attribute *fe_add_attribute(AST_Attribute *a); - virtual AST_Operation *fe_add_operation(AST_Operation *o); - virtual AST_Union *fe_add_union(AST_Union *u); - virtual AST_Structure *fe_add_structure(AST_Structure *s); - virtual AST_Enum *fe_add_enum(AST_Enum *e); - virtual AST_EnumVal *fe_add_enum_val(AST_EnumVal *v); - virtual AST_Typedef *fe_add_typedef(AST_Typedef *t); - virtual AST_Native *fe_add_native (AST_Native *n); - -}; - -#endif // _AST_INTERFACE_AST_INTERFACE_HH diff --git a/TAO/TAO_IDL/include/ast_interface_fwd.h b/TAO/TAO_IDL/include/ast_interface_fwd.h deleted file mode 100644 index 72a8f8842aa..00000000000 --- a/TAO/TAO_IDL/include/ast_interface_fwd.h +++ /dev/null @@ -1,106 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_INTERFACE_FWD_AST_INTERFACE_FWD_HH -#define _AST_INTERFACE_FWD_AST_INTERFACE_FWD_HH - -// Representation of a forward interface declaration - -/* -** DEPENDENCIES: ast_decl.hh, ast_interface.hh, utl_scoped_name.hh, -** utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -class AST_InterfaceFwd : public virtual AST_Type -{ -public: - // Operations - - // Constructor(s) - AST_InterfaceFwd(); - AST_InterfaceFwd(UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_InterfaceFwd() {} - - // Data Accessors - AST_Interface *full_definition(); - void set_full_definition(AST_Interface *nfd); - - // Narrowing - DEF_NARROW_METHODS1(AST_InterfaceFwd, AST_Type); - DEF_NARROW_FROM_DECL(AST_InterfaceFwd); - - // AST Dumping - virtual void dump(ostream &); - -private: - // Data - AST_Interface *pd_full_definition; // The interface this is a - // forward declaration of -}; - -#endif // _AST_INTERFACE_FWD_AST_INTERFACE_FWD_HH diff --git a/TAO/TAO_IDL/include/ast_module.h b/TAO/TAO_IDL/include/ast_module.h deleted file mode 100644 index 073eb5baa2c..00000000000 --- a/TAO/TAO_IDL/include/ast_module.h +++ /dev/null @@ -1,121 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_MODULE_AST_MODULE_HH -#define _AST_MODULE_AST_MODULE_HH - -// Representation of module -// -// NOTE: add(AST_EnumValue *) is defined here because enums can -// be defined manifest locally; the constants defined in these -// enums are inserted in the enclosing scope. - -/* -** DEPENDENCIES: ast_decl.hh, utl_scope.hh, utl_scoped_name.hh, utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -class AST_Module : public virtual AST_Decl, public virtual UTL_Scope -{ -public: - // Operations - - // Constructor(s) - AST_Module(); - AST_Module(UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_Module() {} - - // Narrowing - DEF_NARROW_METHODS2(AST_Module, AST_Decl, UTL_Scope); - DEF_NARROW_FROM_DECL(AST_Module); - DEF_NARROW_FROM_SCOPE(AST_Module); - - // AST Dumping - virtual void dump(ostream &o); - -private: - friend void fe_populate(AST_Module *m); - friend int tao_yyparse(); - - // Scope Management Protocol - - virtual AST_PredefinedType *fe_add_predefined_type(AST_PredefinedType *t); - virtual AST_Module *fe_add_module(AST_Module *m); - virtual AST_Interface *fe_add_interface(AST_Interface *i); - virtual AST_InterfaceFwd *fe_add_interface_fwd(AST_InterfaceFwd *i); - virtual AST_Constant *fe_add_constant(AST_Constant *c); - virtual AST_Exception *fe_add_exception(AST_Exception *e); - virtual AST_Union *fe_add_union(AST_Union *u); - virtual AST_Structure *fe_add_structure(AST_Structure *s); - virtual AST_Enum *fe_add_enum(AST_Enum *e); - virtual AST_EnumVal *fe_add_enum_val(AST_EnumVal *v); - virtual AST_Typedef *fe_add_typedef(AST_Typedef *t); - virtual AST_Native *fe_add_native (AST_Native *n); - -}; - -#endif // _AST_MODULE_AST_MODULE_HH diff --git a/TAO/TAO_IDL/include/ast_native.h b/TAO/TAO_IDL/include/ast_native.h deleted file mode 100644 index d170da542a9..00000000000 --- a/TAO/TAO_IDL/include/ast_native.h +++ /dev/null @@ -1,38 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ - -#if !defined (_AST_NATIVE_H_) -#define _AST_NATIVE_H_ - -// Representation of "native" IDL type added by the POA spec -// -/* -** DEPENDENCIES: ast_decl.h -** -** USE: Included from ast.h -*/ - -class AST_Native : public virtual AST_Type -{ -public: - // =Operations - - // Constructor(s) - AST_Native (void); - // default constructor - - AST_Native(UTL_ScopedName *n, UTL_StrList *p); - // constructor that initializes its scoped name - - virtual ~AST_Native (void) {} - // destructor - - // Narrowing - DEF_NARROW_METHODS1(AST_Native, AST_Type); - DEF_NARROW_FROM_DECL(AST_Native); - - // AST Dumping - virtual void dump(ostream &o); -}; - -#endif /* AST_NATIVE_H */ diff --git a/TAO/TAO_IDL/include/ast_operation.h b/TAO/TAO_IDL/include/ast_operation.h deleted file mode 100644 index 3dcf8a252ef..00000000000 --- a/TAO/TAO_IDL/include/ast_operation.h +++ /dev/null @@ -1,139 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_OPERATION_AST_OPERATION_HH -#define _AST_OPERATION_AST_OPERATION_HH - -// Representation of operation declaration: - -/* -** DEPENDENCIES: ast_decl.hh, utl_scope.hh, ast_type.hh, utl_strlist.hh, -** utl_exceptlist.hh, utl_scoped_name.hh -** -** USE: included from ast.hh -*/ - -#include "idl_fwd.h" -#include "idl_narrow.h" -#include "utl_list.h" -#include "ast_decl.h" -#include "utl_scope.h" -#include "utl_scoped_name.h" - - -class AST_Operation : public virtual AST_Decl, public virtual UTL_Scope -{ -public: - // Define enum with flags for operation attributes - enum Flags { - OP_noflags // No flags present - , OP_oneway // Operation is oneway - , OP_idempotent // Operation is idempotent - }; - - // Operations - - // Constructor(s) - AST_Operation(); - AST_Operation(AST_Type *return_type, - Flags flags, - UTL_ScopedName *n, - UTL_StrList *p); - virtual ~AST_Operation() {} - - // Data Accessors - AST_Type *return_type(); - Flags flags(); - UTL_StrList *context(); - UTL_ExceptList *exceptions(); - - // Narrowing - DEF_NARROW_METHODS2(AST_Operation, AST_Decl, UTL_Scope); - DEF_NARROW_FROM_DECL(AST_Operation); - DEF_NARROW_FROM_SCOPE(AST_Operation); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - AST_Type *pd_return_type; // Return type - Flags pd_flags; // Operation flags - UTL_StrList *pd_context; // Context - UTL_ExceptList *pd_exceptions; // Exceptions raised - - // Scope Management Protocol - friend int tao_yyparse(); - - virtual AST_Argument *fe_add_argument(AST_Argument *a); - virtual UTL_StrList *fe_add_context(UTL_StrList *c); - // Add context - virtual UTL_NameList *fe_add_exceptions(UTL_NameList *e); - // exceptions - -}; - -#endif // _AST_OPERATION_AST_OPERATION_HH diff --git a/TAO/TAO_IDL/include/ast_predefined_type.h b/TAO/TAO_IDL/include/ast_predefined_type.h deleted file mode 100644 index 7c7ebd953f4..00000000000 --- a/TAO/TAO_IDL/include/ast_predefined_type.h +++ /dev/null @@ -1,127 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_PREDEFINED_TYPE_AST_PREDEFINED_TYPE_HH -#define _AST_PREDEFINED_TYPE_AST_PREDEFINED_TYPE_HH - -// Representation of predefined types: -// -// Instances of this class are inserted into the global context by -// the front end before the start of parsing. - -/* -** DEPENDENCIES: ast_concrete_type.hh, utl_scoped_name.hh, utl_strlist.hh, -** ast_decl.hh -** -** USE: Included from ast.hh -*/ - -class AST_PredefinedType : public virtual AST_ConcreteType -{ -public: - // Enum for all the different predefined types - enum PredefinedType { - PT_long // Predefined type "long" - , PT_ulong // Predefined type "unsigned long" - , PT_longlong // Predefined type "long long" - , PT_ulonglong // Predefined type "unsigned long long" - , PT_short // Predefined type "short" - , PT_ushort // Predefined type "unsigned short" - , PT_float // Predefined type "float" - , PT_double // Predefined type "double" - , PT_longdouble // Predefined type "long double" - , PT_char // Predefined type "char" - , PT_wchar // Predefined type "wchar_t" - , PT_boolean // Predefined type "boolean" - , PT_octet // Predefined type "octet" - , PT_any // Predefined type "any" - , PT_void // Predefined type "void" - , PT_pseudo // Predefined type for pseudo objects - }; - - // Operations - - // Constructor(s) - AST_PredefinedType(); - AST_PredefinedType(PredefinedType t, UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_PredefinedType() {} - - // Data Accessors - PredefinedType pt(); - - // Narrowing - DEF_NARROW_METHODS1(AST_PredefinedType, AST_ConcreteType); - DEF_NARROW_FROM_DECL(AST_PredefinedType); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - const PredefinedType pd_pt; // The specific predefined type -}; - -#endif // _AST_PREDEFINED_TYPE_AST_PREDEFINED_TYPE_HH diff --git a/TAO/TAO_IDL/include/ast_root.h b/TAO/TAO_IDL/include/ast_root.h deleted file mode 100644 index e81c87f1fda..00000000000 --- a/TAO/TAO_IDL/include/ast_root.h +++ /dev/null @@ -1,107 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_ROOT_AST_ROOT_HH -#define _AST_ROOT_AST_ROOT_HH - -// Representation of root of AST - -/* -** DEPENDENCIES: ast_module.hh, utl_scoped_name.hh, utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -class AST_Root : public virtual AST_Module -{ -public: - // Operations - - // Constructor(s) - AST_Root(); - AST_Root(UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_Root() {} - - // Narrowing - DEF_NARROW_METHODS1(AST_Root, AST_Module); - DEF_NARROW_FROM_DECL(AST_Root); - DEF_NARROW_FROM_SCOPE(AST_Root); - - // AST Dumping - virtual void dump(ostream &o); - -private: - friend class FE_Declarator; - friend int tao_yyparse(); - // Add protocol - - virtual AST_Sequence *fe_add_sequence(AST_Sequence *s); - virtual AST_String *fe_add_string(AST_String *s); - virtual AST_Array *fe_add_array(AST_Array *a); - -}; - -#endif // _AST_ROOT_AST_ROOT_HH diff --git a/TAO/TAO_IDL/include/ast_sequence.h b/TAO/TAO_IDL/include/ast_sequence.h deleted file mode 100644 index 73849d0f02b..00000000000 --- a/TAO/TAO_IDL/include/ast_sequence.h +++ /dev/null @@ -1,108 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_SEQUENCE_AST_SEQUENCE_HH -#define _AST_SEQUENCE_AST_SEQUENCE_HH - -// Representation of sequence declaration: -// -// A sequence is a combination of a maximum size and a base type - -/* -** DEPENDENCIES: ast_concrete_type.hh, ast_type.hh, ast_decl.hh, -** ast_expression.hh -** -** USE: Included from ast.hh -*/ - -class AST_Sequence : public virtual AST_ConcreteType -{ -public: - // Operations - - // Constructor(s) - AST_Sequence(); - AST_Sequence(AST_Expression *max_size, AST_Type *bt); - virtual ~AST_Sequence() {} - - // Data Accessors - AST_Expression *max_size(); - AST_Type *base_type(); - - // Narrowing - DEF_NARROW_METHODS1(AST_Sequence, AST_ConcreteType); - DEF_NARROW_FROM_DECL(AST_Sequence); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - AST_Expression *pd_max_size; // Maximum sequence size - AST_Type *pd_base_type; // Sequence base type -}; - -#endif // _AST_SEQUENCE_AST_SEQUENCE_HH diff --git a/TAO/TAO_IDL/include/ast_string.h b/TAO/TAO_IDL/include/ast_string.h deleted file mode 100644 index 9e5874c304c..00000000000 --- a/TAO/TAO_IDL/include/ast_string.h +++ /dev/null @@ -1,108 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_STRING_AST_STRING_HH -#define _AST_STRING_AST_STRING_HH - -// Representation of string declaration -// -// A string type is represented by a maximum size - -/* -** DEPENDENCIES: ast_concrete_type.hh, ast_decl.hh, ast_expression.hh -** -** USE: Included from ast.hh -*/ - -class AST_String : public virtual AST_ConcreteType -{ -public: - // Operations - - // Constructor(s) - AST_String(); - AST_String(AST_Expression *max_size); - AST_String(AST_Expression *max_size, long wide); - virtual ~AST_String() {} - - // Data Accessors - AST_Expression *max_size(); - long width(); - - // Narrowing - DEF_NARROW_METHODS1(AST_String, AST_ConcreteType); - DEF_NARROW_FROM_DECL(AST_String); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - AST_Expression *pd_max_size; // String maximum size - long pd_width; // Width of string -}; - -#endif // _AST_STRING_AST_STRING_HH diff --git a/TAO/TAO_IDL/include/ast_structure.h b/TAO/TAO_IDL/include/ast_structure.h deleted file mode 100644 index baa1944bbe6..00000000000 --- a/TAO/TAO_IDL/include/ast_structure.h +++ /dev/null @@ -1,118 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_STRUCTURE_AST_STRUCTURE_HH -#define _AST_STRUCTURE_AST_STRUCTURE_HH - -// Representation of structure: -// -// NOTE: add(AST_ConcreteType *) is defined here because a structure -// can contain locally defined types in addition to fields. -// -// NOTE: add(AST_EnumValue *) is defined here because enums can -// be defined manifest locally; the constants defined in these -// enums are inserted in the enclosing scope. It is unlikely that -// a BE writer will need to overload this function in AST_Structure. - -/* -** DEPENDENCIES: ast_concrete_type.hh, utl_scope.hh, utl_scoped_name.hh, -** utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -class AST_Structure : public virtual AST_ConcreteType, - public virtual UTL_Scope -{ -public: - // Operations - - // Constructor(s) - AST_Structure(); - AST_Structure(UTL_ScopedName *n, UTL_StrList *p); - AST_Structure(AST_Decl::NodeType nt, UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_Structure() {} - - // Narrowing - DEF_NARROW_METHODS2(AST_Structure, AST_ConcreteType, UTL_Scope); - DEF_NARROW_FROM_DECL(AST_Structure); - DEF_NARROW_FROM_SCOPE(AST_Structure); - - // AST Dumping - virtual void dump(ostream &o); - -private: - friend int tao_yyparse(); - // Scope Management Protocol - - virtual AST_Union *fe_add_union(AST_Union *u); - virtual AST_Structure *fe_add_structure(AST_Structure *s); - virtual AST_Field *fe_add_field(AST_Field *f); - virtual AST_Enum *fe_add_enum(AST_Enum *e); - virtual AST_EnumVal *fe_add_enum_val(AST_EnumVal *v); -}; - -#endif // _AST_STRUCTURE_AST_STRUCTURE_HH diff --git a/TAO/TAO_IDL/include/ast_type.h b/TAO/TAO_IDL/include/ast_type.h deleted file mode 100644 index 04a36d8235d..00000000000 --- a/TAO/TAO_IDL/include/ast_type.h +++ /dev/null @@ -1,101 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_TYPE_AST_TYPE_HH -#define _AST_TYPE_AST_TYPE_HH - -// Class for all IDL types -// -// This is useful wherever any IDL type defining construct can appear -// such as the base type for a typedef or array - -/* -** DEPENDENCIES: ast_decl.hh, utl_scoped_name.hh, utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -#include "idl_fwd.h" -#include "idl_narrow.h" -#include "ast_decl.h" - - -class AST_Type : public virtual AST_Decl -{ -public: - // Operations - - // Constructor(s) - AST_Type(); - AST_Type(AST_Decl::NodeType nt, UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_Type() {} - - // Narrowing - DEF_NARROW_METHODS1(AST_Type, AST_Decl); - DEF_NARROW_FROM_DECL(AST_Type); -}; - -#endif // _AST_TYPE_AST_TYPE_HH diff --git a/TAO/TAO_IDL/include/ast_typedef.h b/TAO/TAO_IDL/include/ast_typedef.h deleted file mode 100644 index c2e13051b54..00000000000 --- a/TAO/TAO_IDL/include/ast_typedef.h +++ /dev/null @@ -1,105 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_TYPEDEF_AST_TYPEDEF_HH -#define _AST_TYPEDEF_AST_TYPEDEF_HH - -// Representation of typedef declaration -// -// A typedef declaration is a renaming of a base type - -/* -** DEPENDENCIES: ast_decl.hh, ast_type.hh, utl_scoped_name.hh, utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -class AST_Typedef : public virtual AST_Type -{ -public: - // Operations - - // Constructor(s) - AST_Typedef(); - AST_Typedef(AST_Type *base_type, UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_Typedef() {} - - // Data Accessors - AST_Type *base_type(); - - // Narrowing - DEF_NARROW_METHODS1(AST_Typedef, AST_Type); - DEF_NARROW_FROM_DECL(AST_Typedef); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - AST_Type *pd_base_type; // typedef base type -}; - -#endif // _AST_TYPEDEF_AST_TYPEDEF_HH diff --git a/TAO/TAO_IDL/include/ast_union.h b/TAO/TAO_IDL/include/ast_union.h deleted file mode 100644 index 062e540e9a8..00000000000 --- a/TAO/TAO_IDL/include/ast_union.h +++ /dev/null @@ -1,143 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_UNION_AST_UNION_HH -#define _AST_UNION_AST_UNION_HH - -// Representation of union declaration: -// -// NOTE: add(AST_ConcreteType *) is defined here because a union -// can contain locally defined types in addition to fields. -// -// NOTE: add(AST_EnumValue *) is defined here because enums can -// be defined manifest locally; the constants defined in these -// enums are inserted in the enclosing scope. It is unlikely that -// a BE writer will need to overload this function in AST_Union. - -/* -** DEPENDENCIES: ast_concrete_type.hh, utl_scope.hh, ast_union_branch.hh, -** ast_union_label.hh, utl_scoped_name.hh, utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -class AST_Union : public virtual AST_Structure -{ -public: - // Operations - - // Constructor(s) - AST_Union(); - AST_Union(AST_ConcreteType *disc_type, UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_Union() {} - - // Data Accessors - AST_ConcreteType *disc_type(); - AST_Expression::ExprType udisc_type(); - - // Narrowing - DEF_NARROW_METHODS1(AST_Union, AST_Structure); - DEF_NARROW_FROM_DECL(AST_Union); - DEF_NARROW_FROM_SCOPE(AST_Union); - - // AST Dumping - virtual void dump(ostream &); - -private: - // Data - AST_ConcreteType *pd_disc_type; // Discriminator type - AST_Expression::ExprType pd_udisc_type; // Its expression type - /* Convention: udisc_type == EV_any denotes an enum value */ - - // Operations - - // Look up a branch by node pointer - AST_UnionBranch *lookup_branch(AST_UnionBranch *branch); - - // Look up the branch with the "default" label - AST_UnionBranch *lookup_default(); - - // Look up a branch given a branch with a label. This is used to - // check for duplicate labels - AST_UnionBranch *lookup_label(AST_UnionBranch *b); - - // Look up a union branch given an enumerator. This is used to - // check for duplicate enum labels - AST_UnionBranch *lookup_enum(AST_UnionBranch *b); - -private: - friend int tao_yyparse(); - // Scope Management Protocol - - virtual AST_Union *fe_add_union(AST_Union *u); - virtual AST_UnionBranch *fe_add_union_branch(AST_UnionBranch *b); - virtual AST_Structure *fe_add_structure(AST_Structure *s); - virtual AST_Enum *fe_add_enum(AST_Enum *e); - virtual AST_EnumVal *fe_add_enum_val(AST_EnumVal *v); - -}; - -#endif // _AST_UNION_AST_UNION_HH diff --git a/TAO/TAO_IDL/include/ast_union_branch.h b/TAO/TAO_IDL/include/ast_union_branch.h deleted file mode 100644 index 2bfe414452e..00000000000 --- a/TAO/TAO_IDL/include/ast_union_branch.h +++ /dev/null @@ -1,109 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_UNION_BRANCH_AST_UNION_BRAN_HH -#define _AST_UNION_BRANCH_AST_UNION_BRAN_HH - -// Representation of union branch declaration: -// -// A branch of a union is a field with a label - -/* -** DEPEndencies: ast_field.hh, ast_union_label.hh, ast_type.hh, -** utl_scoped_name.hh, utl_strlist.h, ast_decl.h -** -** USE: Included from ast.hh -*/ - -class AST_UnionBranch : public virtual AST_Field -{ -public: - // Operations - - // Constructor(s) - AST_UnionBranch(); - AST_UnionBranch(AST_UnionLabel *label, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); - virtual ~AST_UnionBranch() {} - - // Data Accessors - AST_UnionLabel *label(); - - // Narrowing - DEF_NARROW_METHODS1(AST_UnionBranch, AST_Field); - DEF_NARROW_FROM_DECL(AST_UnionBranch); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - AST_UnionLabel *pd_label; // Label of this branch -}; - -#endif // _AST_UNION_BRANCH_AST_UNION_BRAN_HH diff --git a/TAO/TAO_IDL/include/ast_union_label.h b/TAO/TAO_IDL/include/ast_union_label.h deleted file mode 100644 index 7dd124784a4..00000000000 --- a/TAO/TAO_IDL/include/ast_union_label.h +++ /dev/null @@ -1,110 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_UNION_LABEL_AST_UNION_LABEL_HH -#define _AST_UNION_LABEL_AST_UNION_LABEL_HH - -// AST_UnionLabel.h -// -// Defines labels for unions - -/* -** DEPENDENCIES: ast_expression.hh -** -** USE: included from ast.hh -*/ - -class AST_UnionLabel -{ -public: - // Define kind of label - enum UnionLabel { - UL_default // Label is "default" - , UL_label // Regular label - }; - - // Operations - - // Constructor(s) - AST_UnionLabel(); - AST_UnionLabel(UnionLabel lk, AST_Expression *lv); - virtual ~AST_UnionLabel() {} - - // Data Accessors - UnionLabel label_kind(); - AST_Expression *label_val(); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - UnionLabel pd_label_kind; // Label kind - AST_Expression *pd_label_val; // Label expression - -}; - -#endif // _AST_UNION_LABEL_AST_UNION_LABEL_HH diff --git a/TAO/TAO_IDL/include/be_extern.h b/TAO/TAO_IDL/include/be_extern.h deleted file mode 100644 index 253599b76f1..00000000000 --- a/TAO/TAO_IDL/include/be_extern.h +++ /dev/null @@ -1,82 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _BE_EXTERN_BE_EXTERN_HH -#define _BE_EXTERN_BE_EXTERN_HH - -// be_extern.h - Defines the BE part of the BE<->FE protocol - -// Functions: - -extern "C" AST_Generator *BE_init(); - -extern "C" void BE_produce(); -extern "C" void BE_abort(); -extern "C" void BE_prep_arg(char *, idl_bool); - -extern "C" void BE_version(); - -#endif // _BE_EXTERN_BE_EXTERN_HH diff --git a/TAO/TAO_IDL/include/drv_extern.h b/TAO/TAO_IDL/include/drv_extern.h deleted file mode 100644 index f50a38e0cd6..00000000000 --- a/TAO/TAO_IDL/include/drv_extern.h +++ /dev/null @@ -1,86 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _DRV_EXTERN_DRV_EXTERN_HH -#define _DRV_EXTERN_DRV_EXTERN_HH - -// drv_extern.h - External functions for the IDL compiler driver program - -// Functions - -extern void DRV_init(); -extern void DRV_parse_args(long, char **); -extern void DRV_usage(); - -extern void DRV_pre_proc(char *myfile); - -extern void DRV_cpp_init(); -extern void DRV_cpp_putarg(char *str); -extern void DRV_cpp_new_location(char *new_loc); - -extern void DRV_fork(); - -#endif // _DRV_EXTERN_DRV_EXTERN_HH diff --git a/TAO/TAO_IDL/include/drv_link.h b/TAO/TAO_IDL/include/drv_link.h deleted file mode 100644 index fa154436c25..00000000000 --- a/TAO/TAO_IDL/include/drv_link.h +++ /dev/null @@ -1,124 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _DRV_LINK_DRV_LINK_HH -#define _DRV_LINK_DRV_LINK_HH - -// drv_link.hh - Define data and functions which are used to -// link in the back end functions - -/* - * Front end interface - */ - -class File; -typedef void (* DRV_PF_FE_init_stage1)(); -typedef void (* DRV_PF_FE_init_stage2)(); -typedef int (* DRV_PF_FE_yyparse)(); -typedef void (* DRV_PF_FE_set_yyin)(File *); - -class UTL_Error; -class UTL_Indenter; -class UTL_String; -typedef UTL_Error * (* DRV_PF_FE_new_UTL_Error)(); -typedef UTL_Indenter * (* DRV_PF_FE_new_UTL_Indenter)(); -typedef UTL_String * (* DRV_PF_FE_new_UTL_String)(char *); - -extern DRV_PF_FE_init_stage1 DRV_FE_init_stage1; -extern DRV_PF_FE_init_stage2 DRV_FE_init_stage2; -extern DRV_PF_FE_yyparse DRV_FE_yyparse; -extern DRV_PF_FE_set_yyin DRV_FE_set_yyin; - -extern DRV_PF_FE_new_UTL_Error DRV_FE_new_UTL_Error; -extern DRV_PF_FE_new_UTL_Indenter DRV_FE_new_UTL_Indenter; -extern DRV_PF_FE_new_UTL_String DRV_FE_new_UTL_String; - -/* - * Back end interface - */ - -class AST_Generator; -typedef AST_Generator * (* DRV_PF_BE_init)(); -typedef void (* DRV_PF_BE_produce)(); -typedef void (* DRV_PF_BE_abort)(); -typedef void (* DRV_PF_BE_prep_arg)(char *, idl_bool); -typedef void (* DRV_PF_BE_version)(); - -extern DRV_PF_BE_init DRV_BE_init; -extern DRV_PF_BE_produce DRV_BE_produce; -extern DRV_PF_BE_abort DRV_BE_abort; -extern DRV_PF_BE_prep_arg DRV_BE_prep_arg; -extern DRV_PF_BE_version DRV_BE_version; - -// Functions - -extern void DRV_FE_open(); -extern void DRV_FE_close(); - -extern void DRV_BE_open(); -extern void DRV_BE_close(); - -#endif // _DRV_LINK_DRV_LINK_HH diff --git a/TAO/TAO_IDL/include/drv_private.h b/TAO/TAO_IDL/include/drv_private.h deleted file mode 100644 index 6b18ea8df74..00000000000 --- a/TAO/TAO_IDL/include/drv_private.h +++ /dev/null @@ -1,83 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _DRV_PRIVATE_DRV_PRIVATE_HH -#define _DRV_PRIVATE_DRV_PRIVATE_HH - -// drv_private.hh - Define data and functions which are private to -// the DRV but which must be accessible througout the DRV - -// Data - -extern char *DRV_files[]; // All files to be processed -extern long DRV_nfiles; // How many are there? -extern long DRV_file_index; // What's the file I am responsible - // for? - -// Functions -extern void DRV_drive(char *);// Compiler driver for single file - -#endif // _DRV_PRIVATE_DRV_PRIVATE_HH diff --git a/TAO/TAO_IDL/include/fe_declarator.h b/TAO/TAO_IDL/include/fe_declarator.h deleted file mode 100644 index 00840836a90..00000000000 --- a/TAO/TAO_IDL/include/fe_declarator.h +++ /dev/null @@ -1,113 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _FE_DECLARATOR_FE_DECLARATOR_HH -#define _FE_DECLARATOR_FE_DECLARATOR_HH - -// FE_Declarator.h -// -// FE internal class for storing interim declaration statements - -/* -** DEPENDENCIES: utl_scoped_name.hh, ast_decl.hh -** -** USE: Included from fe.hh -*/ - -class FE_Declarator -{ -public: - // Enum to denote types of declarators - enum DeclaratorType { - FD_simple // Simple declarator - , FD_complex // Complex declarator (complex_part field used) - }; - - // Operations - - // Constructor(s) - FE_Declarator(UTL_ScopedName *n, DeclaratorType dt, AST_Decl *cp); - virtual ~FE_Declarator() {} - - // Data Accessors - AST_Decl *complex_part(); - UTL_ScopedName *name(); - DeclaratorType decl_type(); - - // Other Operations - - // Compose an FE_Declarator into an AST_Type once all the needed information - // is available - AST_Type *compose(AST_Decl* tc); - -private: - // Data - AST_Decl *pd_complex_part; // If a complex declarator - UTL_ScopedName *pd_name; // The name if complex - DeclaratorType pd_decl_type; // Whether complex or simple -}; - -#endif // _FE_DECLARATOR_FE_DECLARATOR_HH diff --git a/TAO/TAO_IDL/include/fe_extern.h b/TAO/TAO_IDL/include/fe_extern.h deleted file mode 100644 index 87ec38c5b55..00000000000 --- a/TAO/TAO_IDL/include/fe_extern.h +++ /dev/null @@ -1,109 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _FE_EXTERN_FE_EXTERN_HH -#define _FE_EXTERN_FE_EXTERN_HH - -// fe_extern.hh -// -// Declares all global functions for the FE - -/* -** DEPENDENCIES: none -** -** USE: Included from idl_extern.hh -*/ - -// Functions: - -// Initialization: -// -// FE initialization is done in two stages, with the BE initialization -// occurring in between. The first stage is responsible for creating -// the sope stack. The BE initialization creates the generator object -// which is then used in the second stage to create the global scope -// and to populate it with nodes for the predefined types - -extern "C" void FE_init_stage1(); // Initialize stage 1 -extern "C" void FE_init_stage2(); // Initialize stage 2 - -// Interface to Yacc parser - -class File; -extern "C" int FE_yyparse(); // Invode yyparse -extern "C" void FE_set_yyin(File *); // Set yyin - -// Interface to constructors for objects need by the driver - -class UTL_Error; -class UTL_Indenter; -class UTL_String; - -extern "C" UTL_Error * FE_new_UTL_Error(); -extern "C" UTL_Indenter * FE_new_UTL_Indenter(); -extern "C" UTL_String * FE_new_UTL_String(char *); - -#endif // _FE_EXTERN_FE_EXTERN_HH diff --git a/TAO/TAO_IDL/include/fe_interface_header.h b/TAO/TAO_IDL/include/fe_interface_header.h deleted file mode 100644 index f9b9d5bbf45..00000000000 --- a/TAO/TAO_IDL/include/fe_interface_header.h +++ /dev/null @@ -1,109 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _FE_INTERFACE_HEADER_FE_INTERFACE_HH -#define _FE_INTERFACE_HEADER_FE_INTERFACE_HH - -// FE_InterfaceHeader -// -// Internal class for FE to describe interface headers - -/* -** DEPENDENCIES: utl_scoped_name.hh, ast_interface.hh, utl_scope.hh, -** ast_decl.hh -** -** USE: Included from fe.hh -*/ - -class FE_InterfaceHeader -{ -public: - // Operations - - // Constructor(s) - FE_InterfaceHeader(UTL_ScopedName *n, UTL_NameList *l); - virtual ~FE_InterfaceHeader() {} - - // Data Accessors - UTL_ScopedName *interface_name(); - AST_Interface **inherits(); - long n_inherits(); - -private: - // Data - UTL_ScopedName *pd_interface_name; // Interface name - AST_Interface **pd_inherits; // Inherited interfaces - long pd_n_inherits; // How many - - // Operations - - // Compile the flattened unique list of interfaces which this - // interface inherits from - void compile_one_inheritance(AST_Interface *i); - void compile_inheritance(UTL_NameList *l); -}; - -#endif // _FE_INTERFACE_HEADER_FE_INTERFACE_HH diff --git a/TAO/TAO_IDL/include/fe_private.h b/TAO/TAO_IDL/include/fe_private.h deleted file mode 100644 index 8edf1e6971d..00000000000 --- a/TAO/TAO_IDL/include/fe_private.h +++ /dev/null @@ -1,90 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _FE_FE_HH -#define _FE_FE_HH - -// fe_private.hh - Defines data which is private to the FE but -// which must be accessible throughout the FE - -/* -** DEPENDENCIES: NONE -** -** USE: Included from source files -*/ - -/* - * FE includes - */ - -#include "fe_interface_header.h"// class FE_InterfaceHeader -#include "fe_declarator.h" // class FE_Declarator - -/* - * FE Operations - */ - -#endif // _FE_FE_HH diff --git a/TAO/TAO_IDL/include/global_extern.h b/TAO/TAO_IDL/include/global_extern.h deleted file mode 100644 index c28a733f785..00000000000 --- a/TAO/TAO_IDL/include/global_extern.h +++ /dev/null @@ -1,80 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _GLOBAL_EXTERN_GLOBAL_EXTERN_HH -#define _GLOBAL_EXTERN_GLOBAL_EXTERN_HH - -// global_extern.hh - Global data for the IDL compiler - -extern IDL_GlobalData *idl_global; // Contains all "global" data - -// Global functions for the IDL compiler - -// Return TRUE when the name of this AST_Decl can be reused in -// a definition in this scope -extern idl_bool can_be_redefined(AST_Decl *); - -#endif // _GLOBAL_EXTERN_GLOBAL_EXTERN_HH diff --git a/TAO/TAO_IDL/include/idl.h b/TAO/TAO_IDL/include/idl.h deleted file mode 100644 index 14592970752..00000000000 --- a/TAO/TAO_IDL/include/idl.h +++ /dev/null @@ -1,96 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _IDL_IDL_HH -#define _IDL_IDL_HH - -// idl.hh -// -// Main include file for IDL compiler. Includes the rest of the -// files defining the different units of the compiler - -#include "ace/ACE.h" // Most important ACE include file -#include "ace/streams.h" // iostreams -#include "intlmacros.h" // Define macros for intl'ion - -#include // POSIX standard defns -#include // External functions - -#include // POSIX standard types - -#include "idl_narrow.h" // IDL Narrowing mechanism - -#include "idl_defines.h" // Constants for IDL compiler -#include "idl_fwd.h" // Forward decls of classes - -#include "idl_bool.h" // Defines boolean for IDL - -#include "utl_string.h" // Defines utility string class -#include "utl_identifier.h" // Defines utility identifier class -#include "ast.h" // AST classes -#include "util.h" // Utility classes - -#endif // _IDL_IDL_HH diff --git a/TAO/TAO_IDL/include/idl_bool.h b/TAO/TAO_IDL/include/idl_bool.h deleted file mode 100644 index c0741684896..00000000000 --- a/TAO/TAO_IDL/include/idl_bool.h +++ /dev/null @@ -1,94 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _IDL_BOOL_IDL_BOOL_HH -#define _IDL_BOOL_IDL_BOOL_HH - -/* - * idl_bool.hh - Boolean definitions for IDL CFE - * - * This is interim. When porting to a new platform, this file will be - * modified to incorporate definitions for the boolean type suitable - * for the new platform. - */ - -/* -** DEPENDENCIES: NONE -** -** USE: Included from idl.hh -*/ - -#ifndef I_TRUE -#define I_TRUE 1 -#endif - -#ifndef I_FALSE -#define I_FALSE 0 -#endif - -typedef long idl_bool; - -#endif // _IDL_BOOL_IDL_BOOL_HH diff --git a/TAO/TAO_IDL/include/idl_defines.h b/TAO/TAO_IDL/include/idl_defines.h deleted file mode 100644 index 6cf062ee212..00000000000 --- a/TAO/TAO_IDL/include/idl_defines.h +++ /dev/null @@ -1,84 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _IDL_DEFINES_IDL_DEFINES_HH -#define _IDL_DEFINES_IDL_DEFINES_HH - -/* - * idl_defines.hh - Defines global compiler flags - */ - -// This cannot be an enum since more than one value may be active at -// a given time, hence bitflags are #define'd instead - -#define IDL_CF_VERSION (1 << 0) -#define IDL_CF_DUMP_AST (1 << 1) -#define IDL_CF_ONLY_PREPROC (1 << 2) -#define IDL_CF_ONLY_USAGE (1 << 3) -#define IDL_CF_INFORMATIVE (1 << 4) -#define IDL_CF_NOWARNINGS (1 << 5) - -#endif // _IDL_DEFINES_IDL_DEFINES_HH diff --git a/TAO/TAO_IDL/include/idl_extern.h b/TAO/TAO_IDL/include/idl_extern.h deleted file mode 100644 index efbe0ccdeb5..00000000000 --- a/TAO/TAO_IDL/include/idl_extern.h +++ /dev/null @@ -1,81 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _IDL_EXTERN_IDL_EXTERN_HH -#define _IDL_EXTERN_IDL_EXTERN_HH - -// idl_extern.hh -// -// Global variables and functions for IDL compiler - -#include "fe_extern.h" // External API of FE -#include "be_extern.h" // External API of BE -#include "drv_extern.h" // External API of DRV -#include "ast_extern.h" // External API of AST -#include "nr_extern.h" // External API of NR -#include "global_extern.h" // Global data - -#endif // _IDL_EXTERN_IDL_EXTERN_HH diff --git a/TAO/TAO_IDL/include/idl_fwd.h b/TAO/TAO_IDL/include/idl_fwd.h deleted file mode 100644 index 7b9761418b4..00000000000 --- a/TAO/TAO_IDL/include/idl_fwd.h +++ /dev/null @@ -1,148 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _IDL_FWD_IDL_FWD_HH -#define _IDL_FWD_IDL_FWD_HH - -// idl_fwd.hh -// -// Forward declaration of all class names in CFE-BEs contract - -/* -** DEPENDENCIES: NONE -** -** USE: Included from idl.hh -*/ - -// Class for global data representation: - -class IDL_GlobalData; // Global data is stored in an - // instance of this - -// Classes for utility of the IDL compiler: - -class UTL_ScopeStack; // Stack of scopes -class UTL_Scope; // A definition scope (mixin) - -class UTL_LongList; // List of longs -class UTL_StrList; // List of strings -class UTL_StrlistActiveIterator; // Active iterator for list of strings -class UTL_IdList; // List of identifiers -class UTL_IdListActiveIterator; // Active iterator for list of id's -class UTL_ExceptList; // List of exceptions -class UTL_NameList; // List of scoped names -class UTL_ExprList; // List of expressions -class UTL_InterfList; // List of interfaces -class UTL_LabelList; // List of union branch labels -class UTL_DeclList; // List of declarators -class UTL_String; // String class -class UTL_Identifier; // Identifier class - -class UTL_Error; // Error class -class UTL_Indenter; // Indenter class - -// Classes for utility of the FE. These classes are used only -// by the FE but their forward declaration is needed because lists -// of them are constructed by classes in UTL - -class FE_InterfaceHeader; // Interface header -class FE_Declarator; // Declarator - -// Generator class for the AST - -class AST_Generator; // Generate nodes of various types - -// Classes for AST: - -class AST_Decl; // The rock bottom base class - -class AST_PredefinedType; // A predefined type -class AST_Type; // An IDL type -class AST_ConcreteType; // An IDL concrete type -class AST_Module; // A module -class AST_Root; // The root of an AST (a module) -class AST_Interface; // An interface -class AST_InterfaceFwd; // A forward interface decl -class AST_Constant; // A constant declaration -class AST_Expression; // Value of an expression -class AST_Exception; // An exception declaration -class AST_Attribute; // An attribute declaration -class AST_Operation; // An operation declaration -class AST_Argument; // An argument to an operation -class AST_Union; // A union declaration -class AST_UnionBranch; // A branch in a union -class AST_UnionLabel; // A union branch label -class AST_Structure; // A structure declaration -class AST_Field; // A field in a structure or union -class AST_Enum; // An enum declaration -class AST_EnumVal; // An enumerator in an enum -class AST_Sequence; // A sequence declaration -class AST_String; // A string declaration -class AST_Array; // An array declaration -class AST_Typedef; // A typedef declaration -class AST_Native; // A native declaration - -#endif // _IDL_FWD_IDL_FWD_HH diff --git a/TAO/TAO_IDL/include/idl_global.h b/TAO/TAO_IDL/include/idl_global.h deleted file mode 100644 index 07e114b3814..00000000000 --- a/TAO/TAO_IDL/include/idl_global.h +++ /dev/null @@ -1,374 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _IDL_IDL_GLOBAL_HH -#define _IDL_IDL_GLOBAL_HH - -// idl_global.hh -// -// Defines a class containing all global data for the compiler. -// Can be subclassed in BEs to store more data - -class IDL_GlobalData -{ -public: - // Types - - // The ParseState type encodes the state of the Yacc parser so that - // better error messages can be produced, and for use by BEs in situations - // where context sensitive behavior is required - enum ParseState { - PS_NoState // No state - , PS_TypeDeclSeen // Seen complete typedef declaration - , PS_ConstDeclSeen // Seen complete const declaration - , PS_ExceptDeclSeen // Seen complete exception declaration - , PS_InterfaceDeclSeen // Seen complete interface declaration - , PS_ModuleDeclSeen // Seen complete module declaration - , PS_AttrDeclSeen // Seen complete attribute declaration - , PS_OpDeclSeen // Seen complete operation declaration - , PS_ModuleSeen // Seen a MODULE keyword - , PS_ModuleIDSeen // Seen the module ID - , PS_ModuleSqSeen // '{' seen for module - , PS_ModuleQsSeen // '}' seen for module - , PS_ModuleBodySeen // Seen complete module body - , PS_InterfaceSeen // Seen an INTERFACE keyword - , PS_InterfaceIDSeen // Seen the interface ID - , PS_InheritSpecSeen // Seen a complete inheritance spec - , PS_ForwardDeclSeen // Forward interface decl seen - , PS_InterfaceSqSeen // '{' seen for interface - , PS_InterfaceQsSeen // '}' seen for interface - , PS_InterfaceBodySeen // Seen an interface body - , PS_InheritColonSeen // Seen ':' in inheritance list - , PS_SNListCommaSeen // Seen ',' in list of scoped names - , PS_ScopedNameSeen // Seen a complete scoped name - , PS_SN_IDSeen // Seen an identifier as part of a scoped name - , PS_ScopeDelimSeen // Seen a scope delim as party of a scoped name - , PS_ConstSeen // Seen a CONST keyword - , PS_ConstTypeSeen // Parsed the type of a constant - , PS_ConstIDSeen // Seen the constant ID - , PS_ConstAssignSeen // Seen the '=' - , PS_ConstExprSeen // Seen the constant value expression - , PS_TypedefSeen // Seen a TYPEDEF keyword - , PS_TypeSpecSeen // Seen a complete type specification - , PS_DeclaratorsSeen // Seen a complete list of declarators - , PS_StructSeen // Seen a STRUCT keyword - , PS_StructIDSeen // Seen the struct ID - , PS_StructSqSeen // '{' seen for struct - , PS_StructQsSeen // '}' seen for struct - , PS_StructBodySeen // Seen complete body of struct decl - , PS_MemberTypeSeen // Seen type of struct or except member - , PS_MemberDeclsSeen // Seen decls of struct or except members - , PS_MemberDeclsCompleted // Completed one struct or except member to ';' - , PS_UnionSeen // Seen a UNION keyword - , PS_UnionIDSeen // Seen the union ID - , PS_SwitchSeen // Seen the SWITCH keyword - , PS_SwitchOpenParSeen // Seen the switch open par. - , PS_SwitchTypeSeen // Seen the switch type spec - , PS_SwitchCloseParSeen // Seen the switch close par. - , PS_UnionSqSeen // '{' seen for union - , PS_UnionQsSeen // '}' seen for union - , PS_DefaultSeen // Seen DEFAULT keyword - , PS_UnionLabelSeen // Seen label of union element - , PS_LabelColonSeen // Seen ':' of union branch label - , PS_LabelExprSeen // Seen expression of union branch label - , PS_UnionElemSeen // Seen a union element - , PS_UnionElemCompleted // Completed one union member up to ';' - , PS_CaseSeen // Seen a CASE keyword - , PS_UnionElemTypeSeen // Seen type spec for union element - , PS_UnionElemDeclSeen // Seen declarator for union element - , PS_UnionBodySeen // Seen completed union body - , PS_EnumSeen // Seen an ENUM keyword - , PS_EnumIDSeen // Seen the enum ID - , PS_EnumSqSeen // Seen '{' for enum - , PS_EnumQsSeen // Seen '}' for enum - , PS_EnumBodySeen // Seen complete enum body - , PS_EnumCommaSeen // Seen ',' in list of enumerators - , PS_SequenceSeen // Seen a SEQUENCE keyword - , PS_SequenceSqSeen // Seen '<' for sequence - , PS_SequenceQsSeen // Seen '>' for sequence - , PS_SequenceTypeSeen // Seen type decl for sequence - , PS_SequenceCommaSeen // Seen comma for sequence - , PS_SequenceExprSeen // Seen size expression for sequence - , PS_StringSeen // Seen a STRING keyword - , PS_StringSqSeen // Seen '<' for string - , PS_StringQsSeen // Seen '>' for string - , PS_StringExprSeen // Seen size expression for string - , PS_StringCompleted // Seen a string decl without size spec - , PS_ArrayIDSeen // Seen array ID - , PS_ArrayCompleted // Seen completed array declaration - , PS_DimSqSeen // Seen '[' for array dimension - , PS_DimQsSeen // Seen ']' for array dimension - , PS_DimExprSeen // Seen size expression for array dimension - , PS_AttrROSeen // Seen READONLY keyword - , PS_AttrSeen // Seen ATTRIBUTE keyword - , PS_AttrTypeSeen // Seen type decl for attribute - , PS_AttrDeclsSeen // Seen declarators for attribute - , PS_AttrCompleted // Seen complete attribute declaration - , PS_ExceptSeen // Seen EXCEPTION keyword - , PS_ExceptIDSeen // Seen exception identifier - , PS_ExceptSqSeen // Seen '{' for exception - , PS_ExceptQsSeen // Seen '}' for exception - , PS_ExceptBodySeen // Seen complete exception body - , PS_OpAttrSeen // Seen operation attribute - , PS_OpTypeSeen // Seen operation return type - , PS_OpIDSeen // Seen operation ID - , PS_OpParsCompleted // Completed operation param list - , PS_OpRaiseCompleted // Completed operation except list - , PS_OpContextCompleted // Completed operation context spec - , PS_OpCompleted // Completed operation statement - , PS_OpSqSeen // Seen '(' for operation - , PS_OpQsSeen // Seen ')' for operation - , PS_OpParCommaSeen // Seen ',' in list of op params - , PS_OpParDirSeen // Seen parameter direction - , PS_OpParTypeSeen // Seen parameter type - , PS_OpParDeclSeen // Seen parameter declaration - , PS_OpRaiseSeen // Seen RAISES keyword - , PS_OpRaiseSqSeen // Seen '(' for RAISES - , PS_OpRaiseQsSeen // Seen ')' for RAISES - , PS_OpContextSeen // Seen CONTEXT keyword - , PS_OpContextSqSeen // Seen '(' for CONTEXT - , PS_OpContextQsSeen // Seen ')' for CONTEXT - , PS_OpContextCommaSeen // Seen ',' for CONTEXT - , PS_DeclsCommaSeen // Seen ',' in declarators list - , PS_DeclsDeclSeen // Seen complete decl in decls list - , PS_NativeSeen // Seen a native declaration - }; - - // Constructor - IDL_GlobalData(); - virtual ~IDL_GlobalData() {} - - // Operations - virtual UTL_ScopeStack *scopes(); // Scopes stack - virtual void set_scopes(UTL_ScopeStack *); - // Set it - - virtual AST_Root *root(); // Root of AST - virtual void set_root(AST_Root *); // Set it - - virtual AST_Generator *gen(); // Generator - virtual void set_gen(AST_Generator *);// Set it - - virtual UTL_Error *err(); // Error reporter - virtual void set_err(UTL_Error *); // Set it - - virtual long err_count(); // How many errors? - virtual void set_err_count(long); // Set it - - virtual long lineno(); // Where in file? - virtual void set_lineno(long); // Set it - - virtual String *filename(); // What file? - virtual void set_filename(String *); // Set it - - virtual String *main_filename(); // What's the main - // file name? - virtual void set_main_filename(String *); - // Set it - - virtual String *real_filename(); // What's the real - // file name? - virtual void set_real_filename(String *); - // Set it - - virtual String *stripped_filename(); // Stripped filename - virtual void set_stripped_filename(String *); - // Set it - - virtual idl_bool imported(); // Are we imported? - virtual idl_bool import(); // Is import on? - virtual void set_import(idl_bool); // Set it - - virtual idl_bool in_main_file(); // Are we? - virtual void set_in_main_file(idl_bool); // Set it - - virtual char *prog_name(); // Invoked as.. - virtual void set_prog_name(char *); // Set it - - virtual char *cpp_location(); // Where's CPP? - virtual void set_cpp_location(char *);// Set it - - virtual long compile_flags(); // What flags are on? - virtual void set_compile_flags(long);// Turn some on or off - - virtual char *be(); // Get BE to use - virtual void set_be(char *); // Set it - - virtual char *local_escapes(); // Get local escapes - virtual void set_local_escapes(char *);// Set it - - virtual UTL_Indenter *indent(); // Get indenter - virtual void set_indent(UTL_Indenter *); - // Set it - - virtual UTL_StrList *pragmas(); // Get pragmas - virtual void set_pragmas(UTL_StrList *);// Set it - - virtual idl_bool read_from_stdin(); // Reading from stdin? - virtual void set_read_from_stdin(idl_bool); // Set it - - virtual void store_include_file_name(String *); - - virtual String **include_file_names(); // Array of file names - virtual void set_include_file_names(String **); // Set it - - virtual unsigned long n_include_file_names(); // How many - virtual void set_n_include_file_names(unsigned long n); - - virtual ParseState parse_state(); // What state we're in - virtual void set_parse_state(ParseState s); // Set it - - // Convert from a predefined type to an expression type - virtual AST_Expression::ExprType - PredefinedTypeToExprType( - AST_PredefinedType::PredefinedType - ); - - /**************** Added to serve the back end *************/ - virtual String *idl_src_file(); - // returns the IDL source file being copiled - - virtual void idl_src_file(String *); - // set the source IDL file that is being parsed - - // helper functions that generate the file names for the C++ mapping - // generated code - static const char *be_get_client_hdr_fname (); - static const char *be_get_client_stub_fname (); - static const char *be_get_client_inline_fname (); - static const char *be_get_server_hdr_fname (); - static const char *be_get_server_template_hdr_fname (); - static const char *be_get_server_skeleton_fname (); - static const char *be_get_server_template_skeleton_fname (); - static const char *be_get_server_inline_fname (); - static const char *be_get_server_template_inline_fname (); - - // Helper functions: obtain the names of each generated file given - // the IDL file name. - static const char *be_get_client_hdr (String *idl_file_name); - static const char *be_get_client_stub (String *idl_file_name); - static const char *be_get_client_inline (String *idl_file_name); - static const char *be_get_server_hdr (String *idl_file_name); - static const char *be_get_server_template_hdr (String *idl_file_name); - static const char *be_get_server_skeleton (String *idl_file_name); - static const char *be_get_server_template_skeleton (String *idl_file_name); - static const char *be_get_server_inline (String *idl_file_name); - static const char *be_get_server_template_inline (String *idl_file_name); - - virtual const char* export_macro (void) const; - // returns the macro name for exporting classes in Win32 DLL. - - virtual void export_macro (const char* s); - // set the macro name for export classes in Win32 DLL. - - virtual const char* export_include (void) const; - // returns the name of the include file that contains the export - // macro definition. - - virtual void export_include (const char* s); - // set the name of the include file that contains the export - // macro definition. - -private: - // Data - UTL_ScopeStack *pd_scopes; // Store scopes stack - AST_Root *pd_root; // Store AST root - AST_Generator *pd_gen; // Store generator - UTL_Error *pd_err; // Error object - long pd_err_count; // Count of errors - long pd_lineno; // What line # - String *pd_filename; // What file - String *pd_main_filename; // What main filename - String *pd_real_filename; // What real filename - String *pd_stripped_filename; // Stripped filename - idl_bool pd_import; // Is import on? - idl_bool pd_in_main_file; // Are we in it? - char *pd_prog_name; // Argv[0] - char *pd_cpp_location; // Where to find CPP - long pd_compile_flags; // Compile flags - char *pd_be; // BE name to use - char *pd_local_escapes; // Trapdoor argument - UTL_Indenter *pd_indent; // Indent object - UTL_StrList *pd_pragmas; // List of pragmas - // as its being built - idl_bool pd_read_from_stdin; // Reading from stdin? - String **pd_include_file_names;// Array of file names - unsigned long pd_n_include_file_names;// How many - unsigned long pd_n_alloced_file_names;// How many alloced - - ParseState pd_parse_state; // Parse state we're in - - // Operations - long seen_include_file_before(String *); - // Seen this include - // before? - String *pd_idl_src_file; // IDL source file - - char* export_macro_; - char* export_include_; -}; - -#endif //_IDL_IDL_GLOBAL_HH diff --git a/TAO/TAO_IDL/include/idl_narrow.h b/TAO/TAO_IDL/include/idl_narrow.h deleted file mode 100644 index 7b770612682..00000000000 --- a/TAO/TAO_IDL/include/idl_narrow.h +++ /dev/null @@ -1,264 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _IDL_NARROW_IDL_NARROW_HH -#define _IDL_NARROW_IDL_NARROW_HH - -// idl_narrow.hh -// -// Implement IDL narrowing mechanism. Not intended to be read by humans.. -// -// Logic: -// -// The DEF_xxx macros are used in class declarations. -// The IMPL_xxx macros are used in class implementations. -// -// The DEF_xxx macros come in two flavors. The first one, DEF_NARROW_METHODSn, -// defines the narrowing mechanism. It declares a static class function whose -// address is used as the class identifier. Then, it declares a narrow op -// with an implementation suitable for narrowing from exactly 'n' superclasses. -// The names of the superclass types are given as arguments. The second flavor -// implements specific narrowing mechanisms from AST_decl and from UTL_scope. -// These macros are named DEF_NARROW_FROM_DECL and DEF_NARROW_FROM_SCOPE -// respectively. -// -// The IMPL_xxx macros also come in two flavors, corresponding to the two -// flavors of DEF_xxx macros. The IMPL_NARROW_METHODSn macros implement the -// narrowing mechanism for classes which must be narrowed from 'n' ancestors. -// The IMPL_NARROW_FROM_DECL and IMPL_NARROW_FROM_SCOPE macros implement -// the narrowing mechanisms for narrowing from instances of AST_decl and -// UTL_scope. -// -// IMPL_NARROW_METHODSn where n is 0,1,2 and 3 are provided. -// DEF_NARROW_METHODSn where n is 0,1,2 and 3 are provided. - -extern char *type_id_to_string(long); - -#define DEF_NARROW_METHODS0(TYPE)\ -static int type_id(); \ -virtual void *narrow(long type_const) - - -#define IMPL_NARROW_METHODS0(TYPE)\ -int \ -TYPE::type_id()\ -{\ - return 0;\ -}\ -void * \ -TYPE::narrow(long type_const) {\ - void *rval = NULL; \ - if (type_const == (long)&TYPE::type_id) \ - rval = this; \ - return rval; \ -} - -#define DEF_NARROW_METHODS1(TYPE,PARENT) \ -static int type_id(); \ -virtual void *narrow(long type_const) - - -#define IMPL_NARROW_METHODS1(TYPE,PARENT) \ -int \ -TYPE::type_id() \ -{\ - return 0;\ -}\ -void * \ -TYPE::narrow(long type_const) {\ - void *rval = NULL; \ - if (type_const == (long)&TYPE::type_id) \ - rval = this; \ - if (rval == NULL) \ - rval = PARENT::narrow(type_const);\ - return rval;\ -} - -#define DEF_NARROW_METHODS2(TYPE,PARENT1,PARENT2) \ -static int type_id(); \ -virtual void *narrow(long type_const) - - -#define IMPL_NARROW_METHODS2(TYPE,PARENT1,PARENT2) \ -int \ -TYPE::type_id() \ -{\ - return 0;\ -}\ -void * \ -TYPE::narrow(long type_const) { \ - void *rval = NULL; \ - if (type_const == (long)&TYPE::type_id) \ - rval = this; \ - if (rval == NULL) \ - rval = PARENT1::narrow(type_const);\ - if (rval == NULL) \ - rval = PARENT2::narrow(type_const);\ - return rval;\ -} - -#define DEF_NARROW_METHODS3(TYPE,PARENT1,PARENT2,PARENT3) \ -static int type_id(); \ -virtual void *narrow(long type_const) - - -#define IMPL_NARROW_METHODS3(TYPE,PARENT1,PARENT2,PARENT3) \ -int \ -TYPE::type_id() \ -{\ - return 0;\ -}\ -void * \ -TYPE::narrow(long type_const) {\ - void *rval = NULL; \ - if (type_const == (long)&TYPE::type_id) \ - rval = this; \ - if (rval == NULL) \ - rval = PARENT1::narrow(type_const);\ - if (rval == NULL) \ - rval = PARENT2::narrow(type_const);\ - if (rval == NULL) \ - rval = PARENT3::narrow(type_const);\ - return rval;\ -} - -#define DEF_NARROW_METHODS4(TYPE,PARENT1,PARENT2,PARENT3,PARENT4) \ -static int type_id(); \ -virtual void *narrow(long type_const) - - -#define IMPL_NARROW_METHODS4(TYPE,PARENT1,PARENT2,PARENT3,PARENT4) \ -int \ -TYPE::type_id() \ -{\ - return 0;\ -}\ -void * \ -TYPE::narrow(long type_const) {\ - void *rval = NULL; \ - if (type_const == (long)&TYPE::type_id) \ - rval = this; \ - if (rval == NULL) \ - rval = PARENT1::narrow(type_const);\ - if (rval == NULL) \ - rval = PARENT2::narrow(type_const);\ - if (rval == NULL) \ - rval = PARENT3::narrow(type_const);\ - if (rval == NULL) \ - rval = PARENT4::narrow(type_const);\ - return rval;\ -} - -#define DEF_NARROW_METHODS5(TYPE,PARENT1,PARENT2,PARENT3,PARENT4,PARENT5) \ -static int type_id(); \ -virtual void *narrow(long type_const) - - -#define IMPL_NARROW_METHODS5(TYPE,PARENT1,PARENT2,PARENT3,PARENT4,PARENT5) \ -int \ -TYPE::type_id() \ -{\ - return 0;\ -}\ -void * \ -TYPE::narrow(long type_const) {\ - void *rval = NULL; \ - if (type_const == (long)&TYPE::type_id) \ - rval = this; \ - if (rval == NULL) \ - rval = PARENT1::narrow(type_const);\ - if (rval == NULL) \ - rval = PARENT2::narrow(type_const);\ - if (rval == NULL) \ - rval = PARENT3::narrow(type_const);\ - if (rval == NULL) \ - rval = PARENT4::narrow(type_const);\ - if (rval == NULL) \ - rval = PARENT5::narrow(type_const);\ - return rval;\ -} - -#define DEF_NARROW_FROM_DECL(TYPE)\ -static TYPE *narrow_from_decl(AST_Decl *t) - - -#define IMPL_NARROW_FROM_DECL(TYPE)\ -TYPE * \ -TYPE::narrow_from_decl(AST_Decl *t) { \ - return (TYPE *)t->narrow((long)&TYPE::type_id);\ -} - -#define DEF_NARROW_FROM_SCOPE(TYPE)\ -static TYPE *narrow_from_scope(UTL_Scope *t) - - -#define IMPL_NARROW_FROM_SCOPE(TYPE)\ -TYPE * \ -TYPE::narrow_from_scope(UTL_Scope *t) { \ - return (TYPE *)t->narrow((long)&TYPE::type_id);\ -} - -#endif // _IDL_NARROW_IDL_NARROW_HH diff --git a/TAO/TAO_IDL/include/intlmacros.h b/TAO/TAO_IDL/include/intlmacros.h deleted file mode 100644 index a3a8c8c5cf0..00000000000 --- a/TAO/TAO_IDL/include/intlmacros.h +++ /dev/null @@ -1,87 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _IDL_INTLMACROS_HH -#define _IDL_INTLMACROS_HH - -// intlmacros.hh -// -// Define macros which conditionalize string internationalization - -#ifndef DOMF_TEXT_DEVEL_DOMAIN -#define DOMF_TEXT_DEVEL_DOMAIN "SUNW_DOE_DOMF_DEVEL" -#endif // DOMF_TEXT_DEVEL_DOMAIN - -#define GTDEVEL(s) s - -#if defined(__STDC__) -#define CONV(p) #p -#define MKSTR(p) CONV(p) -#else -#define MKSTR(p) "p" -#endif - -#endif // _IDL_INTLMACROS_HH diff --git a/TAO/TAO_IDL/include/nr_extern.h b/TAO/TAO_IDL/include/nr_extern.h deleted file mode 100644 index efa8be05209..00000000000 --- a/TAO/TAO_IDL/include/nr_extern.h +++ /dev/null @@ -1,76 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _NR_EXTERN_NR_EXTERN_HH -#define _NR_EXTERN_NR_EXTERN_HH - -// nr_extern.hh - Defines entry points provided by narrowing - -// Convert between an UTL_Scope and an AST_Decl -extern AST_Decl *ScopeAsDecl(UTL_Scope *s); -extern UTL_Scope *DeclAsScope(AST_Decl *d); - -#endif // _NR_EXTERN_NR_EXTERN_HH diff --git a/TAO/TAO_IDL/include/util.h b/TAO/TAO_IDL/include/util.h deleted file mode 100644 index fa8d871e721..00000000000 --- a/TAO/TAO_IDL/include/util.h +++ /dev/null @@ -1,87 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTIL_UTIL_HH -#define _UTIL_UTIL_HH - -// util.hh - Includes commonly used things defined in the util directory - -#include "utl_stack.h" // class fe_stack -#include "utl_exprlist.h" // class UTL_ExprList -#include "utl_strlist.h" // class UTL_StrList -#include "utl_idlist.h" // class UTL_IdList -#include "utl_exceptlist.h" // class UTL_ExceptList -#include "utl_namelist.h" // class UTL_NameList -#include "utl_labellist.h" // class UTL_LabelList -#include "utl_decllist.h" // class UTL_DeclList - -#include "idl_global.h" // Class IDL_GlobalData - -#include "utl_error.h" // class UTL_Error - -#include "utl_indenter.h" // class UTL_Indenter - -#endif // _UTIL_UTIL_HH diff --git a/TAO/TAO_IDL/include/utl_decllist.h b/TAO/TAO_IDL/include/utl_decllist.h deleted file mode 100644 index 4a33e154ac2..00000000000 --- a/TAO/TAO_IDL/include/utl_decllist.h +++ /dev/null @@ -1,121 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_DECLLIST_UTL_DECLLIST_HH -#define _UTL_DECLLIST_UTL_DECLLIST_HH - -// utl_decllist.hh -// -// List of FE_Declarator nodes - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -/* -** DEPENDENCIES: utl_list.hh, fe_declarator.hh -** -** USE: Included from util.hh -*/ - -class UTL_DeclList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_DeclList(FE_Declarator *s, UTL_DeclList *cdr); - - // Get element - FE_Declarator *head(); - -private: - // Data - FE_Declarator *pd_car_data; // The element this list stores -}; - -// Active iterator fooor UTL_DeclList -class UTL_DecllistActiveIterator : public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_DecllistActiveIterator(UTL_DeclList *s); - - // Get current item - FE_Declarator *item(); -}; - -#endif // _UTL_DECLLIST_UTL_DECLLIST_HH diff --git a/TAO/TAO_IDL/include/utl_err.h b/TAO/TAO_IDL/include/utl_err.h deleted file mode 100644 index 199e20d927f..00000000000 --- a/TAO/TAO_IDL/include/utl_err.h +++ /dev/null @@ -1,183 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_ERROR_UTL_ERROR_HH -#define _UTL_ERROR_UTL_ERROR_HH - -// utl_error.hh -// -// Defines error codes and error handling class for UTL -// This will change as a result of internationalization - -/* -** DEPENDENCIES: ast.hh -** -** USE: Included from util.hh -*/ - -class UTL_Error -{ -public: - enum ErrorCode { - EIDL_SYNTAX_ERROR, // Syntax error in IDL input - // More details will be gleaned from examining - // idl_global->parse_state() - EIDL_REDEF, // Redefinition - EIDL_REDEF_SCOPE, // Redefinition inside defining scope - EIDL_DEF_USE, // Definition after use - EIDL_MULTIPLE_BRANCH, // More than one union branch with this - // label - EIDL_COERCION_FAILURE, // Coercion failure - EIDL_SCOPE_CONFLICT, // Between fwd declare and full declare - EIDL_ONEWAY_CONFLICT, // Between op decl and argument direction - EIDL_DISC_TYPE, // Illegal discriminator type in union - EIDL_LABEL_TYPE, // Mismatch with discriminator type in union - EIDL_ILLEGAL_ADD, // Illegal add action - EIDL_ILLEGAL_USE, // Illegal type used in expression - EIDL_ILLEGAL_RAISES, // Error in "raises" clause - EIDL_ILLEGAL_CONTEXT, // Error in "context" clause - EIDL_CANT_INHERIT, // Cannot inherit from non-interface - EIDL_LOOKUP_ERROR, // Identifier not found - EIDL_INHERIT_FWD_ERROR, // Cannot inherit from fwd decl interface - EIDL_CONSTANT_EXPECTED, // We got something else.. - EIDL_NAME_CASE_ERROR, // Spelling differences found - EIDL_ENUM_VAL_EXPECTED, // Expected an enumerator - EIDL_ENUM_VAL_NOT_FOUND, // Didnt find an enumerator with that name - EIDL_EVAL_ERROR, // Error in evaluating expression - EIDL_AMBIGUOUS, // Ambiguous name definition - EIDL_DECL_NOT_DEFINED, // Forward declared but never defined - EIDL_FWD_DECL_LOOKUP, // Tried to lookup in fwd declared intf - EIDL_RECURSIVE_TYPE, // Illegal recursive use of type - EIDL_NONVOID_ONEWAY, // Non-void return type in oneway operation - EIDL_NOT_A_TYPE, // Not a type - EIDL_BACK_END, // Back end error - EIDL_OK // No error - }; - - // Operations - - // Report errors with varying numbers of arguments - void error0(ErrorCode e); - void error1(ErrorCode e, AST_Decl *t); - void error2(ErrorCode e, AST_Decl *t1, AST_Decl *t2); - void error3(ErrorCode e, AST_Decl *t1, AST_Decl *t2, AST_Decl *t3); - - // Report a syntax error in IDL input - void syntax_error(IDL_GlobalData::ParseState ps); - - // Report a name being used with different spellings - void name_case_error(char *n, char *t); - - // Report an unsuccesful coercion attempt - void coercion_error(AST_Expression *v, AST_Expression::ExprType t); - - // Report a failed name lookup attempt - void lookup_error(UTL_ScopedName *n); - - // Report an attempt to use a forward declared interface which - // hasn't been defined yet in an inheritance spec - void inheritance_fwd_error(UTL_ScopedName *n, AST_Interface *f); - - // Report an attempt to inherit from something other than an interface - void inheritance_error(UTL_ScopedName *n, AST_Decl *d); - - // Report an error while evaluating an expression (division by zero, etc.) - void eval_error(AST_Expression *d); - - // Report a situation where a constant was expected but we got - // something else instead. This most likely is a case where a union - // label did not evaluate to a constant - void constant_expected(UTL_ScopedName *n, AST_Decl *d); - - // Report a situation where an enumerator was expected but we got - // something else instead. This occurs when a union with an enum - // discriminator is being parsed and one of the branch labels is - // not an enumerator in that enum - void enum_val_expected(AST_Union *t, AST_UnionLabel *l); - - // Report a failed enumerator lookup in an enum - void enum_val_lookup_failure(AST_Union *t, AST_Enum *e, UTL_ScopedName *n); - - // Report an ambiguous name definition - void ambiguous(UTL_Scope *s, AST_Decl *l, AST_Decl *d); - - // Report a forward declared interface which was never defined - void fwd_decl_not_defined(AST_Interface *d); - - // Report attempt to lookup in forward declared interface - void fwd_decl_lookup(AST_Interface *d, UTL_ScopedName *n); - - // Report a redefinition in scope - void redefinition_in_scope(AST_Decl *t, AST_Decl *s); - - // Report not a type error - void not_a_type(AST_Decl *d); - - // Report back-end error - void back_end(long lineno, String *s); -}; - -#endif // _UTL_ERROR_UTL_ERROR_HH diff --git a/TAO/TAO_IDL/include/utl_error.h b/TAO/TAO_IDL/include/utl_error.h deleted file mode 100644 index 199e20d927f..00000000000 --- a/TAO/TAO_IDL/include/utl_error.h +++ /dev/null @@ -1,183 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_ERROR_UTL_ERROR_HH -#define _UTL_ERROR_UTL_ERROR_HH - -// utl_error.hh -// -// Defines error codes and error handling class for UTL -// This will change as a result of internationalization - -/* -** DEPENDENCIES: ast.hh -** -** USE: Included from util.hh -*/ - -class UTL_Error -{ -public: - enum ErrorCode { - EIDL_SYNTAX_ERROR, // Syntax error in IDL input - // More details will be gleaned from examining - // idl_global->parse_state() - EIDL_REDEF, // Redefinition - EIDL_REDEF_SCOPE, // Redefinition inside defining scope - EIDL_DEF_USE, // Definition after use - EIDL_MULTIPLE_BRANCH, // More than one union branch with this - // label - EIDL_COERCION_FAILURE, // Coercion failure - EIDL_SCOPE_CONFLICT, // Between fwd declare and full declare - EIDL_ONEWAY_CONFLICT, // Between op decl and argument direction - EIDL_DISC_TYPE, // Illegal discriminator type in union - EIDL_LABEL_TYPE, // Mismatch with discriminator type in union - EIDL_ILLEGAL_ADD, // Illegal add action - EIDL_ILLEGAL_USE, // Illegal type used in expression - EIDL_ILLEGAL_RAISES, // Error in "raises" clause - EIDL_ILLEGAL_CONTEXT, // Error in "context" clause - EIDL_CANT_INHERIT, // Cannot inherit from non-interface - EIDL_LOOKUP_ERROR, // Identifier not found - EIDL_INHERIT_FWD_ERROR, // Cannot inherit from fwd decl interface - EIDL_CONSTANT_EXPECTED, // We got something else.. - EIDL_NAME_CASE_ERROR, // Spelling differences found - EIDL_ENUM_VAL_EXPECTED, // Expected an enumerator - EIDL_ENUM_VAL_NOT_FOUND, // Didnt find an enumerator with that name - EIDL_EVAL_ERROR, // Error in evaluating expression - EIDL_AMBIGUOUS, // Ambiguous name definition - EIDL_DECL_NOT_DEFINED, // Forward declared but never defined - EIDL_FWD_DECL_LOOKUP, // Tried to lookup in fwd declared intf - EIDL_RECURSIVE_TYPE, // Illegal recursive use of type - EIDL_NONVOID_ONEWAY, // Non-void return type in oneway operation - EIDL_NOT_A_TYPE, // Not a type - EIDL_BACK_END, // Back end error - EIDL_OK // No error - }; - - // Operations - - // Report errors with varying numbers of arguments - void error0(ErrorCode e); - void error1(ErrorCode e, AST_Decl *t); - void error2(ErrorCode e, AST_Decl *t1, AST_Decl *t2); - void error3(ErrorCode e, AST_Decl *t1, AST_Decl *t2, AST_Decl *t3); - - // Report a syntax error in IDL input - void syntax_error(IDL_GlobalData::ParseState ps); - - // Report a name being used with different spellings - void name_case_error(char *n, char *t); - - // Report an unsuccesful coercion attempt - void coercion_error(AST_Expression *v, AST_Expression::ExprType t); - - // Report a failed name lookup attempt - void lookup_error(UTL_ScopedName *n); - - // Report an attempt to use a forward declared interface which - // hasn't been defined yet in an inheritance spec - void inheritance_fwd_error(UTL_ScopedName *n, AST_Interface *f); - - // Report an attempt to inherit from something other than an interface - void inheritance_error(UTL_ScopedName *n, AST_Decl *d); - - // Report an error while evaluating an expression (division by zero, etc.) - void eval_error(AST_Expression *d); - - // Report a situation where a constant was expected but we got - // something else instead. This most likely is a case where a union - // label did not evaluate to a constant - void constant_expected(UTL_ScopedName *n, AST_Decl *d); - - // Report a situation where an enumerator was expected but we got - // something else instead. This occurs when a union with an enum - // discriminator is being parsed and one of the branch labels is - // not an enumerator in that enum - void enum_val_expected(AST_Union *t, AST_UnionLabel *l); - - // Report a failed enumerator lookup in an enum - void enum_val_lookup_failure(AST_Union *t, AST_Enum *e, UTL_ScopedName *n); - - // Report an ambiguous name definition - void ambiguous(UTL_Scope *s, AST_Decl *l, AST_Decl *d); - - // Report a forward declared interface which was never defined - void fwd_decl_not_defined(AST_Interface *d); - - // Report attempt to lookup in forward declared interface - void fwd_decl_lookup(AST_Interface *d, UTL_ScopedName *n); - - // Report a redefinition in scope - void redefinition_in_scope(AST_Decl *t, AST_Decl *s); - - // Report not a type error - void not_a_type(AST_Decl *d); - - // Report back-end error - void back_end(long lineno, String *s); -}; - -#endif // _UTL_ERROR_UTL_ERROR_HH diff --git a/TAO/TAO_IDL/include/utl_exceptlist.h b/TAO/TAO_IDL/include/utl_exceptlist.h deleted file mode 100644 index 821efe648d2..00000000000 --- a/TAO/TAO_IDL/include/utl_exceptlist.h +++ /dev/null @@ -1,121 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_EXCEPTLIST_UTL_EXCEPTLIST_HH -#define _UTL_EXCEPTLIST_UTL_EXCEPTLIST_HH - -// utl_exceptlist.hh -// -// List of AST_Exception nodes - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -/* -** DEPENDENCIES: utl_list.hh, ast_exception.hh -** -** USE: Included from util.hh -*/ - -class UTL_ExceptList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_ExceptList(AST_Exception *s, UTL_ExceptList *cdr); - - // Get list item - AST_Exception *head(); - -private: - // Data - AST_Exception *pd_car_data; // Item of this list -}; - -// Active iterator for UTL_ExceptList -class UTL_ExceptlistActiveIterator : public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_ExceptlistActiveIterator(UTL_ExceptList *s); - - // Get current item - AST_Exception *item(); -}; - -#endif // _UTL_EXCEPTLIST_UTL_EXCEPTLIST_HH diff --git a/TAO/TAO_IDL/include/utl_exprlist.h b/TAO/TAO_IDL/include/utl_exprlist.h deleted file mode 100644 index d113b23109e..00000000000 --- a/TAO/TAO_IDL/include/utl_exprlist.h +++ /dev/null @@ -1,121 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_EXPRLIST_UTL_EXPRLIST_HH -#define _UTL_EXPRLIST_UTL_EXPRLIST_HH - -// utl_exprlist.hh -// -// List of strings - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -/* -** DEPENDENCIES: ast_expression.hh, utl_list.hh -** -** USE: Included from util.hh -*/ - -class UTL_ExprList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_ExprList(AST_Expression *s, UTL_ExprList *cdr); - - // Get list item - AST_Expression *head(); - -private: - // Data - AST_Expression *pd_car_data; // List item -}; - -// Active iterator for UTL_ExprList -class UTL_ExprlistActiveIterator : public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_ExprlistActiveIterator(UTL_ExprList *s); - - // Get current item - AST_Expression *item(); -}; - -#endif // _UTL_EXPRLIST_UTL_EXPRLIST_HH diff --git a/TAO/TAO_IDL/include/utl_identifier.h b/TAO/TAO_IDL/include/utl_identifier.h deleted file mode 100644 index 392ee7e58e5..00000000000 --- a/TAO/TAO_IDL/include/utl_identifier.h +++ /dev/null @@ -1,113 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_IDENTIFIER_UTL_IDENTIFIER_HH -#define _UTL_IDENTIFIER_UTL_IDENTIFIER_HH - -// utl_identifier.hh -// -// Identifier - -/* -** DEPENDENCIES: utl_string.hh -** -** USE: Included from util.hh -*/ - -#include "idl_fwd.h" -#include "utl_string.h" - -class Identifier -{ -public: - Identifier (); - // Default Constructor(s) - - Identifier (char *s, long x=1, long y=0, long z=I_FALSE); - // constructor - - virtual ~Identifier (); - // destructor - - // =Operations - - char *get_string (); - // get the underlying string - - long compare (Identifier *other); - // compare with other Identifier - - // =Dumping - - virtual void dump (ostream &o); - // dump to an ostream - - private: - // Storage for data - char *pv_string; -}; - -#endif // _UTL_IDENTIFIER_UTL_IDENTIFIER_HH diff --git a/TAO/TAO_IDL/include/utl_idlist.h b/TAO/TAO_IDL/include/utl_idlist.h deleted file mode 100644 index 211836af42e..00000000000 --- a/TAO/TAO_IDL/include/utl_idlist.h +++ /dev/null @@ -1,147 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_IDLIST_UTL_IDLIST_HH -#define _UTL_IDLIST_UTL_IDLIST_HH - -// utl_idlist.hh -// -// List of Identifiers - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -/* -** DEPENDENCIES: utl_list.hh, utl_identifier.hh -** -** USE: Included from util.hh -*/ - -#include "idl_fwd.h" -#include "utl_list.h" -#include "utl_identifier.h" -#include "utl_string.h" - -class UTL_IdList : public UTL_List -{ - // =TITLE - // UTL_IdList - // =DESCRIPTION - // Used to maintain a list of identifiers. The primary usage of this class - // is to maintain a scoped name. -public: - UTL_IdList (Identifier *car, UTL_IdList *cdr); - // Constructor(s) - - virtual ~UTL_IdList() {} - // destructor - - // =AST Dumping - - virtual void dump (ostream &o); - // dump to ostream - - // Other operations - - UTL_List *copy (); - // Copy the list - - Identifier *head (); - // get element - - Identifier *last_component (); - // Get last element in this list -private: - Identifier *pd_car_data; -}; - -// Active iterator for UTL_IdList - -class UTL_IdListActiveIterator : - public UTL_ListActiveIterator -{ - // =TITLE - // UTL_IdListActiveIterator - // =DESCRIPTION - // Iterator for the IDList -public: - UTL_IdListActiveIterator (UTL_IdList *s); - // Constructor(s) - - Identifier *item (); - // retrieves the next item -}; - -#endif // _UTL_IDLIST_UTL_IDLIST_HH diff --git a/TAO/TAO_IDL/include/utl_indenter.h b/TAO/TAO_IDL/include/utl_indenter.h deleted file mode 100644 index 29c8c587f00..00000000000 --- a/TAO/TAO_IDL/include/utl_indenter.h +++ /dev/null @@ -1,117 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_INDENTER_UTL_INDENTER_HH -#define _UTL_INDENTER_UTL_INDENTER_HH - -// UTL indenter: -// -// Utility class for control of indentation level during dumping -// May also be useful for BEs that want to produce nicely formatted -// output - -/* -** DEPENDENCIES: NONE -** -** USE: in CFE in dumping the AST -*/ - -class UTL_Indenter -{ - // =TITLE - // UTL_Indenter - // =DESCRIPTION - // useful in generating indented output -public: - // Operations - - UTL_Indenter(); // constructor - // Constructor(s) - - virtual ~UTL_Indenter() {} - // destructor - - void reset(); - // Reset indentation level to 0 - - void increase(); - // Increase indentation level - - void decrease(); - // Decrease indentation level - - void skip_to (ostream &o); - // Skip to indentation level stop - - void skip_to (FILE *fp); - // skip to indentation level stop - -private: - // Data - long pd_indent_level; // How far to indent -}; - -#endif // _UTL_INDENTER_UTL_INDENTER_HH diff --git a/TAO/TAO_IDL/include/utl_labellist.h b/TAO/TAO_IDL/include/utl_labellist.h deleted file mode 100644 index e3410e34623..00000000000 --- a/TAO/TAO_IDL/include/utl_labellist.h +++ /dev/null @@ -1,121 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_LABELLIST_UTL_LABELLIST_HH -#define _UTL_LABELLIST_UTL_LABELLIST_HH - -// utl_labellist.hh -// -// List of AST_UnionBranch nodes - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -/* -** DEPENDENCIES: utl_list.hh, ast_union_label.hh -** -** USE: Included from util.hh -*/ - -class UTL_LabelList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_LabelList(AST_UnionLabel *s, UTL_LabelList *cdr); - - // Get list item - AST_UnionLabel *head(); - -private: - // Data - AST_UnionLabel *pd_car_data; // List item -}; - -// Active iterator for UTL_LabelList -class UTL_LabellistActiveIterator : public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_LabellistActiveIterator(UTL_LabelList *source); - - // Get current item - AST_UnionLabel *item(); -}; - -#endif // _UTL_LABELLIST_UTL_LABELLIST_HH diff --git a/TAO/TAO_IDL/include/utl_list.h b/TAO/TAO_IDL/include/utl_list.h deleted file mode 100644 index 0c113ab9fbc..00000000000 --- a/TAO/TAO_IDL/include/utl_list.h +++ /dev/null @@ -1,150 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_LIST_UTL_LIST_HH -#define _UTL_LIST_UTL_LIST_HH - -// utl_list.hh -// -// General single-linked lists - -/* -** DEPENDENCIES: NONE -** -** USE: Included from util.hh -*/ - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -// Forward declare active iterator for UTL_List -class UTL_ListActiveIterator; - -class UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_List(UTL_List *c); - - // Smash last cdr pointer in "this" with l - void nconc(UTL_List *l); - - // Copy the list starting at "this" - virtual UTL_List *copy(); - - // Get next list - UTL_List *tail(); - - // Set next list - void set_tail(UTL_List *l); - - // How long is this list? - long length(); - -private: - // Data - UTL_List *pd_cdr_data; // The next list - - // Operations - long list_length(long n); // How long is it? - - // Friend class - friend class UTL_ListActiveIterator; // Friend class - -}; - -// Active iterator for lists -class UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_ListActiveIterator(UTL_List *s); - - // Get next list - virtual void next(); - - // Are we at the end of this list? - virtual long is_done(); - -protected: - // Data - UTL_List *source; // On what to iterate? -}; - -#endif // _UTL_LIST_UTL_LIST_HH diff --git a/TAO/TAO_IDL/include/utl_namelist.h b/TAO/TAO_IDL/include/utl_namelist.h deleted file mode 100644 index 3b9be0bc45a..00000000000 --- a/TAO/TAO_IDL/include/utl_namelist.h +++ /dev/null @@ -1,121 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_NAMELIST_UTL_NAMELIST_HH -#define _UTL_NAMELIST_UTL_NAMELIST_HH - -// utl_namelist.hh -// -// List of UTL_ScopedName nodes - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -/* -** DEPENDENCIES: utl_list.hh, utl_scoped_name.hh -** -** USE: Included from util.hh -*/ - -class UTL_NameList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_NameList(UTL_ScopedName *s, UTL_NameList *cdr); - - // Get list item - UTL_ScopedName *head(); - -private: - // Data - UTL_ScopedName *pd_car_data; // List item -}; - -// Active iterator for UTL_NameList -class UTL_NamelistActiveIterator : public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_NamelistActiveIterator(UTL_NameList *source); - - // Get current item - UTL_ScopedName *item(); -}; - -#endif // _UTL_NAMELIST_UTL_NAMELIST_HH diff --git a/TAO/TAO_IDL/include/utl_scope.h b/TAO/TAO_IDL/include/utl_scope.h deleted file mode 100644 index ce94d12574f..00000000000 --- a/TAO/TAO_IDL/include/utl_scope.h +++ /dev/null @@ -1,292 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_SCOPE_UTL_SCOPE_HH -#define _UTL_SCOPE_UTL_SCOPE_HH - -// UTL_Scope - Provide scoping mechanism -// -// This is the base class for name scoping. Each entity which can -// be directly contained in a naming scope has an add() function -// defined for it. The functions defined on the base scoping class -// all return FALSE. Each subclass of UTL_Scope should -// define its own add() functions for those types which are legal -// in that context. Then, for those types for which no local functions -// have been defined the function on the base class will be called to -// return FALSE. -// -// The "AST_" classes may redefine add() functions to implement any -// name binding mechanisms needed for their own functionality. It is -// the responsibility of those functions then to call the add() -// function defined in the parent "AST_" class. - -/* -** DEPENDENCIES: ast_decl.hh, utl_scoped_name.hh -** -** USE: Included from ast.hh -*/ - -#include "idl_fwd.h" -#include "idl_narrow.h" -#include "ast_decl.h" -#include "ast_expression.h" -#include "utl_scoped_name.h" - -// Forward declaration of active iterator for UTL_Scope -class UTL_ScopeActiveIterator; - -class UTL_Scope : public virtual COMMON_Base -{ -public: - // Enum to denote the kind of iteration desired - enum ScopeIterationKind { - IK_both // Iterate through both decls and local types - , IK_decls // Iterate only through decls - , IK_localtypes // Iterate only through local types - }; - - // Operations - - // Constructor(s) - UTL_Scope(); - UTL_Scope(AST_Decl::NodeType nt); - virtual ~UTL_Scope() {} - - // Scope Management Protocol - virtual AST_PredefinedType *add_predefined_type(AST_PredefinedType *t); - virtual AST_Module *add_module(AST_Module *m); - virtual AST_Interface *add_interface(AST_Interface *i); - virtual AST_InterfaceFwd *add_interface_fwd(AST_InterfaceFwd *i); - virtual AST_Constant *add_constant(AST_Constant *c); - virtual AST_Exception *add_exception(AST_Exception *e); - virtual AST_Attribute *add_attribute(AST_Attribute *a); - virtual AST_Operation *add_operation(AST_Operation *o); - virtual AST_Argument *add_argument(AST_Argument *a); - virtual AST_Union *add_union(AST_Union *u); - virtual AST_UnionBranch *add_union_branch(AST_UnionBranch *b); - virtual AST_Structure *add_structure(AST_Structure *s); - virtual AST_Field *add_field(AST_Field *f); - virtual AST_Enum *add_enum(AST_Enum *e); - virtual AST_EnumVal *add_enum_val(AST_EnumVal *v); - virtual AST_Typedef *add_typedef(AST_Typedef *t); - virtual UTL_StrList *add_context(UTL_StrList *c); - virtual UTL_NameList *add_exceptions(UTL_NameList *e); - virtual AST_Sequence *add_sequence(AST_Sequence *s); - virtual AST_String *add_string(AST_String *s); - virtual AST_Array *add_array(AST_Array *a); - virtual AST_Native *add_native (AST_Native *n); - - // Call back end add_XXX functions for this scope - virtual AST_Decl *call_add(); - - // Data Accessors - AST_Decl::NodeType scope_node_type() - { - return pd_scope_node_type; - } - - // Narrowing - DEF_NARROW_METHODS0(UTL_Scope); - DEF_NARROW_FROM_SCOPE(UTL_Scope); - - // AST Dumping - virtual void dump(ostream &o); - - // Other Operations - - // Name Lookup Mechanism - virtual AST_Decl *lookup_by_name(UTL_ScopedName *, - idl_bool treat_as_ref); - - // Look up the Identifier * specified only in the local scope - virtual AST_Decl *lookup_by_name_local(Identifier *, - idl_bool treat_as_ref); - - // Look up a predefined type by its ExprType - virtual AST_Decl - *lookup_primitive_type(AST_Expression::ExprType); - - // How many entries are used? - virtual unsigned long nmembers(); - -protected: - // UTL_Scope protected addition protocol. This protocol is - // used from sub-classes of UTL_Scope to insert nodes directly - // into the specified node table (either decls or local_types) - // Additionally, UTL_Scope also maintains a record of what nodes - // defined elsewhere were referenced in this scope - - // Add to decls. Node represents a local declaration - void add_to_scope(AST_Decl *e); - - // Add to local types. Node represents a local manifest type - void add_to_local_types(AST_Decl *e); - - // Add to referenced nodes set. - void add_to_referenced(AST_Decl *e, - idl_bool recursive); - - // Has this node been referenced here already? - idl_bool referenced(AST_Decl *e); - - // Look up a scoped name in the inherited interfaces of an - // interface - virtual AST_Decl *look_in_inherited(UTL_ScopedName *, - idl_bool treat_as_ref); -protected: - // Operations - - // Lookup based on the local name - virtual AST_Decl *lookup_for_add(AST_Decl *d, - idl_bool treat_as_ref); - -private: - // Data - - // What type is this node? This is a cache of the information - // in AST_Decl - const AST_Decl::NodeType pd_scope_node_type; - - // Storage for declarations in this scope: - AST_Decl **pd_decls; // Store declarations - long pd_decls_allocated; // How many allocated? - long pd_decls_used; // How many used? - - // Storage for local manifest types in this scope: - AST_Decl **pd_local_types; // Store types - long pd_locals_allocated; // How many allocated? - long pd_locals_used; // How many used? - - // Storage for referenced nodes in this scope: - AST_Decl **pd_referenced; // Store references - long pd_referenced_allocated;// How many allocated? - long pd_referenced_used; // How many used? - - // Friend class UTL_ScopeActiveIterator defines active iterator for - // UTL_Scope. Definition follows below. - friend class UTL_ScopeActiveIterator; - -private: - friend int tao_yyparse(); - friend class AST_Enum; - - // Scope Management Protocol - virtual AST_PredefinedType *fe_add_predefined_type(AST_PredefinedType *t); - virtual AST_Module *fe_add_module(AST_Module *m); - virtual AST_Interface *fe_add_interface(AST_Interface *i); - virtual AST_InterfaceFwd *fe_add_interface_fwd(AST_InterfaceFwd *i); - virtual AST_Constant *fe_add_constant(AST_Constant *c); - virtual AST_Exception *fe_add_exception(AST_Exception *e); - virtual AST_Attribute *fe_add_attribute(AST_Attribute *a); - virtual AST_Operation *fe_add_operation(AST_Operation *o); - virtual AST_Argument *fe_add_argument(AST_Argument *a); - virtual AST_Union *fe_add_union(AST_Union *u); - virtual AST_UnionBranch *fe_add_union_branch(AST_UnionBranch *b); - virtual AST_Structure *fe_add_structure(AST_Structure *s); - virtual AST_Field *fe_add_field(AST_Field *f); - virtual AST_Enum *fe_add_enum(AST_Enum *e); - virtual AST_EnumVal *fe_add_enum_val(AST_EnumVal *v); - virtual AST_Typedef *fe_add_typedef(AST_Typedef *t); - virtual UTL_StrList *fe_add_context(UTL_StrList *c); - virtual UTL_NameList *fe_add_exceptions(UTL_NameList *e); - virtual AST_Sequence *fe_add_sequence(AST_Sequence *s); - virtual AST_String *fe_add_string(AST_String *s); - virtual AST_Array *fe_add_array(AST_Array *a); - virtual AST_Native *fe_add_native (AST_Native *n); -}; - -// Active iterator for a UTL_Scope node -class UTL_ScopeActiveIterator { -public: - // Operations - - // Constructor(s) - UTL_ScopeActiveIterator(UTL_Scope *s, UTL_Scope::ScopeIterationKind ik); - - // Advance to next item - virtual void next(); - - // Get current item - virtual AST_Decl *item(); - - // Have we iterated over entire scope? - virtual idl_bool is_done(); - - // What kind of iterator is this? - virtual UTL_Scope::ScopeIterationKind iteration_kind(); - - // What stage are we in with this iterator? - virtual UTL_Scope::ScopeIterationKind iteration_stage(); - -private: - // Data - UTL_Scope *iter_source; // Scope to iterate over - UTL_Scope::ScopeIterationKind ik; // What kind of iteration - UTL_Scope::ScopeIterationKind stage; // What stage - long il; // What location in stage -}; - -#endif // _UTL_SCOPE_UTL_SCOPE_HH diff --git a/TAO/TAO_IDL/include/utl_scoped_name.h b/TAO/TAO_IDL/include/utl_scoped_name.h deleted file mode 100644 index 5a3145e669b..00000000000 --- a/TAO/TAO_IDL/include/utl_scoped_name.h +++ /dev/null @@ -1,82 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_SCOPED_NAME_AST_SCOPED_NAME_HH -#define _AST_SCOPED_NAME_AST_SCOPED_NAME_HH - -// Define UTL_ScopedName as a list of strings - -/* -** DEPENDENCIES: utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -typedef UTL_IdList UTL_ScopedName; - -typedef UTL_IdListActiveIterator UTL_ScopedNameActiveIterator; - -#endif // _AST_SCOPED_NAME_AST_SCOPED_NAME_HH diff --git a/TAO/TAO_IDL/include/utl_stack.h b/TAO/TAO_IDL/include/utl_stack.h deleted file mode 100644 index 9d4224cde4c..00000000000 --- a/TAO/TAO_IDL/include/utl_stack.h +++ /dev/null @@ -1,150 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_STACK_UTL_STACK_HH -#define _UTL_STACK_UTL_STACK_HH - -// utl_stack.hh - Defines the UTL_ScopeStack class - a stack of scopes -// -// UTL_ScopeStack implements scope nesting - -/* -** DEPENDENCIES: utl_scope.hh -** -** USE: Included from util.hh -*/ - -// Forward declaration of active iterator for UTL_ScopeStack -class UTL_ScopeStackActiveIterator; - -class UTL_ScopeStack -{ -public: - // Operations - - // Constructor and destructor - UTL_ScopeStack(); - virtual ~UTL_ScopeStack(); - - // Return top element - virtual UTL_Scope *top(); - - // Pop top element - virtual void pop(); - - // Clear entire stack - virtual void clear(); - - // Push an element on the stack and return stack - virtual UTL_ScopeStack *push(UTL_Scope *el); - - // How deep is the stack now? - virtual unsigned long depth(); - - // Return bottom element - virtual UTL_Scope *bottom(); - - // Return (top - 1) element - virtual UTL_Scope *next_to_top(); - - // return topmost non-NULL element - virtual UTL_Scope *top_non_null(); - -private: - // Data - UTL_Scope **pd_stack_data; // Store scopes stack - unsigned long pd_stack_data_nalloced; // How many allocated? - unsigned long pd_stack_top; // How many used? - - // Friend active iterator class for UTL_ScopeStack - friend class UTL_ScopeStackActiveIterator; -}; - -// Active iterator for UTL_ScopeStack -class UTL_ScopeStackActiveIterator -{ -public: - // Operations - - // Constructor - UTL_ScopeStackActiveIterator(UTL_ScopeStack *s); - - // Advance to next element - virtual void next(); - - // Get current item - virtual UTL_Scope *item(); - - // Is the iteration finished? - virtual long is_done(); - -private: - // Data - UTL_ScopeStack *source; // On what to iterate? - long il; // Where are we in iteration? -}; - -#endif // _UTL_STACK_UTL_STACK_HH diff --git a/TAO/TAO_IDL/include/utl_string.h b/TAO/TAO_IDL/include/utl_string.h deleted file mode 100644 index 0db31bd2bf6..00000000000 --- a/TAO/TAO_IDL/include/utl_string.h +++ /dev/null @@ -1,143 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _STRING_STRING_HH -#define _STRING_STRING_HH - -// utl_string.hh - contains a quick and dirty TEMPORARY string implementation - -/* -** DEPENDENCIES: NONE -** -** USE: Included from util.hh -*/ - -#ifndef String -#define String UTL_String -#endif // String - -class UTL_String -{ - // =TITLE - // UTL_String - // =DESCRIPTION - // string class to store identifiers -public: - // =Operations - - UTL_String (void); - // default constructor - - UTL_String (char *str); - // construct from a char * - - UTL_String (unsigned long maxlen); - // constructor with an initial string length - - UTL_String (UTL_String *s); - // construct using a pointer to UTL_String - - virtual ~UTL_String (void) {} - // destructor - - // =AST Dumping - - virtual void dump (ostream &o); - // dump to the ostream - - // =Other Operations - - char *get_string (void); - // Get contents of utl_string - - char *get_canonical_rep (void); - // Get canonical representation. This is (implemented as) the all upper - // case corresponding string - - virtual long compare (UTL_String *s); - // Compare two String * - -private: - // Data - char *p_str; - // Storage for characters - - char *c_str; - // Canonicalized string - - unsigned long len; - // How long is string - - unsigned long alloced; - // How much allocated - - // =Private helper operations - - void canonicalize (void); - // Compute canonical representation -}; - -#endif // _STRING_STRING_HH diff --git a/TAO/TAO_IDL/include/utl_strlist.h b/TAO/TAO_IDL/include/utl_strlist.h deleted file mode 100644 index 5806cb57785..00000000000 --- a/TAO/TAO_IDL/include/utl_strlist.h +++ /dev/null @@ -1,135 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_STRLIST_UTL_STRLIST_HH -#define _UTL_STRLIST_UTL_STRLIST_HH - -// utl_strlist.hh -// -// List of String nodes - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -/* -** DEPENDENCIES: utl_list.hh, utl_string.hh -** -** USE: Included from util.hh -*/ - -class UTL_StrList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_StrList(String *s, UTL_StrList *cdr); - - // AST Dumping - virtual void dump(ostream &o); - - // Other Operations - - // Copy a list of strings - virtual UTL_List *copy(); - - // Get list element - String *head(); - - // Set the list element - void set_head(String *); - - // Get last element in this list - String *last_component(); - -private: - // Data - String *pd_car_data; // The list item -}; - -// Active iterator for UTL_StrList -class UTL_StrlistActiveIterator : public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_StrlistActiveIterator(UTL_StrList *s); - - // Get current item - String *item(); -}; - -#endif // _UTL_STRLIST_UTL_STRLIST_HH diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_decllist.h b/TAO/TAO_IDL/include/utl_tmpl/utl_decllist.h deleted file mode 100644 index 63247a10df2..00000000000 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_decllist.h +++ /dev/null @@ -1,100 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -#ifndef _UTL_DECLLIST_UTL_DECLLIST_HH -#define _UTL_DECLLIST_UTL_DECLLIST_HH - -// utl_decllist.hh -// -// List of FE_Declarator nodes - -/* -** DEPENDENCIES: utl_list.hh, fe_declarator.hh -** -** USE: Included from util.hh -*/ - -#include "ace/stdcpp.h" -#include "idl_fwd.h" -#include "utl_list.h" -#include "utl_idlist.h" -#include "utl_scoped_name.h" -#include "utl_identifier.h" -#include "utl_string.h" -#include "fe_declarator.h" - - -class UTL_DeclList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_DeclList(FE_Declarator *s, UTL_DeclList *cdr); - virtual ~UTL_DeclList() {} -}; - -// Active iterator for UTL_DeclList -class UTL_DecllistActiveIterator : - public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_DecllistActiveIterator(UTL_DeclList *s); - virtual ~UTL_DecllistActiveIterator() {} -}; - -#endif // _UTL_DECLLIST_UTL_DECLLIST_HH diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h b/TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h deleted file mode 100644 index a709776a875..00000000000 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h +++ /dev/null @@ -1,108 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -#ifndef _UTL_EXCEPTLIST_UTL_EXCEPTLIST_HH -#define _UTL_EXCEPTLIST_UTL_EXCEPTLIST_HH - -// utl_exceptlist.hh -// -// List of AST_Exception nodes - -/* -** DEPENDENCIES: utl_list.hh, ast_exception.hh -** -** USE: Included from util.hh -*/ - -#include "ace/stdcpp.h" -#include "idl_fwd.h" -#include "utl_list.h" -#include "utl_strlist.h" -#include "utl_idlist.h" -#include "utl_scoped_name.h" -#include "utl_identifier.h" -#include "utl_string.h" -#include "ast_expression.h" -#include "idl_bool.h" -#include "utl_scope.h" -#include "ast_decl.h" -#include "ast_type.h" -#include "ast_concrete_type.h" -#include "ast_structure.h" -#include "ast_exception.h" - - -class UTL_ExceptList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_ExceptList(AST_Exception *s, UTL_ExceptList *cdr); - virtual ~UTL_ExceptList() {} -}; - -// Active iterator for UTL_ExceptList -class UTL_ExceptlistActiveIterator : - public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_ExceptlistActiveIterator(UTL_ExceptList *s); - virtual ~UTL_ExceptlistActiveIterator() {} -}; - -#endif // _UTL_EXCEPTLIST_UTL_EXCEPTLIST_HH diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_exprlist.h b/TAO/TAO_IDL/include/utl_tmpl/utl_exprlist.h deleted file mode 100644 index 5215ae18362..00000000000 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_exprlist.h +++ /dev/null @@ -1,101 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -#ifndef _UTL_EXPRLIST_UTL_EXPRLIST_HH -#define _UTL_EXPRLIST_UTL_EXPRLIST_HH - -// utl_exprlist.hh -// -// List of strings - -/* -** DEPENDENCIES: ast_expression.hh, utl_list.hh -** -** USE: Included from util.hh -*/ - -#include "ace/stdcpp.h" -#include "idl_fwd.h" -#include "utl_list.h" -#include "utl_strlist.h" -#include "utl_idlist.h" -#include "utl_scoped_name.h" -#include "utl_identifier.h" -#include "utl_string.h" -#include "ast_expression.h" - - -class UTL_ExprList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_ExprList(AST_Expression *s, UTL_ExprList *cdr); - virtual ~UTL_ExprList() {} -}; - -// Active iterator for UTL_ExprList -class UTL_ExprlistActiveIterator : - public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_ExprlistActiveIterator(UTL_ExprList *s); - virtual ~UTL_ExprlistActiveIterator() {} -}; - -#endif // _UTL_EXPRLIST_UTL_EXPRLIST_HH diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h b/TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h deleted file mode 100644 index a08bac915b6..00000000000 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h +++ /dev/null @@ -1,100 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -#ifndef _UTL_IDLIST_UTL_IDLIST_HH -#define _UTL_IDLIST_UTL_IDLIST_HH - -// utl_idlist.hh -// -// List of Identifiers - -/* -** DEPENDENCIES: utl_list.hh, utl_identifier.hh -** -** USE: Included from util.hh -*/ - -#include "ace/stdcpp.h" -#include "idl_fwd.h" -#include "utl_list.h" -#include "utl_identifier.h" -#include "utl_string.h" - -class UTL_IdList : public UTL_List -{ - public: - // Constructor(s) - UTL_IdList(Identifier *car, UTL_IdList *cdr); - virtual ~UTL_IdList() {} - - // AST Dumping - virtual void dump(ostream &o); - - // Other operations - - // Get last element in this list - Identifier *last_component(); -}; - -// Active iterator for UTL_IdList - -class UTL_IdListActiveIterator : - public UTL_ListActiveIterator -{ - public: - // Constructor(s) - UTL_IdListActiveIterator(UTL_IdList *s); -}; - -#endif // _UTL_IDLIST_UTL_IDLIST_HH diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_labellist.h b/TAO/TAO_IDL/include/utl_tmpl/utl_labellist.h deleted file mode 100644 index e9c38823e31..00000000000 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_labellist.h +++ /dev/null @@ -1,96 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -#ifndef _UTL_LABELLIST_UTL_LABELLIST_HH -#define _UTL_LABELLIST_UTL_LABELLIST_HH - -// utl_labellist.hh -// -// List of AST_UnionBranch nodes - -/* -** DEPENDENCIES: utl_list.hh, ast_union_label.hh -** -** USE: Included from util.hh -*/ - -#include "ace/stdcpp.h" -#include "idl_fwd.h" -#include "utl_list.h" -#include "ast_union_label.h" - - -class UTL_LabelList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_LabelList(AST_UnionLabel *s, UTL_LabelList *cdr); - virtual ~UTL_LabelList() {} -}; - -// Active iterator for UTL_LabelList -class UTL_LabellistActiveIterator : - public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_LabellistActiveIterator(UTL_LabelList *source); - virtual ~UTL_LabellistActiveIterator() {} -}; - -#endif // _UTL_LABELLIST_UTL_LABELLIST_HH diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_list.h b/TAO/TAO_IDL/include/utl_tmpl/utl_list.h deleted file mode 100644 index 8bc8c4035a6..00000000000 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_list.h +++ /dev/null @@ -1,140 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -#ifndef _UTL_LIST_UTL_LIST_HH -#define _UTL_LIST_UTL_LIST_HH - -// utl_list.hh -// -// General single-linked lists - -/* -** DEPENDENCIES: NONE -** -** USE: Included from util.hh -*/ - -// Forward declare active iterator for UTL_List -template class UTL_ListActiveIterator; - -template -class UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_List(T *c, L *l); - virtual ~UTL_List() {} - - // Smash last cdr pointer in "this" with l - void nconc(L *l); - - // Copy the list starting at "this" - L *copy(); - - // Get list element - T *head(); - - // Get next list - L *tail(); - - // Set the list element - void set_head(T *t); - - // Set next list - void set_tail(L *l); - - // How long is this list? - long length(); - -private: - // Data - T *pd_car_data; // The next list - L *pd_cdr_data; // The next list - - // Operations - long list_length(long n); // How long is it? - - // Friend class - friend class UTL_ListActiveIterator; // Friend class - -}; - -// Active iterator for lists -template -class UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_ListActiveIterator(UTL_List *s); - virtual ~UTL_ListActiveIterator() {} - - // Get current item - T *item(); - - // Get next list - virtual void next(); - - // Are we at the end of this list? - virtual long is_done(); - -protected: - // Data - UTL_List *source; // On what to iterate? -}; - -#endif // _UTL_LIST_UTL_LIST_HH diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_namelist.h b/TAO/TAO_IDL/include/utl_tmpl/utl_namelist.h deleted file mode 100644 index ff8f23ff45c..00000000000 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_namelist.h +++ /dev/null @@ -1,98 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -#ifndef _UTL_NAMELIST_UTL_NAMELIST_HH -#define _UTL_NAMELIST_UTL_NAMELIST_HH - -// utl_namelist.hh -// -// List of UTL_ScopedName nodes - -/* -** DEPENDENCIES: utl_list.hh, utl_scoped_name.hh -** -** USE: Included from util.hh -*/ - -#include "ace/stdcpp.h" -#include "idl_fwd.h" -#include "utl_list.h" -#include "utl_idlist.h" -#include "utl_scoped_name.h" -#include "utl_identifier.h" -#include "utl_string.h" - -class UTL_NameList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_NameList(UTL_ScopedName *s, UTL_NameList *cdr); - virtual ~UTL_NameList() {} -}; - -// Active iterator for UTL_NameList -class UTL_NamelistActiveIterator : - public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_NamelistActiveIterator(UTL_NameList *source); - virtual ~UTL_NamelistActiveIterator() {} -}; - -#endif // _UTL_NAMELIST_UTL_NAMELIST_HH diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h b/TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h deleted file mode 100644 index 2b6966d0b01..00000000000 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h +++ /dev/null @@ -1,104 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -#ifndef _UTL_STRLIST_UTL_STRLIST_HH -#define _UTL_STRLIST_UTL_STRLIST_HH - -// utl_strlist.hh -// -// List of String nodes - -/* -** DEPENDENCIES: utl_list.hh, utl_string.hh -** -** USE: Included from util.hh -*/ - -#include "ace/stdcpp.h" -#include "idl_fwd.h" -#include "utl_list.h" -#include "utl_string.h" - - -class UTL_StrList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_StrList(String *s, UTL_StrList *cdr); - virtual ~UTL_StrList() {} - - // AST Dumping - virtual void dump(ostream &o); - - // Other Operations - - // Get last element in this list - String *last_component(); -}; - -// Active iterator for UTL_StrList -class UTL_StrlistActiveIterator : - public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_StrlistActiveIterator(UTL_StrList *s); - virtual ~UTL_StrlistActiveIterator() {} -}; - -#endif // _UTL_STRLIST_UTL_STRLIST_HH diff --git a/TAO/TAO_IDL/narrow/Makefile b/TAO/TAO_IDL/narrow/Makefile deleted file mode 100644 index 38e976ef85f..00000000000 --- a/TAO/TAO_IDL/narrow/Makefile +++ /dev/null @@ -1,100 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Makefile for libast -#---------------------------------------------------------------------------- - -MAKEFILE = Makefile -LIBNAME = libnarrow -LIB = $(LIBNAME).a -SHLIB = $(LIBNAME).$(SOEXT) -IDL_CFE_VERSION = \"1.3.0\" - -# These are components that are sources of -NARROW_FILES = \ - narrow - -FILES = $(NARROW_FILES) - -LSRC = $(addsuffix .cpp,$(FILES)) -LOBJ = $(addsuffix .o,$(FILES)) -SHOBJ = $(addsuffix .so,$(FILES)) - - -LDLIBS = -lACE -LIBS = -lACE -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -BUILD = $(VSHLIB) #$(VLIB) - - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Local targets (and local hacks) -#---------------------------------------------------------------------------- - -CPPFLAGS += -I../include -I. -DCPP_LOCATION=\"$(CXX)\" -DIDL_CFE_VERSION=$(IDL_CFE_VERSION) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/narrow.o .obj/narrow.so .shobj/narrow.o .shobj/narrow.so: narrow.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/TAO_IDL/narrow/narrow.cpp b/TAO/TAO_IDL/narrow/narrow.cpp deleted file mode 100644 index ef11448f4b0..00000000000 --- a/TAO/TAO_IDL/narrow/narrow.cpp +++ /dev/null @@ -1,139 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#include "idl.h" -#include "idl_extern.h" - -// Narrowing functions for AST - -/* - * Convert a UTL_Scope node into an AST_Decl node if possible - */ -AST_Decl * -ScopeAsDecl(UTL_Scope *s) -{ - if (s == NULL) return NULL; - - switch (s->scope_node_type()) { - case AST_Decl::NT_module: - return AST_Module::narrow_from_scope(s); - case AST_Decl::NT_root: - return AST_Root::narrow_from_scope(s); - case AST_Decl::NT_interface: - return AST_Interface::narrow_from_scope(s); - case AST_Decl::NT_op: - return AST_Operation::narrow_from_scope(s); - case AST_Decl::NT_except: - return AST_Exception::narrow_from_scope(s); - case AST_Decl::NT_union: - return AST_Union::narrow_from_scope(s); - case AST_Decl::NT_struct: - return AST_Structure::narrow_from_scope(s); - case AST_Decl::NT_enum: - return AST_Enum::narrow_from_scope(s); - default: - return NULL; - } -} - -/* - * Convert an AST_Decl to a UTL_Scope if possible - */ -UTL_Scope * -DeclAsScope(AST_Decl *d) -{ - if (d == NULL) return NULL; - - switch (d->node_type()) { - case AST_Decl::NT_interface_fwd: - /* - * Resolve forward declared interface by looking at full_definition() - * field and iterating - */ - d = (AST_InterfaceFwd::narrow_from_decl(d))->full_definition(); - /* - * Fall through - */ - case AST_Decl::NT_interface: - return AST_Interface::narrow_from_decl(d); - case AST_Decl::NT_module: - return AST_Module::narrow_from_decl(d); - case AST_Decl::NT_root: - return AST_Root::narrow_from_decl(d); - case AST_Decl::NT_except: - return AST_Exception::narrow_from_decl(d); - case AST_Decl::NT_union: - return AST_Union::narrow_from_decl(d); - case AST_Decl::NT_struct: - return AST_Structure::narrow_from_decl(d); - case AST_Decl::NT_enum: - return AST_Enum::narrow_from_decl(d); - case AST_Decl::NT_op: - return AST_Operation::narrow_from_decl(d); - default: - return NULL; - } -} diff --git a/TAO/TAO_IDL/tao_idl.cpp b/TAO/TAO_IDL/tao_idl.cpp deleted file mode 100644 index b7b61ad777a..00000000000 --- a/TAO/TAO_IDL/tao_idl.cpp +++ /dev/null @@ -1,258 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* -** drv_main.cc - Main program for IDL compiler driver -** -** LOGIC: -** -** 1. Initialize compiler driver -** 2. Parse command line args -** 3. If more than one file to parse, fork -** 4. Otherwise, for the single file, invoke DRV_drive -*/ - -#include "idl.h" -#include "idl_extern.h" - -#include "drv_private.h" -#include "drv_link.h" - -static void -DRV_version() -{ - cerr << idl_global->prog_name() - << GTDEVEL(", version ") - << IDL_CFE_VERSION - << "\n"; - (*DRV_BE_version)(); -} - -/* -** Drive the compilation -** -** LOGIC: -** -** 1. Initialize the CFE, stage 1. This builds the scope stack -** 2. Initialize the BE. This builds an instance of the generator -** 3. Initialize the CFE, stage 2. This builds the global scope -** and populates it with the predefined types -** 4. Invoke FE_yyparse -** 5. Check for errors from FE_yyparse. If any, exit now -** 6. Check for undefined forward declared interfaces. If any, exit now -** 7. Check if asked to dump AST. If so, do. -** 8. Invoke BE. -*/ -void -DRV_drive(char *s) -{ - char *fn; - - // Macro to avoid "warning: unused parameter" type warning. - ACE_UNUSED_ARG (fn); - - // set the name of the IDL file we are parsing. This is useful to the backend - // when it generates C++ headers and files - idl_global->idl_src_file(new UTL_String(s)); - /* - * Pass through CPP - */ - if (idl_global->compile_flags() & IDL_CF_INFORMATIVE) - cerr << idl_global->prog_name() - << GTDEVEL(": preprocessing ") - << s - << "\n"; - DRV_pre_proc(s); - /* - * Initialize FE stage 1 - */ - (*DRV_FE_init_stage1)(); - /* - * Initialize BE - */ - idl_global->set_gen((*DRV_BE_init)()); - /* - * Initialize FE stage 2 - */ - (*DRV_FE_init_stage2)(); - /* - * Parse - */ - if (idl_global->compile_flags() & IDL_CF_INFORMATIVE) - cerr << idl_global->prog_name() - << GTDEVEL(": parsing ") - << s - << "\n"; - (*DRV_FE_yyparse)(); - /* - * If there were any errors, stop - */ - if (idl_global->err_count() > 0) { - cerr << idl_global->prog_name() - << ": " - << s - << GTDEVEL(": found "); - cerr << idl_global->err_count() - << GTDEVEL(" error"); - cerr << (idl_global->err_count() > 1 - ? GTDEVEL("s") : "") - << "\n"; - /* - * Call BE_abort to allow a BE to clean up after itself - */ - (*DRV_BE_abort)(); - exit((int) idl_global->err_count()); - } - /* - * Dump the code - */ - if ((idl_global->compile_flags() & IDL_CF_INFORMATIVE) - && (idl_global->compile_flags() & IDL_CF_DUMP_AST)) - cerr << idl_global->prog_name() - << GTDEVEL(": dump ") - << s - << "\n"; - if (idl_global->compile_flags() & IDL_CF_DUMP_AST) { - cerr << GTDEVEL("Dump of AST:\n"); - idl_global->root()->dump(cerr); - } - /* - * Call the main entry point for the BE - */ - if (idl_global->compile_flags() & IDL_CF_INFORMATIVE) - cerr << idl_global->prog_name() - << GTDEVEL(": BE processing on ") - << s - << "\n"; - (*DRV_BE_produce)(); - /* - * Exit cleanly - */ - exit(0); -} - -/* - * IDL compiler main program. Logic as explained in comment at head - * of file. - */ -int -main(int argc, char **argv) -{ - /* - * Open front-end library - */ - DRV_FE_open(); - /* - * Initialize driver and global variables - */ - DRV_init(); - /* - * Open back-end library - */ - DRV_BE_open(); - /* - * Parse arguments - */ - DRV_parse_args(argc, argv); - /* - * If a version message is requested, print it and exit - */ - if (idl_global->compile_flags() & IDL_CF_VERSION) { - DRV_version(); - exit(0); - } - /* - * If a usage message is requested, give it and exit - */ - if (idl_global->compile_flags() & IDL_CF_ONLY_USAGE) { - DRV_usage(); - exit(0); - } - /* - * Fork off a process for each file to process. Fork only if - * there is more than one file to process - */ - if (DRV_nfiles > 1) { - /* - * DRV_fork never returns - */ - DRV_fork(); - } else { - /* - * Do the one file we have to parse - * - * Check if stdin and handle file name appropriately - */ - if (DRV_nfiles == 0) { - DRV_files[0] = "standard input"; - } - DRV_file_index = 0; - DRV_drive(DRV_files[DRV_file_index]); - } - exit(0); - /* NOTREACHED */ - return 0; -} diff --git a/TAO/TAO_IDL/tao_idl.dsp b/TAO/TAO_IDL/tao_idl.dsp deleted file mode 100644 index 57b6587befb..00000000000 --- a/TAO/TAO_IDL/tao_idl.dsp +++ /dev/null @@ -1,1043 +0,0 @@ -# Microsoft Developer Studio Project File - Name="tao_idl" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 5.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=tao_idl - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "tao_idl.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "tao_idl.mak" CFG="tao_idl - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "tao_idl - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "tao_idl - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "tao_idl - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Release" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /MD /W3 /GX /O2 /I "include" /I "be_include" /I "..\.." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /D IDL_CFE_VERSION=\"1.3.0\" /YX /FD /D CPP_LOCATION="\"$(CPP_PATH)\\cl\"" /c -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 ace.lib /nologo /subsystem:console /machine:I386 /libpath:"../../ace" - -!ELSEIF "$(CFG)" == "tao_idl - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Debug" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "include" /I "be_include" /I "..\.." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D IDL_CFE_VERSION=\"1.3.0\" /FD /D CPP_LOCATION="\"$(CPP_PATH)\\cl\"" /c -# SUBTRACT CPP /YX -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept -# ADD LINK32 aced.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\ace" -# SUBTRACT LINK32 /pdb:none - -!ENDIF - -# Begin Target - -# Name "tao_idl - Win32 Release" -# Name "tao_idl - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter ".cpp" -# Begin Source File - -SOURCE=.\ast\ast_argument.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_array.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_attribute.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_check.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_concrete_type.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_constant.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_decl.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_enum.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_enum_val.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_exception.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_expression.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_field.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_generator.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_interface.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_interface_fwd.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_module.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_native.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_operation.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_predefined_type.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_recursive.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_redef.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_root.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_sequence.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_string.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_structure.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_type.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_typedef.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_union.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_union_branch.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_union_label.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_args.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_argument.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_array.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_attribute.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_codegen.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_constant.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_decl.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_enum.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_enum_val.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_exception.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_expression.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_factory.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_field.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_generator.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_helper.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_init.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_interface.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_interface_fwd.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_interpretive.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_module.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_native.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_operation.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_predefined_type.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_produce.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_root.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_scope.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_sequence.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_string.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_structure.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_sunsoft.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_type.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_typedef.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_union.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_union_branch.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_union_label.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_args.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_array.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_attribute.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_constant.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_context.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_decl.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_enum.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_exception.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_field.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_interface.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_interface_fwd.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_module.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_operation.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_root.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_scope.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_sequence.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_structure.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_typecode.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_typedef.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_union.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_union_branch.cpp -# End Source File -# Begin Source File - -SOURCE=.\driver\drv_args.cpp -# End Source File -# Begin Source File - -SOURCE=.\driver\drv_fork.cpp -# End Source File -# Begin Source File - -SOURCE=.\driver\drv_init.cpp -# End Source File -# Begin Source File - -SOURCE=.\driver\drv_link.cpp -# End Source File -# Begin Source File - -SOURCE=.\driver\drv_preproc.cpp -# End Source File -# Begin Source File - -SOURCE=.\driver\drv_private.cpp -# End Source File -# Begin Source File - -SOURCE=.\fe\fe_declarator.cpp -# End Source File -# Begin Source File - -SOURCE=.\fe\fe_extern.cpp -# End Source File -# Begin Source File - -SOURCE=.\fe\fe_init.cpp -# End Source File -# Begin Source File - -SOURCE=.\fe\fe_interface_header.cpp -# End Source File -# Begin Source File - -SOURCE=.\fe\fe_private.cpp -# End Source File -# Begin Source File - -SOURCE=.\fe\lex.yy.cpp -# End Source File -# Begin Source File - -SOURCE=.\narrow\narrow.cpp -# End Source File -# Begin Source File - -SOURCE=.\tao_idl.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_decllist.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_error.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_exceptlist.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_exprlist.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_global.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_identifier.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_idlist.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_indenter.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_labellist.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_list.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_namelist.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_scope.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_stack.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_string.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_strlist.cpp -# End Source File -# Begin Source File - -SOURCE=.\fe\y.tab.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter ".h" -# Begin Source File - -SOURCE=.\include\ast.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_argument.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_array.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_attribute.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_concrete_type.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_constant.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_decl.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_enum.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_enum_val.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_exception.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_expression.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_extern.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_field.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_generator.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_interface.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_interface_fwd.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_module.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_native.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_operation.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_predefined_type.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_root.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_sequence.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_string.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_structure.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_type.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_typedef.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_union.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_union_branch.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_union_label.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_argument.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_array.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_attribute.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_codegen.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_constant.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_decl.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_enum.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_enum_val.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_exception.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_expression.h -# End Source File -# Begin Source File - -SOURCE=.\include\be_extern.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_factory.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_field.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_generator.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_helper.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_interface.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_interface_fwd.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_interpretive.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_module.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_native.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_operation.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_predefined_type.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_root.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_scope.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_sequence.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_state.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_string.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_structure.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_sunsoft.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_type.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_typedef.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_union.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_union_branch.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_union_label.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_args.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_array.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_attribute.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_constant.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_context.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_decl.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_enum.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_exception.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_field.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_interface.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_interface_fwd.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_module.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_operation.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_root.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_scope.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_sequence.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_structure.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_typecode.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_typedef.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_union.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_union_branch.h -# End Source File -# Begin Source File - -SOURCE=.\include\drv_extern.h -# End Source File -# Begin Source File - -SOURCE=.\include\drv_link.h -# End Source File -# Begin Source File - -SOURCE=.\include\drv_private.h -# End Source File -# Begin Source File - -SOURCE=.\include\fe_declarator.h -# End Source File -# Begin Source File - -SOURCE=.\include\fe_extern.h -# End Source File -# Begin Source File - -SOURCE=.\include\fe_interface_header.h -# End Source File -# Begin Source File - -SOURCE=.\include\fe_private.h -# End Source File -# Begin Source File - -SOURCE=.\include\global_extern.h -# End Source File -# Begin Source File - -SOURCE=.\include\idl.h -# End Source File -# Begin Source File - -SOURCE=.\include\idl_bool.h -# End Source File -# Begin Source File - -SOURCE=.\include\idl_defines.h -# End Source File -# Begin Source File - -SOURCE=.\include\idl_extern.h -# End Source File -# Begin Source File - -SOURCE=.\include\idl_fwd.h -# End Source File -# Begin Source File - -SOURCE=.\include\idl_global.h -# End Source File -# Begin Source File - -SOURCE=.\include\idl_narrow.h -# End Source File -# Begin Source File - -SOURCE=.\include\intlmacros.h -# End Source File -# Begin Source File - -SOURCE=.\include\nr_extern.h -# End Source File -# Begin Source File - -SOURCE=.\include\util.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_decllist.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_error.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_exceptlist.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_exprlist.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_identifier.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_idlist.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_indenter.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_labellist.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_list.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_namelist.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_scope.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_scoped_name.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_stack.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_string.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_strlist.h -# End Source File -# Begin Source File - -SOURCE=.\fe\y.tab.h -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/TAO_IDL/tao_idl.dsw b/TAO/TAO_IDL/tao_idl.dsw deleted file mode 100644 index 6951f0b2106..00000000000 --- a/TAO/TAO_IDL/tao_idl.dsw +++ /dev/null @@ -1,29 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 5.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "tao_idl"=.\tao_idl.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/TAO_IDL/util/Makefile b/TAO/TAO_IDL/util/Makefile deleted file mode 100644 index f4db89f026a..00000000000 --- a/TAO/TAO_IDL/util/Makefile +++ /dev/null @@ -1,719 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Makefile for libutil -#---------------------------------------------------------------------------- - -MAKEFILE = Makefile -LIBNAME = libtao_idl_util -LIB = $(LIBNAME).a -SHLIB = $(LIBNAME).$(SOEXT) -IDL_CFE_VERSION = \"1.3.0\" - -# These are components that are sources of - -UTIL_FILES = \ - utl_scope \ - utl_stack \ - utl_string \ - utl_decllist \ - utl_labellist \ - utl_namelist \ - utl_exceptlist \ - utl_strlist \ - utl_list \ - utl_exprlist \ - utl_error \ - utl_indenter \ - utl_identifier \ - utl_idlist \ - utl_global - -FILES = $(UTIL_FILES) - -LSRC = $(addsuffix .cpp,$(FILES)) -LOBJ = $(addsuffix .o,$(FILES)) -SHOBJ = $(addsuffix .so,$(FILES)) - - -LDLIBS = -lACE -LIBS = -lACE -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -BUILD = $(VSHLIB) #$(VLIB) - - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Local targets (and local hacks) -#---------------------------------------------------------------------------- - -CPPFLAGS += -I../include -I. -DCPP_LOCATION=\"$(CXX)\" -DIDL_CFE_VERSION=$(IDL_CFE_VERSION) - -$(LOBJS): $(LHDRS) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/utl_scope.o .obj/utl_scope.so .shobj/utl_scope.o .shobj/utl_scope.so: utl_scope.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/utl_stack.o .obj/utl_stack.so .shobj/utl_stack.o .shobj/utl_stack.so: utl_stack.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/utl_string.o .obj/utl_string.so .shobj/utl_string.o .shobj/utl_string.so: utl_string.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/utl_decllist.o .obj/utl_decllist.so .shobj/utl_decllist.o .shobj/utl_decllist.so: utl_decllist.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/utl_labellist.o .obj/utl_labellist.so .shobj/utl_labellist.o .shobj/utl_labellist.so: utl_labellist.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/utl_namelist.o .obj/utl_namelist.so .shobj/utl_namelist.o .shobj/utl_namelist.so: utl_namelist.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/utl_exceptlist.o .obj/utl_exceptlist.so .shobj/utl_exceptlist.o .shobj/utl_exceptlist.so: utl_exceptlist.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/utl_strlist.o .obj/utl_strlist.so .shobj/utl_strlist.o .shobj/utl_strlist.so: utl_strlist.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/utl_list.o .obj/utl_list.so .shobj/utl_list.o .shobj/utl_list.so: utl_list.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/utl_exprlist.o .obj/utl_exprlist.so .shobj/utl_exprlist.o .shobj/utl_exprlist.so: utl_exprlist.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/utl_error.o .obj/utl_error.so .shobj/utl_error.o .shobj/utl_error.so: utl_error.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/utl_indenter.o .obj/utl_indenter.so .shobj/utl_indenter.o .shobj/utl_indenter.so: utl_indenter.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/utl_identifier.o .obj/utl_identifier.so .shobj/utl_identifier.o .shobj/utl_identifier.so: utl_identifier.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/utl_idlist.o .obj/utl_idlist.so .shobj/utl_idlist.o .shobj/utl_idlist.so: utl_idlist.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h -.obj/utl_global.o .obj/utl_global.so .shobj/utl_global.o .shobj/utl_global.so: utl_global.cpp ../include/idl.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - ../include/intlmacros.h ../include/idl_narrow.h \ - ../include/idl_defines.h ../include/idl_fwd.h ../include/idl_bool.h \ - ../include/utl_string.h ../include/utl_identifier.h ../include/ast.h \ - ../include/utl_scoped_name.h ../include/ast_decl.h \ - ../include/ast_expression.h ../include/utl_scope.h \ - ../include/ast_type.h ../include/ast_concrete_type.h \ - ../include/ast_predefined_type.h ../include/ast_module.h \ - ../include/ast_root.h ../include/ast_interface.h \ - ../include/ast_interface_fwd.h ../include/ast_structure.h \ - ../include/ast_exception.h ../include/ast_enum.h \ - ../include/ast_operation.h ../include/utl_list.h \ - ../include/ast_field.h ../include/ast_argument.h \ - ../include/ast_attribute.h ../include/ast_union.h \ - ../include/ast_union_branch.h ../include/ast_union_label.h \ - ../include/ast_constant.h ../include/ast_enum_val.h \ - ../include/ast_array.h ../include/ast_sequence.h \ - ../include/ast_string.h ../include/ast_typedef.h \ - ../include/ast_native.h ../include/utl_strlist.h \ - ../include/utl_exprlist.h ../include/ast_generator.h \ - ../include/util.h ../include/utl_stack.h ../include/utl_idlist.h \ - ../include/utl_exceptlist.h ../include/utl_namelist.h \ - ../include/utl_labellist.h ../include/utl_decllist.h \ - ../include/idl_global.h ../include/utl_error.h \ - ../include/utl_indenter.h ../include/idl_extern.h \ - ../include/fe_extern.h ../include/be_extern.h ../include/drv_extern.h \ - ../include/ast_extern.h ../include/nr_extern.h \ - ../include/global_extern.h - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/TAO_IDL/util/utl_decllist.cpp b/TAO/TAO_IDL/util/utl_decllist.cpp deleted file mode 100644 index c5127550b57..00000000000 --- a/TAO/TAO_IDL/util/utl_decllist.cpp +++ /dev/null @@ -1,147 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_decllist.cc -// -// Implementation of a list of declarators - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) - */ - -UTL_DeclList::UTL_DeclList(FE_Declarator *s, UTL_DeclList *cdr) - : UTL_List(cdr), - pd_car_data(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get list item -FE_Declarator * -UTL_DeclList::head() -{ - return pd_car_data; -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_DeclList active iterator - -/* - * Constructor - */ - -UTL_DecllistActiveIterator::UTL_DecllistActiveIterator(UTL_DeclList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get current item -FE_Declarator * -UTL_DecllistActiveIterator::item() -{ - if (source == NULL) - return NULL; - - return ((UTL_DeclList *) source)->head(); -} - -/* - * Redefined inherited operations - */ - diff --git a/TAO/TAO_IDL/util/utl_err.cpp b/TAO/TAO_IDL/util/utl_err.cpp deleted file mode 100644 index 441f900a720..00000000000 --- a/TAO/TAO_IDL/util/utl_err.cpp +++ /dev/null @@ -1,702 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_error.cc - Implementation of error reporting object for IDL -// compiler program - -#include "idl.h" -#include "idl_extern.h" - -/* - * Helper functions to do: - * - * - Convert an error code to an error string - * - Print out an error message header - * - Convert an ExprType to a string - */ - -// Convert an error code into a char * -static char * -error_string(UTL_Error::ErrorCode c) -{ - switch (c) { - case UTL_Error::EIDL_OK: - return GTDEVEL("all is fine "); - case UTL_Error::EIDL_SYNTAX_ERROR: - return ""; - case UTL_Error::EIDL_REDEF: - return GTDEVEL("illegal redefinition "); - case UTL_Error::EIDL_DEF_USE: - return GTDEVEL("redefinition after use, "); - case UTL_Error::EIDL_MULTIPLE_BRANCH: - return GTDEVEL("union with duplicate branch label "); - case UTL_Error::EIDL_COERCION_FAILURE: - return GTDEVEL("coercion failure "); - case UTL_Error::EIDL_SCOPE_CONFLICT: - return GTDEVEL("definition scope is different than fwd declare scope, "); - case UTL_Error::EIDL_ONEWAY_CONFLICT: - return GTDEVEL("oneway operation with OUT or INOUT parameters, "); - case UTL_Error::EIDL_DISC_TYPE: - return GTDEVEL("union with illegal discriminator type, "); - case UTL_Error::EIDL_LABEL_TYPE: - return GTDEVEL("label type incompatible with union discriminator type, "); - case UTL_Error::EIDL_ILLEGAL_ADD: - return GTDEVEL("illegal add operation, "); - case UTL_Error::EIDL_ILLEGAL_USE: - return GTDEVEL("illegal type used in expression, "); - case UTL_Error::EIDL_ILLEGAL_RAISES: - return GTDEVEL("error in raises(..) clause, "); - case UTL_Error::EIDL_ILLEGAL_CONTEXT: - return GTDEVEL("error in context(..) clause, "); - case UTL_Error::EIDL_CANT_INHERIT: - return GTDEVEL("cannot inherit from "); - case UTL_Error::EIDL_LOOKUP_ERROR: - return GTDEVEL("error in lookup of symbol: "); - case UTL_Error::EIDL_INHERIT_FWD_ERROR: - /* More intelligible message printed by error routine */ - return ""; - case UTL_Error::EIDL_CONSTANT_EXPECTED: - return GTDEVEL("constant expected: "); - case UTL_Error::EIDL_EVAL_ERROR: - return GTDEVEL("expression evaluation error: "); - case UTL_Error::EIDL_NAME_CASE_ERROR: - return GTDEVEL("identifier used with two differing spellings: "); - case UTL_Error::EIDL_ENUM_VAL_EXPECTED: - return GTDEVEL("enumerator expected: "); - case UTL_Error::EIDL_ENUM_VAL_NOT_FOUND: - return GTDEVEL("enumerator by this name not defined: "); - case UTL_Error::EIDL_AMBIGUOUS: - return GTDEVEL("ambiguous definition: "); - case UTL_Error::EIDL_DECL_NOT_DEFINED: - return GTDEVEL("forward declared but never defined: "); - case UTL_Error::EIDL_FWD_DECL_LOOKUP: - /* More intelligible message printed by error routine */ - return ""; - case UTL_Error::EIDL_RECURSIVE_TYPE: - return GTDEVEL("illegal recursive use of type: "); - case UTL_Error::EIDL_NONVOID_ONEWAY: - return GTDEVEL("non-void return type in oneway operation: "); - case UTL_Error::EIDL_REDEF_SCOPE: - return GTDEVEL("redefinition inside defining scope: "); - case UTL_Error::EIDL_NOT_A_TYPE: - return GTDEVEL("specified symbol is not a type: "); - case UTL_Error::EIDL_BACK_END: - return GTDEVEL("back end: "); - } - return NULL; -} - -// Print out an error message header on cerr -static void -idl_error_header(UTL_Error::ErrorCode c, long lineno, String *s) -{ - cerr << idl_global->prog_name() - << ": \"" - << (idl_global->read_from_stdin() ? "standard input" : s->get_string()) - << GTDEVEL("\", line ") - << ((lineno == -1) ? idl_global->lineno() : lineno) - << ": " - << error_string(c); -} - -// Convert the type of an AST_Expression to a char * -static char * -exprtype_to_string(AST_Expression::ExprType t) -{ - switch (t) { - case AST_Expression::EV_short: - return "short"; - case AST_Expression::EV_ushort: - return "unsigned short"; - case AST_Expression::EV_long: - return "long"; - case AST_Expression::EV_ulong: - return "unsigned long"; - case AST_Expression::EV_float: - return "float"; - case AST_Expression::EV_double: - return "double"; - case AST_Expression::EV_char: - return "char"; - case AST_Expression::EV_octet: - return "octet"; - case AST_Expression::EV_bool: - return "boolean"; - case AST_Expression::EV_string: - return "string"; - case AST_Expression::EV_any: - return "any"; - case AST_Expression::EV_void: - return "void"; - case AST_Expression::EV_none: - return "none"; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - return NULL; - } - return NULL; -} - -/* - * Convert a parse state into a possible error message - */ -static char * -parse_state_to_error_message(IDL_GlobalData::ParseState ps) -{ - switch (ps) { - case IDL_GlobalData::PS_NoState: - return GTDEVEL("Statement can not be parsed"); - case IDL_GlobalData::PS_TypeDeclSeen: - return GTDEVEL("Malformed typedef declaration"); - case IDL_GlobalData::PS_ConstDeclSeen: - return GTDEVEL("Malformed const declaration"); - case IDL_GlobalData::PS_ExceptDeclSeen: - return - GTDEVEL("Malformed exception declaration"); - case IDL_GlobalData::PS_InterfaceDeclSeen: - return - GTDEVEL("Malformed interface declaration"); - case IDL_GlobalData::PS_ModuleDeclSeen: - return GTDEVEL("Malformed module declaration"); - case IDL_GlobalData::PS_AttrDeclSeen: - return - GTDEVEL("Malformed attribute declaration"); - case IDL_GlobalData::PS_OpDeclSeen: - return - GTDEVEL("Malformed operation declaration"); - case IDL_GlobalData::PS_ModuleSeen: - return GTDEVEL("Missing module identifier following MODULE keyword"); - case IDL_GlobalData::PS_ModuleIDSeen: - return GTDEVEL("Missing '{' or illegal syntax following module identifier"); - case IDL_GlobalData::PS_ModuleSqSeen: - return GTDEVEL("Illegal syntax following module '{' opener"); - case IDL_GlobalData::PS_ModuleQsSeen: - return GTDEVEL("Illegal syntax following module '}' closer"); - case IDL_GlobalData::PS_ModuleBodySeen: - return GTDEVEL("Illegal syntax following module body statement(s)"); - case IDL_GlobalData::PS_InterfaceSeen: - return GTDEVEL("Missing interface identifier following INTERFACE keyword"); - case IDL_GlobalData::PS_InterfaceIDSeen: - return GTDEVEL("Illegal syntax following interface identifier"); - case IDL_GlobalData::PS_InheritSpecSeen: - return GTDEVEL("Missing '{' or illegal syntax following inheritance spec"); - case IDL_GlobalData::PS_ForwardDeclSeen: - return GTDEVEL("Missing ';' following forward interface declaration"); - case IDL_GlobalData::PS_InterfaceSqSeen: - return GTDEVEL("Illegal syntax following interface '{' opener"); - case IDL_GlobalData::PS_InterfaceQsSeen: - return GTDEVEL("Illegal syntax following interface '}' closer"); - case IDL_GlobalData::PS_InterfaceBodySeen: - return GTDEVEL("Illegal syntax following interface body statement(s)"); - case IDL_GlobalData::PS_InheritColonSeen: - return GTDEVEL("Illegal syntax following ':' starting inheritance list"); - case IDL_GlobalData::PS_SNListCommaSeen: - return GTDEVEL("Found illegal scoped name in scoped name list"); - case IDL_GlobalData::PS_ScopedNameSeen: - return GTDEVEL("Missing ',' following scoped name in scoped name list"); - case IDL_GlobalData::PS_SN_IDSeen: - return GTDEVEL("Illegal component in scoped name"); - case IDL_GlobalData::PS_ScopeDelimSeen: - return GTDEVEL("Illegal component in scoped name following '::'"); - case IDL_GlobalData::PS_ConstSeen: - return GTDEVEL("Missing type or illegal syntax following CONST keyword"); - case IDL_GlobalData::PS_ConstTypeSeen: - return GTDEVEL("Missing identifier or illegal syntax following const type"); - case IDL_GlobalData::PS_ConstIDSeen: - return GTDEVEL("Missing '=' or illegal syntax after const identifier"); - case IDL_GlobalData::PS_ConstAssignSeen: - return GTDEVEL("Missing value expr or illegal syntax following '='"); - case IDL_GlobalData::PS_ConstExprSeen: - return GTDEVEL("Missing ';' or illegal syntax following value expr in const"); - case IDL_GlobalData::PS_TypedefSeen: - return GTDEVEL("Missing type or illegal syntax following TYPEDEF keyword"); - case IDL_GlobalData::PS_TypeSpecSeen: - return GTDEVEL("Missing declarators or illegal syntax following type spec"); - case IDL_GlobalData::PS_DeclaratorsSeen: - return GTDEVEL("Illegal syntax following declarators in TYPEDEF declaration"); - case IDL_GlobalData::PS_StructSeen: - return GTDEVEL("Missing struct identifier following STRUCT keyword"); - case IDL_GlobalData::PS_StructIDSeen: - return GTDEVEL("Missing '{' or illegal syntax following struct identifier"); - case IDL_GlobalData::PS_StructSqSeen: - return GTDEVEL("Illegal syntax following struct '{' opener"); - case IDL_GlobalData::PS_StructQsSeen: - return GTDEVEL("Illegal syntax following struct '}' closer"); - case IDL_GlobalData::PS_StructBodySeen: - return GTDEVEL("Illegal syntax following struct body statement(s)"); - case IDL_GlobalData::PS_MemberTypeSeen: - return GTDEVEL("Illegal syntax of missing identifier following member type"); - case IDL_GlobalData::PS_MemberDeclsSeen: - return GTDEVEL("Illegal syntax following member declarator(s)"); - case IDL_GlobalData::PS_MemberDeclsCompleted: - return GTDEVEL("Missing ',' between member decls of same type(?)"); - case IDL_GlobalData::PS_UnionSeen: - return GTDEVEL("Missing identifier following UNION keyword"); - case IDL_GlobalData::PS_UnionIDSeen: - return GTDEVEL("Illegal syntax following union identifier"); - case IDL_GlobalData::PS_SwitchSeen: - return GTDEVEL("Illegal syntax following SWITCH keyword"); - case IDL_GlobalData::PS_SwitchOpenParSeen: - return GTDEVEL("Illegal syntax following '(' in switch in union"); - case IDL_GlobalData::PS_SwitchTypeSeen: - return GTDEVEL("Illegal syntax following type decl in switch in union"); - case IDL_GlobalData::PS_SwitchCloseParSeen: - return GTDEVEL("Missing union '{' opener"); - case IDL_GlobalData::PS_UnionSqSeen: - return GTDEVEL("Illegal syntax following union '{' opener"); - case IDL_GlobalData::PS_UnionQsSeen: - return GTDEVEL("Illegal syntax following union '}' closer"); - case IDL_GlobalData::PS_DefaultSeen: - return GTDEVEL("Illegal syntax or missing ':' following DEFAULT keyword"); - case IDL_GlobalData::PS_UnionLabelSeen: - return GTDEVEL("Illegal syntax following branch label in union"); - case IDL_GlobalData::PS_LabelColonSeen: - return GTDEVEL("Illegal syntax following ':' in branch label in union"); - case IDL_GlobalData::PS_LabelExprSeen: - return GTDEVEL("Illegal syntax following label expression in union"); - case IDL_GlobalData::PS_UnionElemSeen: - case IDL_GlobalData::PS_UnionElemCompleted: - return GTDEVEL("Illegal syntax following union element"); - case IDL_GlobalData::PS_CaseSeen: - return GTDEVEL("Illegal syntax following CASE keyword in union"); - case IDL_GlobalData::PS_UnionElemTypeSeen: - return GTDEVEL("Illegal syntax following type decl in union element"); - case IDL_GlobalData::PS_UnionElemDeclSeen: - return GTDEVEL("Illegal syntax following declarator in union element"); - case IDL_GlobalData::PS_UnionBodySeen: - return GTDEVEL("Illegal syntax following union body statement(s)"); - case IDL_GlobalData::PS_EnumSeen: - return GTDEVEL("Illegal syntax or missing identifier following ENUM keyword"); - case IDL_GlobalData::PS_EnumIDSeen: - return GTDEVEL("Illegal syntax or missing '{' following enum identifier"); - case IDL_GlobalData::PS_EnumSqSeen: - return GTDEVEL("Illegal syntax following enum '{' opener"); - case IDL_GlobalData::PS_EnumQsSeen: - return GTDEVEL("Illegal syntax following enum '}' closer"); - case IDL_GlobalData::PS_EnumBodySeen: - return GTDEVEL("Illegal syntax following enum body statement(s)"); - case IDL_GlobalData::PS_EnumCommaSeen: - return GTDEVEL("Illegal syntax or missing identifier following ',' in enum"); - case IDL_GlobalData::PS_SequenceSeen: - return GTDEVEL("Illegal syntax or missing '<' following SEQUENCE keyword"); - case IDL_GlobalData::PS_SequenceSqSeen: - return GTDEVEL("Illegal syntax or missing type following '<' in sequence"); - case IDL_GlobalData::PS_SequenceQsSeen: - return GTDEVEL("Illegal syntax following '>' in sequence"); - case IDL_GlobalData::PS_SequenceTypeSeen: - return GTDEVEL("Illegal syntax following sequence type declaration"); - case IDL_GlobalData::PS_SequenceCommaSeen: - return - GTDEVEL("Illegal syntax of missing size expr following ',' in sequence"); - case IDL_GlobalData::PS_SequenceExprSeen: - return - GTDEVEL("Illegal syntax or missing '>' following size expr in sequence"); - case IDL_GlobalData::PS_StringSeen: - return GTDEVEL("Illegal syntax or missing '<' following STRING keyword"); - case IDL_GlobalData::PS_StringSqSeen: - return GTDEVEL("Illegal syntax or missing size expr following '<' in string"); - case IDL_GlobalData::PS_StringQsSeen: - return GTDEVEL("Illegal syntax following '>' in string"); - case IDL_GlobalData::PS_StringExprSeen: - return GTDEVEL("Illegal syntax or missing '>' after size expr in string"); - case IDL_GlobalData::PS_StringCompleted: - return GTDEVEL("Illegal syntax after string declaration"); - case IDL_GlobalData::PS_ArrayIDSeen: - return GTDEVEL("Illegal syntax or missing dimensions after array identifier"); - case IDL_GlobalData::PS_ArrayCompleted: - return GTDEVEL("Illegal syntax after array declaration"); - case IDL_GlobalData::PS_DimSqSeen: - return - GTDEVEL("Illegal syntax or missing size expr after '[' in array declaration"); - case IDL_GlobalData::PS_DimQsSeen: - return GTDEVEL("Illegal syntax after ']' in array declaration"); - case IDL_GlobalData::PS_DimExprSeen: - return - GTDEVEL("Illegal syntax or missing ']' after size expr in array declaration"); - case IDL_GlobalData::PS_AttrROSeen: - return GTDEVEL("Illegal syntax after READONLY keyword"); - case IDL_GlobalData::PS_AttrSeen: - return GTDEVEL("Illegal syntax after ATTRIBUTE keyword"); - case IDL_GlobalData::PS_AttrTypeSeen: - return GTDEVEL("Illegal syntax after type in attribute declaration"); - case IDL_GlobalData::PS_AttrDeclsSeen: - return GTDEVEL("Illegal syntax after attribute declarators"); - case IDL_GlobalData::PS_AttrCompleted: - return GTDEVEL("Illegal syntax after attribute declaration"); - case IDL_GlobalData::PS_ExceptSeen: - return - GTDEVEL("Illegal syntax or missing identifier after EXCEPTION keyword"); - case IDL_GlobalData::PS_ExceptIDSeen: - return GTDEVEL("Illegal syntax or missing '{' after exception identifier"); - case IDL_GlobalData::PS_ExceptSqSeen: - return GTDEVEL("Illegal syntax after exception '{' opener"); - case IDL_GlobalData::PS_ExceptQsSeen: - return GTDEVEL("Illegal syntax after exception '}' closer"); - case IDL_GlobalData::PS_ExceptBodySeen: - return GTDEVEL("Illegal syntax after exception body statement(s)"); - case IDL_GlobalData::PS_OpAttrSeen: - return GTDEVEL("Illegal syntax or missing type after operation attribute"); - case IDL_GlobalData::PS_OpTypeSeen: - return GTDEVEL("Illegal syntax or missing identifier after operation type"); - case IDL_GlobalData::PS_OpIDSeen: - return GTDEVEL("Illegal syntax or missing '(' after operation identifier"); - case IDL_GlobalData::PS_OpParsCompleted: - return GTDEVEL("Illegal syntax after operation parameter list"); - case IDL_GlobalData::PS_OpRaiseCompleted: - return - GTDEVEL("Illegal syntax after optional RAISES in operation declaration"); - case IDL_GlobalData::PS_OpContextCompleted: - return - GTDEVEL("Illegal syntax after optional CONTEXT in operation declaration"); - case IDL_GlobalData::PS_OpCompleted: - return GTDEVEL("Illegal syntax after operation declaration"); - case IDL_GlobalData::PS_OpSqSeen: - return GTDEVEL("Illegal syntax after operation parameter list '(' opener"); - case IDL_GlobalData::PS_OpQsSeen: - return GTDEVEL("Illegal syntax after operation parameter list ')' closer"); - case IDL_GlobalData::PS_OpParCommaSeen: - return - GTDEVEL("Illegal syntax or missing direction in parameter declaration"); - case IDL_GlobalData::PS_OpParDirSeen: - return GTDEVEL("Illegal syntax or missing type in parameter declaration"); - case IDL_GlobalData::PS_OpParTypeSeen: - return - GTDEVEL("Illegal syntax or missing declarator in parameter declaration"); - case IDL_GlobalData::PS_OpParDeclSeen: - return GTDEVEL("Illegal syntax following parameter declarator"); - case IDL_GlobalData::PS_OpRaiseSeen: - return GTDEVEL("Illegal syntax or missing '(' after RAISES keyword"); - case IDL_GlobalData::PS_OpRaiseSqSeen: - return GTDEVEL("Illegal syntax after RAISES '(' opener"); - case IDL_GlobalData::PS_OpRaiseQsSeen: - return GTDEVEL("Illegal syntax after RAISES ')' closer"); - case IDL_GlobalData::PS_OpContextSeen: - return GTDEVEL("Illegal syntax or missing '(' after CONTEXT keyword"); - case IDL_GlobalData::PS_OpContextSqSeen: - return GTDEVEL("Illegal syntax after CONTEXT '(' opener"); - case IDL_GlobalData::PS_OpContextQsSeen: - return GTDEVEL("Illegal syntax after CONTEXT ')' closer"); - case IDL_GlobalData::PS_OpContextCommaSeen: - return - GTDEVEL("Illegal syntax after ',' in CONTEXT in operation declaration"); - case IDL_GlobalData::PS_DeclsCommaSeen: - return GTDEVEL("Illegal syntax after ',' in declarators list"); - case IDL_GlobalData::PS_DeclsDeclSeen: - return GTDEVEL("Illegal syntax after declarator in declarators list"); - - default: - return GTDEVEL("Some syntax error"); - } -} -/* - * Public methods - */ - -// Report error messages with various numbers of arguments - -void -UTL_Error::syntax_error(IDL_GlobalData::ParseState ps) -{ - idl_error_header(EIDL_SYNTAX_ERROR, - idl_global->lineno(), - idl_global->filename()); - cerr << parse_state_to_error_message(ps) << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -void -UTL_Error::error0(UTL_Error::ErrorCode c) -{ - idl_error_header(c, idl_global->lineno(), idl_global->filename()); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -void -UTL_Error::error1(UTL_Error::ErrorCode c, AST_Decl *d) -{ - idl_error_header(c, d->line(), d->file_name()); - d->name()->dump(cerr); cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -void -UTL_Error::error2(UTL_Error::ErrorCode c, AST_Decl *d1, AST_Decl *d2) -{ - idl_error_header(c, d1->line(), d1->file_name()); - d1->name()->dump(cerr); cerr << ", "; - d2->name()->dump(cerr); cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -void -UTL_Error::error3(UTL_Error::ErrorCode c, - AST_Decl *d1, - AST_Decl *d2, - AST_Decl *d3) -{ - idl_error_header(c, d1->line(), d1->file_name()); - d1->name()->dump(cerr); cerr << ", "; - d2->name()->dump(cerr); cerr << ", "; - d3->name()->dump(cerr); cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a failed coercion attempt -void -UTL_Error::coercion_error(AST_Expression *v, AST_Expression::ExprType t) -{ - idl_error_header(EIDL_COERCION_FAILURE, v->line(), v->file_name()); - v->dump(cerr); - cerr << GTDEVEL(" to ") << exprtype_to_string(t) << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a failed name lookup attempt -void -UTL_Error::lookup_error(UTL_ScopedName *n) -{ - idl_error_header(EIDL_LOOKUP_ERROR, - idl_global->lineno(), - idl_global->filename()); - n->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report an attempt to inherit from an interface which was only -// declared forward but not yet defined -void -UTL_Error::inheritance_fwd_error(UTL_ScopedName *n, AST_Interface *f) -{ - idl_error_header(EIDL_INHERIT_FWD_ERROR, f->line(), f->file_name()); - cerr << "interface "; - n->dump(cerr); - cerr << GTDEVEL(" cannot inherit from forward declared interface "); - f->local_name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report an attempt to inherit from something other than an interface -void -UTL_Error::inheritance_error(UTL_ScopedName *n, AST_Decl *d) -{ - idl_error_header(EIDL_CANT_INHERIT, d->line(), d->file_name()); - cerr << " interface "; - n->dump(cerr); - cerr << GTDEVEL(" attempts to inherit from "); - d->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report an error while evaluating an expression -void -UTL_Error::eval_error(AST_Expression *v) -{ - idl_error_header(EIDL_EVAL_ERROR, v->line(), v->file_name()); - v->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a situation where a constant was expected but we -// got something else. This may occur in a union when a label -// evaluates to a non-constant -void -UTL_Error::constant_expected(UTL_ScopedName *n, AST_Decl *d) -{ - idl_error_header(EIDL_CONSTANT_EXPECTED, d->line(), d->file_name()); - n->dump(cerr); - cerr << GTDEVEL(" bound to "); - d->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a situation where an enumerator was expected but we -// got something else. This may occur in a union with an enum -// discriminator where a label did not evaluate to a constant -// enumerator -void -UTL_Error::enum_val_expected(AST_Union *u, AST_UnionLabel *l) -{ - idl_error_header(EIDL_ENUM_VAL_EXPECTED, u->line(), u->file_name()); - cerr << " union " << u->local_name()->get_string() << ", "; - l->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a situation where an enumerator was received but we -// could not find it (by name) in an enum. This occurs when -// a union with an enum discriminator is being parsed, and a -// label evaluates to an enumerator which is not a member of -// the enum discriminator type -void -UTL_Error::enum_val_lookup_failure(AST_Union *u, - AST_Enum *e, - UTL_ScopedName *n) -{ - idl_error_header(EIDL_ENUM_VAL_NOT_FOUND, u->line(), u->file_name()); - cerr << " union " << u->local_name()->get_string() << ", "; - cerr << " enum " << e->local_name()->get_string() << ", "; - cerr << " enumerator "; - n->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report two or more spellings for an identifier -void -UTL_Error::name_case_error(char *b, char *n) -{ - idl_error_header(EIDL_NAME_CASE_ERROR, - idl_global->lineno(), - idl_global->filename()); - cerr << "\"" << b << GTDEVEL("\" and ") << "\"" << n << "\"\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report an ambiguous definition of a name -void -UTL_Error::ambiguous(UTL_Scope *s, AST_Decl *l, AST_Decl *d) -{ - idl_error_header(EIDL_AMBIGUOUS, d->line(), d->file_name()); - cerr << GTDEVEL(" scope: ") - << (ScopeAsDecl(s))->local_name()->get_string() - << ", "; - cerr << GTDEVEL(" collision: "); - d->name()->dump(cerr); - cerr << " vs. "; - l->name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a forward declared interface which was never defined -void -UTL_Error::fwd_decl_not_defined(AST_Interface *d) -{ - idl_error_header(EIDL_DECL_NOT_DEFINED, d->line(), d->file_name()); - cerr << "interface "; - d->local_name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report lookup in undefined forward declared but undefined interface -void -UTL_Error::fwd_decl_lookup(AST_Interface *d, UTL_ScopedName *n) -{ - idl_error_header(EIDL_FWD_DECL_LOOKUP, - idl_global->lineno(), - idl_global->filename()); - cerr << GTDEVEL("trying to look up "); - n->dump(cerr); - cerr << GTDEVEL(" in undefined forward declared interface "); - d->local_name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a redefinition inside its own scope -void -UTL_Error::redefinition_in_scope(AST_Decl *d, AST_Decl *s) -{ - idl_error_header(EIDL_REDEF_SCOPE, d->line(), d->file_name()); - d->name()->dump(cerr); - cerr << ", "; - s->name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report not a type error -void -UTL_Error::not_a_type(AST_Decl *d) -{ - idl_error_header(EIDL_NOT_A_TYPE, - idl_global->lineno(), - idl_global->filename()); - if (d == NULL || d->name() == NULL) - cerr << GTDEVEL("unknown symbol"); - else - d->name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -void -UTL_Error::back_end(long lineno, String *s) -{ - idl_error_header(EIDL_BACK_END, lineno, s); - idl_global->set_err_count(idl_global->err_count() + 1); -} diff --git a/TAO/TAO_IDL/util/utl_error.cpp b/TAO/TAO_IDL/util/utl_error.cpp deleted file mode 100644 index 441f900a720..00000000000 --- a/TAO/TAO_IDL/util/utl_error.cpp +++ /dev/null @@ -1,702 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_error.cc - Implementation of error reporting object for IDL -// compiler program - -#include "idl.h" -#include "idl_extern.h" - -/* - * Helper functions to do: - * - * - Convert an error code to an error string - * - Print out an error message header - * - Convert an ExprType to a string - */ - -// Convert an error code into a char * -static char * -error_string(UTL_Error::ErrorCode c) -{ - switch (c) { - case UTL_Error::EIDL_OK: - return GTDEVEL("all is fine "); - case UTL_Error::EIDL_SYNTAX_ERROR: - return ""; - case UTL_Error::EIDL_REDEF: - return GTDEVEL("illegal redefinition "); - case UTL_Error::EIDL_DEF_USE: - return GTDEVEL("redefinition after use, "); - case UTL_Error::EIDL_MULTIPLE_BRANCH: - return GTDEVEL("union with duplicate branch label "); - case UTL_Error::EIDL_COERCION_FAILURE: - return GTDEVEL("coercion failure "); - case UTL_Error::EIDL_SCOPE_CONFLICT: - return GTDEVEL("definition scope is different than fwd declare scope, "); - case UTL_Error::EIDL_ONEWAY_CONFLICT: - return GTDEVEL("oneway operation with OUT or INOUT parameters, "); - case UTL_Error::EIDL_DISC_TYPE: - return GTDEVEL("union with illegal discriminator type, "); - case UTL_Error::EIDL_LABEL_TYPE: - return GTDEVEL("label type incompatible with union discriminator type, "); - case UTL_Error::EIDL_ILLEGAL_ADD: - return GTDEVEL("illegal add operation, "); - case UTL_Error::EIDL_ILLEGAL_USE: - return GTDEVEL("illegal type used in expression, "); - case UTL_Error::EIDL_ILLEGAL_RAISES: - return GTDEVEL("error in raises(..) clause, "); - case UTL_Error::EIDL_ILLEGAL_CONTEXT: - return GTDEVEL("error in context(..) clause, "); - case UTL_Error::EIDL_CANT_INHERIT: - return GTDEVEL("cannot inherit from "); - case UTL_Error::EIDL_LOOKUP_ERROR: - return GTDEVEL("error in lookup of symbol: "); - case UTL_Error::EIDL_INHERIT_FWD_ERROR: - /* More intelligible message printed by error routine */ - return ""; - case UTL_Error::EIDL_CONSTANT_EXPECTED: - return GTDEVEL("constant expected: "); - case UTL_Error::EIDL_EVAL_ERROR: - return GTDEVEL("expression evaluation error: "); - case UTL_Error::EIDL_NAME_CASE_ERROR: - return GTDEVEL("identifier used with two differing spellings: "); - case UTL_Error::EIDL_ENUM_VAL_EXPECTED: - return GTDEVEL("enumerator expected: "); - case UTL_Error::EIDL_ENUM_VAL_NOT_FOUND: - return GTDEVEL("enumerator by this name not defined: "); - case UTL_Error::EIDL_AMBIGUOUS: - return GTDEVEL("ambiguous definition: "); - case UTL_Error::EIDL_DECL_NOT_DEFINED: - return GTDEVEL("forward declared but never defined: "); - case UTL_Error::EIDL_FWD_DECL_LOOKUP: - /* More intelligible message printed by error routine */ - return ""; - case UTL_Error::EIDL_RECURSIVE_TYPE: - return GTDEVEL("illegal recursive use of type: "); - case UTL_Error::EIDL_NONVOID_ONEWAY: - return GTDEVEL("non-void return type in oneway operation: "); - case UTL_Error::EIDL_REDEF_SCOPE: - return GTDEVEL("redefinition inside defining scope: "); - case UTL_Error::EIDL_NOT_A_TYPE: - return GTDEVEL("specified symbol is not a type: "); - case UTL_Error::EIDL_BACK_END: - return GTDEVEL("back end: "); - } - return NULL; -} - -// Print out an error message header on cerr -static void -idl_error_header(UTL_Error::ErrorCode c, long lineno, String *s) -{ - cerr << idl_global->prog_name() - << ": \"" - << (idl_global->read_from_stdin() ? "standard input" : s->get_string()) - << GTDEVEL("\", line ") - << ((lineno == -1) ? idl_global->lineno() : lineno) - << ": " - << error_string(c); -} - -// Convert the type of an AST_Expression to a char * -static char * -exprtype_to_string(AST_Expression::ExprType t) -{ - switch (t) { - case AST_Expression::EV_short: - return "short"; - case AST_Expression::EV_ushort: - return "unsigned short"; - case AST_Expression::EV_long: - return "long"; - case AST_Expression::EV_ulong: - return "unsigned long"; - case AST_Expression::EV_float: - return "float"; - case AST_Expression::EV_double: - return "double"; - case AST_Expression::EV_char: - return "char"; - case AST_Expression::EV_octet: - return "octet"; - case AST_Expression::EV_bool: - return "boolean"; - case AST_Expression::EV_string: - return "string"; - case AST_Expression::EV_any: - return "any"; - case AST_Expression::EV_void: - return "void"; - case AST_Expression::EV_none: - return "none"; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - return NULL; - } - return NULL; -} - -/* - * Convert a parse state into a possible error message - */ -static char * -parse_state_to_error_message(IDL_GlobalData::ParseState ps) -{ - switch (ps) { - case IDL_GlobalData::PS_NoState: - return GTDEVEL("Statement can not be parsed"); - case IDL_GlobalData::PS_TypeDeclSeen: - return GTDEVEL("Malformed typedef declaration"); - case IDL_GlobalData::PS_ConstDeclSeen: - return GTDEVEL("Malformed const declaration"); - case IDL_GlobalData::PS_ExceptDeclSeen: - return - GTDEVEL("Malformed exception declaration"); - case IDL_GlobalData::PS_InterfaceDeclSeen: - return - GTDEVEL("Malformed interface declaration"); - case IDL_GlobalData::PS_ModuleDeclSeen: - return GTDEVEL("Malformed module declaration"); - case IDL_GlobalData::PS_AttrDeclSeen: - return - GTDEVEL("Malformed attribute declaration"); - case IDL_GlobalData::PS_OpDeclSeen: - return - GTDEVEL("Malformed operation declaration"); - case IDL_GlobalData::PS_ModuleSeen: - return GTDEVEL("Missing module identifier following MODULE keyword"); - case IDL_GlobalData::PS_ModuleIDSeen: - return GTDEVEL("Missing '{' or illegal syntax following module identifier"); - case IDL_GlobalData::PS_ModuleSqSeen: - return GTDEVEL("Illegal syntax following module '{' opener"); - case IDL_GlobalData::PS_ModuleQsSeen: - return GTDEVEL("Illegal syntax following module '}' closer"); - case IDL_GlobalData::PS_ModuleBodySeen: - return GTDEVEL("Illegal syntax following module body statement(s)"); - case IDL_GlobalData::PS_InterfaceSeen: - return GTDEVEL("Missing interface identifier following INTERFACE keyword"); - case IDL_GlobalData::PS_InterfaceIDSeen: - return GTDEVEL("Illegal syntax following interface identifier"); - case IDL_GlobalData::PS_InheritSpecSeen: - return GTDEVEL("Missing '{' or illegal syntax following inheritance spec"); - case IDL_GlobalData::PS_ForwardDeclSeen: - return GTDEVEL("Missing ';' following forward interface declaration"); - case IDL_GlobalData::PS_InterfaceSqSeen: - return GTDEVEL("Illegal syntax following interface '{' opener"); - case IDL_GlobalData::PS_InterfaceQsSeen: - return GTDEVEL("Illegal syntax following interface '}' closer"); - case IDL_GlobalData::PS_InterfaceBodySeen: - return GTDEVEL("Illegal syntax following interface body statement(s)"); - case IDL_GlobalData::PS_InheritColonSeen: - return GTDEVEL("Illegal syntax following ':' starting inheritance list"); - case IDL_GlobalData::PS_SNListCommaSeen: - return GTDEVEL("Found illegal scoped name in scoped name list"); - case IDL_GlobalData::PS_ScopedNameSeen: - return GTDEVEL("Missing ',' following scoped name in scoped name list"); - case IDL_GlobalData::PS_SN_IDSeen: - return GTDEVEL("Illegal component in scoped name"); - case IDL_GlobalData::PS_ScopeDelimSeen: - return GTDEVEL("Illegal component in scoped name following '::'"); - case IDL_GlobalData::PS_ConstSeen: - return GTDEVEL("Missing type or illegal syntax following CONST keyword"); - case IDL_GlobalData::PS_ConstTypeSeen: - return GTDEVEL("Missing identifier or illegal syntax following const type"); - case IDL_GlobalData::PS_ConstIDSeen: - return GTDEVEL("Missing '=' or illegal syntax after const identifier"); - case IDL_GlobalData::PS_ConstAssignSeen: - return GTDEVEL("Missing value expr or illegal syntax following '='"); - case IDL_GlobalData::PS_ConstExprSeen: - return GTDEVEL("Missing ';' or illegal syntax following value expr in const"); - case IDL_GlobalData::PS_TypedefSeen: - return GTDEVEL("Missing type or illegal syntax following TYPEDEF keyword"); - case IDL_GlobalData::PS_TypeSpecSeen: - return GTDEVEL("Missing declarators or illegal syntax following type spec"); - case IDL_GlobalData::PS_DeclaratorsSeen: - return GTDEVEL("Illegal syntax following declarators in TYPEDEF declaration"); - case IDL_GlobalData::PS_StructSeen: - return GTDEVEL("Missing struct identifier following STRUCT keyword"); - case IDL_GlobalData::PS_StructIDSeen: - return GTDEVEL("Missing '{' or illegal syntax following struct identifier"); - case IDL_GlobalData::PS_StructSqSeen: - return GTDEVEL("Illegal syntax following struct '{' opener"); - case IDL_GlobalData::PS_StructQsSeen: - return GTDEVEL("Illegal syntax following struct '}' closer"); - case IDL_GlobalData::PS_StructBodySeen: - return GTDEVEL("Illegal syntax following struct body statement(s)"); - case IDL_GlobalData::PS_MemberTypeSeen: - return GTDEVEL("Illegal syntax of missing identifier following member type"); - case IDL_GlobalData::PS_MemberDeclsSeen: - return GTDEVEL("Illegal syntax following member declarator(s)"); - case IDL_GlobalData::PS_MemberDeclsCompleted: - return GTDEVEL("Missing ',' between member decls of same type(?)"); - case IDL_GlobalData::PS_UnionSeen: - return GTDEVEL("Missing identifier following UNION keyword"); - case IDL_GlobalData::PS_UnionIDSeen: - return GTDEVEL("Illegal syntax following union identifier"); - case IDL_GlobalData::PS_SwitchSeen: - return GTDEVEL("Illegal syntax following SWITCH keyword"); - case IDL_GlobalData::PS_SwitchOpenParSeen: - return GTDEVEL("Illegal syntax following '(' in switch in union"); - case IDL_GlobalData::PS_SwitchTypeSeen: - return GTDEVEL("Illegal syntax following type decl in switch in union"); - case IDL_GlobalData::PS_SwitchCloseParSeen: - return GTDEVEL("Missing union '{' opener"); - case IDL_GlobalData::PS_UnionSqSeen: - return GTDEVEL("Illegal syntax following union '{' opener"); - case IDL_GlobalData::PS_UnionQsSeen: - return GTDEVEL("Illegal syntax following union '}' closer"); - case IDL_GlobalData::PS_DefaultSeen: - return GTDEVEL("Illegal syntax or missing ':' following DEFAULT keyword"); - case IDL_GlobalData::PS_UnionLabelSeen: - return GTDEVEL("Illegal syntax following branch label in union"); - case IDL_GlobalData::PS_LabelColonSeen: - return GTDEVEL("Illegal syntax following ':' in branch label in union"); - case IDL_GlobalData::PS_LabelExprSeen: - return GTDEVEL("Illegal syntax following label expression in union"); - case IDL_GlobalData::PS_UnionElemSeen: - case IDL_GlobalData::PS_UnionElemCompleted: - return GTDEVEL("Illegal syntax following union element"); - case IDL_GlobalData::PS_CaseSeen: - return GTDEVEL("Illegal syntax following CASE keyword in union"); - case IDL_GlobalData::PS_UnionElemTypeSeen: - return GTDEVEL("Illegal syntax following type decl in union element"); - case IDL_GlobalData::PS_UnionElemDeclSeen: - return GTDEVEL("Illegal syntax following declarator in union element"); - case IDL_GlobalData::PS_UnionBodySeen: - return GTDEVEL("Illegal syntax following union body statement(s)"); - case IDL_GlobalData::PS_EnumSeen: - return GTDEVEL("Illegal syntax or missing identifier following ENUM keyword"); - case IDL_GlobalData::PS_EnumIDSeen: - return GTDEVEL("Illegal syntax or missing '{' following enum identifier"); - case IDL_GlobalData::PS_EnumSqSeen: - return GTDEVEL("Illegal syntax following enum '{' opener"); - case IDL_GlobalData::PS_EnumQsSeen: - return GTDEVEL("Illegal syntax following enum '}' closer"); - case IDL_GlobalData::PS_EnumBodySeen: - return GTDEVEL("Illegal syntax following enum body statement(s)"); - case IDL_GlobalData::PS_EnumCommaSeen: - return GTDEVEL("Illegal syntax or missing identifier following ',' in enum"); - case IDL_GlobalData::PS_SequenceSeen: - return GTDEVEL("Illegal syntax or missing '<' following SEQUENCE keyword"); - case IDL_GlobalData::PS_SequenceSqSeen: - return GTDEVEL("Illegal syntax or missing type following '<' in sequence"); - case IDL_GlobalData::PS_SequenceQsSeen: - return GTDEVEL("Illegal syntax following '>' in sequence"); - case IDL_GlobalData::PS_SequenceTypeSeen: - return GTDEVEL("Illegal syntax following sequence type declaration"); - case IDL_GlobalData::PS_SequenceCommaSeen: - return - GTDEVEL("Illegal syntax of missing size expr following ',' in sequence"); - case IDL_GlobalData::PS_SequenceExprSeen: - return - GTDEVEL("Illegal syntax or missing '>' following size expr in sequence"); - case IDL_GlobalData::PS_StringSeen: - return GTDEVEL("Illegal syntax or missing '<' following STRING keyword"); - case IDL_GlobalData::PS_StringSqSeen: - return GTDEVEL("Illegal syntax or missing size expr following '<' in string"); - case IDL_GlobalData::PS_StringQsSeen: - return GTDEVEL("Illegal syntax following '>' in string"); - case IDL_GlobalData::PS_StringExprSeen: - return GTDEVEL("Illegal syntax or missing '>' after size expr in string"); - case IDL_GlobalData::PS_StringCompleted: - return GTDEVEL("Illegal syntax after string declaration"); - case IDL_GlobalData::PS_ArrayIDSeen: - return GTDEVEL("Illegal syntax or missing dimensions after array identifier"); - case IDL_GlobalData::PS_ArrayCompleted: - return GTDEVEL("Illegal syntax after array declaration"); - case IDL_GlobalData::PS_DimSqSeen: - return - GTDEVEL("Illegal syntax or missing size expr after '[' in array declaration"); - case IDL_GlobalData::PS_DimQsSeen: - return GTDEVEL("Illegal syntax after ']' in array declaration"); - case IDL_GlobalData::PS_DimExprSeen: - return - GTDEVEL("Illegal syntax or missing ']' after size expr in array declaration"); - case IDL_GlobalData::PS_AttrROSeen: - return GTDEVEL("Illegal syntax after READONLY keyword"); - case IDL_GlobalData::PS_AttrSeen: - return GTDEVEL("Illegal syntax after ATTRIBUTE keyword"); - case IDL_GlobalData::PS_AttrTypeSeen: - return GTDEVEL("Illegal syntax after type in attribute declaration"); - case IDL_GlobalData::PS_AttrDeclsSeen: - return GTDEVEL("Illegal syntax after attribute declarators"); - case IDL_GlobalData::PS_AttrCompleted: - return GTDEVEL("Illegal syntax after attribute declaration"); - case IDL_GlobalData::PS_ExceptSeen: - return - GTDEVEL("Illegal syntax or missing identifier after EXCEPTION keyword"); - case IDL_GlobalData::PS_ExceptIDSeen: - return GTDEVEL("Illegal syntax or missing '{' after exception identifier"); - case IDL_GlobalData::PS_ExceptSqSeen: - return GTDEVEL("Illegal syntax after exception '{' opener"); - case IDL_GlobalData::PS_ExceptQsSeen: - return GTDEVEL("Illegal syntax after exception '}' closer"); - case IDL_GlobalData::PS_ExceptBodySeen: - return GTDEVEL("Illegal syntax after exception body statement(s)"); - case IDL_GlobalData::PS_OpAttrSeen: - return GTDEVEL("Illegal syntax or missing type after operation attribute"); - case IDL_GlobalData::PS_OpTypeSeen: - return GTDEVEL("Illegal syntax or missing identifier after operation type"); - case IDL_GlobalData::PS_OpIDSeen: - return GTDEVEL("Illegal syntax or missing '(' after operation identifier"); - case IDL_GlobalData::PS_OpParsCompleted: - return GTDEVEL("Illegal syntax after operation parameter list"); - case IDL_GlobalData::PS_OpRaiseCompleted: - return - GTDEVEL("Illegal syntax after optional RAISES in operation declaration"); - case IDL_GlobalData::PS_OpContextCompleted: - return - GTDEVEL("Illegal syntax after optional CONTEXT in operation declaration"); - case IDL_GlobalData::PS_OpCompleted: - return GTDEVEL("Illegal syntax after operation declaration"); - case IDL_GlobalData::PS_OpSqSeen: - return GTDEVEL("Illegal syntax after operation parameter list '(' opener"); - case IDL_GlobalData::PS_OpQsSeen: - return GTDEVEL("Illegal syntax after operation parameter list ')' closer"); - case IDL_GlobalData::PS_OpParCommaSeen: - return - GTDEVEL("Illegal syntax or missing direction in parameter declaration"); - case IDL_GlobalData::PS_OpParDirSeen: - return GTDEVEL("Illegal syntax or missing type in parameter declaration"); - case IDL_GlobalData::PS_OpParTypeSeen: - return - GTDEVEL("Illegal syntax or missing declarator in parameter declaration"); - case IDL_GlobalData::PS_OpParDeclSeen: - return GTDEVEL("Illegal syntax following parameter declarator"); - case IDL_GlobalData::PS_OpRaiseSeen: - return GTDEVEL("Illegal syntax or missing '(' after RAISES keyword"); - case IDL_GlobalData::PS_OpRaiseSqSeen: - return GTDEVEL("Illegal syntax after RAISES '(' opener"); - case IDL_GlobalData::PS_OpRaiseQsSeen: - return GTDEVEL("Illegal syntax after RAISES ')' closer"); - case IDL_GlobalData::PS_OpContextSeen: - return GTDEVEL("Illegal syntax or missing '(' after CONTEXT keyword"); - case IDL_GlobalData::PS_OpContextSqSeen: - return GTDEVEL("Illegal syntax after CONTEXT '(' opener"); - case IDL_GlobalData::PS_OpContextQsSeen: - return GTDEVEL("Illegal syntax after CONTEXT ')' closer"); - case IDL_GlobalData::PS_OpContextCommaSeen: - return - GTDEVEL("Illegal syntax after ',' in CONTEXT in operation declaration"); - case IDL_GlobalData::PS_DeclsCommaSeen: - return GTDEVEL("Illegal syntax after ',' in declarators list"); - case IDL_GlobalData::PS_DeclsDeclSeen: - return GTDEVEL("Illegal syntax after declarator in declarators list"); - - default: - return GTDEVEL("Some syntax error"); - } -} -/* - * Public methods - */ - -// Report error messages with various numbers of arguments - -void -UTL_Error::syntax_error(IDL_GlobalData::ParseState ps) -{ - idl_error_header(EIDL_SYNTAX_ERROR, - idl_global->lineno(), - idl_global->filename()); - cerr << parse_state_to_error_message(ps) << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -void -UTL_Error::error0(UTL_Error::ErrorCode c) -{ - idl_error_header(c, idl_global->lineno(), idl_global->filename()); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -void -UTL_Error::error1(UTL_Error::ErrorCode c, AST_Decl *d) -{ - idl_error_header(c, d->line(), d->file_name()); - d->name()->dump(cerr); cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -void -UTL_Error::error2(UTL_Error::ErrorCode c, AST_Decl *d1, AST_Decl *d2) -{ - idl_error_header(c, d1->line(), d1->file_name()); - d1->name()->dump(cerr); cerr << ", "; - d2->name()->dump(cerr); cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -void -UTL_Error::error3(UTL_Error::ErrorCode c, - AST_Decl *d1, - AST_Decl *d2, - AST_Decl *d3) -{ - idl_error_header(c, d1->line(), d1->file_name()); - d1->name()->dump(cerr); cerr << ", "; - d2->name()->dump(cerr); cerr << ", "; - d3->name()->dump(cerr); cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a failed coercion attempt -void -UTL_Error::coercion_error(AST_Expression *v, AST_Expression::ExprType t) -{ - idl_error_header(EIDL_COERCION_FAILURE, v->line(), v->file_name()); - v->dump(cerr); - cerr << GTDEVEL(" to ") << exprtype_to_string(t) << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a failed name lookup attempt -void -UTL_Error::lookup_error(UTL_ScopedName *n) -{ - idl_error_header(EIDL_LOOKUP_ERROR, - idl_global->lineno(), - idl_global->filename()); - n->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report an attempt to inherit from an interface which was only -// declared forward but not yet defined -void -UTL_Error::inheritance_fwd_error(UTL_ScopedName *n, AST_Interface *f) -{ - idl_error_header(EIDL_INHERIT_FWD_ERROR, f->line(), f->file_name()); - cerr << "interface "; - n->dump(cerr); - cerr << GTDEVEL(" cannot inherit from forward declared interface "); - f->local_name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report an attempt to inherit from something other than an interface -void -UTL_Error::inheritance_error(UTL_ScopedName *n, AST_Decl *d) -{ - idl_error_header(EIDL_CANT_INHERIT, d->line(), d->file_name()); - cerr << " interface "; - n->dump(cerr); - cerr << GTDEVEL(" attempts to inherit from "); - d->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report an error while evaluating an expression -void -UTL_Error::eval_error(AST_Expression *v) -{ - idl_error_header(EIDL_EVAL_ERROR, v->line(), v->file_name()); - v->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a situation where a constant was expected but we -// got something else. This may occur in a union when a label -// evaluates to a non-constant -void -UTL_Error::constant_expected(UTL_ScopedName *n, AST_Decl *d) -{ - idl_error_header(EIDL_CONSTANT_EXPECTED, d->line(), d->file_name()); - n->dump(cerr); - cerr << GTDEVEL(" bound to "); - d->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a situation where an enumerator was expected but we -// got something else. This may occur in a union with an enum -// discriminator where a label did not evaluate to a constant -// enumerator -void -UTL_Error::enum_val_expected(AST_Union *u, AST_UnionLabel *l) -{ - idl_error_header(EIDL_ENUM_VAL_EXPECTED, u->line(), u->file_name()); - cerr << " union " << u->local_name()->get_string() << ", "; - l->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a situation where an enumerator was received but we -// could not find it (by name) in an enum. This occurs when -// a union with an enum discriminator is being parsed, and a -// label evaluates to an enumerator which is not a member of -// the enum discriminator type -void -UTL_Error::enum_val_lookup_failure(AST_Union *u, - AST_Enum *e, - UTL_ScopedName *n) -{ - idl_error_header(EIDL_ENUM_VAL_NOT_FOUND, u->line(), u->file_name()); - cerr << " union " << u->local_name()->get_string() << ", "; - cerr << " enum " << e->local_name()->get_string() << ", "; - cerr << " enumerator "; - n->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report two or more spellings for an identifier -void -UTL_Error::name_case_error(char *b, char *n) -{ - idl_error_header(EIDL_NAME_CASE_ERROR, - idl_global->lineno(), - idl_global->filename()); - cerr << "\"" << b << GTDEVEL("\" and ") << "\"" << n << "\"\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report an ambiguous definition of a name -void -UTL_Error::ambiguous(UTL_Scope *s, AST_Decl *l, AST_Decl *d) -{ - idl_error_header(EIDL_AMBIGUOUS, d->line(), d->file_name()); - cerr << GTDEVEL(" scope: ") - << (ScopeAsDecl(s))->local_name()->get_string() - << ", "; - cerr << GTDEVEL(" collision: "); - d->name()->dump(cerr); - cerr << " vs. "; - l->name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a forward declared interface which was never defined -void -UTL_Error::fwd_decl_not_defined(AST_Interface *d) -{ - idl_error_header(EIDL_DECL_NOT_DEFINED, d->line(), d->file_name()); - cerr << "interface "; - d->local_name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report lookup in undefined forward declared but undefined interface -void -UTL_Error::fwd_decl_lookup(AST_Interface *d, UTL_ScopedName *n) -{ - idl_error_header(EIDL_FWD_DECL_LOOKUP, - idl_global->lineno(), - idl_global->filename()); - cerr << GTDEVEL("trying to look up "); - n->dump(cerr); - cerr << GTDEVEL(" in undefined forward declared interface "); - d->local_name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a redefinition inside its own scope -void -UTL_Error::redefinition_in_scope(AST_Decl *d, AST_Decl *s) -{ - idl_error_header(EIDL_REDEF_SCOPE, d->line(), d->file_name()); - d->name()->dump(cerr); - cerr << ", "; - s->name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report not a type error -void -UTL_Error::not_a_type(AST_Decl *d) -{ - idl_error_header(EIDL_NOT_A_TYPE, - idl_global->lineno(), - idl_global->filename()); - if (d == NULL || d->name() == NULL) - cerr << GTDEVEL("unknown symbol"); - else - d->name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -void -UTL_Error::back_end(long lineno, String *s) -{ - idl_error_header(EIDL_BACK_END, lineno, s); - idl_global->set_err_count(idl_global->err_count() + 1); -} diff --git a/TAO/TAO_IDL/util/utl_exceptlist.cpp b/TAO/TAO_IDL/util/utl_exceptlist.cpp deleted file mode 100644 index 9d55984cfb9..00000000000 --- a/TAO/TAO_IDL/util/utl_exceptlist.cpp +++ /dev/null @@ -1,145 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_exceptlist.cc -// -// Implementation of a list of exceptions - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) - */ - -UTL_ExceptList::UTL_ExceptList(AST_Exception *s, UTL_ExceptList *cdr) - : UTL_List(cdr), - pd_car_data(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get list item -AST_Exception * -UTL_ExceptList::head() -{ - return pd_car_data; -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_ExceptList active iterator - -/* - * Constructor - */ - -UTL_ExceptlistActiveIterator::UTL_ExceptlistActiveIterator(UTL_ExceptList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get current item -AST_Exception * -UTL_ExceptlistActiveIterator::item() -{ - if (source == NULL) - return NULL; - return ((UTL_ExceptList *) source)->head(); -} - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_exprlist.cpp b/TAO/TAO_IDL/util/utl_exprlist.cpp deleted file mode 100644 index aa65055ac0a..00000000000 --- a/TAO/TAO_IDL/util/utl_exprlist.cpp +++ /dev/null @@ -1,145 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_exprlist.cc -// -// Implementation of a list of strings - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) - */ - -UTL_ExprList::UTL_ExprList(AST_Expression *s, UTL_ExprList *cdr) - : UTL_List(cdr), - pd_car_data(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get list item -AST_Expression * -UTL_ExprList::head() -{ - return pd_car_data; -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_ExprList active iterator - -/* - * Constructor - */ - -UTL_ExprlistActiveIterator::UTL_ExprlistActiveIterator(UTL_ExprList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get current item -AST_Expression * -UTL_ExprlistActiveIterator::item() -{ - if (source == NULL) - return NULL; - return ((UTL_ExprList *) source)->head(); -} - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_global.cpp b/TAO/TAO_IDL/util/utl_global.cpp deleted file mode 100644 index 7e92d40eea8..00000000000 --- a/TAO/TAO_IDL/util/utl_global.cpp +++ /dev/null @@ -1,654 +0,0 @@ -// -// $Id$ -// -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_global.cc - Implementation of class IDL_GlobalData -// - -#include "idl.h" -#include "idl_extern.h" - -// Define an increment for the size of the array used to store names of -// included files -#undef INCREMENT -#define INCREMENT 64 - -IDL_GlobalData::IDL_GlobalData() - : pd_scopes(NULL), - pd_root(NULL), - pd_gen(NULL), - pd_err(NULL), - pd_err_count(0), - pd_lineno(0), - pd_filename(NULL), - pd_main_filename(NULL), - pd_real_filename(NULL), - pd_in_main_file(I_FALSE), - pd_prog_name(NULL), - pd_cpp_location(NULL), - pd_compile_flags(0), - pd_be(NULL), - pd_local_escapes(NULL), - pd_indent(NULL), - pd_pragmas(NULL), - pd_read_from_stdin(I_FALSE), - pd_include_file_names(NULL), - pd_n_include_file_names(0), - pd_n_alloced_file_names(0), - pd_parse_state(PS_NoState), - pd_idl_src_file (0), - export_macro_ (0), - export_include_ (0) -{ - // empty -} - -// Get or set scopes stack -UTL_ScopeStack * -IDL_GlobalData::scopes() -{ - return pd_scopes; -} -void -IDL_GlobalData::set_scopes(UTL_ScopeStack *s) -{ - pd_scopes = s; -} - -// Get or set root of AST -AST_Root * -IDL_GlobalData::root() -{ - return pd_root; -} -void -IDL_GlobalData::set_root(AST_Root *r) -{ - pd_root = r; -} - -// Get or set generator object -AST_Generator * -IDL_GlobalData::gen() -{ - return pd_gen; -} -void -IDL_GlobalData::set_gen(AST_Generator *g) -{ - pd_gen = g; -} - -// Get or set error object -UTL_Error * -IDL_GlobalData::err() -{ - return pd_err; -} -void -IDL_GlobalData::set_err(UTL_Error *e) -{ - pd_err = e; -} - -// Get or set error count -long -IDL_GlobalData::err_count() -{ - return pd_err_count; -} -void -IDL_GlobalData::set_err_count(long c) -{ - pd_err_count = c; -} - -// Get or set line number -long -IDL_GlobalData::lineno() -{ - return pd_lineno; -} -void -IDL_GlobalData::set_lineno(long n) -{ - pd_lineno = n; -} - -// Get or set file name being read now -String * -IDL_GlobalData::filename() -{ - return pd_filename; -} -void -IDL_GlobalData::set_filename(String *f) -{ - pd_filename = f; -} - -// Get or set main file name -String * -IDL_GlobalData::main_filename() -{ - return pd_main_filename; -} -void -IDL_GlobalData::set_main_filename(String *n) -{ - pd_main_filename = n; -} - -// Get or set real file name -String * -IDL_GlobalData::real_filename() -{ - return pd_real_filename; -} -void -IDL_GlobalData::set_real_filename(String *n) -{ - pd_real_filename = n; -} - -// Get or set indicator whether import is on -idl_bool -IDL_GlobalData::imported() -{ - return pd_in_main_file ? I_FALSE : pd_import; -} -idl_bool -IDL_GlobalData::import() -{ - return pd_import; -} -void -IDL_GlobalData::set_import(idl_bool is_in) -{ - pd_import = is_in; -} - -// Get or set indicator whether we're reading the main file now -idl_bool -IDL_GlobalData::in_main_file() -{ - return pd_in_main_file; -} -void -IDL_GlobalData::set_in_main_file(idl_bool is_in) -{ - pd_in_main_file = is_in; -} - -// Get or set stripped file name -String * -IDL_GlobalData::stripped_filename() -{ - return pd_stripped_filename; -} -void -IDL_GlobalData::set_stripped_filename(String *nm) -{ - pd_stripped_filename = nm; -} - -// Get or set cache value for argv[0] -char * -IDL_GlobalData::prog_name() -{ - return pd_prog_name; -} -void -IDL_GlobalData::set_prog_name(char *pn) -{ - pd_prog_name = pn; -} - -// Get or set location to find C preprocessor -char * -IDL_GlobalData::cpp_location() -{ - return pd_cpp_location; -} -void -IDL_GlobalData::set_cpp_location(char *l) -{ - pd_cpp_location = l; -} - -// Get or set IDL compiler flags -long -IDL_GlobalData::compile_flags() -{ - return pd_compile_flags; -} -void -IDL_GlobalData::set_compile_flags(long cf) -{ - pd_compile_flags = cf; -} - -// Get or set BE to be used -char * -IDL_GlobalData::be() -{ - return pd_be; -} -void -IDL_GlobalData::set_be(char *nbe) -{ - pd_be = nbe; -} - -// Get or set local escapes string. This provides additional mechanism -// to pass information to a BE. -char * -IDL_GlobalData::local_escapes() -{ - return pd_local_escapes; -} -void -IDL_GlobalData::set_local_escapes(char *e) -{ - pd_local_escapes = e; -} - -// Get or set indent object -UTL_Indenter * -IDL_GlobalData::indent() -{ - return pd_indent; -} -void -IDL_GlobalData::set_indent(UTL_Indenter *i) -{ - pd_indent = i; -} - -// Get or set list of pragmas being parsed -UTL_StrList * -IDL_GlobalData::pragmas() -{ - UTL_StrList *p = pd_pragmas; - - pd_pragmas = NULL; - return p; -} -void -IDL_GlobalData::set_pragmas(UTL_StrList *p) -{ - pd_pragmas = p; -} - -// Get or set indicator whether we're reading from stdin -idl_bool -IDL_GlobalData::read_from_stdin() -{ - return pd_read_from_stdin; -} -void -IDL_GlobalData::set_read_from_stdin(idl_bool r) -{ - pd_read_from_stdin = r; -} - -// Have we seen this include file name before? -long -IDL_GlobalData::seen_include_file_before(String *n) -{ - unsigned long i; - - for (i = 0; i < pd_n_include_file_names; i++) - if (n->compare(pd_include_file_names[i])) - return I_TRUE; - return I_FALSE; -} - -// Store a name of an #include file -void -IDL_GlobalData::store_include_file_name(String *n) -{ - String **o_include_file_names; - unsigned long o_n_alloced_file_names, - i; - - /* - * Check if we need to store it at all or whether we've seen it already - */ - if (seen_include_file_before(n)) - return; - /* - * OK, need to store. Make sure there's space for one more string - */ - if (pd_n_include_file_names == pd_n_alloced_file_names) { - if (pd_n_alloced_file_names == 0) { - pd_n_alloced_file_names = INCREMENT; - pd_include_file_names = new String *[pd_n_alloced_file_names]; - } else { - o_include_file_names = pd_include_file_names; - o_n_alloced_file_names = pd_n_alloced_file_names; - pd_n_alloced_file_names += INCREMENT; - pd_include_file_names = new String *[pd_n_alloced_file_names]; - for (i = 0; i < o_n_alloced_file_names; i++) - pd_include_file_names[i] = o_include_file_names[i]; - delete [] o_include_file_names; - } - } - /* - * Store it - */ - pd_include_file_names[pd_n_include_file_names++] = n; -} - -void -IDL_GlobalData::set_include_file_names(String **ns) -{ - pd_include_file_names = ns; -} - -String ** -IDL_GlobalData::include_file_names() -{ - return pd_include_file_names; -} - -void -IDL_GlobalData::set_n_include_file_names(unsigned long n) -{ - pd_n_include_file_names = n; -} - -unsigned long -IDL_GlobalData::n_include_file_names() -{ - return pd_n_include_file_names; -} - -void -IDL_GlobalData::set_parse_state(ParseState ps) -{ - pd_parse_state = ps; -} - -IDL_GlobalData::ParseState -IDL_GlobalData::parse_state() -{ - return pd_parse_state; -} - -/* - * Convert a PredefinedType to an ExprType - */ -AST_Expression::ExprType -IDL_GlobalData::PredefinedTypeToExprType(AST_PredefinedType::PredefinedType pt) -{ - switch (pt) { - case AST_PredefinedType::PT_long: - return AST_Expression::EV_long; - case AST_PredefinedType::PT_ulong: - return AST_Expression::EV_ulong; - case AST_PredefinedType::PT_short: - return AST_Expression::EV_short; - case AST_PredefinedType::PT_ushort: - return AST_Expression::EV_ushort; - case AST_PredefinedType::PT_float: - return AST_Expression::EV_float; - case AST_PredefinedType::PT_double: - return AST_Expression::EV_double; - case AST_PredefinedType::PT_char: - return AST_Expression::EV_char; - case AST_PredefinedType::PT_octet: - return AST_Expression::EV_octet; - case AST_PredefinedType::PT_boolean: - return AST_Expression::EV_bool; - default: - return AST_Expression::EV_any; - } -} - -// returns the IDL source file being copiled -String* IDL_GlobalData::idl_src_file() -{ - return this->pd_idl_src_file; -} - -// set the source IDL file that is being parsed -void IDL_GlobalData::idl_src_file(String *s) -{ - this->pd_idl_src_file = s; -} - -/************ Helper functions **************/ -static const char* -be_change_idl_file_extension (String* idl_file, - const char *new_extension) -{ - // @@ This shouldn't happen anyway; but a better error handling - // mechanism is needed. - if (idl_file == 0 || new_extension == 0) - { - return 0; - } - - static char fname[MAXPATHLEN]; - ACE_OS::memset (fname, 0, MAXPATHLEN); - - const char* string = idl_file->get_string (); - - // get the base part of the filename - const char *base = ACE_OS::strstr (string, ".idl"); - - if (base == 0) - return 0; - - ACE_OS::strncpy (fname, string, base - string); - // Turn '\' and '\\' into '/'. - char* i = fname; - for (char* j = fname; *j != 0; ++i, ++j) - { - if (*j == '\\') - { - *i = '/'; - if (*(j+1) == '\\') - ++j; - } - else - *i = *j; - } - *i = 0; - ACE_OS::strcat (fname, new_extension); - return fname; -} - -const char * -IDL_GlobalData::be_get_client_hdr (String *idl_file_name) -{ - return be_change_idl_file_extension (idl_file_name, "C.h"); -} - -const char * -IDL_GlobalData::be_get_client_stub (String *idl_file_name) -{ - return be_change_idl_file_extension (idl_file_name, "C.cpp"); -} - -const char * -IDL_GlobalData::be_get_client_inline (String *idl_file_name) -{ - return be_change_idl_file_extension (idl_file_name, "C.i"); -} - -const char * -IDL_GlobalData::be_get_server_hdr (String *idl_file_name) -{ - return be_change_idl_file_extension (idl_file_name, "S.h"); -} - -const char * -IDL_GlobalData::be_get_server_template_hdr (String *idl_file_name) -{ - return be_change_idl_file_extension (idl_file_name, "S_T.h"); -} - -const char * -IDL_GlobalData::be_get_server_skeleton (String *idl_file_name) -{ - return be_change_idl_file_extension (idl_file_name, "S.cpp"); -} - -const char * -IDL_GlobalData::be_get_server_template_skeleton (String *idl_file_name) -{ - return be_change_idl_file_extension (idl_file_name, "S_T.cpp"); -} - -const char * -IDL_GlobalData::be_get_server_inline (String *idl_file_name) -{ - return be_change_idl_file_extension (idl_file_name, "S.i"); -} - -const char * -IDL_GlobalData::be_get_server_template_inline (String *idl_file_name) -{ - return be_change_idl_file_extension (idl_file_name, "S_T.i"); -} - -const char * -IDL_GlobalData::be_get_client_hdr_fname () -{ - return be_get_client_hdr (idl_global->idl_src_file ()); -} - -const char * -IDL_GlobalData::be_get_client_stub_fname () -{ - return be_get_client_stub (idl_global->idl_src_file ()); -} - -const char * -IDL_GlobalData::be_get_client_inline_fname () -{ - return be_get_client_inline (idl_global->idl_src_file ()); -} - -const char * -IDL_GlobalData::be_get_server_hdr_fname () -{ - return be_get_server_hdr (idl_global->idl_src_file ()); -} - -const char * -IDL_GlobalData::be_get_server_template_hdr_fname () -{ - return be_get_server_template_hdr (idl_global->idl_src_file ()); -} - -const char * -IDL_GlobalData::be_get_server_skeleton_fname () -{ - return be_get_server_skeleton (idl_global->idl_src_file ()); -} - -const char * -IDL_GlobalData::be_get_server_template_skeleton_fname () -{ - return be_get_server_template_skeleton (idl_global->idl_src_file ()); -} - -const char * -IDL_GlobalData::be_get_server_inline_fname () -{ - return be_get_server_inline (idl_global->idl_src_file ()); -} - -const char * -IDL_GlobalData::be_get_server_template_inline_fname () -{ - return be_get_server_template_inline (idl_global->idl_src_file ()); -} - -const char* IDL_GlobalData::export_macro (void) const -{ - if (this->export_macro_ == 0) - return ""; - return this->export_macro_; -} - -void IDL_GlobalData::export_macro (const char *s) -{ - this->export_macro_ = ACE_OS::strdup (s); -} - -const char* IDL_GlobalData::export_include (void) const -{ - return this->export_include_; -} - -void IDL_GlobalData::export_include (const char *s) -{ - this->export_include_ = ACE_OS::strdup (s); -} diff --git a/TAO/TAO_IDL/util/utl_identifier.cpp b/TAO/TAO_IDL/util/utl_identifier.cpp deleted file mode 100644 index e24b385e7f9..00000000000 --- a/TAO/TAO_IDL/util/utl_identifier.cpp +++ /dev/null @@ -1,122 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_identifier - Implementation of identifiers - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructors - */ - -Identifier::Identifier () - : pv_string (NULL) -{ -} - -Identifier::Identifier (char *s, long, long, long) - : pv_string (ACE_OS::strdup (s)) -{ -} - -Identifier::~Identifier () -{ - if (this->pv_string != 0) - { - // The string was allocated using strdup, which uses malloc. - ACE_OS::free (this->pv_string); - } -} - -// Operations - -char * -Identifier::get_string () -{ - return pv_string; -} - -// Compare two Identifier * -long -Identifier::compare (Identifier *o) -{ - if (o == NULL) return I_FALSE; - if (pv_string == NULL || o->get_string() == NULL) - return I_FALSE; - return (ACE_OS::strcmp (pv_string, o->get_string ()) == 0) ? I_TRUE : I_FALSE; -} - -// Dumping - -void -Identifier::dump (ostream &o) -{ - if (pv_string == NULL) return; - - o << get_string(); -} - diff --git a/TAO/TAO_IDL/util/utl_idlist.cpp b/TAO/TAO_IDL/util/utl_idlist.cpp deleted file mode 100644 index 6c06ab18903..00000000000 --- a/TAO/TAO_IDL/util/utl_idlist.cpp +++ /dev/null @@ -1,189 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_idlist.cc -// -// Implementation of a list of utl_string nodes - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) - */ - -UTL_IdList::UTL_IdList (Identifier *s, UTL_IdList *cdr) - : UTL_List ((UTL_List *) cdr), - pd_car_data (s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Copy a list -UTL_List * -UTL_IdList::copy () -{ - if (tail () == NULL) - return (UTL_List *) new UTL_IdList (head (), NULL); - return (UTL_List *) new UTL_IdList (head (), (UTL_IdList *) tail ()->copy ()); -} - -// Get list item -Identifier * -UTL_IdList::head () -{ - return pd_car_data; -} - -// Get last item of this list -Identifier * -UTL_IdList::last_component () -{ - if (tail()== NULL) - return head (); - return ((UTL_IdList *) tail ())->last_component (); -} - -// AST Dumping -void -UTL_IdList::dump (ostream &o) -{ - UTL_IdListActiveIterator *i = new UTL_IdListActiveIterator (this); - long first = I_TRUE; - long second = I_FALSE; - - while (!(i->is_done ())) - { - if (!first) - o << "::"; - else if (second) - first = second = I_FALSE; - i->item ()->dump (o); - if (first) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "::") != 0) - first = I_FALSE; - else - second = I_TRUE; - } - i->next (); - } -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_IdList active iterator - -/* - * Constructor - */ - -UTL_IdListActiveIterator::UTL_IdListActiveIterator (UTL_IdList *s) - : UTL_ListActiveIterator (s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get current item -Identifier * -UTL_IdListActiveIterator::item () -{ - if (source == NULL) - return NULL; - return ((UTL_IdList *) source)->head (); -} - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_indenter.cpp b/TAO/TAO_IDL/util/utl_indenter.cpp deleted file mode 100644 index 4d43b0ebef5..00000000000 --- a/TAO/TAO_IDL/util/utl_indenter.cpp +++ /dev/null @@ -1,133 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_indenter.cc - Implementation of indenter for dumping IDL AST -// - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructors - */ -UTL_Indenter::UTL_Indenter () - : pd_indent_level (0) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Reset indentation level -void -UTL_Indenter::reset () -{ - pd_indent_level = 0; -} - -// Increase indentation level -void -UTL_Indenter::increase () -{ - pd_indent_level++; -} - -// Decrease indentation level -void -UTL_Indenter::decrease () -{ - if (pd_indent_level > 0) - pd_indent_level--; -} - -// Produce white space to indent to current indentation level on ostream o -void -UTL_Indenter::skip_to (ostream &o) -{ - long i; - - for (i = 0; i < pd_indent_level; i++) - o << " "; -} - -// Produce white space to indent to current indentation level on ostream o -void -UTL_Indenter::skip_to (FILE *fp) -{ - long i; - - for (i = 0; i < pd_indent_level; i++) - ACE_OS::fprintf (fp, " "); -} - -/* - * Redefined virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_labellist.cpp b/TAO/TAO_IDL/util/utl_labellist.cpp deleted file mode 100644 index 43bc82a89cb..00000000000 --- a/TAO/TAO_IDL/util/utl_labellist.cpp +++ /dev/null @@ -1,145 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_labellist.cc -// -// Implementation of a list of scoped names - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) - */ - -UTL_LabelList::UTL_LabelList(AST_UnionLabel *s, UTL_LabelList *cdr) - : UTL_List(cdr), - pd_car_data(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get list item -AST_UnionLabel * -UTL_LabelList::head() -{ - return pd_car_data; -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_LabelList active iterator - -/* - * Constructor - */ - -UTL_LabellistActiveIterator::UTL_LabellistActiveIterator(UTL_LabelList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get current item -AST_UnionLabel * -UTL_LabellistActiveIterator::item() -{ - if (source == NULL) - return NULL; - return ((UTL_LabelList *) source)->head(); -} - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_list.cpp b/TAO/TAO_IDL/util/utl_list.cpp deleted file mode 100644 index ab291d32777..00000000000 --- a/TAO/TAO_IDL/util/utl_list.cpp +++ /dev/null @@ -1,197 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_list.cc -// -// Implementation of generic single-linked lists - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) - */ - -UTL_List::UTL_List(UTL_List *c) - : pd_cdr_data(c) -{ -} - -/* - * Private operations - */ - -// Compute list length -long -UTL_List::list_length(long n) -{ - if (pd_cdr_data == NULL) - return n; - else - return pd_cdr_data->list_length(n+1); -} - -/* - * Public operations - */ - -// Smash last cdr with l -void -UTL_List::nconc(UTL_List *l) -{ - if (pd_cdr_data == NULL) - pd_cdr_data = l; - else - pd_cdr_data->nconc(l); -} - -/* - * Override this operation to copy lists of other types - */ -// Copy a list -UTL_List * -UTL_List::copy() -{ - if (pd_cdr_data == NULL) - return new UTL_List(NULL); - return new UTL_List(pd_cdr_data->copy()); -} - -// Get next list -UTL_List * -UTL_List::tail() -{ - return pd_cdr_data; -} - -// Set next list -void -UTL_List::set_tail(UTL_List *l) -{ - pd_cdr_data = l; -} - -// Compute list length -long -UTL_List::length() -{ - return list_length(1); -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_List active iterator - -/* - * Constructor - */ - -UTL_ListActiveIterator::UTL_ListActiveIterator(UTL_List *s) - : source(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Is iterator done? -long -UTL_ListActiveIterator::is_done() -{ - return (source == NULL) ? I_TRUE : I_FALSE; -} - -// Advance to next item -void -UTL_ListActiveIterator::next() -{ - if (source != NULL) - source = source->tail(); -} - -/* - * Redefinition of inherited operations - */ - diff --git a/TAO/TAO_IDL/util/utl_namelist.cpp b/TAO/TAO_IDL/util/utl_namelist.cpp deleted file mode 100644 index 63bc96cdc4d..00000000000 --- a/TAO/TAO_IDL/util/utl_namelist.cpp +++ /dev/null @@ -1,145 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_namelist.cc -// -// Implementation of a list of scoped names - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) - */ - -UTL_NameList::UTL_NameList(UTL_ScopedName *s, UTL_NameList *cdr) - : UTL_List(cdr), - pd_car_data(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get list item -UTL_ScopedName * -UTL_NameList::head() -{ - return pd_car_data; -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_NameList active iterator - -/* - * Constructor - */ - -UTL_NamelistActiveIterator::UTL_NamelistActiveIterator(UTL_NameList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get current item -UTL_ScopedName * -UTL_NamelistActiveIterator::item() -{ - if (source == NULL) - return NULL; - return ((UTL_NameList *) source)->head(); -} - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_scope.cpp b/TAO/TAO_IDL/util/utl_scope.cpp deleted file mode 100644 index 720dfda342a..00000000000 --- a/TAO/TAO_IDL/util/utl_scope.cpp +++ /dev/null @@ -1,1206 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * utl_scope.cc - Implementation of class UTL_Scope - */ - -#include "idl.h" -#include "idl_extern.h" - -#undef INCREMENT -#define INCREMENT 64 - -/* - * Static functions - */ -static Identifier *_global_scope_name = NULL; -static Identifier *_global_scope_root_name = NULL; - -/* - * Determines if a name is global - */ -static long -is_global_name(Identifier *i) -{ - long comp_result = 0; - char *s; - - if (i == NULL) return comp_result; - s = i->get_string(); - - if (_global_scope_name == NULL) - _global_scope_name = new Identifier("::", 1, 0, I_FALSE); - - if (_global_scope_root_name == NULL) - _global_scope_root_name = new Identifier("", 1, 0, I_FALSE); - - comp_result = i->compare(_global_scope_name); - if (!comp_result) - comp_result = i->compare(_global_scope_root_name); - - return comp_result; -} - -/* - * Helper function for lookup_by_name. Iterates doing local lookups of - * subsequent components of a scoped name - */ -static AST_Decl * -iter_lookup_by_name_local(AST_Decl *d, UTL_ScopedName *e, - idl_bool treat_as_ref) -{ - Identifier *s; - AST_Typedef *td; - UTL_IdListActiveIterator *i; - UTL_Scope *sc; - - i = new UTL_IdListActiveIterator(e); - for (i->next(); !(i->is_done()); ) { - s = i->item(); - /* - * Update iterator before loop. This is needed for the check for - * typedef, since we only want to look at the base type if there - * actually are more components of the name to resolve. - */ - i->next(); - /* - * Next component in name was not found - */ - if (d == NULL) { - return NULL; - } - /* - * If this is a typedef and we're not done, we should get the - * base type to get the scope it defines (if any) - */ - if (!(i->is_done())) { - while (d != NULL && d->node_type() == AST_Decl::NT_typedef) { - td = AST_Typedef::narrow_from_decl(d); - if (td == NULL) - return NULL; - d = td->base_type(); - } - if (d == NULL) - return NULL; - } - /* - * Try to convert the AST_Decl to a UTL_Scope - */ - sc = DeclAsScope(d); - if (sc == NULL) - return NULL; - /* - * Look up the next element - */ - d = sc->lookup_by_name_local(s, treat_as_ref); - } - /* - * OK, done with the loop - */ - return d; -} - -/* - * Constructor(s) - */ -UTL_Scope::UTL_Scope() - : pd_scope_node_type(AST_Decl::NT_module), - pd_decls(NULL), - pd_decls_allocated(0), - pd_decls_used(0), - pd_local_types(NULL), - pd_locals_allocated(0), - pd_locals_used(0), - pd_referenced(NULL), - pd_referenced_allocated(0), - pd_referenced_used(0) -{ -} - -UTL_Scope::UTL_Scope(AST_Decl::NodeType nt) - : pd_scope_node_type(nt), - pd_decls(NULL), - pd_decls_allocated(0), - pd_decls_used(0), - pd_local_types(NULL), - pd_locals_allocated(0), - pd_locals_used(0), - pd_referenced(NULL), - pd_referenced_allocated(0), - pd_referenced_used(0) -{ -}; - -/* - * Private operations - */ - -static -AST_Decl * add_type(AST_Type *type) -{ - AST_Decl * result = 0; - UTL_Scope * scope = 0; - switch (type->node_type()) { - case AST_Decl::NT_array: - result = - idl_global->root()->add_array(AST_Array::narrow_from_decl(type)); - break; - case AST_Decl::NT_enum: - result = type->defined_in()->add_enum(AST_Enum::narrow_from_decl(type)); - scope = AST_Enum::narrow_from_decl(type); - break; - case AST_Decl::NT_sequence: - result = - idl_global->root()->add_sequence(AST_Sequence::narrow_from_decl(type)); - break; - case AST_Decl::NT_string: - result = - idl_global->root()->add_string(AST_String::narrow_from_decl(type)); - break; - case AST_Decl::NT_struct: - result = - type->defined_in()-> - add_structure(AST_Structure::narrow_from_decl(type)); - scope = AST_Structure::narrow_from_decl(type); - break; - case AST_Decl::NT_union: - result = - type->defined_in()->add_union(AST_Union::narrow_from_decl(type)); - scope = AST_Union::narrow_from_decl(type); - break; - default: - // for non-complex types, like predefined types - // no additional add needed, assume everything is ok - result = (AST_Decl *) 1; - break; - } - if (scope) - result = scope->call_add(); - return result; -} - -/* - * Protected operations - */ - -/* - * Special version of lookup which only looks at the local name instead of - * the fully scoped name, when doing lookups. This version is intended to - * be used only by the CFE add_xxx functions - */ -AST_Decl * -UTL_Scope::lookup_for_add(AST_Decl *d, idl_bool treat_as_ref) -{ - if (d == NULL) - return NULL; - return lookup_by_name_local(d->local_name(), treat_as_ref); -} - -/* - * Public operations - */ - -// Narrowing -IMPL_NARROW_METHODS0(UTL_Scope) -IMPL_NARROW_FROM_SCOPE(UTL_Scope) - -// Scope Management Protocol -// -// All members of the protocol defined in UTL_Scope simply return the node -// and don't do a thing. These members are simply dummies to retain -// compatibility with pre-two-pass compiler back-ends. - -AST_PredefinedType *UTL_Scope::add_predefined_type(AST_PredefinedType *p) -{ - if (p == NULL) return NULL; - p->set_added(I_TRUE); - return p; -} - -AST_Module *UTL_Scope::add_module(AST_Module *m) -{ - if (m == NULL) return NULL; - m->set_added(I_TRUE); - return m; -} - -AST_Interface *UTL_Scope::add_interface(AST_Interface *i) -{ - if (i == NULL) return NULL; - i->set_added(I_TRUE); - return i; -} - -AST_InterfaceFwd *UTL_Scope::add_interface_fwd(AST_InterfaceFwd *i) -{ - if (i == NULL) return NULL; - i->set_added(I_TRUE); - return i; -} - -AST_Exception *UTL_Scope::add_exception(AST_Exception *e) -{ - if (e == NULL) return NULL; - e->set_added(I_TRUE); - return e; -} - -AST_Constant *UTL_Scope::add_constant(AST_Constant *c) -{ - if (c == NULL) return NULL; - c->set_added(I_TRUE); - return c; -} - -UTL_StrList *UTL_Scope::add_context(UTL_StrList *c) -{ - return c; -} - -UTL_NameList *UTL_Scope::add_exceptions(UTL_NameList *e) -{ - return e; -} - -AST_Attribute *UTL_Scope::add_attribute(AST_Attribute *a) -{ - if (a == NULL) return NULL; - a->set_added(I_TRUE); - if (!a->field_type()->added()) { - return add_type(a->field_type()) ? a : 0 ; - } else - return a; -} - -AST_Operation *UTL_Scope::add_operation(AST_Operation *o) -{ - if (o == NULL) return NULL; - o->set_added(I_TRUE); - if (!o->return_type()->added()) { - return add_type(o->return_type()) ? o : 0 ; - } else - return o; -} - -AST_Argument *UTL_Scope::add_argument(AST_Argument *a) -{ - if (a == NULL) return NULL; - a->set_added(I_TRUE); - if (!a->field_type()->added()) { - return add_type(a->field_type()) ? a : 0 ; - } else - return a; -} - -AST_Union *UTL_Scope::add_union(AST_Union *u) -{ - if (u == NULL) return NULL; - u->set_added(I_TRUE); - return u; -} - -AST_UnionBranch *UTL_Scope::add_union_branch(AST_UnionBranch *u) -{ - if (u == NULL) return NULL; - u->set_added(I_TRUE); - if (!u->field_type()->added()) { - return add_type(u->field_type()) ? u : 0 ; - } else - return u; -} - -AST_Structure *UTL_Scope::add_structure(AST_Structure *s) -{ - if (s == NULL) return NULL; - s->set_added(I_TRUE); - return s; -} - -AST_Field *UTL_Scope::add_field(AST_Field *f) -{ - if (f == NULL) return NULL; - f->set_added(I_TRUE); - if (!f->field_type()->added()) { - return add_type(f->field_type()) ? f : 0 ; - } else - return f; -} - -AST_Enum *UTL_Scope::add_enum(AST_Enum *e) -{ - if (e == NULL) return NULL; - e->set_added(I_TRUE); - return e; -} - -AST_EnumVal *UTL_Scope::add_enum_val(AST_EnumVal *e) -{ - if (e == NULL) return NULL; - e->set_added(I_TRUE); - return e; -} - -AST_Typedef *UTL_Scope::add_typedef(AST_Typedef *t) -{ - if (t == NULL) return NULL; - t->set_added(I_TRUE); - if (!t->base_type()->added()) { - return add_type(t->base_type()) ? t : 0 ; - } else - return t; -} - -AST_Sequence *UTL_Scope::add_sequence(AST_Sequence *s) -{ - if (s == NULL) return NULL; - s->set_added(I_TRUE); - if (!s->base_type()->added()) { - return add_type(s->base_type()) ? s : 0 ; - } else - return s; -} - -AST_String *UTL_Scope::add_string(AST_String *s) -{ - if (s == NULL) return NULL; - s->set_added(I_TRUE); - return s; -} - -AST_Array *UTL_Scope::add_array(AST_Array *a) -{ - if (a == NULL) return NULL; - a->set_added(I_TRUE); - if (!a->base_type()->added()) { - return add_type(a->base_type()) ? a : 0 ; - } else - return a; -} - -AST_Native *UTL_Scope::add_native (AST_Native *n) -{ - if (n == NULL) return NULL; - n->set_added (I_TRUE); - return n; -} - -// Protected Front End Scope Management Protocol -// -// All members of the protocol defined in UTL_Scope simply return NULL -// and don't do a thing. This ensures that runtime errors will discover -// operations which should have been redefined to allow certain kinds of -// AST nodes to appear in a given context - -AST_PredefinedType *UTL_Scope::fe_add_predefined_type(AST_PredefinedType *) -{ - return NULL; -} - -AST_Module *UTL_Scope::fe_add_module(AST_Module *) -{ - return NULL; -} - -AST_Interface *UTL_Scope::fe_add_interface(AST_Interface *) -{ - return NULL; -} - -AST_InterfaceFwd *UTL_Scope::fe_add_interface_fwd(AST_InterfaceFwd *) -{ - return NULL; -} - -AST_Exception *UTL_Scope::fe_add_exception(AST_Exception *) -{ - return NULL; -} - -AST_Constant *UTL_Scope::fe_add_constant(AST_Constant *) -{ - return NULL; -} - -UTL_StrList *UTL_Scope::fe_add_context(UTL_StrList *) -{ - return NULL; -} - -UTL_NameList *UTL_Scope::fe_add_exceptions(UTL_NameList *) -{ - return NULL; -} - -AST_Attribute *UTL_Scope::fe_add_attribute(AST_Attribute *) -{ - return NULL; -} - -AST_Operation *UTL_Scope::fe_add_operation(AST_Operation *) -{ - return NULL; -} - -AST_Argument *UTL_Scope::fe_add_argument(AST_Argument *) -{ - return NULL; -} - -AST_Union *UTL_Scope::fe_add_union(AST_Union *) -{ - return NULL; -} - -AST_UnionBranch *UTL_Scope::fe_add_union_branch(AST_UnionBranch *) -{ - return NULL; -} - -AST_Structure *UTL_Scope::fe_add_structure(AST_Structure *) -{ - return NULL; -} - -AST_Field *UTL_Scope::fe_add_field(AST_Field *) -{ - return NULL; -} - -AST_Enum *UTL_Scope::fe_add_enum(AST_Enum *) -{ - return NULL; -} - -AST_EnumVal *UTL_Scope::fe_add_enum_val(AST_EnumVal *) -{ - return NULL; -} - -AST_Typedef *UTL_Scope::fe_add_typedef(AST_Typedef *) -{ - return NULL; -} - -AST_Sequence *UTL_Scope::fe_add_sequence(AST_Sequence *) -{ - return NULL; -} - -AST_String *UTL_Scope::fe_add_string(AST_String *) -{ - return NULL; -} - -AST_Array *UTL_Scope::fe_add_array(AST_Array *) -{ - return NULL; -} - -AST_Native *UTL_Scope::fe_add_native (AST_Native *) -{ - return NULL; -} - -// This is the second pass of the front end -// It calls the public add protocol on everything in scope. -// It calls the add_xx functions of the most derived AST_Node. - -AST_Decl *UTL_Scope::call_add() -{ - AST_Decl *result = NULL; - AST_Decl *decl; - - UTL_ScopeActiveIterator *i; - UTL_Scope *scope; - - i = new UTL_ScopeActiveIterator(this, UTL_Scope::IK_decls); - while(!(i->is_done())) { - decl = i->item(); - scope = 0; - switch (decl->node_type()) { - case AST_Decl::NT_argument: - result = add_argument(AST_Argument::narrow_from_decl(decl)); - break; - case AST_Decl::NT_array: - result = add_array(AST_Array::narrow_from_decl(decl)); - break; - case AST_Decl::NT_attr: - result = add_attribute(AST_Attribute::narrow_from_decl(decl)); - break; - case AST_Decl::NT_const: - result = add_constant(AST_Constant::narrow_from_decl(decl)); - break; - case AST_Decl::NT_enum: - scope = AST_Enum::narrow_from_decl(decl); - result = add_enum(AST_Enum::narrow_from_decl(decl)); - break; - case AST_Decl::NT_enum_val: - result = add_enum_val(AST_EnumVal::narrow_from_decl(decl)); - break; - case AST_Decl::NT_except: - scope = AST_Exception::narrow_from_decl(decl); - result = add_exception(AST_Exception::narrow_from_decl(decl)); - break; - case AST_Decl::NT_field: - result = add_field(AST_Field::narrow_from_decl(decl)); - break; - case AST_Decl::NT_interface: - scope = AST_Interface::narrow_from_decl(decl); - result = add_interface(AST_Interface::narrow_from_decl(decl)); - break; - case AST_Decl::NT_interface_fwd: - result = add_interface_fwd(AST_InterfaceFwd::narrow_from_decl(decl)); - break; - case AST_Decl::NT_module: - scope = AST_Module::narrow_from_decl(decl); - result = add_module(AST_Module::narrow_from_decl(decl)); - break; - case AST_Decl::NT_native: - result = add_native (AST_Native::narrow_from_decl(decl)); - break; - case AST_Decl::NT_op: - result = add_operation(AST_Operation::narrow_from_decl(decl)); - scope = AST_Operation::narrow_from_decl(decl); - break; - case AST_Decl::NT_pre_defined: - result = - add_predefined_type(AST_PredefinedType::narrow_from_decl(decl)); - break; - case AST_Decl::NT_sequence: - result = add_sequence(AST_Sequence::narrow_from_decl(decl)); - break; - case AST_Decl::NT_string: - result = add_string(AST_String::narrow_from_decl(decl)); - break; - case AST_Decl::NT_struct: - result = add_structure(AST_Structure::narrow_from_decl(decl)); - scope = AST_Structure::narrow_from_decl(decl); - break; - case AST_Decl::NT_typedef: - result = add_typedef(AST_Typedef::narrow_from_decl(decl)); - break; - case AST_Decl::NT_union: - result = add_union(AST_Union::narrow_from_decl(decl)); - scope = AST_Union::narrow_from_decl(decl); - break; - case AST_Decl::NT_union_branch: - result = add_union_branch(AST_UnionBranch::narrow_from_decl(decl)); - break; - default: - return NULL; - } - if (scope) - scope->call_add(); - i->next(); - } - return result; -} - -// Private lookup mechanism - -/* - * Lookup the node for a primitive (built in) type - */ -AST_Decl * -UTL_Scope::lookup_primitive_type(AST_Expression::ExprType et) -{ - AST_Decl *as_decl; - UTL_Scope *ancestor; - AST_PredefinedType *t; - UTL_ScopeActiveIterator *i; - AST_PredefinedType::PredefinedType pdt; - - as_decl = ScopeAsDecl(this); - if (as_decl == NULL) - return NULL; - ancestor = as_decl->defined_in(); - if (ancestor != NULL) - return ancestor->lookup_primitive_type(et); - - switch (et) { - case AST_Expression::EV_short: - pdt = AST_PredefinedType::PT_short; - break; - case AST_Expression::EV_ushort: - pdt = AST_PredefinedType::PT_ushort; - break; - case AST_Expression::EV_long: - pdt = AST_PredefinedType::PT_long; - break; - case AST_Expression::EV_ulong: - pdt = AST_PredefinedType::PT_ulong; - break; - case AST_Expression::EV_longlong: - pdt = AST_PredefinedType::PT_longlong; - break; - case AST_Expression::EV_ulonglong: - pdt = AST_PredefinedType::PT_ulonglong; - break; - case AST_Expression::EV_float: - pdt = AST_PredefinedType::PT_float; - break; - case AST_Expression::EV_double: - pdt = AST_PredefinedType::PT_double; - break; - case AST_Expression::EV_longdouble: - pdt = AST_PredefinedType::PT_longdouble; - break; - case AST_Expression::EV_char: - pdt = AST_PredefinedType::PT_char; - break; - case AST_Expression::EV_wchar: - pdt = AST_PredefinedType::PT_wchar; - break; - case AST_Expression::EV_octet: - pdt = AST_PredefinedType::PT_octet; - break; - case AST_Expression::EV_bool: - pdt = AST_PredefinedType::PT_boolean; - break; - case AST_Expression::EV_any: - pdt = AST_PredefinedType::PT_any; - break; - case AST_Expression::EV_void: - pdt = AST_PredefinedType::PT_void; - break; - case AST_Expression::EV_string: - case AST_Expression::EV_wstring: - case AST_Expression::EV_none: - default: - return NULL; - } - i = new UTL_ScopeActiveIterator(this, UTL_Scope::IK_decls); - while (!(i->is_done())) { - as_decl = i->item(); - if (as_decl->node_type() == AST_Decl::NT_pre_defined) { - t = AST_PredefinedType::narrow_from_decl(as_decl); - if (t == NULL) { - i->next(); - continue; - } - if (t->pt() == pdt) { - delete i; - return t; - } - } - i->next(); - } - delete i; - return NULL; -} - -/* - * Look through inherited interfaces - */ -AST_Decl * -UTL_Scope::look_in_inherited(UTL_ScopedName *e, idl_bool treat_as_ref) -{ - AST_Decl *d = NULL; - AST_Interface *i = AST_Interface::narrow_from_scope(this); - AST_Interface **is; - long nis; - - /* - * This scope is not an interface.. - */ - if (i == NULL) - return NULL; - /* - * Can't look in an interface which was not yet defined - */ - if (!i->is_defined()) { - idl_global->err()->fwd_decl_lookup(i, e); - return NULL; - } - /* - * OK, loop through inherited interfaces. Stop when you find it - */ - for (nis = i->n_inherits(), is = i->inherits(); nis > 0; nis--, is++) { - d = (*is)->lookup_by_name(e, treat_as_ref); - if (d != NULL) - return d; - } - /* - * Not found - */ - return NULL; -} - -/* - * Look up a String * in local scope only - */ -AST_Decl * -UTL_Scope::lookup_by_name_local(Identifier *e, idl_bool) -{ - UTL_ScopeActiveIterator *i = new UTL_ScopeActiveIterator(this, - UTL_Scope::IK_both); - AST_Decl *d; - AST_InterfaceFwd *fwd; - - /* - * Iterate over this scope - */ - while (!(i->is_done())) { - d = i->item(); - if (d->local_name() != NULL && d->local_name()->compare(e)) { - delete i; - /* - * Special case for forward declared interfaces. Look through the - * forward declaration and retrieve the full definition - */ - if (d->node_type() == AST_Decl::NT_interface_fwd) { - fwd = AST_InterfaceFwd::narrow_from_decl(d); - if (fwd == NULL) - d = NULL; - else - d = fwd->full_definition(); - } - return d; - } - i->next(); - } - /* - * OK, not found, return NULL - */ - return NULL; -} - -/* - * Implements lookup by name for scoped names - */ -AST_Decl * -UTL_Scope::lookup_by_name(UTL_ScopedName *e, idl_bool treat_as_ref) -{ - AST_Decl *d; - UTL_Scope *t = NULL; - - /* - * Empty name? error - */ - if (e == NULL) { - return NULL; - } - /* - * If name starts with "::" or "" start look up in global scope - */ - if (is_global_name(e->head())) { - /* - * Get parent scope - */ - d = ScopeAsDecl(this); - if (d == NULL) - return NULL; - t = d->defined_in(); - /* - * If this is the global scope.. - */ - if (t == NULL) { - /* - * Look up tail of name starting here - */ - d = lookup_by_name((UTL_ScopedName *) e->tail(), treat_as_ref); - /* - * Now return whatever we have - */ - return d; - } - /* - * OK, not global scope yet, so simply iterate with parent scope - */ - d = t->lookup_by_name(e, treat_as_ref); - /* - * If treat_as_ref is true and d is not NULL, add d to - * set of nodes referenced here - */ - if (treat_as_ref && d != NULL) - add_to_referenced(d, I_FALSE); - /* - * Now return what we have - */ - return d; - } - /* - * The name does not start with "::" - * - * Is name defined here? - */ - d = lookup_by_name_local(e->head(), treat_as_ref); - if (d == NULL) { - /* - * OK, not found. Go down parent scope chain. - */ - d = ScopeAsDecl(this); - if (d != NULL) { - t = d->defined_in(); - if (t == NULL) - d = NULL; - else - d = t->lookup_by_name(e, treat_as_ref); - } - /* - * Special case for scope which is an interface. We have to look - * in the inherited interfaces as well.. - */ - if (d == NULL) { - if (pd_scope_node_type == AST_Decl::NT_interface) - d = look_in_inherited(e, treat_as_ref); - } - /* - * If treat_as_ref is true and d is not NULL, add d to - * set of nodes referenced here - */ - if (treat_as_ref && d != NULL) - add_to_referenced(d, I_FALSE); - /* - * OK, now return whatever we found - */ - return d; - } - /* - * OK, start of name is defined. Now loop doing local lookups - * of subsequent elements of the name - */ - d = iter_lookup_by_name_local(d, e, treat_as_ref); - /* - * If treat_as_ref is true and d is not NULL, add d to set - * of nodes referenced here. - */ - if (treat_as_ref && d != NULL) - add_to_referenced(d, I_FALSE); - /* - * All OK, name fully resolved - */ - return d; -} - -// Add a node to set of nodes referenced in this scope -void -UTL_Scope::add_to_referenced(AST_Decl *e, idl_bool recursive) -{ - UTL_Scope *s; - AST_Decl **tmp; - AST_Interface *itf; - long oreferenced_allocated; - long i; - - if (e == NULL) return; - - // Special case for forward declared interfaces in the - // scope in which they're defined. Cannot add before full - // definition is seen - if (e->node_type() == AST_Decl::NT_interface) { - itf = AST_Interface::narrow_from_decl(e); - if (itf != NULL && itf->defined_in() == this && !itf->is_defined()) - return; - } - // Only insert if it is not there already - if (referenced(e)) - return; - - // Make sure there's space for one more - if (pd_referenced_allocated == pd_referenced_used) { - - oreferenced_allocated = pd_referenced_allocated; - pd_referenced_allocated += INCREMENT; - tmp = new AST_Decl *[pd_referenced_allocated]; - - for (i = 0; i < oreferenced_allocated; i++) - tmp[i] = pd_referenced[i]; - - delete []pd_referenced; - - pd_referenced = tmp; - } - - // Insert new reference - pd_referenced[pd_referenced_used++] = e; - - // Now, if recursive is specified and "this" is not a common ancestor - // of the referencing scope and the scope of definition of "e" then - // add "e" to the set of referenced nodes in the parent of "this" - if (recursive && !(e->has_ancestor(ScopeAsDecl(this)))) { - s = e->defined_in(); - if (s != NULL) - s->add_to_referenced(e, recursive); - } -} - -// Add a node to set of nodes declared in this scope -void -UTL_Scope::add_to_scope(AST_Decl *e) -{ - AST_Decl **tmp; - long odecls_allocated; - long i; - - if (e == NULL) return; - - // Make sure there's space for one more - if (pd_decls_allocated == pd_decls_used) { - - odecls_allocated = pd_decls_allocated; - pd_decls_allocated += INCREMENT; - tmp = new AST_Decl *[pd_decls_allocated]; - - for (i = 0; i < odecls_allocated; i++) - tmp[i] = pd_decls[i]; - - delete []pd_decls; - - pd_decls = tmp; - } - - // Insert new decl - pd_decls[pd_decls_used++] = e; -} - -// Add a node to set of nodes representing manifest types defined in this scope -void -UTL_Scope::add_to_local_types(AST_Decl *e) -{ - AST_Decl **tmp; - long olocals_allocated; - long i; - - if (e == NULL) return; - - // Make sure there's space for one more - if (pd_locals_allocated == pd_locals_used) { - - olocals_allocated = pd_locals_allocated; - pd_locals_allocated += INCREMENT; - tmp = new AST_Decl *[pd_locals_allocated]; - - for (i = 0; i < olocals_allocated; i++) - tmp[i] = pd_local_types[i]; - - delete []pd_local_types; - - pd_local_types = tmp; - } - - // Insert new decl - pd_local_types[pd_locals_used++] = e; -} - -// Has this node been referenced here before? -idl_bool -UTL_Scope::referenced(AST_Decl *e) -{ - long i = pd_referenced_used; - AST_Decl **tmp = pd_referenced; - - for (; i > 0; i--, tmp++) - if (*tmp == e) // Same node? - return I_TRUE; - - return I_FALSE; // Not found -} - -/* - * Redefinition of inherited virtual operations - */ - -// AST Dumping -void -UTL_Scope::dump(ostream &o) -{ - UTL_ScopeActiveIterator *i; - AST_Decl *d; - - if (idl_global->indent() == NULL) - idl_global->set_indent(new UTL_Indenter()); - - idl_global->indent()->increase(); - - if (pd_locals_used > 0) { - i = new UTL_ScopeActiveIterator(this, UTL_Scope::IK_localtypes); - - o << GTDEVEL("\n/* Locally defined types: */\n"); - while (!(i->is_done())) { - d = i->item(); - if (!d->imported()) { - idl_global->indent()->skip_to(o); - d->dump(o); - o << "\n"; - } - i->next(); - } - delete i; - } - - if (pd_decls_used > 0) { - i = new UTL_ScopeActiveIterator(this, UTL_Scope::IK_decls); - - o << GTDEVEL("\n/* Declarations: */\n"); - while (!(i->is_done())) { - d = i->item(); - if (!d->imported()) { - idl_global->indent()->skip_to(o); - d->dump(o); - o << ";\n"; - } - i->next(); - } - delete i; - } - - idl_global->indent()->decrease(); -} - -// How many entries are defined? -unsigned long -UTL_Scope::nmembers() -{ - return pd_decls_used; -} - -// UTL_SCOPE_ACTIVE_ITERATOR - -/* - * Constructor - */ - -UTL_ScopeActiveIterator::UTL_ScopeActiveIterator( - UTL_Scope *s, - UTL_Scope::ScopeIterationKind i) - : iter_source(s), - ik(i), - stage(i == UTL_Scope::IK_both - ? UTL_Scope::IK_decls - : i), - il(0) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Advance to next iterm -void -UTL_ScopeActiveIterator::next() -{ - il++; -} - -// Get current item -AST_Decl * -UTL_ScopeActiveIterator::item() -{ - if (is_done()) - return NULL; - if (stage == UTL_Scope::IK_decls) - return iter_source->pd_decls[il]; - if (stage == UTL_Scope::IK_localtypes) - return iter_source->pd_local_types[il]; - - return NULL; -} - -// Is this iteration done? -idl_bool -UTL_ScopeActiveIterator::is_done() -{ - long limit; - - limit = (stage == UTL_Scope::IK_decls) - ? iter_source->pd_decls_used - : iter_source->pd_locals_used; - - for (;;) { - if (il < limit) // Last element? - return I_FALSE; - if (stage == UTL_Scope::IK_localtypes) // Already done local types? - return I_TRUE; - if (ik == UTL_Scope::IK_decls) // Only want decls? - return I_TRUE; - - // Switch to next stage - stage = UTL_Scope::IK_localtypes; - il = 0; - limit = iter_source->pd_locals_used; - } -} - -// What kind of iterator is this? -UTL_Scope::ScopeIterationKind -UTL_ScopeActiveIterator::iteration_kind() -{ - return ik; -} - -// And where are we in the iteration? -UTL_Scope::ScopeIterationKind -UTL_ScopeActiveIterator::iteration_stage() -{ - return stage; -} diff --git a/TAO/TAO_IDL/util/utl_stack.cpp b/TAO/TAO_IDL/util/utl_stack.cpp deleted file mode 100644 index a9a69be27dd..00000000000 --- a/TAO/TAO_IDL/util/utl_stack.cpp +++ /dev/null @@ -1,257 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * utl_stack.cc - Implementation of class UTL_ScopeStack - */ - -#include "idl.h" -#include "idl_extern.h" - -// Class UTL_ScopeStack - -#undef INCREMENT -#define INCREMENT 64 - -/* - * Constructor(s) and destructor - */ - -UTL_ScopeStack::UTL_ScopeStack() - : pd_stack_data(new UTL_Scope *[INCREMENT]), - pd_stack_data_nalloced(INCREMENT), - pd_stack_top(0) -{ -} - -UTL_ScopeStack::~UTL_ScopeStack() -{ - if (pd_stack_data != NULL) - delete pd_stack_data; -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Push an element on the stack -UTL_ScopeStack * -UTL_ScopeStack::push(UTL_Scope *el) -{ - UTL_Scope **tmp; - AST_Decl *d = ScopeAsDecl(el); - long ostack_data_nalloced; - long i; - - // Macro to avoid "warning: unused parameter" type warning. - ACE_UNUSED_ARG (d); - - // Make sure there's space for one more - if (pd_stack_data_nalloced == pd_stack_top) { - ostack_data_nalloced = pd_stack_data_nalloced; - pd_stack_data_nalloced += INCREMENT; - tmp = new UTL_Scope *[pd_stack_data_nalloced]; - - for (i = 0; i < ostack_data_nalloced; i++) - tmp[i] = pd_stack_data[i]; - - delete []pd_stack_data; - pd_stack_data = tmp; - } - - // Insert new scope - pd_stack_data[pd_stack_top++] = el; - - return this; -} - -// Pop an element from the stack -void -UTL_ScopeStack::pop() -{ - UTL_Scope *s; - - if (pd_stack_top <= 0) - return; - s = pd_stack_data[--pd_stack_top]; -} - -// Return top element on stack -UTL_Scope * -UTL_ScopeStack::top() -{ - if (pd_stack_top <= 0) - return NULL; - return pd_stack_data[pd_stack_top - 1]; -} - -// Return bottom element on stack -UTL_Scope * -UTL_ScopeStack::bottom() -{ - if (pd_stack_top == 0) - return NULL; - return pd_stack_data[0]; -} - -// Clear entire stack -void -UTL_ScopeStack::clear() -{ - pd_stack_top = 0; -} - -// How deep is the stack? -unsigned long -UTL_ScopeStack::depth() -{ - return pd_stack_top; -} - -// Return (top - 1) element on stack -UTL_Scope * -UTL_ScopeStack::next_to_top() -{ - UTL_Scope *tmp, *retval; - - if (depth() < 2) - return NULL; - - tmp = top(); // Save top - (void) pop(); // Pop it - retval = top(); // Get next one down - (void) push(tmp); // Push top back - return retval; // Return next one down -} - -// Return topmost non-NULL element -UTL_Scope * -UTL_ScopeStack::top_non_null() -{ - long i; - - for (i = pd_stack_top - 1; i >= 0; i--) - if (pd_stack_data[i] != NULL) - return pd_stack_data[i]; - return NULL; -} - -/* - * Redefinition of inherited virtual operations - */ - -// Class UTL_ScopeStackActiveIterator - -/* - * Constructor(s) - */ - -UTL_ScopeStackActiveIterator::UTL_ScopeStackActiveIterator(UTL_ScopeStack *s) - : source(s), - il(s->pd_stack_top - 1) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Advance to next item -void -UTL_ScopeStackActiveIterator::next() -{ - il--; -} - -// Get current item -UTL_Scope * -UTL_ScopeStackActiveIterator::item() -{ - if (il >= 0) - return source->pd_stack_data[il]; - return NULL; -} - -// Is this iteration done? -long -UTL_ScopeStackActiveIterator::is_done() -{ - if (il >= 0) - return I_FALSE; - return I_TRUE; -} - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_string.cpp b/TAO/TAO_IDL/util/utl_string.cpp deleted file mode 100644 index 970951133a9..00000000000 --- a/TAO/TAO_IDL/util/utl_string.cpp +++ /dev/null @@ -1,212 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_string.cc - Implementation of quick and dirty TEMPORARY String -// for IDL compiler - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructors - */ - -UTL_String::UTL_String (void) - : p_str (NULL), - len (0), - alloced (0) -{ -} - -UTL_String::UTL_String (char *str) -{ - if (str == NULL) - { - len = alloced = 0; - p_str = c_str = NULL; - } - else - { - len = ACE_OS::strlen (str); - alloced = len + 1; - p_str = new char [alloced]; - c_str = new char [alloced]; - ACE_OS::strcpy (p_str, str); - canonicalize (); - } -} - -UTL_String::UTL_String (unsigned long maxlen) -{ - len = maxlen; - alloced = maxlen + 1; - p_str = new char [alloced]; - c_str = new char [alloced]; - p_str[0] = '\0'; - c_str[0] = '\0'; -} - -UTL_String::UTL_String (UTL_String *s) -{ - char *b; - - if (s == NULL) - { - p_str = c_str = NULL; - alloced = len = 0; - } - else - { - b = s->get_string (); - if (b == NULL) - { - p_str = c_str = NULL; - alloced = len = 0; - } - else - { - len = ACE_OS::strlen (b); - alloced = len + 1; - p_str = new char [alloced]; - c_str = new char [alloced]; - ACE_OS::strcpy (p_str, b); - canonicalize (); - } - } -} - -/* - * Private operations - */ - -// Compute a canonical form for this string. This is (implemented as) -// a corresponding string with all upper case characters where the -// original has lower case characters, identical characters otherwise. -void -UTL_String::canonicalize (void) -{ - unsigned long i; - - for (i = 0; i < len; i++) - c_str[i] = isalpha (p_str[i]) ? toupper (p_str[i]) : p_str[i]; - - c_str[i] = '\0'; -} - -/* - * Public operations - */ - -// Compare two String * -long -UTL_String::compare (UTL_String *s) -{ - char *s_c_str; - long result; - - if (c_str == NULL || s == NULL || (s_c_str = s->get_canonical_rep ()) == NULL) - result = I_FALSE; - else - result = (ACE_OS::strcmp (c_str, s_c_str) == 0) ? I_TRUE : I_FALSE; - - /* - * Check that the names are typed consistently - */ - if (result == I_TRUE && ACE_OS::strcmp (p_str, s->get_string ()) != 0) - idl_global->err ()->name_case_error (p_str, s->get_string ()); - - return result; -} - -// Get the char * from a String -char * -UTL_String::get_string (void) -{ - return p_str; -} - -// Get the canonical representation from a String -char * -UTL_String::get_canonical_rep (void) -{ - if (c_str == NULL) - { - c_str = new char [alloced]; - canonicalize (); - } - return c_str; -} - -/* - * Redefined virtual operations - */ - -// AST Dumping -void -UTL_String::dump (ostream &o) -{ - o << p_str; -} diff --git a/TAO/TAO_IDL/util/utl_strlist.cpp b/TAO/TAO_IDL/util/utl_strlist.cpp deleted file mode 100644 index d2aac678822..00000000000 --- a/TAO/TAO_IDL/util/utl_strlist.cpp +++ /dev/null @@ -1,196 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_strlist.cc -// -// Implementation of a list of utl_string nodes - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -#include "idl.h" -#include "idl_extern.h" - -/* - * Constructor(s) - */ - -UTL_StrList::UTL_StrList(String *s, UTL_StrList *cdr) - : UTL_List(cdr), - pd_car_data(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get list item -String * -UTL_StrList::head() -{ - return pd_car_data; -} - -// Set list item -void -UTL_StrList::set_head(String *s) -{ - pd_car_data = s; -} - -// Get last item of this list -String * -UTL_StrList::last_component() -{ - if (tail() == NULL) - return pd_car_data; - return ((UTL_StrList *) tail())->last_component(); -} - -// Copy a list -UTL_List * -UTL_StrList::copy() -{ - if (tail() == NULL) - return new UTL_StrList(head(), NULL); - return new UTL_StrList(head(), (UTL_StrList *) tail()->copy()); -} - -// AST Dumping -void -UTL_StrList::dump(ostream &o) -{ - char *s; - UTL_StrlistActiveIterator *i = new UTL_StrlistActiveIterator(this); - idl_bool first = I_TRUE; - idl_bool second = I_FALSE; - - while (!(i->is_done())) { - if (!first) - o << "::"; - else if (second) - first = second = I_FALSE; - s = i->item()->get_string(); - o << s; - if (first) { - if (strcmp(s, "::") != 0) - first = I_FALSE; - else - second = I_TRUE; - } - i->next(); - } -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_StrList active iterator - -/* - * Constructor - */ - -UTL_StrlistActiveIterator::UTL_StrlistActiveIterator(UTL_StrList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get current item -String * -UTL_StrlistActiveIterator::item() -{ - if (source == NULL) - return NULL; - return ((UTL_StrList *) source)->head(); -} - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_tmpl/utl_decllist.cpp b/TAO/TAO_IDL/util/utl_tmpl/utl_decllist.cpp deleted file mode 100644 index 5c8458eee82..00000000000 --- a/TAO/TAO_IDL/util/utl_tmpl/utl_decllist.cpp +++ /dev/null @@ -1,105 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -// utl_decllist.cc -// -// Implementation of a list of declarators - -#include -#include - -/* - * Constructor(s) - */ - -UTL_DeclList::UTL_DeclList(FE_Declarator *s, UTL_DeclList *cdr) - : UTL_List(s, cdr) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_DeclList active iterator - -/* - * Constructor - */ - -UTL_DecllistActiveIterator::UTL_DecllistActiveIterator(UTL_DeclList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefined inherited operations - */ - diff --git a/TAO/TAO_IDL/util/utl_tmpl/utl_exceptlist.cpp b/TAO/TAO_IDL/util/utl_tmpl/utl_exceptlist.cpp deleted file mode 100644 index 8e6136e92ce..00000000000 --- a/TAO/TAO_IDL/util/utl_tmpl/utl_exceptlist.cpp +++ /dev/null @@ -1,104 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -// utl_exceptlist.cc -// -// Implementation of a list of exceptions - -#include -#include - -/* - * Constructor(s) - */ - -UTL_ExceptList::UTL_ExceptList(AST_Exception *s, UTL_ExceptList *cdr) - : UTL_List(s, cdr) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_ExceptList active iterator - -/* - * Constructor - */ - -UTL_ExceptlistActiveIterator::UTL_ExceptlistActiveIterator(UTL_ExceptList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_tmpl/utl_exprlist.cpp b/TAO/TAO_IDL/util/utl_tmpl/utl_exprlist.cpp deleted file mode 100644 index bf67aab5564..00000000000 --- a/TAO/TAO_IDL/util/utl_tmpl/utl_exprlist.cpp +++ /dev/null @@ -1,104 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -// utl_exprlist.cc -// -// Implementation of a list of strings - -#include -#include - -/* - * Constructor(s) - */ - -UTL_ExprList::UTL_ExprList(AST_Expression *s, UTL_ExprList *cdr) - : UTL_List(s, cdr) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_ExprList active iterator - -/* - * Constructor - */ - -UTL_ExprlistActiveIterator::UTL_ExprlistActiveIterator(UTL_ExprList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_tmpl/utl_idlist.cpp b/TAO/TAO_IDL/util/utl_tmpl/utl_idlist.cpp deleted file mode 100644 index e4df564ccf5..00000000000 --- a/TAO/TAO_IDL/util/utl_tmpl/utl_idlist.cpp +++ /dev/null @@ -1,137 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -// utl_idlist.cc -// -// Implementation of a list of utl_string nodes - -#include -#include - -/* - * Constructor(s) - */ - -UTL_IdList::UTL_IdList(Identifier *s, UTL_IdList *cdr) - : UTL_List(s, cdr) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get last item of this list -Identifier * -UTL_IdList::last_component() -{ - if (tail() == NULL) - return head(); - return tail()->last_component(); -} - -// AST Dumping -void -UTL_IdList::dump(ostream &o) -{ - UTL_IdListActiveIterator *i = new UTL_IdListActiveIterator(this); - long first = I_TRUE; - long second = I_FALSE; - - while (!(i->is_done())) { - if (!first) - o << "::"; - else if (second) - first = second = I_FALSE; - i->item()->dump(o); - if (first) { - if (strcmp(i->item()->get_string(), "::") != 0) - first = I_FALSE; - else - second = I_TRUE; - } - i->next(); - } -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_IdList active iterator - -/* - * Constructor - */ - -UTL_IdListActiveIterator::UTL_IdListActiveIterator(UTL_IdList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_tmpl/utl_labellist.cpp b/TAO/TAO_IDL/util/utl_tmpl/utl_labellist.cpp deleted file mode 100644 index ea1cc9c4cff..00000000000 --- a/TAO/TAO_IDL/util/utl_tmpl/utl_labellist.cpp +++ /dev/null @@ -1,104 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -// utl_labellist.cc -// -// Implementation of a list of scoped names - -#include -#include - -/* - * Constructor(s) - */ - -UTL_LabelList::UTL_LabelList(AST_UnionLabel *s, UTL_LabelList *cdr) - : UTL_List(s, cdr) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_LabelList active iterator - -/* - * Constructor - */ - -UTL_LabellistActiveIterator::UTL_LabellistActiveIterator(UTL_LabelList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_tmpl/utl_list.cpp b/TAO/TAO_IDL/util/utl_tmpl/utl_list.cpp deleted file mode 100644 index 45b4c76429e..00000000000 --- a/TAO/TAO_IDL/util/utl_tmpl/utl_list.cpp +++ /dev/null @@ -1,211 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -// utl_list.cc -// -// Implementation of generic single-linked lists - -#include -#include -#include - -/* - * Constructor(s) - */ - -template -UTL_List::UTL_List(T *c, L *l) - : pd_car_data(c), - pd_cdr_data(l) -{ -} - -/* - * Private operations - */ - -// Compute list length -template -long -UTL_List::list_length(long n) -{ - if (pd_cdr_data == NULL) - return n; - else - return pd_cdr_data->list_length(n+1); -} - -/* - * Public operations - */ - -// Smash last cdr with l -template -void -UTL_List::nconc(L *l) -{ - if (pd_cdr_data == NULL) - pd_cdr_data = l; - else - pd_cdr_data->nconc(l); -} - -/* - * Override this operation to copy lists of other types - */ -// Copy a list -template -L * -UTL_List::copy() -{ - if (pd_cdr_data == NULL) - return new L(head(), NULL); - return new L(head(), pd_cdr_data->copy()); -} - -// Get list item -template -T * -UTL_List::head() -{ - return pd_car_data; -} - -// Get next list -template -L * -UTL_List::tail() -{ - return pd_cdr_data; -} - -// Set list item -template -void -UTL_List::set_head(T *s) -{ - pd_car_data = s; -} - -// Set next list -template -void -UTL_List::set_tail(L *l) -{ - pd_cdr_data = l; -} - -// Compute list length -template -long -UTL_List::length() -{ - return list_length(1); -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_List active iterator - -/* - * Constructor - */ - -template -UTL_ListActiveIterator::UTL_ListActiveIterator(UTL_List *s) - : source(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Is iterator done? -template -long -UTL_ListActiveIterator::is_done() -{ - return (source == NULL) ? I_TRUE : I_FALSE; -} - -// Get current item -template -T * -UTL_ListActiveIterator::item() -{ - if (source == NULL) - return NULL; - return source->head(); -} - -// Advance to next item -template -void -UTL_ListActiveIterator::next() -{ - if (source != NULL) - source = source->tail(); -} - -/* - * Redefinition of inherited operations - */ - diff --git a/TAO/TAO_IDL/util/utl_tmpl/utl_namelist.cpp b/TAO/TAO_IDL/util/utl_tmpl/utl_namelist.cpp deleted file mode 100644 index 45a8b298a56..00000000000 --- a/TAO/TAO_IDL/util/utl_tmpl/utl_namelist.cpp +++ /dev/null @@ -1,106 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -// utl_namelist.cc -// -// Implementation of a list of scoped names - -#include -#include - -typedef UTL_List _dummy_; - -/* - * Constructor(s) - */ - -UTL_NameList::UTL_NameList(UTL_ScopedName *s, UTL_NameList *cdr) - : UTL_List(s, cdr) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_NameList active iterator - -/* - * Constructor - */ - -UTL_NamelistActiveIterator::UTL_NamelistActiveIterator(UTL_NameList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_tmpl/utl_strlist.cpp b/TAO/TAO_IDL/util/utl_tmpl/utl_strlist.cpp deleted file mode 100644 index c0315e8c145..00000000000 --- a/TAO/TAO_IDL/util/utl_tmpl/utl_strlist.cpp +++ /dev/null @@ -1,139 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -// utl_strlist.cc -// -// Implementation of a list of utl_string nodes - -#include -#include - -/* - * Constructor(s) - */ - -UTL_StrList::UTL_StrList(String *s, UTL_StrList *cdr) - : UTL_List(s, cdr) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get last item of this list -String * -UTL_StrList::last_component() -{ - if (tail() == NULL) - return head(); - return tail()->last_component(); -} - -// AST Dumping -void -UTL_StrList::dump(ostream &o) -{ - char *s; - UTL_StrlistActiveIterator *i = new UTL_StrlistActiveIterator(this); - long first = I_TRUE; - long second = I_FALSE; - - while (!(i->is_done())) { - if (!first) - o << "::"; - else if (second) - first = second = I_FALSE; - s = i->item()->get_string(); - o << s; - if (first) { - if (strcmp(s, "::") != 0) - first = I_FALSE; - else - second = I_TRUE; - } - i->next(); - } -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_StrList active iterator - -/* - * Constructor - */ - -UTL_StrlistActiveIterator::UTL_StrlistActiveIterator(UTL_StrList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/VERSION b/TAO/VERSION deleted file mode 100644 index f3e133a5e24..00000000000 --- a/TAO/VERSION +++ /dev/null @@ -1,4 +0,0 @@ -This is TAO version 0.1.27, released Tue Jun 09 15:41:53 1998. - -If you have any problems with TAO, please send email to Douglas C. -Schmidt and Nanbor Wang . diff --git a/TAO/announcement b/TAO/announcement deleted file mode 100755 index f9d33c28e9e..00000000000 --- a/TAO/announcement +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -VERSION=`cat VERSION` -URL="http://www.cs.wustl.edu/~schmidt/ACE_wrappers/TAO.tar.gz" - - -cat <<@EOM - -The first official beta release of The ACE ORB (TAO) has been released -by the Distributed Object Computing (DOC) Group at Washington -University in St. Louis. TAO is a freely available CORBA -2.x-compliant ORB with real-time extensions that can be downloaded -from the Internet at - -http://www.cs.wustl.edu/~schmidt/ACE_wrappers/TAO.tar.gz - -$VERSION - -TAO uses IIOP 1.0 as its inter-ORB communication protocol and provides -the first implementation of the OMG's Portable Object Adapter (POA) -specification and latest IDL->C++ mappings. For more information -about the POA, please see - -http://www.cs.wustl.edu/~schmidt/C++-report-col11.ps.gz -http://www.cs.wustl.edu/~schmidt/C++-report-col12.ps.gz - -For more information on TAO, please see - -http://www.cs.wustl.edu/~schmidt/TAO.html - -TAO has been ported to a range of OS platforms including Windows NT -4.x using MSVC++ 4.x and 5.x, several versions of UNIX (e.g., Solaris -2.x, SGI IRIX 6.x, Linux, SCO, NetBSD, and FreeBSD), and Real-Time -OS's (RTOSs) (e.g., VxWorks and Chorus). Ultimately, TAO will be -ported to all OS platforms on which ACE runs. We have used TAO to -interwork with other ORBs (e.g., Orbix, COOL, CORBAPlus, and -VisiBroker), so we're confident that its IIOP implementation is robust -and interoperable. - -For information on installation and system requirements, please see -http://www.cs.wustl.edu/~schmidt/TAO-INSTALL.html (or INSTALL) in the -root directory of the unpacked tar file. - -Note that ACE is required to build TAO. Typically the most recent -beta release is required, which you can obtain at - -http://www.cs.wustl.edu/~schmidt/ACE.html - -Please see the installation notes for more details. - -Other HTML documentation is available in the '$TAO_ROOT/docs/' -directory. - -We welcome suggestions for improvement, bug fixes, portability -enhancements, etc. If you have any questions or problems with TAO, -please post them to the ACE mailing list (ace-users@cs.wustl.edu) or -send email to Douglas C. Schmidt (schmidt@cs.wustl.edu) and Chris -Cleeland (cleeland@cs.wustl.edu). - -The TAO Team -@EOM diff --git a/TAO/docs/DIFFERENCES b/TAO/docs/DIFFERENCES deleted file mode 100644 index 0a8dd343d4d..00000000000 --- a/TAO/docs/DIFFERENCES +++ /dev/null @@ -1,360 +0,0 @@ -@(#)DIFFERENCES 1.1 95/09/13 - -[ NOTE that the CORBA 2.0 specifications have now been published, but are -not yet sufficiently available that this document can usefully just list -any differences between that specification and this software. As a rule, -there are no differences between this software and CORBA 2.0 in areas -where CORBA 2.0 has specified an interface. ] - - -This document summarizes known differences between what is implemented in -this software and currently available OMG specifications. As a rule, these -establish compatibility with revised specifications that are currently being -prepared for publication. However, in some cases the differences resolve -problems that are currently being addressed by ORB taskforces. When those -revised CORBA specifications are published, this document will be updated to -reflect any remaining differences from them. - -The reason for those changes is that different specifications were adopted -at the same time and there were in some cases subtle differences which need -to be resolved. Minor errata have also been fixed. None of these changes -are substantial, with the exception of the TypeCode interpreter API which -was added to the C++ mapping. - -Also, note that the goal of this software is fidelity to the IIOP, so that -issues relating (in particular) to the C++ language mapping or other OMG -specifications were judged to be of less importance at this time. - - -DIFFERENCES from IIOP in UNO Spec (95-3-10) -------------------------------------------- -Some changes to the original specification (94-9-32) for the IIOP protocol -were found to be necessary; most related to the subsequently adopted Interface -Repository (IFR) specification (94-11-7). Others resulted from correction -of minor editorial errors, and experience gained as multiple teams implement -to that specification. - -The bulk of those changes have been incorporated into the 95-3-10 document, -but these few have not. - - -CDR TYPECODE INDIRECTION - -An additional constraint on the use of typecode indirection has been -identified. Specifically, the typecode to which an indirection points -be "self-sufficient", and may not point "outside of itself" for any -further indirections. For example, always indirections occur within -encapsulations, so it's OK for the indirection to point anywhere in -that encapsulation, or at the encoded TCKind enum value immediately -before the encapsulation's length. For typecode encapsulations nested -inside other typecode encapsulations, the indirection may point no -further than the outermost encapsulation. - -Also, when an indirection points to another typecode, the byte order -of that other typecode must be deduced from the encoded value found -there. This is straightforward for encoded TCKind values, all of which -fit into a single byte: if the first byte of the word is zero, then -the encoding is big-endian, else it's little-endian. - -Indirecting to another indirection is not allowed, since the byte order -of the encoded offset can't consistently be deduced. - - -MISCELLANY - -The type GIOP::Version is assumed to be identical to IIOP::Version. -As part of the editorial separation of GIOP from its Internet version -IIOP, this typedef was accidentally omitted. - -This implementation of IIOP supports the OMG-IDL Primitive Data Types as -defined in Appendix A of 94-9-32, but with TCKind numbers following the new -tk_exception and tk_alias codes. (That is, rather than using range 21-25, -these TCKind values are in the range 23-27.) - -These data types are currently the topic of an RFP in process in the OMG, -and are not currently defined as part of a current OMG specification. -Clients and servers using these extended data types are relying on CORBA -extensions that are not yet standardized; and should be prepared to change. - - -CORBA 2.0/CORE Differences --------------------------- -As of this writing, the new CORBA 2.0/CORE document has not yet been made -available. This is a modification of the CORBA 1.2 document, with the -addition of (mandatory) extensions from the UNO (94-9-32) specification: -notably DSI and some new object reference operations. This summarizes -differences between the as-yet-unpublished CORBA 2.0/CORE document and -the original text in the UNO specification. - - -DYNAMIC SKELETON INTERFACE - -Since the new "tk_except" typecodes now include the exception ID (this is -the repository ID describing the exception's type) the "exception" operation -used to report an exception through a ServerRequest no longer includes the -exception ID. - -Since the OperationDef entries for attributes are no longer found in the -interface repositories, the ServerRequest convenience operation to return -this has been removed. Application programs (such as bridges) must compare -the operation name string with the prefixes "_get_" and "_set_" to see if -any given operation applies to an attribute. If an operation is one of the -two for which an OMG-IDL "attribute" declaration is shorthand, then the -application must search the interface repository for that attribute. - -(There are in fact three categories of operations on which an object adapter -and implementation collaborate to handle: user defined operations, user -defined attributes, and operations defined by CORBA such as "is_a" and -"get_implementation". Some object adapters, like the BOA, handle this last -category directly, rather than exposing it to applications.) - -The "non_existent" objref operation accidentally used attribute syntax; this -has been corrected. All operations on CORBA::Object references now use -normal operation syntax in their (pseudo) IDL definitions, and are uniformly -prefixed with underscores as part of their C++ mapping. - - -DIFFERENCES from IDL C++ Mapping (94-9-14) ------------------------------------------- -There are four basic ways in which the IIOP framework does not comply -with the OMG's IDL C++ mapping specification, beyond the use of the CORBA2 -module/namespace rather than the CORBA module/namespace. (CORBA2 is used -so that this software can be linked with existing ORBs, which should be -using the CORBA module/namespace already.) - -These ways are beyond the portability-derived use of the "class" construct -(instead of the C++ namespace construct), and the use of CORBA2::Environment -(rather than C++ exceptions), both of which are accomodated by the mapping: - - (1) This framework does not attempt to be complete. - - Completeness is not required to implement the Internet IOP, - so time was not spent in providing a complete mapping. - - (2) In some cases the API provided is not the one in the mapping. - For example CORBA2::Environment is not always passed in all - operations. This was done to promote ease of implementation - and coding. - - (3) Implementation details are generally exposed. - - This isn't so much a noncompliance issue (it's not specified - that such details must be hidden) as an issue of allowing - noncompliant applications. The effort required to actively - prevent use of implementation details by higher level code - would be nontrivial, and could slow down IIOP code, so no - time was applied to hiding such details. - - (However, note that when the software was modified to use COM, - standard C++ techniques were used to hide most such details.) - - (4) The C++ mapping needs completion in some areas. - - Notably, 94-9-14 does not satisfy requirements to provide - support for for all data types in an "Any" or exception without - needing any precompiled data type support routines. The - TypeCode interpreter addresses this issue. - - Some additional operations were not adopted at the time 94-9-14 - was defined; both 94-9-32 and 94-11-7 added new ORB interfaces - which are not found in the initial C++ mapping document. - -With respect to this fourth issue, descriptions of the API extensions -used is provided later in this file. The additional CORBA operations -are not described since their mapping is straightforward if it isn't given -in those documents. - - -ACCESS TO ALL DATA IN "ANY" AND EXCEPTIONS - -The "void *" value in an "Any", and any "CORBA2::Exception *" value, may -always be passed to the TypeCode interpreter (see next). This allows access -to all data held within an "Any" and an Exception. The "void *" value in an -Any with an exception TypeCode is of type CORBA2::Exception *". Due to -the way CORBA is specified, it is not possible to tell whether an "Any" -holding an exception denotes a user or standard (system-defined) exception -except by exhaustive comparison against exception IDs. - -Also, _all_ legal OMG-IDL data types may be held in an "Any", and may be -manipulated using the TypeCode interpreter. This satisfies a language -mapping requirement that DII (and DSI) be able to manipulate all OMG-IDL -data types without requiring compiler generated support for them. - - -TYPECODE INTERPRETER - -In any given C/C++ execution environment there is a binary standard for how -data is represented. While that standard will differ between execution -environments, there are a very limited number of ways in which those -representations differ. Those differences are encapsulated only in the -TypeCode interpreter, so that portable applications using the dynamic -typing infrastructure in the ORB can completely ignore how it's done in -any particular environment. - -The APIs in this software distribution have been suggested for adoption as -part of the OMG specification suite. The two APIs are nonstatic member -functions in the C++ mapping's TypeCode pseudo-object, and are augmented -by a single new enumeration type. - - unsigned long size() - - This returns the size of an instance of the type that is - described by the TypeCode. - - For example, when invoked on the typecode constant CORBA::_tc_Short, - the value returned is sizeof(CORBA::Short); and when invoked on the - typecode for a structure, it is the size of that structure (including - any internal and tail padding needed). When invoked on a sequence - typecode, it returns a value that does not include the size for - any embedded buffer. - - enum traverse_status {TRAVERSE_STOP, TRAVERSE_CONTINUE }; - - This is a data type used in the traverse() member function. - It allows data type traversal to be terminated early for - non-exceptional conditions, and eliminates the confusion - that some similar APIs have created when they use a single - boolean value (does TRUE mean to stop, or to continue?). - - traverse_status traverse ( - const void *value1; - const void *value2 - traverse_status visit ( - TypeCode_ptr tc, - const void *visit_value1, - const void *visit_value2, - void *visit_context - ), - void *context - ); - - (In the current language mapping, CORBA2::Environment references - are passed as the final parameter to the 'traverse' and 'visit' - routines for use when reporting exceptions.) - - The pointers "value1" and "value2" point to instances of the - data type described by the typecode (or are null pointers). - - For each constituent of that data type (e.g. structure member) - the visit() routine is called once. The constituent's type - is described by "tc"; "visit_value1" points to the constituent - of that type in "value1" (assuming the traverse routine was - not passed a null pointer) and similarly for "visit_value2". - The "visit_context" parameter is the context parameter passed - to the traverse() routine, and can point to whatever data is - needed by the visit() routine. - - Members are traversed in first-to-last order, as defined in the - IDL specification for the data type. So for example, the - visit routine for a structure could print out each element - on a IO stream passed through the context parameter, perhaps in - a neatly formatted form intended for human consumption. - - The visit() function may choose to recursively traverse() each - element. So for example if "tc->kind()" in a visit routine - returned CORBA::tk_struct, the contents of that struct would - be ignored unless the visit routine invoked traverse() using - the typecode and values passed to it. - - If the visit() routine returns TRAVERSE_CONTINUE, succeeding - constituents of the data type are visited in turn; if it - returns TRAVERSE_STOP, the traverse() routine returns that - value to its caller. Of course, if a visit() routine calls - traverse() itself, it may choose to ignore TRAVERSE_STOP. - -The traverse() routine is a powerful tool. It is used in the IIOP code -itself in several ways; look at such use for tutorial details. You could -implement data value comparison and "debug" data dumping as simple exercises -in the use of these APIs. - -The "marshaling interpreter" (marshal.cc) uses it to encode and decode -values according to the IIOP protocol specification. The "Any" code -(any.cc) uses traverse() both to free embedded pointers, and to make "deep" -copies of any data structure given its TypeCode. - -Only that "deep copy" visit routine uses "value2" as anything other than a -null pointer; it allows efficient construction of "deep copies" without -needing extra space for temporary values or coroutine stacks. (A general -purpose two-value comparison could also use "value2".) Most uses of the API -only manipulate a single data value at a time; no realistic need has yet -been seen for manipulating more than two data values at once. - -With respect to the OMG C and C++ mappings, it is clear that this style API -must be provided for the C mapping, but some people have noted that a -"purer" object oriented style API could also be provided in C++. That style -would use another internal visit routine, performing the requisite "switch" -over the fixed number of TCKind values, and then make a virtual function -call to an instance of a C++ class whose private state was the "context" and -whose member functions matched the arms of the switch. - - -MEMORY ALLOCATION - -In order to dynamically manipulate instances of arbitrary data types, -applications need to be able to allocate and free memory. The OMG C++ -mapping only says how to do this for data types which have static C++ -interfaces defined, which is clearly inadequate for using constructed -types with the DII/DSI/Any family of interfaces. - -This infrastructure requires the standard "malloc" and "free" primitives to -be used, and cast to the appropriate type. Data allocated using malloc -will normally be sized according to TypeCode::size(), and then be stored -inside an Any. When the Any is deleted, if the ORB deallocates the memory -it always uses "free" (including for any nested pointers, and correctly -handling cases such as arrays and sequences). - -Note that to support implementations where C and C++ language bindings -share the same ORB infrastructure, this solution is inadequate. This is -because the C binding's CORBA_free() interface would have no way to -determine the type of the data being freed. Instead, typed allocation -APIs will need to be used even when using the dynamically typed CORBA -subsystem ... a TypeCode::malloc() routine would suffice, if it returned -memory that was internally tagged with that TypeCode. In such a case, -the CORBA_free() routine could use that TypeCode to "deep free" data as -required, and C++ "new" and "delete" operators would need to know about -the internal tagging for all those data types. Such tagged allocation -would need to be used for all data that was to be freed by the ORB. - -(Having the C mapping require use of "typed free" routines, instead of the -CORBA_free interface, is sufficient to eliminate this problem.) - - -PASSING EXCEPTIONS THROUGH THE DII - -The C++ mapping's Dynamic Invocation Interface (DII) has key omissions -in that it doesn't say how to access to user-defined exception values, -and implicitly requires ORBs either to pass "excess" data on the wire -or else to consult an interface repository to deal with exceptions or -(deprecated) "context" strings. - -This software changes the DII specification in two ways to support the -requirement for DII users to be able to see user-defined exceptions, yet -not to violate the OMG-IDL type model by reporting illegal exceptions: - - * The Object::_create_request() member function, through which DII - users provide all the information included in an IDL operation's - signature, has an additional parameter. - - That parameter is a sequence of exception typecodes, describing - the user-defined exceptions that the operation can return. (The - standard exceptions defined in CORBA may always be returned.) - When any other exception is returned, the client's ORB reports that - the object's type definition has been violated by the server's ORB. - - * The TypeCode interpreter (see above) may be used to examine all - exception values reported through a CORBA::Environment. A new - Exception::id() operation may be used to determine which typecode - should be used. - -Note that a number of portability and specification problems have been -identified in the current C++ mapping for DII, e.g. for details of memory -management. Later versions of this code may attempt to closely comply -with an improved mapping for DII, to the extent that the interpretation -used here differs from that more unambiguous specification. - -Since there is no efficient way to distinguish typecodes for user defined -exceptions from ones for system-defined ("standard") exceptions (comparing -the exception ID against all the system defined ones is inefficient :-) -a new enum type "ExceptionType" is defined. (An analogous type is already -defined for the C language mapping.) This is used to report exceptions -through DII and DSI. diff --git a/TAO/docs/HISTORY b/TAO/docs/HISTORY deleted file mode 100644 index d97a8e35b2e..00000000000 --- a/TAO/docs/HISTORY +++ /dev/null @@ -1,44 +0,0 @@ -@(#)HISTORY 1.1 95/09/13 - -Mmmmmmmm DD, 1995 -- RELEASE 1.3: ---------------------------------- -Release 1.3 includes bugfixes, and support for the COM binary interface -model, both on UNIX and on MS-Windows platforms. The source tree has -been considerably restructured, with the goal of enabling addition of -other components at both the binary and source levels. - - -September 1, 1995 -- RELEASE 1.2: ---------------------------------- -Release 1.2 includes fixes for problems noted in the recent multivendor -interoperability testing at Object World, and as reported by other users on -the Internet. The most notable of these is that in some cases, when using -multiple connections to IIOP servers and clients, the connection management -code previously would get confused about which connection was which. (One -consequence of fixing this is that an old test has been removed.) Also, -there was no simple way to use Solaris 2.4 threads; see the Makefile for -details. A few other minor features were added to facilitate use of this -code for more than just protocol testing. - - -June 28, 1995 -- RELEASE 1.1: ------------------------------ -Release 1.1 includes support for several new platforms. Particular thanks -go to the team at APM, which contributed the bulk of the new "autoconf" -support (substantially enhancing portability), support for DEC Alpha and -HP 9000 platforms, runtime initialization of the size and alignment table -used to drive the typecode interpreter, and more; see README.apm for details. - -Release 1.1 includes POSIX.1c threading support; on platforms which provide -POSIX.1c threads, applications will be able to take advantage of them. - -Union and indirection support has been added to the TypeCode interpreter, -and more typecode utility APIs have been implemented. Various bugfixes and -cleanup have also been provided. Unfinished stubs for the COS Naming service -are included; these rely on C++ exception support. - - -March 21, 1995 -- RELEASE 1.0: ------------------------------- -The original release ran on a set of UNIX platforms (including Solaris, -SunOS, Linux, and NEXTSTEP) as well as with 16-bit and 32-bit MS-Windows. diff --git a/TAO/docs/Options.html b/TAO/docs/Options.html deleted file mode 100644 index 13f8ea2a7e2..00000000000 --- a/TAO/docs/Options.html +++ /dev/null @@ -1,231 +0,0 @@ - - - - Options for TAO Components - - - - -

Options for TAO Components

- -

Overview

-
-

Certain components in TAO such as the ORB Core or object adapter -can be tuned by users by providing value for options to them. These -options are commonly specified as strings (e.g., passed on -the command-line) and are passed to component initialization methods -for consumption.

- -

Programmer's Note: the internal structure for these -options is the traditional argc/argv vector -of strings style popularized by C and Unix. By convention, an -initialization method will consume, i.e., remove from the -vector, any options that it recognizes.

- -

Types of Options

- -

Roadmap

- -
-

The following components can be tuned via options:

- - -
- -

Options

- -
-

CORBA::ORB

- -
-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
OptionDescription
-ORBsvcconf config file nameSpecifies the name of the file from which it will read dynamic service configuration -directives ala ACE's Service Configurator.
-ORBsvcconfdirective directivestringSpecifies a service configuration -directive, which is passed to ACE's Service Configurator.
-ORBdaemonSpecifies that the ORB should daemonize itself.
-ORBdebugTurns on the output of debugging messages within ACE's Service Configurator -componentry.
-ORBhost hostnameTells the Object Adapter to listen for requests on the interface associated -with the host named hostname.
-ORBport portspecTells the Object Adapter to listen for requests on the port specified by -portspec, which can be a name as found in /etc/services -or a number. The default is 10013.
-ORBobjrefstyle whichSpecifies the user-visible style of object references. The range of values -is IOR, which is the traditional nonsensical object reference, -or URL, which looks more like a URL.
-ORBobjdemux demux_methodSpecifies the method used to demultiplex to an object. The range of values -is dynamic, linear, active, or user.
-ORBtablesize object table sizeSpecifies the size of the object table as a positive, non-zero integer. -If not specified, the default is 64.
-ORBrcvsock receive buffer sizeSpecify the size of the socket receive buffer as a positive, non-zero integer. -If not specified, the system-dependent default is used.
-ORBsndsock send buffer sizeSpecify the size of the socket send buffer as a positive, non-zero integer. -If not specified, the system-dependent default is used.
-ORBnameserviceport portspecSpecifies which port the Naming Service is listening on.
-ORBnameserviceior iorSpecifies the IOR for the Naming Service.
-ORBcollocation yes/noSpecifies the use of collocation object optimization. Default is yes.
-ORBpreconnect host:port[,host:port...]Pre-establishes a blocking connection to each listed -host:port combination. If a connection cannot -be established, a warning is announced and it continues with the -next listed. Listing the same combination multiple times will -properly establish multiple connections to that endpoint.
-ORBCDRtradeoff maxsizeControl the strategy to tradeoff -between copy vs no copy marshalling of octet sequences. -If an octet sequence is smaller than maxsize and the current -message block contains enough space for it the octet sequence is -copied instead of appended to the CDR stream.
-

-
- -

CORBA::POA

- -
-

- - - - - - -
OptionDescription
-OAid OA IdentifierAssociates OA Identifier with the Object Adapter.
-

-
- -

TAO_Resource_Factory

- -
-

- - - - - - - - - - - - -
OptionDescription
-ORBresources whichSpecify whether each thread uses a global -(which = global) or a thread-specific -(which = tss) instance for the resources it returns.
-ORBpoa whichSpecify whether each thread uses a global -(which = global) or a thread-specific -(which = tss) instance for the Root POA.
-ORBcoltable whichSpecify whether each ORB uses a global -(which = global) or a per-ORB -(which = orb) collocation table.
-

-
- -

TAO_Default_Server_Strategy_Factory

- -
-

- - - - - - - - - - - - - - - - - - - - - - - - -
OptionDescription
-ORBconcurrency whichSpecify which concurrency strategy to use. Range of values is reactive -for a purely Reactor-driven concurrency strategy or -thread-per-connection for creating a new thread to service each connection.
-ORBtablesize object table sizeSpecify the size of the object table. If not specified, the default value -is 64.
-ORBdemuxstrategy demultiplexing strategySpecify the demultiplexing lookup strategy. The demultiplexing strategy -can be one of dynamic, linear, active, -or user.
-ORBthreadflags thread flagsSpecify the flags used for thread creation. Flags can be any logical-OR -combination of THR_DETACHED, THR_BOUND, THR_NEW_LWP, -THE_SUSPENDED.
-ORBpoalock lock typeSpecify the type of lock to be used for -POA accesses. Possible values for lock type are -thread, which specifies that an inter-thread mutex is -used to guarantee exclusive acccess, and null, which -specifies that no locking be performed. The default is -null.
-ORBcoltbllock lock typeSpecify the type of lock to be used for -the global collocation table. Possible values for lock type are -thread, which specifies that an inter-thread mutex is -used to guarantee exclusive acccess, and null, which -specifies that no locking be performed. The default is -thread.
-ORBpoamgrlock lock typeSpecify the type of lock to be used for -POA Manager accesses. Possible values for lock type are -thread, which specifies that an inter-thread mutex is -used to guarantee exclusive acccess, and null, which -specifies that no locking be performed. The default is -null.
-

-
- -

TAO_Default_Client_Strategy_Factory

- -
-

There are currently no options for the TAO_Default_Client_Strategy_Factory.

-
-
- -


-Back to the TAO components documentation. - - - diff --git a/TAO/docs/REFERENCES b/TAO/docs/REFERENCES deleted file mode 100644 index a44ef31c16e..00000000000 --- a/TAO/docs/REFERENCES +++ /dev/null @@ -1,91 +0,0 @@ -@(#)REFERENCES 1.2 95/11/08 - -REFERENCES -========== -Most of the relevant references here are to OMG documents, however there -are a few external references of some note: - - * http://www.uci.agh.edu.pl/research/cs/TOCOOS/COPERNICUS.html - - -OMG REFERENCES --------------- -As of this writing, OMG is in the process of publishing new versions of the -base CORBA specifications, merging specifications as needed into single -documents and splitting out the C mapping from the CORBA/CORE specification. - -This software has made every effort to track both the base documents and the -agreed corrections and revisions. Since those documents have not yet been -published, there will inevitably be areas in which it does not reflect the -versions yet to be published. See the "DIFFERENCES" file for information -about where this software differs from these current base documents: - -* CORBA 2.0/Interoperability: Universal Networked Objects (UNO), OMG - TC Document 95-3-10. This includes the mandatory IIOP and bridging - support, as well as the optional DCE-CIOP protocol. - -* CORBA 1.2 specification, OMG TC Document 93-12-43. This is the - base document on which the CORBA 2.0 CORE specifications build. - -* Universal Networked Objects (UNO), OMG TC Document 94-9-32. Until - the CORBA 2.0/CORE document is published, replacing the CORBA 1.2, - initialisation, and IFR specifications, you must use this earlier - version of UNO to see (only!) the specification for DSI and several - other CORBA CORE extensions (for bridging) adopted by the OMG. - [ NOTE: use the IIOP specification in 95-3-10, not the one here; - 95-3-10 has changes required by the IFR specification, 95-11-7. ] - -* Initialisation, OMG TC Document 94-10-24. This defines the portable - APIs for initialising ORBs. - -* Interface Repository, OMG TC Document 94-11-7. This updates the - CORBA specifications above and is referenced by the UNO document. - -* IDL C++ Language Mapping Specification, OMG TC Document 94-9-14. - This defines the mapping of CORBA 1.2, including OMG-IDL, onto C++. - -There are a few inconsistencies between these documents, which are in the -process of being resolved. The inconsistencies arose because different -groups worked on different parts of the system, at different times and -with some different goals. Contact the various revision committees to -find out how these differences are being resolved: - - - interop@omg.org ... the interop revision task force (RTF) - - cxx_revision@omg.org ... the C++ RTF - - orb_revision@omg.org ... the general ORB RTF - -Also, note that these ORB specifications correspond to only the lowest levels -of OMG's Object Management Architecture. In particular, the "Object Services" -define object interfaces for naming, events, persistence, relationships, -lifecycle, externalization, transactions, and concurrency control. Also, -"Common Facilities" objects will address such things as compound document -architecture. If you intend to develop software based on ORBs, these -specifications are likely to be of interest. The OMA is available in -technical bookstores: - - Richard Soley (ed.), Object Management Architecture Guide, - Second Edition, John Wiley & Sons, New York, 1992. - - -ACQUIRING REFERENCE DOCUMENTS ------------------------------ -To acquire those reference documents, use the OMG document server through -Internet email. Send a message to "server@omg.org", with content lines -such as - - send help - -to get directions about how to use the server, or - - send docs/95-3-10.ps - -to get a PostScript copy of any particular document. (OMG specifications -are available only in PostScript.) - -The OMG document server is maintained for use by OMG members, but is also -available for general Internet access. Only members will be supported in -the case of problems. - -To find out more about the OMG, send email to "omg@omg.org", or look -at the Web page at "http://www.omg.org". - diff --git a/TAO/docs/compiler.html b/TAO/docs/compiler.html deleted file mode 100644 index 61ae35b0fa2..00000000000 --- a/TAO/docs/compiler.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - TAO IDL compiler User's Guide - - - - - -


-

TAO IDL compiler User's Guide

-

Scope

- -

- This document describes the options and features of TAO IDL - compiler, - it is not a reference manual or tutorial on IDL. -

- -

Generated Files

- -

- The IDL compiler generates 6 files from each .idl - file, - the file names are obtained by taking the IDL basename and - appending - C.h, - C.i, - C.cpp, - S.h, - S.i - and S.cpp; - the client stubs are declared in the C.h file, - the skeletons in the S.h file. -

- -

- Both clients and servers should link against the object files - for the stubs and skeletons, - this is needed to transparently support collocated objects. -

- -

Options

- -

- The IDL compiler invokes your C - (or C++) preprocessor to resolve included IDL files, - it receives the common options for preprocessors - (such as -D or -I); - but also receives other options that are specific to it. -

- -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
OptionDescription
-VThe compiler printouts its version and exits
-Wb,option_list - Pass options to the backend.
export_macro=macro_name - The compiler will emit - macro_name - right after each class or extern - keyword, - this is needed for Windows/NT that requires special - directives to export symbols from DLLs, - usually the definition is just a space on unix platforms. -
export_include=include_path - The compiler will generate code to include - include_path at the top of the client header, - this is usually a good place to define the export macro. -
-EOnly invoke the preprocessor
-Wp,option_list - Pass options to the preprocessor.
-Dmacro_definitionIt is passed to the preprocessor
-Umacro_nameIt is passed to the preprocessor
-Iinclude_pathIt is passed to the preprocessor
-AassertionIt is passed to the preprocessor
-YIt is passed to the preprocessor
-

- -

-

Carlos O'Ryan
- - diff --git a/TAO/docs/components.html b/TAO/docs/components.html deleted file mode 100644 index 9e782b2709a..00000000000 --- a/TAO/docs/components.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - TAO Component Documentation - - - - -
-

Component Documentation

- -

The following documentation is available on certain TAO components:

- -
    -
  • Options ­ describes the - options available to customize various components within TAO. - These customizations can be done by an end-user and do not - require C++ programming.

    - -

  • Configuration ­ - describes how to mix and match component options to customize - how TAO processes requests. For example, this - document explains how to configure TAO to process - all request in one thread, each request in a separate thread, or each connection - in a separate thread, etc.

    - -

- - -


-Back to the TAO documentation index. - - - - diff --git a/TAO/docs/configurations.html b/TAO/docs/configurations.html deleted file mode 100644 index fa1b2e68e2e..00000000000 --- a/TAO/docs/configurations.html +++ /dev/null @@ -1,301 +0,0 @@ - - - - Configuring TAO's Components - - - - -

Configuring TAO's Components

- -

Overview

-
-

As described in the options - documentation, various components in TAO can be "tuned" by specifying - options for those components. Here we present some examples of how to - combine these options to achieve certain effects on ORB operations.

-
- -

Where Are Options Specified?

-
-

TAO configures itself using the ACE Service Configurator - framework. Thus, options are specified in the familiar - svc.conf file (if you want to use a different file - name, use the -ORBsvcconf - option

-
- - -

Roadmap

- -
-

Details for the following configurations are provided.

- - - -

Each configuration has the following information:

- -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Typical UseA brief description of the scenario and its typical use.
Number ThreadsThe number of threads used by ORB-related activities.
Thread CreatorIdentifies the creator of the threads discussed above.
Resource LocationWhere information on various resources is stored.
Thread taskDescribes what task is undertaken for each thread.
OptionsSpecifies the options for each service in order to utilize this configuration.
-

- -
- -

Configurations

- -
- -

Single-threaded, reactive model.

- -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Typical Use - This is definitely the most common use of an ORB in a - server situation, where there is a single thread handling - requests from multiple clients. -
Number Threads1
Thread CreatorOperating System or whoever creates the main thread in a process.
Resource LocationResources are stored process-wide.
Thread taskThe single thread processes all connection requests and CORBA messages.
Options - TAO_Resource_Manager: -ORBresources global
- TAO_Server_Strategy_Factory: -ORBconcurrency reactive -
-

- -

Multiple threads, thread-per-connection model.

- -

- - - - - - - - - - - - - - - - - - - - - - - - - -
Typical UseA brief description of the scenario and its typical use.
Number ThreadsThe number of threads used by ORB-related activities.
Thread CreatorIdentifies the creator of the threads discussed above.
Resource LocationWhere information on various resources is stored.
Thread taskDescribes what task is undertaken for each thread.
-

- -

Multiple threads, orb-per-thread model.

- -

- - - - - - - - - - - - - - - - - - - - - - - - - -
Typical UseA brief description of the scenario and its typical use.
Number ThreadsThe number of threads used by ORB-related activities.
Thread CreatorIdentifies the creator of the threads discussed above.
Resource LocationWhere information on various resources is stored.
Thread taskDescribes what task is undertaken for each thread.
-

- -

Multiple threads, orb-per-thread, thread-per-connection - model.

- -

- - - - - - - - - - - - - - - - - - - - - - - - - -
Typical UseA brief description of the scenario and its typical use.
Number ThreadsThe number of threads used by ORB-related activities.
Thread CreatorIdentifies the creator of the threads discussed above.
Resource LocationWhere information on various resources is stored.
Thread taskDescribes what task is undertaken for each thread.
-

- -

Multiple threads, thread-pool model. - (Not yet implemented.)

- -

- - - - - - - - - - - - - - - - - - - - - - - - - -
Typical UseA brief description of the scenario and its typical use.
Number ThreadsThe number of threads used by ORB-related activities.
Thread CreatorIdentifies the creator of the threads discussed above.
Resource LocationWhere information on various resources is stored.
Thread taskDescribes what task is undertaken for each thread.
-

- -

Multiple threads, orb-per-thread, thread-pool model. (Not yet implemented.)

- -

- - - - - - - - - - - - - - - - - - - - - - - - - -
Typical UseA brief description of the scenario and its typical use.
Number ThreadsThe number of threads used by ORB-related activities.
Thread CreatorIdentifies the creator of the threads discussed above.
Resource LocationWhere information on various resources is stored.
Thread taskDescribes what task is undertaken for each thread.
-

- -
- - - -


-Back to the TAO components documentation. - - - - diff --git a/TAO/docs/forwarding.html b/TAO/docs/forwarding.html deleted file mode 100644 index d94c67254d5..00000000000 --- a/TAO/docs/forwarding.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - Implementation of location forwarding - - - - - -


-

Location forwarding

-
-

Context

- The motivation to support location forwarding for objects is - to allow objects to move or forward certain requests to other objects. - Moving of objects is very important for the Common Object Services - LifeCycle Service. An objet complying to the LifeCycleObject interface, - defined by the LifeCycle Service should support the move operation. The move - operation allows the client to keep its object reference to the object, - but the object is going to be relocated on the same or a different server. - Making location forwarding transparent to the client is the most important - issue. - -

Communication between server and client

- GIOP defines a message named "LOCATION_FORWARD", which should be used to - inform the client stub, that the object has been moved. The message body - has to contain an object reference to the new location of the forwarded - object. - - -

Server side implementation

- Two approaches are possible, one is that the POA replaces the object with - a forwarding servant, which knows the new location. This servant will then - raise an exception each it time it is called, as supposed to be the - actual object. The exception will be a user exception and will be caught - in the marshalling code of the server request "IIOP_ServerRequest". The involved - methods are "set_exception", "marshall" and "init_reply". "set_exception" will - check the user exceptions for the special one, only raised by the forwarding - servant and will extract the new location. "init_reply" will then create - the proper GIOP Reply message with the message type set to LOCATION_FORWARD. - The message is encoded into a CDR (Common Data Representation) stream. - - The second approach is to use a POA servant locator for the child POA, where - the object resides on. The servant locator will be used each time the object - will be accessed. Basically two methods, named "preinvoke" and "postinvoke" - are called each time before and after the actual upcall to the object. - Forwarding using the servant locator works in the following way. The object - tells its servant locator that it has moved and supports the servant locator - with the new object reference. The object locator then raises a special system - exception "forward_request" in "preinvoke" each time the object is called from now on. - The exception is then caught by the lowest possible level, when the - system exceptions are going to be marshalled. Which is in "TAO_Server_Connection_Handler", - the involved methods are "handle_input" and "send_error". "handle_input" - checks for errors (involving exceptions) and calls "send_error" to create - the proper GIOP Reply containing either the system exception or - the location forwarding in case the system exception was the - "forward_request" exception. - -

Client side implementation

- The client has to expect the location forwarding GIOP message and should - respond to it in setting the IIOP_Profile of its IIOP_Object right. - The IIOP_Object is a low level object, to which CORBA::Object has a - pointer to. The reply type is determined by "TAO_GIOP_Invocation::invoke" - which then calls "TAO_GIOP_Invocation::location_forward". "location_forward" - sets the changes the IIOP_Profile of the object. The call is then - reissued by "TAO_IIOP_Object::do_static_call". - - -

Conclusion

- Changing the IIOP_Profile is transparent to the client. So the - client gets no idea, that the object now resides somewhere else. - -
- For more details and questions, -

- -

Michael Kircher
-

-

Irfan Pyarali
- - - diff --git a/TAO/docs/index.html b/TAO/docs/index.html deleted file mode 100644 index 5c8de5e7908..00000000000 --- a/TAO/docs/index.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - TAO Documentation - - - - -
-

TAO Documentation

- -
- - - - - -
-
-
Technical Overview

-

Event Service Tutorial

-

TAO Viewgraphs

- -

-
-
-
Component Configuration

-

TAO IDL Compiler Options

-

ORB services directories

- -

-
-
-
Release Notes

-

POA Migration Notes

-

Reactivator service

-

-
-
- -


-Back to the TAO home page. - - - - diff --git a/TAO/docs/orbsvcs.html b/TAO/docs/orbsvcs.html deleted file mode 100644 index f16fcafd7b5..00000000000 --- a/TAO/docs/orbsvcs.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - TAO's CORBA Object Services Documentation - - - - - -


-

TAO's CORBA Object Services Directory Hierarchy

- -

The file and directory organization for TAO services can be - confusing at first glance (and even on subsequent ones to be - honest), - so we felt like some rationale and explanation of the directory - hierarchy was needed.

- -

For general sanity all TAO services files are located under - $TAO_ROOT/orbsvcs.

- -

It is expected that clients use more - than one service at the same time - (in fact some of the services already do, for instance the - Event Service uses the Naming Service and the - Scheduling Service). - For this reason all the services stubs are grouped in one - library. - This library is located in - $TAO_ROOT/orbsvcs/orbsvcs. - Usually the include path is only $TAO_ROOT/orbsvcs, - so files are included like this:

- -

-#include "orbsvcs/CosNamingC.h" -

- -

To simplify the IDL generation the skeletons are also on the - library, - this is not a problem for client programs and most services need - to link the library anyway - (since they use other services.) - Further, - the current support for collocation requires that clients link - the skeleton files anyway. -

- -

In the future we intend to use ACE Service Configurator to give - the users control over collocation of the services implementation. - As a first cut all the service implementations are included in the - orbsvcs library $TAO_ROOT/orbsvcs/orbsvcs. - Since there are serveral services and each one is implemented - using several files we have given a different directory to each - service. - This structure could also simplify a future split into several - libraries (if it proves necessary). -

- -

The complete list of directories is:

- -

- - - - - - - - - - - - - - - - - - - - - - -
ServiceImplementation Sub-directory
A/V Streams Serviceorbsvcs/AV
Concurrency Serviceorbsvcs/Concurrency
Event Serviceorbsvcs/Event
LifeCycle Serviceorbsvcs/LifeCycle
Logging Serviceorbsvcs/Log
Naming Serviceorbsvcs/Naming
Property Serviceorbsvcs/Property
Scheduling Serviceorbsvcs/Sched
Trading Serviceorbsvcs/Trader
-

- -

Note that in the current version of TAO we still have standalone - binaries for some of the services. However, some applications - may want to control what process implements a particular service. - Therefore, it has proved useful for - debugging purposes to keep the most used services separated. - The binaries in question are located in - $TAO_ROOT/orbsvcs, and the list includes: -

- -
    -
  • Concurrenty_Service
  • -
  • Dump_Schedule
  • -
  • LifeCycle_Service
  • -
  • Event_Service
  • -
  • Naming_Service
  • -
  • Scheduling_Service
  • -
  • Trading_Service
  • -
- -

In the future we plan to use a single binary and ACE Service - Configurator and keep a single binary.

- -

Finally the tests and example programs are located in - $TAO_ROOT/orbsvcs/tests; - once more each may involves more than a single binary, - so each one is kept in its own directory; - the following list describes the contents of each one: -

- -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Test directoryPurpose
AVStreamsA complete A/V server and client.
ConcurrencyTest the Concurrency Service.
Event_LatencyTest the Event Service and measure end-to-end latency, - it also uses the Scheduling and Naming services.
EC_MultipleConnect two Event Channels using the - EC_Gateway, - measure latency, utilization and minimum spacing.
LoggerAn example logging service using the Naming Service to - locate a factory.
NamingAn advanced test of the Naming Service.
PropertyTesting for the Property Service.
SchedA test of the Scheduling Service.
Simple_NamingA very simple Naming Service test.
SimulatorPrototype implementation of DOVE (DOVE Agent, DOVE - Browser, DOVE MIB, DOVE Application). The DOVE Agent - consists of the Event Channel, which is then connected to - a DOVE Browser implemented in Java.
Trading_ServiceImplementation of the Trading Service.
-

- -

SEE ALSO

- -

You may you to check TAO - release notes - for up to date information on status, changes, future work, etc.

- -
- -
Carlos O'Ryan
- - diff --git a/TAO/docs/poa_migration.html b/TAO/docs/poa_migration.html deleted file mode 100644 index 5623a283698..00000000000 --- a/TAO/docs/poa_migration.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - Migrating from the BOA to the POA - - - - -

-

Migrating from BOA to POA

- -
    -
  • Client side

    -

      -
    • Very little has changed, and some have not needed any changes.
    • -

    • You'll have to insure that the Makefile includes .o's for both the server -and client; this is necessary to support collocation.
    • -

    - -
  • Server side

    -

      -
    • POA_init() is replaced with resolve_initial_references("RootPOA") followed -by a _narrow operation.
    • -

    • The implementation no longer inherits from the client-side stub; they -inherit from PortableServer::ServantBase. The implications of this are (a) if -you want a object reference for that, you must use the _this() method.
    • -

    • Object ID's are assigned by the POA unless you activate the servant with a -specific ID; IDL_Cubit has examples on how to do this.
    • -

    • Unlike the BOA, the POA explicitly addresses the temporal nature of servants -and declares that a POA can service either transient or persistent servants -(not both). The root POA's (mandated, unchangeable) policy is "transient". -The implications of this are that in order for a client to be able to -manufacture an object reference on its own and use that to access an object, -the servant for that object must be registered with a POA whose policy is -"persistent". Thus, you must create a child POA with that policy and register -the servant with that POA. NOTE: when the POA declares something as -"persistent", it is only stating that the key is valid between different runs -of the server; it makes no claims that state or anything else is persistent.
    • - -

        -
      • Servants are not automatically activated, hence you must register - them by calling some of the activate_object* methods on a POA or - calling _this() on the servant; with the latest you have no control on - the ObjectId (which sometimes is good), and the POA must support the - right policies (the RootPOA does).
      • - -

      • Servant constructors use to take a parameter to set - they object id, this is not needed now, in fact in many cases they use - to pass this argument to the skeleton class: this will fail now.
      • -

      -This list is not intended to be exhaustive, but should give you a good -starting point. If you find things along the way which have to change and I -didn't note them, please send them to me. Perhaps we can work together on the -ultimate migration document.

      -

    -
- -

- -Back to the TAO -documentation page. - - - - diff --git a/TAO/docs/reactivator.html b/TAO/docs/reactivator.html deleted file mode 100644 index 71ab9c5d64d..00000000000 --- a/TAO/docs/reactivator.html +++ /dev/null @@ -1,358 +0,0 @@ - - - - -TAO Reactivation Service - - - - - -


-

-TAO Reactivation Service -

- -This document describes the proposed design of the TAO reactivator. -If you have any comments or suggestions for improvement, please let me know.

- -


- -

-Goals of the Reactivation Service -

- -The Reactivation Service will add support to TAO's architecture so -that servers using Persistent Object References (defined in the -Portable Object Adapter (POA) specification) can be restarted. This -service will allow servers to come and go without invalidating the -Persistent Object References that they use. - -

-Constraints when using the Reactivation Service -

- -
    - -
  • - -When a server is restarted by the Reactivation Service, it must be -able to recreate enough state to deal correctly with the request -issued by a client on the Persistent Object Reference. Therefore, the -restarted server's endpoint must be the same endpoint specified in the -Persistent Object Reference. Unless dynamic servant and POA activation -is used, the restarted server must also recreate the POA in which the -Persistent object was registered and register the persistent object -with that POA. - -
  • - -The Reactivation Service will track all processes it has restarted. It -will ensure that multiple instances of same server processes are not -started simultaneously. - -
  • -The use of the Reactivation Service in TAO will be optional. Real-time -applications can choose not to use the Reactivation Service. - -
- -

-Alternate Implementations -

- - -Other ORB vendors use alternative techniques for Activation / -Reactivation Services. These techniques usually require new naming -techniques for persistent objects and new client-side APIs to bind to -persistent objects. TAO's Reactivation Service will not require such -extensions. -

- -One implementation of an Activation / Reactivation Service is to use -an Object Reference that points to the Activation Service instead of -pointing directly to the persistent object. This extra level of -indirection is used by the Activation Service to start the server, and -then use the Location Forwarding mechanism to forward the client -request to the server. This technique forces clients to use the -Activation Service (at least once) even when the server is already -running. -

- -

-Design Constraints of the Reactivation Service -

- -This design makes TAO dependent on the Reactivation Service. -

- -


-

-Implementation -

- -Here is a preliminary interface of the Reactivation Service in IDL: - -
-module TAO
-{
-  // ....
-
-  exception Already_Registered {};
-  // Object already bound in the Reactivator
-
-  exception Object_Not_Persistent {};
-  // Object is not persistent
-
-  exception Not_Found {};
-  // Object not found in the Reactivator  
-  
-  struct Environment_Variable
-  {
-    string name_;
-    string value_;
-  };
-  // One environment variable
-      
-  typedef sequence<Environment_Variable> Environment;
-  // Complete environment
-
-  typedef sequence<string> Command_Line_Options;
-  // Command line options
-
-  struct Process_Options
-    {
-      string executable_name_;
-      // Executable name
-
-      Command_Line_Options command_line_options_; 
-      // Command line options
-
-      Environment environment_; 
-      // Environment
-
-      string working_directory_;  
-      // Working directory
-
-      unsigned long creation_flags_;
-      // Creation flags
-    };
-
-  interface Reactivator
-    {
-      boolean reactivate_object (in Object obj)
-	raises (Not_Found);
-      // Restart server that will contain this persistent object
-      //
-      // The <Not_Found> exception is raised when <obj> is not found
-      // in the Reactivation Service.
-
-      void register_object (in Object obj,
-                            in Process_Options options)
-	raises (Already_Registered,
-                Object_Not_Persistent);
-      // Restart server process when client is looking for <obj>.
-      //
-      // The <Already_Registered> exception is raised when <obj> has
-      // already been registered with the Reactivation Service.
-      // 
-      // The <Object_Not_Persistent> exception is raised when <obj> is
-      // not a Persistent Object Reference.
-
-      enum Host_Port_Options
-      {
-        NONE,
-        HOST,
-        PORT,
-        HOST_AND_PORT
-      };
-      //  NONE: Use no information from the Object Reference
-      //
-      //  HOST: Use the host information taken from the Object
-      //  Reference (-ORBhost)
-      //
-      //  PORT: Use the port information taken from the Object
-      //  Reference (-ORBport)
-      //
-      //  HOST_AND_PORT: Use both the host and port information from
-      //  the Object Reference (-ORBport) and (-ORBhost)
-
-      void register_object_using_info_in_ior (in Object obj,
-                                              in Process_Options options,
-                                              in Host_Port_Options host_port_options)
-	raises (Already_Registered,
-                Object_Not_Persistent);
-      // Restart server process <executable_name> when client is
-      // looking for <obj>. Depending on the <host_port_options>,
-      // information from the <obj> object reference is used to
-      // specify (-ORBport) and (-ORBhost) options for the server.
-      
-      void reregister_object (in Object obj,
-                              in Process_Options options)
-	raises (Not_Found,
-                Object_Not_Persistent);
-
-      void reregister_object_using_info_in_ior (in Object obj,
-                                                in Process_Options options,
-                                                in Host_Port_Options host_port_options)
-	raises (Not_Found,
-                Object_Not_Persistent);
-      // The above reregister methods are similar to the register
-      // methods except they are used for rebinding.
-
-      void remove_object (in Object obj)
-	raises (Not_Found);
-      // Remove <obj> from the Reactivation Service.
-      //
-      // The <Not_Found> exception is raised when <obj> is not found
-      // in the Reactivation Service.
-    };
-};
-
- -
-

-Accessing the Reactivation Service -

- -Servers can use either of the following techniques to get access to -the Reactivation Service. Remember that the Reactivation Service will -be transparent to the clients. - -
    - -
  • -Use ORB::resolve_initial_reference ("TAO Reactivation Service") -
    - -This works like the bootstrapping mechanism to obtain the Naming -Service. This method will return the reference to a Reactivation -Service. -

    - -

  • -Use a Helper Application -
    -A helper application will be part of the Reactivation Service. It -will be a command-line utility that will assist users with adding and -removing Persistent Object References from the Reactivation Service. -

    - -

- -

-Locating an instance of Reactivation Service -

- -

-Server side -

- -The Reactivation Service will be located on the same host as the -server. If not, host information can be specified through command -line options or environment variables. The default port of the -Reactivation Service can be overwriting through command line options -or environment variables. - -

-Client side -

- -The correct Reactivation Service will be located by multicasting (on a -default multicast group) the Persistent Object Reference the client is -interested in. The default multicast group can be overwriting through -command line options or environment variables. If multicasting is not -preferred, the location of a the Reactivation Service will be assumed -to be the same as the Persistent Object. The default port of the -Reactivation Service can be overwriting through command line options -or environment variables. - -
-

-Reactivation algorithm used on the Client Side -

- -
    - -
  • -Client obtains an Object Reference - -
  • -Then it makes a request on the Object Reference. If the IOR has -multiple Object References, then it will try all of the Object -References until one succeeds - -
  • - -If all of the Object References fail, then for each Object Reference -in the IOR, the following steps will be taken to reactivate the -server - -
  • -The ORB examines the Object Reference - -
  • -If it is a Transient Object Reference, then the call fails - -
  • -If multicast is available: - -
      - -
    • -Multicast the Object Reference to a group of Reactivation Services - -
    • -Wait until response or a timeout. The response will contain the -Object Reference of a Reactivation Service that knows about the Object -Reference - -

      -

    - -
  • -If no multicast: - -
      - -
    • -Extract the host from the Persistent Object Reference - -
    • -Manufacture an Object Reference for the Reactivation Service - -

      -

    - -
  • -Now connect to the Reactivation Service - -
  • -Call reactivate () passing the Persistent Object Reference - -
  • -Reactivation service sends back a yes / no response - -
  • -If "yes", retry the request using the Persistent Object Reference -again. If request fails, then fail (no more retries) - -
  • -If "no", then fail - -
- -

- -Back to the TAO -documentation page. - - - - - diff --git a/TAO/docs/releasenotes.html b/TAO/docs/releasenotes.html deleted file mode 100644 index 21854918af1..00000000000 --- a/TAO/docs/releasenotes.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - TAO Release Information and TODO List - - - -

-

-Release Information for The ACE ORB (TAO)

- -
-

-Version 0.0.12

- -
-

-17-October-1997

- -
- -This document has moved here. - - diff --git a/TAO/docs/releasenotes/ec.html b/TAO/docs/releasenotes/ec.html deleted file mode 100644 index de0f72af5fe..00000000000 --- a/TAO/docs/releasenotes/ec.html +++ /dev/null @@ -1,182 +0,0 @@ - - - - - Event Service Status - - - - -

Event Service Status

- Point of contact: Carlos O'Ryan - -

Last Updated: $Date$

- -

New on this release

- -
    -
  • The Gateway to connect two event channels was - moved from a test to the library. - The corresponding test (EC_Multiple) has been - expanded and improved.
  • -
- -

Known issues:

-
-
The schedule cannot be downloaded
-
- The Scheduling Service seems to compute proper schedules, - but it is not possible to download them, - apparently there is a marshalling problem for sequences of - complex structures. - -

Due to this problem we have been unable to test the - run-time scheduler and performance it is impossible to - complete performance measurements and optimizations: - the (global) scheduling service latency and overhead is at - least as large as the EC itself.

-
- -
Run-time scheduler requires re-link
-
- During a normal execution of the system - there is no - need to use the a global Real-time Scheduling Service, - a faster, - collocated implementation for the service is available. - Obviously the scheduling information is precomputed in some - config run. - -

Unfortunately the current scheme requires a relink of all the - involved applications against the generated tables for the - run-time scheduling service.

- -

We should be able to download the schedule to the interested - parties, - without need for a separate link phase. - This will simplify and speed up the developing cycle, - but requires a (small and fixed) amount of dynamic memory - allocation. - It could be interesting to "save" the schedule computation in - some persistent form, - so startup cost are lower too.

- -

The current design contemplates a config run were a global - consumer accumulates the QoS requirements of all the objects, - next an external utility is used to force a computation and - save of the schedule. - In future executions - the global scheduler pre-loads this schedule and - the clients simply download the precomputed schedule, - and all scheduling queries are to a local scheduling service, - without any further contact to the global instance.

-
- -
Users have no control over service - collocations
-
- The user should have complete control of services collocation, - using ACE Service Configurator; - currently the services must be explicitly instantiated by the - user. -
- -
- -

Examples

- -

For general documentation on the Event Service please read - - The Design and Performance of a Real-time CORBA Event - Service. - -

The simplest test for the Event Channel is - Event_Latency, - below are the basic instructions to run it:

- -
    -
  1. Compile everything under $TAO_ROOT/orbsvcs, this - needs, obviously, $TAO_ROOT/tao and - the IDL compiler in $TAO_ROOT/TAO_IDL.
  2. - -
  3. Run the naming service, the scheduling service, the event service - and the test in - $TAO_ROOT/TAO/orbsvcs/tests/Event_Latency; - remember to give a different port to each one, - using the -ORBport option. As in:

    - - -

    - $ cd $TAO_ROOT/orbsvcs -

    -

    -$ cd Naming_Service ; ./Naming_Service -ORBport 10000 & -

    -

    -$ cd Scheduling_Service ; ./Scheduling_Service -ORBport 10010 & -

    -

    -$ cd Event_Service ; ./Event_Service -ORBport 10020 & -

    -

    -$ cd tests/Event_Latency ; ./Event_Latency -ORBport 10030 -m 20 & -

    -
    - - You may want to run each program in a separate window. -
  4. - -
  5. If you want real-time behavior on Solaris you may need to run - these programs as root; on the other hand, this particular - example really has no priority inversion, since only one - thread runs at a time.
  6. -
- -

Another example is EC_Multiple, - numerous examples on how to run this test can be found in the - scripts located in - $TAO_ROOT/orbsvcs/tests/EC_Multiple.

- -

Features in previous releases

- -
    -
  • -

    - When several suppliers are consumers are distributed over the - network it could be nice to exploit locality and have a - separate Event Channel on each process (or host). - Only when an event is required by some remote consumer we need - to send it through the network.

    - -

    - The basic architecture to achieve this seems very simple, - each Event Channel has a proxy that connects to the EC peers, - providing a "merge" of its (local) consumer subscriptions as - its own subscription list.

    - -

    - Locally the proxy connects as a supplier, - publishing all the events it has register for.

    - -

    - To avoid event looping the events carry a time-to-live field - that is decremented each time the event goes through a proxy, - when the TTL gets to zero the event is not propagated by the - proxy.

    - -

    - In the current release an experimental implementation is - provided, - it basically hardcodes all the subscriptions and publications, - we are researching on how to automatically build the - publication list.

    -
  • - -
  • - We use the COS Time Service types (not the services) to - specify time for the Event Service and Scheduling Service.

    -
  • -
- - - diff --git a/TAO/docs/releasenotes/index.html b/TAO/docs/releasenotes/index.html deleted file mode 100644 index df9a232eba0..00000000000 --- a/TAO/docs/releasenotes/index.html +++ /dev/null @@ -1,607 +0,0 @@ - - - - - TAO Release Information and TODO List - - - -
-
- -
-

-Release Information for The ACE ORB (TAO)

-Information is available on the following topics related to the current -release of TAO: - - -A complete list of all modifications to TAO is available in the ChangeLog.

- -


- -
-

-IDL Compiler

-Point of contact: Aniruddha Gokhale - -

Current status: (As of June 11th, 1998.) -

    -
  • -Added support for Arrays. Right now, support for typedefed arrays is -in. Still needs testing. -
  • -
  • -Added support for TIE classes. If the interfaces are defined inside -modules, then the TIE class and its code gets generated inside a -conditional macro. For platforms that support namespaces, this macro -will allow these TIE classes else they get commented out. The reason -to do this is because nested templates have problems on most compilers. -
  • - -
  • -The <<= and >>= operators for user-defined types are now generated.
  • - -
  • -Completely redesigned the IDL compiler using the Visitor patterns. Many -incomplete issues have been resolved. These include support for "sequence -of typecodes", passing object references as in, inout, and out parameters. -Code generation for sequences is also properly handled i.e., for a named -sequence such as "typedef sequence CharSeq;", we now generate -a new class (and hence a type) called "class CharSeq". Arrays are still -being worked out and will be done soon. An important difference in the -generated code is that the skeletons now use a table driven approach very -similar to the stubs.
  • - -
  • -Support for the "native" keyword added.
  • - -
  • -Introduced tests for object references to TAO. Still incomplete.
  • - -
  • -Param_Test example is able to test string sequences, fixed structs, variable -sized structs and nested structs
  • - -
  • -Param_Test test suite can now test fixed structs and string sequences.This -needed bug fixes to TAO ORB core.
  • - -
  • -A new test to test all the parameter passing modes for a number of data -types has been added. At this point in time, it tests primitive types and -strings. Other tests will be added. Bugs discovered thru these tests have -been fixed.
  • - -
  • -Very preliminary support for arrays. Not working yet.
  • - -
  • -Many bugs associated with stub generation fixed. This included support -for return values that are variable sized IDL types. Unions improved.
  • - -
  • -Support for sequences of strings and object references added. However, -it is not tested yet so there may be some bugs. We should have these fixed -in a day or so.
  • - -
  • -Support for handling exceptions added. TAO does not use direct C++ exceptions. -Instead it uses the CORBA::Environment based approach.
  • - -
  • -Sequences as out parameters have been tested in the IDL_Cubit example. -A test suite is currently being built to test all the parameter passing -modes on a variety of IDL data types.
  • - -
  • -Support for attributes completed. Not tested yet.
  • - -
  • -The problem of incorrect code generation for typedefs defined in an imported -file is resolved.
  • - -
  • -Problems when interfaces use single or multiple inheritance solved. The -problem was with the demultiplexing code, the generated operation tables, -and the dispatching mechanism. We are currently testing this with the Event -Channel code.
  • - -
  • -The problems arising due to public virtual inheritance when casting from -an interface class to CORBA::Object_ptr has been solved. We do this casting -inside the stubs/skeletons rather than first converting an interface class -pointer to a void*, storing it in an Any, and casting it to CORBA::Object_ptr -in the encode/decode methods. The casting inside the stubs/skeletons work -because the compiler has knowledge of both types.
  • - -
  • -The compiler generates correct code for COSS Naming service and it runs -properly. Correct code also gets generated for the Event Channel program
  • - -
  • -Include files are handled properly. So are the definitions used inside -the include files that are used in the currently parsed files.
  • - -
  • -IN, INOUT, and OUT object reference parameters are now supported properly. -We think the same approach should work for sequences, structs, and unions.
  • - -
  • -Many IDL constructs supported including primitive types, typedefs, sequences, -structures, and unions.
  • - -
  • -Generates C++ stubs and skeletons that use TAO's interpretive -IIOP protocol engine.
  • - -
  • -Generated code closely follows the C++ Mapping specified in the POA Specification -(ORBOS/97-05-15).
  • - -
  • -Support dynamic libraries on NT, i.e., marking classes for DLL export was -added. Two backend options control the name of the export macro, and the -name of an extra include file were the macro is defined; the options are --Wp,export_macro=MACRO_NAME -Wp,export_include=INCLUDE_NAME.
  • -
-Known bugs/unimplemented constructs: -
    -
  • -Generation of Managed types must somehow be moved to the ORB Core
  • - -
  • -We need support for ``TIEs'' (i.e., the object form of the Adapter pattern).
  • - -
  • -TypeCode generation for multidimensional arrays and indirected typecodes -is still a problem.
  • - -
  • -Unions with default cases yet to be handled
  • - -
  • -Deal with names in the IDL definition that are C++ keywords.
  • - -
  • -IDL is case-insensitive. However, it looks like our front-end is case-sensitive. -Thanks to Anil Gopinath (anil@ittc.ukans.edu) for pointing this out.
  • - -
  • -tao_idl generates code for a *.idl file only inside the directory where -the *.idl resides. However, it may be required to generate code elsewhere -i.e., in the directory where the compiler was invoked. Thanks to Tom Richards -(tomr@MCMEnterprise.com) for this suggestion.
  • -
-Future work: -
    -
  • -Need to relocate the various libraries used by the IDL compiler out of -the ACE directory. Having them here can cause problems when working with -multiple versions of TAO and a single version of ACE.
  • - -
  • -Improve IDL compiler to generate compiled form of stubs/skeletons.
  • - -
  • -Fix bugs in the SunSoft IDL front-end we've uncovered. These primarily -include support for Unions.
  • - -
  • -Add command line options to TAO IDL. These options will decide what strategy -to use for operation name demultiplexing. Another option may decide whether -to use the interpretive IIOP engine or generate compiled stubs/skeletons.
  • - -
  • -Use Flick (from -the University of Utah) to generate compiled stubs.
  • - - -

    Goal is to measure the code size of the interpretive stubs generated -by TAO IDL compiler vs code size of compiled stubs. Then compare -the performance of each. We want to prove the thesis that TAO IDL compiler -generated interpretive stubs have a small code size, yet are comparable -in performance (or slightly less) than compiled stubs. Hence, it will be -useful for small distributed equipment such as handsets, PDAs, etc. - -

    In doing the above, improvements to the IIOP protocol engine in terms -of size/performance/determinism will be made. -

  • -Tweak the IDL compiler to generate code that's more easily integrated back -into the ORB Core, e.g., POA, etc. This will depend largely on our ability -to generalize the changes necessary to generated code.
  • -

- -
-

-Portable Object Adapter

-Point of contact: Irfan Pyarali - -

Current Status: -

    -
  • -TAO fully supports the POA spec. This section will carry updates as available.
  • -
-Known issues: -
-
-Support for collocation is not complete.
- -
-If an object which should be collocated is created via string_to_object, -it is created as a remote object rather than collocated.
-
-Critical work: -
    -
  • -None.
  • -
-Future work: -
    -
  • -Determine the degree to which we will support the full semantics of remote -objects on a collocated object. The spec mandates that collocated object -should behave exactly like remote objects, but that means that request -will have to be queued rather than calling a method directly, and this -could be hazardous to our quest for real-time ORB status.
  • - -
  • -Provide extensions of the specification to ensure real-time delivery of -messages.
  • -
- -
-
-

-CORBA Naming Service

-Point of contact: Sergio Flores-Gaitan -and Marina Spivak - -

Current status (as of Feb 27th): -

    -
  • -The Naming Service implementation is complete.
  • -
-Future work: -
    -
  • -Currently the bindings are stored as a table in memory. Future work will -include a persistent database to store the bindings.
  • - -
  • -Replication of the bindings to other Naming Service's currently running. -It will probably be modeled after the LDAP Multi-Master Replication Protocol. -For more information on this replication protocol please read LDAP -Multi-Master Replication Protocol
  • -
-For general documentation on the Naming Service please read The -Naming Service Specification. - -

-


-

-CORBA Trading Service

-Point of contact: Seth Widoff - -

Development is complete, and testing and debugging have commenced on -the TAO Trading Service. Currently, it meets the Linked Trader conformance -requirements, in that it supports the Lookup, Register, Admin, and Link -interfaces. The Lookup interface supports subtype searching, preference -sorting, dynamic property evaluation, federated queries, and concurrent -queries as a multi-threaded servant. - -

The Trading Service uses the Object Space implementation of the Standard -Template Library. - -

Future Work: -

    -
  • -The Proxy Interface.
  • - -
  • -Persistent storage of service types and offers.
  • -
-For general documentation of the Trading Service, please read The -Trading Service Specification. - -

-


-

-CORBA Property Service

-Point of contact: Alexander Babu Arulanthu - -

Current status (as of May  02, 1998) -
  -
All the interfaces of this service have been implemented.  Please -go through the  test examples at  $TAO/orbsvcs/tests/CosPropertyService.  -Property Service is  now used by the AVStreams that is currently being -developed for TAO. More testing is being done. - -

For general documentation of the Property Service, please read The -Property Service Specification. - -

-


-

-CORBA Concurrency Control Service

-Point of contact: Torben Worm - -

Current status (as of May 3rd): -

    -
  • -A simple version of the concurrency service has been implemented, -i.e. a version without transactions. It is currently being -tested.
  • -
-Future Work: -
    -
  • -Implementation of the Concurrency Control Service with transactions
  • -
-For general documentation of the Concurrency Control Service, please read -The Concurrency -Control Service Specification. - -

-


-

-CORBA Audio/Video Control Service

-Point of contact: Sumedh Mungee -and Nagarajan Surendran - -

This is an implementation of the OMG spec addressing the Control -and Management of Audio/Video Streams. - -

We are currently implementing the various interfaces defined in the -above spec. We are also working on building a audio/video streaming demo -that will use the above service as the control mechanism and JAWS as an -efficient transport and protocol processing framework. - -

Current Status: -

    -
  • -Implemented the handshake mechanism between the consumer and supplier of -the stream.
  • - -
  • -Implemented a simple version of the stream controller (StreamCtrl).
  • - -
  • -Implemented the VDev and StreamEndPoint base class functionality.
  • - -
  • -Implemented the MMDevice interface, which is a factory for StreamEndPoint -and VDev objects.
  • -
-Work in progress: -
    -
  • -Implementing the SFP protocol
  • - -
  • -Porting the distributed audio/video player developed at OGI -to ACE (and in the future to JAWS)
  • - -
  • -Implementing the CORBA Stream controller for the above audio/video player
  • -
- -
-

-Test & Example Applications

-Point of contact: Nagarajan Surendran - -

Current Status: - -

The TAO IDL_Cubit test application makes use of the Naming Service and -the server holds a TAO_Naming_Server component.Just running server and -client is enough to test the application. - -

The various tests in the tests/POA test the different features of the -Portable Object Adapter interface like Explicit Activation, On Demand Activation,etc.. - -

Future work: - -

Developing a one-buttoned test for all the different TAO tests similar -to the ACE-one buttoned test. - -

MT_Cubit: - -

Current status: - -

The TAO MT_Cubit test application is meant to serve as a starting point -for real-time tests on the TAO system. It comprises the following parts: -

    -
  • -Server. The server creates multiple CORBA objects (servants), each -with different real-time priorities. This priority is implemented by using -real-time thread support provided by the operating system. Thus, requests -sent to a high-priority servant are handled by a high-priority real-time -thread, and those sent to a lower priority servant are handled by correspondingly -lower priority threads.
  • - -
  • -Client. The client component binds to the servants, and sends a -stream of CORBA requests to the servants. It measures the response time, -i.e. the time taken for the request to complete successfully. In particular, -it measures the time taken for requests sent to the high priority servant -to complete. The volume of lower priority requests is configurable. The -client is thus able to measure the performance of the high-priority servant -in the presence of competition from several lower-priority servants.
  • -
-Clearly, if the ORB endsystem handles the priorities of the various requests -correctly, increasing the volume of lower priority requests should not -affect the performance seen by the higher priority requests. The application -thus serves as a tool to measure and confirm this behavior. - -

Future work: -

    -
  • -Study the impacts of scheduling & concurrency strategies on performance.
  • - -
  • -Evolve into a testbed for discovering sources of performance non-determinism -& priority inversion.
  • -
- -
-

-ORB-related ACE Changes

-Points of contact: Nanbor Wang -and Irfan Pyrarli - -

Recently Completed Work: -

    -
  • -Added special declaration to OS.h for inet_ntoa and other functions -because VxWorks doesn't provide full argument prototypes for these library -functions.
  • - -
  • -The current caching connector behaves properly in the face of a non-blocking -connect request. The "fix" is simply to not support non-blocking connects -through the cache. When the connect() fails with EWOULDBLOCK, -morph the error to -1 and clean up the request.
  • - -
  • -Service handlers obtained from the caching connector are now cleaned up. -The application needs to be able to signal that it's not using it any longer, -and, when the application encounters an error, needs to effectively close -down that connection for good so that a new connection can be initiated.
  • - -
    Added the ability for a Svc_Handler to recycle itself. idle() can be -called when the Svc_Handler is done serving a particular connection and -can how be recycled. The Svc_Handler now also has a pointer to a recycler -that is responsible for managing the connections. The recycler is usually -a Cached_Connector. -
    Added new class ACE_Recycling_Strategy. It defines the interface (and -default implementation) for specifying a recycling strategy for a Svc_Handler. -This strategy acts as a consular to the Svc_Handler, preparing it for the -tough times ahead when the Svc_Handler will be recycled. -
    Added new class ACE_NOOP_Concurrency_Strategy. It implements a no-op -activation strategy in order to avoid calling open on a recycled svc_handler -multiple times. -
    ACE_Cached_Connect_Strategy now implements the ACE_Connection_Recycling_Strategy -interface. This allows Svc_Handlers to cache themselves with ACE_Cached_Connect_Strategy -when they become idle. It also allows them to purge themselves from the -connection cache when the Svc_Handlers close down. -
    Also added ~ACE_Cached_Connect_Strategy that will cleanup up the connection -cache.
-Future work: -
None currently scheduled.
- -
-

-The DOVE Demo

-Point of contact: Michael Kircher. - -

DOVE is described in detail on the following site: DOVE -documentation - -

We focus on the following goals at the moment: -

    -
  • -Have a DOVE Browser running using Java Beans as vizualization components.
  • - -
  • -Have the Event Channel as DOVE Agent running with an Event Consumer in -the DOVE Browser.
  • - -
  • -Having a DOVE Management Information Base (MIB), which dumps all events -transfered on the Event Channel into a file on persistent storage for later -reuse.
  • -
-The DOVE Browser uses independent visualization components (Java Beans) -and the Event Channel as DOVE Agent. Connections can be established between -monitored metrics and the visualization components. - -

We have three major components: Observables (monitored metrics), Observers -(a Java Bean for displaying the metric) and a DataHandler (for demultiplexing -the monitored metrics to the appropriate Observables). Each component inherits -from a base class, so that a certain behavior of the components can be -assured for each component. Relationships between components are based -on these base classes. - -

The used Java Beans are required to conform to some standards, as they -have to support a function called "getProperty" which allows the DOVE Browser -to determine if the vizualization capabilities of a specific Java Bean -are sufficient to display the metric. A JavaBean is for example a Java -Panel which shows a Graph of the delivered doubles. So all metrics can -be displayed by this visualization component which can be expressed by -a single double. - -

The DataHandler is connected to the Event Push Consumer (PUSH, because -we use the push concept of the Event Service). The Event Push Consumer -does not know what kind of data is transported. The only component knowing -all the details about the dependencies of the metrics is the DataHandler. -This separation allows easy extension and change of the demo. - -

Object Diagrams -are available about this new concept. - -

Event Service events are used as communication between DOVE Applications -and the DOVE Browser. The DOVE MIB analyses the event data field of all -events and stores this information into a file. The event data filed is -of type CORBA::Any and the DOVE MIB has no notion of what is conveyed in -this field. So the DOVE MIB has to discover the content via the embedded -type code information. Future work includes: -

    -
  • Enhancing MIB functionality
  • -
  • Monitoring the AV Streaming Service
  • -
- -

-


-

-Location forwarding

-Point of contact: Irfan Pyarali, -Michael Kircher. -

-For more information see Location forwarding - -


- -

Back to the TAO documentation index - - diff --git a/TAO/docs/releasenotes/orbcore.html b/TAO/docs/releasenotes/orbcore.html deleted file mode 100644 index fbb5867ebf1..00000000000 --- a/TAO/docs/releasenotes/orbcore.html +++ /dev/null @@ -1,458 +0,0 @@ - - - - - - - ORB Core Status - - - -

ORB & ORB Core

Point of - contact: Nanbor Wang - -

Last Update: $Date$

- -

-Current status: - -

    -
  • Provides dynamically linked wholesale assignment of ORB - strategies for communication, concurrency, demultiplexing, - scheduling, and dispatching using the ACE Service Configurator - framework.
  • - -
  • Supports several concurrency models out of the box: - Reactive, Thread-per-Connection, and ORB-per-thread. The - ORB-per-thread design is optimized for real-time I/O - subsystems.
  • - -
  • Supports resolve_initial_references("NameService") - using ACE support for multicast.
  • -

- -Known issues: -

    -
  • The current demarshalling scheme may not work in cases of - complex types such as sequences of unions or anys or object - references. The engine has difficulty determining the dynamic - type of the objects. - -
  • Object references for objects dynamically created within - a server may not have proper host. (See also recent fix.) - When an object is dynamically created and its object - reference returned, it simply has to "guess" at the host - information that is returned in the IIOP Profile. Currently, it - guesses using the host name, which is a reasonable guess in most - cases. - - However, if there are multiple interfaces on a machine - and they have different host names, it is possible that - the desired effect will not be realized, i.e., the connection to - that new object may use a different interface from the original - object. Currently the only way to change this is to use the -ORBhost option to - manually specify that dynamically-created objects bind to a - specific interface so that their IIOP Profile has the desired - hostname. A more desirable fix is being investigated.

    -

- -Recently Completed Work: - -
    -
  • Making the collocation table configurable. We can either - use a global collocation table to share objects among ORBs, - or use the per-ORB collocation table. - -
  • Implement the inheritance mechanism in - Default_Server_Connection_Handler to access the parent's - POA. This is necessary when we are using - thread-per-connection concurrency model. - -
  • It is often desireable for a server to start up and not have - to specify the TCP port number on which the ORB will listen, - i.e., let the OS decide. While this works properly (by - providing an argument -ORBport 0), the actual - port number used by the server won't be available after the - server starts listening. TAO now tries to bind the address - when -ORBport 0 is issued so it can get the - actual address to publish the IOR for clients' use. - -
  • Added optimization for collocated objects. This - optimization enables TAO to bypass communication layers and - talks to collocated objects directly.
  • - -
  • Broke the tight coupling between CORBA_Object - and IIOP_Object so that multiple - CORBA_Objects can share a single - IIOP_Object. This has a big win in - _narrow operations.
  • - -
  • Eliminated substantial memory leaks in servers.
  • - -
  • Added documentation for -ORBpoa, which - allows individual tweaking of the POA's locality (global - vs. thread-specific) independent of the locality of other - ORB resources. Also, -ORBpoalock - and -ORBpoamgrlock - control locking in the POA and POA manager, respectively, - according to application needs.
  • - -
  • Began the process of changing the internals of TAO to use - the "underbar" namespace mapping. This should be completed - soon.
  • - -
  • The ORBs manipulation of object keys and object ids is now - consistent. Canonically, everything is managed as an opaque - sequence of octets. Conversion to/from strings is permitted, - with non-printables turning into a trigraph \hl where - h is the high nibble digit in hex, and l is the - low nibble in hex.
  • - -
  • CORBA_ORB::run() should be able to be called - multiply in the same execution path now.
  • - -
  • Fixed the LOCATION_FORWARD capabilities to work as - described in the CORBA 2.1 and the POA specification.
  • - -
  • Fixed problem in the IDL Cubit example which caused the - server to dump core when dealing with _out sequence - types ONLY when compiled with G++. It seems that G++ - decided to interpret the expression output == 0 - (where output is of type vector_out) - differently from Sun's C++ compiler.
  • - -
  • Fixed a slight problem in other recent - work where a servant listening on INADDR_ANY - reported an IOR with address 0.0.0.0. It now reports - the default hostname instead.
  • - -
  • Working version of TAO on VxWorks with VME transport.
  • - -
  • TAO now reacts gracefully in the face of a non-existent - svc.conf file or simply missing entries in the - file. It logs a warning message and uses default values - versions of items which it would normally obtain from the - Service Repository.
  • - -
  • Fixed problem where object references - for objects dynamically created within a server do not have - proper host, at least if the desired host was specified using -ORBhost on the - command line.
  • - -
  • Added support for -ORBsndsock and -ORBrcvsock ORB - options. See options - documentation for details.
  • - -
  • Added support for pre-established connections using the -ORBpreconnect - option. This allows connections to be esablished before any - CORBA requests are made. See options - documentation for details.
  • - -
  • Eliminated deprecated -OAxxx options parsed by the - Object Adapter init method but no longer used by - part of the ORB.
  • - -
  • Made argument parsing within the ORB and POA consume the - arguments it parses.
  • - -
  • Placed an optimization in IIOP::Profile that should speed up - invocations on the client side rather substantially. This was - done by caching an instance of ACE_INET_Addr in - the private portion of Profile because the cost - of constructing one for every invocation (in - TAO_GIOP_Invocation::start) was simply - enormous--the construction was something like 100 cycles on - Solaris. This is all because deep down this ends up calling - gethostbyname(), which can be very costly. Of - course, this is platform-dependent, so the improvements may - not be as great on a different platform.
  • - -
  • Got rid of need to have compile in TSS ORB Core - (-DTAO_HAS_TSS_ORBCORE). This is accomplished by - having a Resource Factory (TAO_Resource_Factory) - singleton which the ORB Core consults in order to get pointers - to resources. The Resource Factory can be configured to - return pointers from thread-specific storage, or - process-global storage. By doing this, the ORB Core is - shielded from ever having to know whether or not its resources - are global or not.
  • - -
  • Made all command-line like options look like the - standard-professed options, i.e., -ORBxxx or - -OAxxxx.
  • - -
  • Moved ORB option parsing into - TAO_ORB_Core::init() rather than in - ORB_init().
  • - -
  • Define _FAR for all cases as an interim fix - for LynxOS.
  • - -
  • Fixed TAO so that the default port of 5001 is defined in - orb_core.h config header somewhere rather than in - orbobj.cpp, and use MAXHOSTNAMELEN ACE - constant for the hostname buffer.
  • - -
  • Eliminated need for CORBA::Object to keep a - pointer to its orb sitting around anywhere.
  • - -
  • Tested CORBA_ORB::shutdown() as a manner in - which a thread of control can request that - CORBA_ORB::run() should return and no longer - service requests. It only honors a - wait_for_completion argument of FALSE right - now because we haven't fully explored the issues which - surround doing all the completion.
  • - -
  • Created a brief section in $TAO_ROOT/TAO-INSTALL.html - that briefly documents installation on Unix - platforms. There is also a brief section which documents - issues that apply across ALL platforms, such as the fact that - TAO and its application will likely not work well if your ACE - is linked through Orbix, VisiBroker, or another ORB. ChangeLog discovery attribution for - this should go to Steve Wohlever - <wohlever@mitre.org>.
  • - -
  • Implemented CORBA_ORB::shutdown() as a manner - in which a thread of control can request that - CORBA_ORB::run() should return and no longer - service requests.
  • - -
  • Validated movement of Strategy Connector into - ORB Core.
  • - -
  • Tested and commited Connector::connect_n - changes to ACE.
  • - -
  • ACE & TAO compiling cleanly using Sun's CC on Solaris and - G++ on Linux. Also, the ACE tests run properly.
  • - -
  • Use truss to verify for Paul Wehlage that - TAO really uses select vs. recv for - -R vs. -T.
  • - -
  • Renamed boa.* to poa.*.
  • - -
  • Renamed following files: Orb_Core.* ->orb_core.* - & orbobj.* -> corba_orb.*.
  • - -
  • The lock used in giop.cpp:626 originally - appeared in the IIOP-1.4 code base. Its purpose was to - protect access to the fwd_profile data member. - The original features are available, but they are currently - not used because none of our concurrency models present a - thread-unsafe condition. The ChangeLog presents more details - on the subject.
  • - -
  • Fixed problems seen by Brian Mendel of - Boeing where the Cubit server application was crashing in - TAO_OA_Connection_Handler::handle_message when it - was trying to call CORBA::POA::handle_request - through a NULL root_poa pointer. The NULL - pointer resulted from the inadvertent use of the - Thread-per-Connection concurrency model, which is currently - incompatible with the ORB-per-thread model. It was not caught - because the change is normally done in configuration files - parsed by the Service Configurator, and VxWorks requires - special code in that area which was not tested until Boeing - got hold of the code.
  • - -
  • Clean up build under g++. All 'function used before - declared inline' warnings have been eliminated. Also, all - other warnings (except for one that is nearly unavoidable) - have been eliminated. -
  • - -
  • Removed BOA and ROA names from the ORB.
  • - -
  • Changed CORBA_ORB::open() to return an error - status (first cut at this already there--needs to be checked - out).
  • - -
  • Added README file to multiCubit test.
  • -

- -Ongoing Work: - -

    -
  • Verify ACE & TAO on Linux using g++, Solaris using CC, and - Solaris using g++.
  • - -
  • Use Purify to eliminate straggling problems.
  • - -
  • Clean up the internals and analyze for performance - bottlenecks using Quantify.
  • - -
  • Resolve // @@ comment blocks. These are - questions or comments placed in the code by a reviewer - (typically Doug).
  • - -
  • Make more and better documentation on the internals of - TAO.
  • -

- -Current Work: - -

    -
  • -

    Verify that, in the ORB-per-thread concurrency model, - it's possible to have a factory in each thread that creates - a client and returns an object reference to that client - within that thread. This is different from the model that - Sumedh originally had where the factory was trying to turn - out a client in a separate thread/ORB combination. - -

    There is no application which attempts this at the moment, - so both a client and a server will need to be manufactured. - Using existing Cubit-like examples (that poor app is so - weary) should reduce development time to a couple of - hours. - -

    The real strategy/solution is to make - CORBA::Object not keep a pointer to its orb - sitting around anywhere. It should only get it when it needs - it. This should not be difficult to change. -

  • -

- -Critical Work: - -

    -
  • Support new concurrency models, e.g., Thread-per-Request, - thread pool, etc..
  • - -
- -Future work: -
    -
  • Performance optimizations, such as: -
      -
    1. Strategize the connection management scheme so that we - don't always have to pay the price of a look up in the - connection cache. Basically, we want to be able to "hold" a - service handler for a string of requests. And, of course, - do this in a portable manner.
    2. - -
    3. Replace all uses of new and - delete with allocators that can be put into - TSS. The main motivation for this is to eliminate lock - contention when multiple threads need to allocate/deallocate - memory, however it might also be possible to substitute an - allocator better-tuned to an application's specific - usage.
    4. -
    -
  • - -
  • Robustness improvements: -
      -
    1. Improve connection cache so that it won't crash when there - are no more slots or sockets.
    2. - -
    3. Add an option to the ORB core, e.g., - -ORBnameservicetimeout, to allow specification of an - upper bound on the itime-to-wait for a response from the - ORB's multicast "search" for a running name server.
    4. -
    -
  • - -
  • New features: -
      -
    1. Implement ORB::perform_work and - ORB::work_pending so that ORB::run - could be implemented in terms of them.
    2. - -
    3. Improve the Service Configurator service - entry faking on VxWorks.
    4. - -
    5. Integrate with realtime upcalls (RTUs).
    6. - -
    -
  • - -
  • Internal restructuring: -
      -
    1. Remove _FAR from all code.
    2. - -
    3. Rework underlayment to eliminate IUnknown class.
    4. - -
    5. Create some sort of internal "request" object which - carries enough context to suport deferred method invocation - such as one might find in the thread-pool approach or - wherever queuing might occur.
    6. - -
    7. Rethink the entire memory allocation model used by the - ORB. The current one from SSIIOP may no longer be suitable - for our purposes.
    8. -
    -
  • - -
  • Documentation: -
      -
    1. Update ORB Patterns paper to reflect the latest TAO has to - offer. Specifically -
        -
      • sections on the Abstract Factory and Concurrency - strategies need to be updated, and the entire paper needs to - be reviewed for accuracy w.r.t the current TAO.
      • -
      • Metrics must be re-computed.
      • -
      • Tighten existing discussions.
      • -
      • Add information on new patterns (such as TSS) which - have been used since initial work.
      • -
      - -
    2. Make the section in $TAO_ROOT/TAO-Install.html - that documents installation on Unix platforms more complete.
    3. - -
  • - -
  • Miscellany: -
      -
    1. Assist in porting higher level services (e.g., Event Channel) to TAO.
    2. - -
    3. Compile and verify ACE and TAO on Linux using the Kuck and - Associates, Inc. (KAI) compiler tools.
    4. -
    5. CORBA::TypeCode is causing a memory leak. Since objects - of this type are rather static in nature, this is - currently not a big deal. However, it should be fixed - soon.
    6. -
    7. CORBA_Exception::Release is not working correctly as the - memory is never really freed.
    8. -
    -
  • - - -
  • Potential Optimizations: -
      -
    1. There is a certain amount of overhead introduced by the - use of TSS Singletons. TSS singletons are very - convenient as the variable does not have to be passed - from function to function. Even though sort of access is - generally acceptable, the overhead of this approach - maybe too high when used in code which is executed - frequently (e.g., during an upcall). This critical code - may have to be restructured not to use TSS Singletons - because of the high overhead associated with it.
    2. -
    -
  • - - -
- - - diff --git a/TAO/examples/Simulator/DOVEBrowser/AnswerEvent.java b/TAO/examples/Simulator/DOVEBrowser/AnswerEvent.java deleted file mode 100644 index c10ae7d766a..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/AnswerEvent.java +++ /dev/null @@ -1,23 +0,0 @@ -// $Id$ -// -// = FILENAME -// AnswerEvent.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// Event definition for the Dialog for selecting Observables. -// -// ============================================================================ - -public class AnswerEvent extends java.util.EventObject { - - protected String selected_; - - public AnswerEvent (Object source, String selected) { - super (source); - this.selected_ = selected; - } -} - diff --git a/TAO/examples/Simulator/DOVEBrowser/AnswerListener.java b/TAO/examples/Simulator/DOVEBrowser/AnswerListener.java deleted file mode 100644 index 77d43646729..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/AnswerListener.java +++ /dev/null @@ -1,18 +0,0 @@ -// $Id$ -// -// = FILENAME -// AnswerListener.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// EventListener definition for the Dialog for selecting Observables. -// -// ============================================================================ - - -public class AnswerListener implements java.util.EventListener { - public void ok (AnswerEvent e) {} - public void cancel (AnswerEvent e) {} -} diff --git a/TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.html b/TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.html deleted file mode 100644 index 5502857d548..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - -Document Title - - - -Note: When used with Visibroker, the gatekeeper must run in the DOVEBrowser directory! -Note: The IORs are different for each machine! So exchange the IORs below. - - -NT Name Service IOR - - -Unix Name ServiceIOR - - -Use this to run it with the appletviewer and Visibroker - - -Use this to run it within Netscape - - - - - - - - diff --git a/TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.java b/TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.java deleted file mode 100644 index 99830e408e7..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.java +++ /dev/null @@ -1,47 +0,0 @@ -// $Id$ -// -// = FILENAME -// DOVEBrowser.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// Entry point for the demo. -// -// ============================================================================ - - -import java.awt.*; - -public class DOVEBrowser { - - DemoCore demoCore_; - - public DOVEBrowser () { - super (); - } - - public void init (String nameServiceIOR, String[] args) { - - demoCore_ = new DemoCore (nameServiceIOR, args, null); - demoCore_.show (); - demoCore_.run (); - } - - public static void main (String[] args) { - String nameServiceIOR = null; - - if (args.length == 2) { - if (args[0] == "-ORBnameserviceior") { - nameServiceIOR = args[1]; - } - } - - DOVEBrowser doveBrowser = new DOVEBrowser(); - doveBrowser.init (nameServiceIOR, args); - } -} - - - diff --git a/TAO/examples/Simulator/DOVEBrowser/DOVEBrowserApplet.java b/TAO/examples/Simulator/DOVEBrowser/DOVEBrowserApplet.java deleted file mode 100644 index c55b90ca0de..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/DOVEBrowserApplet.java +++ /dev/null @@ -1,49 +0,0 @@ -// $Id$ -// -// = FILENAME -// DOVEBrowserApplet.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// Entry point for the demo when started inside an applet. -// -// ============================================================================ - - -import java.awt.*; - -public class DOVEBrowserApplet extends java.applet.Applet { - - DemoCore demoCore_; - static String nameServiceIOR_ = null; - - public DOVEBrowserApplet () { - super (); - } - - public void init () { - // in case of an applet use the following line, else not! - nameServiceIOR_ = this.getParameter ("NSIOR"); - - if (nameServiceIOR_ == null) { - System.out.println ("The DOVE Browser cannot run, because no Naming Service IOR was found!"); - return; - } - - demoCore_ = new DemoCore (nameServiceIOR_, // name service IOR - null, // args - this); // pointer to the applet - demoCore_.show (); - demoCore_.run (); - } -} - - - - - - - - diff --git a/TAO/examples/Simulator/DOVEBrowser/DataHandler.java b/TAO/examples/Simulator/DOVEBrowser/DataHandler.java deleted file mode 100644 index a2a88771b4a..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/DataHandler.java +++ /dev/null @@ -1,34 +0,0 @@ -// $Id$ -// -// = FILENAME -// DataHandler.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This is the interface for data handling in the simulation demo -// using the Event Channel as transport media. -// -// ============================================================================ - -import org.omg.CORBA.*; - -public interface DataHandler { - - // entry point for an consumer to put data into the data handler - public void update (Any any_value); - - // get a list of the Observables names to allow selection - public java.util.Enumeration getObservablesList (); - - // get a specific Observable - public DemoObservable getObservable(String name); - - // get the property of an observable - public int getObservableProperty (String name); -} - - - - diff --git a/TAO/examples/Simulator/DOVEBrowser/DemoCore.java b/TAO/examples/Simulator/DOVEBrowser/DemoCore.java deleted file mode 100644 index 0871fb0f74a..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/DemoCore.java +++ /dev/null @@ -1,154 +0,0 @@ -// $Id$ -// -// = FILENAME -// DemoCore.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This class servers as the core class of the simulation demo. -// It connects the push consumer of the event service with -// one or several Java Beans. -// -// ============================================================================ - - -import java.awt.*; -import java.awt.event.*; - -public class DemoCore extends Frame { - - private static final int MAX_VIS_COMPS = 10; - - private PushConsumerFactory pushConsumerFactory_; - private VisCompFactory visCompFactory_; - private DataHandler dataHandler_; - private java.util.Vector vis_comp_list_; - private int countVisComp_ = 0; - private GridBagLayout gridbag_; - private GridBagConstraints constraints_; - - DemoCore (String nameServiceIOR, - String[] args, - java.applet.Applet applet) { - super (); - - setSize (600,400); - setBounds (new Rectangle (50,50,800,500)); - setVisible (true); - - gridbag_ = new GridBagLayout(); - constraints_ = new GridBagConstraints(); - constraints_.fill = GridBagConstraints.BOTH; - constraints_.weightx = 1.0; - constraints_.weighty = 1.0; - this.setLayout (gridbag_); - - // Instantiate the DataHandler and the PushConsumer - dataHandler_ = new NavWeapDataHandler (); - pushConsumerFactory_ = new PushConsumerFactory (dataHandler_, nameServiceIOR, args, applet); - - // List of Visualization Components - vis_comp_list_ = new java.util.Vector(); - - - MenuBar menubar_ = new MenuBar (); - Menu menu_ = new Menu ("File"); - MenuItem menu_quit_item_ = new MenuItem ("Quit"); - menu_quit_item_.setEnabled (true); - MenuItem menu_add_item_ = new MenuItem ("Add"); - menu_add_item_.setEnabled (true); - menu_.add (menu_add_item_); - menu_.add (menu_quit_item_); - menubar_.add (menu_); - - setMenuBar (menubar_); - - menu_quit_item_.addActionListener (new ActionListener () - { - public void actionPerformed (ActionEvent e) { - System.exit (0); - } - }); - - menu_add_item_.addActionListener (new ActionListener () - { - public void actionPerformed (ActionEvent e) { - ObservablesDialog obsDialog_ = - new ObservablesDialog (DemoCore.this, - dataHandler_.getObservablesList()); - obsDialog_.addAnswerListener (new AnswerListener () - { - public void ok (AnswerEvent e) - { - DemoCore.this.addConnection (e.selected_); - } - }); - obsDialog_.setVisible (true); - } - }); - - // instantiate the Factory for Visualization Components - visCompFactory_ = new VisCompFactory (); - - // in here the factory is needed - addConnection ("Cpu_UsageObservable"); - } - - public boolean addConnection (String selected) { - // to not fill too many into it - if (countVisComp_ < MAX_VIS_COMPS) { - - // get a reference to the Observable - DemoObservable observable_ = dataHandler_.getObservable (selected); - - if (observable_ != null) { - - VisComp visComp_ = visCompFactory_.getNewVisComp (observable_.getProperty (), selected); - - if (visComp_ != null) { - vis_comp_list_.addElement (visComp_); - - // connect the Observer with the Observable - observable_.addObserver (visComp_); - - countVisComp_++; - - // not more than three in a row - if (countVisComp_ == 3){ - constraints_.gridwidth = GridBagConstraints.REMAINDER; - } - if (countVisComp_ > 3) { - constraints_.gridwidth = 1; - } - - gridbag_.setConstraints ((java.awt.Component) visComp_, constraints_); - - // add the Visualization Component to the Frame - DemoCore.this.add ((java.awt.Component) visComp_); - DemoCore.this.show (); - - return true; - } - } - } - return false; - } - - public void init () - { - } - - public void paint (Graphics g) - { - } - - public void run () - { - // Wait passive until events come in - pushConsumerFactory_.run (); - } -} - - diff --git a/TAO/examples/Simulator/DOVEBrowser/DemoObservable.java b/TAO/examples/Simulator/DOVEBrowser/DemoObservable.java deleted file mode 100644 index 81c85b961f8..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/DemoObservable.java +++ /dev/null @@ -1,19 +0,0 @@ -// $Id$ -// -// = FILENAME -// DemoObservable.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This class servers as the core class of the simulation demo -// -// ============================================================================ - - - -public abstract class DemoObservable extends java.util.Observable { - - public abstract int getProperty (); -} diff --git a/TAO/examples/Simulator/DOVEBrowser/DoubleVisComp.java b/TAO/examples/Simulator/DOVEBrowser/DoubleVisComp.java deleted file mode 100644 index 5d636641beb..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/DoubleVisComp.java +++ /dev/null @@ -1,206 +0,0 @@ -// $Id$ -// -// = FILENAME -// DoubleVisComp.java -// -// = AUTHOR -// Seth Widoff (core graph functionality) -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This is a Visualization Component for displaying doubles. -// -// ============================================================================ - - - - -import java.awt.*; -import java.util.*; - -public class DoubleVisComp extends Canvas implements VisComp -{ - private static final int MIN_SPACING = 2; - private static final int POINT_HISTORY = 200; - private static final Font FONT = new Font ("Dialog", Font.PLAIN, 10); - - private Queue plot_; - private String title_; - private Graphics offgraphics_; - private Image offscreen_; - private Dimension offscreensize_; - private int max_value_; - private int old_max_value_; - private int spacing_; - private float local_max_ = 0; - private boolean max_increased_ = false; - - public DoubleVisComp() - { - super(); - - plot_ = new Queue(); - spacing_ = MIN_SPACING; - title_ = ""; - max_value_ = 1; - // max_value_ = max_value; - old_max_value_ = max_value_; - - java.util.Random rand = new java.util.Random (System.currentTimeMillis()); - float hue_ = rand.nextFloat(); - float brightness = rand.nextFloat(); - - hue_ += .075; - - if (hue_ > 1.0) - hue_ -= 1.0; - - if (brightness > 0.75) - brightness -= 0.25; - - Color new_color = Color.getHSBColor(hue_, 1, brightness); - - this.setBackground(new_color); - this.setForeground(Color.white); - } - - - public void setName (String title) { - title_ = title; - } - - public int getProperty () { - return Properties.DOUBLE; - } - - public Dimension getMinimumSize () { - return new Dimension (75, 75); - } - - public Dimension getPreferredSize () { - return new Dimension (175, 175); - } - - public String getName() { - return title_; - } - - public int getMax() { - return old_max_value_; - } - - public void update(java.util.Observable observable, java.lang.Object obj) - { - Double double_temp_; - try { - double_temp_ = (Double) obj; - } - catch (Exception excp) { - double_temp_ = new Double (0.0); - System.out.println (excp); - System.out.println ("Visualization Component received wrong data type!"); - } - - float new_point = double_temp_.floatValue(); - Float temp = (Float)plot_.dequeue_tail(); - plot_.enqueue_head(new Float(new_point)); - - if (new_point > local_max_) - local_max_ = new_point; - - while (local_max_ > max_value_) - max_value_ *= 2; - - while ((local_max_ < max_value_/2) && (max_value_ > old_max_value_)) - max_value_ /= 2; - - repaint(); - } - - public void update(Graphics g) - { - Dimension d = getSize (); - float tmp, value_1, value_2; - FontMetrics fm = g.getFontMetrics (); - Enumeration queue_iter = plot_.forward_iterator(); - int x1 = d.width - 8, y1, x2, y2, fheight = fm.getHeight (), i; - String value = "Value (of " + max_value_ + "): " + String.valueOf(plot_.head()); - - if ((offscreen_ == null) || - (offscreensize_.width != d.width - 8) || - (offscreensize_.height != d.height - 8)) - { - offscreen_ = createImage(d.width - 8, d.height - 8); - offscreensize_ = new Dimension(d.width - 8, d.height - 8); - offgraphics_ = offscreen_.getGraphics(); - offgraphics_.setFont(FONT); - } - - g.setColor (Color.lightGray); - g.draw3DRect (0, 0, d.width - 1, d.height - 1, true); - g.draw3DRect (1, 1, d.width - 3, d.height - 3, true); - g.draw3DRect (2, 2, d.width - 5, d.height - 5, true); - - local_max_ = 0; - offgraphics_.setColor (getBackground()); - offgraphics_.fillRect (0, 0, offscreensize_.width, offscreensize_.height); - offgraphics_.setColor (getForeground()); - offgraphics_.drawString(title_, 5, fheight); - offgraphics_.drawString(value, 5, offscreensize_.height - 5); - - value_1 = ((Float)queue_iter.nextElement()).floatValue(); - while (queue_iter.hasMoreElements()) - { - value_2 = ((Float)queue_iter.nextElement()).floatValue(); - - if (value_1 > local_max_) - local_max_ = value_1; - - y1 = normalize(offscreensize_.height - fheight, value_1); - y2 = normalize(offscreensize_.height - fheight, value_2); - - tmp = value_2; - value_2 = value_1; - value_1 = tmp; - - x2 = x1 - spacing_; - offgraphics_.drawLine(x1, y1, x2, y2); - x1 = x2; - if (x1 <= 5) - break; - } - - g.drawImage(offscreen_, 3, 3, null); - } - - public void paint(Graphics g) - { - Dimension d = getSize (); - int plot_length = plot_.length(); - int num_points = d.width / spacing_; - - if (plot_.length() < num_points) - { - for (int i = 0; i < num_points - plot_length; i++) - plot_.enqueue_tail(new Float(0)); - } - else if (plot_.length() > num_points) - { - for (int i = 0; i < plot_length - num_points; i++) - plot_.dequeue_tail(); - } - - update(g); - } - - - private int normalize(int height, float coord) - { - float ratio = (float)coord/max_value_; - float pixels = (float)height*ratio; - float location = (float)height - pixels; - - return Math.round(location); - } -} - diff --git a/TAO/examples/Simulator/DOVEBrowser/NS_Resolve.java b/TAO/examples/Simulator/DOVEBrowser/NS_Resolve.java deleted file mode 100644 index b6a39e63dec..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/NS_Resolve.java +++ /dev/null @@ -1,112 +0,0 @@ -// $Id$ -// ============================================================================ -// -// -// = FILENAME -// NS_Resolve.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// Resolves the initial reference to the Naming service, -// the orb has to be given as a parameter to the -// resolve_name_service call. -// -// -// ============================================================================ - - - - -import org.omg.CORBA.*; -import java.net.*; -import java.io.*; - - - -public class NS_Resolve -{ - - private static final String ACE_DEFAULT_MULTICAST_ADDR = "224.9.9.2"; - private static final int TAO_DEFAULT_NAME_SERVER_REQUEST_PORT = 10013; - private static final int MULTICAST_SEND_PORT = 10060; - private static final int MULTICAST_RECEIVE_PORT = 10061; - private static final int TAO_SERVICEID_NAMESERVICE = 0; - private static final int TAO_SERVICEID_TRADINGSERVICE = 1; - - org.omg.CORBA.Object name_service_; - - - public org.omg.CORBA.Object resolve_name_service (org.omg.CORBA.ORB orb) - { - try - { - // Create a message with the multicast receive port in it - ByteArrayOutputStream byte_stream_ = new ByteArrayOutputStream (); - byte_stream_.write ((int)((MULTICAST_RECEIVE_PORT&0xff00)>>>8)); - byte_stream_.write ((int)(MULTICAST_RECEIVE_PORT&0x00ff)); - byte_stream_.write ((int)((TAO_SERVICEID_NAMESERVICE&0xff00)>>>8)); - byte_stream_.write ((int)(TAO_SERVICEID_NAMESERVICE&0x00ff)); - byte[] msg = byte_stream_.toByteArray(); - - - // Define the group for the multicast - - InetAddress group = InetAddress.getByName(ACE_DEFAULT_MULTICAST_ADDR); - // Create the multicast socket at any port you want - MulticastSocket multicastsocket_ = new MulticastSocket(MULTICAST_SEND_PORT); - // Create a socket for the answer of the Naming Service - DatagramSocket socket_ = new DatagramSocket (MULTICAST_RECEIVE_PORT); - // Give three seconds time for the Naming Service to respond - socket_.setSoTimeout (3000); - // Build a packet with the port number in it - DatagramPacket hello = new DatagramPacket(msg, msg.length, - group, TAO_DEFAULT_NAME_SERVER_REQUEST_PORT); - - // Send the packet - multicastsocket_.send (hello); - - // @@ The restriction right now is that the length of the IOR cannot be longer than 4096 - byte[] buf = new byte[4096]; - // Set up packet which can be received - DatagramPacket recv = new DatagramPacket (buf, buf.length); - // Receive a packet or time out - socket_.receive (recv); - - // Determine the length of the IOR - int length; - for (length = 0; buf[length] != 0; length++); - - // Store the IOR in a String - String name_service_ior_ = new String (recv.getData (),0,length); - - // Convert the String into - return orb.string_to_object (name_service_ior_); - } - catch (SocketException e) - { - System.err.println (e); - } - catch (java.io.InterruptedIOException e) - { - System.err.println ("NS_Resolve: The receive lasted too long"); - } - catch(org.omg.CORBA.SystemException e) - { - System.err.println(e); - } - catch (java.io.IOException e) - { - System.err.println (e); - } - return null; - - } - -}; - - - - - diff --git a/TAO/examples/Simulator/DOVEBrowser/NavWeapDataHandler.java b/TAO/examples/Simulator/DOVEBrowser/NavWeapDataHandler.java deleted file mode 100644 index e72155cab3d..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/NavWeapDataHandler.java +++ /dev/null @@ -1,220 +0,0 @@ -// $Id$ -// -// = FILENAME -// NavWeapDataHandler.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This is an implementation of the interface Data Handler, -// it handles Navigation and Weapons data, where statistic data is -// part of it. Several Observables are declared, they can be accessed by -// any number of Observers, which could reside in a Java Bean for example. -// -// ============================================================================ - -import org.omg.CORBA.*; - -public class NavWeapDataHandler implements DataHandler { - - java.util.Hashtable ObservablesTable; - int received_events_; - - - // Observable for Navigation data - class NavigationObservable extends DemoObservable { - - // to ask which kind of viewer is needed to display data - public int getProperty () { - return Properties.NAVIGATION; - } - - public void updateNavigation (Navigation navigation) { - setChanged (); - notifyObservers (navigation); - } - - } - - class WeaponsObservable extends DemoObservable { - - // to ask which kind of viewer is needed to display data - public int getProperty () { - return Properties.WEAPONS; - } - - public void updateWeapons (Weapons weapons) { - setChanged (); - notifyObservers (weapons); - } - } - - class Cpu_UsageObservable extends DemoObservable { - - public int getProperty () { - return Properties.DOUBLE; - } - - public void updateCpu_Usage (double utilization) { - setChanged (); - Double temp_ = new Double (utilization); - notifyObservers (temp_); - } - } - class OverheadObservable extends DemoObservable { - - public int getProperty () { - return Properties.DOUBLE; - } - - public void updateOverhead (double overhead) { - setChanged (); - Double temp_ = new Double (overhead); - notifyObservers (temp_); - } - } - class JitterObservable extends DemoObservable { - double latency = 0.0; - double last_latency = 0.0; - - public int getProperty () { - return Properties.DOUBLE; - } - - public void updateJitter (int completion_time, - int computation_time, - int arrival_time ) { - last_latency = latency; - latency = (double)(completion_time - - computation_time - - arrival_time); - latency = latency > 0 ? latency : 0; - double jitter_ = (double)Math.abs(latency - last_latency); - - setChanged (); - Double temp_ = new Double (jitter_); - notifyObservers (temp_); - } - } - class DeadlinesObservable extends DemoObservable { - - public int getProperty () { - return Properties.DOUBLE; - } - - public void updateDeadlines (int deadline_time, - int completion_time) { - double missed_ = (double) ((deadline_time - < completion_time) - ? 1.0 : 0.0); - - Double temp_ = new Double (missed_); - setChanged (); - notifyObservers (temp_); - } - } - class LatencyObservable extends DemoObservable { - double latency = 0.0; - double last_latency = 0.0; - - public int getProperty () { - return Properties.DOUBLE; - } - - public void updateLatency (int completion_time, - int computation_time, - int arrival_time ) { - last_latency = latency; - latency = (double)(completion_time - - computation_time - - arrival_time); - latency = latency > 0 ? latency : 0; - - setChanged (); - Double temp_ = new Double(latency); - notifyObservers (temp_); - } - } - - - public void update (Any any_value) { - - if (any_value.type().equal (NavigationHelper.type())) - { - Navigation navigation_ = NavigationHelper.extract (any_value); - NavigationObservable nobs = (NavigationObservable)ObservablesTable.get ("NavigationObservable"); - nobs.updateNavigation (navigation_); - Cpu_UsageObservable cobs = (Cpu_UsageObservable)ObservablesTable.get ("Cpu_UsageObservable"); - cobs.updateCpu_Usage (navigation_.utilization); - OverheadObservable oobs = (OverheadObservable)ObservablesTable.get ("OverheadObservable"); - oobs.updateOverhead (navigation_.overhead); - JitterObservable jobs = (JitterObservable)ObservablesTable.get ("JitterObservable"); - jobs.updateJitter (navigation_.completion_time, - navigation_.computation_time, - navigation_.arrival_time); - DeadlinesObservable dobs = (DeadlinesObservable)ObservablesTable.get ("DeadlinesObservable"); - dobs.updateDeadlines (navigation_.deadline_time, - navigation_.completion_time); - LatencyObservable lobs = (LatencyObservable)ObservablesTable.get ("LatencyObservable"); - lobs.updateLatency (navigation_.completion_time, - navigation_.computation_time, - navigation_.arrival_time); - received_events_++; - } - else if (any_value.type().equal (WeaponsHelper.type())) - { - Weapons weapons_ = WeaponsHelper.extract (any_value); - WeaponsObservable wobs = (WeaponsObservable)ObservablesTable.get ("WeaponsObservable");; - wobs.updateWeapons (weapons_); - Cpu_UsageObservable cobs = (Cpu_UsageObservable)ObservablesTable.get ("Cpu_UsageObservable"); - cobs.updateCpu_Usage (weapons_.utilization); - OverheadObservable oobs = (OverheadObservable)ObservablesTable.get ("OverheadObservable"); - oobs.updateOverhead (weapons_.overhead); - JitterObservable jobs = (JitterObservable)ObservablesTable.get ("JitterObservable"); - jobs.updateJitter (weapons_.completion_time, - weapons_.computation_time, - weapons_.arrival_time); - DeadlinesObservable dobs = (DeadlinesObservable)ObservablesTable.get ("DeadlinesObservable"); - dobs.updateDeadlines (weapons_.deadline_time, - weapons_.completion_time); - LatencyObservable lobs = (LatencyObservable)ObservablesTable.get ("LatencyObservable"); - lobs.updateLatency (weapons_.completion_time, - weapons_.computation_time, - weapons_.arrival_time); - received_events_++; - } - else - System.out.println ("Received wrong type information"+any_value.type()); - } - - NavWeapDataHandler () { - ObservablesTable = new java.util.Hashtable(); - - ObservablesTable.put ("NavigationObservable", new NavigationObservable()); - ObservablesTable.put ("WeaponsObservable", new WeaponsObservable()); - ObservablesTable.put ("Cpu_UsageObservable", new Cpu_UsageObservable()); - ObservablesTable.put ("OverheadObservable", new OverheadObservable()); - ObservablesTable.put ("JitterObservable", new JitterObservable()); - ObservablesTable.put ("DeadlinesObservable", new DeadlinesObservable()); - ObservablesTable.put ("LatencyObservable", new LatencyObservable()); - } - - public java.util.Enumeration getObservablesList () { - return ObservablesTable.keys (); - } - - public DemoObservable getObservable(String name) { - return (DemoObservable)ObservablesTable.get (name); - } - - public int getObservableProperty (String name) { - DemoObservable obs = (DemoObservable)ObservablesTable.get (name); - return obs.getProperty (); - } - -} - - - - diff --git a/TAO/examples/Simulator/DOVEBrowser/NavigationVisComp.java b/TAO/examples/Simulator/DOVEBrowser/NavigationVisComp.java deleted file mode 100644 index 3d7a217389b..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/NavigationVisComp.java +++ /dev/null @@ -1,350 +0,0 @@ -// $Id$ -// -// = FILENAME -// NavigationVisComp.java -// -// = AUTHOR -// Seth Widoff (core functionality) -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This is a Visualization Component for displaying navigation. -// -// ============================================================================ - - - -import java.awt.*; -import java.io.*; - -public class NavigationVisComp extends Panel implements VisComp -{ - private Alt_Horizon alt_hor_ = new Alt_Horizon (); - private Position pos_ = new Position (); - - public NavigationVisComp () - { - setLayout (new BorderLayout (0, 2)); - add ("Center", alt_hor_); - add ("South", pos_); - } - - public void setName (String title) { - } - - public int getProperty () { - return Properties.NAVIGATION; - } - - public void update (java.util.Observable observable, java.lang.Object obj) { - Navigation navigation_ = null; - try { - navigation_ = (Navigation) obj; - } - catch (Exception excp) { - System.out.println (excp); - System.out.println ("Visualization Component received wrong data type!"); - } - if (navigation_ != null) { - // make sure all the values are in the proper range. - navigation_.roll = (navigation_.roll > 180 || navigation_.roll < -180) ? - 0 : navigation_.roll; - navigation_.pitch = (navigation_.pitch > 90 || navigation_.pitch < -90) ? - 0 : navigation_.pitch; - - // update the artificial horizon - alt_hor_.update_display (navigation_.roll, navigation_.pitch); - - navigation_.pitch = (navigation_.position_latitude > 90 || navigation_.position_latitude < -90) ? - 0 : navigation_.position_latitude; - navigation_.pitch = (navigation_.position_longitude > 100 || navigation_.position_longitude < 00) ? - 0 : navigation_.position_longitude; - navigation_.pitch = (navigation_.altitude > 90 || navigation_.altitude < -90) ? - 0 : navigation_.altitude; - navigation_.pitch = (navigation_.heading > 180 || navigation_.heading < -180) ? - 0 : navigation_.heading; - - // update the position display - pos_.update_display (navigation_.position_latitude, - navigation_.position_longitude, - navigation_.altitude, - navigation_.heading); - } - } -} - -class Alt_Horizon -extends Canvas -{ - private final static Color GREEN = new Color (0, 100, 0), - BLUE = new Color (30, 144, 255); - - private Graphics offgraphics_; - private Image offscreen_; - private Dimension offscreensize_; - - private int roll_ = 0, pitch_ = 0; - - public void update_display (int roll, int pitch) - { - roll_ = roll; - pitch_ = pitch; - - repaint (); - } - - public Dimension getPreferredSize () - { - return new Dimension (180, 180); - } - - public Dimension getMinimumSize () - { - return new Dimension (80, 80); - } - - public void paint (Graphics g) - { - update (g); - } - - public void update (Graphics g) - { - Dimension d = getSize (); - int rad, angles[] = { 180, 0 }; - Point center; - - if ((offscreen_ == null) || (d.width != offscreensize_.width) || - (d.height != offscreensize_.height)) - { - offscreen_ = createImage (d.width, d.height); - offscreensize_ = new Dimension (d.width, d.height); - offgraphics_ = offscreen_.getGraphics (); - offgraphics_.setFont (getFont()); - - // g.setColor (Color.lightGray); - // g.draw3DRect (0, 0, d.width - 1, d.height - 1, true); - // g.draw3DRect (1, 1, d.width - 3, d.height - 3, true); - // g.draw3DRect (2, 2, d.width - 5, d.height - 5, true); - } - - offgraphics_.setColor (getBackground()); - offgraphics_.fillRect (0, 0, d.width, d.height); - offgraphics_.setColor (BLUE); - - // Calculate from the dimensions, the largest square. - center = new Point (d.width / 2, d.height / 2); - rad = ((center.x < center.y) ? center.x : center.y); - - // Draw a circle of blue - offgraphics_.fillOval (center.x - rad, center.y - rad, - 2*rad, 2*rad); - - // Roll the horizon based on the roll angle - if (roll_ != 0) - roll_horizon (rad, angles); - - // Pitch the horizon based on the pitch angle - if (pitch_ != 0) - pitch_horizon (rad, angles); - - // Draw the resulting terrain - draw_horizon (rad, center, angles); - - // Draw the plotted Image. - g.drawImage (offscreen_, 0, 0, null); - } - - private void draw_horizon (int rad, Point center, int[] angles) - { - // Draw an arc - int arc_angle = - ((angles[0] > angles[1]) ? - (360 - angles[0]) + angles[1] : - (angles[1] - angles[0])); - - Polygon remainder = new Polygon (); - - offgraphics_.setColor (GREEN); - offgraphics_.fillArc (center.x - rad, center.y - rad, - 2*rad, 2*rad, - angles[0], arc_angle); - - if (pitch_ != 0) - { - if ((pitch_ > 0 && Math.abs (roll_) < 90) || - (pitch_ < 0 && Math.abs (roll_) >= 90)) - offgraphics_.setColor (BLUE); - - int cover_angle = (angles[0] + arc_angle/2 + ((arc_angle < 180) ? 180 : 0)) % 360; - - // System.out.println (points[0] + " " + points[1]); - - // System.out.println (accepted_point); - - remainder.addPoint (center.x + polar_to_rect_x (rad, cover_angle), - center.y - polar_to_rect_y (rad, cover_angle)); - remainder.addPoint (center.x + polar_to_rect_x (rad, angles[0]), - center.y - polar_to_rect_y (rad, angles[0])); - remainder.addPoint (center.x + polar_to_rect_x (rad, angles[1]), - center.y - polar_to_rect_y (rad, angles[1])); - offgraphics_.fillPolygon (remainder); - //offgraphics_.setColor (getBackground ()); - //offgraphics_.drawPolygon (remainder); - } - } - - private void pitch_horizon (int rad, int[] angles) - { - boolean upside_down = Math.abs (roll_) >= 90; - int angle_shift = (int) Math.round ((double)(90 - (Math.abs (roll_) % 180)) / 90.0 * pitch_); - - // System.out.println ("angle_shift " + angle_shift); - - angles[0] += angle_shift; - angles[1] -= angle_shift; - - - } - - private void roll_horizon (int rad, int[] angles) - { - // Roll the left and right points of the terrain. - angles[0] += roll_; - angles[1] += roll_; - - if (angles[0] < 0) - angles[0] += 360; - - if (angles[1] < 0) - angles[1] += 360; - } - - private int polar_to_rect_x (int rad, int angle) - { - return (int) Math.round (rad * Math.cos ((double)angle * Math.PI/180.0)); - } - - private int polar_to_rect_y (int rad, int angle) - { - return (int) Math.round (rad * Math.sin ((double)angle * Math.PI/180.0)); - } - - private double caclulate_slope (int rad, int[] angles) - { - int x1 = polar_to_rect_x (rad, angles[0]), - x2 = polar_to_rect_x (rad, angles[1]), - y1 = polar_to_rect_y (rad, angles[0]), - y2 = polar_to_rect_y (rad, angles[1]); - - return ((double) (y2 - y1)) / ((double) (x2 - x1)); - } - - private Point[] line_circle_intesect (int rad, double y_intercept, double slope) - { - double r_2 = (double)(rad * rad), - s_2 = slope * slope, - a_x = s_2 + 1, - b_x = 2.0 * slope * y_intercept, - c_x = y_intercept * y_intercept - r_2; - int[] x_roots = quad_eq (a_x, b_x, c_x), - y_roots = { (int) Math.round ((double)((double) x_roots[0])*slope + y_intercept), - (int) Math.round ((double)((double) x_roots[1])*slope + y_intercept) }; - Point[] points = new Point [2]; - - points[0] = new Point (x_roots[0], y_roots[0]); - points[1] = new Point (x_roots[1], y_roots[1]); - - return points; - } - - private int calculate_angle (int rad, int x, int y) - { - /* - double angle = 0, - sin_value = Math.asin ((double)y / (double)rad), - tan_value = Math.atan ((double)y / (double)x); - - if (x >= 0) - angle = (x != 0) ? tan_value : sin_value + - ((y < 0) ? 2*Math.PI : 0); - else - angle = Math.PI + tan_value; - - return (int) Math.round (angle * 180.0 / Math.PI); - */ - - double angle = 0.0, - sin_value = Math.asin ((double)Math.abs (y) / (double)rad); - - if (x >= 0 && y >= 0) - angle = sin_value; - else if (x < 0 && y >= 0) - angle = sin_value + Math.PI/2.0; - else if (x < 0 && y < 0) - angle = sin_value + Math.PI; - else if (x >= 0 && y < 0) - angle = sin_value + 3.0*Math.PI/2.0; - - return (int) Math.round (angle * 180.0 / Math.PI); - } - - private int[] quad_eq (double a, double b, double c) - { - int[] roots = new int [2]; - double body = Math.sqrt (b*b - 4.0*a*c); - - roots[0] = (int) Math.round ((-b + body) / (2.0 * a)); - roots[1] = (int) Math.round ((-b - body) / (2.0 * a)); - - return roots; - } - - private int distance (Point point1, Point point2) - { - double xdiff = point1.x - point2.x, - ydiff = point1.y - point2.y; - - return (int) Math.round (Math.sqrt (xdiff*xdiff + ydiff*ydiff)); - } -} - -class Position extends Panel -{ - private final static Font FONT = new Font ("Dialog", Font.BOLD, 12); - private final static char DEGREE = '\u00B0'; - - private Label lat_ = new Label ("0" + DEGREE + " N", Label.RIGHT), - long_ = new Label ("0" + DEGREE + " S", Label.RIGHT), - alt_ = new Label ("0 Kft", Label.RIGHT), - heading_ = new Label ("0" + DEGREE + " ", Label.RIGHT); - - public Position () - { - Panel grid_panel = new Panel (); - - lat_.setFont (FONT); - long_.setFont (FONT); - alt_.setFont (FONT); - heading_.setFont (FONT); - - setLayout (new GridLayout (1, 4)); - add (lat_); - add (long_); - add (heading_); - add (alt_); - } - - public void update_display (int lat, int lon, int alt, int heading) - { - String lat_str = - Math.abs (lat) + "" + DEGREE + ((lat > 0) ? " N" : " S"); - String long_str = - Math.abs (lon) + "" + DEGREE + ((lon > 0) ? " E" : " W"); - - lat_.setText (lat_str); - long_.setText (long_str); - alt_.setText (alt + " Kft"); - heading_.setText (heading + "" + DEGREE + " "); - } -} diff --git a/TAO/examples/Simulator/DOVEBrowser/ObservablesDialog.java b/TAO/examples/Simulator/DOVEBrowser/ObservablesDialog.java deleted file mode 100644 index 2ea856c24e2..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/ObservablesDialog.java +++ /dev/null @@ -1,90 +0,0 @@ -// $Id$ -// -// = FILENAME -// ObservablesDialog.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// Dialog for selecting Observables. -// -// ============================================================================ - -import java.awt.*; -import java.awt.event.*; - -public class ObservablesDialog extends Dialog { - - List list_; - DemoCore parent_; - AnswerListener listener_; - - ObservablesDialog (DemoCore parent,java.util.Enumeration enumeration) { - - super ((Frame)parent, "Select Observables", true); - parent_ = parent; - this.setSize(400, 300); - setBounds (new Rectangle (50,50,400,300)); - - list_ = new List (); - list_.setFont ( new Font ("Helvetica", Font.PLAIN, 10)); - list_.setSize (200,200); - - for (; enumeration.hasMoreElements();) { - list_.add ((String)enumeration.nextElement()); - } - - - Button ok_button_ = new Button ("OK"); - ok_button_.setFont ( new Font ("DialogHelvetica", Font.PLAIN, 10)); - Button cancel_button_ = new Button ("Cancel"); - cancel_button_.setFont ( new Font ("DialogHelvetica", Font.PLAIN, 10)); - - GridBagLayout gridbag_ = new GridBagLayout (); - GridBagConstraints constraints_ = new GridBagConstraints (); - - constraints_.fill = GridBagConstraints.BOTH; - this.setLayout (gridbag_); - - constraints_.weightx = 1.0; - constraints_.weighty = 1.0; - constraints_.gridwidth = GridBagConstraints.REMAINDER; - gridbag_.setConstraints (list_, constraints_); - this.add (list_); - - constraints_.weightx = 1.0; - constraints_.weighty = 1.0; - constraints_.gridwidth = GridBagConstraints.RELATIVE; - constraints_.fill = GridBagConstraints.NONE; - gridbag_.setConstraints (ok_button_, constraints_); - gridbag_.setConstraints (cancel_button_, constraints_); - this.add (ok_button_); - this.add (cancel_button_); - - ok_button_.addActionListener (new ActionListener () { - public void actionPerformed (ActionEvent e) { - - String selected_ = ObservablesDialog.this.list_.getSelectedItem (); - if (selected_ != null) { - System.out.println (">>>>> " + selected_); - if (listener_ != null) { - AnswerEvent ev = new AnswerEvent (ObservablesDialog.this, selected_); - listener_.ok (ev); - } - ObservablesDialog.this.setVisible (false); - } - } - }); - - cancel_button_.addActionListener (new ActionListener () { - public void actionPerformed (ActionEvent e) { - ObservablesDialog.this.setVisible (false); - } - }); - } - - public void addAnswerListener (AnswerListener al) { - listener_ = al; - } -} diff --git a/TAO/examples/Simulator/DOVEBrowser/Properties.java b/TAO/examples/Simulator/DOVEBrowser/Properties.java deleted file mode 100644 index 17ff69e5a18..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/Properties.java +++ /dev/null @@ -1,22 +0,0 @@ -// $Id$ -// -// = FILENAME -// DataHandler.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This is the interface for data handling in the simulation demo -// using the Event Channel as transport media. Several observables -// are created to feed observer Java Beans. -// -// ============================================================================ - - -public class Properties { - public static final int DOUBLE = 0; - public static final int NAVIGATION = 1; - public static final int WEAPONS = 2; -} - diff --git a/TAO/examples/Simulator/DOVEBrowser/PushConsumer.java b/TAO/examples/Simulator/DOVEBrowser/PushConsumer.java deleted file mode 100644 index 01b884ba054..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/PushConsumer.java +++ /dev/null @@ -1,198 +0,0 @@ -// $Id$ -// -// ============================================================================ -// -// -// = FILENAME -// PushConsumer.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This is a Push Consumer which takes the data field of the -// event and updates with it a Data Handler. -// -// -// ============================================================================ - - - -// The Consumer has to implement the Skeleton Consumer - -public class PushConsumer extends RtecEventComm._PushConsumerImplBase -{ - - public static final int ACE_ES_EVENT_ANY = 0; - public static final int ACE_ES_EVENT_SHUTDOWN = 1; - public static final int ACE_ES_EVENT_ACT = 2; - public static final int ACE_ES_EVENT_NOTIFICATION = 3; - public static final int ACE_ES_EVENT_TIMEOUT = 4; - public static final int ACE_ES_EVENT_INTERVAL_TIMEOUT = 5; - public static final int ACE_ES_EVENT_DEADLINE_TIMEOUT = 6; - public static final int ACE_ES_GLOBAL_DESIGNATOR = 7; - public static final int ACE_ES_CONJUNCTION_DESIGNATOR = 8; - public static final int ACE_ES_DISJUNCTION_DESIGNATOR = 9; - public static final int ACE_ES_EVENT_UNDEFINED = 16; - public static final int TOTAL_MESSAGES = 30; - - // Store the number of received events - private int total_received_ = 0; - private org.omg.CORBA.ORB orb_; - private DataHandler dataHandler_; - private RtecScheduler.handle_tHolder rt_info_; - private RtecEventChannelAdmin.EventChannel channel_admin_; - private RtecEventChannelAdmin.ConsumerAdmin consumer_admin_; - private RtecEventChannelAdmin.ProxyPushSupplier suppliers_; - - public PushConsumer (org.omg.CORBA.ORB orb, DataHandler dataHandler) - { - orb_ = orb; - dataHandler_ = dataHandler; - } - - - public void push (RtecEventComm.Event[] events) - { - if (total_received_ < 5) - System.out.println ("Demo Consumer: Received an event! ->Number: " + total_received_); - else if (total_received_ == 5) - System.out.println ("Demo Consumer: Everything is fine. Going to be mute."); - - - if (events.length == 0) - { - System.err.println ("No events"); - } - else - { - total_received_++; - - for (int i = 0; i < events.length; ++i) - { - if(events[i].type_ == ACE_ES_EVENT_NOTIFICATION) - { - try - { - dataHandler_.update (events[i].data_.any_value); - } - catch(org.omg.CORBA.SystemException e) - { - System.err.println(e); - } - } - } - } - } - - public void disconnect_push_consumer() - { - System.out.println ("Demo Consumer: Have to disconnect!"); - } - - public void open_consumer (RtecEventChannelAdmin.EventChannel event_channel_, - RtecScheduler.Scheduler scheduler_, - String name) - { - try { - - // Define Real-time information - - rt_info_ = new RtecScheduler.handle_tHolder (scheduler_.create (name)); - - scheduler_.set (rt_info_.value, - RtecScheduler.Criticality.VERY_LOW_CRITICALITY, - new TimeBase.ulonglong (0,0), - new TimeBase.ulonglong (0,0), - new TimeBase.ulonglong (0,0), - 2500000, // period - RtecScheduler.Importance.VERY_LOW_IMPORTANCE, - new TimeBase.ulonglong (0,0), - 1, - RtecScheduler.Info_Type.OPERATION); - - - // Register for Notification and Shutdown events - - - RtecEventComm.Event disjunction_designator_ = - new RtecEventComm.Event (ACE_ES_DISJUNCTION_DESIGNATOR, 0, - 1, // ttl - new TimeBase.ulonglong (0,0), - new TimeBase.ulonglong (0,0), - new TimeBase.ulonglong (0,0), - new RtecEventComm.EventData (0, 0, orb_.create_any()) - ); - RtecEventComm.Event notification_event_ = - new RtecEventComm.Event (ACE_ES_EVENT_NOTIFICATION, 0, - 1, // ttl - new TimeBase.ulonglong (0,0), - new TimeBase.ulonglong (0,0), - new TimeBase.ulonglong (0,0), - new RtecEventComm.EventData (0, 0, orb_.create_any()) - ); - RtecEventComm.Event shutdown_event_ = - new RtecEventComm.Event (ACE_ES_EVENT_SHUTDOWN, 0, - 1, // ttl - new TimeBase.ulonglong (0,0), - new TimeBase.ulonglong (0,0), - new TimeBase.ulonglong (0,0), - new RtecEventComm.EventData (0, 0, orb_.create_any()) - ); - - - RtecEventChannelAdmin.Dependency dependencies_[] = new RtecEventChannelAdmin.Dependency[3]; - dependencies_[0] = new RtecEventChannelAdmin.Dependency (disjunction_designator_, rt_info_.value); - dependencies_[1] = new RtecEventChannelAdmin.Dependency (notification_event_, rt_info_.value); - dependencies_[2] = new RtecEventChannelAdmin.Dependency (shutdown_event_, rt_info_.value); - - - // @@ Carlos please help me to set the right boolean value - RtecEventChannelAdmin.ConsumerQOS qos = new RtecEventChannelAdmin.ConsumerQOS (dependencies_, false); - - - // The channel administrator is the event channel we got from the invocation - // of this routine - - channel_admin_ = event_channel_; - - // Connect as a consumer - - consumer_admin_ = channel_admin_.for_consumers (); - - // Obtain a reference to the proxy push supplier - - suppliers_ = consumer_admin_.obtain_push_supplier (); - - suppliers_.connect_push_consumer (this, qos); - - System.out.println ("Registered the consumer successfully."); - - - } - catch (RtecScheduler.UNKNOWN_TASK e) - { - System.err.println ("Demo_Consumer.open_consumer: Unknown task"); - System.err.println (e); - } - catch (RtecScheduler.DUPLICATE_NAME e) - { - System.err.println ("Demo_Consumer.open_consumer: Duplicate names"); - System.err.println (e); - } - catch(org.omg.CORBA.SystemException e) - { - System.err.println(e); - } - } -} - - - - - - - - - - diff --git a/TAO/examples/Simulator/DOVEBrowser/PushConsumer.java.JDK1.2 b/TAO/examples/Simulator/DOVEBrowser/PushConsumer.java.JDK1.2 deleted file mode 100644 index 00bd2cb1cf3..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/PushConsumer.java.JDK1.2 +++ /dev/null @@ -1,190 +0,0 @@ -// $Id$ -// -// ============================================================================ -// -// -// = FILENAME -// PushConsumer.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This is a Push Consumer which takes the data field of the -// event and updates with it a Data Handler. -// -// -// ============================================================================ - - -public class PushConsumer extends RtecEventComm._PushConsumerImplBase -{ - - public static final int ACE_ES_EVENT_ANY = 0; - public static final int ACE_ES_EVENT_SHUTDOWN = 1; - public static final int ACE_ES_EVENT_ACT = 2; - public static final int ACE_ES_EVENT_NOTIFICATION = 3; - public static final int ACE_ES_EVENT_TIMEOUT = 4; - public static final int ACE_ES_EVENT_INTERVAL_TIMEOUT = 5; - public static final int ACE_ES_EVENT_DEADLINE_TIMEOUT = 6; - public static final int ACE_ES_GLOBAL_DESIGNATOR = 7; - public static final int ACE_ES_CONJUNCTION_DESIGNATOR = 8; - public static final int ACE_ES_DISJUNCTION_DESIGNATOR = 9; - public static final int ACE_ES_EVENT_UNDEFINED = 16; - public static final int TOTAL_MESSAGES = 30; - - // Store the number of received events - private int total_received_ = 0; - private org.omg.CORBA.ORB orb_; - private DataHandler dataHandler_; - private int rt_info_; - private RtecEventChannelAdmin.EventChannel channel_admin_; - private RtecEventChannelAdmin.ConsumerAdmin consumer_admin_; - private RtecEventChannelAdmin.ProxyPushSupplier suppliers_; - - public PushConsumer (org.omg.CORBA.ORB orb, DataHandler dataHandler) - { - orb_ = orb; - dataHandler_ = dataHandler; - } - - - public void push (RtecEventComm.Event[] events) - { - if (total_received_ < 5) - System.out.println ("Demo Consumer: Received an event! ->Number: " + total_received_); - else if (total_received_ == 5) - System.out.println ("Demo Consumer: Everything is fine. Going to be mute."); - - - if (events.length == 0) - { - System.err.println ("No events"); - } - else - { - total_received_++; - - for (int i = 0; i < events.length; ++i) - { - if(events[i].type_ == ACE_ES_EVENT_NOTIFICATION) - { - try - { - dataHandler_.update (events[i].data_.any_value); - } - catch(org.omg.CORBA.SystemException e) - { - System.err.println(e); - } - } - } - } - } - - public void disconnect_push_consumer() - { - System.out.println ("Demo Consumer: Have to disconnect!"); - } - - public void open_consumer (RtecEventChannelAdmin.EventChannel event_channel, - RtecScheduler.Scheduler scheduler, - String name) - { - - try - { - - // Define Real-time information - - rt_info_ = scheduler.create (name); - - scheduler.set (rt_info_, - RtecScheduler.Criticality.VERY_LOW_CRITICALITY, - new TimeBase.ulonglong (0,0), - new TimeBase.ulonglong (0,0), - new TimeBase.ulonglong (0,0), - 2500000, // period - RtecScheduler.Importance.VERY_LOW_IMPORTANCE, - new TimeBase.ulonglong (0,0), - 1, - RtecScheduler.Info_Type.OPERATION); - - - // Register for Notification and Shutdown events - - - RtecEventComm.Event disjunction_designator = - new RtecEventComm.Event (ACE_ES_DISJUNCTION_DESIGNATOR, 0, - 1, // ttl - new TimeBase.ulonglong (0,0), - new TimeBase.ulonglong (0,0), - new TimeBase.ulonglong (0,0), - new RtecEventComm.EventData (0, 0, orb_.create_any()) - ); - RtecEventComm.Event notification_event = - new RtecEventComm.Event (ACE_ES_EVENT_NOTIFICATION, 0, - 1, // ttl - new TimeBase.ulonglong (0,0), - new TimeBase.ulonglong (0,0), - new TimeBase.ulonglong (0,0), - new RtecEventComm.EventData (0, 0, orb_.create_any()) - ); - RtecEventComm.Event shutdown_event = - new RtecEventComm.Event (ACE_ES_EVENT_SHUTDOWN, 0, - 1, // ttl - new TimeBase.ulonglong (0,0), - new TimeBase.ulonglong (0,0), - new TimeBase.ulonglong (0,0), - new RtecEventComm.EventData (0, 0, orb_.create_any()) - ); - - - RtecEventChannelAdmin.Dependency dependencies[] = new RtecEventChannelAdmin.Dependency[3]; - dependencies[0] = new RtecEventChannelAdmin.Dependency (disjunction_designator, rt_info_); - dependencies[1] = new RtecEventChannelAdmin.Dependency (notification_event, rt_info_); - dependencies[2] = new RtecEventChannelAdmin.Dependency (shutdown_event, rt_info_); - - RtecEventChannelAdmin.ConsumerQOS qos = new RtecEventChannelAdmin.ConsumerQOS (dependencies); - - // The channel administrator is the event channel we got from the invocation - // of this routine - channel_admin_ = event_channel; - - // Connect as a consumer - consumer_admin_ = channel_admin_.for_consumers (); - - // Obtain a reference to the proxy push supplier - suppliers_ = consumer_admin_.obtain_push_supplier (); - - suppliers_.connect_push_consumer (this, qos); - - System.out.println ("Registered the consumer successfully."); - - } - catch (RtecScheduler.UNKNOWN_TASK e) - { - System.err.println ("Demo_Consumer.open_consumer: Unknown task"); - System.err.println (e); - } - catch (RtecScheduler.DUPLICATE_NAME e) - { - System.err.println ("Demo_Consumer.open_consumer: Duplicate names"); - System.err.println (e); - } - catch(org.omg.CORBA.SystemException e) - { - System.err.println(e); - } - } -} - - - - - - - - - - diff --git a/TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java b/TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java deleted file mode 100644 index d424561567d..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java +++ /dev/null @@ -1,181 +0,0 @@ -// $Id$ -// -// ============================================================================ -// -// = FILENAME -// PushConsumerFactory.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This is the administor/factory for a PushConsumer. -// -// ============================================================================ - - - - -public class PushConsumerFactory { - - private org.omg.CORBA.ORB orb_; - private org.omg.CORBA.BOA boa_; - private org.omg.CORBA.Object naming_service_object_; - - private DataHandler dataHandler_; - private Navigation navigation_; - private Weapons weapons_; - - - public PushConsumerFactory (DataHandler dataHandler, - String nameServiceIOR, - String[] args, - java.applet.Applet applet) - { - try - { - dataHandler_ = dataHandler; - - // if the DOVE Browser is running as an Applet - if (applet != null) { - orb_ = org.omg.CORBA.ORB.init (applet, null); - } - else { // not running as an Applet, but as an normal Application - orb_ = org.omg.CORBA.ORB.init (); - } - boa_ = orb_.BOA_init (); - - // Get the Naming Service initial reference - - // Name Service Lookup cannot be used when running as an Applet - if (nameServiceIOR == null && applet != null) { - System.out.println (" Name Service Lookup cannot be used when running as an Applet! Quit!"); - System.exit (1); - } - - if (nameServiceIOR == null) { // only used when running via "java" or "vbj" - System.out.println ("Using the lookup protocol!"); - NS_Resolve ns_resolve_ = new NS_Resolve (); - naming_service_object_ = ns_resolve_.resolve_name_service (orb_); - } - else { - System.out.println ("Using the following IOR: " + nameServiceIOR); - naming_service_object_ = orb_.string_to_object (nameServiceIOR); - } - - } - catch(org.omg.CORBA.SystemException e) { - System.err.println ("PushConsumerFactory constructor: ORB and Name Service initialization"); - System.err.println(e); - } - - } - - public class Object_is_null_exception extends Exception - { - Object_is_null_exception (String s) - { - super (s); - } - } - - public void run () - { - try - { - - // Get the Naming Context to allow resolving the EventService and - // ScheduleService - CosNaming.NamingContext naming_context_ = - CosNaming.NamingContextHelper.narrow (naming_service_object_); - - if (naming_context_ == null) - { - System.err.println ("The Naming Context is null"); - System.exit (1); - } - System.out.println ("Reference to the Naming Service is ok."); - - // Get a reference for the EventService - - CosNaming.NameComponent[] ec_name_components_ = new CosNaming.NameComponent[1]; - ec_name_components_[0] = new CosNaming.NameComponent ("EventService",""); - org.omg.CORBA.Object event_channel_object_ = naming_context_.resolve (ec_name_components_); - - if (event_channel_object_ == null) - { - throw new Object_is_null_exception("EventService Object is null"); - } - - RtecEventChannelAdmin.EventChannel event_channel_ = - RtecEventChannelAdmin.EventChannelHelper.narrow (event_channel_object_); - - System.out.println ("Reference to the Event Service is ok."); - - // Get a reference for the ScheduleService - - CosNaming.NameComponent[] s_name_components_ = new CosNaming.NameComponent[1]; - s_name_components_[0] = new CosNaming.NameComponent ("ScheduleService",""); - org.omg.CORBA.Object scheduler_object_ = naming_context_.resolve (s_name_components_); - - if (scheduler_object_ == null) - { - throw new Object_is_null_exception("ScheduleService Object is null"); - } - - RtecScheduler.Scheduler scheduler_ = - RtecScheduler.SchedulerHelper.narrow (scheduler_object_); - - System.out.println ("Reference to the Naming Service is ok."); - - - // Start the consumer - System.out.println ("Instantiating the Push Consumer."); - PushConsumer pushConsumer_ = new PushConsumer (orb_, dataHandler_); - System.out.println ("Initializing the Push Consumer."); - pushConsumer_.open_consumer (event_channel_, scheduler_, "demo_consumer"); - - // Tell the CORBA environment that we are ready - - boa_.obj_is_ready (pushConsumer_); - - System.out.println ("boa.obj_is_ready succeeded"); - - boa_.impl_is_ready (); - } - catch (CosNaming.NamingContextPackage.CannotProceed e) - { - System.err.println ("CosNaming.NamingContextPackage.CannotProceed"); - System.err.println (e); - } - catch (CosNaming.NamingContextPackage.InvalidName e) - { - System.err.println ("CosNaming.NamingContextPackage.InvalidName"); - System.err.println (e); - } - catch (CosNaming.NamingContextPackage.NotFound e) - { - System.err.println ("CosNaming.NamingContextPackage.NotFound"); - System.err.println (e); - - } - catch (Object_is_null_exception e) - { - System.err.println (e); - } - catch(org.omg.CORBA.SystemException e) - { - System.err.println ("PushConsumerFactory.run: Failure"); - System.err.println(e); - } - } - - -} // public class PushConsumerFactory - - - - - - - diff --git a/TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java.JDK1.2 b/TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java.JDK1.2 deleted file mode 100644 index b6039ee72d9..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java.JDK1.2 +++ /dev/null @@ -1,180 +0,0 @@ -// $Id$ -// -// ============================================================================ -// -// = FILENAME -// PushConsumerFactory.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This is the administor/factory for a PushConsumer. -// -// ============================================================================ - - -public class PushConsumerFactory -{ - - private org.omg.CORBA.ORB orb_; - private org.omg.CORBA.Object naming_service_object_; - private DataHandler dataHandler_; - private Navigation navigation_; - private Weapons weapons_; - - - public PushConsumerFactory (DataHandler dataHandler, - String nameServiceIOR, - String[] args, - java.applet.Applet applet) - { - try { - dataHandler_ = dataHandler; - - // if the DOVE Browser is running as an Applet - if (applet != null) { - orb_ = org.omg.CORBA.ORB.init (applet, null); - } - else { // not running as an Applet, but as an normal Application - orb_ = org.omg.CORBA.ORB.init (args, null); - } - - // Get the Naming Service initial reference - - // Name Service Lookup cannot be used when running as an Applet - if (nameServiceIOR == null && applet != null) { - System.out.println (" Name Service Lookup cannot be used when running as an Applet! Quit!"); - System.exit (1); - } - - if (nameServiceIOR == null) { // only used when running via "java" or "vbj" - System.out.println ("Using the lookup protocol!"); - NS_Resolve ns_resolve = new NS_Resolve (); - naming_service_object_ = ns_resolve.resolve_name_service (orb_); - } - else { - System.out.println ("Using the following IOR: " + nameServiceIOR); - naming_service_object_ = orb_.string_to_object (nameServiceIOR); - } - - } - catch(org.omg.CORBA.SystemException e) { - System.err.println ("PushConsumerFactory constructor: ORB and Name Service initialization"); - System.err.println(e); - } - - } - - public class Object_is_null_exception extends Exception - { - Object_is_null_exception (String s) - { - super (s); - } - } - - public void run () - { - try - { - - // Get the Naming Context to allow resolving the EventService and - // ScheduleService - CosNaming.NamingContext naming_context = - CosNaming.NamingContextHelper.narrow (naming_service_object_); - - if (naming_context == null) - { - System.err.println ("The Naming Context is null"); - System.exit (1); - } - System.out.println ("Reference to the Naming Service is ok."); - - // Get a reference for the EventService - - CosNaming.NameComponent[] ec_name_components = new CosNaming.NameComponent[1]; - ec_name_components[0] = new CosNaming.NameComponent ("EventService",""); - org.omg.CORBA.Object event_channel_object = naming_context.resolve (ec_name_components); - - if (event_channel_object == null) - { - throw new Object_is_null_exception("EventService Object is null"); - } - - RtecEventChannelAdmin.EventChannel event_channel = - RtecEventChannelAdmin.EventChannelHelper.narrow (event_channel_object); - - System.out.println ("Reference to the Event Service is ok."); - - // Get a reference for the ScheduleService - - CosNaming.NameComponent[] s_name_components = new CosNaming.NameComponent[1]; - s_name_components[0] = new CosNaming.NameComponent ("ScheduleService",""); - org.omg.CORBA.Object scheduler_object = naming_context.resolve (s_name_components); - - if (scheduler_object == null) - { - throw new Object_is_null_exception("ScheduleService Object is null"); - } - - RtecScheduler.Scheduler scheduler = - RtecScheduler.SchedulerHelper.narrow (scheduler_object); - - System.out.println ("Reference to the Naming Service is ok."); - - - // Start the consumer - System.out.println ("Instantiating the Push Consumer."); - PushConsumer pushConsumer = new PushConsumer (orb_, dataHandler_); - System.out.println ("Initializing the Push Consumer."); - pushConsumer.open_consumer (event_channel, scheduler, "demo_consumer"); - - // Tell the CORBA environment that we are ready - - orb_.connect (pushConsumer); - - System.out.println ("Going into the event dispatching loop."); - - - java.lang.Object sync = new java.lang.Object(); - synchronized (sync) { - sync.wait(); - } - } - catch (java.lang.InterruptedException e) - { - } - catch (CosNaming.NamingContextPackage.CannotProceed e) - { - System.err.println ("CosNaming.NamingContextPackage.CannotProceed"); - System.err.println (e); - } - catch (CosNaming.NamingContextPackage.InvalidName e) - { - System.err.println ("CosNaming.NamingContextPackage.InvalidName"); - System.err.println (e); - } - catch (CosNaming.NamingContextPackage.NotFound e) - { - System.err.println ("CosNaming.NamingContextPackage.NotFound"); - System.err.println (e); - } - catch (Object_is_null_exception e) - { - System.err.println (e); - } - catch(org.omg.CORBA.SystemException e) - { - System.err.println ("PushConsumerFactory.run: Failure"); - System.err.println(e); - } - } -} // public class PushConsumerFactory - - - - - - - diff --git a/TAO/examples/Simulator/DOVEBrowser/Queue.java b/TAO/examples/Simulator/DOVEBrowser/Queue.java deleted file mode 100644 index 7ffaba15c52..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/Queue.java +++ /dev/null @@ -1,190 +0,0 @@ -// $Id$ - - -import java.util.Enumeration; - -public class Queue -{ - // Friendly? - Queue_Node head_ = null; - Queue_Node tail_ = null; - - private int length_ = 0; - - public Queue() - { - } - - public Enumeration forward_iterator() - { - return new Queue_Iterator(this, Queue_Iterator.FORWARD); - } - - public Enumeration reverse_iterator() - { - return new Queue_Iterator(this, Queue_Iterator.REVERSE); - } - - public void enqueue_tail(Object new_data) - { - Queue_Node new_node = new Queue_Node(new_data); - - if (tail_ == null) - { - tail_ = new_node; - head_ = new_node; - } - else - { - new_node.prev_ = tail_; - tail_.next_ = new_node; - tail_ = new_node; - } - - length_++; - } - - public void enqueue_head(Object new_data) - { - Queue_Node new_node = new Queue_Node(new_data); - - if (head_ == null) - { - tail_ = new_node; - head_ = new_node; - } - else - { - new_node.next_ = head_; - head_.prev_ = new_node; - head_ = new_node; - } - - length_++; - } - - public Object dequeue_head() - { - Object return_value = null; - - if (head_ == null) - return_value = null; - else if (tail_ == head_) - { - return_value = head_.data_; - tail_ = null; - head_ = null; - } - else - { - return_value = head_.data_; - head_ = head_.next_; - head_.prev_ = null; - } - - length_--; - - return return_value; - } - - public Object dequeue_tail() - { - Object return_value = null; - - if (tail_ == null) - return_value = null; - else if (tail_ == head_) - { - return_value = tail_.data_; - tail_ = null; - head_ = null; - } - else - { - return_value = tail_.data_; - tail_ = tail_.prev_; - tail_.next_ = null; - } - - length_--; - - return return_value; - } - - public int length() - { - return length_; - } - - public Object head() - { - if (head_ != null) - return head_.data_; - else - return null; - } - - public Object tail() - { - if (tail_ != null) - return tail_.data_; - else - return null; - } -} - -class Queue_Node -{ - public Queue_Node prev_ = null; - public Queue_Node next_ = null;; - public Object data_; - - public Queue_Node(Object data) - { - data_ = data; - } -} - -class Queue_Iterator implements Enumeration -{ - public static final boolean FORWARD = true; - public static final boolean REVERSE = false; - - private Queue queue_; - private Queue_Node queue_ptr_; - private boolean direction_ = FORWARD; - - public Queue_Iterator(Queue queue) - { - queue_ = queue; - queue_ptr_ = queue.head_; - } - - public Queue_Iterator(Queue queue, boolean direction) - { - queue_ = queue; - direction_ = direction; - - if (direction_) - queue_ptr_ = queue_.head_; - else - queue_ptr_ = queue_.tail_; - } - - public Object nextElement() - { - Object data = queue_ptr_.data_; - - if (direction_) - queue_ptr_ = queue_ptr_.next_; - else - queue_ptr_ = queue_ptr_.prev_; - - return data; - } - - public boolean hasMoreElements() - { - return queue_ptr_ != null; - } -} diff --git a/TAO/examples/Simulator/DOVEBrowser/VisComp.java b/TAO/examples/Simulator/DOVEBrowser/VisComp.java deleted file mode 100644 index 53294f33ea2..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/VisComp.java +++ /dev/null @@ -1,19 +0,0 @@ -// $Id$ -// -// = FILENAME -// VisComp.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This is the interface for Java Beans. -// -// ============================================================================ - - -public interface VisComp extends java.util.Observer { - - public void setName (String title); - public int getProperty (); -} diff --git a/TAO/examples/Simulator/DOVEBrowser/VisCompFactory.java b/TAO/examples/Simulator/DOVEBrowser/VisCompFactory.java deleted file mode 100644 index 288fcccceec..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/VisCompFactory.java +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ -// -// = FILENAME -// VisCompFactory.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This class serves as factory for Visualization Components -// -// ============================================================================ - -import java.beans.*; - -class VisCompFactory { - - VisComp getNewVisComp (int property, String name) { - - ClassLoader classLoader_ = this.getClass().getClassLoader(); - - VisComp visComp_ = null; - String visCompName_ = "VisComp"; - switch (property) { - case Properties.DOUBLE: - visCompName_ = "Double"+visCompName_; - break; - case Properties.NAVIGATION: - visCompName_ = "Navigation"+visCompName_; - break; - case Properties.WEAPONS: - visCompName_ = "Weapons"+visCompName_; - break; - default: return null; - } - try { - System.out.println ("Trying to connect: " + visCompName_+ " .. "); - visComp_ = (VisComp) Beans.instantiate (classLoader_, visCompName_); - visComp_.setName (name); - System.out.println ("Connected: " + visCompName_); - return visComp_; - } - catch (Exception e) { - System.out.println ("Unable to load JavaBean: " + e); - return null; - } - } -} \ No newline at end of file diff --git a/TAO/examples/Simulator/DOVEBrowser/WeaponsVisComp.java b/TAO/examples/Simulator/DOVEBrowser/WeaponsVisComp.java deleted file mode 100644 index 8c81bfc9c11..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/WeaponsVisComp.java +++ /dev/null @@ -1,144 +0,0 @@ -// $Id$ -// -// = FILENAME -// WeaponsVisComp.java -// -// = AUTHOR -// Seth Widoff (core functionality) -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This is a Visualization Component for displaying weapons. -// -// ============================================================================ - - -import java.io.*; -import java.util.*; -import java.awt.*; - - -public class WeaponsVisComp extends Panel implements VisComp -{ - private final static String ONLINE = "Online"; - private final static String OFFLINE = "Offline"; - private final static Font FONT_BIG = new Font ("Dialog", Font.BOLD, 14); - private final static Font FONT_SMALL = new Font ("Dialog", Font.BOLD, 10); - private final static Color BLUE = new Color (30, 144, 255); - - private int count_ = 0; - private Hashtable weapons_table_ = new Hashtable (); - private GridBagLayout gbl_= new GridBagLayout (); - private GridBagConstraints gbc_ = new GridBagConstraints (); - - Label default_label_ = new Label ("No weapons available", Label.CENTER); - - public WeaponsVisComp () - { - default_label_.setFont (FONT_BIG); - default_label_.setForeground (BLUE); - - setLayout (gbl_); - gbc_.gridx = 0; - gbc_.gridy = 0; - gbc_.gridheight = 1; - gbc_.gridwidth = 1; - gbc_.anchor = GridBagConstraints.NORTH; - gbc_.fill = GridBagConstraints.NONE; - setBackground (Color.black); - - gbl_.setConstraints (default_label_, gbc_); - add (default_label_); - } - - public void setName (String title) { - } - - public int getProperty () { - return Properties.WEAPONS; - } - - public Dimension getPreferredSize () { - return new Dimension (250, 200); - } - - public Dimension getMinimumSize () { - return new Dimension (80, 80); - } - - public void update (java.util.Observable observable, java.lang.Object obj) { - Weapons weapons_ = null; - try { - weapons_ = (Weapons) obj; - } - catch (Exception excp) { - System.out.println (excp); - System.out.println ("Visualization Component received wrong data type!"); - } - if (weapons_ != null) - { - for (int i = 0; i < weapons_.number_of_weapons && i < 5; i++) - { - String weapon = ""; - int status = 0; - switch (i) - { - default: - break; - case 0: weapon = weapons_.weapon1_identifier; - status = weapons_.weapon1_status; - break; - case 1: weapon = weapons_.weapon2_identifier; - status = weapons_.weapon2_status; - break; - case 2: weapon = weapons_.weapon3_identifier; - status = weapons_.weapon3_status; - break; - case 3: weapon = weapons_.weapon4_identifier; - status = weapons_.weapon4_status; - break; - case 4: weapon = weapons_.weapon5_identifier; - status = weapons_.weapon5_status; - break; - } - - - Label status_label_ = (Label)weapons_table_.get (weapon); - - if (status_label_ != null) - status_label_.setText ((status == 1) ? ONLINE : OFFLINE); - else - { - if (count_ == 0) - this.removeAll (); - - count_++; - Label weapon_label_ = new Label (count_ + ". " + weapon, Label.LEFT); - status_label_ = new Label ((status == 1) ? ONLINE : OFFLINE, Label.RIGHT); - - status_label_.setFont (FONT_SMALL); - weapon_label_.setFont (FONT_SMALL); - weapon_label_.setForeground (BLUE); - - gbc_.gridx = 0; - gbc_.anchor = GridBagConstraints.WEST; - gbl_.setConstraints (weapon_label_, gbc_); - add (weapon_label_); - gbc_.gridx = 1; - gbc_.anchor = GridBagConstraints.EAST; - gbl_.setConstraints (status_label_, gbc_); - add (status_label_); - - gbc_.gridy++; - weapons_table_.put (weapon, status_label_); - } - - status_label_.setForeground ((status == 1) ? - Color.lightGray : - Color.darkGray); - } - - validate (); - } - } -} diff --git a/TAO/examples/Simulator/DOVEBrowser/make.bat b/TAO/examples/Simulator/DOVEBrowser/make.bat deleted file mode 100755 index d2bb1163e00..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/make.bat +++ /dev/null @@ -1,45 +0,0 @@ -REM This File generates the necessary classes for Visibroker and JDK1.2 -REM call it like: make VB or make JDK - - -if %1 == VB goto VB - - -:JDK -echo JDK1.2 -del RtecEventComm -del RtecEventChannelAdmin -del RtecScheduler -del CosNaming -del TimeBase -idltojava RtecEventComm.idl -idltojava RtecEventChannelAdmin.idl -idltojava RtecScheduler.idl -idltojava CosNaming.idl -idltojava CosTimeBase.idl -javac CosNaming\NamingContextPackage\*.java -javac CosNaming\*.java -javac TimeBase\*.java -javac RtecScheduler\*.java -javac RtecEventComm\*.java -javac RtecEventComm\EventChannelPackage\*.java -javac RtecEventChannelAdmin\*.java -javac *.java - -goto end - -:VB -echo Visibroker -del RtecEventComm -del RtecEventChannelAdmin -del RtecScheduler -del CosNaming -del TimeBase -idl2java RtecEventComm.idl -idl2java RtecEventChannelAdmin.idl -idl2java RtecScheduler.idl -idl2java CosNaming.idl -idl2java CosTimeBase.idl -vbjc *.java - -:end diff --git a/TAO/examples/Simulator/DOVEMIB/AnyAnalyser.cpp b/TAO/examples/Simulator/DOVEMIB/AnyAnalyser.cpp deleted file mode 100644 index 6fef04c21fc..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/AnyAnalyser.cpp +++ /dev/null @@ -1,203 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// AnyAnalyser.cpp -// -// = AUTHOR -// Michael Kircher -// -// = DESCRIPTION -// Accepts an CORBA::Any, traverses it, copies it into a tree structure -// and prints out the tree. -// -// ============================================================================ - -#include "AnyAnalyser.h" -#include "tao/Align.h" - -AnyAnalyser::AnyAnalyser (const char *file_name) - : printVisitor_ptr_(new PrintVisitor (file_name)) { -} - -AnyAnalyser::~AnyAnalyser () { - delete printVisitor_ptr_; -} - -void -AnyAnalyser::close () { - printVisitor_ptr_->close(); -} - -void -AnyAnalyser::printAny (CORBA::TypeCode_ptr any_type, const void *any_value) { - - // Analyse the any and store the results in a tree structure - RecurseInfo recurseInfo_ = {PARENT_IS_NO_STRUCT,// identifies parent - 0, // parent typecode - 0, // member count - 0}; // recursion level - - // have a variable with can be incremented by all - // recursive analyse calls - const unsigned char *value_ptr_ = (const unsigned char *)any_value; - - // analyse the any - Node *node_ptr_ = analyse (any_type, // typecode information - value_ptr_, // pointer to the memory - recurseInfo_); // recurse information - - // print the results - node_ptr_->Accept ((NodeVisitor *)printVisitor_ptr_); -} - -Node * -AnyAnalyser::analyse (CORBA::TypeCode_ptr tc_ptr, - const unsigned char *&value_ptr, - RecurseInfo ri) -{ - CORBA::Long size, alignment, align_offset; - CORBA::TypeCode_ptr param; - const unsigned char *start_addr = value_ptr; - - TAO_TRY { - Node *node_ptr_ = 0; - - if (tc_ptr != 0) { - - switch (tc_ptr->kind(TAO_TRY_ENV)) { - - case CORBA::tk_struct: - { - // to hold a pointer to the start of the struct - start_addr = value_ptr; - - // create a new Node - StructNode *structNode_ptr_ = new StructNode (tc_ptr->name (TAO_TRY_ENV), - ri.recursion_level); - - for (unsigned int i = 0; i < tc_ptr->member_count (TAO_TRY_ENV); i++) { - - // get the TypeCode pointer to the ith parameter - // and analyse it recursively - RecurseInfo recurseInfo_ = {PARENT_IS_STRUCT, // identifies parent - tc_ptr, // parent typecode - i, // member count - ri.recursion_level+1}; - - - // get the type code of the child i - param = tc_ptr->member_type (i, TAO_TRY_ENV); - TAO_CHECK_ENV; - - // get the size - size = param->size (TAO_TRY_ENV); - TAO_CHECK_ENV; - - // get the alignment - alignment = param->alignment (TAO_TRY_ENV); - TAO_CHECK_ENV; - - // calculate - align_offset = - (ptr_arith_t) ptr_align_binary (value_ptr, alignment) - - (ptr_arith_t) value_ptr - + (ptr_arith_t) ptr_align_binary (start_addr, alignment) - - (ptr_arith_t) start_addr; - TAO_CHECK_ENV; - - // if both the start_addr and data are not aligned as per - // the alignment, we do not add the offset - value_ptr = (unsigned char *) ((ptr_arith_t) value_ptr + - ((align_offset == alignment) ? - 0 : align_offset)); - - structNode_ptr_->addChild (analyse (param, - value_ptr, - recurseInfo_)); - } - node_ptr_ = (Node *)structNode_ptr_; - } - break; - - case CORBA::tk_double: - if (ri.kind == PARENT_IS_STRUCT) { - node_ptr_ = (Node *) new DoubleNode ((CORBA::Double *)value_ptr, - ri.parent_tc_ptr->member_name(ri.member_number, - TAO_TRY_ENV), - ri.recursion_level); - } - else { - node_ptr_ = (Node *) new DoubleNode ((CORBA::Double *)value_ptr, - tc_ptr->name(TAO_TRY_ENV), - ri.recursion_level); - } - value_ptr += 8; - break; - - case CORBA::tk_long: - if (ri.kind == PARENT_IS_STRUCT) { - node_ptr_ = (Node *) new LongNode ((CORBA::Long *)value_ptr, - ri.parent_tc_ptr->member_name(ri.member_number, - TAO_TRY_ENV), - ri.recursion_level); - } - else { - node_ptr_ = (Node *) new LongNode ((CORBA::Long *)value_ptr, - tc_ptr->name(TAO_TRY_ENV), - ri.recursion_level); - } - value_ptr += 4; - break; - - case CORBA::tk_ulong: - if (ri.kind == PARENT_IS_STRUCT) { - node_ptr_ = (Node *) new ULongNode ((CORBA::ULong *)value_ptr, - ri.parent_tc_ptr->member_name(ri.member_number, - TAO_TRY_ENV), - ri.recursion_level); - } - else { - node_ptr_ = (Node *) new ULongNode ((CORBA::ULong *)value_ptr, - tc_ptr->name(TAO_TRY_ENV), - ri.recursion_level); - } - value_ptr += 4; - break; - - case CORBA::tk_string: - if (ri.kind == PARENT_IS_STRUCT) { - node_ptr_ = (Node *) new StringNode (*(CORBA::String_var *)value_ptr, - ri.parent_tc_ptr->member_name(ri.member_number, - TAO_TRY_ENV), - ri.recursion_level); - } - else { - node_ptr_ = (Node *) new StringNode (*(CORBA::String_var *)value_ptr, - tc_ptr->name(TAO_TRY_ENV), - ri.recursion_level); - } - value_ptr += 4; - break; - - default: ACE_ERROR ((LM_ERROR, "AnyAnalyser::analyse: No known kind of type detected!\n")); - exit (1); - break; - } - TAO_CHECK_ENV; - return node_ptr_; - } - else { - ACE_DEBUG ((LM_ERROR, "AnyAnalyser::analyse: TypeCode pointer to member was Null!\n")); - } - } - TAO_CATCHANY { - ACE_ERROR ((LM_ERROR, "(%t)AnyAnalyser::analyse: Error in analysing the any.\n")); - } - TAO_ENDTRY; - return 0; -} - - diff --git a/TAO/examples/Simulator/DOVEMIB/AnyAnalyser.h b/TAO/examples/Simulator/DOVEMIB/AnyAnalyser.h deleted file mode 100644 index eeb0613c661..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/AnyAnalyser.h +++ /dev/null @@ -1,57 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// AnyAnalyser.h -// -// = AUTHOR -// Michael Kircher -// -// = DESCRIPTION -// Accepts an CORBA::Any, traverses it, copies it into a tree structure -// and prints out the tree. -// -// ============================================================================ - - -#include "PrintVisitor.h" -#include "tao/corba.h" - -#if !defined (ANYANALYSER_H) -#define ANYANALYSER_H - -typedef enum {PARENT_IS_STRUCT, PARENT_IS_NO_STRUCT} KIND; - -typedef struct { - KIND kind; - CORBA::TypeCode_ptr parent_tc_ptr; - unsigned int member_number; - unsigned int recursion_level; -} RecurseInfo; - - -class AnyAnalyser { - -public: - AnyAnalyser (const char *filename); - - ~AnyAnalyser (); - - // cause the PrintViewer to be deleted to close the file - void close (); - - // main starting point includes analysing and printing - void printAny (CORBA::TypeCode_ptr any_type, const void *any_value); - -private: - Node *analyse (CORBA::TypeCode_ptr tc_ptr, - const unsigned char *&value_ptr, - RecurseInfo recurseInfo); - - PrintVisitor *printVisitor_ptr_; -}; - -#endif - diff --git a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.cpp b/TAO/examples/Simulator/DOVEMIB/DOVEMIB.cpp deleted file mode 100644 index b8559e0d9d3..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.cpp +++ /dev/null @@ -1,407 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// Event_Con.cpp -// -// = DESCRIPTION -// This demo just tests the basic functionality of the Event Service -// One Conumer which inherits from the Rtec Consumer. One Supplier -// with an internal Rtec Consumer and one internal Rtec Supplier. -// The internal Supplier is just a demo supplier because the -// architecture expects an supplier which has inherited from the -// Rtec Supplier. -// -// = AUTHOR -// originally -// David Levine (levine@cs.wustl.edu) and -// Tim Harrison (harrison@cs.wustl.edu) -// modified -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include - -#include "ace/Get_Opt.h" -#include "ace/Sched_Params.h" -#include "ace/Profile_Timer.h" -#include "tao/Timeprobe.h" -#include "orbsvcs/Event_Utilities.h" -#include "orbsvcs/Event_Service_Constants.h" -#include "orbsvcs/Scheduler_Factory.h" -#include "DOVEMIB.h" - -static const char usage [] = -"[-? |\n" -" [-O[RBport] ORB port number]" -" [-m of messages to receive [100]]" -" [-f filename for the repository [event_repository]]]"; - -static int events_received_ = 0; -static char *input_file_name = 0; -static int events_to_receive_ = 100; -RtecEventChannelAdmin::EventChannel_var ec; - -// ************************************************************ - -MIB_Consumer::MIB_Consumer (void) -: anyAnalyser_ (input_file_name) { -} - -int -MIB_Consumer::open_consumer (RtecEventChannelAdmin::EventChannel_ptr ec, - const char *my_name) { - TAO_TRY { - // Get a Scheduler. - - RtecScheduler::Scheduler_ptr server = - ACE_Scheduler_Factory::server (); - - // Define Real-time information. - - rt_info_ = server->create (my_name, TAO_TRY_ENV); - - server->set (rt_info_, - RtecScheduler::VERY_LOW_CRITICALITY, - ORBSVCS_Time::zero, - ORBSVCS_Time::zero, - ORBSVCS_Time::zero, - 2500000, - RtecScheduler::VERY_LOW_IMPORTANCE, - ORBSVCS_Time::zero, - 1, - RtecScheduler::OPERATION, - TAO_TRY_ENV); - - // Create the event that we're registering for. - - ACE_ConsumerQOS_Factory dependencies; - dependencies.start_disjunction_group (); - dependencies.insert_type (ACE_ES_EVENT_NOTIFICATION, rt_info_); - dependencies.insert_type (ACE_ES_EVENT_SHUTDOWN, rt_info_); - - // The channel administrator is the event channel we got from - // the invocation of this routine. - - this->channel_admin_ = ec; - - // = Connect as a consumer. - - this->consumer_admin_ = channel_admin_->for_consumers (TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Obtain a pointer to a push supplier. "suppliers" is - // inherited from a base class. - - this->suppliers_ = consumer_admin_->obtain_push_supplier (TAO_TRY_ENV); - TAO_CHECK_ENV; - - // The _this function returns an object pointer. This is needed - // because a consumer inherits from a Servant class that is no - // CORBA::Object. - - RtecEventComm::PushConsumer_var objref = this->_this (TAO_TRY_ENV); - TAO_CHECK_ENV; - - this->suppliers_->connect_push_consumer (objref.in (), - dependencies.get_ConsumerQOS (), - TAO_TRY_ENV); - TAO_CHECK_ENV; - } - TAO_CATCH (RtecEventChannelAdmin::EventChannel::SUBSCRIPTION_ERROR, se) { - ACE_ERROR_RETURN ((LM_ERROR, - "MIB_Consumer::open: subscribe failed.\n"), - -1); - } - TAO_CATCHANY { - ACE_ERROR_RETURN ((LM_ERROR, - "MIB_Consumer::open: unexpected exception.\n"), - -1); - } - TAO_ENDTRY; - - return 0; -} - -void -MIB_Consumer::disconnect_push_consumer (CORBA::Environment &) -{ - ACE_DEBUG ((LM_DEBUG, - "Consumer received disconnect from channel.\n")); -} - - -// This method is called when the Event Service pushes a new -// event to us - -void -MIB_Consumer::push (const RtecEventComm::EventSet &events, - CORBA::Environment &) -{ - - if (events.length () == 0) { - ACE_DEBUG ((LM_DEBUG, "no events\n")); - return; - } - - // count the number of events - events_received_++; - - // if we have enough we quit - if (events_received_ > events_to_receive_) { - this->shutdown (); - } - - // Several events could be sent at once - for (CORBA::ULong i = 0; i < events.length (); ++i) { - - if (events[i].type_ == ACE_ES_EVENT_SHUTDOWN) { - - ACE_DEBUG ((LM_DEBUG, "MIB Consumer: received shutdown event\n")); - this->shutdown (); - } - else { - - if (events_received_ == 1) { - ACE_DEBUG ((LM_DEBUG, "MIB Consumer: received an event, going to be mute.\n")); - } - - TAO_TRY - { - if (events[i].data_.any_value.any_owns_data ()) - { - void * void_ptr = ACE_OS::malloc (events[i].data_.any_value.type()->size(TAO_TRY_ENV)); - - TAO_InputCDR stream ((ACE_Message_Block *)events[i].data_.any_value.value ()); - if (stream.decode (events[i].data_.any_value.type(), void_ptr, 0, TAO_TRY_ENV) - != CORBA::TypeCode::TRAVERSE_CONTINUE) - { - cout << "MIB_Consumer::push: " - << "Something went wrong when decoding the Message Block (Any value)!" - << endl; - // something went wrong - ACE_OS::free(void_ptr); - return; - } - TAO_CHECK_ENV; - - // invoke the AnyAnalyser - anyAnalyser_.printAny (events[i].data_.any_value.type(), void_ptr); - ACE_OS::free(void_ptr); - } - else - { - // invoke the AnyAnalyser - anyAnalyser_.printAny (events[i].data_.any_value.type(), events[i].data_.any_value.value()); - } - - } - TAO_CATCHANY { - ACE_ERROR ((LM_ERROR, "(%t)Error in extracting the Navigation and Weapons data.\n")); - } - TAO_ENDTRY; - } - } -} - -void -MIB_Consumer::shutdown (void) -{ - TAO_TRY - { - // cause the AnyAnalyser to close the file - anyAnalyser_.close(); - - // Disconnect from the push supplier. - this->suppliers_->disconnect_push_supplier (TAO_TRY_ENV); - TAO_CHECK_ENV; - - ACE_DEBUG ((LM_DEBUG, "@@ we should shutdown here!!!\n")); - TAO_CHECK_ENV; - - ec = 0; - - TAO_ORB_Core_instance ()->orb ()->shutdown (); - TAO_CHECK_ENV; - } - TAO_CATCHANY - { - ACE_ERROR ((LM_ERROR, - "(%t) MIB_Consumer::shutdown: unexpected exception.\n")); - } - TAO_ENDTRY; -} - -// function get_options - -static unsigned int -get_options (int argc, char *argv []) -{ - ACE_Get_Opt get_opt (argc, argv, "O?f:m:"); - int opt; - unsigned int temp; - - while ((opt = get_opt ()) != EOF) - { - switch (opt) - { - case '?': - ACE_DEBUG ((LM_DEBUG, - "Usage: %s %s\n", - argv[0], usage)); - ACE_OS::exit (0); - break; - - case 'f': - input_file_name = get_opt.optarg; - - if (!input_file_name || ACE_OS::strlen (input_file_name) == 0) { - input_file_name = 0; - ACE_ERROR_RETURN ((LM_ERROR, - "%s: file name must be specified with -f option", - argv[0]), - 1); - } - break; - - case 'm': - temp = (unsigned int) ACE_OS::atoi (get_opt.optarg); - if (temp > 0) { - events_to_receive_ = temp; - ACE_DEBUG ((LM_DEBUG,"Messages to receive: %d\n", events_to_receive_)); - } - else { - ACE_ERROR_RETURN ((LM_ERROR, "%s: count must be > 0", argv[0]), 1); - } - break; - - default: - ACE_ERROR_RETURN ((LM_ERROR, - "%s: unknown arg, -%c\n" - "Usage: %s %s\n", - argv[0], char(opt), - argv[0], usage), 1); - } - } - - if (argc != get_opt.optind) - ACE_ERROR_RETURN ((LM_ERROR, - "%s: too many arguments\n" - "Usage: %s %s\n", - argv[0], - argv[0], - usage), - 1); - return 0; -} - -// function main. - -int -main (int argc, char *argv []) -{ - TAO_TRY - { - // Initialize ORB. - - CORBA::ORB_var orb = - CORBA::ORB_init (argc, argv, "internet", TAO_TRY_ENV); - TAO_CHECK_ENV; - - CORBA::Object_var poa_object = - orb->resolve_initial_references("RootPOA"); - - if (CORBA::is_nil (poa_object.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize the POA.\n"), - 1); - - PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (poa_object.in (), TAO_TRY_ENV); - TAO_CHECK_ENV; - - PortableServer::POAManager_var poa_manager = - root_poa->the_POAManager (TAO_TRY_ENV); - TAO_CHECK_ENV; - - CORBA::Object_var naming_obj = - orb->resolve_initial_references ("NameService"); - - if (CORBA::is_nil (naming_obj.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize the POA.\n"), - 1); - - CosNaming::NamingContext_var naming_context = - CosNaming::NamingContext::_narrow (naming_obj.in (), - TAO_TRY_ENV); - TAO_CHECK_ENV; - - ACE_Scheduler_Factory::use_config (naming_context.in ()); - - if (get_options (argc, argv)) - ACE_OS::exit (-1); - - // Get the Event Channel. - - CosNaming::Name channel_name (1); - channel_name.length (1); - channel_name[0].id = CORBA::string_dup ("EventService"); - - CORBA::Object_var ec_obj = - naming_context->resolve (channel_name, - TAO_TRY_ENV); - TAO_CHECK_ENV; - - ec = - RtecEventChannelAdmin::EventChannel::_narrow (ec_obj.in(), TAO_TRY_ENV); - TAO_CHECK_ENV; - - if (ec.ptr() == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Not able to get the Event Service reference.\n"), - -1); - - // Create consumer. - - MIB_Consumer *mIB_Consumer; - ACE_NEW_RETURN (mIB_Consumer, - MIB_Consumer (), - -1); - - if (mIB_Consumer->open_consumer (ec.ptr (), - "MIB_Consumer") == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "Someone was feeling introverted.\n"), - -1); - - poa_manager->activate (TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Run the ORB - - if (orb->run () == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "%p\n", - "CORBA::ORB::run"), - -1); - TAO_CHECK_ENV; - - ec = 0; - - root_poa->destroy (CORBA::B_TRUE, - CORBA::B_TRUE, - TAO_TRY_ENV); - TAO_CHECK_ENV; - - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("SYS_EX"); - } - TAO_ENDTRY; - - return 0; -} diff --git a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsp b/TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsp deleted file mode 100644 index abbae82b5cf..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsp +++ /dev/null @@ -1,102 +0,0 @@ -# Microsoft Developer Studio Project File - Name="DOVEMIB" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 5.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=DOVEMIB - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "DOVEMIB.MAK". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "DOVEMIB.MAK" CFG="DOVEMIB - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "DOVEMIB - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "DOVEMIB - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "DOVEMIB - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Release" -# PROP Intermediate_Dir "Release" -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 - -!ELSEIF "$(CFG)" == "DOVEMIB - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "Debug" -# PROP Intermediate_Dir "Debug" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\..\..\..\\" /I "..\..\..\..\\" /I "..\..\..\..\..\..\\" /I "..\..\..\\" /I "..\..\..\tao" /I "..\..\..\orbsvcs" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "TAO_ORBSVCS_HAS_DLL" /FR /FD /c -# SUBTRACT CPP /YX -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept -# ADD LINK32 aced.lib TAO.lib orbsvcs.lib /nologo /subsystem:console /pdb:"DOVEMIB.pdb" /debug /machine:I386 /out:"DOVEMIB.exe" /pdbtype:sept /libpath:"..\..\..\..\..\ace" /libpath:"..\..\..\..\tao" /libpath:"..\..\..\orbsvcs" -# SUBTRACT LINK32 /pdb:none - -!ENDIF - -# Begin Target - -# Name "DOVEMIB - Win32 Release" -# Name "DOVEMIB - Win32 Debug" -# Begin Source File - -SOURCE=.\AnyAnalyser.cpp -# End Source File -# Begin Source File - -SOURCE=.\DOVEMIB.cpp -# End Source File -# Begin Source File - -SOURCE=.\Node.cpp -# End Source File -# Begin Source File - -SOURCE=.\PrintVisitor.cpp -# End Source File -# End Target -# End Project diff --git a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsw b/TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsw deleted file mode 100644 index 92002d82e84..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsw +++ /dev/null @@ -1,53 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 5.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "DOVEMIB"=.\DOVEMIB.DSP - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "DOVEMIBx"=.\DOVEMIBx.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "TestClient"=.\TestClient.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.h b/TAO/examples/Simulator/DOVEMIB/DOVEMIB.h deleted file mode 100644 index 8730e2d56d0..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.h +++ /dev/null @@ -1,62 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = FILENAME -// DOVEMIB.h -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#if !defined (DOVE_MIB_H) -#define DOVE_MIB_H - -//#include "ace/SString.h" -#include "orbsvcs/RtecEventChannelAdminC.h" -#include "orbsvcs/RtecEventCommS.h" -#include "AnyAnalyser.h" - -class MIB_Consumer : public POA_RtecEventComm::PushConsumer -{ - // = TITLE - // Demo Consumer - // - // = DESCRIPTION - // Simple example of a consumer that registers for supplier - // notifications. -public: - MIB_Consumer (void); - - int open_consumer (RtecEventChannelAdmin::EventChannel_ptr ec, - const char *my_name); - // Uses the name server to obtain a reference to the - // and registers with channel to receive notifications from the - // supplier. Also registers to receive shutdown messages from the - // supplier. Stores for printing out messages. Returns 0 - // on success, -1 on failure. - - virtual void disconnect_push_consumer (CORBA::Environment &); - // The channel is disconnecting. - - // = (not protected to allow short-circuiting) protected: - virtual void push (const RtecEventComm::EventSet &events, - CORBA::Environment &); - // If the [0] is a notification, prints out the data from - // the supplier. If its a shutdown message, the consumer - // disconnects from the channel. - -protected: - void shutdown (void); - // Disconnect from the Event Service. - - // = Event channel adminstration references. - RtecEventChannelAdmin::EventChannel_var channel_admin_; - RtecEventChannelAdmin::ConsumerAdmin_var consumer_admin_; - RtecEventChannelAdmin::ProxyPushSupplier_var suppliers_; - AnyAnalyser anyAnalyser_; -private: - RtecScheduler::handle_t rt_info_; -}; - -#endif /* DOVE_MIB_H */ diff --git a/TAO/examples/Simulator/DOVEMIB/DOVEMIBx.dsp b/TAO/examples/Simulator/DOVEMIB/DOVEMIBx.dsp deleted file mode 100644 index 6ad38a8cef7..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/DOVEMIBx.dsp +++ /dev/null @@ -1,177 +0,0 @@ -# Microsoft Developer Studio Project File - Name="DOVEMIBx" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 5.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=DOVEMIBx - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "DOVEMIBx.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "DOVEMIBx.mak" CFG="DOVEMIBx - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "DOVEMIBx - Win32 Release" (based on\ - "Win32 (x86) Console Application") -!MESSAGE "DOVEMIBx - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "DOVEMIBx - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Release" -# PROP Intermediate_Dir "Release" -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 - -!ELSEIF "$(CFG)" == "DOVEMIBx - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "DOVEMIB0" -# PROP BASE Intermediate_Dir "DOVEMIB0" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "DOVEMIB0" -# PROP Intermediate_Dir "DOVEMIB0" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /W3 /Gm /GX /Zi /Od /I "..\..\..\..\..\\" /I "..\..\..\..\\" /I "..\..\..\..\..\..\\" /I "..\..\..\\" /I "..\..\..\tao" /I "..\..\..\orbsvcs" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "TAO_ORBSVCS_HAS_DLL" /YX /FD /c -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept -# ADD LINK32 aced.lib TAO.lib orbsvcs.lib /nologo /subsystem:console /pdb:"DOVEMIBx.pdb" /debug /machine:I386 /out:"DOVEMIBx.exe" /pdbtype:sept /libpath:"..\..\..\..\..\ace" /libpath:"..\..\..\..\tao" /libpath:"..\..\..\orbsvcs" -# SUBTRACT LINK32 /pdb:none - -!ENDIF - -# Begin Target - -# Name "DOVEMIBx - Win32 Release" -# Name "DOVEMIBx - Win32 Debug" -# Begin Source File - -SOURCE=.\any_test.idl - -!IF "$(CFG)" == "DOVEMIBx - Win32 Release" - -!ELSEIF "$(CFG)" == "DOVEMIBx - Win32 Debug" - -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\any_test.idl -InputName=any_test - -BuildCmds= \ - ..\..\..\..\tao_idl\tao_idl $(InputName).idl - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\any_test_i.cpp -# End Source File -# Begin Source File - -SOURCE=.\any_testC.cpp -# End Source File -# Begin Source File - -SOURCE=.\any_testS.cpp -# End Source File -# Begin Source File - -SOURCE=.\AnyAnalyser.cpp -# End Source File -# Begin Source File - -SOURCE=.\NavWeap.idl - -!IF "$(CFG)" == "DOVEMIBx - Win32 Release" - -!ELSEIF "$(CFG)" == "DOVEMIBx - Win32 Debug" - -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\NavWeap.idl -InputName=NavWeap - -BuildCmds= \ - ..\..\..\..\tao_idl\tao_idl $(InputName).idl - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\NavWeapC.cpp -# End Source File -# Begin Source File - -SOURCE=.\Node.cpp -# End Source File -# Begin Source File - -SOURCE=.\PrintVisitor.cpp -# End Source File -# Begin Source File - -SOURCE=.\svr.cpp -# End Source File -# End Target -# End Project diff --git a/TAO/examples/Simulator/DOVEMIB/Makefile b/TAO/examples/Simulator/DOVEMIB/Makefile deleted file mode 100644 index 80559da5512..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/Makefile +++ /dev/null @@ -1,978 +0,0 @@ -#---------------------------------------------------------------------------- -# -# $Id$ -# -# Top-level Makefile for the ACE-ified Sun Ref. implementation -# of IIOP ORB -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -ifndef TAO_ROOT - TAO_ROOT = $(ACE_ROOT)/TAO -endif # ! TAO_ROOT - -IDL_SRC= NavWeapC.cpp -PROG_SRCS = $(IDL_SRC) DOVEMIB.cpp Node.cpp PrintVisitor.cpp AnyAnalyser.cpp - -LSRC = $(PROG_SRCS) - -MIB_OBJS = DOVEMIB.o NavWeapC.o Node.o PrintVisitor.o AnyAnalyser.o - - -BIN = DOVEMIB -BUILD = $(BIN) -VLDLIBS = $(LDLIBS:%=%$(VAR)) -VBIN = $(BIN:%=%$(VAR)) - -LDLIBS= -lorbsvcs -lTAO - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(TAO_ROOT)/rules.tao.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU -include $(TAO_ROOT)/taoconfig.mk - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao -CPPFLAGS += -I$(TAO_ROOT)/orbsvcs -I$(TAO_ROOT) -I$(TAO_ROOT)/tao/compat $(TSS_ORB_FLAG)#-H - -$(IDL_SRC): NavWeap.idl - $(TAO_ROOT)/TAO_IDL/tao_idl NavWeap.idl - -DOVEMIB: $(addprefix $(VDIR),$(MIB_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) - - -realclean: clean - -/bin/rm -rf - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/NavWeapC.o .obj/NavWeapC.so .shobj/NavWeapC.o .shobj/NavWeapC.so: NavWeapC.cpp NavWeapC.h \ - $(TAO_ROOT)/tao/corba.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(ACE_ROOT)/ace/IPC_SAP.h \ - $(ACE_ROOT)/ace/IPC_SAP.i \ - $(ACE_ROOT)/ace/SOCK.i \ - $(ACE_ROOT)/ace/SOCK_IO.i \ - $(ACE_ROOT)/ace/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/SString.h \ - $(ACE_ROOT)/ace/SString.i \ - $(ACE_ROOT)/ace/SOCK_Acceptor.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/SOCK_Acceptor.i \ - $(ACE_ROOT)/ace/SOCK_Connector.h \ - $(ACE_ROOT)/ace/SOCK_Connector.i \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(ACE_ROOT)/ace/Signal.i \ - $(ACE_ROOT)/ace/Object_Manager.h \ - $(ACE_ROOT)/ace/Object_Manager.i \ - $(ACE_ROOT)/ace/Managed_Object.h \ - $(ACE_ROOT)/ace/Managed_Object.i \ - $(ACE_ROOT)/ace/Service_Config.i \ - $(ACE_ROOT)/ace/Reactor.h \ - $(ACE_ROOT)/ace/Handle_Set.h \ - $(ACE_ROOT)/ace/Handle_Set.i \ - $(ACE_ROOT)/ace/Timer_Queue.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Reactor_Impl.h \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Connector.h \ - $(ACE_ROOT)/ace/Map_Manager.h \ - $(ACE_ROOT)/ace/Map_Manager.i \ - $(ACE_ROOT)/ace/Svc_Handler.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Message_Queue.h \ - $(ACE_ROOT)/ace/Message_Block.h \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc.i \ - $(ACE_ROOT)/ace/Malloc_T.h \ - $(ACE_ROOT)/ace/Malloc_T.i \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(ACE_ROOT)/ace/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/Task_T.i \ - $(ACE_ROOT)/ace/Dynamic.h \ - $(ACE_ROOT)/ace/Dynamic.i \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Svc_Handler.i \ - $(ACE_ROOT)/ace/Connector.i \ - $(ACE_ROOT)/ace/Acceptor.h \ - $(ACE_ROOT)/ace/Acceptor.i \ - $(TAO_ROOT)/tao/compat/objbase.h \ - $(TAO_ROOT)/tao/compat/initguid.h \ - $(TAO_ROOT)/tao/orbconf.h \ - $(TAO_ROOT)/tao/Align.h \ - $(TAO_ROOT)/tao/ORB.h \ - $(TAO_ROOT)/tao/Sequence.h \ - $(TAO_ROOT)/tao/Sequence.i \ - $(TAO_ROOT)/tao/Sequence_T.h \ - $(TAO_ROOT)/tao/Sequence_T.i \ - $(TAO_ROOT)/tao/Object_KeyC.h \ - $(TAO_ROOT)/tao/Object_KeyC.i \ - $(TAO_ROOT)/tao/Exception.h \ - $(TAO_ROOT)/tao/Any.h \ - $(TAO_ROOT)/tao/Any.i \ - $(TAO_ROOT)/tao/params.h \ - $(TAO_ROOT)/tao/Client_Strategy_Factory.h \ - $(TAO_ROOT)/tao/Server_Strategy_Factory.h \ - $(TAO_ROOT)/tao/default_client.h \ - $(TAO_ROOT)/tao/default_server.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.i \ - $(TAO_ROOT)/tao/NVList.h \ - $(TAO_ROOT)/tao/NVList.i \ - $(TAO_ROOT)/tao/Object.h \ - $(TAO_ROOT)/tao/Principal.h \ - $(TAO_ROOT)/tao/Request.h \ - $(TAO_ROOT)/tao/Server_Request.h \ - $(TAO_ROOT)/tao/Typecode.h \ - $(TAO_ROOT)/tao/Typecode.i \ - $(TAO_ROOT)/tao/Marshal.h \ - $(TAO_ROOT)/tao/CDR.h \ - $(TAO_ROOT)/tao/Stub.h \ - $(TAO_ROOT)/tao/Stub.i \ - $(TAO_ROOT)/tao/POA.h \ - $(TAO_ROOT)/tao/POAC.h \ - $(TAO_ROOT)/tao/POAC.i \ - $(TAO_ROOT)/tao/Servant_Base.h \ - $(TAO_ROOT)/tao/POAS.h \ - $(TAO_ROOT)/tao/POAS.i \ - $(TAO_ROOT)/tao/Object_Table.h \ - $(TAO_ROOT)/tao/Connect.h \ - $(TAO_ROOT)/tao/ORB_Core.h \ - $(TAO_ROOT)/tao/ORB_Core.i \ - $(ACE_ROOT)/ace/Dynamic_Service.h \ - $(TAO_ROOT)/tao/Operation_Table.h \ - $(TAO_ROOT)/tao/debug.h \ - $(TAO_ROOT)/tao/IIOP_Object.h \ - $(TAO_ROOT)/tao/IIOP_ORB.h \ - $(TAO_ROOT)/tao/IIOP_Interpreter.h \ - $(TAO_ROOT)/tao/GIOP.h \ - $(TAO_ROOT)/tao/Object.i \ - $(TAO_ROOT)/tao/ORB.i \ - $(TAO_ROOT)/tao/Marshal.i \ - $(TAO_ROOT)/tao/CDR.i \ - $(TAO_ROOT)/tao/GIOP.i \ - $(TAO_ROOT)/tao/IIOP_ORB.i \ - $(TAO_ROOT)/tao/IIOP_Object.i \ - $(TAO_ROOT)/tao/Server_Request.i \ - $(TAO_ROOT)/tao/Request.i \ - $(TAO_ROOT)/tao/params.i \ - $(TAO_ROOT)/tao/Exception.i \ - $(TAO_ROOT)/tao/default_client.i \ - $(TAO_ROOT)/tao/default_server.i \ - $(TAO_ROOT)/tao/Connect.i \ - $(TAO_ROOT)/tao/singletons.h NavWeapC.i \ - NavWeapS.h NavWeapS.i -.obj/DOVEMIB.o .obj/DOVEMIB.so .shobj/DOVEMIB.o .shobj/DOVEMIB.so: DOVEMIB.cpp $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Get_Opt.i \ - $(ACE_ROOT)/ace/Sched_Params.h \ - $(ACE_ROOT)/ace/Sched_Params.i \ - $(ACE_ROOT)/ace/Profile_Timer.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/High_Res_Timer.h \ - $(ACE_ROOT)/ace/High_Res_Timer.i \ - $(ACE_ROOT)/ace/Profile_Timer.i \ - $(TAO_ROOT)/tao/Timeprobe.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(TAO_ROOT)/tao/Timeprobe.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Utilities.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventChannelAdminC.h \ - $(TAO_ROOT)/tao/corba.h \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(ACE_ROOT)/ace/IPC_SAP.h \ - $(ACE_ROOT)/ace/IPC_SAP.i \ - $(ACE_ROOT)/ace/SOCK.i \ - $(ACE_ROOT)/ace/SOCK_IO.i \ - $(ACE_ROOT)/ace/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/SString.h \ - $(ACE_ROOT)/ace/SString.i \ - $(ACE_ROOT)/ace/SOCK_Acceptor.h \ - $(ACE_ROOT)/ace/SOCK_Acceptor.i \ - $(ACE_ROOT)/ace/SOCK_Connector.h \ - $(ACE_ROOT)/ace/SOCK_Connector.i \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(ACE_ROOT)/ace/Signal.i \ - $(ACE_ROOT)/ace/Object_Manager.h \ - $(ACE_ROOT)/ace/Object_Manager.i \ - $(ACE_ROOT)/ace/Managed_Object.h \ - $(ACE_ROOT)/ace/Managed_Object.i \ - $(ACE_ROOT)/ace/Service_Config.i \ - $(ACE_ROOT)/ace/Reactor.h \ - $(ACE_ROOT)/ace/Handle_Set.h \ - $(ACE_ROOT)/ace/Handle_Set.i \ - $(ACE_ROOT)/ace/Timer_Queue.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Reactor_Impl.h \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Connector.h \ - $(ACE_ROOT)/ace/Map_Manager.h \ - $(ACE_ROOT)/ace/Map_Manager.i \ - $(ACE_ROOT)/ace/Svc_Handler.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Message_Queue.h \ - $(ACE_ROOT)/ace/Message_Block.h \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc.i \ - $(ACE_ROOT)/ace/Malloc_T.h \ - $(ACE_ROOT)/ace/Malloc_T.i \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(ACE_ROOT)/ace/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/Task_T.i \ - $(ACE_ROOT)/ace/Dynamic.h \ - $(ACE_ROOT)/ace/Dynamic.i \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Svc_Handler.i \ - $(ACE_ROOT)/ace/Connector.i \ - $(ACE_ROOT)/ace/Acceptor.h \ - $(ACE_ROOT)/ace/Acceptor.i \ - $(TAO_ROOT)/tao/compat/objbase.h \ - $(TAO_ROOT)/tao/compat/initguid.h \ - $(TAO_ROOT)/tao/orbconf.h \ - $(TAO_ROOT)/tao/Align.h \ - $(TAO_ROOT)/tao/ORB.h \ - $(TAO_ROOT)/tao/Sequence.h \ - $(TAO_ROOT)/tao/Sequence.i \ - $(TAO_ROOT)/tao/Sequence_T.h \ - $(TAO_ROOT)/tao/Sequence_T.i \ - $(TAO_ROOT)/tao/Object_KeyC.h \ - $(TAO_ROOT)/tao/Object_KeyC.i \ - $(TAO_ROOT)/tao/Exception.h \ - $(TAO_ROOT)/tao/Any.h \ - $(TAO_ROOT)/tao/Any.i \ - $(TAO_ROOT)/tao/params.h \ - $(TAO_ROOT)/tao/Client_Strategy_Factory.h \ - $(TAO_ROOT)/tao/Server_Strategy_Factory.h \ - $(TAO_ROOT)/tao/default_client.h \ - $(TAO_ROOT)/tao/default_server.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.i \ - $(TAO_ROOT)/tao/NVList.h \ - $(TAO_ROOT)/tao/NVList.i \ - $(TAO_ROOT)/tao/Object.h \ - $(TAO_ROOT)/tao/Principal.h \ - $(TAO_ROOT)/tao/Request.h \ - $(TAO_ROOT)/tao/Server_Request.h \ - $(TAO_ROOT)/tao/Typecode.h \ - $(TAO_ROOT)/tao/Typecode.i \ - $(TAO_ROOT)/tao/Marshal.h \ - $(TAO_ROOT)/tao/CDR.h \ - $(TAO_ROOT)/tao/Stub.h \ - $(TAO_ROOT)/tao/Stub.i \ - $(TAO_ROOT)/tao/POA.h \ - $(TAO_ROOT)/tao/POAC.h \ - $(TAO_ROOT)/tao/POAC.i \ - $(TAO_ROOT)/tao/Servant_Base.h \ - $(TAO_ROOT)/tao/POAS.h \ - $(TAO_ROOT)/tao/POAS.i \ - $(TAO_ROOT)/tao/Object_Table.h \ - $(TAO_ROOT)/tao/Connect.h \ - $(TAO_ROOT)/tao/ORB_Core.h \ - $(TAO_ROOT)/tao/ORB_Core.i \ - $(ACE_ROOT)/ace/Dynamic_Service.h \ - $(TAO_ROOT)/tao/Operation_Table.h \ - $(TAO_ROOT)/tao/debug.h \ - $(TAO_ROOT)/tao/IIOP_Object.h \ - $(TAO_ROOT)/tao/IIOP_ORB.h \ - $(TAO_ROOT)/tao/IIOP_Interpreter.h \ - $(TAO_ROOT)/tao/GIOP.h \ - $(TAO_ROOT)/tao/Object.i \ - $(TAO_ROOT)/tao/ORB.i \ - $(TAO_ROOT)/tao/Marshal.i \ - $(TAO_ROOT)/tao/CDR.i \ - $(TAO_ROOT)/tao/GIOP.i \ - $(TAO_ROOT)/tao/IIOP_ORB.i \ - $(TAO_ROOT)/tao/IIOP_Object.i \ - $(TAO_ROOT)/tao/Server_Request.i \ - $(TAO_ROOT)/tao/Request.i \ - $(TAO_ROOT)/tao/params.i \ - $(TAO_ROOT)/tao/Exception.i \ - $(TAO_ROOT)/tao/default_client.i \ - $(TAO_ROOT)/tao/default_server.i \ - $(TAO_ROOT)/tao/Connect.i \ - $(TAO_ROOT)/tao/singletons.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/orbsvcs_export.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/CosTimeBaseC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/CosTimeBaseC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecSchedulerC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecSchedulerC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventChannelAdminC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Service_Constants.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Time_Utilities.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Time_Utilities.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Utilities.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Scheduler_Factory.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/CosNamingC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/CosNamingC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Scheduler_Factory.i \ - DOVEMIB.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/CosTimeBaseS.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/CosTimeBaseS.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS.i \ - AnyAnalyser.h PrintVisitor.h NodeVisitor.h Node.h -.obj/Node.o .obj/Node.so .shobj/Node.o .shobj/Node.so: Node.cpp Node.h $(TAO_ROOT)/tao/corba.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(ACE_ROOT)/ace/IPC_SAP.h \ - $(ACE_ROOT)/ace/IPC_SAP.i \ - $(ACE_ROOT)/ace/SOCK.i \ - $(ACE_ROOT)/ace/SOCK_IO.i \ - $(ACE_ROOT)/ace/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/SString.h \ - $(ACE_ROOT)/ace/SString.i \ - $(ACE_ROOT)/ace/SOCK_Acceptor.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/SOCK_Acceptor.i \ - $(ACE_ROOT)/ace/SOCK_Connector.h \ - $(ACE_ROOT)/ace/SOCK_Connector.i \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(ACE_ROOT)/ace/Signal.i \ - $(ACE_ROOT)/ace/Object_Manager.h \ - $(ACE_ROOT)/ace/Object_Manager.i \ - $(ACE_ROOT)/ace/Managed_Object.h \ - $(ACE_ROOT)/ace/Managed_Object.i \ - $(ACE_ROOT)/ace/Service_Config.i \ - $(ACE_ROOT)/ace/Reactor.h \ - $(ACE_ROOT)/ace/Handle_Set.h \ - $(ACE_ROOT)/ace/Handle_Set.i \ - $(ACE_ROOT)/ace/Timer_Queue.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Reactor_Impl.h \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Connector.h \ - $(ACE_ROOT)/ace/Map_Manager.h \ - $(ACE_ROOT)/ace/Map_Manager.i \ - $(ACE_ROOT)/ace/Svc_Handler.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Message_Queue.h \ - $(ACE_ROOT)/ace/Message_Block.h \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc.i \ - $(ACE_ROOT)/ace/Malloc_T.h \ - $(ACE_ROOT)/ace/Malloc_T.i \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(ACE_ROOT)/ace/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/Task_T.i \ - $(ACE_ROOT)/ace/Dynamic.h \ - $(ACE_ROOT)/ace/Dynamic.i \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Svc_Handler.i \ - $(ACE_ROOT)/ace/Connector.i \ - $(ACE_ROOT)/ace/Acceptor.h \ - $(ACE_ROOT)/ace/Acceptor.i \ - $(TAO_ROOT)/tao/compat/objbase.h \ - $(TAO_ROOT)/tao/compat/initguid.h \ - $(TAO_ROOT)/tao/orbconf.h \ - $(TAO_ROOT)/tao/Align.h \ - $(TAO_ROOT)/tao/ORB.h \ - $(TAO_ROOT)/tao/Sequence.h \ - $(TAO_ROOT)/tao/Sequence.i \ - $(TAO_ROOT)/tao/Sequence_T.h \ - $(TAO_ROOT)/tao/Sequence_T.i \ - $(TAO_ROOT)/tao/Object_KeyC.h \ - $(TAO_ROOT)/tao/Object_KeyC.i \ - $(TAO_ROOT)/tao/Exception.h \ - $(TAO_ROOT)/tao/Any.h \ - $(TAO_ROOT)/tao/Any.i \ - $(TAO_ROOT)/tao/params.h \ - $(TAO_ROOT)/tao/Client_Strategy_Factory.h \ - $(TAO_ROOT)/tao/Server_Strategy_Factory.h \ - $(TAO_ROOT)/tao/default_client.h \ - $(TAO_ROOT)/tao/default_server.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.i \ - $(TAO_ROOT)/tao/NVList.h \ - $(TAO_ROOT)/tao/NVList.i \ - $(TAO_ROOT)/tao/Object.h \ - $(TAO_ROOT)/tao/Principal.h \ - $(TAO_ROOT)/tao/Request.h \ - $(TAO_ROOT)/tao/Server_Request.h \ - $(TAO_ROOT)/tao/Typecode.h \ - $(TAO_ROOT)/tao/Typecode.i \ - $(TAO_ROOT)/tao/Marshal.h \ - $(TAO_ROOT)/tao/CDR.h \ - $(TAO_ROOT)/tao/Stub.h \ - $(TAO_ROOT)/tao/Stub.i \ - $(TAO_ROOT)/tao/POA.h \ - $(TAO_ROOT)/tao/POAC.h \ - $(TAO_ROOT)/tao/POAC.i \ - $(TAO_ROOT)/tao/Servant_Base.h \ - $(TAO_ROOT)/tao/POAS.h \ - $(TAO_ROOT)/tao/POAS.i \ - $(TAO_ROOT)/tao/Object_Table.h \ - $(TAO_ROOT)/tao/Connect.h \ - $(TAO_ROOT)/tao/ORB_Core.h \ - $(TAO_ROOT)/tao/ORB_Core.i \ - $(ACE_ROOT)/ace/Dynamic_Service.h \ - $(TAO_ROOT)/tao/Operation_Table.h \ - $(TAO_ROOT)/tao/debug.h \ - $(TAO_ROOT)/tao/IIOP_Object.h \ - $(TAO_ROOT)/tao/IIOP_ORB.h \ - $(TAO_ROOT)/tao/IIOP_Interpreter.h \ - $(TAO_ROOT)/tao/GIOP.h \ - $(TAO_ROOT)/tao/Object.i \ - $(TAO_ROOT)/tao/ORB.i \ - $(TAO_ROOT)/tao/Marshal.i \ - $(TAO_ROOT)/tao/CDR.i \ - $(TAO_ROOT)/tao/GIOP.i \ - $(TAO_ROOT)/tao/IIOP_ORB.i \ - $(TAO_ROOT)/tao/IIOP_Object.i \ - $(TAO_ROOT)/tao/Server_Request.i \ - $(TAO_ROOT)/tao/Request.i \ - $(TAO_ROOT)/tao/params.i \ - $(TAO_ROOT)/tao/Exception.i \ - $(TAO_ROOT)/tao/default_client.i \ - $(TAO_ROOT)/tao/default_server.i \ - $(TAO_ROOT)/tao/Connect.i \ - $(TAO_ROOT)/tao/singletons.h NodeVisitor.h -.obj/PrintVisitor.o .obj/PrintVisitor.so .shobj/PrintVisitor.o .shobj/PrintVisitor.so: PrintVisitor.cpp PrintVisitor.h \ - $(TAO_ROOT)/tao/corba.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(ACE_ROOT)/ace/IPC_SAP.h \ - $(ACE_ROOT)/ace/IPC_SAP.i \ - $(ACE_ROOT)/ace/SOCK.i \ - $(ACE_ROOT)/ace/SOCK_IO.i \ - $(ACE_ROOT)/ace/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/SString.h \ - $(ACE_ROOT)/ace/SString.i \ - $(ACE_ROOT)/ace/SOCK_Acceptor.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/SOCK_Acceptor.i \ - $(ACE_ROOT)/ace/SOCK_Connector.h \ - $(ACE_ROOT)/ace/SOCK_Connector.i \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(ACE_ROOT)/ace/Signal.i \ - $(ACE_ROOT)/ace/Object_Manager.h \ - $(ACE_ROOT)/ace/Object_Manager.i \ - $(ACE_ROOT)/ace/Managed_Object.h \ - $(ACE_ROOT)/ace/Managed_Object.i \ - $(ACE_ROOT)/ace/Service_Config.i \ - $(ACE_ROOT)/ace/Reactor.h \ - $(ACE_ROOT)/ace/Handle_Set.h \ - $(ACE_ROOT)/ace/Handle_Set.i \ - $(ACE_ROOT)/ace/Timer_Queue.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Reactor_Impl.h \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Connector.h \ - $(ACE_ROOT)/ace/Map_Manager.h \ - $(ACE_ROOT)/ace/Map_Manager.i \ - $(ACE_ROOT)/ace/Svc_Handler.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Message_Queue.h \ - $(ACE_ROOT)/ace/Message_Block.h \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc.i \ - $(ACE_ROOT)/ace/Malloc_T.h \ - $(ACE_ROOT)/ace/Malloc_T.i \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(ACE_ROOT)/ace/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/Task_T.i \ - $(ACE_ROOT)/ace/Dynamic.h \ - $(ACE_ROOT)/ace/Dynamic.i \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Svc_Handler.i \ - $(ACE_ROOT)/ace/Connector.i \ - $(ACE_ROOT)/ace/Acceptor.h \ - $(ACE_ROOT)/ace/Acceptor.i \ - $(TAO_ROOT)/tao/compat/objbase.h \ - $(TAO_ROOT)/tao/compat/initguid.h \ - $(TAO_ROOT)/tao/orbconf.h \ - $(TAO_ROOT)/tao/Align.h \ - $(TAO_ROOT)/tao/ORB.h \ - $(TAO_ROOT)/tao/Sequence.h \ - $(TAO_ROOT)/tao/Sequence.i \ - $(TAO_ROOT)/tao/Sequence_T.h \ - $(TAO_ROOT)/tao/Sequence_T.i \ - $(TAO_ROOT)/tao/Object_KeyC.h \ - $(TAO_ROOT)/tao/Object_KeyC.i \ - $(TAO_ROOT)/tao/Exception.h \ - $(TAO_ROOT)/tao/Any.h \ - $(TAO_ROOT)/tao/Any.i \ - $(TAO_ROOT)/tao/params.h \ - $(TAO_ROOT)/tao/Client_Strategy_Factory.h \ - $(TAO_ROOT)/tao/Server_Strategy_Factory.h \ - $(TAO_ROOT)/tao/default_client.h \ - $(TAO_ROOT)/tao/default_server.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.i \ - $(TAO_ROOT)/tao/NVList.h \ - $(TAO_ROOT)/tao/NVList.i \ - $(TAO_ROOT)/tao/Object.h \ - $(TAO_ROOT)/tao/Principal.h \ - $(TAO_ROOT)/tao/Request.h \ - $(TAO_ROOT)/tao/Server_Request.h \ - $(TAO_ROOT)/tao/Typecode.h \ - $(TAO_ROOT)/tao/Typecode.i \ - $(TAO_ROOT)/tao/Marshal.h \ - $(TAO_ROOT)/tao/CDR.h \ - $(TAO_ROOT)/tao/Stub.h \ - $(TAO_ROOT)/tao/Stub.i \ - $(TAO_ROOT)/tao/POA.h \ - $(TAO_ROOT)/tao/POAC.h \ - $(TAO_ROOT)/tao/POAC.i \ - $(TAO_ROOT)/tao/Servant_Base.h \ - $(TAO_ROOT)/tao/POAS.h \ - $(TAO_ROOT)/tao/POAS.i \ - $(TAO_ROOT)/tao/Object_Table.h \ - $(TAO_ROOT)/tao/Connect.h \ - $(TAO_ROOT)/tao/ORB_Core.h \ - $(TAO_ROOT)/tao/ORB_Core.i \ - $(ACE_ROOT)/ace/Dynamic_Service.h \ - $(TAO_ROOT)/tao/Operation_Table.h \ - $(TAO_ROOT)/tao/debug.h \ - $(TAO_ROOT)/tao/IIOP_Object.h \ - $(TAO_ROOT)/tao/IIOP_ORB.h \ - $(TAO_ROOT)/tao/IIOP_Interpreter.h \ - $(TAO_ROOT)/tao/GIOP.h \ - $(TAO_ROOT)/tao/Object.i \ - $(TAO_ROOT)/tao/ORB.i \ - $(TAO_ROOT)/tao/Marshal.i \ - $(TAO_ROOT)/tao/CDR.i \ - $(TAO_ROOT)/tao/GIOP.i \ - $(TAO_ROOT)/tao/IIOP_ORB.i \ - $(TAO_ROOT)/tao/IIOP_Object.i \ - $(TAO_ROOT)/tao/Server_Request.i \ - $(TAO_ROOT)/tao/Request.i \ - $(TAO_ROOT)/tao/params.i \ - $(TAO_ROOT)/tao/Exception.i \ - $(TAO_ROOT)/tao/default_client.i \ - $(TAO_ROOT)/tao/default_server.i \ - $(TAO_ROOT)/tao/Connect.i \ - $(TAO_ROOT)/tao/singletons.h NodeVisitor.h \ - Node.h -.obj/AnyAnalyser.o .obj/AnyAnalyser.so .shobj/AnyAnalyser.o .shobj/AnyAnalyser.so: AnyAnalyser.cpp AnyAnalyser.h PrintVisitor.h \ - $(TAO_ROOT)/tao/corba.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/Version.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(ACE_ROOT)/ace/IPC_SAP.h \ - $(ACE_ROOT)/ace/IPC_SAP.i \ - $(ACE_ROOT)/ace/SOCK.i \ - $(ACE_ROOT)/ace/SOCK_IO.i \ - $(ACE_ROOT)/ace/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/SString.h \ - $(ACE_ROOT)/ace/SString.i \ - $(ACE_ROOT)/ace/SOCK_Acceptor.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/SOCK_Acceptor.i \ - $(ACE_ROOT)/ace/SOCK_Connector.h \ - $(ACE_ROOT)/ace/SOCK_Connector.i \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(ACE_ROOT)/ace/Signal.i \ - $(ACE_ROOT)/ace/Object_Manager.h \ - $(ACE_ROOT)/ace/Object_Manager.i \ - $(ACE_ROOT)/ace/Managed_Object.h \ - $(ACE_ROOT)/ace/Managed_Object.i \ - $(ACE_ROOT)/ace/Service_Config.i \ - $(ACE_ROOT)/ace/Reactor.h \ - $(ACE_ROOT)/ace/Handle_Set.h \ - $(ACE_ROOT)/ace/Handle_Set.i \ - $(ACE_ROOT)/ace/Timer_Queue.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Reactor_Impl.h \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Connector.h \ - $(ACE_ROOT)/ace/Map_Manager.h \ - $(ACE_ROOT)/ace/Map_Manager.i \ - $(ACE_ROOT)/ace/Svc_Handler.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Message_Queue.h \ - $(ACE_ROOT)/ace/Message_Block.h \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc.i \ - $(ACE_ROOT)/ace/Malloc_T.h \ - $(ACE_ROOT)/ace/Malloc_T.i \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(ACE_ROOT)/ace/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/Task_T.i \ - $(ACE_ROOT)/ace/Dynamic.h \ - $(ACE_ROOT)/ace/Dynamic.i \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Svc_Handler.i \ - $(ACE_ROOT)/ace/Connector.i \ - $(ACE_ROOT)/ace/Acceptor.h \ - $(ACE_ROOT)/ace/Acceptor.i \ - $(TAO_ROOT)/tao/compat/objbase.h \ - $(TAO_ROOT)/tao/compat/initguid.h \ - $(TAO_ROOT)/tao/orbconf.h \ - $(TAO_ROOT)/tao/Align.h \ - $(TAO_ROOT)/tao/ORB.h \ - $(TAO_ROOT)/tao/Sequence.h \ - $(TAO_ROOT)/tao/Sequence.i \ - $(TAO_ROOT)/tao/Sequence_T.h \ - $(TAO_ROOT)/tao/Sequence_T.i \ - $(TAO_ROOT)/tao/Object_KeyC.h \ - $(TAO_ROOT)/tao/Object_KeyC.i \ - $(TAO_ROOT)/tao/Exception.h \ - $(TAO_ROOT)/tao/Any.h \ - $(TAO_ROOT)/tao/Any.i \ - $(TAO_ROOT)/tao/params.h \ - $(TAO_ROOT)/tao/Client_Strategy_Factory.h \ - $(TAO_ROOT)/tao/Server_Strategy_Factory.h \ - $(TAO_ROOT)/tao/default_client.h \ - $(TAO_ROOT)/tao/default_server.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.i \ - $(TAO_ROOT)/tao/NVList.h \ - $(TAO_ROOT)/tao/NVList.i \ - $(TAO_ROOT)/tao/Object.h \ - $(TAO_ROOT)/tao/Principal.h \ - $(TAO_ROOT)/tao/Request.h \ - $(TAO_ROOT)/tao/Server_Request.h \ - $(TAO_ROOT)/tao/Typecode.h \ - $(TAO_ROOT)/tao/Typecode.i \ - $(TAO_ROOT)/tao/Marshal.h \ - $(TAO_ROOT)/tao/CDR.h \ - $(TAO_ROOT)/tao/Stub.h \ - $(TAO_ROOT)/tao/Stub.i \ - $(TAO_ROOT)/tao/POA.h \ - $(TAO_ROOT)/tao/POAC.h \ - $(TAO_ROOT)/tao/POAC.i \ - $(TAO_ROOT)/tao/Servant_Base.h \ - $(TAO_ROOT)/tao/POAS.h \ - $(TAO_ROOT)/tao/POAS.i \ - $(TAO_ROOT)/tao/Object_Table.h \ - $(TAO_ROOT)/tao/Connect.h \ - $(TAO_ROOT)/tao/ORB_Core.h \ - $(TAO_ROOT)/tao/ORB_Core.i \ - $(ACE_ROOT)/ace/Dynamic_Service.h \ - $(TAO_ROOT)/tao/Operation_Table.h \ - $(TAO_ROOT)/tao/debug.h \ - $(TAO_ROOT)/tao/IIOP_Object.h \ - $(TAO_ROOT)/tao/IIOP_ORB.h \ - $(TAO_ROOT)/tao/IIOP_Interpreter.h \ - $(TAO_ROOT)/tao/GIOP.h \ - $(TAO_ROOT)/tao/Object.i \ - $(TAO_ROOT)/tao/ORB.i \ - $(TAO_ROOT)/tao/Marshal.i \ - $(TAO_ROOT)/tao/CDR.i \ - $(TAO_ROOT)/tao/GIOP.i \ - $(TAO_ROOT)/tao/IIOP_ORB.i \ - $(TAO_ROOT)/tao/IIOP_Object.i \ - $(TAO_ROOT)/tao/Server_Request.i \ - $(TAO_ROOT)/tao/Request.i \ - $(TAO_ROOT)/tao/params.i \ - $(TAO_ROOT)/tao/Exception.i \ - $(TAO_ROOT)/tao/default_client.i \ - $(TAO_ROOT)/tao/default_server.i \ - $(TAO_ROOT)/tao/Connect.i \ - $(TAO_ROOT)/tao/singletons.h NodeVisitor.h \ - Node.h - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/examples/Simulator/DOVEMIB/Node.cpp b/TAO/examples/Simulator/DOVEMIB/Node.cpp deleted file mode 100644 index 2db05ddf555..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/Node.cpp +++ /dev/null @@ -1,217 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// any_test_i.cpp -// -// = AUTHOR -// Michael Kircher -// -// = DESCRIPTION -// Implementation of the Nodes for the any evaluator. -// -// ============================================================================ - -#include "Node.h" - - - -StructNode::StructNode (const char *Name_ptr, - unsigned int recursion_level) { - Name_ptr_ = Name_ptr; - queue_ptr_ = new ACE_Unbounded_Queue; - recursion_level_ = recursion_level; - queue_iterator_ptr_ = 0; -} - - -StructNode::~StructNode () { - for (unsigned int i = 0; i < getChildNumber (); i++) { - delete getChild (i); - } - delete queue_ptr_; - delete queue_iterator_ptr_; -} - - -unsigned int -StructNode::getChildNumber () { - return (unsigned int) queue_ptr_->size (); -} - -Node * -StructNode::getChild (unsigned int n) { - - // create new iterator if some things have changed - if (queue_iterator_ptr_ == 0) { - queue_iterator_ptr_ = new ACE_Unbounded_Queue_Iterator (*queue_ptr_); - queue_position_ = 0; - } - - // check if we have such a Zebra - if (n < queue_ptr_->size ()) { - // if we are already to far in the queue - if (queue_position_ > n) { - queue_position_ = 0; - queue_iterator_ptr_->first (); - } - - Node **node_ptr_ptr_; - for (; - !queue_iterator_ptr_->done() && queue_position_ <= n; - queue_iterator_ptr_->advance (), queue_position_++) { - queue_iterator_ptr_->next (node_ptr_ptr_); - } - return (*node_ptr_ptr_); - } - else { - return 0; - } -} - -int -StructNode::addChild (Node *node) { - delete queue_iterator_ptr_; - queue_iterator_ptr_ = 0; - return queue_ptr_->enqueue_tail (node); -} - -const char * -StructNode::getName () { - return Name_ptr_; -} - -void -StructNode::Accept (NodeVisitor *nodeVisitor) { - nodeVisitor->visitStructNode (this); -} - -unsigned int -StructNode::getRecursionLevel () { - return recursion_level_; -} - -DoubleNode::DoubleNode (CORBA::Double *Double_ptr, - const char *Name_ptr, - unsigned int recursion_level) { - Double_ptr_ = Double_ptr; - Name_ptr_ = Name_ptr; - recursion_level_ = recursion_level; -} - -const char * -DoubleNode::getName () { - return Name_ptr_; -} - - - -CORBA::Double -DoubleNode::getValue () { - return *Double_ptr_; -} - -void -DoubleNode::Accept (NodeVisitor *nodeVisitor) { - nodeVisitor->visitDoubleNode (this); -} - -unsigned int -DoubleNode::getRecursionLevel () { - return recursion_level_; -} - -LongNode::LongNode (CORBA::Long *Long_ptr, - const char *Name_ptr, - unsigned int recursion_level) { - Long_ptr_ = Long_ptr; - Name_ptr_ = Name_ptr; - recursion_level_ = recursion_level; -} - -const char * -LongNode::getName () { - return Name_ptr_; -} - -CORBA::Long -LongNode::getValue () { - return *Long_ptr_; -} - -void -LongNode::Accept (NodeVisitor *nodeVisitor) { - nodeVisitor->visitLongNode (this); -} - -unsigned int -LongNode::getRecursionLevel () { - return recursion_level_; -} - -ULongNode::ULongNode (CORBA::ULong *ULong_ptr, - const char *Name_ptr, - unsigned int recursion_level) { - ULong_ptr_ = ULong_ptr; - Name_ptr_ = Name_ptr; - recursion_level_ = recursion_level; -} - -const char * -ULongNode::getName () { - return Name_ptr_; -} - -CORBA::ULong -ULongNode::getValue () { - return *ULong_ptr_; -} - -void -ULongNode::Accept (NodeVisitor *nodeVisitor) { - nodeVisitor->visitULongNode (this); -} - -unsigned int -ULongNode::getRecursionLevel () { - return recursion_level_; -} - - -StringNode::StringNode (CORBA::String_var String_var, - const char *Name_ptr, - unsigned int recursion_level) { - String_var_ = String_var; - Name_ptr_ = Name_ptr; - recursion_level_ = recursion_level; -} - -const char* -StringNode::getName () { - return Name_ptr_; -} - -CORBA::String_var -StringNode::getValue () { - return String_var_; -} - -void -StringNode::Accept (NodeVisitor *nodeVisitor) { - nodeVisitor->visitStringNode (this); -} - -unsigned int -StringNode::getRecursionLevel () { - return recursion_level_; -} - - - - - - - - diff --git a/TAO/examples/Simulator/DOVEMIB/Node.h b/TAO/examples/Simulator/DOVEMIB/Node.h deleted file mode 100644 index d8029a4fa5e..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/Node.h +++ /dev/null @@ -1,185 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// Node.h -// -// = AUTHOR -// Michael Kircher -// -// = DESCRIPTION -// This file descibes the various node types for analysing -// an CORBA::Any. It is no memory allocated, that means -// The values are not really contained by the nodes, but the -// nodes refer to the values via pointers. -// -// ============================================================================ - -#include "tao/corba.h" -#include "ace/Containers.h" -#include "NodeVisitor.h" - -#if !defined (NODE_H) -#define NODE_H - - -// base class for nodes -class Node { -public: - virtual ~Node () {} - virtual void Accept (NodeVisitor *NodeVisitor) = 0; - virtual unsigned int getRecursionLevel () = 0; - -protected: - Node () {} -}; - - - -// Node to store information about a Struct -class StructNode : public Node { -public: - StructNode (const char *Name_ptr, - unsigned int recursion_level); - ~StructNode (); - - // accpet a visitor - void Accept (NodeVisitor *nodeVisitor); - - // add a new child - int addChild (Node *node); - - // retrieve the nth Child starting at 0 - Node *getChild (unsigned int n); - - // get the number of children - unsigned int getChildNumber (); - - // get the name of the struct - const char *getName (); - - // get recursion level - unsigned int getRecursionLevel (); - - -private: - ACE_Unbounded_Queue *queue_ptr_; - ACE_Unbounded_Queue_Iterator *queue_iterator_ptr_; - unsigned int queue_position_; - const char *Name_ptr_; - unsigned int recursion_level_; -}; - - -// Node to store information about a Double -class DoubleNode : public Node { -public: - DoubleNode (CORBA::Double *Double_ptr, - const char *Name_ptr, - unsigned int recursion_level); - ~DoubleNode () {} - - // accpet a visitor - void Accept (NodeVisitor *nodeVisitor); - - // get the name of the double node - const char *getName (); - - // get the value - CORBA::Double getValue (); - - // get recursion level - unsigned int getRecursionLevel (); - -private: - CORBA::Double *Double_ptr_; - const char *Name_ptr_; - unsigned int recursion_level_; -}; - - -// Node to store information about a Long -class LongNode : public Node { -public: - LongNode (CORBA::Long *Long_ptr, - const char *Name_ptr, - unsigned int recursion_level); - ~LongNode () {} - - // accpet a visitor - void Accept (NodeVisitor *nodeVisitor); - - //get the name of the long node - const char *getName (); - - // get the value - CORBA::Long getValue (); - - // get recursion level - unsigned int getRecursionLevel (); - -private: - CORBA::Long *Long_ptr_; - const char *Name_ptr_; - unsigned int recursion_level_; -}; - - -// Node to store information about a ULong -class ULongNode : public Node { -public: - ULongNode (CORBA::ULong *Long_ptr, - const char *Name_ptr, - unsigned int recursion_level); - ~ULongNode () {} - - // accpet a visitor - void Accept (NodeVisitor *nodeVisitor); - - // get the name of the ulong node - const char *getName (); - - // get the value - CORBA::ULong getValue (); - - // get recursion level - unsigned int getRecursionLevel (); - -private: - CORBA::ULong *ULong_ptr_; - const char *Name_ptr_; - unsigned int recursion_level_; -}; - - -// Node to store information about a String -class StringNode : public Node { -public: - StringNode (CORBA::String_var String_var, - const char *Name_ptr, - unsigned int recursion_level); - ~StringNode () {} - - // accpet a visitor - void Accept (NodeVisitor *nodeVisitor); - - // get the name - const char *getName (); - - // get the value - CORBA::String_var getValue (); - - // get recursion level - unsigned int getRecursionLevel (); - -private: - CORBA::String_var String_var_; - const char *Name_ptr_; - unsigned int recursion_level_; -}; - -#endif // NODE_H - - diff --git a/TAO/examples/Simulator/DOVEMIB/NodeVisitor.h b/TAO/examples/Simulator/DOVEMIB/NodeVisitor.h deleted file mode 100644 index d19e065ae2c..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/NodeVisitor.h +++ /dev/null @@ -1,39 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// NodeVisitor.h -// -// = AUTHOR -// Michael Kircher -// -// = DESCRIPTION -// This file descibes the Visitor used by the any evaluator. -// -// ============================================================================ - -#if !defined (NODE_VISITOR_H) -#define NODE_VISITOR_H - -class StructNode; -class DoubleNode; -class LongNode; -class ULongNode; -class StringNode; - -// base class for all the specialized visitors - -class NodeVisitor { -public: - virtual void visitStructNode (StructNode *structNode) = 0; - virtual void visitDoubleNode (DoubleNode *doubleNode) = 0; - virtual void visitLongNode (LongNode *longNode) = 0; - virtual void visitULongNode (ULongNode *uLongNode) = 0; - virtual void visitStringNode (StringNode *stringNode) = 0; -protected: - NodeVisitor () {} -}; - -#endif // NODE_VISITOR_H diff --git a/TAO/examples/Simulator/DOVEMIB/PrintVisitor.cpp b/TAO/examples/Simulator/DOVEMIB/PrintVisitor.cpp deleted file mode 100644 index 652e5e239a3..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/PrintVisitor.cpp +++ /dev/null @@ -1,128 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// any_test_i.cpp -// -// = AUTHOR -// Michael Kircher -// -// = DESCRIPTION -// Visitor for the Nodes of the any analyser. -// -// ============================================================================ - -#include "PrintVisitor.h" -#include - - -PrintVisitor::PrintVisitor (const char *file_name) { - - TAO_TRY { - if (file_name != 0) { - output_ = ACE_OS::fopen(file_name, "w"); - TAO_CHECK_ENV; - - // print it on the screen if file could be opened - if (output_ == 0) { - - output_ = stdout; - - ACE_DEBUG ((LM_DEBUG,"PrintVisitor: Use stdout for output.\n")); - } - - // everything is ok - ACE_DEBUG ((LM_DEBUG,"PrintVisitor: Opened file <%s> successfully.\n", - file_name)); - } - else { - output_ = stdout; - ACE_DEBUG ((LM_DEBUG,"PrintVisitor: Use stdout for output.\n")); - - } - - } - TAO_CATCHANY - { - ACE_ERROR ((LM_ERROR, "Failing when trying to open the output file.\n")); - } - TAO_ENDTRY; -} - - -PrintVisitor::~PrintVisitor () { - this->close (); -} - -void -PrintVisitor::close () { - if (output_ != stdout && output_ != 0) { - ACE_OS::fclose (output_); - } -} - - -// Visit a struct node -void -PrintVisitor::visitStructNode (StructNode *structNode) { - - // print the padding in front of the line - printPadding (structNode->getRecursionLevel()); - ACE_OS::fprintf (output_, "struct %s {\n", structNode->getName ()); - - for (unsigned int i = 0; i < structNode->getChildNumber (); i++) { - printPadding (structNode->getChild (i)->getRecursionLevel()); - structNode->getChild (i)->Accept((NodeVisitor *)this); - ACE_OS::fprintf (output_, "\n"); - } - - printPadding (structNode->getRecursionLevel()); - ACE_OS::fprintf (output_, "}\n"); -} - -void -PrintVisitor::visitDoubleNode (DoubleNode *doubleNode) { - printPadding (doubleNode->getRecursionLevel()); - ACE_OS::fprintf (output_, "CORBA::double %s = %f;", doubleNode->getName(), doubleNode->getValue()); -} - -void -PrintVisitor::visitLongNode (LongNode *longNode) { - printPadding (longNode->getRecursionLevel()); - ACE_OS::fprintf (output_, "CORBA::Long %s = %d;", longNode->getName(), longNode->getValue()); -} - -void -PrintVisitor::visitULongNode (ULongNode *uLongNode) { - printPadding (uLongNode->getRecursionLevel()); - ACE_OS::fprintf (output_, "CORBA::ULong %s = %d;", uLongNode->getName(), uLongNode->getValue()); -} - -void -PrintVisitor::visitStringNode (StringNode *stringNode) { - printPadding (stringNode->getRecursionLevel()); - ACE_OS::fprintf (output_, "CORBA::String %s = \"%s\";", stringNode->getName(), (char *)stringNode->getValue()); -} - -void -PrintVisitor::printPadding (unsigned int recursion_level) { - switch (recursion_level) { - case 0: break; - case 1: ACE_OS::fprintf (output_, " "); - break; - case 2: ACE_OS::fprintf (output_, " "); - break; - case 3: ACE_OS::fprintf (output_, " "); - break; - case 4: ACE_OS::fprintf (output_, " "); - break; - default: for (unsigned int i = 0; i < recursion_level; i++) - { - ACE_OS::fprintf (output_, " "); - } - break; - } -} - diff --git a/TAO/examples/Simulator/DOVEMIB/PrintVisitor.h b/TAO/examples/Simulator/DOVEMIB/PrintVisitor.h deleted file mode 100644 index 54ad1d4301b..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/PrintVisitor.h +++ /dev/null @@ -1,45 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// PrintVisitor.h -// -// = AUTHOR -// Michael Kircher -// -// = DESCRIPTION -// This file descibes the PrintVisitor used by the any evaluator. -// -// ============================================================================ - -#include "tao/corba.h" -#include "NodeVisitor.h" -#include "Node.h" - -#if !defined (PRINT_VISITOR_H) -#define PRINT_VISITOR_H - - -// This is a concrete Visitor using the Visitor design pattern -class PrintVisitor : public NodeVisitor { -public: - - PrintVisitor (const char *file_name); - ~PrintVisitor (); - - void close (); - - void visitStructNode (StructNode *structNode); - void visitDoubleNode (DoubleNode *doubleNode); - void visitLongNode (LongNode *longNode); - void visitULongNode (ULongNode *uLongNode); - void visitStringNode (StringNode *stringNode); -private: - void printPadding (unsigned int recursion_level); - - FILE *output_; -}; - -#endif // PRINT_VISITOR_H diff --git a/TAO/examples/Simulator/DOVEMIB/TestClient.dsp b/TAO/examples/Simulator/DOVEMIB/TestClient.dsp deleted file mode 100644 index 7d412b2290b..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/TestClient.dsp +++ /dev/null @@ -1,167 +0,0 @@ -# Microsoft Developer Studio Project File - Name="TestClient" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 5.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=TestClient - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "TestClient.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "TestClient.mak" CFG="TestClient - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "TestClient - Win32 Release" (based on\ - "Win32 (x86) Console Application") -!MESSAGE "TestClient - Win32 Debug" (based on\ - "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "TestClient - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Release" -# PROP Intermediate_Dir "Release" -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 - -!ELSEIF "$(CFG)" == "TestClient - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "TestClie" -# PROP BASE Intermediate_Dir "TestClie" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "TestClie" -# PROP Intermediate_Dir "TestClie" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /W3 /Gm /GX /Zi /Od /I "..\..\..\..\..\\" /I "..\..\..\..\\" /I "..\..\..\..\..\..\\" /I "..\..\..\\" /I "..\..\..\tao" /I "..\..\..\orbsvcs" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept -# ADD LINK32 aced.lib TAO.lib orbsvcs.lib /nologo /subsystem:console /debug /machine:I386 /out:"TestClient.exe" /pdbtype:sept /libpath:"..\..\..\..\..\ace" /libpath:"..\..\..\..\tao" /libpath:"..\..\..\orbsvcs" - -!ENDIF - -# Begin Target - -# Name "TestClient - Win32 Release" -# Name "TestClient - Win32 Debug" -# Begin Source File - -SOURCE=.\any_test.idl - -!IF "$(CFG)" == "TestClient - Win32 Release" - -!ELSEIF "$(CFG)" == "TestClient - Win32 Debug" - -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\any_test.idl -InputName=any_test - -BuildCmds= \ - ..\..\..\..\tao_idl\tao_idl $(InputName).idl - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\any_testC.cpp -# End Source File -# Begin Source File - -SOURCE=.\any_testS.cpp -# End Source File -# Begin Source File - -SOURCE=.\clnt.cpp -# End Source File -# Begin Source File - -SOURCE=.\NavWeap.idl - -!IF "$(CFG)" == "TestClient - Win32 Release" - -!ELSEIF "$(CFG)" == "TestClient - Win32 Debug" - -# Begin Custom Build -InputPath=.\NavWeap.idl -InputName=NavWeap - -BuildCmds= \ - ..\..\..\..\tao_idl\tao_idl $(InputName).idl - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\NavWeapC.cpp -# End Source File -# End Target -# End Project diff --git a/TAO/examples/Simulator/DOVEMIB/any_test.idl b/TAO/examples/Simulator/DOVEMIB/any_test.idl deleted file mode 100644 index 80bf048a2d2..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/any_test.idl +++ /dev/null @@ -1,11 +0,0 @@ -// $Id$ - -interface Any_Test - // = TITLE - // - // = DESCRIPTION - -{ - void try_an_any (in any a); -}; - diff --git a/TAO/examples/Simulator/DOVEMIB/any_test_i.cpp b/TAO/examples/Simulator/DOVEMIB/any_test_i.cpp deleted file mode 100644 index a92950b03af..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/any_test_i.cpp +++ /dev/null @@ -1,63 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// any_test_i.cpp -// -// = AUTHOR -// Michael Kircher -// -// ============================================================================ - -#include "tao/corba.h" -#include "ace/Containers.h" -#include "any_test_i.h" -#include "NavWeapC.h" -#include "AnyAnalyser.h" - - -// Constructor -Any_Test_i::Any_Test_i (const char *obj_name) -{ -} - -// Destructor -Any_Test_i::~Any_Test_i (void) -{ -} - - -void -Any_Test_i::try_an_any (const CORBA::Any &a, CORBA::Environment &env) -{ - TAO_TRY - { - ACE_DEBUG ((LM_DEBUG, "Call to try_an_any succeeded!\n")); - - AnyAnalyser anyAnalyser_ = AnyAnalyser ("stdout"); - - TAO_CHECK_ENV; - Weapons *weapons_ = 0; - if (a.type()->equal(_tc_Weapons,TAO_TRY_ENV)) { - - CORBA::Any b; - b = a; - weapons_ = (Weapons *)b.value(); - cout << "ID: " << a.type()->id(TAO_TRY_ENV) << endl; - cout << "CompTime: " << weapons_->computation_time << endl; - cout << "Adr number of weapons: " << &(weapons_->number_of_weapons) << endl; - cout << "Adr CompTime: " << &(weapons_->computation_time) << endl; - } - - anyAnalyser_.printAny (a.type(), a.value()); - } - TAO_CATCHANY - { - ACE_ERROR ((LM_ERROR, "(%t)Error in extracting the data.\n")); - } - TAO_ENDTRY; -} - - diff --git a/TAO/examples/Simulator/DOVEMIB/any_test_i.h b/TAO/examples/Simulator/DOVEMIB/any_test_i.h deleted file mode 100644 index eb877ef23c5..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/any_test_i.h +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// any_test_i.h -// -// = AUTHOR -// Michael Kircher -// -// ============================================================================ - -#if !defined (_ANY_TEST_I_HH) -#define _ANY_TEST_I_HH - -#include "any_testS.h" - -// Forward declarations -class Any_Test_i; - -// Typedefs. -typedef Any_Test_i *Any_Test_i_ptr; -typedef Any_Test_i_ptr Any_Test_i_ref; - -class Any_Test_i : public POA_Any_Test - // = TITLE - // = DESCRIPTION -{ -public: - Any_Test_i (const char *obj_name = 0); - // Constructor - - ~Any_Test_i (void); - // Destructor - - virtual void try_an_any (const CORBA::Any &a, - CORBA::Environment &env); -}; - -#endif /* _ANY_TEST_I_HH */ diff --git a/TAO/examples/Simulator/DOVEMIB/clnt.cpp b/TAO/examples/Simulator/DOVEMIB/clnt.cpp deleted file mode 100644 index b5e63462ec0..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/clnt.cpp +++ /dev/null @@ -1,183 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// -// -// = FILENAME -// clnt.cpp -// -// = DESCRIPTION -// -// = AUTHORS -// Michael Kircher -// -// ============================================================================ - -#include "tao/corba.h" -#include "clnt.h" -#include "NavWeapC.h" - - -Any_Test_Client::Any_Test_Client () -{ - -} - -Any_Test_Client::~Any_Test_Client () -{ - CORBA::release(this->any_test_ptr_); -} - -int -Any_Test_Client::init (int argc, char *argv []) -{ - - TAO_TRY { - this->argc_ = argc; - this->argv_ = argv; - - // Retrieve the ORB. - this->orb_ = CORBA::ORB_init (this->argc_, - this->argv_, - "internet", - TAO_TRY_ENV); - TAO_CHECK_ENV; - - if (this->argc_ != 2) - { - ACE_ERROR_RETURN ((LM_ERROR, "Expected an IOR as parameter\n"),-1); - } - - CORBA::Object_var any_test_object_ = this->orb_->string_to_object (argv_[1], TAO_TRY_ENV); - TAO_CHECK_ENV; - - this->any_test_ptr_ = Any_Test::_narrow (any_test_object_.in(), TAO_TRY_ENV); - TAO_CHECK_ENV; - - if (CORBA::is_nil (this->any_test_ptr_)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "Invalid IOR specified.\n"), - -1); - } - return 0; - } - TAO_CATCHANY { - TAO_TRY_ENV.print_exception ("SYS_EX"); - return 0; - } - TAO_ENDTRY; - return 0; -} - -int -Any_Test_Client::run () -{ - TAO_TRY - { - CORBA::Any data; - - navigation_.position_latitude = 1; - navigation_.position_longitude = 2; - navigation_.altitude = 3; - navigation_.heading = 4; - navigation_.roll = 5; - navigation_.pitch = 6; - - navigation_.utilization = 1; - navigation_.overhead = 2; - navigation_.arrival_time = 3; - navigation_.deadline_time = 4; - navigation_.completion_time = 5; - navigation_.computation_time = 6; - - data.replace (_tc_Navigation, &navigation_, CORBA::B_FALSE, TAO_TRY_ENV); - - ACE_DEBUG ((LM_DEBUG,"Starting test with Any: Navigation\n")); - //any_test_ptr_->try_an_any (data, TAO_TRY_ENV); - ACE_DEBUG ((LM_DEBUG,"Ending test with Any: Navigation\n")); - - -/* CORBA::Short x_ = 8; - data <<= x_; - - ACE_DEBUG ((LM_DEBUG,"Starting test with Any: Navigation\n")); - any_test_ptr_->try_an_any (data, TAO_TRY_ENV); - ACE_DEBUG ((LM_DEBUG,"Ending test with Any: Navigation\n")); -*/ - - weapons_.number_of_weapons = 5; - weapons_.weapon1_identifier = CORBA::string_alloc (20); - strcpy (weapons_.weapon1_identifier, "A"); - weapons_.weapon1_status = 1; - weapons_.weapon2_identifier = CORBA::string_alloc (20); - strcpy (weapons_.weapon2_identifier, "B"); - weapons_.weapon2_status = 2; - weapons_.weapon3_identifier = CORBA::string_alloc (20); - strcpy (weapons_.weapon3_identifier, "C"); - weapons_.weapon3_status = 4; - weapons_.weapon4_identifier = CORBA::string_alloc (20); - strcpy (weapons_.weapon4_identifier, "D"); - weapons_.weapon4_status = 8; - weapons_.weapon5_identifier = CORBA::string_alloc (20); - strcpy (weapons_.weapon5_identifier, "E"); - weapons_.weapon5_status = 16; - - weapons_.utilization = 1; - weapons_.overhead = 2; - weapons_.arrival_time = 3; - weapons_.deadline_time = 4; - weapons_.completion_time = 5; - weapons_.computation_time = 6; - - data.replace (_tc_Weapons, &weapons_, CORBA::B_FALSE, TAO_TRY_ENV); - TAO_CHECK_ENV; - - ACE_DEBUG ((LM_DEBUG,"Starting test with Any: Weapons\n")); - any_test_ptr_->try_an_any (data, TAO_TRY_ENV); - ACE_DEBUG ((LM_DEBUG,"Ending test with Any: Weapons\n")); - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("Error in Any_Test_Client::run"); - } - TAO_ENDTRY; - - - return 0; -} - - - -// function main - -int -main (int argc, char *argv []) -{ - - TAO_TRY - { - Any_Test_Client any_test_client_; - TAO_CHECK_ENV; - - if (any_test_client_.init (argc, argv) == -1) - return 1; - TAO_CHECK_ENV; - - return any_test_client_.run (); - TAO_CHECK_ENV; - - - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("SYS_EX"); - } - TAO_ENDTRY; - - - return 0; -} - diff --git a/TAO/examples/Simulator/DOVEMIB/clnt.h b/TAO/examples/Simulator/DOVEMIB/clnt.h deleted file mode 100644 index 67ed5c84d57..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/clnt.h +++ /dev/null @@ -1,62 +0,0 @@ -// -*- c++ -*- -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// clnt.h -// -// = DESCRIPTION -// -// = AUTHORS -// Michael Kircher -// -// ============================================================================ - -#include "ace/Get_Opt.h" -#include "tao/corba.h" -#include "any_testC.h" -#include "NavWeapC.h" - -class Any_Test_Client - // = TITLE - // - // = DESCRIPTION -{ -public: - // = Constructor and destructor. - Any_Test_Client (void); - ~Any_Test_Client (void); - - int run (void); - // Execute client example code. - - int init (int argc, char **argv); - // Initialize the client communication endpoint with server. - -private: - Navigation navigation_; - Weapons weapons_; - - Any_Test_ptr any_test_ptr_; - // Reverse_ptr reverse_ptr_; - - int argc_; - // # of arguments on the command line. - - char **argv_; - // arguments from command line. - - - CORBA::Environment env_; - // Environment variable - - CORBA::ORB_var orb_; - // Remember our orb -}; - - - - diff --git a/TAO/examples/Simulator/DOVEMIB/svc.conf b/TAO/examples/Simulator/DOVEMIB/svc.conf deleted file mode 100644 index 43c6a486c92..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/svc.conf +++ /dev/null @@ -1,49 +0,0 @@ -# $Id$ -# -# This file contains a sample ACE_Service_Config configuration -# file specifying the strategy factories utilized by an application -# using TAO. There are currently only two possible factories: -# Client_Strategy_Factory and Server_Strategy_Factory. These names -# must be used as the second argument to their corresponding line, -# because that's what the ORB uses to find the desired factory. -# -# Note that there are two unordinary characteristics of the way *this* -# file is set up: -# - both client and server strategies are specified in the same -# file, which would only make sense for co-located clients & servers -# - both of the factories are actually sourced out of libTAO.so -# (TAO.DLL on Win32), and they would normally be in a separate -# dll from the TAO ORB Core. -# -# The options which can be passed to the Resource Factory are: -# -# -ORBresources -# where can be 'global' to specify globally-held resources, -# or 'tss' to specify thread-specific resources. -# -# The options which can be passed to the Client are: -# -# -# The options which can be passed to the Server are: -# -# -ORBconcurrency -# where can be 'thread-per-connection' to specify -# use of the ACE_Threaded_Strategy concurrency strategy, -# or 'reactive' to specify use of the ACE_Reactive_Strategy -# concurrency strategy. -# -# -ORBthreadflags -# specifies the default thread flags to use, where is a -# logical OR'ing of the flags THR_DETACHED, THR_BOUND, THR_NEW_LWP, -# THR_SUSPENDED, or THR_DAEMON. Note that not every flag may be valid -# on every platform. -# -# -ORBdemuxstrategy -# where can be one of 'dynamic', 'linear', 'active', or 'user', -# and specifies the type of object lookup strategy used internally. -# -ORBtablesize -# specifies the size of the object table -# -dynamic Resource_Factory Service_Object * TAO:_make_TAO_Resource_Factory() "-ORBresources global" -dynamic Client_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Client_Strategy_Factory() -dynamic Server_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Server_Strategy_Factory() "-ORBconcurrency reactive -ORBdemuxstrategy dynamic -ORBtablesize 128" diff --git a/TAO/examples/Simulator/DOVEMIB/svr.cpp b/TAO/examples/Simulator/DOVEMIB/svr.cpp deleted file mode 100644 index c4ee548327d..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/svr.cpp +++ /dev/null @@ -1,166 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// svr.cpp -// -// = AUTHOR -// Michael Kircher -// -// ============================================================================ - -#include "ace/Get_Opt.h" -#include "tao/corba.h" -#include "any_test_i.h" -//#include "Node.h" - -// Global Variables -static int num_of_objs = 1; - -// Parses the command line arguments and returns an error status - -static int -parse_args (int argc, char *argv[]) -{ - ACE_Get_Opt get_opts (argc, argv, ""); - int c; - - while ((c = get_opts ()) != -1) - switch (c) - { - case '?': - default: - ACE_ERROR_RETURN ((LM_ERROR, - "usage: %s" - " [-d]" - " [-n] " - "\n", argv [0]), 1); - } - - return 0; // Indicates successful parsing of command line -} - -// Standard command line parsing utilities used. - -int -main (int argc, char *argv[]) -{ - /* - CORBA::Long long_ = 4; - CORBA::Double double_ = 5.0; - StructNode *structNode_ptr_ = new StructNode ("ABC"); - - structNode_ptr_->addChild ((Node *)new DoubleNode (&double_, "My_Double")); - structNode_ptr_->addChild ((Node *)new LongNode (&long_, "My_Long")); - - structNode_ptr_->print (); - */ - - TAO_TRY - { - CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0, TAO_TRY_ENV); - TAO_CHECK_ENV; - - ACE_DEBUG ((LM_DEBUG, "Having the ORB\n")); - - // Initialize the Object Adapter - CORBA::Object_var poa_object = - orb->resolve_initial_references("RootPOA"); - if (CORBA::is_nil(poa_object.in())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize the POA.\n"), - 1); - - PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (poa_object.in (), TAO_TRY_ENV); - TAO_CHECK_ENV; - - PortableServer::POAManager_var poa_manager = - root_poa->the_POAManager (TAO_TRY_ENV); - TAO_CHECK_ENV; - - CORBA::PolicyList policies (2); - policies.length (2); - policies[0] = - root_poa->create_id_assignment_policy (PortableServer::USER_ID, - TAO_TRY_ENV); - policies[1] = - root_poa->create_lifespan_policy (PortableServer::PERSISTENT, - TAO_TRY_ENV); - - ACE_DEBUG ((LM_DEBUG, "Having the rootPOA\n")); - - // We use a different POA, otherwise the user would have to - // change the object key each time it invokes the server. - PortableServer::POA_var good_poa = - root_poa->create_POA ("RootPOA_is_BAD", - poa_manager.in (), - policies, - TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Parse remaining command line and verify parameters. - parse_args (argc, argv); - - ACE_DEBUG ((LM_DEBUG, "Starting the implementation\n")); - - // create a factory implementation - Any_Test_i_ptr any_test_i_ptr_ = new Any_Test_i (); - TAO_CHECK_ENV; - - ACE_DEBUG ((LM_DEBUG, "Started the implementation\n")); - - PortableServer::ObjectId_var id = - PortableServer::string_to_ObjectId ("Any_Test"); - good_poa->activate_object_with_id (id.in (), - any_test_i_ptr_, - TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Stringify the objref we'll be implementing, and print it to - // stdout. Someone will take that string and give it to a - // client. Then release the object. - CORBA::Object_var obj = - good_poa->id_to_reference (id.in (), TAO_TRY_ENV); - TAO_CHECK_ENV; - - CORBA::String_var str = - orb->object_to_string (obj.in (), - TAO_TRY_ENV); - - ACE_DEBUG ((LM_DEBUG, - "The IOR is: <%s>\n", str.in ())); - - - poa_manager->activate (TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Handle requests for this object until we're killed, or one of - // the methods asks us to exit. - if (orb->run () == -1) - ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "run"), -1); - - root_poa->destroy (CORBA::B_TRUE, - CORBA::B_TRUE, - TAO_TRY_ENV); - TAO_CHECK_ENV - } - TAO_CATCH (CORBA::SystemException, sysex) - { - ACE_UNUSED_ARG(sysex); - TAO_TRY_ENV.print_exception ("System Exception"); - return -1; - } - TAO_CATCH (CORBA::UserException, userex) - { - ACE_UNUSED_ARG(userex); - TAO_TRY_ENV.print_exception ("User Exception"); - return -1; - } - TAO_ENDTRY; - - return 0; -} diff --git a/TAO/examples/Simulator/Event_Supplier/EDF.dat b/TAO/examples/Simulator/Event_Supplier/EDF.dat deleted file mode 100644 index 4fbc28d9c0f..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/EDF.dat +++ /dev/null @@ -1,72 +0,0 @@ -low_20 1.000000 0.000000 0 500000 180000 180000 -high_20 1.000000 0.000000 0 500000 360000 180000 -low_20 1.000000 0.000000 500000 1000000 680000 180000 -high_20 1.000000 0.000000 500000 1000000 860000 180000 -low_10 1.000000 0.000000 0 1000000 900000 180000 -low_20 1.000000 0.000000 1000000 1500000 1180000 180000 -high_20 1.000000 0.000000 1000000 1500000 1360000 180000 -low_20 1.000000 0.000000 1500000 2000000 1680000 180000 -high_20 1.000000 0.000000 1500000 2000000 1860000 180000 -low_10 1.000000 0.000000 1000000 2000000 1900000 180000 -high_10 1.000000 0.000000 0 1000000 1980000 180000 -low_20 1.000000 0.000000 2000000 2500000 2180000 180000 -high_20 1.000000 0.000000 2000000 2500000 2360000 180000 -low_20 1.000000 0.000000 2500000 3000000 2680000 180000 -high_20 1.000000 0.000000 2500000 3000000 2860000 180000 -low_10 1.000000 0.000000 2000000 3000000 2900000 180000 -low_20 1.000000 0.000000 3000000 3500000 3180000 180000 -high_20 1.000000 0.000000 3000000 3500000 3360000 180000 -low_20 1.000000 0.000000 3500000 4000000 3680000 180000 -high_20 1.000000 0.000000 3500000 4000000 3860000 180000 -low_10 1.000000 0.000000 3000000 4000000 3900000 180000 -high_10 1.000000 0.000000 1000000 2000000 3960000 180000 -low_20 1.000000 0.000000 4000000 4500000 4180000 180000 -high_20 1.000000 0.000000 4000000 4500000 4360000 180000 -low_20 1.000000 0.000000 4500000 5000000 4680000 180000 -high_20 1.000000 0.000000 4500000 5000000 4860000 180000 -low_10 1.000000 0.000000 4000000 5000000 4900000 180000 -low_20 1.000000 0.000000 5000000 5500000 5180000 180000 -high_20 1.000000 0.000000 5000000 5500000 5360000 180000 -low_20 1.000000 0.000000 5500000 6000000 5680000 180000 -high_20 1.000000 0.000000 5500000 6000000 5860000 180000 -low_10 1.000000 0.000000 5000000 6000000 5900000 180000 -high_10 1.000000 0.000000 3000000 4000000 5940000 180000 -low_20 1.000000 0.000000 6000000 6500000 6180000 180000 -high_20 1.000000 0.000000 6000000 6500000 6360000 180000 -low_20 1.000000 0.000000 6500000 7000000 6680000 180000 -high_20 1.000000 0.000000 6500000 7000000 6860000 180000 -low_10 1.000000 0.000000 6000000 7000000 6900000 180000 -low_20 1.000000 0.000000 7000000 7500000 7180000 180000 -high_20 1.000000 0.000000 7000000 7500000 7360000 180000 -low_20 1.000000 0.000000 7500000 8000000 7680000 180000 -high_20 1.000000 0.000000 7500000 8000000 7860000 180000 -low_10 1.000000 0.000000 7000000 8000000 7900000 180000 -high_10 1.000000 0.000000 5000000 6000000 7920000 180000 -low_20 1.000000 0.000000 8000000 8500000 8180000 180000 -high_20 1.000000 0.000000 8000000 8500000 8360000 180000 -low_20 1.000000 0.000000 8500000 9000000 8680000 180000 -high_20 1.000000 0.000000 8500000 9000000 8860000 180000 -low_10 1.000000 0.000000 8000000 9000000 8900000 180000 -high_10 1.000000 0.000000 7000000 8000000 9000000 180000 -low_20 1.000000 0.000000 9000000 9500000 9180000 180000 -high_20 1.000000 0.000000 9000000 9500000 9360000 180000 -low_20 1.000000 0.000000 9500000 10000000 9680000 180000 -high_20 1.000000 0.000000 9500000 10000000 9860000 180000 -low_10 1.000000 0.000000 9000000 10000000 9900000 180000 -high_10 1.000000 0.000000 9000000 10000000 10080000 180000 -low_5 1.000000 0.000000 8000000 10000000 10260000 180000 -high_5 1.000000 0.000000 8000000 10000000 10440000 180000 -low_1 1.000000 0.000000 0 10000000 10620000 180000 -high_1 1.000000 0.000000 0 10000000 10800000 180000 -high_10 1.000000 0.000000 8000000 9000000 10980000 180000 -high_5 1.000000 0.000000 6000000 8000000 11160000 180000 -low_5 1.000000 0.000000 6000000 8000000 11340000 180000 -high_10 1.000000 0.000000 6000000 7000000 11520000 180000 -low_5 1.000000 0.000000 4000000 6000000 11700000 180000 -high_5 1.000000 0.000000 4000000 6000000 11880000 180000 -high_10 1.000000 0.000000 4000000 5000000 12060000 180000 -high_5 1.000000 0.000000 2000000 4000000 12240000 180000 -low_5 1.000000 0.000000 2000000 4000000 12420000 180000 -high_10 1.000000 0.000000 2000000 3000000 12600000 180000 -low_5 1.000000 0.000000 0 2000000 12780000 180000 -high_5 1.000000 0.000000 0 2000000 12960000 180000 diff --git a/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp b/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp deleted file mode 100644 index 1c46bdc512f..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp +++ /dev/null @@ -1,375 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// Event_Con.cpp -// -// = DESCRIPTION -// This demo just tests the basic functionality of the Event Service -// One Conumer which inherits from the Rtec Consumer. One Supplier -// with an internal Rtec Consumer and one internal Rtec Supplier. -// The internal Supplier is just a demo supplier because the -// architecture expects an supplier which has inherited from the -// Rtec Supplier. -// -// = AUTHOR -// originally -// David Levine (levine@cs.wustl.edu) and -// Tim Harrison (harrison@cs.wustl.edu) -// modified -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include - -#include "ace/Get_Opt.h" -#include "ace/Sched_Params.h" -#include "ace/Profile_Timer.h" -#include "tao/Timeprobe.h" -#include "orbsvcs/Event_Utilities.h" -#include "orbsvcs/Event_Service_Constants.h" -#include "orbsvcs/Scheduler_Factory.h" -#include "orbsvcs/RtecEventChannelAdminC.h" -#include "Event_Con.h" -#include "NavWeapC.h" - -static const int SOURCE_ID = 1001; - -static const char usage [] = -"[-? |\n" -" [-c [4]]\n" -" [-d directly connect all consumers/suppliers\n" -" [-j to collect jitter statistics]\n" -" [-m of messages to send [10]]\n" -" [-s , [1]]\n" -" [-t , msec [250]]]"; - -static int received = 0; - -// ************************************************************ - -Demo_Consumer::Demo_Consumer (void) -{ -} - -int -Demo_Consumer::open_consumer (RtecEventChannelAdmin::EventChannel_ptr ec, - const char *my_name) -{ - TAO_TRY - { - // Get a Scheduler. - - RtecScheduler::Scheduler_ptr server = - ACE_Scheduler_Factory::server (); - - // Define Real-time information. - - rt_info_ = server->create (my_name, TAO_TRY_ENV); - - server->set (rt_info_, - ORBSVCS_Time::zero, - ORBSVCS_Time::zero, - ORBSVCS_Time::zero, - 0, - RtecScheduler::VERY_LOW_IMPORTANCE, - ORBSVCS_Time::zero, - 1, - TAO_TRY_ENV); - - // Create the event that we're registering for. - - ACE_ConsumerQOS_Factory dependencies; - dependencies.start_disjunction_group (); - dependencies.insert_type (ACE_ES_EVENT_NOTIFICATION, rt_info_); - dependencies.insert_type (ACE_ES_EVENT_SHUTDOWN, rt_info_); - - // The channel administrator is the event channel we got from - // the invocation of this routine. - - this->channel_admin_ = ec; - - // = Connect as a consumer. - - this->consumer_admin_ = - channel_admin_->for_consumers (TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Obtain a pointer to a push supplier. "suppliers" is - // inherited from a base class. - - this->suppliers_ = - consumer_admin_->obtain_push_supplier (TAO_TRY_ENV); - TAO_CHECK_ENV; - - // The _this function returns an object pointer. This is needed - // because a consumer inherits from a Servant class that is no - // CORBA::Object. - - RtecEventComm::PushConsumer_var objref = - this->_this (TAO_TRY_ENV); - TAO_CHECK_ENV; - - this->suppliers_->connect_push_consumer (objref.in (), - dependencies.get_ConsumerQOS (), - TAO_TRY_ENV); - TAO_CHECK_ENV; - } - TAO_CATCH (RtecEventChannelAdmin::EventChannel::SUBSCRIPTION_ERROR, se) - { - ACE_ERROR_RETURN ((LM_ERROR, - "Demo_Consumer::open: subscribe failed.\n"), - -1); - } - TAO_CATCHANY - { - ACE_ERROR_RETURN ((LM_ERROR, - "Demo_Consumer::open: unexpected exception.\n"), - -1); - } - TAO_ENDTRY; - - return 0; -} - -void -Demo_Consumer::disconnect_push_consumer (CORBA::Environment &) -{ - ACE_DEBUG ((LM_DEBUG, - "Consumer received disconnect from channel.\n")); -} - -void -Demo_Consumer::push (const RtecEventComm::EventSet &events, - CORBA::Environment &) -{ - - if (events.length () == 0) - { - ACE_DEBUG ((LM_DEBUG, "no events\n")); - return; - } - - cout << "Number of events: " << received++ << endl; - - for (CORBA::ULong i = 0; i < events.length (); ++i) - { - if (events[i].type_ == ACE_ES_EVENT_SHUTDOWN) - { - ACE_DEBUG ((LM_DEBUG, "Demo Consumer: received shutdown event\n")); - this->shutdown (); - } - else - { - ACE_DEBUG ((LM_DEBUG, "Demo Consumer: received ACE_ES_EVENT_NOTIFICATION event.\n")); - - TAO_TRY - { - cout << "ID: " << events[i].data_.any_value.type()->id(TAO_TRY_ENV) << endl; - TAO_CHECK_ENV; - cout << "Name: " << events[i].data_.any_value.type()->name(TAO_TRY_ENV) << endl; - TAO_CHECK_ENV; - cout << "member_count: " << events[i].data_.any_value.type()->member_count(TAO_TRY_ENV) << endl; - TAO_CHECK_ENV; - cout << "TCKind: " << events[i].data_.any_value.type()->kind(TAO_TRY_ENV) << endl; - TAO_CHECK_ENV; - - if (_tc_Navigation->equal (events[i].data_.any_value.type(), TAO_TRY_ENV)) - { - TAO_CHECK_ENV; - Navigation *navigation_ = (Navigation*) events[i].data_.any_value.value (); - - cout << "Found a Navigation struct in the any: pos_lat = " << navigation_->position_latitude << endl; - } - else if (_tc_Weapons->equal (events[i].data_.any_value.type(), TAO_TRY_ENV)) - { - TAO_CHECK_ENV; - Weapons *weapons_ = (Weapons*) events[i].data_.any_value.value (); - - cout << "Found a Navigation struct in the any: pos_lat = " << weapons_->number_of_weapons << endl; - } - - - } - TAO_CATCHANY - { - ACE_ERROR ((LM_ERROR, "(%t)Error in extracting the Navigation and Weapons data.\n")); - } - TAO_ENDTRY; - } - } -} - -void -Demo_Consumer::shutdown (void) -{ - TAO_TRY - { - // Disconnect from the push supplier. - - this->suppliers_->disconnect_push_supplier (TAO_TRY_ENV); - TAO_CHECK_ENV; - - ACE_DEBUG ((LM_DEBUG, "@@ we should shutdown here!!!\n")); - TAO_CHECK_ENV; - - TAO_ORB_Core_instance ()->orb ()->shutdown (); - TAO_CHECK_ENV; - } - TAO_CATCHANY - { - ACE_ERROR ((LM_ERROR, - "(%t) Demo_Consumer::shutdown: unexpected exception.\n")); - } - TAO_ENDTRY; -} - -// function get_options - -static unsigned int -get_options (int argc, char *argv []) -{ - ACE_Get_Opt get_opt (argc, argv, "Oc:djm:s:t:?"); - int opt; - int temp; - - while ((opt = get_opt ()) != EOF) - { - switch (opt) - { - case '?': - ACE_DEBUG ((LM_DEBUG, - "Usage: %s %s\n", - argv[0], usage)); - ACE_OS::exit (0); - break; - default: - ACE_ERROR_RETURN ((LM_ERROR, - "%s: unknown arg, -%c\n" - "Usage: %s %s\n", - argv[0], char(opt), - argv[0], usage), 1); - } - } - - if (argc != get_opt.optind) - ACE_ERROR_RETURN ((LM_ERROR, - "%s: too many arguments\n" - "Usage: %s %s\n", - argv[0], - argv[0], - usage), - 1); - return 0; -} - -// function main. - -int -main (int argc, char *argv []) -{ - TAO_TRY - { - // Initialize ORB. - - CORBA::ORB_var orb = - CORBA::ORB_init (argc, argv, "internet", TAO_TRY_ENV); - TAO_CHECK_ENV; - - CORBA::Object_var poa_object = - orb->resolve_initial_references("RootPOA"); - - if (CORBA::is_nil (poa_object.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize the POA.\n"), - 1); - - PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (poa_object.in (), TAO_TRY_ENV); - TAO_CHECK_ENV; - - PortableServer::POAManager_var poa_manager = - root_poa->the_POAManager (TAO_TRY_ENV); - TAO_CHECK_ENV; - - CORBA::Object_var naming_obj = - orb->resolve_initial_references ("NameService"); - - if (CORBA::is_nil (naming_obj.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize the POA.\n"), - 1); - - CosNaming::NamingContext_var naming_context = - CosNaming::NamingContext::_narrow (naming_obj.in (), - TAO_TRY_ENV); - TAO_CHECK_ENV; - - ACE_Scheduler_Factory::use_config (naming_context.in ()); - - if (get_options (argc, argv)) - ACE_OS::exit (-1); - - // Get the Event Channel. - - CosNaming::Name channel_name (1); - channel_name.length (1); - channel_name[0].id = CORBA::string_dup ("EventService"); - - CORBA::Object_var ec_obj = - naming_context->resolve (channel_name, - TAO_TRY_ENV); - TAO_CHECK_ENV; - - RtecEventChannelAdmin::EventChannel_var ec = - RtecEventChannelAdmin::EventChannel::_narrow (ec_obj.in(), TAO_TRY_ENV); - TAO_CHECK_ENV; - - if (ec.ptr() == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Not able to get the Event Service reference.\n"), - -1); - - // Create consumer. - - Demo_Consumer *demo_consumer; - ACE_NEW_RETURN (demo_consumer, - Demo_Consumer (), - -1); - - if (demo_consumer->open_consumer (ec.ptr (), - "demo_consumer") == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "Someone was feeling introverted.\n"), - -1); - - poa_manager->activate (TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Run the ORB - - if (orb->run () == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "%p\n", - "CORBA::ORB::run"), - -1); - TAO_CHECK_ENV; - - delete demo_consumer; - - root_poa->destroy (CORBA::B_TRUE, - CORBA::B_TRUE, - TAO_TRY_ENV); - TAO_CHECK_ENV; - - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("SYS_EX"); - } - TAO_ENDTRY; - - return 0; -} diff --git a/TAO/examples/Simulator/Event_Supplier/Event_Con.h b/TAO/examples/Simulator/Event_Supplier/Event_Con.h deleted file mode 100644 index c95efa7f473..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/Event_Con.h +++ /dev/null @@ -1,66 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// Event_Con.h -// -// = AUTHOR -// originally -// David Levine (levine@cs.wustl.edu) and -// Tim Harrison (harrison@cs.wustl.edu) -// modified -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#if !defined (EVENT_CON_H) -#define EVENT_CON_H - -#include "ace/SString.h" -#include "orbsvcs/RtecEventChannelAdminC.h" -#include "orbsvcs/RtecEventCommS.h" - -class Demo_Consumer : public POA_RtecEventComm::PushConsumer -{ - // = TITLE - // Demo Consumer - // - // = DESCRIPTION - // Simple example of a consumer that registers for supplier - // notifications. -public: - Demo_Consumer (void); - - int open_consumer (RtecEventChannelAdmin::EventChannel_ptr ec, - const char *my_name); - // Uses the name server to obtain a reference to the - // and registers with channel to receive notifications from the - // supplier. Also registers to receive shutdown messages from the - // supplier. Stores for printing out messages. Returns 0 - // on success, -1 on failure. - - virtual void disconnect_push_consumer (CORBA::Environment &); - // The channel is disconnecting. - - // = (not protected to allow short-circuiting) protected: - virtual void push (const RtecEventComm::EventSet &events, - CORBA::Environment &); - // If the [0] is a notification, prints out the data from - // the supplier. If its a shutdown message, the consumer - // disconnects from the channel. - -protected: - void shutdown (void); - // Disconnect from the Event Service. - - // = Event channel adminstration references. - RtecEventChannelAdmin::EventChannel_var channel_admin_; - RtecEventChannelAdmin::ConsumerAdmin_var consumer_admin_; - RtecEventChannelAdmin::ProxyPushSupplier_var suppliers_; - -private: - RtecScheduler::handle_t rt_info_; -}; - -#endif /* EVENT_CON_H */ diff --git a/TAO/examples/Simulator/Event_Supplier/Event_Sup.cpp b/TAO/examples/Simulator/Event_Supplier/Event_Sup.cpp deleted file mode 100644 index 8de9220a1d8..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/Event_Sup.cpp +++ /dev/null @@ -1,728 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// Event_Sup.cpp -// -// = DESCRIPTION -// Event Supplier for the flight simulator -// -// = AUTHOR -// originally -// David Levine (levine@cs.wustl.edu) and -// Tim Harrison (harrison@cs.wustl.edu) -// modified -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include - -#include "ace/Get_Opt.h" -#include "ace/Sched_Params.h" -#include "ace/Profile_Timer.h" -#include "ace/OS.h" -#include "tao/Timeprobe.h" -#include "tao/corba.h" -#include "orbsvcs/Event_Utilities.h" -#include "orbsvcs/Event_Service_Constants.h" -#include "orbsvcs/Scheduler_Factory.h" -#include "orbsvcs/RtecEventChannelAdminC.h" -#include "Event_Sup.h" -#include "NavWeapC.h" - -const int SOURCE_ID = 1001; - -static const char usage [] = -"[-? |\n" -" [-O[RBport] ORB port number]" -" [-m of messages to send [100]" -" [-f name of schedler input data file]]"; - -static u_int total_messages = 100; - -static char *input_file_name = 0; - -// ------------ Internal_Demo_Consumer --------------------------------- - -Demo_Supplier::Internal_Demo_Consumer::Internal_Demo_Consumer (Demo_Supplier *impl) - : impl_ (impl) -{ -} - -void -Demo_Supplier::Internal_Demo_Consumer::push (const RtecEventComm::EventSet &events, - CORBA::Environment &env) -{ - this->impl_->push (events, env); - - ACE_DEBUG ((LM_DEBUG, - "Internal Demo Consumer received push.\n")); -} - -void -Demo_Supplier::Internal_Demo_Consumer::disconnect_push_consumer (CORBA::Environment &) -{ -} - -// -------------------- Internal Demo Supplier ----------------------------- - -Demo_Supplier::Internal_Demo_Supplier::Internal_Demo_Supplier (Demo_Supplier *impl) - : impl_ (impl) -{ -} - -void -Demo_Supplier::Internal_Demo_Supplier::disconnect_push_supplier (CORBA::Environment &) -{ -} - -// ---------------------------------------------------------------------------- - -Demo_Supplier::Demo_Supplier (u_int supplier_id) - : supplier_id_ (supplier_id), - internal_demo_consumer_ (new Internal_Demo_Consumer (this)), - internal_demo_supplier_ (new Internal_Demo_Supplier (this)) -{ - // this is neccessary because they are not initialized by the comiler - navigation_.roll = 0; - navigation_.pitch = 0; -} - -Demo_Supplier::~Demo_Supplier (void) -{ - delete internal_demo_consumer_; - delete internal_demo_supplier_; -} - -int -Demo_Supplier::open_supplier (RtecEventChannelAdmin::EventChannel_ptr ec, - const char *name) -{ - TAO_TRY - { - this->channel_admin_ = ec; - - // Get a Scheduling server. - - RtecScheduler::Scheduler_ptr scheduler_ = - ACE_Scheduler_Factory::server (); - - // Generate the Real-time information. - - this->rt_info_ = scheduler_->create (name, - TAO_TRY_ENV); - scheduler_->set (rt_info_, - RtecScheduler::VERY_LOW_CRITICALITY, - ORBSVCS_Time::zero, - ORBSVCS_Time::zero, - ORBSVCS_Time::zero, - 2500000, - RtecScheduler::VERY_LOW_IMPORTANCE, - ORBSVCS_Time::zero, - 1, - RtecScheduler::OPERATION, - TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Set the publications to report them to the event channel. - - CORBA::Short x = 0; - RtecEventChannelAdmin::SupplierQOS qos_; - qos_.publications.length (2); - qos_.publications[0].event.source_ = SOURCE_ID; - qos_.publications[0].event.type_ = ACE_ES_EVENT_NOTIFICATION; - qos_.publications[0].event.ttl_ = 1; - qos_.publications[0].event.creation_time_ = ORBSVCS_Time::zero; - // default values - qos_.publications[0].event.ec_recv_time_ = ORBSVCS_Time::zero; - qos_.publications[0].event.ec_send_time_ = ORBSVCS_Time::zero; - qos_.publications[0].event.data_.x = 0; - qos_.publications[0].event.data_.y = 0; - qos_.publications[0].event.data_.any_value.replace (CORBA::_tc_short, - &x, - 0, - TAO_TRY_ENV); - qos_.publications[0].dependency_info.number_of_calls = 1; - qos_.publications[0].dependency_info.rt_info = rt_info_; - qos_.publications[1].event.source_ = SOURCE_ID; - qos_.publications[1].event.type_ = ACE_ES_EVENT_SHUTDOWN; - qos_.publications[1].event.ttl_ = 1; - qos_.publications[1].event.creation_time_ = ORBSVCS_Time::zero; - // default values. - qos_.publications[1].event.ec_recv_time_ = ORBSVCS_Time::zero; - qos_.publications[1].event.ec_send_time_ = ORBSVCS_Time::zero; - qos_.publications[1].event.data_.x = 0; - qos_.publications[1].event.data_.y = 0; - qos_.publications[1].event.data_.any_value.replace (CORBA::_tc_short, - &x, - 0, - TAO_TRY_ENV); - qos_.publications[1].dependency_info.number_of_calls = 1; - qos_.publications[1].dependency_info.rt_info = rt_info_; - - // = Connect as a supplier. - this->supplier_admin_ = - channel_admin_->for_suppliers (TAO_TRY_ENV); - TAO_CHECK_ENV; - - this->proxy_consumer_ = - supplier_admin_->obtain_push_consumer (TAO_TRY_ENV); - TAO_CHECK_ENV; - - // In calling _this we get back an object reference and register - // the servant with the POA. - - RtecEventComm::PushSupplier_var objref = - this->internal_demo_supplier_->_this (TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Connect the supplier to the proxy consumer. - this->proxy_consumer_->connect_push_supplier (objref.in (), - qos_, - TAO_TRY_ENV); - TAO_CHECK_ENV; - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("Demo_Supplier::open"); - return -1; - } - TAO_ENDTRY; - - return 0; -} - -void -Demo_Supplier::disconnect_push_supplier (CORBA::Environment &) -{ - ACE_DEBUG ((LM_DEBUG, - "Supplier received disconnect from channel.\n")); -} - -void -Demo_Supplier::start_generating_events (void) -{ - u_int total_sent_ = 0; - - // Load the scheduling data for the simulation. - ACE_Unbounded_Queue schedule_data; - this->load_schedule_data (schedule_data); - ACE_Unbounded_Queue_Iterator - schedule_iter (schedule_data); - - if (schedule_iter.done ()) - { - ACE_ERROR ((LM_ERROR, - "Demo_Supplier::start_generating_events: " - "there is no scheduling data\n")); - return; - } - - TAO_TRY - { - do - { - RtecEventComm::Event event; - event.source_ = SOURCE_ID; - event.type_ = ACE_ES_EVENT_NOTIFICATION; - event.ttl_ = 1; - event.creation_time_ = ORBSVCS_Time::zero; - event.ec_recv_time_ = ORBSVCS_Time::zero; - event.ec_send_time_ = ORBSVCS_Time::zero; - event.data_.x = 0; - event.data_.y = 0; - - this->insert_event_data (event.data_.any_value, - schedule_iter); - - RtecEventComm::EventSet events; - events.length (1); - events[0] = event; - - proxy_consumer_->push (events, - TAO_TRY_ENV); - TAO_CHECK_ENV; - - if (total_sent_ < 5) - ACE_DEBUG ((LM_DEBUG, - "Pushing event data.\n")); - else if (total_sent_ == 5) - ACE_DEBUG ((LM_DEBUG, - "Everything is running. Going to be mute.\n")); - } - while (++total_sent_ < total_messages); - - // Sending a shutdown event -- not wanted right now - /* RtecEventComm::Event event; - event.source_ = SOURCE_ID; - event.type_ = ACE_ES_EVENT_SHUTDOWN; - event.ttl_ = 1; - event.creation_time_ = ORBSVCS_Time::zero; - event.ec_recv_time_ = ORBSVCS_Time::zero; - event.ec_send_time_ = ORBSVCS_Time::zero; - event.data_.x = 0; - event.data_.y = 0; - - RtecEventComm::EventSet events; - events.length (1); - events[0] = event; - TAO_CHECK_ENV; - - proxy_consumer_->push (events, TAO_TRY_ENV); - TAO_CHECK_ENV; */ - - } - TAO_CATCHANY - { - ACE_ERROR ((LM_ERROR, "Demo_Supplier::start_generating_events: " - " unexpected exception.\n")); - } - TAO_ENDTRY; - - // clean up the scheduling data - Schedule_Viewer_Data **data_temp; - for (schedule_iter.first (); - schedule_iter.done () == 0; - schedule_iter.advance ()) - if (schedule_iter.next (data_temp) && data_temp) - delete (*data_temp); - - this->shutdown (); -} - -void -Demo_Supplier::load_schedule_data - (ACE_Unbounded_Queue &schedule_data) -{ - Schedule_Viewer_Data *data = 0; - - if (input_file_name) - { - // Open the scheduler data input file and read its contents into - // a queue. - FILE *input_file; - - int scan_count = 0; - input_file = ACE_OS::fopen(input_file_name, "r"); - - if (input_file) - { - // Get a line at a time from the data file and parse it. - char input_buf[BUFSIZ]; - while (ACE_OS::fgets (input_buf, BUFSIZ, input_file)) - { - // Run through leading whitespace. - char *temp = input_buf; - while (*temp && isspace (*temp)) - ++temp; - - // If there is anything besides whitespace in the line - // read, scan its fields into the scheduling data - // structure. - if (ACE_OS::strlen (temp) > 0) - { - ACE_NEW (data, Schedule_Viewer_Data); - scan_count = sscanf (temp, "%s %lf %lf %lu %lu %lu %lu", - &(data->operation_name), &(data->utilitzation), - &(data->overhead), &(data->arrival_time), - &(data->deadline_time), &(data->completion_time), - &(data->computation_time)); - if (scan_count != 7) - { - ACE_ERROR ((LM_ERROR, - "Demo_Supplier::start_generating_events: " - "scanned incorrect number of data elements: %d\n", scan_count)); - - delete data; - return; - } - - // Insert the data into the queue. - schedule_data.enqueue_tail (data); - } - } - } - else - { - ACE_ERROR ((LM_ERROR, - "Demo_Supplier::start_generating_events: " - "could not open input file [%s].\n", - input_file_name)); - return; - } - } - else - { - u_long last_completion = 0; - - // Just create 10 dummy scheduling records and use them. - for (int i = 0; i < 10; ++i) - { - ACE_NEW (data, Schedule_Viewer_Data); - - char *oper_name = 0; - switch (i % 4) - { - case 0: - oper_name = "high_20"; - break; - - case 1: - oper_name = "low_20"; - break; - - case 2: - oper_name = "high_10"; - break; - - case 3: - default: - oper_name = "low_10"; - break; - } - - ACE_OS::strncpy (data->operation_name, - oper_name, - BUFSIZ-1); - - - data->utilitzation = (double)(20.0+ACE_OS::rand() %10); - data->overhead = (double)(ACE_OS::rand() %20); - - data->arrival_time = ACE_OS::rand() % 200; - data->computation_time = (ACE_OS::rand() % 100) + 10; - - data->completion_time = last_completion + (ACE_OS::rand() % 100) + 100; - data->completion_time = - data->completion_time < data->arrival_time + data->computation_time - ? data->arrival_time + data->computation_time - : data->completion_time; - - last_completion = data->completion_time; - - data->deadline_time = data->completion_time + (ACE_OS::rand() % 200) - 50; - - // insert the data into the queue. - schedule_data.enqueue_tail (data); - } - } -} - -// This function fills in the random data into the anys transported by -// the event channel. - -void -Demo_Supplier::insert_event_data (CORBA::Any &data, - ACE_Unbounded_Queue_Iterator &schedule_iter) -{ - static u_long last_completion = 0; - - TAO_TRY { - Schedule_Viewer_Data **sched_data; - - if ((schedule_iter.next (sched_data)) && (sched_data) && (*sched_data)) { - if ((strcmp((*sched_data)->operation_name, "high_20") == 0) || - (strcmp((*sched_data)->operation_name, "low_20") == 0) || - (strcmp((*sched_data)->operation_name, "high_1") == 0) || - (strcmp((*sched_data)->operation_name, "low_1") == 0)) { - navigation_.position_latitude = ACE_OS::rand() % 90; - navigation_.position_longitude = ACE_OS::rand() % 180; - navigation_.altitude = ACE_OS::rand() % 100; - navigation_.heading = ACE_OS::rand() % 180; - navigation_.roll = (navigation_.roll >= 180) ? -180 : navigation_.roll + 1; - navigation_.pitch = (navigation_.pitch >= 90) ? -90 : navigation_.pitch + 1; - - navigation_.utilization = (*sched_data)->utilitzation; - navigation_.overhead = (*sched_data)->overhead; - navigation_.arrival_time = (*sched_data)->arrival_time; - navigation_.deadline_time = (*sched_data)->deadline_time; - navigation_.completion_time = (*sched_data)->completion_time; - navigation_.computation_time = (*sched_data)->computation_time; - - // because the scheduler data does not supply these values - navigation_.utilization = (double) (20.0 + ACE_OS::rand() % 10); - navigation_.overhead = (double) (ACE_OS::rand() % 10); - - data.replace (_tc_Navigation, &navigation_, CORBA::B_TRUE, TAO_TRY_ENV); - } - else if ((strcmp((*sched_data)->operation_name, "high_10") == 0) || - (strcmp((*sched_data)->operation_name, "low_10") == 0) || - (strcmp((*sched_data)->operation_name, "high_5") == 0) || - (strcmp((*sched_data)->operation_name, "low_5") == 0)) { - weapons_.number_of_weapons = 2; - weapons_.weapon1_identifier = CORBA::string_alloc (30); - strcpy (weapons_.weapon1_identifier,"Photon Torpedoes"); - weapons_.weapon1_status =(ACE_OS::rand() % 4) == 0 ? 0 : 1 ; - weapons_.weapon2_identifier = CORBA::string_alloc (30); - strcpy (weapons_.weapon2_identifier,"Quantum Torpedoes"); - weapons_.weapon2_status = (ACE_OS::rand() % 4) == 0 ? 0 : 1; - weapons_.weapon3_identifier = CORBA::string_alloc (1); - strcpy (weapons_.weapon3_identifier, ""); - weapons_.weapon3_status = 0; - weapons_.weapon4_identifier = CORBA::string_alloc (1); - strcpy (weapons_.weapon4_identifier, ""); - weapons_.weapon4_status = 0; - weapons_.weapon5_identifier = CORBA::string_alloc (1); - strcpy (weapons_.weapon5_identifier, ""); - weapons_.weapon5_status = 0; - weapons_.utilization = (*sched_data)->utilitzation; - weapons_.overhead = (*sched_data)->overhead; - weapons_.arrival_time = (*sched_data)->arrival_time; - weapons_.deadline_time = (*sched_data)->deadline_time; - weapons_.completion_time = (*sched_data)->completion_time; - weapons_.computation_time = (*sched_data)->computation_time; - - // because the scheduler data does not supply these values - weapons_.utilization = (double) (20.0 + ACE_OS::rand() % 10); - weapons_.overhead = (double) (ACE_OS::rand() % 10); - - data.replace (_tc_Weapons, &weapons_, CORBA::B_TRUE, TAO_TRY_ENV); - } - else { - ACE_ERROR ((LM_ERROR, "Demo_Supplier::insert_event_data: unrecognized operation name [%s]", - (*sched_data)->operation_name)); - } - - TAO_CHECK_ENV; - - - if (last_completion > (*sched_data)->completion_time) - last_completion = 0; - - if ((*sched_data)->completion_time >= last_completion) - { - ACE_Time_Value pause (0, - (*sched_data)->completion_time - last_completion); - ACE_OS::sleep (pause); - last_completion = (*sched_data)->completion_time; - } - } - else - ACE_ERROR ((LM_ERROR, - "Demo_Supplier::insert_event_data: Could Not access scheduling data")); - - schedule_iter.advance (); - - if (schedule_iter.done ()) - schedule_iter.first (); - } - TAO_CATCHANY - { - ACE_ERROR ((LM_ERROR, "(%t)Error in Demo_Supplier::insert_event_data.\n")); - } - TAO_ENDTRY; -} - -void -Demo_Supplier::push (const RtecEventComm::EventSet &events, - CORBA::Environment &env) -{ -} - -void -Demo_Supplier::shutdown (void) -{ - TAO_TRY - { - // @@ Had problems with the next command, the application got stuck in it - // channel_admin_->destroy (TAO_TRY_ENV); - // TAO_CHECK_ENV; - - TAO_ORB_Core_instance ()->orb ()->shutdown (); - TAO_CHECK_ENV; - - } - TAO_CATCHANY - { - ACE_ERROR ((LM_ERROR, "(%t) Demo_Supplier::shutdown:" - " unexpected exception.\n")); - TAO_TRY_ENV.print_exception ("Demo_Supplier::shutdown"); - } - TAO_ENDTRY; -} - -// Function get_options. - -static u_int -get_options (int argc, - char *argv []) -{ - // We need the 'O' in get_opt() because we also want to have ORB - // parameters, they all start with 'O'. - ACE_Get_Opt get_opt (argc, argv, "O?m:f:"); - int opt; - int temp; - - while ((opt = get_opt ()) != EOF) - { - switch (opt) - { - case '?': - ACE_DEBUG ((LM_DEBUG, - "Usage: %s %s\n", - argv[0], usage)); - ACE_OS::exit (0); - break; - case 'm': - temp = ACE_OS::atoi (get_opt.optarg); - if (temp > 0) - { - total_messages = (u_int) temp; - cout << "Messages to send:" << total_messages << endl; - } - else - ACE_ERROR_RETURN ((LM_ERROR, - "%s: count must be > 0", - argv[0]), - 1); - break; - case 'f': - input_file_name = get_opt.optarg; - - if (!input_file_name || ACE_OS::strlen (input_file_name) > 0) - cout << "Messages to send:" << total_messages << endl; - else - { - input_file_name = 0; - ACE_ERROR_RETURN ((LM_ERROR, - "%s: file name must be specified with -f option", - argv[0]), - 1); - } - break; - default: - ACE_ERROR_RETURN ((LM_ERROR, - "%s: unknown arg, -%c\n" - "Usage: %s %s\n", - argv[0], char(opt), - argv[0], - usage), - 1); - } - } - - if (argc != get_opt.optind) - ACE_ERROR_RETURN ((LM_ERROR, - "%s: too many arguments\n" - "Usage: %s %s\n", - argv[0], - argv[0], - usage), - 1); - - return 0; -} - -// function main - -int -main (int argc, char *argv []) -{ - TAO_TRY - { - // Initialize ORB. - - CORBA::ORB_var orb = - CORBA::ORB_init (argc, - argv, - "internet", - TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Connect to the RootPOA. - CORBA::Object_var poa_object = - orb->resolve_initial_references("RootPOA"); - if (CORBA::is_nil (poa_object.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize the POA.\n"), - 1); - - PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (poa_object.in (), TAO_TRY_ENV); - TAO_CHECK_ENV; - - PortableServer::POAManager_var poa_manager = - root_poa->the_POAManager (TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Get the Naming Service object reference. - CORBA::Object_var naming_obj = - orb->resolve_initial_references ("NameService"); - - if (CORBA::is_nil (naming_obj.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable get the Naming Service.\n"), - 1); - - CosNaming::NamingContext_var naming_context = - CosNaming::NamingContext::_narrow (naming_obj.in (), - TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Tell the ScheduleService to use the same naming service. - ACE_Scheduler_Factory::use_config (naming_context.in ()); - - if (get_options (argc, argv)) - ACE_OS::exit (-1); - - // Get the Event Channel - // @@ If you specify an invalid name, the Name Service crashes - - CosNaming::Name channel_name (1); - channel_name.length (1); - channel_name[0].id = CORBA::string_dup ("EventService"); - - CORBA::Object_var ec_obj = - naming_context->resolve (channel_name, TAO_TRY_ENV); - TAO_CHECK_ENV; - - RtecEventChannelAdmin::EventChannel_var ec = - RtecEventChannelAdmin::EventChannel::_narrow (ec_obj.in(), - TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Create the demo supplier. - Demo_Supplier *demo_supplier; - ACE_NEW_RETURN (demo_supplier, - Demo_Supplier (SOURCE_ID), - -1); - - if (demo_supplier->open_supplier (ec.ptr (), - "demo_supplier") == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "Supplier open failed.\n"), - -1); - - // Register the internal demo consumer for timeout events. - demo_supplier->start_generating_events (); - - ACE_DEBUG ((LM_DEBUG, - "Supplier is registered for timeout events.\n")); - - // The POA Manager has to be activated before starting the ORB - // event loop. - poa_manager->activate (TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Run the ORB. - if (orb->run () == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "%p\n", - "CORBA::ORB::run"), - -1); - TAO_CHECK_ENV; - - delete demo_supplier; - TAO_CHECK_ENV; - - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("SYS_EX"); - } - TAO_ENDTRY; - - return 0; -} diff --git a/TAO/examples/Simulator/Event_Supplier/Event_Sup.dsp b/TAO/examples/Simulator/Event_Supplier/Event_Sup.dsp deleted file mode 100644 index a31af400e75..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/Event_Sup.dsp +++ /dev/null @@ -1,132 +0,0 @@ -# Microsoft Developer Studio Project File - Name="Event_Sup" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 5.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=Event_Sup - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "Event_Sup.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "Event_Sup.mak" CFG="Event_Sup - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "Event_Sup - Win32 Release" (based on\ - "Win32 (x86) Console Application") -!MESSAGE "Event_Sup - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "Event_Sup - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Release" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\..\..\..\..\\" /I "..\..\..\..\\" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\..\..\ace" /libpath:"..\..\..\..\tao" /libpath:"..\..\..\orbsvcs" - -!ELSEIF "$(CFG)" == "Event_Sup - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Debug" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\..\..\..\\" /I "..\..\..\..\\" /I "..\..\..\\" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "TAO_ORBSVCS_HAS_DLL" /FD /c -# SUBTRACT CPP /YX -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept -# ADD LINK32 aced.lib TAO.lib orbsvcs.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\..\..\ace" /libpath:"..\..\..\..\tao" /libpath:"..\..\..\orbsvcs" - -!ENDIF - -# Begin Target - -# Name "Event_Sup - Win32 Release" -# Name "Event_Sup - Win32 Debug" -# Begin Source File - -SOURCE=.\Event_Sup.cpp -# End Source File -# Begin Source File - -SOURCE=.\NavWeap.idl - -!IF "$(CFG)" == "Event_Sup - Win32 Release" - -!ELSEIF "$(CFG)" == "Event_Sup - Win32 Debug" - -# Begin Custom Build -InputPath=.\NavWeap.idl -InputName=NavWeap - -BuildCmds= \ - ..\..\..\..\tao_idl\tao_idl $(InputName).idl - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\NavWeapC.cpp -# End Source File -# End Target -# End Project diff --git a/TAO/examples/Simulator/Event_Supplier/Event_Sup.dsw b/TAO/examples/Simulator/Event_Supplier/Event_Sup.dsw deleted file mode 100644 index 8e624d1c218..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/Event_Sup.dsw +++ /dev/null @@ -1,29 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 5.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "Event_Sup"=.\Event_Sup.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/examples/Simulator/Event_Supplier/Event_Sup.h b/TAO/examples/Simulator/Event_Supplier/Event_Sup.h deleted file mode 100644 index 2b45455e181..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/Event_Sup.h +++ /dev/null @@ -1,134 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// Event_Sup.h -// -// = DESCRIPTION -// Event Supplier for the simulation -// -// = AUTHOR -// originally -// David Levine (levine@cs.wustl.edu) and -// Tim Harrison (harrison@cs.wustl.edu) -// modified -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#if !defined (EVENT_SUP_H) -#define EVENT_SUP_H - -#include -#include -#include "ace/OS.h" -#include "ace/SString.h" -#include "orbsvcs/RtecEventChannelAdminC.h" -#include "orbsvcs/RtecEventCommS.h" -#include "NavWeapC.h" - -struct Schedule_Viewer_Data -{ - char operation_name [BUFSIZ]; - double utilitzation; - double overhead; - u_long arrival_time; - u_long deadline_time; - u_long completion_time; - u_long computation_time; -}; - -class Demo_Supplier -{ - // = TITLE - // Demo Supplier. - // - // = DESCRIPTION - // Generates event nofications and a shutdown message. -public: - class Internal_Demo_Consumer : public POA_RtecEventComm::PushConsumer - { - public: - virtual void push (const RtecEventComm::EventSet &events, - CORBA::Environment &); - // The channel pushed some events to us. - - virtual void disconnect_push_consumer (CORBA::Environment &); - // The channel is disconnecting. - - private: - Internal_Demo_Consumer (Demo_Supplier* impl); - friend class Demo_Supplier; - - private: - Demo_Supplier* impl_; - }; - - // The following Supplier is needed because Demo_Supplier has not - // inherited from PushSupplier, therefore we register with the - // following and send with Demo_Supplier. - - class Internal_Demo_Supplier : public POA_RtecEventComm::PushSupplier - { - public: - virtual void disconnect_push_supplier (CORBA::Environment &); - - private: - Internal_Demo_Supplier (Demo_Supplier* impl); - friend class Demo_Supplier; - - private: - Demo_Supplier* impl_; - }; - - Demo_Supplier (u_int supplier_id); - // Construction. Requires the total number of messages to be - // sent. If the timestamp flag is enabled, then events are - // timestamped, e.g., for use in measuring jitter. - - ~Demo_Supplier (void); - - int open_supplier (RtecEventChannelAdmin::EventChannel_ptr event_channel, - const char *name); - // Registers with the name server under the given . Also - // connects to the Event Channel as a supplier of notifications and - // shutdown messages. - - virtual void disconnect_push_supplier (CORBA::Environment &); - // The channel is disconnecting. - - void start_generating_events (void); - - void load_schedule_data (ACE_Unbounded_Queue &schedule_data); - - void insert_event_data (CORBA::Any &data, - ACE_Unbounded_Queue_Iterator &schedule_iter); - - void push (const RtecEventComm::EventSet &events, - CORBA::Environment &); -protected: - - void shutdown (void); - // Disconnect from the Event Service. - - // = Event Channel adminstration references. - RtecEventChannelAdmin::EventChannel_var channel_admin_; - RtecEventChannelAdmin::SupplierAdmin_var supplier_admin_; - RtecEventChannelAdmin::ProxyPushConsumer_var proxy_consumer_; - - // = Because we get timeout events in our internal_demo_consumer. - RtecEventChannelAdmin::ConsumerAdmin_var consumer_admin_; - RtecEventChannelAdmin::ProxyPushSupplier_var proxy_supplier_; - -private: - Navigation navigation_; - Weapons weapons_; - RtecScheduler::handle_t rt_info_; - u_int supplier_id_; - - Internal_Demo_Consumer *internal_demo_consumer_; - Internal_Demo_Supplier *internal_demo_supplier_; -}; - -#endif /* EVENT_SUP_H */ diff --git a/TAO/examples/Simulator/Event_Supplier/MLF.dat b/TAO/examples/Simulator/Event_Supplier/MLF.dat deleted file mode 100644 index 2ab9b47b9af..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/MLF.dat +++ /dev/null @@ -1,72 +0,0 @@ -low_20 1.000000 0.000000 0 500000 180000 180000 -high_20 1.000000 0.000000 0 500000 360000 180000 -low_20 1.000000 0.000000 500000 1000000 680000 180000 -high_20 1.000000 0.000000 500000 1000000 860000 180000 -low_10 1.000000 0.000000 0 1000000 900000 180000 -low_20 1.000000 0.000000 1000000 1500000 1180000 180000 -high_20 1.000000 0.000000 1000000 1500000 1360000 180000 -low_20 1.000000 0.000000 1500000 2000000 1680000 180000 -high_20 1.000000 0.000000 1500000 2000000 1860000 180000 -low_10 1.000000 0.000000 1000000 2000000 1900000 180000 -low_5 1.000000 0.000000 0 2000000 1980000 180000 -low_20 1.000000 0.000000 2000000 2500000 2180000 180000 -high_20 1.000000 0.000000 2000000 2500000 2360000 180000 -low_20 1.000000 0.000000 2500000 3000000 2680000 180000 -high_20 1.000000 0.000000 2500000 3000000 2860000 180000 -low_10 1.000000 0.000000 2000000 3000000 2900000 180000 -low_20 1.000000 0.000000 3000000 3500000 3180000 180000 -high_20 1.000000 0.000000 3000000 3500000 3360000 180000 -low_20 1.000000 0.000000 3500000 4000000 3680000 180000 -high_20 1.000000 0.000000 3500000 4000000 3860000 180000 -low_10 1.000000 0.000000 3000000 4000000 3900000 180000 -low_1 1.000000 0.000000 0 10000000 3960000 180000 -low_20 1.000000 0.000000 4000000 4500000 4180000 180000 -high_20 1.000000 0.000000 4000000 4500000 4360000 180000 -low_20 1.000000 0.000000 4500000 5000000 4680000 180000 -high_20 1.000000 0.000000 4500000 5000000 4860000 180000 -low_10 1.000000 0.000000 4000000 5000000 4900000 180000 -low_20 1.000000 0.000000 5000000 5500000 5180000 180000 -high_20 1.000000 0.000000 5000000 5500000 5360000 180000 -low_20 1.000000 0.000000 5500000 6000000 5680000 180000 -high_20 1.000000 0.000000 5500000 6000000 5860000 180000 -low_10 1.000000 0.000000 5000000 6000000 5900000 180000 -high_1 1.000000 0.000000 0 10000000 5940000 180000 -low_20 1.000000 0.000000 6000000 6500000 6180000 180000 -high_20 1.000000 0.000000 6000000 6500000 6360000 180000 -low_20 1.000000 0.000000 6500000 7000000 6680000 180000 -high_20 1.000000 0.000000 6500000 7000000 6860000 180000 -low_10 1.000000 0.000000 6000000 7000000 6900000 180000 -low_20 1.000000 0.000000 7000000 7500000 7180000 180000 -high_20 1.000000 0.000000 7000000 7500000 7360000 180000 -low_20 1.000000 0.000000 7500000 8000000 7680000 180000 -high_20 1.000000 0.000000 7500000 8000000 7860000 180000 -low_10 1.000000 0.000000 7000000 8000000 7900000 180000 -high_10 1.000000 0.000000 5000000 6000000 7920000 180000 -low_20 1.000000 0.000000 8000000 8500000 8180000 180000 -high_20 1.000000 0.000000 8000000 8500000 8360000 180000 -low_20 1.000000 0.000000 8500000 9000000 8680000 180000 -high_20 1.000000 0.000000 8500000 9000000 8860000 180000 -low_10 1.000000 0.000000 8000000 9000000 8900000 180000 -high_10 1.000000 0.000000 7000000 8000000 9000000 180000 -low_20 1.000000 0.000000 9000000 9500000 9180000 180000 -high_20 1.000000 0.000000 9000000 9500000 9360000 180000 -low_20 1.000000 0.000000 9500000 10000000 9680000 180000 -high_20 1.000000 0.000000 9500000 10000000 9860000 180000 -low_10 1.000000 0.000000 9000000 10000000 9900000 180000 -high_10 1.000000 0.000000 9000000 10000000 10080000 180000 -low_5 1.000000 0.000000 8000000 10000000 10260000 180000 -high_5 1.000000 0.000000 8000000 10000000 10440000 180000 -high_10 1.000000 0.000000 8000000 9000000 10620000 180000 -high_5 1.000000 0.000000 6000000 8000000 10800000 180000 -low_5 1.000000 0.000000 6000000 8000000 10980000 180000 -high_10 1.000000 0.000000 6000000 7000000 11160000 180000 -low_5 1.000000 0.000000 4000000 6000000 11340000 180000 -high_5 1.000000 0.000000 4000000 6000000 11520000 180000 -high_10 1.000000 0.000000 4000000 5000000 11700000 180000 -high_5 1.000000 0.000000 2000000 4000000 11880000 180000 -low_5 1.000000 0.000000 2000000 4000000 12060000 180000 -high_10 1.000000 0.000000 3000000 4000000 12240000 180000 -high_10 1.000000 0.000000 2000000 3000000 12420000 180000 -high_10 1.000000 0.000000 1000000 2000000 12600000 180000 -high_5 1.000000 0.000000 0 2000000 12780000 180000 -high_10 1.000000 0.000000 0 1000000 12960000 180000 diff --git a/TAO/examples/Simulator/Event_Supplier/MUF.dat b/TAO/examples/Simulator/Event_Supplier/MUF.dat deleted file mode 100644 index ac521175070..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/MUF.dat +++ /dev/null @@ -1,72 +0,0 @@ -high_20 1.000000 0.000000 0 500000 180000 180000 -high_10 1.000000 0.000000 0 1000000 360000 180000 -high_20 1.000000 0.000000 500000 1000000 680000 180000 -high_5 1.000000 0.000000 0 2000000 720000 180000 -high_1 1.000000 0.000000 0 10000000 900000 180000 -high_20 1.000000 0.000000 1000000 1500000 1180000 180000 -high_10 1.000000 0.000000 1000000 2000000 1360000 180000 -low_5 1.000000 0.000000 0 2000000 1440000 180000 -high_20 1.000000 0.000000 1500000 2000000 1680000 180000 -low_10 1.000000 0.000000 1000000 2000000 1800000 180000 -low_20 1.000000 0.000000 1500000 2000000 1980000 180000 -high_20 1.000000 0.000000 2000000 2500000 2180000 180000 -high_10 1.000000 0.000000 2000000 3000000 2360000 180000 -high_20 1.000000 0.000000 2500000 3000000 2680000 180000 -high_5 1.000000 0.000000 2000000 4000000 2720000 180000 -low_1 1.000000 0.000000 0 10000000 2880000 180000 -high_20 1.000000 0.000000 3000000 3500000 3180000 180000 -high_10 1.000000 0.000000 3000000 4000000 3360000 180000 -low_5 1.000000 0.000000 2000000 4000000 3420000 180000 -high_20 1.000000 0.000000 3500000 4000000 3680000 180000 -low_10 1.000000 0.000000 3000000 4000000 3780000 180000 -low_20 1.000000 0.000000 3500000 4000000 3960000 180000 -high_20 1.000000 0.000000 4000000 4500000 4180000 180000 -high_10 1.000000 0.000000 4000000 5000000 4360000 180000 -high_20 1.000000 0.000000 4500000 5000000 4680000 180000 -high_5 1.000000 0.000000 4000000 6000000 4720000 180000 -low_20 1.000000 0.000000 3000000 3500000 4860000 180000 -high_20 1.000000 0.000000 5000000 5500000 5180000 180000 -high_10 1.000000 0.000000 5000000 6000000 5360000 180000 -low_5 1.000000 0.000000 4000000 6000000 5400000 180000 -high_20 1.000000 0.000000 5500000 6000000 5680000 180000 -low_10 1.000000 0.000000 5000000 6000000 5760000 180000 -low_20 1.000000 0.000000 5500000 6000000 5940000 180000 -high_20 1.000000 0.000000 6000000 6500000 6180000 180000 -high_10 1.000000 0.000000 6000000 7000000 6360000 180000 -high_20 1.000000 0.000000 6500000 7000000 6680000 180000 -high_5 1.000000 0.000000 6000000 8000000 6720000 180000 -low_20 1.000000 0.000000 5000000 5500000 6840000 180000 -high_20 1.000000 0.000000 7000000 7500000 7180000 180000 -high_10 1.000000 0.000000 7000000 8000000 7360000 180000 -low_5 1.000000 0.000000 6000000 8000000 7380000 180000 -high_20 1.000000 0.000000 7500000 8000000 7680000 180000 -low_10 1.000000 0.000000 7000000 8000000 7740000 180000 -low_20 1.000000 0.000000 7500000 8000000 7920000 180000 -high_20 1.000000 0.000000 8000000 8500000 8180000 180000 -high_10 1.000000 0.000000 8000000 9000000 8360000 180000 -high_20 1.000000 0.000000 8500000 9000000 8680000 180000 -high_5 1.000000 0.000000 8000000 10000000 8720000 180000 -low_20 1.000000 0.000000 7000000 7500000 8820000 180000 -low_5 1.000000 0.000000 8000000 10000000 9000000 180000 -high_20 1.000000 0.000000 9000000 9500000 9180000 180000 -high_10 1.000000 0.000000 9000000 10000000 9360000 180000 -high_20 1.000000 0.000000 9500000 10000000 9680000 180000 -low_10 1.000000 0.000000 9000000 10000000 9720000 180000 -low_20 1.000000 0.000000 9500000 10000000 9900000 180000 -low_20 1.000000 0.000000 9000000 9500000 10080000 180000 -low_10 1.000000 0.000000 8000000 9000000 10260000 180000 -low_20 1.000000 0.000000 8500000 9000000 10440000 180000 -low_20 1.000000 0.000000 8000000 8500000 10620000 180000 -low_20 1.000000 0.000000 6500000 7000000 10800000 180000 -low_10 1.000000 0.000000 6000000 7000000 10980000 180000 -low_20 1.000000 0.000000 6000000 6500000 11160000 180000 -low_10 1.000000 0.000000 4000000 5000000 11340000 180000 -low_20 1.000000 0.000000 4500000 5000000 11520000 180000 -low_20 1.000000 0.000000 4000000 4500000 11700000 180000 -low_20 1.000000 0.000000 2500000 3000000 11880000 180000 -low_10 1.000000 0.000000 2000000 3000000 12060000 180000 -low_20 1.000000 0.000000 2000000 2500000 12240000 180000 -low_20 1.000000 0.000000 1000000 1500000 12420000 180000 -low_20 1.000000 0.000000 500000 1000000 12600000 180000 -low_10 1.000000 0.000000 0 1000000 12780000 180000 -low_20 1.000000 0.000000 0 500000 12960000 180000 diff --git a/TAO/examples/Simulator/Event_Supplier/Makefile b/TAO/examples/Simulator/Event_Supplier/Makefile deleted file mode 100644 index 2f18c752ce0..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/Makefile +++ /dev/null @@ -1,69 +0,0 @@ -# -# $Id$ -# - -BIN = Event_Sup Event_Con - -BUILD = $(BIN) - - -IDL_SRC = \ - NavWeapC.cpp NavWeapS.cpp - -IDL_HDR = \ - NavWeapC.h - -EVENT_TEST_SRCS= \ - Event_Sup.cpp Event_Con.cpp - -LSRC= \ - $(IDL_SRC) $(EVENT_TEST_SRCS) - -EVENT_SUP_OBJS = NavWeapC.o Event_Sup.o -EVENT_CON_OBJS = NavWeapC.o Event_Con.o - -LDLIBS= -lorbsvcs -lTAO - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(TAO_ROOT)/rules.tao.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#### Local rules and variables... - -ifndef TAO_ROOT -TAO_ROOT = $(ACE_ROOT)/TAO -endif -TSS_ORB_FLAG = #-DTAO_HAS_TSS_ORBCORE -LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao -CPPFLAGS += -I$(TAO_ROOT)/orbsvcs -I$(TAO_ROOT) -I$(TAO_ROOT)/tao/compat $(TSS_ORB_FLAG)#-H - - -#$(IDL_SRC): NavWeap.idl -# $(TAO_ROOT)/TAO_IDL/tao_idl NavWeap.idl - -#.PRECIOUS:$(IDL_HDR) $(IDL_SRC) - -Event_Sup: $(addprefix $(VDIR),$(EVENT_SUP_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -Event_Con: $(addprefix $(VDIR),$(EVENT_CON_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - - - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/examples/Simulator/Event_Supplier/RMS.dat b/TAO/examples/Simulator/Event_Supplier/RMS.dat deleted file mode 100644 index 5038c140a53..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/RMS.dat +++ /dev/null @@ -1,72 +0,0 @@ -low_20 1.000000 0.000000 0 500000 180000 180000 -high_20 1.000000 0.000000 0 500000 360000 180000 -low_20 1.000000 0.000000 500000 1000000 680000 180000 -high_20 1.000000 0.000000 500000 1000000 860000 180000 -low_10 1.000000 0.000000 0 1000000 900000 180000 -low_20 1.000000 0.000000 1000000 1500000 1180000 180000 -high_20 1.000000 0.000000 1000000 1500000 1360000 180000 -low_20 1.000000 0.000000 1500000 2000000 1680000 180000 -high_20 1.000000 0.000000 1500000 2000000 1860000 180000 -low_10 1.000000 0.000000 1000000 2000000 1900000 180000 -high_10 1.000000 0.000000 0 1000000 1980000 180000 -low_20 1.000000 0.000000 2000000 2500000 2180000 180000 -high_20 1.000000 0.000000 2000000 2500000 2360000 180000 -low_20 1.000000 0.000000 2500000 3000000 2680000 180000 -high_20 1.000000 0.000000 2500000 3000000 2860000 180000 -low_10 1.000000 0.000000 2000000 3000000 2900000 180000 -low_20 1.000000 0.000000 3000000 3500000 3180000 180000 -high_20 1.000000 0.000000 3000000 3500000 3360000 180000 -low_20 1.000000 0.000000 3500000 4000000 3680000 180000 -high_20 1.000000 0.000000 3500000 4000000 3860000 180000 -low_10 1.000000 0.000000 3000000 4000000 3900000 180000 -high_10 1.000000 0.000000 1000000 2000000 3960000 180000 -low_20 1.000000 0.000000 4000000 4500000 4180000 180000 -high_20 1.000000 0.000000 4000000 4500000 4360000 180000 -low_20 1.000000 0.000000 4500000 5000000 4680000 180000 -high_20 1.000000 0.000000 4500000 5000000 4860000 180000 -low_10 1.000000 0.000000 4000000 5000000 4900000 180000 -low_20 1.000000 0.000000 5000000 5500000 5180000 180000 -high_20 1.000000 0.000000 5000000 5500000 5360000 180000 -low_20 1.000000 0.000000 5500000 6000000 5680000 180000 -high_20 1.000000 0.000000 5500000 6000000 5860000 180000 -low_10 1.000000 0.000000 5000000 6000000 5900000 180000 -high_10 1.000000 0.000000 2000000 3000000 5940000 180000 -low_20 1.000000 0.000000 6000000 6500000 6180000 180000 -high_20 1.000000 0.000000 6000000 6500000 6360000 180000 -low_20 1.000000 0.000000 6500000 7000000 6680000 180000 -high_20 1.000000 0.000000 6500000 7000000 6860000 180000 -low_10 1.000000 0.000000 6000000 7000000 6900000 180000 -low_20 1.000000 0.000000 7000000 7500000 7180000 180000 -high_20 1.000000 0.000000 7000000 7500000 7360000 180000 -low_20 1.000000 0.000000 7500000 8000000 7680000 180000 -high_20 1.000000 0.000000 7500000 8000000 7860000 180000 -low_10 1.000000 0.000000 7000000 8000000 7900000 180000 -high_10 1.000000 0.000000 3000000 4000000 7920000 180000 -low_20 1.000000 0.000000 8000000 8500000 8180000 180000 -high_20 1.000000 0.000000 8000000 8500000 8360000 180000 -low_20 1.000000 0.000000 8500000 9000000 8680000 180000 -high_20 1.000000 0.000000 8500000 9000000 8860000 180000 -low_10 1.000000 0.000000 8000000 9000000 8900000 180000 -high_10 1.000000 0.000000 4000000 5000000 9000000 180000 -low_20 1.000000 0.000000 9000000 9500000 9180000 180000 -high_20 1.000000 0.000000 9000000 9500000 9360000 180000 -low_20 1.000000 0.000000 9500000 10000000 9680000 180000 -high_20 1.000000 0.000000 9500000 10000000 9860000 180000 -low_10 1.000000 0.000000 9000000 10000000 9900000 180000 -high_10 1.000000 0.000000 5000000 6000000 10080000 180000 -high_10 1.000000 0.000000 6000000 7000000 10260000 180000 -high_10 1.000000 0.000000 7000000 8000000 10440000 180000 -high_10 1.000000 0.000000 8000000 9000000 10620000 180000 -high_10 1.000000 0.000000 9000000 10000000 10800000 180000 -low_5 1.000000 0.000000 0 2000000 10980000 180000 -low_5 1.000000 0.000000 2000000 4000000 11160000 180000 -low_5 1.000000 0.000000 4000000 6000000 11340000 180000 -low_5 1.000000 0.000000 6000000 8000000 11520000 180000 -low_5 1.000000 0.000000 8000000 10000000 11700000 180000 -high_5 1.000000 0.000000 0 2000000 11880000 180000 -high_5 1.000000 0.000000 2000000 4000000 12060000 180000 -high_5 1.000000 0.000000 4000000 6000000 12240000 180000 -high_5 1.000000 0.000000 6000000 8000000 12420000 180000 -high_5 1.000000 0.000000 8000000 10000000 12600000 180000 -low_1 1.000000 0.000000 0 10000000 12780000 180000 -high_1 1.000000 0.000000 0 10000000 12960000 180000 diff --git a/TAO/examples/Simulator/Event_Supplier/RMS_Dyn.dat b/TAO/examples/Simulator/Event_Supplier/RMS_Dyn.dat deleted file mode 100644 index ac521175070..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/RMS_Dyn.dat +++ /dev/null @@ -1,72 +0,0 @@ -high_20 1.000000 0.000000 0 500000 180000 180000 -high_10 1.000000 0.000000 0 1000000 360000 180000 -high_20 1.000000 0.000000 500000 1000000 680000 180000 -high_5 1.000000 0.000000 0 2000000 720000 180000 -high_1 1.000000 0.000000 0 10000000 900000 180000 -high_20 1.000000 0.000000 1000000 1500000 1180000 180000 -high_10 1.000000 0.000000 1000000 2000000 1360000 180000 -low_5 1.000000 0.000000 0 2000000 1440000 180000 -high_20 1.000000 0.000000 1500000 2000000 1680000 180000 -low_10 1.000000 0.000000 1000000 2000000 1800000 180000 -low_20 1.000000 0.000000 1500000 2000000 1980000 180000 -high_20 1.000000 0.000000 2000000 2500000 2180000 180000 -high_10 1.000000 0.000000 2000000 3000000 2360000 180000 -high_20 1.000000 0.000000 2500000 3000000 2680000 180000 -high_5 1.000000 0.000000 2000000 4000000 2720000 180000 -low_1 1.000000 0.000000 0 10000000 2880000 180000 -high_20 1.000000 0.000000 3000000 3500000 3180000 180000 -high_10 1.000000 0.000000 3000000 4000000 3360000 180000 -low_5 1.000000 0.000000 2000000 4000000 3420000 180000 -high_20 1.000000 0.000000 3500000 4000000 3680000 180000 -low_10 1.000000 0.000000 3000000 4000000 3780000 180000 -low_20 1.000000 0.000000 3500000 4000000 3960000 180000 -high_20 1.000000 0.000000 4000000 4500000 4180000 180000 -high_10 1.000000 0.000000 4000000 5000000 4360000 180000 -high_20 1.000000 0.000000 4500000 5000000 4680000 180000 -high_5 1.000000 0.000000 4000000 6000000 4720000 180000 -low_20 1.000000 0.000000 3000000 3500000 4860000 180000 -high_20 1.000000 0.000000 5000000 5500000 5180000 180000 -high_10 1.000000 0.000000 5000000 6000000 5360000 180000 -low_5 1.000000 0.000000 4000000 6000000 5400000 180000 -high_20 1.000000 0.000000 5500000 6000000 5680000 180000 -low_10 1.000000 0.000000 5000000 6000000 5760000 180000 -low_20 1.000000 0.000000 5500000 6000000 5940000 180000 -high_20 1.000000 0.000000 6000000 6500000 6180000 180000 -high_10 1.000000 0.000000 6000000 7000000 6360000 180000 -high_20 1.000000 0.000000 6500000 7000000 6680000 180000 -high_5 1.000000 0.000000 6000000 8000000 6720000 180000 -low_20 1.000000 0.000000 5000000 5500000 6840000 180000 -high_20 1.000000 0.000000 7000000 7500000 7180000 180000 -high_10 1.000000 0.000000 7000000 8000000 7360000 180000 -low_5 1.000000 0.000000 6000000 8000000 7380000 180000 -high_20 1.000000 0.000000 7500000 8000000 7680000 180000 -low_10 1.000000 0.000000 7000000 8000000 7740000 180000 -low_20 1.000000 0.000000 7500000 8000000 7920000 180000 -high_20 1.000000 0.000000 8000000 8500000 8180000 180000 -high_10 1.000000 0.000000 8000000 9000000 8360000 180000 -high_20 1.000000 0.000000 8500000 9000000 8680000 180000 -high_5 1.000000 0.000000 8000000 10000000 8720000 180000 -low_20 1.000000 0.000000 7000000 7500000 8820000 180000 -low_5 1.000000 0.000000 8000000 10000000 9000000 180000 -high_20 1.000000 0.000000 9000000 9500000 9180000 180000 -high_10 1.000000 0.000000 9000000 10000000 9360000 180000 -high_20 1.000000 0.000000 9500000 10000000 9680000 180000 -low_10 1.000000 0.000000 9000000 10000000 9720000 180000 -low_20 1.000000 0.000000 9500000 10000000 9900000 180000 -low_20 1.000000 0.000000 9000000 9500000 10080000 180000 -low_10 1.000000 0.000000 8000000 9000000 10260000 180000 -low_20 1.000000 0.000000 8500000 9000000 10440000 180000 -low_20 1.000000 0.000000 8000000 8500000 10620000 180000 -low_20 1.000000 0.000000 6500000 7000000 10800000 180000 -low_10 1.000000 0.000000 6000000 7000000 10980000 180000 -low_20 1.000000 0.000000 6000000 6500000 11160000 180000 -low_10 1.000000 0.000000 4000000 5000000 11340000 180000 -low_20 1.000000 0.000000 4500000 5000000 11520000 180000 -low_20 1.000000 0.000000 4000000 4500000 11700000 180000 -low_20 1.000000 0.000000 2500000 3000000 11880000 180000 -low_10 1.000000 0.000000 2000000 3000000 12060000 180000 -low_20 1.000000 0.000000 2000000 2500000 12240000 180000 -low_20 1.000000 0.000000 1000000 1500000 12420000 180000 -low_20 1.000000 0.000000 500000 1000000 12600000 180000 -low_10 1.000000 0.000000 0 1000000 12780000 180000 -low_20 1.000000 0.000000 0 500000 12960000 180000 diff --git a/TAO/examples/Simulator/Event_Supplier/svc.conf b/TAO/examples/Simulator/Event_Supplier/svc.conf deleted file mode 100644 index 43c6a486c92..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/svc.conf +++ /dev/null @@ -1,49 +0,0 @@ -# $Id$ -# -# This file contains a sample ACE_Service_Config configuration -# file specifying the strategy factories utilized by an application -# using TAO. There are currently only two possible factories: -# Client_Strategy_Factory and Server_Strategy_Factory. These names -# must be used as the second argument to their corresponding line, -# because that's what the ORB uses to find the desired factory. -# -# Note that there are two unordinary characteristics of the way *this* -# file is set up: -# - both client and server strategies are specified in the same -# file, which would only make sense for co-located clients & servers -# - both of the factories are actually sourced out of libTAO.so -# (TAO.DLL on Win32), and they would normally be in a separate -# dll from the TAO ORB Core. -# -# The options which can be passed to the Resource Factory are: -# -# -ORBresources -# where can be 'global' to specify globally-held resources, -# or 'tss' to specify thread-specific resources. -# -# The options which can be passed to the Client are: -# -# -# The options which can be passed to the Server are: -# -# -ORBconcurrency -# where can be 'thread-per-connection' to specify -# use of the ACE_Threaded_Strategy concurrency strategy, -# or 'reactive' to specify use of the ACE_Reactive_Strategy -# concurrency strategy. -# -# -ORBthreadflags -# specifies the default thread flags to use, where is a -# logical OR'ing of the flags THR_DETACHED, THR_BOUND, THR_NEW_LWP, -# THR_SUSPENDED, or THR_DAEMON. Note that not every flag may be valid -# on every platform. -# -# -ORBdemuxstrategy -# where can be one of 'dynamic', 'linear', 'active', or 'user', -# and specifies the type of object lookup strategy used internally. -# -ORBtablesize -# specifies the size of the object table -# -dynamic Resource_Factory Service_Object * TAO:_make_TAO_Resource_Factory() "-ORBresources global" -dynamic Client_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Client_Strategy_Factory() -dynamic Server_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Server_Strategy_Factory() "-ORBconcurrency reactive -ORBdemuxstrategy dynamic -ORBtablesize 128" diff --git a/TAO/examples/Simulator/NavWeap.idl b/TAO/examples/Simulator/NavWeap.idl deleted file mode 100644 index de695b14522..00000000000 --- a/TAO/examples/Simulator/NavWeap.idl +++ /dev/null @@ -1,54 +0,0 @@ -// $Id$ - -// ========================================================================================================= -// -// = FILE -// NavWeap.idl -// -// = DESCRIPTION -// Navigation and Weapon structs for the DOVE/EventService demo. - -// = AUTHOR -// Michael Kircher -// -// ========================================================================================================= - - -struct Navigation { - long position_latitude; - long position_longitude; - unsigned long altitude; - long heading; - long roll; - long pitch; - // common part - double utilization; - double overhead; - unsigned long arrival_time; - unsigned long deadline_time; - unsigned long completion_time; - unsigned long computation_time; -}; - - - -struct Weapons { - unsigned long number_of_weapons; - string weapon1_identifier; - unsigned long weapon1_status; - string weapon2_identifier; - unsigned long weapon2_status; - string weapon3_identifier; - unsigned long weapon3_status; - string weapon4_identifier; - unsigned long weapon4_status; - string weapon5_identifier; - unsigned long weapon5_status; - // common part - double utilization; - double overhead; - unsigned long arrival_time; - unsigned long deadline_time; - unsigned long completion_time; - unsigned long computation_time; -}; diff --git a/TAO/examples/Simulator/README b/TAO/examples/Simulator/README deleted file mode 100644 index 8720cfb5612..00000000000 --- a/TAO/examples/Simulator/README +++ /dev/null @@ -1,173 +0,0 @@ -$Id$ - -Documentation for the Simulator/DOVE demo - -Purpose: To show how the event service can be used to as a media to - transport monitoring events including data. - -Application: The events contain C++ structs with avionics information. - They are supllied by sensors of an avionic and are - consumed by an JAVA applet running on a different machine and/or - location. The collected metrics are displayed in - JAVA Beans. A object called DOVE Management Information - Base keeps track of all sent events. - -Implementation: A C++ Supplier pushes events containing a - navigation or weapons struct to the Event Service. - The Event Service dispatches the events to any number of - Consumers which are implemented in JAVA. The JAVA - consumer extracts the data of the structs and dispatches - it to various Visualization Components. - - -For more informations refer to: - $TAO_ROOT/docs/releasenotes/index.html - - -Requirements: - * C++ compiler - * Java JDK 1,1,x - * ACE/TAO environment, - * Visibroker 3.2 for Java - - -!!RELEASE CHANGES: - - the file make.bat is in this directory just for test purposes. - It is used to switch from the Visibroker environment to the JDK 1.2 - envrionment. So don't worry about it, you won't need it. - - -Parts of the Demo: - - * DOVE Browser (implemented in Java using Visibroker 3.2 for Java) - - * Event Supplier, can be seen as a monitored object, called - DOVE Application (implemented in C++ using TAO) - - * DOVE MIB, storing event data on persistent storage and keeping - track of statistical data (implemented in C++ using TAO) - -Files: - Common: - ss - restart Naming Service, connect the Event Service and - Scheduling service with this Naming Service - NavWeap.idl - IDL definition of the Weapons and Navigation struct - README - this readme file - - - Event Supplier: (in directory $TAO_ROOT/orbsvcs/tests/Simulator/Event_Supplier/) - Event_Sup.cpp - Event Supplier - Event_Sup.h - Event Supplier class definition - Makefile - Event Supplier Makefile - (Event_Con.cpp, Event_Con.h - Event Consumer for testing) - svc.conf - helper file - - - DOVEBrowswer: (in directory $TAO_ROOT/orbsvcs/tests/Simulator/DOVEBrowser/) - AnswerEvent.java - Having my own Events - AnswerListener.java - Listener for these Events - DataHandler.java - Base class for all Data Handlers - DemoCore.java - Core of the Demo to connect Observables with Observers - DemoObservable.java - Base class for Observables - DoubleVisComp.java - Visualization Component (will be a JavaBean) for Doubles - DOVEBrowser.java - Wrapper around DemoCore - NS_Resolve.java - Resolving the inital reference to the Naming Service - NavWeapDataHandler.java - Specialized Data Handler for Navigation and Weapon data - NavigationVisComp.java - Visualization Component (... JavaBean) for Navigation data - ObservablesDialog.java - Dialog window for connecting Observables with OBservers - Properties.java - constant definitons - PushConsumer.java - Event Service Push Consumer - PushConsumerFactory.java - Factory for the Consumer - Queue.java - Queue for the DoubleVisComp - VisComp.java - Base class for the Visualization Components - WeaponsVisComp.java - Visualization Component for Weapons - - - DOVE MIB: (in directory $TAO_ROOT/orbsvcs/tests/Simulator/DOVEMIB/) - DOVEMIB.[cpp,h] - Core routines, connection to the Event Channel - Node.[cpp,h] - Nodes used by the AnyAnalyser - AnyAnalyser.[cpp,h] - Anaylser for CORBA anys, storing the contained types on - persistent storage - NodeVisitor.h - base class definition of a Visitor - PrintVisistor.[cpp,h] - Able to print a given tree of type nodes, which is - generated by the Anyanalyser - - -Compiling: - Common: - "make sure that the following definition is in the - $TAO_ROOT/orbsvcs/orbsvcs/RtecEventComm.idl" - - struct EventData { - long x; - long y; - any any_value; - }; - - "compile $TAO_ROOT/orbsvcs/orbsvcs" - "compile $TAO_ROOT/orbsvcs/Event_Service" - "compile $TAO_ROOT/orbsvcs/Naming_Service" - "compile $TAO_ROOT/orbsvcs/Scheduling_Service" - - - - Supplier: - - cp ../NavWeap.idl . - - make - - - - - DOVE Browser: - cp ../NavWeap.idl . - cp $TAO_ROOT/orbsvcs/orbsvcs/CosNaming.idl . - cp $TAO_ROOT/orbsvcs/orbsvcs/CosTimeBase.idl . - cp $TAO_ROOT/orbsvcs/orbsvcs/RtecEventChannelAdmin.idl . - cp $TAO_ROOT/orbsvcs/orbsvcs/RtecEventComm.idl . - cp $TAO_ROOT/orbsvcs/orbsvcs/RtecScheduler.idl . - idl2java *.idl - - vbjc *.java - - - DOVE MIB: - cp ../NavWeap.idl . - - make - - -Starting: - Start in the following order on different ORB ports: - * Naming Service - * Scheduling Service - * Event Service - - Supplier: - Event_Sup -ORBport 10040 -f MLF.dat -m 1000 - - // -m 1000 for 1000 events sent by the supplier - // -f MLF.dat to read scheduling data from this file as input - - - DOVE Browser: - vbj DOVEBrowser - (also supported: vbj DOVEBrowser -ORBnameserviceior ) - - or - - gatekeeper - cd /visigenic/vbroker/lib - jar xf vbjorb.jar - jar xf vbjtools.jar - "setting the Naming Service IOR in the DOVEBrowser.html file" - appletviewer DOVEBrowser.html - - - - DOVE MIB: - DOVEMIB -ORBport 10041 -f myfile -m 100 - - // -m 100 for storing the next 100 events - // -f myfile for the name of the file in which it will be stored diff --git a/TAO/examples/Simulator/ss b/TAO/examples/Simulator/ss deleted file mode 100755 index 12177907b25..00000000000 --- a/TAO/examples/Simulator/ss +++ /dev/null @@ -1,85 +0,0 @@ -#!/bin/ksh -# $Id$ - -# =TITLE -# Restart script -# -# =AUTHOR -# Michael Kircher (mk1@cs.wustl.edu) -# -# =DESCRIPTION -# This script restarts the Naming, Scheduling and Event Service, -# if "clean" is specified as a parameter, then the old -# services are only killed and not restarted - -# save the old working dir -old_dir=$cwd -# get the user name -login=`whoami` -# get the user id -uid=`id | cut -c5-20 | cut -f1 -d"("` - -#### Set TAO_ROOT, if it wasn't set. -if [ ! "$TAO_ROOT" ]; then - if [ "$ACE_ROOT" ]; then - TAO_ROOT=$ACE_ROOT/TAO - else - echo $0: you must set ACE_ROOT or TAO_ROOT! - exit 1 - fi -fi - -echo // Killing the old services - -ps -ef | grep Service | grep $login | grep -v grep | cut -c10-17 > /tmp/pids$login - -if [ -s /tmp/pids$login ]; then - pids=`cat /tmp/pids$login` - kill $pids -fi - -# stop here if "ss clean" was called -if [ $1 ]; then - if [ $1 = "clean" ]; then - exit - fi -fi - -echo // Initializing the log file - -if [ -r /tmp/logfile_$login ]; then - rm /tmp/logfile_$login -fi - -echo // Logfile for the script "ss" which startes Name, Scheduling and Event Service > /tmp/logfile_$login - -nameserviceport=`expr 20023 + $uid` -schedulerserviceport=`expr 60023 + $uid` -eventserviceport=`expr 100023 + $uid` - -cd $TAO_ROOT/orbsvcs/Naming_Service -./Naming_Service -ORBport $nameserviceport >> /tmp/logfile_$login 2>&1 & - -sleep 1 - -IOR=`cat /tmp/logfile_$login | grep IOR | cut -c22-300 | cut -f1 -d">" ` - -echo // The IOR of the Naming Service: $IOR - -echo // Started Naming Service on port $nameserviceport - -cd $TAO_ROOT/orbsvcs/Scheduling_Service -./Scheduling_Service -ORBnameserviceior $IOR -ORBport $schedulerserviceport >> /tmp/logfile_$login 2>&1 & - -sleep 1 - -echo // Started Scheduling Service on port $schedulerserviceport - -cd $TAO_ROOT/orbsvcs/Event_Service -./Event_Service -ORBnameserviceior $IOR -ORBport $eventserviceport >> /tmp/logfile_$login 2>&1 & - -cd $old_dir -echo // Started Event Service on port $eventserviceport - -echo "// Enjoy the use ;-)" -ps -ef | grep Service | grep -v grep diff --git a/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.cpp b/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.cpp deleted file mode 100644 index 4b226871cff..00000000000 --- a/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.cpp +++ /dev/null @@ -1,220 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// orbsvcs/Concurrecy_Service/Concurrency_Service -// -// = FILENAME -// Concurrency_Service.cpp -// -// = DESCRIPTION -// This class implements a Concurrency_Service object. -// -// = AUTHORS -// Torben Worm -// -// ============================================================================ - -#include "Concurrency_Service.h" - -// Default Constructor. - -Concurrency_Service::Concurrency_Service (void) - : use_naming_service_ (1), - ior_output_file_ (0) -{ - ACE_DEBUG ((LM_DEBUG, - "Concurrency_Service::Concurrency_Service (void)\n")); -} - -// Constructor taking command-line arguments. - -Concurrency_Service::Concurrency_Service (int argc, - char** argv, - CORBA::Environment& _env) -{ - ACE_DEBUG ((LM_DEBUG, - "Concurrency_Service::Concurrency_Service (...)\n")); - this->init (argc, argv, _env); -} - -int -Concurrency_Service::parse_args (void) -{ - ACE_DEBUG ((LM_DEBUG, - "Concurrency_Service::parse_args\n")); - - ACE_Get_Opt get_opts (argc_, argv_, "do:s"); - int c; - - while ((c = get_opts ()) != -1) - switch (c) - { - case 'd': // debug flag - TAO_debug_level++; - break; - case 'o': // output the IOR to a file - this->ior_output_file_ = ACE_OS::fopen (get_opts.optarg, "w"); - if (this->ior_output_file_ == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Unable to open %s for writing: %p\n", - get_opts.optarg), -1); - break; - case 's': - this->use_naming_service_ = 0; - break; - default: - ACE_ERROR_RETURN ((LM_ERROR, - "usage: %s" - " [-d]" - " [-o] " - "\n", - argv_[0]), - 1); - } - // Indicates sucessfull persing of command line. - return 0; -} - -// Initialize the state of the Concurrency_Service object. - -int -Concurrency_Service::init (int argc, - char **argv, - CORBA::Environment &_env) -{ - ACE_DEBUG ((LM_DEBUG, - "Concurrency_Service::init\n")); - if (this->orb_manager_.init_child_poa (argc, - argv, - "child_poa", - _env) == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "%p\n", - "init_child_poa"), - -1); - TAO_CHECK_ENV_RETURN (_env,-1); - - this->argc_ = argc; - this->argv_ = argv; - - if (this->parse_args ()!=0) - ACE_ERROR_RETURN ((LM_ERROR, - "Could not parse command line\n"), - -1); - CORBA::String_var str = - this->orb_manager_.activate (this->my_concurrency_server_.GetLockSetFactory (), - _env); - ACE_DEBUG ((LM_DEBUG, - "The IOR is: <%s>\n", - str.in ())); - - if (this->ior_output_file_) - { - ACE_OS::fprintf (this->ior_output_file_, "%s", str.in ()); - ACE_OS::fclose (this->ior_output_file_); - } - - if (this->use_naming_service_) - return this->init_naming_service (_env); - - return 0; -} - -int -Concurrency_Service::init_naming_service (CORBA::Environment &_env) -{ - ACE_DEBUG ((LM_DEBUG, "Concurrency_Service::init_naming_service (...)\n")); - CORBA::ORB_var orb; - PortableServer::POA_var child_poa; - - orb = this->orb_manager_.orb (); - child_poa = this->orb_manager_.child_poa (); - - int result = this->my_name_server_.init (orb.in (), - child_poa.in ()); - if (result == -1) - return result; - lockset_factory_ = - this->my_concurrency_server_.GetLockSetFactory ()->_this (_env); - TAO_CHECK_ENV_RETURN (_env, -1); - - CosNaming::Name concurrency_context_name (1); - concurrency_context_name.length (1); - concurrency_context_name[0].id = CORBA::string_dup ("CosConcurrency"); - - this->concurrency_context_ = - this->my_name_server_->bind_new_context (concurrency_context_name, - _env); - TAO_CHECK_ENV_RETURN (_env, -1); - - CosNaming::Name lockset_name (1); - lockset_name.length (1); - lockset_name[0].id = CORBA::string_dup ("LockSetFactory"); - this->concurrency_context_->bind (lockset_name, - lockset_factory_.in (), - _env); - TAO_CHECK_ENV_RETURN (_env, -1); - return 0; -} - -// Run the ORB event loop. - -int -Concurrency_Service::run (CORBA_Environment& _env) -{ - ACE_DEBUG ((LM_DEBUG, - "Concurrency_Service::run (...)\n")); - - if (this->orb_manager_.run (_env) == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "Concurrency_Service::run"), - -1); - return 0; -} - -// Destructor. - -Concurrency_Service::~Concurrency_Service (void) -{ - ACE_DEBUG ((LM_DEBUG, - "Concurrency_Service::~Concurrency_Service (void)\n")); -} - -int -main (int argc, char ** argv) -{ - Concurrency_Service concurrency_service; - - ACE_DEBUG ((LM_DEBUG, - "\n \t Concurrency Service:SERVER \n \n")); - - TAO_TRY - { - if (concurrency_service.init (argc, argv, TAO_TRY_ENV) == -1) - return 1; - else - { - concurrency_service.run (TAO_TRY_ENV); - TAO_CHECK_ENV; - } - } - - TAO_CATCH (CORBA::SystemException, sysex) - { - ACE_UNUSED_ARG (sysex); - TAO_TRY_ENV.print_exception ("System Exception"); - return -1; - } - TAO_CATCH (CORBA::UserException, userex) - { - ACE_UNUSED_ARG (userex); - TAO_TRY_ENV.print_exception ("User Exception"); - return -1; - } - - TAO_ENDTRY; - return 0; -} - diff --git a/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.dsp b/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.dsp deleted file mode 100644 index 360ae034352..00000000000 --- a/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.dsp +++ /dev/null @@ -1,104 +0,0 @@ -# Microsoft Developer Studio Project File - Name="Concurrency_Service" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 5.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=Concurrency_Service - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "Concurrency_Service.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "Concurrency_Service.mak"\ - CFG="Concurrency_Service - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "Concurrency_Service - Win32 Release" (based on\ - "Win32 (x86) Console Application") -!MESSAGE "Concurrency_Service - Win32 Debug" (based on\ - "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "Concurrency_Service - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Release" -# PROP Intermediate_Dir "Release" -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 - -!ELSEIF "$(CFG)" == "Concurrency_Service - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Debug" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I ".." /I "..\.." /I "..\..\.." /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D TAO_ORBSVCS_HAS_DLL=1 /FD /c -# SUBTRACT CPP /YX -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept -# ADD LINK32 orbsvcs.lib TAO.lib aced.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\orbsvcs" /libpath:"..\..\tao" /libpath:"..\..\..\ace" - -!ENDIF - -# Begin Target - -# Name "Concurrency_Service - Win32 Release" -# Name "Concurrency_Service - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter ".cpp" -# Begin Source File - -SOURCE=.\Concurrency_Service.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter ".h" -# Begin Source File - -SOURCE=.\Concurrency_Service.h -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.dsw b/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.dsw deleted file mode 100644 index a9cf51b0f96..00000000000 --- a/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.dsw +++ /dev/null @@ -1,29 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 5.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "Concurrency_Service"=.\Concurrency_Service.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.h b/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.h deleted file mode 100644 index 4154e64e5a7..00000000000 --- a/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.h +++ /dev/null @@ -1,101 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// orbsvcs/Concurrency_Service/Concurency_Service -// -// = FILENAME -// Concurrency_Service.h -// -// = DESCRIPTION -// This class implements a subset of the functionality of the -// CORBA Concurrency Service. -// -// = AUTHORS -// Torben Worm -// -// ============================================================================ - -#if !defined (_CONCURRENCY_SERVICE_H) -#define _CONCURRENCY_SERVICE_H - -#include "ace/Get_Opt.h" -#include "ace/Log_Msg.h" -#include "tao/TAO.h" -#include "orbsvcs/Concurrency/Concurrency_Utils.h" -#include "orbsvcs/Naming/Naming_Utils.h" - -class Concurrency_Service : public TAO_ORB_Manager -{ - // = TITLE - // Defines a class that encapsulates the implementation of the - // concurrency service. - // = DESCRIPTION - // This class uses the TAO_ORB_Manager, the TAO_Naming_Server, and - // the TAO_Concurrency_Server classes to implement a server for - // the concurrency service. -public: - // = Initialization and termination methods. - Concurrency_Service (void); - // Default Constructor. - - Concurrency_Service (int argc, - char **argv, - CORBA::Environment &env); - // Constructor taking the command-line arguments. - - ~Concurrency_Service (void); - // Destructor. - - int init (int argc, - char **argv, - CORBA::Environment &env); - // Initialize the Concurrency Service with the arguments. - - int run (CORBA_Environment &env); - // Run the Concurrency_Service. - -private: - int parse_args (void); - // Parses the commandline arguments. - - int init_naming_service (CORBA::Environment &env); - // Initialize the name server and register the concurency server - // factory with it. Maybe later it will be convinient to register - // the individual lock sets with the naming service. At present the - // clients must keep track of the reference and pass 'by hand' - - int use_naming_service_; - // Flag to tell wheter the naming service will be used. - - FILE *ior_output_file_; - // File to output the concurrency server IOR. - - TAO_ORB_Manager orb_manager_; - // The ORB manager - - TAO_Naming_Server my_name_server_; - // An instance of the name server used for registering the factory - // objects. - - TAO_Concurrency_Server my_concurrency_server_; - // An instance of the concurrency server. - - CosConcurrencyControl::LockSetFactory_var lockset_factory_; - // Factory var to register with the naming service. - - CosNaming::NamingContext_var concurrency_context_; - // Naming context for the concurrency service. - - CosNaming::NamingContext_var naming_context_; - // Naming context for the naming service. - - int argc_; - // Number of commandline arguments. - - char **argv_; - // Commandline arguments. -}; - -#endif /* _CONCURRENCY_SERVICE_H */ diff --git a/TAO/orbsvcs/Concurrency_Service/Makefile b/TAO/orbsvcs/Concurrency_Service/Makefile deleted file mode 100644 index 034bc400b5c..00000000000 --- a/TAO/orbsvcs/Concurrency_Service/Makefile +++ /dev/null @@ -1,47 +0,0 @@ -#---------------------------------------------------------------------------- -# -# $Id$ -# -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -BIN = Concurrency_Service - -SVR_SRCS=Concurrency_Service.cpp - -LDLIBS = -lorbsvcs -lTAO - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -BUILD = $(VLIB) $(VSHLIB) $(SHLIBA) $(VBIN) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -ifndef TAO_ROOT - TAO_ROOT = $(ACE_ROOT)/TAO -endif - -#TSS_ORB_FLAG = #-DTAO_HAS_TSS_ORBCORE - -LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao -CPPFLAGS += -I$(TAO_ROOT)/orbsvcs -I$(TAO_ROOT) -I$(TAO_ROOT)/tao/compat $(TSS_ORB_FLAG)#-H - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - - - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/orbsvcs/Concurrency_Service/README b/TAO/orbsvcs/Concurrency_Service/README deleted file mode 100644 index 007d4fb7b51..00000000000 --- a/TAO/orbsvcs/Concurrency_Service/README +++ /dev/null @@ -1,129 +0,0 @@ -$Id$ - -This file describes how to run the TAO Concurrency Service and its -accompanying tests. In addition, it describes the locations of the -files that make up the service and tests. For a general description -of the directory structure for the services please consult - - $TAO_ROOT/docs/orbsvcs.html - ----------------------------------------- - -HOW TO RUN THE SERVICE - -The Concurrency Service server runs in a thread-per-connection -concurrency model, which is specified by the svc.conf file. This -model is necessary to enable the server to block in a dedicated -thread, i.e., one for each client. The concurrency service will not -run in the reactive model. - -The server itself is located in the - -$TAO_ROOT/orbsvcs/Concurrency_Service - -directory. - -The server accepts the folowing options: - - usage: ./Concurrency_Service [-d] [-o] - [-d] is the debug option - [-o] outputs the IOR of the lock set factory - to the file - [-s] Prevents the concurency server from using the naming server - -The lock set factory is registered in the naming service in the -CosConcurrency context with the name "LockSetFactory". - ----------------------------------------- - -THE IMPLEMENTATION - -The implementation of the concurrency service objects is located in -the $TAO_ROOT/orbsvcs/orbsvcs/Concurrency directory and consists of -the following files: - - CC_LockSet.{h,cpp} Implementation of the lock set. At present - there is only one implementation of the lock set which - implements multiple possesion semantics for both - transactional (which is not otherwise supported) and - non-transactional clients. Please see the comments in - the CC_LockSet.h file for further details. - - CC_LockSetFactory.{h,cpp} Iplementation of the lock set - factory - - Concurrency_Utils.{h,cpp} Wrapper around the concurrency - server. - -The current implementation does not support transactions. If you'd -like to add support for transactions to TAO please let us know. - ----------------------------------------- - -THE TESTS - -The tests are located in the $TAO_ROOT/orbsvcs/tests/Concurrency -directory. There are two types of tests: - - . A simple test -- which tests that it is possible to create - locks and lock them in all the different lock modes - - . A more extended test which requires two (or more) - processes. - -The client accepts the following options: - - usage: ./CC_client [-b] [-d] - [-c] - [-e] - [-f cc_factory-obj-ref-key-file] - [-k cc-obj-ref-key] [-x] [-s] - - . The [-b] option runs the basic tests. - . The [-c] option runs a test script against the concurrency - service server. This option is described in more detail in - the $TAO_ROOT/orbsvcs/tests/Concurrency/README file. It is - the intent that this type of testing will be used instead of - the [-b] and [-e] tests. These tests are retained for - backwards compatibility. - . The [-d] option is the debug option. - . The [-e] option is for running one of the extended tests. The - format of the argument to the -e option is - where test is the name of the test (at present test = - {1,2,3}) and arg1 and arg2 are arguments to the test. See - the example below. - - . The [-f] option reads the factory IOR from a file. This is - currently not supported. - - . The [-k] option takes the factory IOR as argument on the - commandline. This is currently not supported. - - . The [-x] option tells the server to shut down - gracefully. Currently this has no effect. - - . The [-s] option tells the test not to use the naming - service. This is currently not supported. - ----------------------------------------- - -EXAMPLE TEST RUN - - Window-1> ./Concurrency_Service -d - Window-2> ./CC_client -b - Window-2> ./CC_client -e '1;Name' - Window-2> ./CC_client -e '2;Name' - Window-3> ./CC_client -e '3;Name' - -NOTE: It seems that there is a problem using the naming service the - first time the client is run. This error does not appear if the - environment variable 'NameService' is set to the IOR of the naming - service (the IOR of the naming service is printed when the - Concurrency_Control server is started). - ----------------------------------------- - -CONTACT POINT - -If you have any questions about this service, please contact Torben -Worm at . diff --git a/TAO/orbsvcs/Concurrency_Service/svc.conf b/TAO/orbsvcs/Concurrency_Service/svc.conf deleted file mode 100644 index da10b90ce7a..00000000000 --- a/TAO/orbsvcs/Concurrency_Service/svc.conf +++ /dev/null @@ -1,49 +0,0 @@ -# $Id$ -# -# This file contains a sample ACE_Service_Config configuration -# file specifying the strategy factories utilized by an application -# using TAO. There are currently only two possible factories: -# Client_Strategy_Factory and Server_Strategy_Factory. These names -# must be used as the second argument to their corresponding line, -# because that's what the ORB uses to find the desired factory. -# -# Note that there are two unordinary characteristics of the way *this* -# file is set up: -# - both client and server strategies are specified in the same -# file, which would only make sense for co-located clients & servers -# - both of the factories are actually sourced out of libTAO.so -# (TAO.DLL on Win32), and they would normally be in a separate -# dll from the TAO ORB Core. -# -# The options which can be passed to the Resource Factory are: -# -# -ORBresources -# where can be 'global' to specify globally-held resources, -# or 'tss' to specify thread-specific resources. -# -# The options which can be passed to the Client are: -# -# -# The options which can be passed to the Server are: -# -# -ORBconcurrency -# where can be 'thread-per-connection' to specify -# use of the ACE_Threaded_Strategy concurrency strategy, -# or 'reactive' to specify use of the ACE_Reactive_Strategy -# concurrency strategy. -# -# -ORBthreadflags -# specifies the default thread flags to use, where is a -# logical OR'ing of the flags THR_DETACHED, THR_BOUND, THR_NEW_LWP, -# THR_SUSPENDED, or THR_DAEMON. Note that not every flag may be valid -# on every platform. -# -# -ORBdemuxstrategy -# where can be one of 'dynamic', 'linear', 'active', or 'user', -# and specifies the type of object lookup strategy used internally. -# -ORBtablesize -# specifies the size of the object table -# -dynamic Resource_Factory Service_Object * TAO:_make_TAO_Resource_Factory() "-ORBresources global" -dynamic Client_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Client_Strategy_Factory() -dynamic Server_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Server_Strategy_Factory() "-ORBconcurrency thread-per-connection -ORBdemuxstrategy dynamic -ORBtablesize 128" diff --git a/TAO/orbsvcs/Dump_Schedule/Dump_Schedule.cpp b/TAO/orbsvcs/Dump_Schedule/Dump_Schedule.cpp deleted file mode 100644 index 9c6f3a46b3d..00000000000 --- a/TAO/orbsvcs/Dump_Schedule/Dump_Schedule.cpp +++ /dev/null @@ -1,91 +0,0 @@ -// $Id$ - -#include "ace/Sched_Params.h" -#include "ace/Get_Opt.h" -#include "tao/corba.h" - -#include "orbsvcs/CosNamingC.h" -#include "orbsvcs/Scheduler_Factory.h" - -// This program dumps the results of one scheduling in a C++ file. - -int -main (int argc, char *argv[]) -{ - TAO_TRY - { - // Initialize ORB. - CORBA::ORB_var orb = - CORBA::ORB_init (argc, argv, "internet", TAO_TRY_ENV); - TAO_CHECK_ENV; - - CORBA::Object_var poa_object = - orb->resolve_initial_references("RootPOA"); - if (CORBA::is_nil(poa_object.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize the POA.\n"), - 1); - - PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (poa_object.in(), TAO_TRY_ENV); - TAO_CHECK_ENV; - - PortableServer::POAManager_var poa_manager = - root_poa->the_POAManager (TAO_TRY_ENV); - TAO_CHECK_ENV; - - CORBA::Object_var naming_obj = - orb->resolve_initial_references ("NameService"); - if (CORBA::is_nil(naming_obj.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize the POA.\n"), - 1); - - CosNaming::NamingContext_var naming_context = - CosNaming::NamingContext::_narrow (naming_obj.in (), TAO_TRY_ENV); - TAO_CHECK_ENV; - - ACE_Scheduler_Factory::use_config (naming_context.in ()); - - RtecScheduler::RT_Info_Set_var infos; - -#if defined (__SUNPRO_CC) - // Sun C++ 4.2 warns with the code below: - // Warning (Anachronism): Temporary used for non-const - // reference, now obsolete. - // Note: Type "CC -migration" for more on anachronisms. - // Warning (Anachronism): The copy constructor for argument - // infos of type RtecScheduler::RT_Info_Set_out should take - // const RtecScheduler::RT_Info_Set_out&. - // But, this code is not CORBA conformant, because users should - // not define instances of _out types. - - RtecScheduler::RT_Info_Set_out infos_out (infos); - ACE_Scheduler_Factory::server ()->compute_scheduling - (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO, - ACE_SCOPE_THREAD), - ACE_Sched_Params::priority_max (ACE_SCHED_FIFO, - ACE_SCOPE_THREAD), - infos_out, TAO_TRY_ENV); -#else /* ! __SUNPRO_CC */ - ACE_Scheduler_Factory::server ()->compute_scheduling - (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO, - ACE_SCOPE_THREAD), - ACE_Sched_Params::priority_max (ACE_SCHED_FIFO, - ACE_SCOPE_THREAD), - infos.out (), TAO_TRY_ENV); -#endif /* ! __SUNPRO_CC */ - - TAO_CHECK_ENV; - - ACE_Scheduler_Factory::dump_schedule (infos.in (), - "Scheduler_Runtime.cpp"); - } - TAO_CATCH (CORBA::SystemException, sys_ex) - { - TAO_TRY_ENV.print_exception ("SYS_EX"); - } - TAO_ENDTRY; - - return 0; -} diff --git a/TAO/orbsvcs/Dump_Schedule/Dump_Schedule.dsp b/TAO/orbsvcs/Dump_Schedule/Dump_Schedule.dsp deleted file mode 100644 index adadaf485c2..00000000000 --- a/TAO/orbsvcs/Dump_Schedule/Dump_Schedule.dsp +++ /dev/null @@ -1,99 +0,0 @@ -# Microsoft Developer Studio Project File - Name="Dump_Schedule" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 5.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=Dump_Schedule - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "Dump_Schedule.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "Dump_Schedule.mak" CFG="Dump_Schedule - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "Dump_Schedule - Win32 Release" (based on\ - "Win32 (x86) Console Application") -!MESSAGE "Dump_Schedule - Win32 Debug" (based on\ - "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "Dump_Schedule - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Release" -# PROP Intermediate_Dir "Release" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /MD /W3 /GX /O2 /I ".." /I "..\.." /I "..\..\.." /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D TAO_ORBSVCS_HAS_DLL=1 /YX /FD /c -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 orbsvcs.lib TAO.lib ace.lib /nologo /subsystem:console /machine:I386 /libpath:"..\orbsvcs" /libpath:"..\..\tao" /libpath:"..\..\..\ace" - -!ELSEIF "$(CFG)" == "Dump_Schedule - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Debug" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I ".." /I "..\.." /I "..\..\.." /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D TAO_ORBSVCS_HAS_DLL=1 /YX /FD /c -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept -# ADD LINK32 orbsvcs.lib TAO.lib aced.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\orbsvcs" /libpath:"..\..\tao" /libpath:"..\..\..\ace" - -!ENDIF - -# Begin Target - -# Name "Dump_Schedule - Win32 Release" -# Name "Dump_Schedule - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Dump_Schedule.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "" -# End Group -# End Target -# End Project diff --git a/TAO/orbsvcs/Dump_Schedule/Dump_Schedule.dsw b/TAO/orbsvcs/Dump_Schedule/Dump_Schedule.dsw deleted file mode 100644 index 7ac8698103e..00000000000 --- a/TAO/orbsvcs/Dump_Schedule/Dump_Schedule.dsw +++ /dev/null @@ -1,29 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 5.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "Dump_Schedule"=.\Dump_Schedule.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/orbsvcs/Dump_Schedule/Makefile b/TAO/orbsvcs/Dump_Schedule/Makefile deleted file mode 100644 index 5d969d3f5b0..00000000000 --- a/TAO/orbsvcs/Dump_Schedule/Makefile +++ /dev/null @@ -1,48 +0,0 @@ -# $Id$ - -BIN = Dump_Schedule -BUILD = $(BIN) - -DUMP_SRCS = \ - Dump_Schedule.cpp - -LSRC = $(DUMP_SRCS) - -SCHEDULE_OBJS=$(SCHEDULE_SRCS:.cpp=.o) -DUMP_OBJS=$(DUMP_SRCS:.cpp=.o) - -LDLIBS = -lorbsvcs -lTAO -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -#include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -ifndef TAO_ROOT -TAO_ROOT = $(ACE_ROOT)/TAO -endif -TSS_ORB_FLAG = #-DTAO_HAS_TSS_ORBCORE -LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao -CPPFLAGS += -I$(TAO_ROOT)/orbsvcs -I$(TAO_ROOT) -I$(TAO_ROOT)/tao/compat $(TSS_ORB_FLAG)#-H - -Dump_Schedule: $(addprefix $(VDIR),$(DUMP_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - - - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/orbsvcs/Dump_Schedule/svc.conf b/TAO/orbsvcs/Dump_Schedule/svc.conf deleted file mode 100644 index 43c6a486c92..00000000000 --- a/TAO/orbsvcs/Dump_Schedule/svc.conf +++ /dev/null @@ -1,49 +0,0 @@ -# $Id$ -# -# This file contains a sample ACE_Service_Config configuration -# file specifying the strategy factories utilized by an application -# using TAO. There are currently only two possible factories: -# Client_Strategy_Factory and Server_Strategy_Factory. These names -# must be used as the second argument to their corresponding line, -# because that's what the ORB uses to find the desired factory. -# -# Note that there are two unordinary characteristics of the way *this* -# file is set up: -# - both client and server strategies are specified in the same -# file, which would only make sense for co-located clients & servers -# - both of the factories are actually sourced out of libTAO.so -# (TAO.DLL on Win32), and they would normally be in a separate -# dll from the TAO ORB Core. -# -# The options which can be passed to the Resource Factory are: -# -# -ORBresources -# where can be 'global' to specify globally-held resources, -# or 'tss' to specify thread-specific resources. -# -# The options which can be passed to the Client are: -# -# -# The options which can be passed to the Server are: -# -# -ORBconcurrency -# where can be 'thread-per-connection' to specify -# use of the ACE_Threaded_Strategy concurrency strategy, -# or 'reactive' to specify use of the ACE_Reactive_Strategy -# concurrency strategy. -# -# -ORBthreadflags -# specifies the default thread flags to use, where is a -# logical OR'ing of the flags THR_DETACHED, THR_BOUND, THR_NEW_LWP, -# THR_SUSPENDED, or THR_DAEMON. Note that not every flag may be valid -# on every platform. -# -# -ORBdemuxstrategy -# where can be one of 'dynamic', 'linear', 'active', or 'user', -# and specifies the type of object lookup strategy used internally. -# -ORBtablesize -# specifies the size of the object table -# -dynamic Resource_Factory Service_Object * TAO:_make_TAO_Resource_Factory() "-ORBresources global" -dynamic Client_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Client_Strategy_Factory() -dynamic Server_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Server_Strategy_Factory() "-ORBconcurrency reactive -ORBdemuxstrategy dynamic -ORBtablesize 128" diff --git a/TAO/orbsvcs/Event_Service/Event_Service.cpp b/TAO/orbsvcs/Event_Service/Event_Service.cpp deleted file mode 100644 index c7827794ca5..00000000000 --- a/TAO/orbsvcs/Event_Service/Event_Service.cpp +++ /dev/null @@ -1,117 +0,0 @@ -// -// $Id$ -// - -#include "ace/Get_Opt.h" -#include "tao/corba.h" - -#include "orbsvcs/CosNamingC.h" -#include "orbsvcs/Scheduler_Factory.h" -#include "orbsvcs/Event_Utilities.h" -#include "orbsvcs/Event/Event_Channel.h" - -const char* service_name = "EventService"; - -int -parse_args (int argc, char *argv []) -{ - ACE_Get_Opt get_opt (argc, argv, "n:"); - int opt; - - while ((opt = get_opt ()) != EOF) - { - switch (opt) - { - case 'n': - service_name = get_opt.optarg; - break; - case '?': - default: - ACE_DEBUG ((LM_DEBUG, - "Usage: %s " - "-n service_name " - "\n", - argv[0])); - return -1; - } - } - - return 0; -} - - -int main (int argc, char *argv[]) -{ - TAO_TRY - { - // Initialize ORB. - CORBA::ORB_var orb = - CORBA::ORB_init (argc, argv, "internet", TAO_TRY_ENV); - TAO_CHECK_ENV; - - if (parse_args (argc, argv) == -1) - return 1; - - CORBA::Object_var poa_object = - orb->resolve_initial_references("RootPOA"); - if (CORBA::is_nil (poa_object.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize the POA.\n"), - 1); - - PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (poa_object.in (), TAO_TRY_ENV); - TAO_CHECK_ENV; - - PortableServer::POAManager_var poa_manager = - root_poa->the_POAManager (TAO_TRY_ENV); - TAO_CHECK_ENV; - - CORBA::Object_var naming_obj = - orb->resolve_initial_references ("NameService"); - if (CORBA::is_nil (naming_obj.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize the Naming Service.\n"), - 1); - - CosNaming::NamingContext_var naming_context = - CosNaming::NamingContext::_narrow (naming_obj.in (), TAO_TRY_ENV); - TAO_CHECK_ENV; - - ACE_Scheduler_Factory::use_config (naming_context.in ()); - - // Register Event_Service with Naming Service. - ACE_EventChannel ec_impl; - - RtecEventChannelAdmin::EventChannel_var ec = - ec_impl._this (TAO_TRY_ENV); - TAO_CHECK_ENV; - - CORBA::String_var str = - orb->object_to_string (ec.in (), TAO_TRY_ENV); - - ACE_DEBUG ((LM_DEBUG, "The EC IOR is <%s>\n", str.in ())); - - CosNaming::Name channel_name (1); - channel_name.length (1); - channel_name[0].id = CORBA::string_dup (service_name); - naming_context->bind (channel_name, ec.in (), TAO_TRY_ENV); - TAO_CHECK_ENV; - - poa_manager->activate (TAO_TRY_ENV); - TAO_CHECK_ENV; - - ACE_DEBUG ((LM_DEBUG, "running event service\n")); - if (orb->run () == -1) - ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "run"), 1); - - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("EC"); - } - TAO_ENDTRY; - - - return 0; -} diff --git a/TAO/orbsvcs/Event_Service/Event_Service.dsp b/TAO/orbsvcs/Event_Service/Event_Service.dsp deleted file mode 100644 index b2cccaa3eee..00000000000 --- a/TAO/orbsvcs/Event_Service/Event_Service.dsp +++ /dev/null @@ -1,147 +0,0 @@ -# Microsoft Developer Studio Project File - Name="Event_Service" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 5.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=Event_Service - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "Event_Service.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "Event_Service.mak" CFG="Event_Service - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "Event_Service - Win32 Release" (based on\ - "Win32 (x86) Console Application") -!MESSAGE "Event_Service - Win32 Debug" (based on\ - "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "Event_Service - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Release" -# PROP Intermediate_Dir "Release" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /MD /W3 /GX /O2 /I ".." /I "..\.." /I "..\..\.." /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D TAO_ORBSVCS_HAS_DLL=1 /YX /FD /c -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 orbsvcs.lib TAO.lib ace.lib /nologo /subsystem:console /machine:I386 /libpath:"..\orbsvcs" /libpath:"..\..\tao" /libpath:"..\..\..\ace" - -!ELSEIF "$(CFG)" == "Event_Service - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Debug" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I ".." /I "..\.." /I "..\..\.." /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D TAO_ORBSVCS_HAS_DLL=1 /YX /FD /c -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept -# ADD LINK32 orbsvcs.lib TAO.lib aced.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\orbsvcs" /libpath:"..\..\tao" /libpath:"..\..\..\ace" - -!ENDIF - -# Begin Target - -# Name "Event_Service - Win32 Release" -# Name "Event_Service - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Event_Service.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\BCU.h -# End Source File -# Begin Source File - -SOURCE=.\CORBA_Utils_T.h -# End Source File -# Begin Source File - -SOURCE=.\Debug_Macros.h -# End Source File -# Begin Source File - -SOURCE=.\Dispatching_Modules.h -# End Source File -# Begin Source File - -SOURCE=.\Event_Channel.h -# End Source File -# Begin Source File - -SOURCE=.\Fast_Reactor.h -# End Source File -# Begin Source File - -SOURCE=.\GPlot_File.h -# End Source File -# Begin Source File - -SOURCE=.\Local_ESTypes.h -# End Source File -# Begin Source File - -SOURCE=.\Memory_Pools.h -# End Source File -# Begin Source File - -SOURCE=.\ReactorTask.h -# End Source File -# Begin Source File - -SOURCE=.\RT_Task.h -# End Source File -# Begin Source File - -SOURCE=.\Task_Manager.h -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/orbsvcs/Event_Service/Event_Service.dsw b/TAO/orbsvcs/Event_Service/Event_Service.dsw deleted file mode 100644 index 2b2901a9725..00000000000 --- a/TAO/orbsvcs/Event_Service/Event_Service.dsw +++ /dev/null @@ -1,29 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 5.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "Event_Service"=.\Event_Service.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/orbsvcs/Event_Service/Makefile b/TAO/orbsvcs/Event_Service/Makefile deleted file mode 100644 index 0073d3534f9..00000000000 --- a/TAO/orbsvcs/Event_Service/Makefile +++ /dev/null @@ -1,45 +0,0 @@ -# -# $Id$ -# - -BIN = Event_Service -BUILD = $(BIN) - -LSRC = \ - Event_Service.cpp \ - -ES_OBJS=$(LSRC:.cpp=.o) - -LDLIBS = -lorbsvcs -lTAO - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -#include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -ifndef TAO_ROOT -TAO_ROOT = $(ACE_ROOT)/TAO -endif -TSS_ORB_FLAG = #-DTAO_HAS_TSS_ORBCORE -LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao -CPPFLAGS += -I$(TAO_ROOT)/orbsvcs -I$(TAO_ROOT) -I$(TAO_ROOT)/tao/compat $(TSS_ORB_FLAG)#-H - -Event_Service: $(addprefix $(VDIR),$(ES_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - - - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/orbsvcs/Event_Service/svc.conf b/TAO/orbsvcs/Event_Service/svc.conf deleted file mode 100644 index 43c6a486c92..00000000000 --- a/TAO/orbsvcs/Event_Service/svc.conf +++ /dev/null @@ -1,49 +0,0 @@ -# $Id$ -# -# This file contains a sample ACE_Service_Config configuration -# file specifying the strategy factories utilized by an application -# using TAO. There are currently only two possible factories: -# Client_Strategy_Factory and Server_Strategy_Factory. These names -# must be used as the second argument to their corresponding line, -# because that's what the ORB uses to find the desired factory. -# -# Note that there are two unordinary characteristics of the way *this* -# file is set up: -# - both client and server strategies are specified in the same -# file, which would only make sense for co-located clients & servers -# - both of the factories are actually sourced out of libTAO.so -# (TAO.DLL on Win32), and they would normally be in a separate -# dll from the TAO ORB Core. -# -# The options which can be passed to the Resource Factory are: -# -# -ORBresources -# where can be 'global' to specify globally-held resources, -# or 'tss' to specify thread-specific resources. -# -# The options which can be passed to the Client are: -# -# -# The options which can be passed to the Server are: -# -# -ORBconcurrency -# where can be 'thread-per-connection' to specify -# use of the ACE_Threaded_Strategy concurrency strategy, -# or 'reactive' to specify use of the ACE_Reactive_Strategy -# concurrency strategy. -# -# -ORBthreadflags -# specifies the default thread flags to use, where is a -# logical OR'ing of the flags THR_DETACHED, THR_BOUND, THR_NEW_LWP, -# THR_SUSPENDED, or THR_DAEMON. Note that not every flag may be valid -# on every platform. -# -# -ORBdemuxstrategy -# where can be one of 'dynamic', 'linear', 'active', or 'user', -# and specifies the type of object lookup strategy used internally. -# -ORBtablesize -# specifies the size of the object table -# -dynamic Resource_Factory Service_Object * TAO:_make_TAO_Resource_Factory() "-ORBresources global" -dynamic Client_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Client_Strategy_Factory() -dynamic Server_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Server_Strategy_Factory() "-ORBconcurrency reactive -ORBdemuxstrategy dynamic -ORBtablesize 128" diff --git a/TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.cpp b/TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.cpp deleted file mode 100644 index 8075ddde470..00000000000 --- a/TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.cpp +++ /dev/null @@ -1,87 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// Criteria_Evaluator.cpp -// -// = DESCRIPTION -// An Evaluator for the CosLifeCycle Criteria -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include "Criteria_Evaluator.h" - -Criteria_Evaluator::Criteria_Evaluator (const CosLifeCycle::Criteria &criteria) -: criteria_ (criteria) -{ -} - -Criteria_Evaluator::~Criteria_Evaluator () -{ -} - - - -LifeCycleService::Criteria_Evaluator::SeqNamedValuePair * -Criteria_Evaluator::getInitialization (CORBA::Environment &env) -{ - LifeCycleService::Criteria_Evaluator::SeqNamedValuePair_ptr sequence_ptr = 0; - - CORBA::Any * any_ptr = this->getCriteriaMember ("initialization"); - - if (any_ptr == 0) - { - env.exception (new LifeCycleService::Criteria_Evaluator::NotAvailable ("No initialization member found.\n")); - return 0; - } - - *any_ptr >>= sequence_ptr; - - return sequence_ptr; -} - - -char * -Criteria_Evaluator::getFilter (CORBA::Environment &env) -{ - CORBA::String string; - CORBA::Any value; - CORBA::Any_ptr any_ptr = this->getCriteriaMember ("filter"); - - if (any_ptr == 0) - { - env.exception (new LifeCycleService::Criteria_Evaluator::NotAvailable ("No filter member found.\n")); - return 0; - } - *any_ptr >>= string; - return string; -} - - -CORBA::Any * -Criteria_Evaluator::getCriteriaMember (const CORBA::String member_name) -{ - if (!ACE_OS::strcmp(member_name, "initialization") - && !ACE_OS::strcmp(member_name, "filter") - && !ACE_OS::strcmp(member_name, "logical location") - && !ACE_OS::strcmp(member_name, "preferences")) - return 0; - - for (unsigned int i = 0; i < criteria_.length(); i++) - { - if (ACE_OS::strcmp (member_name, criteria_[i].name) == 0) - { - CORBA::Any_ptr value_ptr; - ACE_NEW_RETURN (value_ptr, - CORBA::Any(criteria_[i].value), - 0); - return value_ptr; - } - } - return 0; -} - diff --git a/TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.h b/TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.h deleted file mode 100644 index e66ac7b848d..00000000000 --- a/TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.h +++ /dev/null @@ -1,58 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// Criteria_Evaluaotr.h -// -// = DESCRIPTION -// An Evaluator for the CosLifeCycle Criteria -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - - -#include "orbsvcs/CosLifeCycleC.h" -#include "orbsvcs/LifeCycleServiceC.h" - -#if !defined (CRITERIA_EVALUATOR_H_H) -#define CRITERIA_EVALUATOR_H_H - -class Criteria_Evaluator// : public LifeCycleService::Criteria_Evaluator -{ - // = TITLE - // - -public: - Criteria_Evaluator (const CosLifeCycle::Criteria & criteria); - ~Criteria_Evaluator (); - - LifeCycleService::Criteria_Evaluator::SeqNamedValuePair * getInitialization (CORBA::Environment &_tao_environment); - - char * getFilter (CORBA::Environment &_tao_environment); - - LifeCycleService::Criteria_Evaluator::SeqNamedValuePair * getLogicalLocation (CORBA::Environment &_tao_environment) - { - return 0; - } - - char * getPreferences (CORBA::Environment &_tao_environment) - { - return 0; - } - -private: - CORBA::Any *getCriteriaMember (const CORBA::String member_name); - - const CosLifeCycle::Criteria &criteria_; -}; - -#endif /* CRITERIA_EVALUATOR_H */ - - - - - - diff --git a/TAO/orbsvcs/LifeCycle_Service/Factory_Trader.cpp b/TAO/orbsvcs/LifeCycle_Service/Factory_Trader.cpp deleted file mode 100644 index a62e3846123..00000000000 --- a/TAO/orbsvcs/LifeCycle_Service/Factory_Trader.cpp +++ /dev/null @@ -1,281 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// Factory_Trader.cpp -// -// = DESCRIPTION -// A colocated instance of the Trading Service, only part of -// the functionality provided is used. This class serves -// as Wrapper around the Trading Service and provides -// smaller interfaces. -// TRADER_AVAILABLE is defined via compiler switch in the Makefile -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include "Factory_Trader.h" -#ifdef TRADER_AVAILABLE -#include "orbsvcs/CosTradingC.h" -#endif // TRADER_AVAILABLE - -// This const char * is used for adding a new type to the service repository -// the added types will be subclasses of this. -const char * Factory_Trader::GENERIC_FACTORY_INTERFACE_REPOSITORY_ID = "IDL:CosLifeCycle/GenericFactory:1.0"; - - -Factory_Trader::Factory_Trader () -#ifdef TRADER_AVAILABLE - - : trading_Components_ptr_ (0), - trader_ptr_(0), - support_Attributes_ptr_(0) - -#endif // TRADER_AVAILABLE -{ - -#ifdef TRADER_AVAILABLE - - TAO_TRY - { - // create the trader - this->trader_ptr_ = TAO_Trader_Factory::create_linked_trader (); - this->support_Attributes_ptr_ = &(trader_ptr_->support_attributes ()); - // this pointer is deleted when the trader_ptr is deleted - this->trading_Components_ptr_ = &(trader_ptr_->trading_components ()); - // this pointer is deleted when the trader_ptr is deleted - - // Set the service type repository - support_Attributes_ptr_->type_repos (this->repository_._this (TAO_TRY_ENV)); - TAO_CHECK_ENV; - - // Add the "Factory" type to the repository - this->add_type (); - } - TAO_CATCHANY - { - ACE_ERROR ((LM_ERROR, "Factory_Trader constructor: Failed adding a new type.")); - TAO_TRY_ENV.print_exception ("Factory_Trader constructor: Exception.\n"); - } - TAO_ENDTRY; -#endif // TRADER_AVAILABLE -} - -Factory_Trader::~Factory_Trader () -{ -#ifdef TRADER_AVAILABLE - - delete this->trader_ptr_; - -#endif // TRADER_AVAILABLE -} - - -void -Factory_Trader::add_type () -{ -#ifdef TRADER_AVAILABLE - - TAO_TRY - { - // define the new type - CosTradingRepos::ServiceTypeRepository::PropStruct propStruct_name; - propStruct_name.name = CORBA::string_dup ("name"); - propStruct_name.value_type = CORBA::_tc_string; - propStruct_name.mode = CosTradingRepos::ServiceTypeRepository::PROP_MANDATORY; - - CosTradingRepos::ServiceTypeRepository::PropStruct propStruct_location; - propStruct_location.name = CORBA::string_dup ("location"); - propStruct_location.value_type = CORBA::_tc_string; - propStruct_location.mode = CosTradingRepos::ServiceTypeRepository::PROP_NORMAL; - - CosTradingRepos::ServiceTypeRepository::PropStruct propStruct_description; - propStruct_description.name = CORBA::string_dup ("description"); - propStruct_description.value_type = CORBA::_tc_string; - propStruct_description.mode = CosTradingRepos::ServiceTypeRepository::PROP_NORMAL; - - CosTradingRepos::ServiceTypeRepository::PropStructSeq propStructSeq(3); - propStructSeq.length (3); - propStructSeq[0] = propStruct_name; - propStructSeq[1] = propStruct_location; - propStructSeq[2] = propStruct_description; - - CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq superTypeSeq; - CosTradingRepos::ServiceTypeRepository::IncarnationNumber incarnationNumber; - - // Add the new type - incarnationNumber = this->repository_.add_type (CORBA::string_dup("Factory"), - GENERIC_FACTORY_INTERFACE_REPOSITORY_ID, - propStructSeq, - superTypeSeq, - TAO_TRY_ENV); - TAO_CHECK_ENV; - } - TAO_CATCH (CORBA::UserException, userex) - { - ACE_UNUSED_ARG (userex); - TAO_TRY_ENV.print_exception ("Factory_Trader::init: User Exception.\n"); - } - TAO_CATCH (CORBA::SystemException, sysex) - { - ACE_UNUSED_ARG (sysex); - TAO_TRY_ENV.print_exception ("Factory_Trader::init: System Exception.\n"); - } - TAO_CATCHANY - { - ACE_ERROR ((LM_ERROR, "Factory_Trader::init: Failed adding a new type.")); - } - TAO_ENDTRY; - -#endif // TRADER_AVAILABLE -} - - -void -Factory_Trader::export (const char * name, - const char * location, - const char * description, - const CORBA::Object_ptr object_ptr) -{ -#ifdef TRADER_AVAILABLE - - TAO_TRY - { - if (CORBA::is_nil(object_ptr)) - { - ACE_DEBUG ((LM_DEBUG,"Factory_Trader::export: Object pointer is nil, cannot export!\n")); - return; - } - - CosTrading::PropertySeq propertySeq(3); - propertySeq.length (3); - propertySeq[0].name = CORBA::string_dup("name"); - propertySeq[0].value <<= CORBA::string_dup (name); - propertySeq[1].name = CORBA::string_dup("location"); - propertySeq[1].value <<= CORBA::string_dup (location); - propertySeq[2].name = CORBA::string_dup("description"); - propertySeq[2].value <<= CORBA::string_dup (description); - - // get the register interface - CosTrading::Register_ptr register_ptr = this->trading_Components_ptr_->register_if (); - // this pointer is deleted when the trader_ptr is deleted - - // invoke the export method on the Register interface of the Trading Service - register_ptr->export (CORBA::Object::_duplicate (object_ptr), - CORBA::string_dup("Factory"), - propertySeq, - TAO_TRY_ENV); - - TAO_CHECK_ENV; - } - TAO_CATCH (CORBA::UserException, userex) - { - ACE_UNUSED_ARG (userex); - TAO_TRY_ENV.print_exception ("Factory_Trader::export: User Exception.\n"); - } - TAO_CATCH (CORBA::SystemException, sysex) - { - ACE_UNUSED_ARG (sysex); - TAO_TRY_ENV.print_exception ("Factory_Trader::export: System Exception.\n"); - } - TAO_CATCHANY - { - ACE_ERROR ((LM_ERROR, "Factory_Trader::export: Failed to export factory.\n")); - } - TAO_ENDTRY; - -#endif // TRADER_AVAILABLE -} - - -CORBA::Object_ptr -Factory_Trader::query (const CORBA::String constraint) -{ -#ifdef TRADER_AVAILABLE - - TAO_TRY - { - CosTrading::Lookup::SpecifiedProps specifiedProps; - specifiedProps._d(CosTrading::Lookup::all); - - // Get some pointers for the out parameters of the call. - CosTrading::OfferSeq_ptr offerSeq_ptr = 0; - CosTrading::OfferIterator_ptr offerIterator_ptr = 0; - CosTrading::PolicyNameSeq_ptr policyNameSeq_ptr = 0; - - // An empty policy sequence - CosTrading::PolicySeq policySeq; - - // Get a reference to the lookup interface - CosTrading::Lookup_ptr lookup_ptr = this->trading_Components_ptr_->lookup_if (); - // this pointer is deleted when the trader_ptr is deleted - - // Invoke the query method on the Lookup Interface. - lookup_ptr->query ("Factory", // Type name - constraint, // Constraint, very important - "", // Preferences - policySeq, // Policy - specifiedProps, // Specified Properties - 1, // Number of wanted results - CosTrading::OfferSeq_out(offerSeq_ptr), // results - CosTrading::OfferIterator_out(offerIterator_ptr), // more results - CosTrading::PolicyNameSeq_out(policyNameSeq_ptr), // Policies - TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Initialize - CORBA::Object_ptr object_ptr = 0; - - // Check if an offer was made - if (offerSeq_ptr != 0) - { - // Insert the pointer into the out class - CosTrading::OfferSeq_var offerSeq_var(offerSeq_ptr); - - // We need at least one offer. - if (offerSeq_var->length() >= 1) - { - // now we are all set to read from the sequence the result - object_ptr = CORBA::Object::_duplicate (offerSeq_var[0].reference.in()); - - if (CORBA::is_nil (object_ptr)) - { - ACE_DEBUG ((LM_DEBUG,"Factory_Trader::query: Object reference is nil.\n")); - return 0; - } - else - ACE_DEBUG ((LM_DEBUG,"Factory_Trader::query: Received a proper object reference.\n")); - } - else - ACE_DEBUG ((LM_DEBUG,"Factory_Trader::query: OfferSequence.length is smaller than 1.\n")); - } - return object_ptr; - } - TAO_CATCH (CORBA::UserException, userex) - { - ACE_UNUSED_ARG (userex); - TAO_TRY_ENV.print_exception ("Factory_Trader::query: User Exception"); - } - TAO_CATCH (CORBA::SystemException, sysex) - { - ACE_UNUSED_ARG (sysex); - TAO_TRY_ENV.print_exception ("Factory_Trader::query: System Exception"); - } - TAO_CATCHANY - { - ACE_ERROR ((LM_ERROR, "Factory_Trader::query: Failed.\n")); - } - TAO_ENDTRY; - -#else // TRADER_AVAILABLE - - return 0; - -#endif // TRADER_AVAILABLE -} - - diff --git a/TAO/orbsvcs/LifeCycle_Service/Factory_Trader.h b/TAO/orbsvcs/LifeCycle_Service/Factory_Trader.h deleted file mode 100644 index fdfec0d32aa..00000000000 --- a/TAO/orbsvcs/LifeCycle_Service/Factory_Trader.h +++ /dev/null @@ -1,60 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// Factory_Trader.cpp -// -// = DESCRIPTION -// Factory Trader for the Generic Factory. -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#if !defined (FACTORY_TRADER_H) -#define FACTORY_TRADER_H - -#include "tao/corba.h" - -#ifdef TRADER_AVAILABLE -#include "orbsvcs/Trader/Trader.h" -#include "orbsvcs/Trader/Service_Type_Repository.h" -#include "orbsvcs/CosLifeCycleC.h" -#endif // TRADER_AVAILABLE - - -class Factory_Trader -{ -public: - Factory_Trader (); - ~Factory_Trader (); - - void add_type (); - // Add a the Factory type to the repository - - void export (const char * name, - const char * location, - const char * description, - const CORBA::Object_ptr object_ptr); - // export a specific factory - - CORBA::Object_ptr query (const CORBA::String constraint); - // query for a specific factory using a constraint - - static const char * GENERIC_FACTORY_INTERFACE_REPOSITORY_ID; -private: - -#ifdef TRADER_AVAILABLE - - TAO_Service_Type_Repository repository_; - TAO_Trader_Factory::TAO_TRADER *trader_ptr_; - TAO_Trading_Components_Impl *trading_Components_ptr_; - TAO_Support_Attributes_Impl *support_Attributes_ptr_; - -#endif // TRADER_AVAILABLE -}; - -#endif // FACTORY_TRADER_H diff --git a/TAO/orbsvcs/LifeCycle_Service/LifeCycle_Service.dsp b/TAO/orbsvcs/LifeCycle_Service/LifeCycle_Service.dsp deleted file mode 100644 index 2fcd3d0da7a..00000000000 --- a/TAO/orbsvcs/LifeCycle_Service/LifeCycle_Service.dsp +++ /dev/null @@ -1,134 +0,0 @@ -# Microsoft Developer Studio Project File - Name="LifeCycle_Service" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 5.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=LifeCycle_Service - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "LifeCycle_Service.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "LifeCycle_Service.mak" CFG="LifeCycle_Service - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "LifeCycle_Service - Win32 Release" (based on\ - "Win32 (x86) Console Application") -!MESSAGE "LifeCycle_Service - Win32 Debug" (based on\ - "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "LifeCycle_Service - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Release" -# PROP Intermediate_Dir "Release" -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 - -!ELSEIF "$(CFG)" == "LifeCycle_Service - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "Debug" -# PROP Intermediate_Dir "Debug" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I ".." /I "..\.." /I "..\..\.." /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D TAO_ORBSVCS_HAS_DLL=1 /YX /FD /c -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept -# ADD LINK32 orbsvcs.lib TAO.lib aced.lib /nologo /subsystem:console /debug /machine:I386 /out:"LifeCycle_Service.exe" /pdbtype:sept /libpath:"..\orbsvcs" /libpath:"..\..\tao" /libpath:"..\..\..\ace" - -!ENDIF - -# Begin Target - -# Name "LifeCycle_Service - Win32 Release" -# Name "LifeCycle_Service - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "*.cpp" -# Begin Source File - -SOURCE=.\Criteria_Evaluator.cpp -# End Source File -# Begin Source File - -SOURCE=.\Factory_Trader.cpp -# End Source File -# Begin Source File - -SOURCE=.\Life_Cycle_Service.cpp -# End Source File -# Begin Source File - -SOURCE=.\Life_Cycle_Service_Impl.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "*.h" -# Begin Source File - -SOURCE=.\Criteria_Evaluator.h -# End Source File -# Begin Source File - -SOURCE=.\Factory_Trader.h -# End Source File -# Begin Source File - -SOURCE=.\Life_Cycle_Service.h -# End Source File -# Begin Source File - -SOURCE=.\Life_Cycle_Service_Impl.h -# End Source File -# End Group -# Begin Group "Inline Files" - -# PROP Default_Filter "*.i" -# End Group -# Begin Group "IDL Files" - -# PROP Default_Filter "*.idl" -# End Group -# End Target -# End Project diff --git a/TAO/orbsvcs/LifeCycle_Service/LifeCycle_Service.dsw b/TAO/orbsvcs/LifeCycle_Service/LifeCycle_Service.dsw deleted file mode 100644 index 4a5e370211f..00000000000 --- a/TAO/orbsvcs/LifeCycle_Service/LifeCycle_Service.dsw +++ /dev/null @@ -1,29 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 5.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "LifeCycle_Service"=.\LifeCycle_Service.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service.cpp b/TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service.cpp deleted file mode 100644 index 21845595223..00000000000 --- a/TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service.cpp +++ /dev/null @@ -1,222 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// Life_Cycle_Service.cpp -// -// = DESCRIPTION -// The server for the LifeCycleService of the quoter example. -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include "tao/corba.h" -#include "Life_Cycle_Service.h" - -static const char usage [] = "[-? |\n[-O[RBport] ORB port number]]"; - -Life_Cycle_Service_Server::Life_Cycle_Service_Server (void) -{ -} - -Life_Cycle_Service_Server::~Life_Cycle_Service_Server (void) -{ - TAO_TRY - { - // Unbind the Factory Finder. - CosNaming::Name generic_Factory_Name (2); - generic_Factory_Name.length (2); - generic_Factory_Name[0].id = CORBA::string_dup ("LifeCycle_Service"); - this->namingContext_var_->unbind (generic_Factory_Name,TAO_TRY_ENV); - TAO_CHECK_ENV; - } - TAO_CATCH (CORBA::SystemException, sysex) - { - ACE_UNUSED_ARG (sysex); - TAO_TRY_ENV.print_exception ("System Exception"); - } - TAO_CATCH (CORBA::UserException, userex) - { - ACE_UNUSED_ARG (userex); - TAO_TRY_ENV.print_exception ("User Exception"); - } - TAO_ENDTRY; -} - -int -Life_Cycle_Service_Server::init (int argc, - char *argv[], - CORBA::Environment& env) -{ - if (this->orb_manager_.init (argc, - argv, - env) == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "%p\n", - "init"), - -1); - - // Copy them, because parse_args expects them there. - this->argc_ = argc; - this->argv_ = argv; - - this->parse_args (); - - - ACE_NEW_RETURN (this->life_Cycle_Service_Impl_ptr_, - Life_Cycle_Service_Impl(), - -1); - - // Activate the object. - CORBA::String_var str = - this->orb_manager_.activate (this->life_Cycle_Service_Impl_ptr_, - env); - - // Failure while activating the Factory Finder object - // @@ TODO Is this the right way to check this? Shouldn't env - // contain an exception? - if (env.exception () != 0) - ACE_ERROR_RETURN ((LM_ERROR, - "%p\n", - "init: Failure while activating the LifeCycle Service Impl.\n"), - -1); - - - ACE_DEBUG ((LM_DEBUG, - "The IOR is: <%s>\n", - str.in ())); - - // Register the LifeCycle Service with the Naming Service. - TAO_TRY - { - ACE_DEBUG ((LM_DEBUG, - "Trying to get a reference to the Naming Service.\n")); - - // Get the Naming Service object reference. - CORBA::Object_var namingObj_var = - orb_manager_.orb()->resolve_initial_references ("NameService"); - TAO_CHECK_ENV; - - if (CORBA::is_nil (namingObj_var.in ())) - ACE_ERROR ((LM_ERROR, - " (%P|%t) Unable get the Naming Service.\n")); - - // Narrow the object reference to a Naming Context. - namingContext_var_ = CosNaming::NamingContext::_narrow (namingObj_var.in (), - TAO_TRY_ENV); - - if (CORBA::is_nil (namingContext_var_.in ())) - ACE_ERROR ((LM_ERROR, - " (%P|%t) Unable get the Naming Service.\n")); - - - TAO_CHECK_ENV; - ACE_DEBUG ((LM_DEBUG, - "Have a proper reference to the Naming Service.\n")); - - CosNaming::Name life_Cycle_Service_Name (1); - life_Cycle_Service_Name.length (1); - life_Cycle_Service_Name[0].id = CORBA::string_dup ("Life_Cycle_Service"); - - namingContext_var_->bind (life_Cycle_Service_Name, - this->life_Cycle_Service_Impl_ptr_->_this(TAO_TRY_ENV), - TAO_TRY_ENV); - TAO_CHECK_ENV; - - ACE_DEBUG ((LM_DEBUG, - "Bound the LifeCycle Service to the Naming Context.\n")); - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("SYS_EX"); - } - TAO_ENDTRY; - - return 0; -} - - -int -Life_Cycle_Service_Server::run (CORBA::Environment& env) -{ - if (orb_manager_.orb()->run () == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "%p\n", - "run"), - -1); - return 0; -} - - -// Function get_options. - -u_int -Life_Cycle_Service_Server::parse_args (void) -{ - // We need the 'O' in get_opt () because we also want to have ORB - // parameters, they all start with 'O'. - ACE_Get_Opt get_opt (this->argc_, this->argv_, "O?"); - int opt; - - while ((opt = get_opt ()) != EOF) - switch (opt) - { - case '?': - ACE_DEBUG ((LM_DEBUG, - "Usage: %s %s\n", - this->argv_[0], usage)); - ACE_OS::exit (0); - break; - default: - ACE_ERROR_RETURN ((LM_ERROR, - "%s: unknown arg, -%c\n" - "Usage: %s %s\n", - this->argv_[0], char (opt), - this->argv_[0], - usage), - 1); - } - return 0; -} - -// function main - -int -main (int argc, char *argv []) -{ - Life_Cycle_Service_Server life_Cycle_Service_Server; - - ACE_DEBUG ((LM_DEBUG, - "\n\tIDL_LifeCycleService: Life_Cycle_Service_Server \n\n")); - TAO_TRY - { - if (life_Cycle_Service_Server.init (argc, - argv, - TAO_TRY_ENV) == -1) - return 1; - else - { - life_Cycle_Service_Server.run (TAO_TRY_ENV); - TAO_CHECK_ENV; - } - } - TAO_CATCH (CORBA::SystemException, sysex) - { - ACE_UNUSED_ARG (sysex); - TAO_TRY_ENV.print_exception ("System Exception"); - return -1; - } - TAO_CATCH (CORBA::UserException, userex) - { - ACE_UNUSED_ARG (userex); - TAO_TRY_ENV.print_exception ("User Exception"); - return -1; - } - TAO_ENDTRY; - return 0; -} - - diff --git a/TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service.h b/TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service.h deleted file mode 100644 index d499da18c22..00000000000 --- a/TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service.h +++ /dev/null @@ -1,64 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// Life_Cycle_Service.h -// -// = DESCRIPTION -// A creation service for objects using the CosLifeCycle GenericFactory. -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include "ace/Get_Opt.h" -#include "tao/TAO.h" -#include "Life_Cycle_Service_Impl.h" - -#if !defined (LIFE_CYCLE_SERVICE_H) -#define IFE_CYCLE_SERVICE_H - -class Life_Cycle_Service_Server -{ - // = TILE - // Server object for the LifeCycle Service - -public: - Life_Cycle_Service_Server (void); - // Default constructor - - ~Life_Cycle_Service_Server (void); - // Destructor - - int init (int argc, - char *argv[], - CORBA::Environment& env); - // Initialize the Server state - parsing arguments and ... - - int run (CORBA::Environment& env); - // Run the orb. - - u_int parse_args (void); - // Parse the passed parameters. - -private: - TAO_ORB_Manager orb_manager_; - // instance of the ORB Manager - - Life_Cycle_Service_Impl *life_Cycle_Service_Impl_ptr_; - // Instance of the creation service - - CosNaming::NamingContext_var namingContext_var_; - // reference to the naming service - - int argc_; - // Number of commandline arguments. - - char **argv_; - // commandline arguments. -}; - -#endif /* LIFE_CYCLE_SERVICE_H */ - diff --git a/TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service_Impl.cpp b/TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service_Impl.cpp deleted file mode 100644 index 176d65274e2..00000000000 --- a/TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service_Impl.cpp +++ /dev/null @@ -1,169 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// Life_Cycle_Service_Impl.cpp -// -// = DESCRIPTION -// The implementation of a LifeCycle Service GenericFactory. -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include "ace/Get_Opt.h" -#include "tao/corba.h" -#include "orbsvcs/LifeCycleServiceC.h" -#include "Life_Cycle_Service_Impl.h" - - -static const char usage [] = "[-? |\n[-O[RBport] ORB port number]]"; - -// Constructor -Life_Cycle_Service_Impl::Life_Cycle_Service_Impl (void) - : factory_trader_ptr_ (0) -{ -} - -// Destructor. -Life_Cycle_Service_Impl::~Life_Cycle_Service_Impl (void) -{ -} - - -CORBA::Boolean -Life_Cycle_Service_Impl::supports (const CosLifeCycle::Key &factory_key, - CORBA::Environment &_env_there) -{ - ACE_UNUSED_ARG (factory_key); - ACE_UNUSED_ARG (_env_there); - return 0; -} - -CORBA::Object_ptr -Life_Cycle_Service_Impl::create_object (const CosLifeCycle::Key &factory_key, - const CosLifeCycle::Criteria &the_criteria, - CORBA::Environment &_env_there) -{ - ACE_DEBUG ((LM_DEBUG, "Life_Cycle_Service_Impl:create_object: called.\n")); - // Exceptions are forwarded, not handled !! - - if (factory_trader_ptr_ != 0) - { - Criteria_Evaluator criteria_Evaluator(the_criteria); - ACE_DEBUG ((LM_DEBUG, "Life_Cycle_Service_Impl:create_object: new evaluator.\n")); - - ACE_DEBUG ((LM_DEBUG, "Life_Cycle_Service_Impl:create_object: getFilter will be called.\n")); - - CORBA::String filter = criteria_Evaluator.getFilter (_env_there); - - if (_env_there.exception() != 0) - { - return 0; - } - - ACE_DEBUG ((LM_DEBUG, "Life_Cycle_Service_Impl:create_object: query(%s) will be called.\n",filter)); - - CORBA::Object_ptr genericFactoryObj_ptr = factory_trader_ptr_->query (filter); - - ACE_DEBUG ((LM_DEBUG, "Life_Cycle_Service_Impl:create_object: query was called.\n")); - - if (CORBA::is_nil (genericFactoryObj_ptr)) - ACE_ERROR_RETURN ((LM_ERROR, - "Life_Cycle_Service_Impl::create_object: Factory is nil!\n"), - 0); - else // everyting is ok - ACE_DEBUG ((LM_DEBUG, "Life_Cycle_Service_Impl::create_object: Object reference OK.\n")); - - // Now we have a proper reference to a Generic Factory - // the create_object call will be forwarded to this factory - - - // Check if it is a valid Generic Factory reference - if (CORBA::is_nil (genericFactoryObj_ptr)) - { // throw a NoFactory exception - _env_there.exception (new CosLifeCycle::NoFactory (factory_key)); - return 0; - } - else - { - CORBA::Environment env_here; - - CosLifeCycle::GenericFactory_var genericFactory_var = - CosLifeCycle::GenericFactory::_narrow (genericFactoryObj_ptr, - env_here); - - // see if there is an exception, if yes then throw the NoFactory exception - if (env_here.exception () != 0) // throw a NoFactory exception - { - _env_there.exception (new CosLifeCycle::NoFactory (factory_key)); - return 0; - } - - if (CORBA::is_nil (genericFactory_var.in())) - ACE_ERROR_RETURN ((LM_ERROR, - "Life_Cycle_Service_Impl::create_object: Invalid Generic Factory.\n"), - 0); - - ACE_DEBUG ((LM_DEBUG, "Life_Cycle_Service_Impl::create_object: Generic Factory reference OK.\n")); - - // Now retrieve the Object obj ref corresponding to the key. - CORBA::Object_var object_var = genericFactory_var->create_object (factory_key, - the_criteria, - _env_there); - - ACE_DEBUG ((LM_DEBUG, - "Life_Cycle_Service_Impl::create_object: Forwarded request.\n")); - - if (CORBA::is_nil (object_var.in())) - ACE_ERROR_RETURN ((LM_ERROR, - "Life_Cycle_Service_Impl::create_object: Null object refeference returned by factory.\n"), - 0); - - ACE_DEBUG ((LM_DEBUG, - "Life_Cycle_Service_Impl::create_object: Return a object reference to a new object.\n")); - - return CORBA::Object::_duplicate (object_var.in()); - } - } - else - { - return 0; - } -} - -void -Life_Cycle_Service_Impl::register_factory (const char * name, - const char * location, - const char * description, - CORBA::Object_ptr object, - CORBA::Environment &_env_there) -{ - if (factory_trader_ptr_ == 0) - { - ACE_NEW (factory_trader_ptr_, Factory_Trader()); - } - // we have an proper reference to the Factory Trader - - // Just forward the call to the factory trader - // Exceptions are not handled here, they are returned - factory_trader_ptr_->export (name, location, description, object); - - ACE_DEBUG ((LM_DEBUG, "Registered a factory with:\n" - " name: %s\n" - " location: %s\n" - " description: %s\n", - name, location, description)); -} - - - - - - - - - - diff --git a/TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service_Impl.h b/TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service_Impl.h deleted file mode 100644 index 3d30d38bd56..00000000000 --- a/TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service_Impl.h +++ /dev/null @@ -1,63 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// Life_Cycle_Service_Impl.h -// -// = DESCRIPTION -// A Life Cycle Service for the Quoter example. -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include "orbsvcs/LifeCycleServiceS.h" -#include "Factory_Trader.h" -#include "Criteria_Evaluator.h" - -#if !defined (LIFE_CYCLE_SERVICE_IMPL_H) -#define LIFE_CYCLE_SERVICE_IMPL_H - -class Life_Cycle_Service_Impl : public POA_LifeCycleService::Life_Cycle_Service -{ - // = TILE - // A CosLifeCycle conforming Generic Factory. - -public: - Life_Cycle_Service_Impl (void); - ~Life_Cycle_Service_Impl (void); - - CORBA::Boolean supports (const CosLifeCycle::Key &factory_key, - CORBA::Environment &_env_there); - // Returns true if the Generic Factory is able to forward a request - // for creating an object described by the . - - CORBA::Object_ptr create_object (const CosLifeCycle::Key &factory_key, - const CosLifeCycle::Criteria &the_criteria, - CORBA::Environment &_env_there); - // Returns an object reference to a newly created object, though the - // Generic Factory itself cannot create objects, it will forward the - // request to a more concrete Factory. - - void register_factory (const char * name, - const char * location, - const char * description, - CORBA::Object_ptr object, - CORBA::Environment &_env_there); - // Registers a factory with specified properties - -private: - Factory_Trader *factory_trader_ptr_; -}; - -#endif /* LIFE_CYCLE_SERVICE_IMPL_H */ - - - - - - - - diff --git a/TAO/orbsvcs/LifeCycle_Service/Makefile b/TAO/orbsvcs/LifeCycle_Service/Makefile deleted file mode 100644 index 4d19ee4f082..00000000000 --- a/TAO/orbsvcs/LifeCycle_Service/Makefile +++ /dev/null @@ -1,303 +0,0 @@ -# -# $Id$ -# -# =TITLE -# Makefile to create the LifeCycle_Service - - -# needed for the trading service stuff - -ifndef TAO_ROOT - TAO_ROOT = $(ACE_ROOT)/TAO -endif # TAO_ROOT - -TAO_IDLFLAGS=-I$(TAO_ROOT)/orbsvcs/orbsvcs - -ifdef trader - -ifndef STL_ROOT - STL_ROOT=/project/doc/irfan/ObjectSpace/SC4.0 -endif # STL_ROOT - -STD=$(STL_ROOT)/ospace/std -STL=$(STL_ROOT)/stl - -include $(STL_ROOT)/config/local.cfg - -CC_INCLUDES += -I$(STD) -CC_INCLUDES += -pta - -CPPFLAGS += \ - -I$(TOOLKIT) \ - $(CC_INCLUDES) \ - $(CC_FLAGS) \ - $(CC_DEFINES) \ - $(CC_EH) \ - $(CC_MT) - - -ifndef exceptions -CPPFLAGS += -DOS_NO_EXCEPTION_SPECIFIER -else -CPPFLAGS += -DOS_STL_ASSERT -endif - -LDFLAGS += -L$(STL_ROOT)/lib - -endif # trader -# end of the trading service stuff - -BIN = Life_Cycle_Service - -# The following lines tell the souce code that the trading -# service is available. - -ifdef trader - -CPPFLAGS += -DTRADER_AVAILABLE - -endif # trader - -BUILD = $(BIN) - - -LIFE_CYCLE_SERVICE_SRCS = \ - Life_Cycle_Service.cpp Life_Cycle_Service_Impl.cpp \ - Factory_Trader.cpp Criteria_Evaluator.cpp - - -LSRC= \ - Life_Cycle_Service.cpp Life_Cycle_Service_Impl.cpp \ - Factory_Trader.cpp Criteria_Evaluator.cpp - -LIFE_CYCLE_SERVICE_OBJS = Life_Cycle_Service.o Life_Cycle_Service_Impl.o \ - Factory_Trader.o Criteria_Evaluator.o - -ifdef trader - -LDLIBS = -lorbsvcs -lospace -lTAO - -else - -LDLIBS = -lorbsvcs -lTAO - -endif - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(TAO_ROOT)/rules.tao.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#### Local rules and variables... - -TSS_ORB_FLAG = #-DTAO_HAS_TSS_ORBCORE -LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao -CPPFLAGS += -I$(TAO_ROOT)/orbsvcs -I$(TAO_ROOT)/orbsvcs/orbsvcs \ - -I$(TAO_ROOT) -I$(TAO_ROOT)/tao/compat $(TSS_ORB_FLAG)#-H - -realclean: clean - -Life_Cycle_Service: $(addprefix $(VDIR),$(LIFE_CYCLE_SERVICE_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/Factory_Trader.o .obj/Factory_Trader.so .shobj/Factory_Trader.o .shobj/Factory_Trader.so: Factory_Trader.cpp Factory_Trader.h \ - $(TAO_ROOT)/tao/corba.h \ - $(TAO_ROOT)/tao/orbconf.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(ACE_ROOT)/ace/IPC_SAP.h \ - $(ACE_ROOT)/ace/IPC_SAP.i \ - $(ACE_ROOT)/ace/SOCK.i \ - $(ACE_ROOT)/ace/SOCK_IO.i \ - $(ACE_ROOT)/ace/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/SString.h \ - $(ACE_ROOT)/ace/SString.i \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc.i \ - $(ACE_ROOT)/ace/Malloc_T.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Malloc_T.i \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(ACE_ROOT)/ace/Signal.i \ - $(ACE_ROOT)/ace/Object_Manager.h \ - $(ACE_ROOT)/ace/Object_Manager.i \ - $(ACE_ROOT)/ace/Managed_Object.h \ - $(ACE_ROOT)/ace/Managed_Object.i \ - $(ACE_ROOT)/ace/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(ACE_ROOT)/ace/SOCK_Acceptor.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/SOCK_Acceptor.i \ - $(ACE_ROOT)/ace/SOCK_Connector.h \ - $(ACE_ROOT)/ace/SOCK_Connector.i \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Service_Config.i \ - $(ACE_ROOT)/ace/Reactor.h \ - $(ACE_ROOT)/ace/Handle_Set.h \ - $(ACE_ROOT)/ace/Handle_Set.i \ - $(ACE_ROOT)/ace/Timer_Queue.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Reactor_Impl.h \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Synch_Options.i \ - $(ACE_ROOT)/ace/Strategies_T.i \ - $(ACE_ROOT)/ace/Strategies.i \ - $(ACE_ROOT)/ace/Connector.h \ - $(ACE_ROOT)/ace/Map_Manager.h \ - $(ACE_ROOT)/ace/Map_Manager.i \ - $(ACE_ROOT)/ace/Svc_Handler.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Message_Queue.h \ - $(ACE_ROOT)/ace/Message_Block.h \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(ACE_ROOT)/ace/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/Task_T.i \ - $(ACE_ROOT)/ace/Dynamic.h \ - $(ACE_ROOT)/ace/Dynamic.i \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Svc_Handler.i \ - $(ACE_ROOT)/ace/Connector.i \ - $(ACE_ROOT)/ace/Acceptor.h \ - $(ACE_ROOT)/ace/Acceptor.i \ - $(TAO_ROOT)/tao/compat/objbase.h \ - $(TAO_ROOT)/tao/compat/initguid.h \ - $(TAO_ROOT)/tao/Align.h \ - $(TAO_ROOT)/tao/ORB.h \ - $(TAO_ROOT)/tao/Sequence.h \ - $(TAO_ROOT)/tao/Sequence.i \ - $(TAO_ROOT)/tao/Sequence_T.h \ - $(TAO_ROOT)/tao/Sequence_T.i \ - $(TAO_ROOT)/tao/Object_KeyC.h \ - $(TAO_ROOT)/tao/Object_KeyC.i \ - $(TAO_ROOT)/tao/ORB.i \ - $(TAO_ROOT)/tao/Exception.h \ - $(TAO_ROOT)/tao/Exception.i \ - $(TAO_ROOT)/tao/Any.h \ - $(TAO_ROOT)/tao/Any.i \ - $(TAO_ROOT)/tao/params.h \ - $(TAO_ROOT)/tao/params.i \ - $(TAO_ROOT)/tao/Client_Strategy_Factory.h \ - $(TAO_ROOT)/tao/Server_Strategy_Factory.h \ - $(TAO_ROOT)/tao/default_client.h \ - $(TAO_ROOT)/tao/default_client.i \ - $(TAO_ROOT)/tao/default_server.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.i \ - $(TAO_ROOT)/tao/default_server.i \ - $(TAO_ROOT)/tao/NVList.h \ - $(TAO_ROOT)/tao/NVList.i \ - $(TAO_ROOT)/tao/Principal.h \ - $(TAO_ROOT)/tao/Request.h \ - $(TAO_ROOT)/tao/Request.i \ - $(TAO_ROOT)/tao/Stub.h \ - $(TAO_ROOT)/tao/Stub.i \ - $(TAO_ROOT)/tao/Object.h \ - $(TAO_ROOT)/tao/Object.i \ - $(TAO_ROOT)/tao/Typecode.h \ - $(TAO_ROOT)/tao/Typecode.i \ - $(TAO_ROOT)/tao/Marshal.h \ - $(TAO_ROOT)/tao/Marshal.i \ - $(TAO_ROOT)/tao/CDR.h \ - $(TAO_ROOT)/tao/CDR.i \ - $(TAO_ROOT)/tao/PolicyC.h \ - $(TAO_ROOT)/tao/PolicyC.i \ - $(TAO_ROOT)/tao/CurrentC.h \ - $(TAO_ROOT)/tao/CurrentC.i \ - $(TAO_ROOT)/tao/POA.h \ - $(TAO_ROOT)/tao/POAC.h \ - $(TAO_ROOT)/tao/POAC.i \ - $(TAO_ROOT)/tao/Servant_Base.h \ - $(TAO_ROOT)/tao/POAS.h \ - $(TAO_ROOT)/tao/POA_CORBA.h \ - $(TAO_ROOT)/tao/POAS.i \ - $(TAO_ROOT)/tao/Object_Table.h \ - $(TAO_ROOT)/tao/POA.i \ - $(TAO_ROOT)/tao/poa_macros.h \ - $(TAO_ROOT)/tao/Connect.h \ - $(TAO_ROOT)/tao/Connect.i \ - $(TAO_ROOT)/tao/ORB_Core.h \ - $(TAO_ROOT)/tao/ORB_Core.i \ - $(ACE_ROOT)/ace/Dynamic_Service.h \ - $(TAO_ROOT)/tao/Operation_Table.h \ - $(TAO_ROOT)/tao/debug.h \ - $(TAO_ROOT)/tao/IIOP_Object.h \ - $(TAO_ROOT)/tao/IIOP_Object.i \ - $(TAO_ROOT)/tao/IIOP_ORB.h \ - $(TAO_ROOT)/tao/IIOP_ORB.i \ - $(TAO_ROOT)/tao/IIOP_Interpreter.h \ - $(TAO_ROOT)/tao/GIOP.h \ - $(TAO_ROOT)/tao/GIOP.i \ - $(TAO_ROOT)/tao/Server_Request.h \ - $(TAO_ROOT)/tao/Server_Request.i \ - $(TAO_ROOT)/tao/singletons.h - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/orbsvcs/LifeCycle_Service/svc.conf b/TAO/orbsvcs/LifeCycle_Service/svc.conf deleted file mode 100644 index 43c6a486c92..00000000000 --- a/TAO/orbsvcs/LifeCycle_Service/svc.conf +++ /dev/null @@ -1,49 +0,0 @@ -# $Id$ -# -# This file contains a sample ACE_Service_Config configuration -# file specifying the strategy factories utilized by an application -# using TAO. There are currently only two possible factories: -# Client_Strategy_Factory and Server_Strategy_Factory. These names -# must be used as the second argument to their corresponding line, -# because that's what the ORB uses to find the desired factory. -# -# Note that there are two unordinary characteristics of the way *this* -# file is set up: -# - both client and server strategies are specified in the same -# file, which would only make sense for co-located clients & servers -# - both of the factories are actually sourced out of libTAO.so -# (TAO.DLL on Win32), and they would normally be in a separate -# dll from the TAO ORB Core. -# -# The options which can be passed to the Resource Factory are: -# -# -ORBresources -# where can be 'global' to specify globally-held resources, -# or 'tss' to specify thread-specific resources. -# -# The options which can be passed to the Client are: -# -# -# The options which can be passed to the Server are: -# -# -ORBconcurrency -# where can be 'thread-per-connection' to specify -# use of the ACE_Threaded_Strategy concurrency strategy, -# or 'reactive' to specify use of the ACE_Reactive_Strategy -# concurrency strategy. -# -# -ORBthreadflags -# specifies the default thread flags to use, where is a -# logical OR'ing of the flags THR_DETACHED, THR_BOUND, THR_NEW_LWP, -# THR_SUSPENDED, or THR_DAEMON. Note that not every flag may be valid -# on every platform. -# -# -ORBdemuxstrategy -# where can be one of 'dynamic', 'linear', 'active', or 'user', -# and specifies the type of object lookup strategy used internally. -# -ORBtablesize -# specifies the size of the object table -# -dynamic Resource_Factory Service_Object * TAO:_make_TAO_Resource_Factory() "-ORBresources global" -dynamic Client_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Client_Strategy_Factory() -dynamic Server_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Server_Strategy_Factory() "-ORBconcurrency reactive -ORBdemuxstrategy dynamic -ORBtablesize 128" diff --git a/TAO/orbsvcs/Makefile b/TAO/orbsvcs/Makefile deleted file mode 100644 index d3ec0ee9dbc..00000000000 --- a/TAO/orbsvcs/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -#---------------------------------------------------------------------------- -# -# $Id$ -# -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -DIRS = orbsvcs \ - Naming_Service \ - Scheduling_Service \ - Event_Service \ - Dump_Schedule \ - Concurrency_Service \ - LifeCycle_Service \ - tests \ - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nolocal.GNU - diff --git a/TAO/orbsvcs/Naming_Service/Makefile b/TAO/orbsvcs/Naming_Service/Makefile deleted file mode 100644 index 65c22302046..00000000000 --- a/TAO/orbsvcs/Naming_Service/Makefile +++ /dev/null @@ -1,47 +0,0 @@ -#---------------------------------------------------------------------------- -# -# $Id$ -# -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -BIN = Naming_Service - -SVR_SRCS=Naming_Service.cpp - -LDLIBS = -lorbsvcs -lTAO - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -BUILD = $(VLIB) $(VSHLIB) $(SHLIBA) $(VBIN) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -ifndef TAO_ROOT - TAO_ROOT = $(ACE_ROOT)/TAO -endif - -#TSS_ORB_FLAG = #-DTAO_HAS_TSS_ORBCORE - -LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao -CPPFLAGS += -I$(TAO_ROOT)/orbsvcs -I$(TAO_ROOT) -I$(TAO_ROOT)/tao/compat $(TSS_ORB_FLAG)#-H - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - - - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/orbsvcs/Naming_Service/Naming_Service.cpp b/TAO/orbsvcs/Naming_Service/Naming_Service.cpp deleted file mode 100644 index 81ad934661e..00000000000 --- a/TAO/orbsvcs/Naming_Service/Naming_Service.cpp +++ /dev/null @@ -1,174 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// orbsvcs/Naming_Service/Naming_Service -// -// = FILENAME -// Naming_Service.cpp -// -// = DESCRIPTION -// This class implements a Naming_Service object. -// -// = AUTHORS -// Nagarajan Surendran (naga@cs.wustl.edu) -// -// ============================================================================ - -#include "Naming_Service.h" - -// Default Constructor. - -Naming_Service::Naming_Service (void) - : ior_output_file_ (0), - pid_file_name_ (0) -{ -} - -// Constructor taking command-line arguments. - -Naming_Service::Naming_Service (int argc, - char* argv[]) - : ior_output_file_ (0), - pid_file_name_ (0) -{ - this->init (argc, argv); -} - -int -Naming_Service::parse_args (int argc, - char *argv[]) -{ - ACE_Get_Opt get_opts (argc, argv, "o:p:"); - int c; - - while ((c = get_opts ()) != -1) - switch (c) - { - case 'o': // outputs the naming service ior to a file. - this->ior_output_file_ = ACE_OS::fopen (get_opts.optarg, "w"); - if (this->ior_output_file_ == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Unable to open %s for writing: %p\n", - get_opts.optarg), -1); - break; - case 'p': - this->pid_file_name_ = get_opts.optarg; - break; - case '?': - default: - ACE_ERROR_RETURN ((LM_ERROR, - "usage: %s " - "-NScontextname " - "-o " - "-p " - "\n", - argv [0]), - -1); - } - return 0; -} - -// Initialize the state of the Naming_Service object -int -Naming_Service::init (int argc, - char* argv[]) -{ - int result; - CORBA::ORB_var orb; - PortableServer::POA_var child_poa; - - TAO_TRY - { - this->orb_manager_.init_child_poa (argc, - argv, - "child_poa", - TAO_TRY_ENV); - TAO_CHECK_ENV; - - orb = this->orb_manager_.orb (); - child_poa = this->orb_manager_.child_poa (); - - result = this->my_naming_server_.init (orb.in (), - child_poa.in (), - argc, - argv); - TAO_CHECK_ENV; - if (result < 0) - return result; - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("Naming_Service::init"); - return -1; - } - TAO_ENDTRY; - - // Check the non-ORB arguments. - result = this->parse_args (argc, - argv); - - if (result < 0) - return result; - if (this->ior_output_file_ != 0) - { - CORBA::String_var str = - this->my_naming_server_.naming_service_ior (); - ACE_OS::fprintf (this->ior_output_file_, - "%s", - str.in ()); - ACE_OS::fclose (this->ior_output_file_); - } - - if (this->pid_file_name_ != 0) - { - FILE* pidf = fopen (this->pid_file_name_, "w"); - if (pidf != 0) - { - ACE_OS::fprintf (pidf, "%d\n", ACE_OS::getpid ()); - ACE_OS::fclose (pidf); - } - } - return 0; -} - -// Run the ORB event loop - -int -Naming_Service::run (CORBA_Environment& env) -{ - return this->orb_manager_.run (env); -} - -// Destructor. - -Naming_Service::~Naming_Service (void) -{ -} - -int -main (int argc, char* argv[]) -{ - int init_result; - - Naming_Service naming_service; - - init_result = naming_service.init (argc,argv); - if (init_result < 0) - return init_result; - - TAO_TRY - { - naming_service.run (TAO_TRY_ENV); - TAO_CHECK_ENV; - - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("NamingService"); - return -1; - } - TAO_ENDTRY; - return 0; -} diff --git a/TAO/orbsvcs/Naming_Service/Naming_Service.dsp b/TAO/orbsvcs/Naming_Service/Naming_Service.dsp deleted file mode 100644 index 2635de8e1a1..00000000000 --- a/TAO/orbsvcs/Naming_Service/Naming_Service.dsp +++ /dev/null @@ -1,111 +0,0 @@ -# Microsoft Developer Studio Project File - Name="Naming_Service" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 5.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=Naming_Service - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "Naming_Service.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "Naming_Service.mak" CFG="Naming_Service - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "Naming_Service - Win32 Release" (based on\ - "Win32 (x86) Console Application") -!MESSAGE "Naming_Service - Win32 Debug" (based on\ - "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "Naming_Service - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Release" -# PROP Intermediate_Dir "Release" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /MD /W3 /GX /O2 /I ".." /I "..\.." /I "..\..\.." /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D TAO_ORBSVCS_HAS_DLL=1 /YX /FD /c -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 orbsvcs.lib TAO.lib ace.lib /nologo /subsystem:console /machine:I386 /libpath:"..\orbsvcs" /libpath:"..\..\tao" /libpath:"..\..\..\ace" - -!ELSEIF "$(CFG)" == "Naming_Service - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Debug" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I ".." /I "..\.." /I "..\..\.." /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D TAO_ORBSVCS_HAS_DLL=1 /YX /FD /c -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept -# ADD LINK32 orbsvcs.lib TAO.lib aced.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\orbsvcs" /libpath:"..\..\tao" /libpath:"..\..\..\ace" - -!ENDIF - -# Begin Target - -# Name "Naming_Service - Win32 Release" -# Name "Naming_Service - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Naming_Service.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\CosNaming_i.h -# End Source File -# Begin Source File - -SOURCE=.\Naming_Service.h -# End Source File -# Begin Source File - -SOURCE=.\NS_CosNaming.h -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/orbsvcs/Naming_Service/Naming_Service.dsw b/TAO/orbsvcs/Naming_Service/Naming_Service.dsw deleted file mode 100644 index e324e70ecc8..00000000000 --- a/TAO/orbsvcs/Naming_Service/Naming_Service.dsw +++ /dev/null @@ -1,29 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 5.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "Naming_Service"=.\Naming_Service.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/orbsvcs/Naming_Service/Naming_Service.h b/TAO/orbsvcs/Naming_Service/Naming_Service.h deleted file mode 100644 index 5cb39adcabe..00000000000 --- a/TAO/orbsvcs/Naming_Service/Naming_Service.h +++ /dev/null @@ -1,67 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// orbsvcs/Naming_Service/Naming_Service -// -// = FILENAME -// Naming_Service.h -// -// = DESCRIPTION -// This class implements the functionality of a Naming_Service. -// -// = AUTHORS -// Nagarajan Surendran (naga@cs.wustl.edu) -// -// ============================================================================ - -#if !defined (_NAMING_SERVICE_H) -#define _NAMING_SERVICE_H - -#include "tao/TAO.h" -#include "orbsvcs/Naming/Naming_Utils.h" - -class Naming_Service -{ - // = TITLE - // Defines a class that encapsulates the implementation of the - // COS Naming Service. - // - // = DESCRIPTION - // This class makes use of the and - // class to implement the COS . -public: - Naming_Service (void); - // Default Constructor. - - Naming_Service (int argc, char *argv[]); - // Constructor taking the command-line arguments. - - int init (int argc, char *argv[]); - // Initialize the Naming Service with the arguments. - - int run (CORBA_Environment& env); - // Run the Naming_Service. - - ~Naming_Service (void); - // Destructor. - -private: - int parse_args (int argc, char *argv[]); - // parses the arguments. - - TAO_ORB_Manager orb_manager_; - // The ORB manager. - - TAO_Naming_Server my_naming_server_; - // Naming Server instance. - - FILE *ior_output_file_; - // File to output the Naming Service IOR. - - const char *pid_file_name_; - // File to output the process id. -}; - -#endif /* _NAMING_SERVICE_H */ diff --git a/TAO/orbsvcs/Naming_Service/README b/TAO/orbsvcs/Naming_Service/README deleted file mode 100644 index 1fa3fe11f0b..00000000000 --- a/TAO/orbsvcs/Naming_Service/README +++ /dev/null @@ -1,76 +0,0 @@ -// $Id$ - -README: -====== - This directory consists of the files implementing the TAO -NamingService. - - The TAO NamingService makes use of IP Multicast to process -requests to the Naming Service. - -To Run: -====== - - % Naming_Service [-ORBport port] [-ORBobjrefstyle url] - [-ORBnameserviceport nsport] - -Arguments: -========== - port - The ORB port - nsport - Multicast port. - -Environment Variables: -===================== - - NameServicePort - Multicast port. - -Sample Run: -========== - - % Naming_Service -ORBport 20000 -ORBobjrefstyle url -ORBnameserviceport 19999 -starting up daemon -opening dynamic service Resource_Factory -did dynamic on Resource_Factory, error = 0 -opening dynamic service Client_Strategy_Factory -did dynamic on Client_Strategy_Factory, error = 0 -opening dynamic service Server_Strategy_Factory -did dynamic on Server_Strategy_Factory, error = 0 -listening as object -The multicast server setup is done. - -NameService Client: -================== - - A client of the TAO Naming Service will use the ORB -resolve_initial_references to resolve the NamingService object. This -will be done using Multicast by default. This behavior can be -overridden by these 2 ways. - - 1. passing the argument -ORBnameserviceior ior. - This ior is got from the output of the Naming_Service from - line 'listening as object '. - - 2. setting the env. variable 'NameService'. - -For example if a client wants to use the Naming_Service from the -sample run it would be like, - - %client -ORBnameserviceior - - -or set the environment variable, - - in a tcsh , - - % setenv NameService - - and then run the client, - - % client <.. client's arguments> - - These methods might be needed in an environment where there is -more than one NamingService to avoid the confusion of a server -registering its object with one NamingService and the client getting -the reply from some other NamingService. - - diff --git a/TAO/orbsvcs/Naming_Service/svc.conf b/TAO/orbsvcs/Naming_Service/svc.conf deleted file mode 100644 index 43c6a486c92..00000000000 --- a/TAO/orbsvcs/Naming_Service/svc.conf +++ /dev/null @@ -1,49 +0,0 @@ -# $Id$ -# -# This file contains a sample ACE_Service_Config configuration -# file specifying the strategy factories utilized by an application -# using TAO. There are currently only two possible factories: -# Client_Strategy_Factory and Server_Strategy_Factory. These names -# must be used as the second argument to their corresponding line, -# because that's what the ORB uses to find the desired factory. -# -# Note that there are two unordinary characteristics of the way *this* -# file is set up: -# - both client and server strategies are specified in the same -# file, which would only make sense for co-located clients & servers -# - both of the factories are actually sourced out of libTAO.so -# (TAO.DLL on Win32), and they would normally be in a separate -# dll from the TAO ORB Core. -# -# The options which can be passed to the Resource Factory are: -# -# -ORBresources -# where can be 'global' to specify globally-held resources, -# or 'tss' to specify thread-specific resources. -# -# The options which can be passed to the Client are: -# -# -# The options which can be passed to the Server are: -# -# -ORBconcurrency -# where can be 'thread-per-connection' to specify -# use of the ACE_Threaded_Strategy concurrency strategy, -# or 'reactive' to specify use of the ACE_Reactive_Strategy -# concurrency strategy. -# -# -ORBthreadflags -# specifies the default thread flags to use, where is a -# logical OR'ing of the flags THR_DETACHED, THR_BOUND, THR_NEW_LWP, -# THR_SUSPENDED, or THR_DAEMON. Note that not every flag may be valid -# on every platform. -# -# -ORBdemuxstrategy -# where can be one of 'dynamic', 'linear', 'active', or 'user', -# and specifies the type of object lookup strategy used internally. -# -ORBtablesize -# specifies the size of the object table -# -dynamic Resource_Factory Service_Object * TAO:_make_TAO_Resource_Factory() "-ORBresources global" -dynamic Client_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Client_Strategy_Factory() -dynamic Server_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Server_Strategy_Factory() "-ORBconcurrency reactive -ORBdemuxstrategy dynamic -ORBtablesize 128" diff --git a/TAO/orbsvcs/Scheduling_Service/Makefile b/TAO/orbsvcs/Scheduling_Service/Makefile deleted file mode 100644 index 83a40de6d86..00000000000 --- a/TAO/orbsvcs/Scheduling_Service/Makefile +++ /dev/null @@ -1,48 +0,0 @@ -# -# $Id$ -# - -BIN = Scheduling_Service -BUILD = $(BIN) - -SCHEDULE_SRCS = \ - Scheduling_Service.cpp - -LSRC = $(SCHEDULE_SRCS) - -SCHEDULE_OBJS=$(SCHEDULE_SRCS:.cpp=.o) - -LDLIBS = -lorbsvcs -lTAO -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -#include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -ifndef TAO_ROOT -TAO_ROOT = $(ACE_ROOT)/TAO -endif -TSS_ORB_FLAG = #-DTAO_HAS_TSS_ORBCORE -LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao -CPPFLAGS += -I$(TAO_ROOT)/orbsvcs -I$(TAO_ROOT) -I$(TAO_ROOT)/tao/compat $(TSS_ORB_FLAG)#-H - -Scheduling_Service: $(addprefix $(VDIR),$(SCHEDULE_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - - - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.cpp b/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.cpp deleted file mode 100644 index 145c7cd48d9..00000000000 --- a/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.cpp +++ /dev/null @@ -1,119 +0,0 @@ -// -// $Id$ -// - -#include "ace/Get_Opt.h" -#include "tao/corba.h" - -#include "orbsvcs/CosNamingC.h" - -#if defined (TAO_USES_STRATEGY_SCHEDULER) -#include "orbsvcs/Sched/Strategy_Scheduler.h" -#endif /* defined (TAO_USES_STRATEGY_SCHEDULER) */ - -#include "orbsvcs/Sched/Config_Scheduler.h" - -const char* service_name = "ScheduleService"; - -int -parse_args (int argc, char *argv []) -{ - ACE_Get_Opt get_opt (argc, argv, "n:"); - int opt; - - while ((opt = get_opt ()) != EOF) - { - switch (opt) - { - case 'n': - service_name = get_opt.optarg; - break; - case '?': - default: - ACE_DEBUG ((LM_DEBUG, - "Usage: %s " - "-n service_name " - "\n", - argv[0])); - return -1; - } - } - - return 0; -} - -int main (int argc, char *argv[]) -{ - TAO_TRY - { - // Initialize ORB. - CORBA::ORB_var orb = - CORBA::ORB_init (argc, argv, "", TAO_TRY_ENV); - TAO_CHECK_ENV; - - if (parse_args (argc, argv) != 0) - return 1; - - CORBA::Object_var poa_object = - orb->resolve_initial_references("RootPOA"); - if (CORBA::is_nil (poa_object.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize the POA.\n"), - 1); - - PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (poa_object.in (), TAO_TRY_ENV); - TAO_CHECK_ENV; - - PortableServer::POAManager_var poa_manager = - root_poa->the_POAManager (TAO_TRY_ENV); - TAO_CHECK_ENV; - - CORBA::Object_var naming_obj = - orb->resolve_initial_references ("NameService"); - if (CORBA::is_nil (naming_obj.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize the POA.\n"), - 1); - - CosNaming::NamingContext_var naming_context = - CosNaming::NamingContext::_narrow (naming_obj.in (), TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Create an Scheduling service servant... - ACE_Config_Scheduler scheduler_impl; - TAO_CHECK_ENV; - - RtecScheduler::Scheduler_var scheduler = - scheduler_impl._this (TAO_TRY_ENV); - TAO_CHECK_ENV; - - CORBA::String_var str = - orb->object_to_string (scheduler.in (), TAO_TRY_ENV); - TAO_CHECK_ENV; - - ACE_DEBUG ((LM_DEBUG, "The scheduler IOR is <%s>\n", str.in ())); - - // Register the servant with the Naming Context.... - CosNaming::Name schedule_name (1); - schedule_name.length (1); - schedule_name[0].id = CORBA::string_dup (service_name); - naming_context->bind (schedule_name, scheduler.in (), TAO_TRY_ENV); - TAO_CHECK_ENV; - - poa_manager->activate (TAO_TRY_ENV); - TAO_CHECK_ENV; - - ACE_DEBUG ((LM_DEBUG, "running scheduling service\n")); - if (orb->run () == -1) - ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "run"), 1); - - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("schedule_service"); - } - TAO_ENDTRY; - - return 0; -} diff --git a/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.dsp b/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.dsp deleted file mode 100644 index ffb8479c780..00000000000 --- a/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.dsp +++ /dev/null @@ -1,112 +0,0 @@ -# Microsoft Developer Studio Project File - Name="Scheduling_Service" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 5.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=Scheduling_Service - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "Scheduling_Service.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "Scheduling_Service.mak"\ - CFG="Scheduling_Service - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "Scheduling_Service - Win32 Release" (based on\ - "Win32 (x86) Console Application") -!MESSAGE "Scheduling_Service - Win32 Debug" (based on\ - "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "Scheduling_Service - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Release" -# PROP Intermediate_Dir "Release" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /MD /W3 /GX /O2 /I ".." /I "..\.." /I "..\..\.." /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D TAO_ORBSVCS_HAS_DLL=1 /YX /FD /c -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 orbsvcs.lib TAO.lib ace.lib /nologo /subsystem:console /machine:I386 /libpath:"..\orbsvcs" /libpath:"..\..\tao" /libpath:"..\..\..\ace" - -!ELSEIF "$(CFG)" == "Scheduling_Service - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Debug" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I ".." /I "..\.." /I "..\..\.." /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D TAO_ORBSVCS_HAS_DLL=1 /YX /FD /c -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept -# ADD LINK32 orbsvcs.lib TAO.lib aced.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\orbsvcs" /libpath:"..\..\tao" /libpath:"..\..\..\ace" - -!ENDIF - -# Begin Target - -# Name "Scheduling_Service - Win32 Release" -# Name "Scheduling_Service - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Scheduling_Service.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Config_Scheduler.h -# End Source File -# Begin Source File - -SOURCE=.\Scheduler.h -# End Source File -# Begin Source File - -SOURCE=.\Scheduler_Generic.h -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.dsw b/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.dsw deleted file mode 100644 index ab63039796a..00000000000 --- a/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.dsw +++ /dev/null @@ -1,29 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 5.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "Scheduling_Service"=.\Scheduling_Service.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/orbsvcs/Scheduling_Service/svc.conf b/TAO/orbsvcs/Scheduling_Service/svc.conf deleted file mode 100644 index 43c6a486c92..00000000000 --- a/TAO/orbsvcs/Scheduling_Service/svc.conf +++ /dev/null @@ -1,49 +0,0 @@ -# $Id$ -# -# This file contains a sample ACE_Service_Config configuration -# file specifying the strategy factories utilized by an application -# using TAO. There are currently only two possible factories: -# Client_Strategy_Factory and Server_Strategy_Factory. These names -# must be used as the second argument to their corresponding line, -# because that's what the ORB uses to find the desired factory. -# -# Note that there are two unordinary characteristics of the way *this* -# file is set up: -# - both client and server strategies are specified in the same -# file, which would only make sense for co-located clients & servers -# - both of the factories are actually sourced out of libTAO.so -# (TAO.DLL on Win32), and they would normally be in a separate -# dll from the TAO ORB Core. -# -# The options which can be passed to the Resource Factory are: -# -# -ORBresources -# where can be 'global' to specify globally-held resources, -# or 'tss' to specify thread-specific resources. -# -# The options which can be passed to the Client are: -# -# -# The options which can be passed to the Server are: -# -# -ORBconcurrency -# where can be 'thread-per-connection' to specify -# use of the ACE_Threaded_Strategy concurrency strategy, -# or 'reactive' to specify use of the ACE_Reactive_Strategy -# concurrency strategy. -# -# -ORBthreadflags -# specifies the default thread flags to use, where is a -# logical OR'ing of the flags THR_DETACHED, THR_BOUND, THR_NEW_LWP, -# THR_SUSPENDED, or THR_DAEMON. Note that not every flag may be valid -# on every platform. -# -# -ORBdemuxstrategy -# where can be one of 'dynamic', 'linear', 'active', or 'user', -# and specifies the type of object lookup strategy used internally. -# -ORBtablesize -# specifies the size of the object table -# -dynamic Resource_Factory Service_Object * TAO:_make_TAO_Resource_Factory() "-ORBresources global" -dynamic Client_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Client_Strategy_Factory() -dynamic Server_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Server_Strategy_Factory() "-ORBconcurrency reactive -ORBdemuxstrategy dynamic -ORBtablesize 128" diff --git a/TAO/orbsvcs/Trading_Service/Makefile b/TAO/orbsvcs/Trading_Service/Makefile deleted file mode 100644 index 93d95364925..00000000000 --- a/TAO/orbsvcs/Trading_Service/Makefile +++ /dev/null @@ -1,45 +0,0 @@ -#-------------------------------------------------------------------------- -# $Id$ -# Build the TAO Trading Service -#-------------------------------------------------------------------------- -#-------------------------------------------------------------------------- -# Local macros -#-------------------------------------------------------------------------- - -BIN = trader - -SVR_SRCS= trader.cpp - -LDLIBS = -lorbsvcs -lTAO - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -BUILD = $(VLIB) $(VSHLIB) $(SHLIBA) $(VBIN) - -#-------------------------------------------------------------------------- -# Include macros and targets -#-------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -ifndef TAO_ROOT - TAO_ROOT = $(ACE_ROOT)/TAO -endif - -#TSS_ORB_FLAG = #-DTAO_HAS_TSS_ORBCORE - -LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao -CPPFLAGS += -I$(TAO_ROOT)/orbsvcs -I$(TAO_ROOT) -I$(TAO_ROOT)/tao/compat $(TSS_ORB_FLAG) - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - - - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/orbsvcs/Trading_Service/svc.conf b/TAO/orbsvcs/Trading_Service/svc.conf deleted file mode 100644 index 43c6a486c92..00000000000 --- a/TAO/orbsvcs/Trading_Service/svc.conf +++ /dev/null @@ -1,49 +0,0 @@ -# $Id$ -# -# This file contains a sample ACE_Service_Config configuration -# file specifying the strategy factories utilized by an application -# using TAO. There are currently only two possible factories: -# Client_Strategy_Factory and Server_Strategy_Factory. These names -# must be used as the second argument to their corresponding line, -# because that's what the ORB uses to find the desired factory. -# -# Note that there are two unordinary characteristics of the way *this* -# file is set up: -# - both client and server strategies are specified in the same -# file, which would only make sense for co-located clients & servers -# - both of the factories are actually sourced out of libTAO.so -# (TAO.DLL on Win32), and they would normally be in a separate -# dll from the TAO ORB Core. -# -# The options which can be passed to the Resource Factory are: -# -# -ORBresources -# where can be 'global' to specify globally-held resources, -# or 'tss' to specify thread-specific resources. -# -# The options which can be passed to the Client are: -# -# -# The options which can be passed to the Server are: -# -# -ORBconcurrency -# where can be 'thread-per-connection' to specify -# use of the ACE_Threaded_Strategy concurrency strategy, -# or 'reactive' to specify use of the ACE_Reactive_Strategy -# concurrency strategy. -# -# -ORBthreadflags -# specifies the default thread flags to use, where is a -# logical OR'ing of the flags THR_DETACHED, THR_BOUND, THR_NEW_LWP, -# THR_SUSPENDED, or THR_DAEMON. Note that not every flag may be valid -# on every platform. -# -# -ORBdemuxstrategy -# where can be one of 'dynamic', 'linear', 'active', or 'user', -# and specifies the type of object lookup strategy used internally. -# -ORBtablesize -# specifies the size of the object table -# -dynamic Resource_Factory Service_Object * TAO:_make_TAO_Resource_Factory() "-ORBresources global" -dynamic Client_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Client_Strategy_Factory() -dynamic Server_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Server_Strategy_Factory() "-ORBconcurrency reactive -ORBdemuxstrategy dynamic -ORBtablesize 128" diff --git a/TAO/orbsvcs/Trading_Service/trader.cpp b/TAO/orbsvcs/Trading_Service/trader.cpp deleted file mode 100644 index 4125993570b..00000000000 --- a/TAO/orbsvcs/Trading_Service/trader.cpp +++ /dev/null @@ -1,123 +0,0 @@ -// $Id$ - -// ======================================================================== -// -// = BINARY -// trader -// -// = FILENAME -// trader.cpp -// -// = AUTHOR -// Marina Spivak -// Seth Widoff -// -// ======================================================================= - -#include "tao/corba.h" -#include "ace/Auto_Ptr.h" -#include "orbsvcs/IOR_Multicast.h" -#include "orbsvcs/Trader/Trader.h" -#include "orbsvcs/Trader/Service_Type_Repository.h" - -int -main(int argc, char * const *argv) -{ - TAO_TRY - { - CORBA::ORB_var orb = - CORBA::ORB_init (argc, argv, "internet", TAO_TRY_ENV); - TAO_CHECK_ENV; - - CORBA::Object_var poa_object = - orb->resolve_initial_references("RootPOA"); - - if (CORBA::is_nil (poa_object.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize the POA.\n"), - 1); - - PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (poa_object.in (), TAO_TRY_ENV); - TAO_CHECK_ENV; - - PortableServer::POAManager_var poa_manager = - root_poa->the_POAManager (TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Create a Service Type Repository and a Trader Object. - TAO_Service_Type_Repository type_repos; - auto_ptr trader = - TAO_Trader_Factory::create_linked_trader (); - TAO_Support_Attributes_Impl& sup_attr = trader->support_attributes (); - TAO_Trading_Components_Impl& trd_comp = trader->trading_components (); - - // Set the service type repository - sup_attr.type_repos (type_repos._this (TAO_TRY_ENV)); - TAO_CHECK_ENV; - -#if defined (ACE_HAS_IP_MULTICAST) - // Get reactor instance from TAO. - ACE_Reactor *reactor = - TAO_ORB_Core_instance ()->reactor (); - - // First, see if the user has given us a multicast port number - // for the name service on the command-line; - u_short port = - TAO_ORB_Core_instance ()->orb_params ()->name_service_port (); - - if (port == 0) - { - const char *port_number = - ACE_OS::getenv ("TradingServicePort"); - - if (port_number != 0) - port = ACE_OS::atoi (port_number); - else - port = TAO_DEFAULT_TRADING_SERVER_REQUEST_PORT; - } - - // The Spec says: return a reference to the Lookup interface - // from the resolve_initial_references method. - CosTrading::Lookup_var lookup = trd_comp.lookup_if (); - CORBA::String_var trading_ior = - orb->object_to_string (lookup.in (), TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Instantiate a server that will receive requests for an ior - TAO_IOR_Multicast ior_multicast ((char *) trading_ior.in (), - port, - ACE_DEFAULT_MULTICAST_ADDR, - TAO_SERVICEID_TRADINGSERVICE); - - // Register event handler for the ior multicast. - if (reactor->register_handler (&ior_multicast, - ACE_Event_Handler::READ_MASK) == -1) - ACE_DEBUG ((LM_DEBUG, - "cannot register Event handler\n")); - else - ACE_DEBUG ((LM_DEBUG, - "The multicast server setup is done.\n")); -#else /* ACE_HAS_IP_MULTICAST */ - - // Should dump the IOR somewhere. - -#endif /* ACE_HAS_IP_MULTICAST */ - - - poa_manager->activate (TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Begin trading! - if (orb->run () == -1) - ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "CORBA::ORB::run"), -1); - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("EC"); - } - TAO_ENDTRY; - - return 0; -} - diff --git a/TAO/orbsvcs/default.bld b/TAO/orbsvcs/default.bld deleted file mode 100755 index 505c317883c..00000000000 --- a/TAO/orbsvcs/default.bld +++ /dev/null @@ -1,44 +0,0 @@ -#!build -default: - nobuild - :cx_template_option=noautomatic - :optimize=standard - :optimize=memory - :optimize=loop - :dependency=nodepend - :debuglevel=multi - :cx_template=never - :object_dir=./obj - :sourcedirs=.. - :sourcedirs=../.. - :sourcedirs=/home/ace/ACE_wrappers.latest - :libdirs=../tao - :libdirs=/home/ace/ACE_wrappers.latest/ace - :libraries=tao.a - :libraries=libACE.a - :libraries=/appl/newgreen/vxppc603/ghsbltin.o - :defines=TAO_PLATFORM_SVC_CONF_FILE_NOTSUP - :defines=DEBUG -orbsvcs/orbsvcs.bld - library - :dependency=nodepend -Naming_Service/Naming_Service.bld - program - :dependency=nodepend - :outputname=NamingService - :libdirs=../orbsvcs - :libraries=orbsvcs.a -Event_Service/Event_Service.bld - program - :dependency=nodepend - :libdirs=../orbsvcs - :libraries=orbsvcs.a -Dump_Schedule/Dump_Schedule.bld - program - :dependency=nodepend - :libdirs=../orbsvcs -Scheduling_Service/Scheduling_Service.bld - program - :dependency=nodepend - :libdirs=../orbsvcs - :libraries=orbsvcs.a diff --git a/TAO/orbsvcs/orbsvcs.dsw b/TAO/orbsvcs/orbsvcs.dsw deleted file mode 100644 index 4d27565602a..00000000000 --- a/TAO/orbsvcs/orbsvcs.dsw +++ /dev/null @@ -1,131 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 5.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "Dump_Schedule"=.\Dump_Schedule\Dump_Schedule.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ - Begin Project Dependency - Project_Dep_Name orbsvcs - End Project Dependency -}}} - -############################################################################### - -Project: "EC_Multiple"=.\tests\EC_Multiple\EC_Multiple.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ - Begin Project Dependency - Project_Dep_Name orbsvcs - End Project Dependency -}}} - -############################################################################### - -Project: "Event_Latency"=.\tests\Event_Latency\Event_Latency.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ - Begin Project Dependency - Project_Dep_Name orbsvcs - End Project Dependency -}}} - -############################################################################### - -Project: "Event_Service"=.\Event_Service\Event_Service.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ - Begin Project Dependency - Project_Dep_Name orbsvcs - End Project Dependency -}}} - -############################################################################### - -Project: "LifeCycle_Service"=.\LifeCycle_Service\LifeCycle_Service.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Naming_Service"=.\Naming_Service\Naming_Service.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ - Begin Project Dependency - Project_Dep_Name orbsvcs - End Project Dependency -}}} - -############################################################################### - -Project: "Scheduling_Service"=.\Scheduling_Service\Scheduling_Service.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ - Begin Project Dependency - Project_Dep_Name orbsvcs - End Project Dependency -}}} - -############################################################################### - -Project: "orbsvcs"=.\orbsvcs\orbsvcs.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.cpp b/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.cpp deleted file mode 100644 index 9846b8b14dd..00000000000 --- a/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.cpp +++ /dev/null @@ -1,801 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// cos -// -// = FILENAME -// AVStreams_i.cpp -// -// = AUTHOR -// Sumedh Mungee -// -// -// ============================================================================ - -#include "orbsvcs/AV/AVStreams_i.h" - -// ---------------------------------------------------------------------- -// AV_Null_MediaCtrl -// ---------------------------------------------------------------------- -AV_Null_MediaCtrl::AV_Null_MediaCtrl (void) -{ -} - - -// ---------------------------------------------------------------------- -// TAO_Basic_StreamCtrl -// ---------------------------------------------------------------------- - -// Constructor -TAO_Basic_StreamCtrl::TAO_Basic_StreamCtrl (void) -{ -} - -TAO_Basic_StreamCtrl::~TAO_Basic_StreamCtrl (void) -{ -} - -// Stop the transfer of data of the stream -// Empty the_spec means apply operation to all flows -void -TAO_Basic_StreamCtrl::stop (const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) -{ - if (CORBA::is_nil (this->stream_endpoint_a_.in ())) - return; - - // Make the upcall into the application - this->stream_endpoint_a_->stop (the_spec, env); -} - -// Start the transfer of data in the stream. -// Empty the_spec means apply operation to all flows -void -TAO_Basic_StreamCtrl::start (const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) -{ - if (CORBA::is_nil (this->stream_endpoint_a_.in ())) - return; - - // Make the upcall into the application - this->stream_endpoint_a_->start (the_spec, env); -} - -// Tears down the stream. This will close the connection, and delete -// the streamendpoint and vdev associated with this stream -// Empty the_spec means apply operation to all flows -void -TAO_Basic_StreamCtrl::destroy (const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) -{ - if (CORBA::is_nil (this->stream_endpoint_a_.in ())) - return; - - // Make the upcall into the application - this->stream_endpoint_a_->destroy (the_spec, env); -} - -// Changes the QoS associated with the stream -// Empty the_spec means apply operation to all flows -CORBA::Boolean -TAO_Basic_StreamCtrl::modify_QoS (AVStreams::streamQoS &new_qos, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) -{ - ACE_UNUSED_ARG (new_qos); - ACE_UNUSED_ARG (the_spec); - ACE_UNUSED_ARG (env); - return 0; -} - -// Used by StreamEndPoint and VDev to inform StreamCtrl of events. -// E.g., loss of flow, reestablishment of flow, etc.. -void -TAO_Basic_StreamCtrl::push_event (const char *the_event, - CORBA::Environment &env) -{ - ACE_DEBUG ((LM_DEBUG, - "\n(%P|%t) Recieved event \"%s\"", - the_event)); - ACE_UNUSED_ARG (env); -} - -// @@ Need to throw not-supported exception here -void -TAO_Basic_StreamCtrl::set_FPStatus (const AVStreams::flowSpec &the_spec, - const char *fp_name, - const CORBA::Any &fp_settings, - CORBA::Environment &env) -{ - ACE_UNUSED_ARG (the_spec); - ACE_UNUSED_ARG (fp_name); - ACE_UNUSED_ARG (fp_settings); - ACE_UNUSED_ARG (env); -} - -// @@ Need to throw not-supported exception here -CORBA::Object_ptr -TAO_Basic_StreamCtrl::get_flow_connection (const char *flow_name, - CORBA::Environment &env) -{ - ACE_UNUSED_ARG (flow_name); - ACE_UNUSED_ARG (env); - return 0; -} - -// @@ Need to throw not-supported exception here -void -TAO_Basic_StreamCtrl::set_flow_connection (const char *flow_name, - CORBA::Object_ptr flow_connection, - CORBA::Environment &env) -{ - ACE_UNUSED_ARG (flow_name); - ACE_UNUSED_ARG (flow_connection); - ACE_UNUSED_ARG (env); -} - -// ---------------------------------------------------------------------- -// TAO_StreamCtrl -// ---------------------------------------------------------------------- - -TAO_StreamCtrl::TAO_StreamCtrl (void) -{ -} - -TAO_StreamCtrl::~TAO_StreamCtrl (void) -{ -} - -// request the two MMDevices to create vdev and stream endpoints. save -// the references returned. - -// The interaction diagram for this method is on page 13 of the spec -CORBA::Boolean -TAO_StreamCtrl::bind_devs (AVStreams::MMDevice_ptr a_party, - AVStreams::MMDevice_ptr b_party, - AVStreams::streamQoS &the_qos, - const AVStreams::flowSpec &the_flows, - CORBA::Environment &env) -{ - // Check to see if we have non-nil parties to bind! - if (CORBA::is_nil (a_party) || - CORBA::is_nil (b_party)) - ACE_ERROR_RETURN ((LM_ERROR, - "(%P|%t) TAO_StreamCtrl::bind_devs: " - "a_party or b_party is null!\n"), - 1); - - // Request a_party to create the endpoint and vdev - CORBA::Boolean met_qos; - CORBA::String_var named_vdev; - - this->stream_endpoint_a_ = - a_party-> create_A (this->_this (env), - this->vdev_a_.out (), - the_qos, - met_qos, - named_vdev.inout (), - the_flows, - env); - TAO_CHECK_ENV_RETURN (env, 1); - - ACE_DEBUG ((LM_DEBUG, - "(%P|%t) TAO_StreamCtrl::create_A: succeeded\n")); - - // Request b_party to create the endpoint and vdev - - this->stream_endpoint_b_ = - b_party-> create_B (this->_this (env), - this->vdev_b_.out (), - the_qos, - met_qos, - named_vdev.inout (), - the_flows, - env); - TAO_CHECK_ENV_RETURN (env, 1); - - ACE_DEBUG ((LM_DEBUG, - "(%P|%t) TAO_StreamCtrl::create_B: succeeded\n")); - - ACE_DEBUG ((LM_DEBUG, - "\nstream_endpoint_b_ = %s", - TAO_ORB_Core_instance ()->orb ()->object_to_string (this->stream_endpoint_b_, - env))); - TAO_CHECK_ENV_RETURN (env, 1); - - // Tell the 2 VDev's about one another - this->vdev_a_->set_peer (this->_this (env), - this->vdev_b_.in (), - the_qos, - the_flows, - env); - - TAO_CHECK_ENV_RETURN (env, 1); - - this->vdev_b_->set_peer (this->_this (env), - this->vdev_a_.in (), - the_qos, - the_flows, - env); - - TAO_CHECK_ENV_RETURN (env, 1); - - - // Now connect the streams together. This will - // establish the connection - this->stream_endpoint_a_->connect (this->stream_endpoint_b_, - the_qos, - the_flows, - env); - TAO_CHECK_ENV_RETURN (env, 1); - return 0; -} - -// Used to establish a connection between two endpoints -// directly, i.e. without a MMDevice -CORBA::Boolean -TAO_StreamCtrl::bind (AVStreams::StreamEndPoint_A_ptr a_party, - AVStreams::StreamEndPoint_B_ptr b_party, - AVStreams::streamQoS &the_qos, - const AVStreams::flowSpec &the_flows, - CORBA::Environment &env) -{ - if (CORBA::is_nil (a_party) || - CORBA::is_nil (b_party)) - ACE_ERROR_RETURN ((LM_ERROR, - "(%P|%t) TAO_StreamCtrl::bind:" - "a_party or b_party null!"), - 1); - - this->stream_endpoint_a_ = a_party; - this->stream_endpoint_b_ = b_party; - // Now connect the streams together - this->stream_endpoint_a_->connect (this->stream_endpoint_b_, - the_qos, - the_flows, - env); - TAO_CHECK_ENV_RETURN (env, 1); - return 0; -} - -void -TAO_StreamCtrl::unbind (CORBA::Environment &env) -{ - ACE_UNUSED_ARG (env); -} - -void -TAO_StreamCtrl::unbind_party (AVStreams::StreamEndPoint_ptr the_ep, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) -{ - ACE_UNUSED_ARG (the_ep); - ACE_UNUSED_ARG (the_spec); - ACE_UNUSED_ARG (env); -} - -// ---------------------------------------------------------------------- -// TAO_StreamEndPoint -// ---------------------------------------------------------------------- - -TAO_StreamEndPoint::TAO_StreamEndPoint (void) -{ - // this->handle_open (); -} - -// Stop the physical flow of data on the stream -// Empty the_spec --> apply to all flows -void -TAO_StreamEndPoint::stop (const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) -{ - // Make the upcall into the app - this->handle_stop (the_spec, env); -} - -// Start the physical flow of data on the stream -// Empty the_spec --> apply to all flows -void -TAO_StreamEndPoint::start (const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) -{ - // Make the upcall into the app - this->handle_start (the_spec, env); -} - -// Close the connection -void -TAO_StreamEndPoint::destroy (const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) -{ - // Make the upcall into the app - this->handle_destroy (the_spec, env); -} - -// Called by streamctrl, requesting us to call request_connection -// on the responder (to initiate a connection) -CORBA::Boolean -TAO_Server_StreamEndPoint::connect (AVStreams::StreamEndPoint_ptr responder, - AVStreams::streamQoS &qos_spec, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) -{ - ACE_ERROR_RETURN ((LM_ERROR, - "(%P|%t) Calling TAO_Server_StreamEndPoint::connect" - " is not compatible with the spec!" - "\n"), - -1); -} - -// Called by our peer endpoint, requesting us to establish -// a connection -CORBA::Boolean -TAO_StreamEndPoint::request_connection (AVStreams::StreamEndPoint_ptr initiator, - CORBA::Boolean is_mcast, - AVStreams::streamQoS &qos, - AVStreams::flowSpec &the_spec, - CORBA::Environment &env) -{ - ACE_DEBUG ((LM_DEBUG, "\n(%P|%t) TAO_StreamEndPoint::request_connection called")); - ACE_DEBUG ((LM_DEBUG, - "\n(%P|%t) TAO_StreamEndPoint::request_connection: " - "flowspec has length = %d" - "and the strings are:", - the_spec.length ())); - for (int i = 0; i < the_spec.length (); i++) - ACE_DEBUG ((LM_DEBUG, - the_spec [i])); - - return 0; -} - -// @@ Need to throw not-supported exception here -CORBA::Boolean -TAO_StreamEndPoint::modify_QoS (AVStreams::streamQoS &new_qos, - const AVStreams::flowSpec &the_flows, - CORBA::Environment &env) -{ - return 0; -} - -// @@ Need to throw not-supported exception here -CORBA::Boolean -TAO_StreamEndPoint::set_protocol_restriction (const AVStreams::protocolSpec &the_pspec, - CORBA::Environment &env) -{ - return 0; -} - -void -TAO_StreamEndPoint::disconnect (const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) -{ -} - -// @@ Need to throw not-supported exception here -void -TAO_StreamEndPoint::set_FPStatus (const AVStreams::flowSpec &the_spec, - const char *fp_name, - const CORBA::Any &fp_settings, - CORBA::Environment &env) -{ -} - -// @@ Need to throw not-supported exception here -CORBA::Object_ptr -TAO_StreamEndPoint::get_fep (const char *flow_name, - CORBA::Environment &env) -{ - return 0; -} - -// @@ Need to throw not-supported exception here -char * -TAO_StreamEndPoint::add_fep (CORBA::Object_ptr the_fep, - CORBA::Environment &env) -{ - return 0; -} - -// @@ Need to throw not-supported exception here -void -TAO_StreamEndPoint::remove_fep (const char *fep_name, - CORBA::Environment &env) -{ -} - -// @@ Need to throw not-supported exception here -void -TAO_StreamEndPoint::set_negotiator (AVStreams::Negotiator_ptr new_negotiator, - CORBA::Environment &env) -{ -} - -// @@ Need to throw not-supported exception here -void -TAO_StreamEndPoint::set_key (const char *flow_name, - const encryption_key & the_key, - CORBA::Environment &env) -{ -} - -// @@ Need to throw not-supported exception here -void -TAO_StreamEndPoint::set_source_id (CORBA::Long source_id, - CORBA::Environment &env) -{ -} - -TAO_StreamEndPoint::~TAO_StreamEndPoint (void) -{ - this->handle_close (); -} - -// ---------------------------------------------------------------------- -// TAO_Client_StreamEndPoint -// ---------------------------------------------------------------------- - -TAO_Client_StreamEndPoint::TAO_Client_StreamEndPoint (void) -{ - ACE_DEBUG ((LM_DEBUG, - "(%P|%t) TAO_Client_StreamEndPoint::TAO_Client_StreamEndPoint: created\n")); -} - -CORBA::Boolean -TAO_Client_StreamEndPoint::connect (AVStreams::StreamEndPoint_ptr responder, - AVStreams::streamQoS &qos_spec, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) -{ - AVStreams::flowSpec flow_spec (the_spec); - this->handle_preconnect (flow_spec); - - // Use the base class implementation of connect - responder->request_connection (this->_this (env), - 0, - qos_spec, - flow_spec, - env); - - TAO_CHECK_ENV_RETURN (env,CORBA::B_FALSE); - - // Make the upcall to the app - return this->handle_postconnect (flow_spec); - - -} - - -// @@ Need to throw not-supported exception here -CORBA::Boolean -TAO_Client_StreamEndPoint::multiconnect (AVStreams::streamQoS &the_qos, - AVStreams::flowSpec &the_spec, - CORBA::Environment &env) -{ - return 0; -} - -// @@ Need to throw not-supported exception here -CORBA::Boolean -TAO_Client_StreamEndPoint::connect_leaf (AVStreams::StreamEndPoint_B_ptr the_ep, - AVStreams::streamQoS &the_qos, - const AVStreams::flowSpec &the_flows, - CORBA::Environment &env) -{ - return 0; -} - -// @@ Need to throw not-supported exception here -void -TAO_Client_StreamEndPoint::disconnect_leaf (AVStreams::StreamEndPoint_B_ptr the_ep, - const AVStreams::flowSpec &theSpec, - CORBA::Environment &env) -{ -} - -// @@ Need to throw not-supported exception here -TAO_Client_StreamEndPoint::~TAO_Client_StreamEndPoint (void) -{ -} - -// ---------------------------------------------------------------------- -// TAO_Server_StreamEndPoint -// ---------------------------------------------------------------------- - -TAO_Server_StreamEndPoint::TAO_Server_StreamEndPoint (void) -{ - ACE_DEBUG ((LM_DEBUG, - "\n(%P|%t) TAO_Server_StreamEndPoint::TAO_Server_StreamEndPoint: created")); -} - -CORBA::Boolean -TAO_Server_StreamEndPoint::request_connection (AVStreams::StreamEndPoint_ptr initiator, - CORBA::Boolean is_mcast, - AVStreams::streamQoS &qos, - AVStreams::flowSpec &the_spec, - CORBA::Environment &env) - -{ - // Use the base class implementation of request_connection - TAO_StreamEndPoint::request_connection (initiator, - is_mcast, - qos, - the_spec, - env); - - TAO_CHECK_ENV_RETURN (env,CORBA::B_FALSE); - // Make the upcall to the app - return this->handle_connection_requested (the_spec, - env); - -} -CORBA::Boolean -TAO_Server_StreamEndPoint::multiconnect (AVStreams::streamQoS &the_qos, - AVStreams::flowSpec &the_spec, - CORBA::Environment &env) -{ - return 0; -} - -TAO_Server_StreamEndPoint::~TAO_Server_StreamEndPoint (void) -{ -} - -// ---------------------------------------------------------------------- -// TAO_VDev -// ---------------------------------------------------------------------- - -TAO_VDev::TAO_VDev (void) -{ - ACE_DEBUG ((LM_DEBUG, - "(%P|%t) TAO_VDev::TAO_VDev: created\n")); -} - -// StreamCtrl will call this to give us a reference to itself, and to -// our peer vdev.. -CORBA::Boolean -TAO_VDev::set_peer (AVStreams::StreamCtrl_ptr the_ctrl, - AVStreams::VDev_ptr the_peer_dev, - AVStreams::streamQoS &the_qos, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) -{ - ACE_DEBUG ((LM_DEBUG, - "(%P|%t) TAO_VDev::set_peer: called")); - - CORBA::String_var ior = TAO_ORB_Core_instance ()->orb ()->object_to_string (the_peer_dev, - env); - - TAO_CHECK_ENV_RETURN (env, - CORBA::B_FALSE); - - ACE_DEBUG ((LM_DEBUG, - "(%P|%t) TAO_VDev::set_peer: my peer is %s\n", - ior.in ())); - - CORBA::Any anyval; - anyval <<= ior.in (); - this->define_property ("Related_VDev", - anyval, - env); - - TAO_CHECK_ENV_RETURN (env, - CORBA::B_FALSE); - - this->streamctrl_ = the_ctrl; - this->peer_ = the_peer_dev; - - CORBA::Any_ptr anyptr; - CORBA::String media_ctrl_ior; - anyptr = this->peer_->get_property_value ("Related_MediaCtrl", - env); - TAO_CHECK_ENV_RETURN (env,CORBA::B_TRUE); - - if (anyptr != 0) - { - *anyptr >>= media_ctrl_ior; - ACE_DEBUG ((LM_DEBUG,"The Media Control IOR is %s\n", - media_ctrl_ior)); - } - CORBA::Object_ptr media_ctrl_obj = - TAO_ORB_Core_instance ()->orb ()->string_to_object - (media_ctrl_ior,env); - TAO_CHECK_ENV_RETURN (env, CORBA::B_FALSE); - - CORBA::Boolean result = - this->set_media_ctrl (media_ctrl_obj,env); - TAO_CHECK_ENV_RETURN (env,CORBA::B_FALSE); - - return result; -} - -CORBA::Boolean -TAO_VDev::set_media_ctrl (CORBA::Object_ptr media_ctrl, - CORBA::Environment &env) -{ - return CORBA::B_TRUE; -} - -// @@ Need to throw not-supported exception here -CORBA::Boolean -TAO_VDev::set_Mcast_peer (AVStreams::StreamCtrl_ptr the_ctrl, - AVStreams::MCastConfigIf_ptr a_mcastconfigif, - AVStreams::streamQoS &the_qos, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) -{ - return 0; -} - -void -TAO_VDev::configure (const CosPropertyService::Property &the_config_mesg, - CORBA::Environment &env) -{ -} - -void -TAO_VDev::set_format (const char *flowName, - const char *format_name, - CORBA::Environment &env) -{ -} - -void -TAO_VDev::set_dev_params (const char *flowName, - const CosPropertyService::Properties &new_params, - CORBA::Environment &env) -{ -} - -CORBA::Boolean -TAO_VDev::modify_QoS (AVStreams::streamQoS &the_qos, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) -{ - return 0; -} - -TAO_VDev::~TAO_VDev (void) -{ -} - -// ---------------------------------------------------------------------- -// TAO_MMDevice -// ---------------------------------------------------------------------- - - -TAO_MMDevice::TAO_MMDevice (TAO_AV_Endpoint_Strategy *endpoint_strategy) - : endpoint_strategy_ (endpoint_strategy) -{ -} - -// create a streamctrl which is colocated with me, use that streamctrl -// to bind the peer_device with me. -AVStreams::StreamCtrl_ptr -TAO_MMDevice ::bind (AVStreams::MMDevice_ptr peer_device, - AVStreams::streamQoS &the_qos, - CORBA::Boolean_out is_met, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) -{ -#if 0 - TAO_TRY - { - TAO_StreamCtrl *stream_ctrl = new TAO_StreamCtrl (); - if (stream_ctrl == 0) - return 0; - stream_ctrl->bind_devs (peer_device, - AVStreams::StreamCtrl::_duplicate - (this->_this (TAO_TRY_ENV)), - the_qos, - the_spec, - TAO_TRY_ENV); - TAO_CHECK_ENV; - return stream_ctrl; - } - TAO_CATCH (CORBA::SystemException, sysex) - { - TAO_TRY_ENV.print_exception ("System Exception"); - return -1; - } - TAO_CATCH (CORBA::UserException, userex) - { - TAO_TRY_ENV.print_exception ("User Exception"); - return -1; - } - TAO_ENDTRY; -#endif - return 0; -} - -AVStreams::StreamCtrl_ptr -TAO_MMDevice::bind_mcast (AVStreams::MMDevice_ptr first_peer, - AVStreams::streamQoS &the_qos, - CORBA::Boolean_out is_met, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) -{ - return 0; -} - -AVStreams::StreamEndPoint_A_ptr -TAO_MMDevice::create_A (AVStreams::StreamCtrl_ptr the_requester, - AVStreams::VDev_out the_vdev, - AVStreams::streamQoS &the_qos, - CORBA::Boolean_out met_qos, - char *&named_vdev, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) -{ - AVStreams::StreamEndPoint_A_ptr ptr; - if (this->endpoint_strategy_->create_A (ptr, - the_vdev, - env) == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "(%P|%t) Error in create_A\n"), - 0); - - TAO_CHECK_ENV_RETURN (env, 0); - - return ptr; -} - - -AVStreams::StreamEndPoint_B_ptr -TAO_MMDevice::create_B (AVStreams::StreamCtrl_ptr the_requester, - AVStreams::VDev_out the_vdev, - AVStreams::streamQoS &the_qos, - CORBA::Boolean_out met_qos, - char *&named_vdev, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) -{ - AVStreams::StreamEndPoint_B_ptr ptr; - if (this->endpoint_strategy_->create_B (ptr, - the_vdev, - env) == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "(%P|%t) Error in create_B\n"), - 0); - - TAO_CHECK_ENV_RETURN (env, 0); - - return ptr; -} - -void -TAO_MMDevice::destroy (AVStreams::StreamEndPoint_ptr the_ep, - const char *vdev_name, - CORBA::Environment &env) -{ -} - -// need to throw notsupported exception -char * -TAO_MMDevice::add_fdev (CORBA::Object_ptr the_fdev, - CORBA::Environment &env) -{ - return 0; -} - -// need to throw notsupported exception -CORBA::Object_ptr -TAO_MMDevice::get_fdev (const char *flow_name, - CORBA::Environment &env) -{ - return 0; -} - -// need to throw notsupported exception -void -TAO_MMDevice::remove_fdev (const char *flow_name, - CORBA::Environment &env) -{ -} - -TAO_MMDevice::~TAO_MMDevice (void) -{ -} - diff --git a/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.h b/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.h deleted file mode 100644 index 97faeb77d38..00000000000 --- a/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.h +++ /dev/null @@ -1,488 +0,0 @@ -/* -*- C++ -*- */ - -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// cos -// -// = FILENAME -// AVStreams_i.h -// -// = AUTHOR -// Sumedh Mungee -// -// -// ============================================================================ - -#if !defined (AVSTREAMS_I_H) -#define AVSTREAMS_I_H - -#include "orbsvcs/orbsvcs_export.h" -#include "orbsvcs/CosPropertyServiceS.h" -#include "orbsvcs/AVStreamsS.h" -#include "orbsvcs/Property/CosPropertyService_i.h" -#include "ace/Process.h" -#include "orbsvcs/CosNamingC.h" -#include "orbsvcs/AV/Endpoint_Strategy.h" -#include "orbsvcs/Null_MediaCtrlS.h" - -class TAO_ORBSVCS_Export AV_Null_MediaCtrl - : public virtual POA_Null_MediaCtrl -{ -public: - AV_Null_MediaCtrl (void); -}; - -class TAO_ORBSVCS_Export TAO_Basic_StreamCtrl - : public virtual POA_AVStreams::Basic_StreamCtrl -// = DESCRIPTION -// Base class for StreamCtrl, implements basic stream start -// and stop functionality -{ - public: - TAO_Basic_StreamCtrl (void); - // Default Constructor - - virtual void stop (const AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - // Stop the transfer of data of the stream - // Empty the_spec means apply operation to all flows - - virtual void start (const AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - // Start the transfer of data in the stream. - // Empty the_spec means apply operation to all flows - - virtual void destroy (const AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - // Tears down the stream. This will close the connection, and delete - // the streamendpoint and vdev associated with this stream - // Empty the_spec means apply operation to all flows - - virtual CORBA::Boolean modify_QoS (AVStreams::streamQoS &new_qos, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - // Changes the QoS associated with the stream - // Empty the_spec means apply operation to all flows - - virtual void push_event (const char *the_event, - CORBA::Environment &env); - // Used by StreamEndPoint and VDev to inform StreamCtrl of events. - // E.g., loss of flow, reestablishment of flow, etc.. - - virtual void set_FPStatus (const AVStreams::flowSpec &the_spec, - const char *fp_name, - const CORBA::Any &fp_settings, - CORBA::Environment &env); - // Used to control the flow protocol parameters. - - virtual CORBA::Object_ptr get_flow_connection (const char *flow_name, - CORBA::Environment &env); - // Not implemented in the light profile, will raise the notsupported - // exception - - virtual void set_flow_connection (const char *flow_name, - CORBA::Object_ptr flow_connection, - CORBA::Environment &env); - // Not implemented in the light profile, will raise the notsupported - // exception - - virtual ~TAO_Basic_StreamCtrl (void); - // Destructor - - protected: - - AVStreams::VDev_var vdev_a_; - AVStreams::VDev_var vdev_b_; - // The Virtual Devices for this stream - - AVStreams::StreamEndPoint_A_var stream_endpoint_a_; - AVStreams::StreamEndPoint_B_var stream_endpoint_b_; - // The Endpoints for this stream -}; - -class TAO_ORBSVCS_Export TAO_StreamCtrl - : public virtual POA_AVStreams::StreamCtrl, - public virtual TAO_Basic_StreamCtrl -// = DESCRIPTION -// Implementation the A/V StreamCtrl class. this class -// is used to control the stream. It should be subclassed -// by applications that want to provide more control features. -{ -public: - TAO_StreamCtrl (void); - // Default Constructor - - virtual CORBA::Boolean bind_devs (AVStreams::MMDevice_ptr a_party, - AVStreams::MMDevice_ptr b_party, - AVStreams::streamQoS &the_qos, - const AVStreams::flowSpec &the_flows, - CORBA::Environment &env); - // Establish a stream between a_party and b_party, - // with qos the_qos, and for the flows in the_flows - // if the_flows is empty, bind all the flows - // Causes a connection to be established between the StreamEndpoints. - // Returns success/failure - - virtual CORBA::Boolean bind (AVStreams::StreamEndPoint_A_ptr a_party, - AVStreams::StreamEndPoint_B_ptr b_party, - AVStreams::streamQoS &the_qos, - const AVStreams::flowSpec &the_flows, - CORBA::Environment &env); - // Establish a connection between two streamendpoints. This can - // be used if the streamendpoints have been created independent of - // a MMDevice - - virtual void unbind_party (AVStreams::StreamEndPoint_ptr the_ep, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - // Unbind the_ep from the stream. Empty the_spec means apply to all flows. - - virtual void unbind (CORBA::Environment &env); - // unbind the stream. Same effect as Basic_StreamCtrl::destroy () - - virtual ~TAO_StreamCtrl (void); - // Destructor - -}; - - -class TAO_ORBSVCS_Export TAO_Base_StreamEndPoint -// = DESCRIPTION -// Base class for the A/V StreamEndPoint class. this class -// is used to control the stream. It should be subclassed -// by applications that want to provide more control features. -{ - -public: - - virtual int handle_open (void) = 0; - // called when streamendpoint is instantiated - - virtual int handle_close (void) = 0; - // called when streamendpoint is being destructed - - virtual int handle_stop (const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) = 0; - // Application needs to define this - - virtual int handle_start (const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) = 0; - // Application needs to define this - - - virtual int handle_destroy (const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) = 0; - // Application needs to define this -}; - -class TAO_ORBSVCS_Export TAO_Client_Base_StreamEndPoint - : public virtual TAO_Base_StreamEndPoint -{ -public: - virtual CORBA::Boolean handle_preconnect (AVStreams::flowSpec &the_spec) = 0; - // Application needs to define this - - virtual CORBA::Boolean handle_postconnect (AVStreams::flowSpec &the_spec) = 0; - // Application needs to define this -}; - -class TAO_ORBSVCS_Export TAO_Server_Base_StreamEndPoint - : public virtual TAO_Base_StreamEndPoint -{ -public: - virtual CORBA::Boolean handle_connection_requested (AVStreams::flowSpec &the_spec, - CORBA::Environment &env) = 0; - // Application needs to define this -}; - -class TAO_ORBSVCS_Export TAO_StreamEndPoint - : public virtual POA_AVStreams::StreamEndPoint, // The POA class - public virtual TAO_Base_StreamEndPoint -{ - // = DESCRIPTION - // The Stream EndPoint. Used to implement one endpoint of a stream - // that implements the transport layer. -public: - TAO_StreamEndPoint (void); - // Constructor - - virtual void stop (const AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - // Stop the stream. Empty the_spec means, for all the flows - - virtual void start (const AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - // Start the stream, Empty the_spec means, for all the flows - - virtual void destroy (const AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - // Destroy the stream, Empty the_spec means, for all the flows - - - virtual CORBA::Boolean connect (AVStreams::StreamEndPoint_ptr responder, - AVStreams::streamQoS &qos_spec, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env) = 0; - // Called by StreamCtrl. responder is the peer to connect to - - virtual CORBA::Boolean request_connection (AVStreams::StreamEndPoint_ptr initiator, - CORBA::Boolean is_mcast, - AVStreams::streamQoS &qos, - AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - // Called by the peer StreamEndPoint. The flow_spec indicates the - // flows (which contain transport addresses etc.) - - virtual CORBA::Boolean modify_QoS (AVStreams::streamQoS &new_qos, - const AVStreams::flowSpec &the_flows, - CORBA::Environment &env); - // Change the transport qos on a stream - - virtual CORBA::Boolean set_protocol_restriction (const AVStreams::protocolSpec &the_pspec, - CORBA::Environment &env); - // Used to restrict the set of protocols - - virtual void disconnect (const AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - // disconnect the flows - - virtual void set_FPStatus (const AVStreams::flowSpec &the_spec, - const char *fp_name, - const CORBA::Any &fp_settings, - CORBA::Environment &env); - // Used to control the flow - - virtual CORBA::Object_ptr get_fep (const char *flow_name, - CORBA::Environment &env); - // Not implemented in the light profile, throws notsupported - - virtual char * add_fep (CORBA::Object_ptr the_fep, - CORBA::Environment &env); - // Not implemented in the light profile, throws notsupported - - virtual void remove_fep (const char *fep_name, - CORBA::Environment &env); - // Not implemented in the light profile, throws notsupported - - virtual void set_negotiator (AVStreams::Negotiator_ptr new_negotiator, - CORBA::Environment &env); - // Used to "attach" a negotiator to the endpoint - - virtual void set_key (const char *flow_name, - const AVStreams::encryption_key & the_key, - CORBA::Environment &env); - // Used for public key encryption. - - virtual void set_source_id (CORBA::Long source_id, - CORBA::Environment &env); - // Used to set a unique id for packets sent by this streamendpoint - - virtual ~TAO_StreamEndPoint (void); - // Destructor - -}; - -class TAO_ORBSVCS_Export TAO_Client_StreamEndPoint : - public virtual POA_AVStreams::StreamEndPoint_A, - public virtual TAO_StreamEndPoint, - public virtual TAO_Client_Base_StreamEndPoint -{ - // = DESCRIPTION - // The "A" side of a streamendpoint -public: - TAO_Client_StreamEndPoint (void); - // Constructor - - virtual CORBA::Boolean connect (AVStreams::StreamEndPoint_ptr responder, - AVStreams::streamQoS &qos_spec, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - // Called by StreamCtrl. responder is the peer to connect to - - virtual CORBA::Boolean multiconnect (AVStreams::streamQoS &the_qos, - AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - // Used for ATM-style multicast - - virtual CORBA::Boolean connect_leaf (AVStreams::StreamEndPoint_B_ptr the_ep, - AVStreams::streamQoS &the_qos, - const AVStreams::flowSpec &the_flows, - CORBA::Environment &env); - // Used for ATM-style multicast - - virtual void disconnect_leaf (AVStreams::StreamEndPoint_B_ptr the_ep, - const AVStreams::flowSpec &theSpec, - CORBA::Environment &env); - // Used to remove a multicast leaf - - virtual ~TAO_Client_StreamEndPoint (void); - // Destructor - -}; - -class TAO_ORBSVCS_Export TAO_Server_StreamEndPoint : - public virtual POA_AVStreams::StreamEndPoint_B, - public virtual TAO_StreamEndPoint, - public virtual TAO_Server_Base_StreamEndPoint // Abstract interface -{ - // = DESCRIPTION - // The "B" side of a streamendpoint -public: - TAO_Server_StreamEndPoint (void); - // Constructor - - virtual CORBA::Boolean connect (AVStreams::StreamEndPoint_ptr responder, - AVStreams::streamQoS &qos_spec, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - - virtual CORBA::Boolean request_connection (AVStreams::StreamEndPoint_ptr initiator, - CORBA::Boolean is_mcast, - AVStreams::streamQoS &qos, - AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - // Called by the peer StreamEndPoint. The flow_spec indicates the - // flows (which contain transport addresses etc.) - - virtual CORBA::Boolean multiconnect (AVStreams::streamQoS &the_qos, - AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - // Used for internet-style multicast - - virtual ~TAO_Server_StreamEndPoint (void); - // Destructor -}; - -class TAO_ORBSVCS_Export TAO_VDev - :public virtual TAO_PropertySet, - public virtual POA_AVStreams::VDev -// = DESCRIPTION -// Implements the VDev interface. One of these is created per connection, -// and represents device-specific parameters -{ - public: - TAO_VDev (void); - // Default Constructor - - virtual CORBA::Boolean set_peer (AVStreams::StreamCtrl_ptr the_ctrl, - AVStreams::VDev_ptr the_peer_dev, - AVStreams::streamQoS &the_qos, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - // Called to tell the vdev who the streamctrl, peer vdev is - - virtual CORBA::Boolean set_Mcast_peer (AVStreams::StreamCtrl_ptr the_ctrl, - AVStreams::MCastConfigIf_ptr a_mcastconfigif, - AVStreams::streamQoS &the_qos, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - // Used to set the streamctrl and multicast device - - virtual void configure (const CosPropertyService::Property &the_config_mesg, - CORBA::Environment &env); - // Called by the peer VDev to configure the device (catch all) - - virtual void set_format (const char *flowName, - const char *format_name, - CORBA::Environment &env); - // Used to set a format on a flowname - - virtual void set_dev_params (const char *flowName, - const CosPropertyService::Properties &new_params, - CORBA::Environment &env); - // Used to set device parameters - - virtual CORBA::Boolean modify_QoS (AVStreams::streamQoS &the_qos, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - // Called to change QoS of the device - - virtual ~TAO_VDev (void); - // Destructor - - protected: - virtual CORBA::Boolean set_media_ctrl (CORBA::Object_ptr media_ctrl, - CORBA::Environment &env); - // hook called after set_peer is done to set the media ctrl of the peer vdev. - private: - AVStreams::StreamCtrl_var streamctrl_; - // My stream controller - - AVStreams::VDev_var peer_; - // My peer -}; - -class TAO_AV_Endpoint_Strategy; - -class TAO_ORBSVCS_Export TAO_MMDevice - : public virtual TAO_PropertySet, - public virtual POA_AVStreams::MMDevice -// = DESCRIPTION -// Implements a factory to create Endpoints and VDevs -{ - protected: - - TAO_AV_Endpoint_Strategy *endpoint_strategy_; - - public: - - TAO_MMDevice (TAO_AV_Endpoint_Strategy *endpoint_strategy_); - // Constructor - - virtual AVStreams::StreamCtrl_ptr bind (AVStreams::MMDevice_ptr peer_device, - AVStreams::streamQoS &the_qos, - CORBA::Boolean_out is_met, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - // Can be used to request the MMDevice to create a new StreamCtrl, - // and call bind_devs on it - - virtual AVStreams::StreamCtrl_ptr bind_mcast (AVStreams::MMDevice_ptr first_peer, - AVStreams::streamQoS &the_qos, - CORBA::Boolean_out is_met, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - // Multicast bind - - virtual AVStreams::StreamEndPoint_A_ptr create_A (AVStreams::StreamCtrl_ptr the_requester, - AVStreams::VDev_out the_vdev, - AVStreams::streamQoS &the_qos, - CORBA::Boolean_out met_qos, - char *&named_vdev, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - // Called by StreamCtrl to create a "A" type streamandpoint and vdev - - virtual AVStreams::StreamEndPoint_B_ptr create_B (AVStreams::StreamCtrl_ptr the_requester, - AVStreams::VDev_out the_vdev, - AVStreams::streamQoS &the_qos, - CORBA::Boolean_out met_qos, - char *&named_vdev, - const AVStreams::flowSpec &the_spec, - CORBA::Environment &env); - // Called by StreamCtrl to create a "B" type streamandpoint and vdev - - virtual void destroy (AVStreams::StreamEndPoint_ptr the_ep, - const char *vdev_name, - CORBA::Environment &env); - // Remove the StreamEndPoint and the related vdev - - virtual char * add_fdev (CORBA::Object_ptr the_fdev, - CORBA::Environment &env); - // Not supported in the light profile, raises notsupported - - virtual CORBA::Object_ptr get_fdev (const char *flow_name, - CORBA::Environment &env); - // Not supported in the light profile, raises notsupported - - virtual void remove_fdev (const char *flow_name, - CORBA::Environment &env); - // Not supported in the light profile, raises notsupported - - virtual ~TAO_MMDevice (void); - // Destructor -}; -#endif /* AVSTREAMS_I_H */ diff --git a/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.cpp b/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.cpp deleted file mode 100644 index 5ad6d36d92a..00000000000 --- a/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.cpp +++ /dev/null @@ -1,891 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// cos -// -// = FILENAME -// Endpoint_Strategy.cpp -// -// = AUTHOR -// Sumedh Mungee -// -// -// ============================================================================ - -#include "orbsvcs/AV/Endpoint_Strategy.h" - -// ---------------------------------------------------------------------- -// TAO_AV_Endpoint_Strategy -// ---------------------------------------------------------------------- - -// Constructor -TAO_AV_Endpoint_Strategy::TAO_AV_Endpoint_Strategy (void) -{ -} - -// The base class defines the "failure" case, so that unless the -// subclasses override this, the call will fail. This is done so that -// subclasses need only define the calls that they want to support, -// and the remaining calls will fail automagically -int -TAO_AV_Endpoint_Strategy::create_A (AVStreams::StreamEndPoint_A_ptr &stream_endpoint, - AVStreams::VDev_ptr &vdev, - CORBA::Environment &env) -{ - ACE_ERROR_RETURN ((LM_ERROR, - "(%P|%t) Error creating A endpoint\n"), - -1); -} - -// The base class defines the "failure" case, so that unless the -// subclasses override this, the call will fail. This is done so that -// subclasses need only define the calls that they want to support, -// and the remaining calls will fail automagically -int -TAO_AV_Endpoint_Strategy::create_B (AVStreams::StreamEndPoint_B_ptr &stream_endpoint, - AVStreams::VDev_ptr &vdev, - CORBA::Environment &env) -{ - ACE_ERROR_RETURN ((LM_ERROR, - "(%P|%t) Error creating B endpoint\n"), - -1); -} - - -// ---------------------------------------------------------------------- -// TAO_AV_Endpoint_Process_Strategy -// ---------------------------------------------------------------------- - -// Constructor -TAO_AV_Endpoint_Process_Strategy::TAO_AV_Endpoint_Process_Strategy (ACE_Process_Options *process_options) - : process_options_ (process_options) -{ -} - -// Spawns the process, and waits for it to finish booting. -// Then uses bind_to_naming_service, get_stream_endpoint, and get_vdev -// to get the object references to the various objects created in the -// child -int -TAO_AV_Endpoint_Process_Strategy::activate (void) -{ - ACE_Process process; - - // Create a new process to contain this endpoint - pid_t pid = process.spawn (*this->process_options_); - - // Process creation failed - if (pid == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "(%P|%t) ACE_Process:: spawn failed: %p\n", - "spawn"), - -1); - - // Create a unique semaphore name, using my hostname, and pid. - char sem_str [BUFSIZ]; - char host [MAXHOSTNAMELEN]; - ACE_OS::hostname (host, - sizeof host); - - // create a unique semaphore name - ::sprintf (sem_str, - "%s:%s:%d", - "TAO_AV_Process_Semaphore", - host, - pid); - - ACE_DEBUG ((LM_DEBUG, - "(%P|%t) semaphore is %s\n", - sem_str)); - // Create the semaphore - ACE_Process_Semaphore semaphore (0, // 0 means that the - // semaphore is locked initially - sem_str); - - // wait until the child finishes booting - while (1) - { - if (semaphore.acquire () == -1) - { - // See if my child process is still alive -- if not, return an error - if (ACE_OS::kill (pid, - 0) == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "(%P|%t) Process_Strategy: Process being waited on died unexpectedly.\n"), - -1); - // if we were not interrupted due to a EINTR, break - if (errno != EINTR) - break; - } - else - break; - } - - // The job of the semaphore is done, remove it. - if (semaphore.remove () == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "(%P|%t) semaphore remove failed: %p\n", - "remove"), - -1); - - TAO_TRY - { - // Get ourselves a Naming service - this->bind_to_naming_service (TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Get the stream endpoint created by the child from the naming service - this->get_stream_endpoint (TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Get the Vdev created by the child from the naming service - this->get_vdev (TAO_TRY_ENV); - TAO_CHECK_ENV; - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("TAO_Endpoint_Process_Strategy::activate"); - return -1; - } - TAO_ENDTRY; - - return 0; -} - -// Get ourselves a Naming service reference -int -TAO_AV_Endpoint_Process_Strategy::bind_to_naming_service (CORBA::Environment &env) -{ - if (CORBA::is_nil (this->naming_context_.in ()) == CORBA::B_FALSE) - return 0; - - CORBA::Object_var naming_obj = - TAO_ORB_Core_instance ()->orb ()->resolve_initial_references ("NameService"); - - if (CORBA::is_nil (naming_obj.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to resolve the Name Service.\n"), - -1); - this->naming_context_ = - CosNaming::NamingContext::_narrow (naming_obj.in (), - env); - TAO_CHECK_ENV_RETURN (env, -1); - - return 0; -} - -// Get the VDev created in the child process from the namingservice -int -TAO_AV_Endpoint_Process_Strategy::get_vdev (CORBA::Environment &env) -{ - // Create the name - CosNaming::Name VDev_Name (1); - VDev_Name.length (1); - VDev_Name [0].id = CORBA::string_dup - ("VDev"); - - // Get the CORBA::Object - CORBA::Object_var vdev = - this->naming_context_->resolve (VDev_Name, - env); - TAO_CHECK_ENV_RETURN (env, -1); - - // Narrow it - this->vdev_ = - AVStreams::VDev::_narrow (vdev.in (), - env); - TAO_CHECK_ENV_RETURN (env, -1); - - // Check if valid - if (CORBA::is_nil (this->vdev_)) - ACE_ERROR_RETURN ((LM_ERROR, - " could not resolve Stream_Endpoint_B in Naming service <%s>\n"), - -1); - return 0; -} - -// ---------------------------------------------------------------------- -// TAO_AV_Endpoint_Process_Strategy_A -// ---------------------------------------------------------------------- - -// Constructor -TAO_AV_Endpoint_Process_Strategy_A::TAO_AV_Endpoint_Process_Strategy_A (ACE_Process_Options *process_options) - : TAO_AV_Endpoint_Process_Strategy (process_options) -{ -} - -// the "A" type endpoint creator -int -TAO_AV_Endpoint_Process_Strategy_A::create_A (AVStreams::StreamEndPoint_A_ptr &stream_endpoint, - AVStreams::VDev_ptr &vdev, - CORBA::Environment &env) -{ - // use the baseclass activate - if (this->activate () == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "(%P|%t) TAO_AV_Endpoint_Process_Strategy: Error in activate ()\n"), - -1); - - // return the object references - stream_endpoint = this->stream_endpoint_a_; - vdev = this->vdev_; - return 0; - -} - -// Gets the stream endpoint object reference from the naming service -int -TAO_AV_Endpoint_Process_Strategy_A::get_stream_endpoint (CORBA::Environment &env) -{ - // Create the name - CosNaming::Name Stream_Endpoint_A_Name (1); - - Stream_Endpoint_A_Name.length (1); - Stream_Endpoint_A_Name [0].id = CORBA::string_dup - ("Stream_Endpoint_A"); - - // Get the CORBA::Object - CORBA::Object_var stream_endpoint_a = - this->naming_context_->resolve (Stream_Endpoint_A_Name, - env); - TAO_CHECK_ENV_RETURN (env, -1); - - // Narrow the reference - this->stream_endpoint_a_ = - AVStreams::StreamEndPoint_A::_narrow (stream_endpoint_a.in (), - env); - TAO_CHECK_ENV_RETURN (env, -1); - - // Check for validity - if (CORBA::is_nil (this->stream_endpoint_a_)) - ACE_ERROR_RETURN ((LM_ERROR, - " could not resolve Stream_Endpoint_A in Naming service <%s>\n"), - -1); - return 0; -} - -// ---------------------------------------------------------------------- -// TAO_AV_Endpoint_Process_Strategy_B -// ---------------------------------------------------------------------- - -// Constructor -TAO_AV_Endpoint_Process_Strategy_B::TAO_AV_Endpoint_Process_Strategy_B (ACE_Process_Options *process_options) - : TAO_AV_Endpoint_Process_Strategy (process_options) -{ -} - -// Creates and returns a "B" type endpoint -int -TAO_AV_Endpoint_Process_Strategy_B::create_B (AVStreams::StreamEndPoint_B_ptr &stream_endpoint, - AVStreams::VDev_ptr &vdev, - CORBA::Environment &env) -{ - if (this->activate () == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "(%P|%t) TAO_AV_Endpoint_Process_Strategy: Error in activate ()\n"), - -1); - - stream_endpoint = this->stream_endpoint_b_; - vdev = this->vdev_; - return 0; - -} - -// Gets the B type stream_endpoint from the Naming service -int -TAO_AV_Endpoint_Process_Strategy_B::get_stream_endpoint (CORBA::Environment &env) -{ - // Create the name - CosNaming::Name Stream_Endpoint_B_Name (1); - - Stream_Endpoint_B_Name.length (1); - Stream_Endpoint_B_Name [0].id = CORBA::string_dup - ("Stream_Endpoint_B"); - - // Get the CORBA::Object reference - CORBA::Object_var stream_endpoint_b = - this->naming_context_->resolve (Stream_Endpoint_B_Name, - env); - TAO_CHECK_ENV_RETURN (env, -1); - - // Narrow the reference - this->stream_endpoint_b_ = - AVStreams::StreamEndPoint_B::_narrow (stream_endpoint_b.in (), - env); - TAO_CHECK_ENV_RETURN (env, -1); - - // Check for validity - if (CORBA::is_nil (this->stream_endpoint_b_)) - ACE_ERROR_RETURN ((LM_ERROR, - " could not resolve Stream_Endpoint_B in Naming service <%s>\n"), - -1); - return 0; -} -// ---------------------------------------------------------------------- -// TAO_AV_Endpoint_Reactive_Strategy -// ---------------------------------------------------------------------- - -// Constructor -template -TAO_AV_Endpoint_Reactive_Strategy ::TAO_AV_Endpoint_Reactive_Strategy (TAO_ORB_Manager *orb_manager) - : orb_manager_ (orb_manager) -{ -} - -// Create, activate the objects with the POA -template -int -TAO_AV_Endpoint_Reactive_Strategy ::activate (void) -{ - TAO_TRY - { - this->activate_stream_endpoint (TAO_TRY_ENV); - TAO_CHECK_ENV; - ACE_DEBUG ((LM_DEBUG,"TAO_AV_Endpoint_Reactive_Strategy::activated stream_endpoint\n")); - - this->activate_vdev (TAO_TRY_ENV); - TAO_CHECK_ENV; - ACE_DEBUG ((LM_DEBUG,"TAO_AV_Endpoint_Reactive_Strategy::activated vdev\n")); - - this->activate_mediactrl (TAO_TRY_ENV); - TAO_CHECK_ENV; - ACE_DEBUG ((LM_DEBUG,"TAO_AV_Endpoint_Reactive_Strategy::activated mediactrl\n")); - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("TAO_Endpoint_Reactive_Strategy::activate"); - return -1; - } - TAO_ENDTRY; - return 0; -} - -// Activate VDev into the POA -template -int -TAO_AV_Endpoint_Reactive_Strategy ::activate_vdev (CORBA::Environment &env) -{ - // Bridge pattern. Allow subclasses to override this behavior - T_VDev *vdev = 0; - if (this->make_vdev (vdev) == -1) - return -1; - - // Put the object in the POA - this->orb_manager_->activate (vdev, - env); - TAO_CHECK_ENV_RETURN (env, -1); - - // Save the object reference, so that create_A can return it - this->vdev_ = vdev->_this (env); - TAO_CHECK_ENV_RETURN (env, -1); - - - return 0; -} - -// Activate the media_controller -template -int -TAO_AV_Endpoint_Reactive_Strategy ::activate_mediactrl (CORBA::Environment &env) -{ - // Bridge pattern. Subclasses can override this - T_MediaCtrl *media_ctrl = 0; - if (this->make_mediactrl (media_ctrl) == -1) - return -1; - - // Put the object in the POA - this->orb_manager_->activate (media_ctrl, - env); - TAO_CHECK_ENV_RETURN (env, -1); - - // Associate the media controller object reference with the vdev, as per the OMG spec - CORBA::Any anyval; - anyval <<= this->orb_manager_->orb ()->object_to_string (media_ctrl->_this (env), - env); - TAO_CHECK_ENV_RETURN (env, -1); - - this->vdev_->define_property ("Related_MediaCtrl", - anyval, - env); - - TAO_CHECK_ENV_RETURN (env, -1); - - return 0; -} - -// Bridge method -template -int -TAO_AV_Endpoint_Reactive_Strategy::make_stream_endpoint (T_StreamEndpoint *&stream_endpoint) -{ - ACE_NEW_RETURN (stream_endpoint, - T_StreamEndpoint, - -1); - return 0; -} - -// Bridge method -template -int -TAO_AV_Endpoint_Reactive_Strategy::make_vdev (T_VDev *&vdev) -{ - ACE_NEW_RETURN (vdev, - T_VDev, - -1); - return 0; -} - -// Bridge method -template -int -TAO_AV_Endpoint_Reactive_Strategy::make_mediactrl (T_MediaCtrl *&media_ctrl) -{ - ACE_NEW_RETURN (media_ctrl, - T_MediaCtrl, - -1); - return 0; -} - - -// ---------------------------------------------------------------------- - -// ---------------------------------------------------------------------- -// TAO_AV_Endpoint_Reactive_Strategy_A -// ---------------------------------------------------------------------- -// Constructor -template -TAO_AV_Endpoint_Reactive_Strategy_A ::TAO_AV_Endpoint_Reactive_Strategy_A (TAO_ORB_Manager *orb_manager) - : TAO_AV_Endpoint_Reactive_Strategy (orb_manager) -{ -} - -// Creates an "A" type streamendpoint, and a vdev and returns the -// object references -template -int -TAO_AV_Endpoint_Reactive_Strategy_A::create_A (AVStreams::StreamEndPoint_A_ptr &stream_endpoint, - AVStreams::VDev_ptr &vdev, - CORBA::Environment &env) -{ - if (this->activate () == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "(%P|%t) TAO_AV_Endpoint_Reactive_Strategy_A: Error in activate ()\n"), - -1); - - stream_endpoint = this->stream_endpoint_a_; - vdev = this->vdev_; - return 0; - -} - -// Put the stream_endpoint into the POA -template -int -TAO_AV_Endpoint_Reactive_Strategy_A ::activate_stream_endpoint (CORBA::Environment &env) -{ - T_StreamEndpoint *stream_endpoint_a = 0; - - // Use the bridge method - if (this->make_stream_endpoint (stream_endpoint_a) == -1) - return -1; - - this->orb_manager_->activate (stream_endpoint_a, - env); - TAO_CHECK_ENV_RETURN (env, -1); - - // Save the object references, so that create_a can return them - this->stream_endpoint_a_ = stream_endpoint_a->_this (env); - TAO_CHECK_ENV_RETURN (env, -1); - - return 0; -} - -// ---------------------------------------------------------------------- -// TAO_AV_Endpoint_Reactive_Strategy_B -// ---------------------------------------------------------------------- - -// Constructor -template -TAO_AV_Endpoint_Reactive_Strategy_B ::TAO_AV_Endpoint_Reactive_Strategy_B (TAO_ORB_Manager *orb_manager) - : TAO_AV_Endpoint_Reactive_Strategy (orb_manager) -{ -} - -// Activate stream_endpoint -template -int -TAO_AV_Endpoint_Reactive_Strategy_B ::activate_stream_endpoint (CORBA::Environment &env) -{ - T_StreamEndpoint *stream_endpoint_b = 0; - - if (this->make_stream_endpoint (stream_endpoint_b) == -1) - return -1; - this->orb_manager_->activate (this->stream_endpoint_b_, - env); - TAO_CHECK_ENV_RETURN (env, -1); - - this->stream_endpoint_b_ = stream_endpoint_b->_this (env); - TAO_CHECK_ENV_RETURN (env, -1); - - return 0; -} - -// Returns a "B" type stream_endpoint and a vdev -template -int -TAO_AV_Endpoint_Reactive_Strategy_B::create_B (AVStreams::StreamEndPoint_B_ptr &stream_endpoint, - AVStreams::VDev_ptr &vdev, - CORBA::Environment &env) -{ - if (this->activate () == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "(%P|%t) TAO_AV_Endpoint_Reactive_Strategy_B: Error in activate ()\n"), - -1); - - stream_endpoint = this->stream_endpoint_b_; - vdev = this->vdev_; - return 0; - -} - -// ---------------------------------------------------------------------- -// TAO_AV_Child_Process -// ---------------------------------------------------------------------- - -// Constructor -template -TAO_AV_Child_Process ::TAO_AV_Child_Process () - : stream_endpoint_name_ (0) -{ -} - -// Initializes the ORB, activates the objects, and release the semaphore -template -int -TAO_AV_Child_Process ::init (int argc, char **argv) -{ - TAO_TRY - { - // create the objects and activate them in the poa - this->activate_objects (argc, - argv, - TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Get ourselves a naming_service object reference - this->bind_to_naming_service (TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Register the vdev with the naming service - this->register_vdev (TAO_TRY_ENV); - TAO_CHECK_ENV; - - // register the stream_endpoing with the naming_service - this->register_stream_endpoint (TAO_TRY_ENV); - TAO_CHECK_ENV; - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("TAO_Child_Process"); - return -1; - } - TAO_ENDTRY; - - // release the semaphore the parent is waiting on - if (this->release_semaphore () == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "(%P|%t) Error releasing semaphores\n"), - -1); - - return 0; -} - -// initializes the orb, and activates the objects -template -int -TAO_AV_Child_Process ::activate_objects (int argc, - char **argv, - CORBA::Environment &env) -{ - // initialize the orb - this->orb_manager_.init (argc, - argv, - env); - TAO_CHECK_ENV_RETURN (env, -1); - - // bridge method to make a new stream endpoint - if (this->make_stream_endpoint (this->stream_endpoint_) == -1) - return -1; - - // bridge method to make a new vdev - if (this->make_vdev (this->vdev_) == -1) - return -1; - - // bridge method to make a new media controller - if (this->make_mediactrl (this->media_ctrl_) == -1) - return -1; - - // activate the stream_endpoint - this->orb_manager_.activate (this->stream_endpoint_, - env); - TAO_CHECK_ENV_RETURN (env, -1); - - - // activate the vdev - this->orb_manager_.activate (this->vdev_, - env); - TAO_CHECK_ENV_RETURN (env, -1); - - // activate the media controller - this->orb_manager_.activate (this->media_ctrl_, - env); - - TAO_CHECK_ENV_RETURN (env, -1); - - return 0; - -} - -// Bind to the namingservice -template -int -TAO_AV_Child_Process ::bind_to_naming_service (CORBA::Environment &env) -{ - CORBA::Object_var naming_obj = - this->orb_manager_.orb ()->resolve_initial_references ("NameService"); - if (CORBA::is_nil (naming_obj.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to resolve the Name Service.\n"), - -1); - // ACE_DEBUG ((LM_DEBUG, "(%P|%t) %s:%d\n", __FILE__, __LINE__)); - this->naming_context_ = - CosNaming::NamingContext::_narrow (naming_obj.in (), - env); - TAO_CHECK_ENV_RETURN (env, - -1); - - return 0; -} - -// register the vdev with the naming service -template -int -TAO_AV_Child_Process ::register_vdev (CORBA::Environment &env) -{ - // create the name - this->vdev_name_.length (1); - this->vdev_name_ [0].id = CORBA::string_dup ("VDev"); - - // make the media controller a property of the vdev - CORBA::Any media_ctrl_property; - media_ctrl_property <<= this->orb_manager_.orb ()->object_to_string (this->media_ctrl_->_this (env), - env); - this->vdev_->define_property ("Related_MediaCtrl", - media_ctrl_property, - env); - TAO_CHECK_ENV_RETURN (env,-1); - - // Register the vdev with the naming server. - this->naming_context_->bind (this->vdev_name_, - this->vdev_->_this (env), - env); - - // If the object was already there, replace the older reference - // with this one - if (env.exception () != 0) - { - env.clear (); - this->naming_context_->rebind (this->vdev_name_, - this->vdev_->_this (env), - env); - TAO_CHECK_ENV_RETURN (env, -1); - } - - return 0; -} - -// run the orb event look -template -int -TAO_AV_Child_Process ::run (ACE_Time_Value *tv) -{ - int result; - TAO_TRY - { - result = this->orb_manager_.run (TAO_TRY_ENV,tv); - TAO_CHECK_ENV; - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("orb_manager_.run ()"); - return -1; - } - TAO_ENDTRY; - return result; -} - -// release the semaphore the parent is waiting on -template -int -TAO_AV_Child_Process ::release_semaphore () -{ - char sem_str [BUFSIZ]; - char host [MAXHOSTNAMELEN]; - pid_t pid; - - // make the semaphore name - if ((pid = ACE_OS::getpid ()) == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "(%P|%t) Unable to get my pid!\n"), - -1); - - ACE_OS::hostname (host, - sizeof host); - - sprintf (sem_str, - "%s:%s:%d", - "TAO_AV_Process_Semaphore", - host, - pid); - - ACE_DEBUG ((LM_DEBUG, - "(%P|%t) semaphore is %s\n", - sem_str)); - - // Release the lock on which the server is waiting - ACE_Process_Semaphore semaphore (0, // 0 means that the semaphore is - // initially locked - sem_str); - - if (semaphore.release () == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "(%P|%t) Error releasing semaphore %s: %p\n", - sem_str, - "semaphore.release ()"), - -1); - - return 0; -} - -// register the stream_endpoint with the naming service -template -int -TAO_AV_Child_Process ::register_stream_endpoint (CORBA::Environment &env) -{ - // ACE_DEBUG ((LM_DEBUG, "(%P|%t) %s:%d\n", __FILE__, __LINE__)); - // Create a name for the video control object - // subclasses can define their own name for the streamendpoint - // Register the stream endpoint object with the naming server. - this->naming_context_->bind (this->stream_endpoint_name_, - this->stream_endpoint_->_this (env), - env); - - // if the name was already there, replace the reference with the new one - if (env.exception () != 0) - { - env.clear (); - this->naming_context_->rebind (this->stream_endpoint_name_, - this->stream_endpoint_->_this (env), - env); - TAO_CHECK_ENV_RETURN (env, -1); - } - - return 0; -} - -// Bridge method to make a new stream_endpoint -template -int -TAO_AV_Child_Process::make_stream_endpoint (T_StreamEndpoint *&stream_endpoint) -{ - ACE_NEW_RETURN (stream_endpoint, - T_StreamEndpoint, - -1); - return 0; -} - -// Bridge method to make a new vdev -template -int -TAO_AV_Child_Process::make_vdev (T_VDev *&vdev) -{ - ACE_NEW_RETURN (vdev, - T_VDev, - -1); - return 0; -} - -// Bridge method to make a new media controller -template -int -TAO_AV_Child_Process::make_mediactrl (T_MediaCtrl *&media_ctrl) -{ - ACE_DEBUG ((LM_DEBUG,"(%P|%t) TAO_AV_Child_Process::make_mediactrl ()\n")); - ACE_NEW_RETURN (media_ctrl, - T_MediaCtrl, - -1); - return 0; -} - -// %% its not clear whether we should be deleting the objects, since -// if the application overrides the make_mediactrl methods etc., -// then, we may not own these objects. -// For now, we dont delete the objects, since they exist for the -// lifetime of the process anyway -template -TAO_AV_Child_Process ::~TAO_AV_Child_Process () -{ - // Remove the names from the naming service - if (this->naming_context_ == 0) - return; - TAO_TRY - { - this->naming_context_->unbind (this->stream_endpoint_name_, - TAO_TRY_ENV); - TAO_CHECK_ENV; - - this->naming_context_->unbind (this->vdev_name_, - TAO_TRY_ENV); - TAO_CHECK_ENV; - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("TAO_Endpoint_Process_Strategy::activate"); - } - TAO_ENDTRY; - -// if (this->stream_endpoint_ != 0) -// delete this->stream_endpoint_; -// if (this->vdev_ != 0) -// delete this->vdev_; -// if (this->media_ctrl_ != 0) -// delete this->media_ctrl_; -} - -// ---------------------------------------------------------------------- -// TAO_AV_Child_Process_A -// ---------------------------------------------------------------------- - -// Define the name of the stream_endpoint, as used to register with -// the naming service -template -TAO_AV_Child_Process_A ::TAO_AV_Child_Process_A () -{ - this->stream_endpoint_name_.length (1); - this->stream_endpoint_name_ [0].id = CORBA::string_dup ("Stream_Endpoint_A"); -} - -// ---------------------------------------------------------------------- -// TAO_AV_Child_Process_B -// ---------------------------------------------------------------------- - -// Define the name of the stream_endpoint, as used to register with -// the naming service -template -TAO_AV_Child_Process_B ::TAO_AV_Child_Process_B () -{ - this->stream_endpoint_name_.length (1); - this->stream_endpoint_name_ [0].id = CORBA::string_dup ("Stream_Endpoint_B"); -} diff --git a/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.h b/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.h deleted file mode 100644 index 1975ae60aaa..00000000000 --- a/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.h +++ /dev/null @@ -1,324 +0,0 @@ -/* -*- C++ -*- */ - -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// cos -// -// = FILENAME -// Endpoint_Strategy.h -// -// = AUTHOR -// Sumedh Mungee -// -// -// ============================================================================ - -#if !defined (TAO_AV_ENDPOINT_STRATEGY_H) -#define TAO_AV_ENDPOINT_STRATEGY_H - -#include "orbsvcs/AV/AVStreams_i.h" -#include "tao/TAO.h" - -class TAO_ORBSVCS_Export TAO_AV_Endpoint_Strategy -// = DESCRIPTION -// Base class to define various endpoint strategies -// used by the MMDevice to create the Endpoint and Vdev -{ -public: - TAO_AV_Endpoint_Strategy (void); - // Constructor - - virtual int create_A (AVStreams::StreamEndPoint_A_ptr &stream_endpoint, - AVStreams::VDev_ptr &vdev, - CORBA::Environment &env); - // Called by the MMDevice, when it needs to create an A type endpoint - - virtual int create_B (AVStreams::StreamEndPoint_B_ptr &stream_endpoint, - AVStreams::VDev_ptr &vdev, - CORBA::Environment &env); - // Called by the MMDevice, when it needs to create an B type endpoint - - protected: - AVStreams::StreamEndPoint_A_ptr stream_endpoint_a_; - // The "A" stream endpoint - - AVStreams::StreamEndPoint_B_ptr stream_endpoint_b_; - // The "B" stream endpoint - - AVStreams::VDev_ptr vdev_; - // The vdev - -}; - -// ---------------------------------------------------------------------- - -class TAO_ORBSVCS_Export TAO_AV_Endpoint_Process_Strategy - : public TAO_AV_Endpoint_Strategy -// = DESCRIPTION -// Process-based strategy for creating endpoints -// Abstract base class. -{ - public: - TAO_AV_Endpoint_Process_Strategy (ACE_Process_Options *process_options); - // Constructor. The process_options contain the name and arguments - // for the process to be created - - virtual int activate (void); - // creates a new child process, and waits on a semaphore - // until the child process has finished creating the endpoints - - protected: - virtual int bind_to_naming_service (CORBA::Environment &env); - // Bind to the naming service - - virtual int get_stream_endpoint (CORBA::Environment &env) = 0; - // Get the object reference for the newly created stream - // endpoint (which will be in the child process) - // Subclasses will define the functionality for this - - virtual int get_vdev (CORBA::Environment &env); - // Get the Vdev object reference for the newly created - // endpoint - - CosNaming::NamingContext_var naming_context_; - // Naming context - - private: - ACE_Process_Options *process_options_; - // Name and arguments for the process to be created -}; - - -// ---------------------------------------------------------------------- - -class TAO_ORBSVCS_Export TAO_AV_Endpoint_Process_Strategy_A - : public TAO_AV_Endpoint_Process_Strategy -// = DESCRIPTION -// Process-based strategy to create "A" type endpoints -{ - public: - TAO_AV_Endpoint_Process_Strategy_A (ACE_Process_Options *process_options); - // Constructor - - protected: - virtual int create_A (AVStreams::StreamEndPoint_A_ptr &stream_endpoint, - AVStreams::VDev_ptr &vdev, - CORBA::Environment &env); - // Creates an "A" type stream endpoint, and a vdev - - virtual int get_stream_endpoint (CORBA::Environment &env); - // Gets the "A" type stream endpoint from the child process - -}; - -// ---------------------------------------------------------------------- - -class TAO_ORBSVCS_Export TAO_AV_Endpoint_Process_Strategy_B - : public TAO_AV_Endpoint_Process_Strategy -// = DESCRIPTION -// Process-based strategy to create "B" type endpoints -{ - public: - TAO_AV_Endpoint_Process_Strategy_B (ACE_Process_Options *process_options); - // Constructor - - protected: - virtual int create_B (AVStreams::StreamEndPoint_B_ptr &stream_endpoint, - AVStreams::VDev_ptr &vdev, - CORBA::Environment &env); - // Creates a "B" type stream endpoint, and a vdev - - - virtual int get_stream_endpoint (CORBA::Environment &env); - // Gets the object reference of the "B" type streamendpoint. - -}; -// ---------------------------------------------------------------------- -template -class TAO_ORBSVCS_Export TAO_AV_Endpoint_Reactive_Strategy - : public TAO_AV_Endpoint_Strategy -// = DESCRIPTION -// Reactive strategy base clas -{ - protected: - TAO_AV_Endpoint_Reactive_Strategy (TAO_ORB_Manager *orb_manager); - // Constructor - - virtual int activate (void); - // creates and activates the streamendpoint, vdev, and mediacontrol - - virtual int activate_stream_endpoint (CORBA::Environment &env) = 0; - // activates the stream_endpoint with the POA - - virtual int activate_vdev (CORBA::Environment &env); - // activates the vdev with the POA - - virtual int activate_mediactrl (CORBA::Environment &env); - // activates the media controller with the POA - - virtual int make_vdev (T_VDev *&vdev); - // Bridge method to create a vdev, a la Acceptor. Applications - // can override this - - virtual int make_stream_endpoint (T_StreamEndpoint *&stream_endpoint); - // Bridge method to create a stream_endpoint, a la Acceptor. Applications - // can override this - - virtual int make_mediactrl (T_MediaCtrl *&media_ctrl); - // Bridge method to create a media_ctrl, a la Acceptor. Applications - // can override this - - TAO_ORB_Manager *orb_manager_; - // ORB manager, used to activate the objects - -}; -// ---------------------------------------------------------------------- - -template -class TAO_ORBSVCS_Export TAO_AV_Endpoint_Reactive_Strategy_A - : public TAO_AV_Endpoint_Reactive_Strategy -// = DESCRIPTION -// Reactive strategy -{ - public: - TAO_AV_Endpoint_Reactive_Strategy_A (TAO_ORB_Manager *orb_manager); - // Constructor - - virtual int activate_stream_endpoint (CORBA::Environment &env); - // Overrides the base class stream_endpoint activator, to activate - // an "A" type endpoint - - virtual int create_A (AVStreams::StreamEndPoint_A_ptr &stream_endpoint, - AVStreams::VDev_ptr &vdev, - CORBA::Environment &env); - // Called by the MMDevice, when it needs to create an A type endpoint - - -}; - -// ---------------------------------------------------------------------- -template -class TAO_ORBSVCS_Export TAO_AV_Endpoint_Reactive_Strategy_B - : public TAO_AV_Endpoint_Reactive_Strategy -// = DESCRIPTION -// Reactive strategy -{ - public: - TAO_AV_Endpoint_Reactive_Strategy_B (TAO_ORB_Manager *); - - virtual int activate_stream_endpoint (CORBA::Environment &env); - // Overrides the base class stream_endpoint activator, to activate - // a "B" type endpoint - - virtual int create_B (AVStreams::StreamEndPoint_B_ptr &stream_endpoint, - AVStreams::VDev_ptr &vdev, - CORBA::Environment &env); - // Called by the MMDevice, when it needs to create a B type endpoint -}; - -// ---------------------------------------------------------------------- - -template -class TAO_ORBSVCS_Export TAO_AV_Child_Process -// = DESCRIPTION -// Helper class for the child process created in TAO_AV_Endpoint_Process_Strategy -{ -public: - TAO_AV_Child_Process (); - // Constructor - - ~TAO_AV_Child_Process (); - // Destructor - - int init (int argc, char **argv); - // Initializes the ORB, creates and activates the - // T_StreamEndpoint, T_VDev, T_MediaCtrl in the POA - - int run (ACE_Time_Value *tv = 0); - // runs the ORB event loop - - protected: - int activate_objects (int argc, - char **argv, - CORBA::Environment &env); - // Creates the objects and inserts them into the Naming - // Service, so the parent can pick the IOR's and - // return them to the client - - - int bind_to_naming_service (CORBA::Environment &env); - // Binds to the naming service - - int register_vdev (CORBA::Environment &env); - // Registers vdev with the naming service - - int register_stream_endpoint (CORBA::Environment &env); - // Registers stream_endpoint with the naming service - - int release_semaphore (); - // Releases the semaphore on which the parent is waiting on - - virtual int make_vdev (T_VDev *&vdev); - // Bridge method to create a vdev, a la Acceptor. Applications - // can override this - - virtual int make_stream_endpoint (T_StreamEndpoint *&stream_endpoint); - // Bridge method to create a stream_endpoint, a la Acceptor. Applications - // can override this - - virtual int make_mediactrl (T_MediaCtrl *&media_ctrl); - // Bridge method to create a media_ctrl, a la Acceptor. Applications - // can override this - - TAO_ORB_Manager orb_manager_; - // The ORB Manager - - CosNaming::NamingContext_var naming_context_; - // The root Naming Context of the TAO naming service - - CosNaming::Name vdev_name_; - // Name of the vdev - - CosNaming::Name stream_endpoint_name_; - // Name of the stream_endpoint - - T_StreamEndpoint *stream_endpoint_; - // The stream endpoint member - - T_VDev *vdev_; - // The virtual device - - T_MediaCtrl *media_ctrl_; - // Media controller -}; - -// ---------------------------------------------------------------------- - -template -class TAO_ORBSVCS_Export TAO_AV_Child_Process_A - : public TAO_AV_Child_Process -// = DESCRIPTION -// Helper class for the child process created in TAO_AV_Child_Process -{ -public: - TAO_AV_Child_Process_A (); - -}; - -// ---------------------------------------------------------------------- - -template -class TAO_ORBSVCS_Export TAO_AV_Child_Process_B - : public TAO_AV_Child_Process -// = DESCRIPTION -// Helper class for the child process created in TAO_AV_Child_Process -{ -public: - TAO_AV_Child_Process_B (); - -}; - -#endif /* TAO_AV_ENDPOINT_STRATEGY_H */ diff --git a/TAO/orbsvcs/orbsvcs/AV/README b/TAO/orbsvcs/orbsvcs/AV/README deleted file mode 100644 index ffe6958a6db..00000000000 --- a/TAO/orbsvcs/orbsvcs/AV/README +++ /dev/null @@ -1,28 +0,0 @@ -// $Id$ - -TAO Audio/Video Streaming service ---------------------------------- - - -This is a prototype implementation of the CORBA "Control and -Management of A/V streams" specification, that defines various -interfaces for controlling multimedia streams. - -This directory contains the following files - -AVStreams_i.{h,cpp}: Implementation of the A/V handshake specification, as well - as base classes for the various interfaces defined in the spec. - -Endpoint_Strategy.{h,cpp}: Implementation of various multimedia endpoint activation strategies. - -A complete distributed audio/video streaming application that -illustrates the use of the various components defined above is -available in the following directory: - -TAO/orbsvcs/tests/AVStreams/mpeg/source/ - - -Sumedh Mungee -Nagarajan Surendran -Alexander Arulanthu - diff --git a/TAO/orbsvcs/orbsvcs/AVStreams.idl b/TAO/orbsvcs/orbsvcs/AVStreams.idl deleted file mode 100644 index 9a7d8a1c940..00000000000 --- a/TAO/orbsvcs/orbsvcs/AVStreams.idl +++ /dev/null @@ -1,502 +0,0 @@ -/* -*- C++ -*- */ - -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// cos -// -// = FILENAME -// AVStreams.idl -// -// = AUTHOR -// OMG -// -// -// ============================================================================ - -#include "CosPropertyService.idl" - -module AVStreams -// = DESCRIPTION -// IDL for Control and Management of Audio/Video Streams -// Revised Submission -{ - struct QoS - // This structure represents QoS for a given type. - // E.g. {"video_qos", <"video_framerate", 26>, - // <"video_depth", 9>} - { - string QoSType; - // Name of the Qos type, e.g. "video_qos" - string QoSParams; - // @@ - // CosPropertyService::Properties QoSParams; - // Sequence of name value pairs, see e.g. above. - }; - - typedef sequence streamQoS; - // The QoS of a stream is a sequence of QoS structs (defined above) - - typedef sequence flowSpec; - // flowSpec is used to keep transport protocol information - // Each string is one endpoint. - - typedef sequence protocolSpec; - // List of protocols supported - // protocol names registered by OMG. - // e.g., TCP, UDP, AAL5, IPX, RTP - - typedef sequence encryption_key; - // Used as a key for public-key encryption - - struct SFPStatus - // This structure is defined for SFP1.0 - // Subsequent versions of the protocol may - // specify new structures - { - // = TITLE - // This structure is defined for SFP1.0 Subsequent versions of - // the protocol may specify new structures - boolean isFormatted; - boolean isSpecialFormat; - boolean seqNums; - boolean timestamps; - boolean sourceIndicators; - }; - - enum flowState {stopped, started, dead}; - // represents the state of a flow - - enum dirType {dir_in, dir_out}; - // the direction of a flow - - struct flowStatus - // Used to store the status of a flow - { - string flowName; - dirType directionality; - flowState status; - SFPStatus theFormat; - QoS theQoS; - }; - - // @@ - // typedef CosPropertyService::Property streamEvent; - typedef string streamEvent; - // Used to convey events, in Basic_StreamCtrl::push_event - - exception notSupported {}; - // Used to indicate that an operation is not supported - - exception PropertyException {}; - // Property exception: raised by VDev::configure () - - exception FPError { string flow_name; }; - // An flow protocol related error - - exception streamOpFailed - // Raised by operations on streams - { - string reason; - }; - - exception streamOpDenied - // Raised by operations on streams - { - string reason; - }; - - exception noSuchFlow {}; - // Used to indicate that an invalid flow name was used for the operation - - exception QoSRequestFailed - // Used to indicate failure in changing QoS - { - string reason; - }; - - // @@ - // interface Basic_StreamCtrl : CosPropertyService::PropertySet { - interface Basic_StreamCtrl - // = DESCRIPTION - // Base class for StreamCtrl, implements basic stream start - // and stop functionality - { - // Empty flowSpec => apply operation to all flows - void stop (in flowSpec the_spec) raises (noSuchFlow); - // Stop the transfer of data of the stream - // Empty the_spec means apply operation to all flows - - void start (in flowSpec the_spec) raises (noSuchFlow); - // Start the transfer of data in the stream. - // Empty the_spec means apply operation to all flows - - void destroy (in flowSpec the_spec) raises (noSuchFlow); - // Tears down the stream. This will close the connection, and delete - // the streamendpoint and vdev associated with this stream - // Empty the_spec means apply operation to all flows - - boolean modify_QoS (inout streamQoS new_qos, - in flowSpec the_spec) - raises (noSuchFlow, - QoSRequestFailed); - // Changes the QoS associated with the stream - // Empty the_spec means apply operation to all flows - - oneway void push_event (in streamEvent the_event); - // Called by StreamEndPoint when something goes wrong - // with a flow - - void set_FPStatus (in flowSpec the_spec, - in string fp_name, - in any fp_settings) - raises (noSuchFlow, - FPError); - // Used to control the flow protocol parameters. - - - Object get_flow_connection (in string flow_name) - raises (noSuchFlow, - notSupported); - // Not implemented in the light profile, will raise the notsupported - // exception - - - void set_flow_connection (in string flow_name, - in Object flow_connection) - raises (noSuchFlow, - notSupported); - }; - // Not implemented in the light profile, will raise the notsupported - // exception - - interface Negotiator - // = DESCRIPTION - // This class is used to negotiate QoS between two stream endpoints - { - boolean negotiate (in Negotiator remote_negotiator, - in streamQoS qos_spec); - // initiates the process of negotiating the qos_spec - }; - - // forward declarations - interface VDev; - interface MMDevice; - interface StreamEndPoint; - interface StreamEndPoint_A; - interface StreamEndPoint_B; - - interface StreamCtrl : Basic_StreamCtrl - // = DESCRIPTION - // Implementation the A/V StreamCtrl class. this class - // is used to control the stream. It should be subclassed - // by applications that want to provide more control features. - { - - boolean bind_devs (in MMDevice a_party, in MMDevice b_party, - inout streamQoS the_qos, - in flowSpec the_flows) - raises (streamOpFailed, - noSuchFlow, - QoSRequestFailed); - // Establish a stream between a_party and b_party, - // with qos the_qos, and for the flows in the_flows - // if the_flows is empty, bind all the flows - // Causes a connection to be established between the StreamEndpoints. - // Returns success/failure - - boolean bind (in StreamEndPoint_A a_party, - in StreamEndPoint_B b_party, - inout streamQoS the_qos, - in flowSpec the_flows) - raises (streamOpFailed, - noSuchFlow, - QoSRequestFailed); - // Establish a connection between two streamendpoints. This can - // be used if the streamendpoints have been created independent of - // a MMDevice - - void unbind_party (in StreamEndPoint the_ep, - in flowSpec the_spec) - raises (streamOpFailed, noSuchFlow); - // Unbind the_ep from the stream. Empty the_spec means apply to all flows. - - void unbind () - raises (streamOpFailed); - // unbind the stream. Same effect as Basic_StreamCtrl::destroy () - }; - - // @@ - // interface MCastConfigIf : CosPropertyService::PropertySet{ - interface MCastConfigIf - // multicasting operations are not supported yet - { - boolean set_peer (in Object peer, - inout streamQoS the_qos, - in flowSpec the_spec) - raises (QoSRequestFailed, - streamOpFailed); - // multicasting operations are not supported yet - - void configure (in CosPropertyService::Property a_configuration); - // multicasting operations are not supported yet - - void set_initial_configuration (in CosPropertyService::Properties initial); - // multicasting operations are not supported yet - - // Uses standardised by OMG and IETF - void set_format (in string flowName, - in string format_name) - raises (notSupported); - // multicasting operations are not supported yet - - // Note, some of these device params are standardised by OMG - void set_dev_params (in string flowName, - in CosPropertyService::Properties new_params) - raises (CosPropertyService::PropertyException, - streamOpFailed); - // multicasting operations are not supported yet - - }; - - // @@ - // interface StreamEndPoint : CosPropertyService::PropertySet{ - interface StreamEndPoint - // = DESCRIPTION - // The Stream EndPoint. Used to implement one endpoint of a stream - // that implements the transport layer. - { - void stop (in flowSpec the_spec) - raises (noSuchFlow); - // Stop the stream. Empty the_spec means, for all the flows - - void start (in flowSpec the_spec) - raises (noSuchFlow); - // Start the stream, Empty the_spec means, for all the flows - - void destroy (in flowSpec the_spec) - raises (noSuchFlow); - // Destroy the stream, Empty the_spec means, for all the flows - - boolean connect (in StreamEndPoint responder, - inout streamQoS qos_spec, - in flowSpec the_spec) - raises (noSuchFlow, - QoSRequestFailed, - streamOpFailed); - // Called by StreamCtrl. responder is the peer to connect to - - boolean request_connection (in StreamEndPoint initiator, - in boolean is_mcast, - inout streamQoS qos, - inout flowSpec the_spec) - raises (streamOpDenied, noSuchFlow, - QoSRequestFailed, FPError); - // Called by the peer StreamEndPoint. The flow_spec indicates the - // flows (which contain transport addresses etc.) - - boolean modify_QoS (inout streamQoS new_qos, - in flowSpec the_flows) - raises (noSuchFlow, - QoSRequestFailed); - // Change the transport qos on a stream - - boolean set_protocol_restriction (in protocolSpec the_pspec); - // Used to restrict the set of protocols - - void disconnect(in flowSpec the_spec) - raises (noSuchFlow, - streamOpFailed); - // disconnect the flows - - void set_FPStatus (in flowSpec the_spec, - in string fp_name, - in any fp_settings) - raises (noSuchFlow, - FPError); - // Used to control the SFP parameters - - Object get_fep (in string flow_name) - raises (notSupported, - noSuchFlow); - // Not implemented in the light profile, throws notsupported - - string add_fep (in Object the_fep) - // Can fail for reasons {duplicateFepName, duplicateRef} - raises (notSupported, - streamOpFailed); - // Not implemented in the light profile, throws notsupported - - void remove_fep (in string fep_name) - raises (notSupported, - streamOpFailed); - // Not implemented in the light profile, throws notsupported - - void set_negotiator (in Negotiator new_negotiator); - // Used to "attach" a negotiator to the endpoint - - void set_key (in string flow_name, - in encryption_key the_key); - // Used for public key encryption. - - void set_source_id (in long source_id); - // Used to set a unique id for packets sent by this streamendpoint - }; - - interface StreamEndPoint_A : StreamEndPoint - // = DESCRIPTION - // The "A" side of a streamendpoint - { - - boolean multiconnect (inout streamQoS the_qos, - inout flowSpec the_spec) - raises (noSuchFlow, QoSRequestFailed, streamOpFailed); - // Used for ATM-style multicast - - boolean connect_leaf (in StreamEndPoint_B the_ep, - inout streamQoS the_qos, - in flowSpec the_flows) - raises (streamOpFailed, noSuchFlow, - QoSRequestFailed, notSupported); - // Used for ATM-style multicast - - void disconnect_leaf (in StreamEndPoint_B the_ep, - in flowSpec theSpec) - raises(streamOpFailed, noSuchFlow); - // Used for ATM-style multicast - }; - - interface StreamEndPoint_B : StreamEndPoint - { - - boolean multiconnect (inout streamQoS the_qos, - inout flowSpec the_spec) - raises (streamOpFailed, noSuchFlow, - QoSRequestFailed, FPError); - // Used for ATM-style multicast - }; - - // @@ - interface VDev : CosPropertyService::PropertySet - // interface VDev - // = DESCRIPTION - // Implements the VDev interface. One of these is created per connection, - // and represents device-specific parameters - { - boolean set_peer (in StreamCtrl the_ctrl, - in VDev the_peer_dev, - inout streamQoS the_qos, - in flowSpec the_spec) - raises (noSuchFlow, - QoSRequestFailed, - streamOpFailed); - // Called to tell the vdev who the streamctrl, peer vdev is - - boolean set_Mcast_peer (in StreamCtrl the_ctrl, - in MCastConfigIf a_mcastconfigif, - inout streamQoS the_qos, - in flowSpec the_spec) - raises (noSuchFlow, - QoSRequestFailed, - streamOpFailed); - // Used to set the streamctrl and multicast device - - void configure (in CosPropertyService::Property the_config_mesg) - raises (PropertyException, - streamOpFailed); - // Called by the peer VDev to configure the device (catch all) - - // Uses standardised by OMG and IETF - void set_format (in string flowName, - in string format_name) - raises (notSupported); - // Used to set a format on a flowname - - // Note, some of these device params are standardised by OMG - void set_dev_params (in string flowName, - in CosPropertyService::Properties new_params) - raises (PropertyException, - streamOpFailed); - // Used to set device parameters - - boolean modify_QoS (inout streamQoS the_qos, - in flowSpec the_spec) - raises (noSuchFlow, - QoSRequestFailed); - // Called to change QoS of the device - - }; - - interface MMDevice : CosPropertyService::PropertySet - // = DESCRIPTION - // Implements a factory to create Endpoints and VDevs - { - StreamEndPoint_A create_A (in StreamCtrl the_requester, - out VDev the_vdev, - inout streamQoS the_qos, - out boolean met_qos, - inout string named_vdev, - in flowSpec the_spec) - raises (streamOpFailed, - streamOpDenied, - notSupported, - QoSRequestFailed, - noSuchFlow); - // Called by StreamCtrl to create a "A" type streamendpoint and vdev - - StreamEndPoint_B create_B(in StreamCtrl the_requester, - out VDev the_vdev, - inout streamQoS the_qos, - out boolean met_qos, - inout string named_vdev, - in flowSpec the_spec) - raises (streamOpFailed, - streamOpDenied, - notSupported, - QoSRequestFailed, - noSuchFlow); - // Called by StreamCtrl to create a "B" type streamendpoint and vdev - - StreamCtrl bind (in MMDevice peer_device, - inout streamQoS the_qos, - out boolean is_met, - in flowSpec the_spec) - raises (streamOpFailed, - noSuchFlow, - QoSRequestFailed); - // Can be used to request the MMDevice to create a new StreamCtrl, - // and call bind_devs on it - - StreamCtrl bind_mcast (in MMDevice first_peer, - inout streamQoS the_qos, - out boolean is_met, - in flowSpec the_spec) - raises (streamOpFailed, - noSuchFlow, - QoSRequestFailed); - // Multicast bind - - void destroy (in StreamEndPoint the_ep, - in string vdev_name) - // ie VDev not found - raises (notSupported); - // Remove the StreamEndPoint and the related vdev - - string add_fdev (in Object the_fdev) - raises (notSupported, - streamOpFailed); - // Not supported in the light profile, raises notsupported - - Object get_fdev (in string flow_name) - raises (notSupported, - noSuchFlow); - // Not supported in the light profile, raises notsupported - - void remove_fdev (in string flow_name) - raises (notSupported, - noSuchFlow); - // Not supported in the light profile, raises notsupported - }; -}; diff --git a/TAO/orbsvcs/orbsvcs/AVStreams_Full.idl b/TAO/orbsvcs/orbsvcs/AVStreams_Full.idl deleted file mode 100644 index 952301d7091..00000000000 --- a/TAO/orbsvcs/orbsvcs/AVStreams_Full.idl +++ /dev/null @@ -1,250 +0,0 @@ -// $Id$ - -// IDL for Control and Management of Audio/Video Streams -// Revised Submission - -// Additional IDL for full profile -#include "AVStreams.idl" - -module AVStreams_Full -{ - exception protocolNotSupported{}; - exception formatNotSupported{}; - exception formatMismatch{}; - exception FEPMismatch{}; - exception alreadyConnected{}; - exception invalidSettings{string settings;}; - exception notConnected{}; - exception deviceQosMismatch{}; - exception failedToConnect{string reason;}; - exception failedToListen{string reason;}; - - - interface FlowProducer; - interface FlowConsumer; - interface FlowEndPoint; - interface FDev; - - interface FlowConnection : PropertyService::PropertySet - { - void stop(); - void start(); - void destroy(); - - boolean modify_QoS( - - inout AVStreams::QoS new_qos) - raises (AVStreams::QoSRequestFailed); - - boolean use_flow_protocol( - in string fp_name, - in any fp_settings) - raises (AVStreams::FPError, AVStreams::notSupported); - - oneway void push_event(in AVStreams::streamEvent the_event); - - boolean connect_devs(in FDev a_party, in FDev b_party, - inout AVStreams::QoS the_qos) - raises (AVStreams::streamOpFailed, - AVStreams::streamOpDenied, - AVStreams::QoSRequestFailed); - - boolean connect( - in FlowProducer flow_producer, - in FlowConsumer flow_consumer, - inout AVStreams::QoS the_qos) - raises (formatMismatch, FEPMismatch, alreadyConnected); - - boolean disconnect(); - - // The notSupported exception is raised where - // flow cannot have multiple producers - boolean add_producer(in FlowProducer flow_producer, - inout AVStreams::QoS the_qos) - raises (alreadyConnected, AVStreams::notSupported); - - boolean add_consumer(in FlowConsumer flow_consumer, - inout AVStreams::QoS the_qos) - raises (alreadyConnected); - - boolean drop(in FlowEndPoint target) - raises (notConnected); - }; - - interface FlowEndPoint : PropertyService::PropertySet - { - boolean lock(); - void unlock(); - - void stop(); - void start(); - void destroy(); - - // Default is a nil object reference - attribute AVStreams::StreamEndPoint related_sep; - attribute FlowConnection related_flow_connection; - - FlowEndPoint get_connected_fep() - raises (notConnected, - AVStreams::notSupported); - - // syntax of fp_name is - boolean use_flow_protocol(in string fp_name, - in any fp_settings) - raises (AVStreams::FPError, AVStreams::notSupported); - - // set_format() initializes 'format' - // as current media format e.g. MPEG. - void set_format(in string format) - raises (AVStreams::notSupported); - - void set_dev_params( - in PropertyService::Properties new_settings) - raises (PropertyService::PropertyException, - AVStreams::streamOpFailed); - - void set_protocol_restriction(in AVStreams::protocolSpec - the_spec) - raises (AVStreams::notSupported); - - boolean is_fep_compatible(in FlowEndPoint fep) - raises (formatMismatch, deviceQosMismatch); - - boolean set_peer( - in FlowConnection the_fc, - - in FlowEndPoint the_peer_fep, - inout AVStreams::QoS the_qos) - raises (AVStreams::QoSRequestFailed, - AVStreams::streamOpFailed); - - boolean set_Mcast_peer( - in FlowConnection the_fc, - in AVStreams::MCastConfigIf a_mcastconfigif, - inout AVStreams::QoS the_qos) - raises (AVStreams::QoSRequestFailed); - - }; - - interface FlowProducer : FlowEndPoint - { - boolean connect_to_peer(inout AVStreams::QoS the_qos, - in string address, - - in string use_flow_protocol) // syntax - raises(failedToConnect, - AVStreams::FPError, AVStreams::QoSRequestFailed); - - string connect_mcast(inout AVStreams::QoS the_qos, - out boolean is_met, - in string address, - in string use_flow_protocol) - raises (failedToConnect, - AVStreams::notSupported, - AVStreams::FPError, - AVStreams::QoSRequestFailed); - - string get_rev_channel(in string pcol_name); - - void set_key(in AVStreams::key the_key); - void set_source_id(in long source_id); - }; - - interface FlowConsumer : FlowEndPoint - { - - - // Needs to know its peer to choose its protocol correctly - // Also to ask for a reverse channel for credit-based flow - // control, if one is required - string go_to_listen( - inout AVStreams::QoS the_qos, - in boolean is_mcast, - in FlowProducer peer, - inout string flowProtocol)// syntax - raises(failedToListen, AVStreams::FPError, - AVStreams::QoSRequestFailed); - }; - - interface FDev : PropertyService::PropertySet { - FlowProducer create_producer( - in FlowConnection the_requester, - inout AVStreams::QoS the_qos, - out boolean met_qos, - inout string named_fdev) - raises(AVStreams::streamOpFailed, - AVStreams::streamOpDenied, - AVStreams::notSupported, - AVStreams::QoSRequestFailed); - - FlowConsumer create_consumer( - in FlowConnection the_requester, - inout AVStreams::QoS the_qos, - out boolean met_qos, - inout string named_fdev) - raises(AVStreams::streamOpFailed, - AVStreams::streamOpDenied, - AVStreams::notSupported, - AVStreams::QoSRequestFailed); - - FlowConnection bind(in FDev peer_device, - inout AVStreams::QoS the_qos, - out boolean is_met) - raises (AVStreams::streamOpFailed, - AVStreams::QoSRequestFailed); - - FlowConnection bind_mcast(in FDev first_peer, - inout AVStreams::QoS the_qos, - out boolean is_met) - raises (AVStreams::streamOpFailed, - AVStreams::QoSRequestFailed); - - void destroy(in FlowEndPoint the_ep, in string fdev_name) - // ie FDev not found - raises (AVStreams::notSupported); - }; - - enum PositionOrigin { - AbsolutePosition, RelativePosition, ModuloPosition - }; - - enum PositionKey { - ByteCount, SampleCount, MediaTime - }; - - struct Position { - PositionOrigin origin; - PositionKey key; - long value; - }; - - exception PostionKeyNotSupported { PositionKey key;}; - exception InvalidPosition { PositionKey key;}; - - // MediaControl interface is similar to - // ControlledStream interface in MSS. - // It can be inherited by flow endpoints or - // FlowConnection interfaces. - interface MediaControl{ - - exception PostionKeyNotSupported { PositionKey key;}; - - Position get_media_position( - in PositionOrigin an_origin, - in PositionKey a_key) - raises (PostionKeyNotSupported); - - void set_media_position(in Position a_position) - raises (PostionKeyNotSupported, InvalidPosition); - - void start(in Position a_position) - raises(InvalidPosition); - void pause(in Position a_position) - raises(InvalidPosition); - void resume(in Position a_position) - raises(InvalidPosition); - void stop(in Position a_position) - raises(InvalidPosition); - }; -}; - diff --git a/TAO/orbsvcs/orbsvcs/Channel_Clients.cpp b/TAO/orbsvcs/orbsvcs/Channel_Clients.cpp deleted file mode 100644 index cfa1da318d3..00000000000 --- a/TAO/orbsvcs/orbsvcs/Channel_Clients.cpp +++ /dev/null @@ -1 +0,0 @@ -// $Id$ diff --git a/TAO/orbsvcs/orbsvcs/Channel_Clients.h b/TAO/orbsvcs/orbsvcs/Channel_Clients.h deleted file mode 100644 index 487e688eb2c..00000000000 --- a/TAO/orbsvcs/orbsvcs/Channel_Clients.h +++ /dev/null @@ -1,26 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ -// -// ============================================================================ -// -// = LIBRARY -// ace -// -// = FILENAME -// Channel_Clients -// -// = AUTHOR -// Tim Harrison (harrison@cs.wustl.edu) -// -// ============================================================================ - -#ifndef ACE_CHANNEL_CLIENTS_H -#define ACE_CHANNEL_CLIENTS_H - -#include "orbsvcs/Channel_Clients_T.h" - -#if defined (__ACE_INLINE__) -#include "orbsvcs/Channel_Clients.i" -#endif /* __ACE_INLINE__ */ -#endif /* ACE_CHANNEL_CLIENTS_H */ - diff --git a/TAO/orbsvcs/orbsvcs/Channel_Clients_T.cpp b/TAO/orbsvcs/orbsvcs/Channel_Clients_T.cpp deleted file mode 100644 index cc1d2ea78b9..00000000000 --- a/TAO/orbsvcs/orbsvcs/Channel_Clients_T.cpp +++ /dev/null @@ -1,31 +0,0 @@ -// $Id$ - -#ifndef ACE_CHANNEL_CLIENTS_T_C -#define ACE_CHANNEL_CLIENTS_T_C - -#include "orbsvcs/Channel_Clients_T.h" - -#if !defined (__ACE_INLINE__) -#include "orbsvcs/Channel_Clients_T.i" -#endif /* __ACE_INLINE__ */ - -template void -ACE_PushConsumer_Adapter::push (const RtecEventComm::EventSet& events, - CORBA::Environment &_env) -{ - target_->push (events, _env); -} - -template void -ACE_PushConsumer_Adapter::disconnect_push_consumer (CORBA::Environment &_env) -{ - target_->disconnect_push_consumer (_env); -} - -template void -ACE_PushSupplier_Adapter::disconnect_push_supplier (CORBA::Environment &_env) -{ - target_->disconnect_push_supplier (_env); -} - -#endif /* ACE_CHANNEL_CLIENTS_T_C */ diff --git a/TAO/orbsvcs/orbsvcs/Channel_Clients_T.h b/TAO/orbsvcs/orbsvcs/Channel_Clients_T.h deleted file mode 100644 index b7dcf2db00d..00000000000 --- a/TAO/orbsvcs/orbsvcs/Channel_Clients_T.h +++ /dev/null @@ -1,93 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ -// -// ============================================================================ -// -// = LIBRARY -// ace -// -// = FILENAME -// Channel_Clients_T -// -// = AUTHOR -// Tim Harrison (harrison@cs.wustl.edu) and -// Douglas Schmidt (schmidt@cs.wustl.edu) -// -// = DESCRIPTION -// These classes allow applications to be consumer, suppliers, and -// consumer suppliers, as well as being active objects. This is -// accomplished with adapters to prevent the use of multiple -// inheritence (which is this root of all evil.) -// -// ============================================================================ - -#ifndef ACE_CHANNEL_CLIENTS_T_H -#define ACE_CHANNEL_CLIENTS_T_H - -#include "orbsvcs/RtecEventCommS.h" - -// @@ TODO: Add throw specs to this classes. - -template -class ACE_PushConsumer_Adapter : public POA_RtecEventComm::PushConsumer -// = TITLE -// ACE Push Consumer Adapter -// -// = DESCRIPTION -// Forwards all calls to the owner_. -{ -public: - ACE_PushConsumer_Adapter (TARGET *target); - // Forwards all calls to . - - virtual void push (const RtecEventComm::EventSet& events, - CORBA::Environment &_env); - // Forwards to target_. - - virtual void disconnect_push_consumer (CORBA::Environment &); - // Forwards to target_. - -private: - TARGET *target_; - - // g++ 2.7.2.3 on Solaris needs this copy constructor declaration: - ACE_UNIMPLEMENTED_FUNC (ACE_PushConsumer_Adapter (const ACE_PushConsumer_Adapter &)) -}; - -// ************************************************************ - -template -class ACE_PushSupplier_Adapter : public POA_RtecEventComm::PushSupplier -// = TITLE -// ACE Push Supplier Adapter -// -// = DESCRIPTION -// Forwards all calls to disconnect_push_supplier the target_. -{ -public: - ACE_PushSupplier_Adapter (TARGET *target); - // Forwards all calls to . - - virtual void disconnect_push_supplier (CORBA::Environment &); - // Forwards to target_. - -private: - TARGET *target_; - - // g++ 2.7.2.3 on Solaris needs this copy constructor declaration: - ACE_UNIMPLEMENTED_FUNC (ACE_PushSupplier_Adapter (const ACE_PushSupplier_Adapter &)) -}; - -#if defined (__ACE_INLINE__) -#include "orbsvcs/Channel_Clients_T.i" -#endif /* __ACE_INLINE__ */ - -#if defined (ACE_TEMPLATES_REQUIRE_SOURCE) -#include "orbsvcs/Channel_Clients_T.cpp" -#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */ - -#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA) -#pragma implementation ("Channel_Clients_T.cpp") -#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */ - -#endif /* ACE_CHANNEL_CLIENTS_T_H */ diff --git a/TAO/orbsvcs/orbsvcs/Channel_Clients_T.i b/TAO/orbsvcs/orbsvcs/Channel_Clients_T.i deleted file mode 100644 index 620b6fd04a8..00000000000 --- a/TAO/orbsvcs/orbsvcs/Channel_Clients_T.i +++ /dev/null @@ -1,17 +0,0 @@ -// -// $Id$ -// - -template ACE_INLINE -ACE_PushConsumer_Adapter::ACE_PushConsumer_Adapter (TARGET *t) - : target_ (t) -{ -} - -template ACE_INLINE -ACE_PushSupplier_Adapter::ACE_PushSupplier_Adapter (TARGET *t) - : target_ (t) -{ -} - - diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp b/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp deleted file mode 100644 index c25076098ea..00000000000 --- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp +++ /dev/null @@ -1,240 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/orbsvcs/Concurrency_Service -// -// = FILENAME -// CC_Lock.cpp -// -// = DESCRIPTION -// This class implements a lock used by the lock set from the -// concurrency control service. -// -// = AUTHORS -// Torben Worm -// -// ============================================================================ - -#include "CC_Lock.h" -#include "tao/corba.h" - -CC_Lock::CC_Lock (void) - : mode_ (CosConcurrencyControl::intention_read), - lock_held_ (0) -{ -} - -CC_Lock::CC_Lock (CosConcurrencyControl::lock_mode mode) - : mode_ (mode), - lock_held_ (0) -{ -} - -CC_Lock::~CC_Lock (void) -{ -} - -void -CC_Lock::lock (CORBA::Environment &_env) -{ - ACE_DEBUG ((LM_DEBUG, - "CC_Lock::lock\n")); - lock_held_++; - - // if (semaphore_.acquire () == -1) - // TAO_THROW (CORBA::INTERNAL (CORBA::COMPLETED_NO)); -} - -CORBA::Boolean -CC_Lock::try_lock (CORBA::Environment &_env) -{ - ACE_DEBUG ((LM_DEBUG, - "CC_Lock::try_lock. ")); - - lock_held_++; - - ACE_DEBUG ((LM_DEBUG, - "lock_held_: %i, ", - lock_held_)); - - int success = 0;//semaphore_.tryacquire (); - - ACE_DEBUG ((LM_DEBUG, - "success: %i\n", success)); - - if (success == -1) - { - if (errno == EBUSY) - { - lock_held_--; - return CORBA::B_FALSE; - } - else - TAO_THROW_RETURN (CORBA::INTERNAL (CORBA::COMPLETED_NO), - CORBA::B_FALSE); - } - ACE_DEBUG ((LM_DEBUG, - "lock_held_: %i, ", - lock_held_)); - - return CORBA::B_TRUE; -} - -void -CC_Lock::unlock (CORBA::Environment &_env) -{ - ACE_DEBUG ((LM_DEBUG, - "CC_Lock::unlock\n")); - if (lock_held_ == 0) - TAO_THROW (CosConcurrencyControl::LockNotHeld); - - int success = 0; //semaphore_.release (); - - if (success == -1) - TAO_THROW (CORBA::INTERNAL (CORBA::COMPLETED_NO)); - - lock_held_--; - - ACE_DEBUG ((LM_DEBUG, - "lock_held_: %i, ", - lock_held_)); -} - -void -CC_Lock::change_mode (CosConcurrencyControl::lock_mode new_mode, - CORBA::Environment &_env) -{ - ACE_DEBUG ((LM_DEBUG, - "CC_Lock::change_mode\n")); - - // @@TAO Hmmm, we cannot really do anything at present since there - // is only one lock per lock set and that lock is essentially a - // write lock - - if (lock_held_ == 0) - TAO_THROW (CosConcurrencyControl::LockNotHeld); - - this->mode_ = new_mode; -} - -void -CC_Lock::set_mode (CosConcurrencyControl::lock_mode mode) -{ - this->mode_ = mode; -} - -CORBA::Boolean -CC_Lock::Compatible (const CC_Lock &other) -{ - return this->Compatible (other.mode_); -} - -CORBA::Boolean -CC_Lock::Compatible (CosConcurrencyControl::lock_mode mode) -{ - return compatible_[this->mode_][mode]; -} - -CosConcurrencyControl::lock_mode -CC_Lock::GetMode (void) -{ - return mode_; -} - -int -CC_Lock::GetLocksHeld(void) -{ - return this->lock_held_; -} - -void -CC_Lock::DecLocksHeld(void) -{ - this->lock_held_--; -} - -void -CC_Lock::dump(void) -{ - printf("mode_ %i, lock_held_: %i\n", mode_, lock_held_); -} - -// The check of compatibility is a hard coded table statically -// allocated. This table must be changed if the number of lock modes -// or their compatibility are changed. The table here looks different -// from the table in the spec, this is due to the different ordering -// of the lock modes in the table and in the enum in the IDL. The -// first index in the array is the mode held by this lock and the -// second index is the requested mode. -// Requested mode -// Held mode R W U IR IW -// R X X -// W X X X X X -// U X X X X = conflict -// IR X -// IW X X X -// -CORBA::Boolean CC_Lock::compatible_[NUMBER_OF_LOCK_MODES][NUMBER_OF_LOCK_MODES] ={ - {CORBA::B_TRUE, CORBA::B_FALSE, CORBA::B_TRUE, CORBA::B_TRUE, CORBA::B_FALSE}, - {CORBA::B_FALSE, CORBA::B_FALSE, CORBA::B_FALSE, CORBA::B_FALSE, CORBA::B_FALSE}, - {CORBA::B_TRUE, CORBA::B_FALSE, CORBA::B_FALSE, CORBA::B_TRUE, CORBA::B_FALSE}, - {CORBA::B_TRUE, CORBA::B_FALSE, CORBA::B_TRUE, CORBA::B_TRUE, CORBA::B_TRUE}, - {CORBA::B_FALSE, CORBA::B_FALSE, CORBA::B_FALSE, CORBA::B_TRUE, CORBA::B_TRUE}}; - -// CC_LockModeterator - -CC_LockModeIterator::CC_LockModeIterator(void) - : current_ (CosConcurrencyControl::intention_read) -{ -} - -CC_LockModeIterator::~CC_LockModeIterator(void) -{ - // Do nothing -} -void CC_LockModeIterator::First(void) -{ - current_ = CosConcurrencyControl::intention_read; -} - -void CC_LockModeIterator::Next(CORBA::Environment &_env) -{ - switch(current_) - { - case CosConcurrencyControl::intention_read: - current_ = CosConcurrencyControl::read; - break; - case CosConcurrencyControl::read: - current_ = CosConcurrencyControl::upgrade; - break; - case CosConcurrencyControl::upgrade: - current_ = CosConcurrencyControl::intention_write; - break; - case CosConcurrencyControl::intention_write: - current_ = CosConcurrencyControl::write; - break; - case CosConcurrencyControl::write: - TAO_THROW(CORBA::INTERNAL (CORBA::COMPLETED_NO)); - break; - default: - TAO_THROW(CORBA::INTERNAL (CORBA::COMPLETED_NO)); - } -} - -CORBA::Boolean -CC_LockModeIterator::IsDone(void) -{ - if(current_==CosConcurrencyControl::write) - return CORBA::B_TRUE; - else - return CORBA::B_FALSE; -} - -CosConcurrencyControl::lock_mode -CC_LockModeIterator::GetLockMode(void) -{ - return current_; -} diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.h b/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.h deleted file mode 100644 index e384b935053..00000000000 --- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.h +++ /dev/null @@ -1,135 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/orbsvcs/Concurrency_Service -// -// = FILENAME -// CC_Lock.h -// -// = DESCRIPTION -// This class implements a lock used by the lock set from the -// concurrency control service -// -// = AUTHORS -// Torben Worm -// -// ============================================================================ - -#if !defined (_CC_LOCK_H) -#define _CC_LOCK_H - -#include "ace/Synch.h" -#include "orbsvcs/CosConcurrencyControlC.h" - -#define NUMBER_OF_LOCK_MODES 5 -// This constant defines the number of lock modes. There is really no -// way to set this constant dynamically because the nuber of lock -// modes are not stated as part of the IDL. - -class TAO_ORBSVCS_Export CC_Lock -{ - // = TITLE - // CC_Lock - // - // = DESCRIPTION - // This class implements the lock concept from the concurrency - // control service. The lock holds its mode - this might later - // be changed to subclasses depending on the differences of the - // locks. At present the is only a lock-pr-thread/client-type - // which is essentially a write lock since it is not allowed to - // have more than one lock pr. servant in this implementation. -public: - CC_Lock (void); - // Creates the lock with mode = intention_read (weakest) - - CC_Lock (CosConcurrencyControl::lock_mode mode); - // Creates the lock with the desired mode - - ~CC_Lock (void); - // Deletes the lock - - void lock (CORBA::Environment &env); - // Acquires this lock. Blocks until lock is obtained - - CORBA::Boolean try_lock (CORBA::Environment &env); - // Tries to acquire this lock. If it is not possible to acquire the - // lock, false is returned - - void unlock (CORBA::Environment &env); - // Releases this lock. - - void change_mode (CosConcurrencyControl::lock_mode new_mode, - CORBA::Environment &env); - // Changes the mode of this lock. - - void set_mode (CosConcurrencyControl::lock_mode mode); - // Sets the mode_ of the lock. Used in initialization - - CORBA::Boolean Compatible (const CC_Lock &other); - // returns true if this lock is compatible with the other lock. - - CORBA::Boolean Compatible (CosConcurrencyControl::lock_mode mode); - // Returns true is this lock is compatible with the referenced mode. - - CosConcurrencyControl::lock_mode GetMode (void); - // Returns the mode of the lock. - - int GetLocksHeld(void); - // Returns the number of times this lock have been locked - - void DecLocksHeld(void); - // Decrements the number of locks held in this mode. Used by change_mode. - - void dump(void); - // Dumps the state of the object to stdout - -protected: - CosConcurrencyControl::lock_mode mode_; - // Holds the lock's mode. - -private: - int lock_held_; - // If greater than zero the lock is held (that number of times). - - static CORBA::Boolean compatible_[NUMBER_OF_LOCK_MODES][NUMBER_OF_LOCK_MODES]; - // Defines the compatibility of the locks. -}; - -class TAO_ORBSVCS_Export CC_LockModeIterator -{ - // = TITLE - // CC_LockModeIterator - // - // = DESCRIPTION - // This class implements an iterator over the lock modes in - // order to make an ordered traversal over the locks from the - // weakest (intention read) to the strongest (write). - // Ordering: IR -> R -> U -> IW -> W -public: - CC_LockModeIterator(void); - // Default constructor - - ~CC_LockModeIterator(void); - // Destructor - - void First(void); - // Reset the iterator to the first element - - void Next(CORBA::Environment &_env); - // Advance the iterator to the next element - // Throws exception if out of range - - CORBA::Boolean IsDone(void); - // Returns true if the iterator has reached the last element - - CosConcurrencyControl::lock_mode GetLockMode(void); - // Get the current element - -private: - CosConcurrencyControl::lock_mode current_; -}; - -#endif /* !defined (_CC_LOCK_H) */ diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp deleted file mode 100644 index 8c8ae882439..00000000000 --- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp +++ /dev/null @@ -1,359 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// cos -// -// = FILENAME -// CC_LockSet.cpp -// -// = AUTHOR -// Torben Worm -// -// ============================================================================ - -#include "CC_LockSet.h" - -// Default constructor. - -CC_LockSet::CC_LockSet (void) - : related_lockset_ (0) -{ - ACE_NEW(mlock_, ACE_Thread_Mutex); - TAO_TRY - { - this->Init(TAO_TRY_ENV); - TAO_CHECK_ENV; - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception("CC_LockSet::CC_LockSet(...)"); - } - TAO_ENDTRY; -} - -// Constructor used to create related lock sets. - -CC_LockSet::CC_LockSet (CosConcurrencyControl::LockSet_ptr related) - : related_lockset_ (related) -{ - ACE_NEW(mlock_, ACE_Thread_Mutex); - TAO_TRY - { - this->Init(TAO_TRY_ENV); - TAO_CHECK_ENV; - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception("CC_LockSet::CC_LockSet(...)"); - } - TAO_ENDTRY; -} - -// Initialization. - -void -CC_LockSet::Init(CORBA::Environment &_env) -{ - // Set the mode of the statically allocated locks - lock_[CC_IR] = 0; - lock_[CC_R] = 0; - lock_[CC_U] = 0; - lock_[CC_IW] = 0; - lock_[CC_W] = 0; - - // Acquire the semaphore in order to be able to put requests on hold - if(semaphore_.acquire()==-1) - TAO_THROW (CORBA::INTERNAL (CORBA::COMPLETED_NO)); -} - -// Destructor - -CC_LockSet::~CC_LockSet (void) -{ - if(this->mlock_!=0) - delete mlock_; -} - -// Returns true if the requested lock mode is compatible with the -// modes held. False otherwise. -CORBA::Boolean CC_LockSet::compatible(CC_LockModeEnum mr) -{ - int i=CC_IR; - - while(i<=CC_W) - { - if(this->lock_[i]>0) - if(this->compatible_[i][mr]==CORBA::B_FALSE) - { - return CORBA::B_FALSE; - } - i++; - } - - return CORBA::B_TRUE; -} - -// Locks the lock in the desired mode. Blocks until success. - -void -CC_LockSet::lock (CosConcurrencyControl::lock_mode mode, - CORBA::Environment &_env) -{ - ACE_DEBUG ((LM_DEBUG, "CC_LockSet::lock\n")); - - CC_LockModeEnum lm = lmconvert(mode); - - // Check to see if the requested mode is compatible with the - // modes held so far. If not put the request on hold. - - if(this->lock_d(lm)==1) - if(semaphore_.acquire()==-1) - TAO_THROW (CORBA::INTERNAL (CORBA::COMPLETED_NO)); - - // ACE_DEBUG ((LM_DEBUG, - // "waiting_calls_: %i, IR: %i, R: %i, U: %i, IW: %i, W: %i\n", - // lock_queue_.size(), - // lock_[CC_IR], lock_[CC_R], lock_[CC_U], lock_[CC_IW], lock_[CC_W])); -} - -// Tries to lock. If it is not possible false is returned. - -CORBA::Boolean -CC_LockSet::try_lock (CosConcurrencyControl::lock_mode mode, - CORBA::Environment &_env) -{ - // CORBA::Boolean success = CORBA::B_TRUE; - - CC_LockModeEnum lm = lmconvert(mode); - - ACE_DEBUG ((LM_DEBUG, - "CC_LockSet::try_lock\n")); - if(this->try_lock_d(lm)==0) - return CORBA::B_FALSE; // success = CORBA::B_FALSE; - else - return CORBA::B_TRUE; // success = CORBA::B_TRUE; - - //ACE_DEBUG ((LM_DEBUG, - // "waiting_calls_: %i, IR: %i, R: %i, U: %i, IW: %i, W: %i\n", - // lock_queue_.size(), - // lock_[CC_IR], lock_[CC_R], lock_[CC_U], lock_[CC_IW], lock_[CC_W])); - //return success; -} - -// Converts the enum from the spec to the internally (ordered) -// enum. - -CC_LockModeEnum -CC_LockSet::lmconvert(CosConcurrencyControl::lock_mode mode) -{ - switch(mode) - { - case CosConcurrencyControl::intention_read: - return CC_IR; - case CosConcurrencyControl::read: - return CC_R; - case CosConcurrencyControl::upgrade: - return CC_U; - case CosConcurrencyControl::intention_write: - return CC_IW; - case CosConcurrencyControl::write: - return CC_W; - default: - return CC_EM; - } -} - -// Unlock the lock - -void -CC_LockSet::unlock (CosConcurrencyControl::lock_mode mode, - CORBA::Environment &_env) -{ - ACE_DEBUG ((LM_DEBUG, - "CC_LockSet::unlock\n")); - - CC_LockModeEnum lm = lmconvert(mode); - - ACE_GUARD (ACE_Thread_Mutex, ace_mon, *this->mlock_); - - TAO_TRY - { - if(lock_[lm]==0) // This lock is not held. - TAO_THROW (CosConcurrencyControl::LockNotHeld); - else - lock_[lm]--; - TAO_CHECK_ENV; - // If we do not have a lock held in a weaker mode than the - // strongest held and we have requests on the semaphore signal - // the semaphore. - while(lock_queue_.size()>0) - { - CC_LockModeEnum lock_on_queue = CC_EM; - lock_queue_.dequeue_head(lock_on_queue); - if(compatible(lock_on_queue)==CORBA::B_TRUE) - { - if(semaphore_.release()==-1) - TAO_THROW (CORBA::INTERNAL (CORBA::COMPLETED_NO)); - lock_[lock_on_queue]++; - } - else - { - lock_queue_.enqueue_head(lock_on_queue); - break; - } - } - } - TAO_CATCHANY - { - TAO_RETHROW; - } - TAO_ENDTRY; - ACE_DEBUG ((LM_DEBUG, - "waiting_calls_: %i, IR: %i, R: %i, U: %i, IW: %i, W: %i\n", - lock_queue_.size(), - lock_[CC_IR], lock_[CC_R], lock_[CC_U], lock_[CC_IW], lock_[CC_W])); -} - -// Changes the mode of a held lock. - -void -CC_LockSet::change_mode (CosConcurrencyControl::lock_mode held_mode, - CosConcurrencyControl::lock_mode new_mode, - CORBA::Environment &_env) -{ - ACE_DEBUG ((LM_DEBUG, - "CC_LockSet::change_mode\n")); - CC_LockModeEnum lm_held = lmconvert(held_mode); - CC_LockModeEnum lm_new = lmconvert(new_mode); - - TAO_TRY - { - if(this->lock_held(lm_held) == 0) // This lock is not held - TAO_THROW (CosConcurrencyControl::LockNotHeld); - else - { - if(this->change_mode_d(lm_held, lm_new)==1) - { - this->unlock(held_mode, _env); - if(semaphore_.acquire()==-1) - TAO_THROW (CORBA::INTERNAL (CORBA::COMPLETED_NO)); - } - } - } - TAO_CATCHANY - { - TAO_RETHROW; - } - TAO_ENDTRY; - - ACE_DEBUG ((LM_DEBUG, - "waiting_calls_: %i, IR: %i, R: %i, U: %i, IW: %i, W: %i\n", - lock_queue_.size(), - lock_[CC_IR], lock_[CC_R], lock_[CC_U], lock_[CC_IW], lock_[CC_W])); -} - -int -CC_LockSet::lock_d(CC_LockModeEnum lm) -{ - ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, *this->mlock_, 1); - // If the lock is not compatible with the locks we hold allready or - // there is lock requests in the queue we cannot grant the lock and - // thus we queue the request. Otherwise update the lock count. - if(compatible(lm)==CORBA::B_FALSE || lock_queue_.size()>0) - { - // Put the lock mode in the queue - lock_queue_.enqueue_tail(lm); - this->dump(); - return 1; // Lock the semaphore - } - else - { - lock_[lm]++; - } - this->dump(); - return 0; -} - -int -CC_LockSet::try_lock_d(CC_LockModeEnum lm) -{ - ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, *this->mlock_, 1); - // If the lock we try is compatible with the locks we hold we just - // opdates the count. Otherwise we return false. - if(compatible(lm)==CORBA::B_FALSE) - { - this->dump(); - return 0; - } - else - { - lock_[lm]++; - } - this->dump(); - return 1; -} - -int -CC_LockSet::change_mode_d(CC_LockModeEnum lm_held, - CC_LockModeEnum lm_new) -{ - ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, *this->mlock_, 1); - // If the new mode is compatible with the modes we hold we change - // the counts for the two locks. If not we must queue the new - // request. We can decrement the count for the old mode without - // signalling the semaphore because we know we only check modes - // granted this far. - lock_[lm_held]--; - if(compatible(lm_new)==CORBA::B_TRUE) - { - lock_[lm_new]++; - this->dump(); - return 0; - } - else - { - lock_[lm_held]++; - lock_queue_.enqueue_tail(lm_new); - this->dump(); - return 1; - } -} - -int -CC_LockSet::lock_held(CC_LockModeEnum lm) -{ - ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, *this->mlock_, 1); - if(lock_[lm]>0) - return 1; - else - return 0; -} - -void -CC_LockSet::dump(void) -{ - printf("waiting_calls_: %i, ", lock_queue_.size()); - for(int i=CC_IR; i<=CC_W; i+=1) - printf("%i ", lock_[i]); - printf("\n"); -} - -CORBA::Boolean CC_LockSet::compatible_[NUMBER_OF_LOCK_MODES][NUMBER_OF_LOCK_MODES] ={ - {CORBA::B_TRUE, CORBA::B_TRUE, CORBA::B_TRUE, CORBA::B_TRUE, CORBA::B_FALSE}, - {CORBA::B_TRUE, CORBA::B_TRUE, CORBA::B_TRUE, CORBA::B_FALSE, CORBA::B_FALSE}, - {CORBA::B_TRUE, CORBA::B_TRUE, CORBA::B_FALSE, CORBA::B_FALSE, CORBA::B_FALSE}, - {CORBA::B_TRUE, CORBA::B_FALSE, CORBA::B_FALSE, CORBA::B_TRUE, CORBA::B_FALSE}, - {CORBA::B_FALSE, CORBA::B_FALSE, CORBA::B_FALSE, CORBA::B_FALSE, CORBA::B_FALSE}}; - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Node; -template class ACE_Unbounded_Queue; -template class ACE_Unbounded_Queue_Iterator; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Node -#pragma instantiate ACE_Unbounded_Queue -#pragma instantiate ACE_Unbounded_Queue_Iterator -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.h b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.h deleted file mode 100644 index 73179519b72..00000000000 --- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.h +++ /dev/null @@ -1,166 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/orbsvcs/Concurrency_Service -// -// = FILENAME -// CC_LockSet.h -// -// = DESCRIPTION -// This class implements the lock set interface from the -// concurrency service. -// -// In the present implementation the multiple possesion semantics -// is implemented for non-transactional clients. In future -// versions this should be changed because the multiple possesion -// semantics does not apply to non-transactional clients. This -// can be accomplished in the following manner: -// - Make a class with the same functiallity as the CC_LockSet -// class as a base class for both implementations. -// - The functionallity that should be separated out in the -// subclasses is the compatible function which should always -// return false because no locks can be held simultanously with -// non-transactional clients. -// - Use these classes from the classes that inherits the -// servant properties, i.e. the way CC_LockSet does now. -// -// = AUTHORS -// Torben Worm -// -// ============================================================================ - -#if !defined (_CC_LOCKSET_H) -#define _CC_LOCKSET_H - -#include "ace/Synch.h" -#include "ace/Token.h" -#include "orbsvcs/CosConcurrencyControlS.h" - -#define NUMBER_OF_LOCK_MODES 5 -// This constant defines the number of lock modes. There is really no -// way to set this constant dynamically because the nuber of lock -// modes are not stated as part of the IDL. - -typedef enum {CC_EM=-1, CC_IR=0, CC_R, CC_U, CC_IW, CC_W} CC_LockModeEnum; -// Enummeration representing the lock modes. The incomming request is -// always converted to this representation. There are two reasons for -// this: Firstly the lock modes are ordered from weakest to strongest -// in the internal representation, and secondly it is possible to -// indicate a 'non-mode' (CC_EM) - -class TAO_ORBSVCS_Export CC_LockSet : public POA_CosConcurrencyControl::LockSet - // = TITLE - // CC_LockSet - // - // = DESCRIPTION - // This class implements the LockSet interface that is part of - // the CosConcurrency service. Please consult the idl file for - // detailed descriptions apart from the comments in this file At - // present the lock set is not really a set, but only one lock. -{ -public: - // = Initialization and termination methods. - CC_LockSet(void); - // Default constructor - - CC_LockSet(CosConcurrencyControl::LockSet_ptr related); - // Constructor used if create_related is used to create the lock - // set. - - ~CC_LockSet(void); - // Destructor. - - virtual void lock (CosConcurrencyControl::lock_mode mode, - CORBA::Environment &env); - // Acquires this lock. Blocks until lock is obtained - - virtual CORBA::Boolean try_lock (CosConcurrencyControl::lock_mode mode, - CORBA::Environment &env); - // Tries to acquire this lock. If it is not possible to acquire the - // lock, false is returned - - virtual void unlock (CosConcurrencyControl::lock_mode mode, - CORBA::Environment &env); - // Releases this lock. - - virtual void change_mode (CosConcurrencyControl::lock_mode held_mode, - CosConcurrencyControl::lock_mode new_mode, - CORBA::Environment &env); - // Changes the mode of this lock. - - void dump(void); - // Dump the state of the object to stdout - -private: - CC_LockModeEnum lmconvert(CosConcurrencyControl::lock_mode mode); - // Converts the CORBA specification's lock mode to the internal - // representation - - void Init(CORBA::Environment &_env); - // Initiatlizes the lock set array and acquires the initial - // semaphore. - - CORBA::Boolean compatible(CC_LockModeEnum mr); - // Returns true if the held lock and the requested lock are compatible - - // The _d functions below ensures atomical access the the state data - // for the lock set. The functions acquires a thread lock in order - // to insure consistency within the lock set. The return value - // typically indicates whether the current thread should be - // suspended or not (by locking the semaphore. - - int lock_d(CC_LockModeEnum lm); - // Locks the access to the data and decides whether to lock or - // not. Returns 1 if the semaphore should be locked. - - // int unlock_d(CosConcurrencyControl::lock_mode lm); - // This function is not necessary because we lock access to the data - // and unlocks the semaphore until an invalid lock mode is first on - // the queue. Thereafter we release the lock. - - int try_lock_d(CC_LockModeEnum lm); - // Locks the access to the data and determines whether to return - // true or false. Returns 1 if true should be returned. - - int change_mode_d(CC_LockModeEnum lm_held, - CC_LockModeEnum lm_new); - // Locks access to the data and determines if the semaphore should - // be locked. Returns 1 if the semaphore should be locked. - - int lock_held(CC_LockModeEnum lm); - // Locks access ti the data and checks whether the lock is held. - - int lock_[NUMBER_OF_LOCK_MODES]; - // An array of lock counters that counts how many locks of that type - // that the lock set holds. - - ACE_Thread_Semaphore semaphore_; - // ACE_Token semaphore_; - // This is the semaphore for the lock set. The semaphore is used to - // queue requests for locks in modes stronger than currently - // possible to grant. - - CosConcurrencyControl::LockSet_ptr related_lockset_; - // If this lock set is related to another lock set, this is the - // pointer to the related lock set. This is a really simple - // solution, but since transactions are not supported in the first - // version there should be no reason to drop lock sets together. The - // LockSetCoordinator is not implemented (it has the - // responsibilities of dropping the locks). - - static CORBA::Boolean compatible_[NUMBER_OF_LOCK_MODES][NUMBER_OF_LOCK_MODES]; - // Mapping between requested and held lock modes. Used by compatible(...). - // Uses the internal enumeration as indices. - - // ACE_Thread_Mutex mlock_; - ACE_Thread_Mutex *mlock_; - // Lock to ensure that race conditions does not occur - - ACE_Unbounded_Queue lock_queue_; - // Queue to hold the requested locks not yet granted. -}; - -#endif /* _CC_LOCKSET_H */ diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp deleted file mode 100644 index 48707c04a2b..00000000000 --- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp +++ /dev/null @@ -1,74 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// cos -// -// = FILENAME -// CC_LockSetFactory.cpp -// -// = AUTHOR -// Torben Worm -// -// ============================================================================ - -#include "CC_LockSetFactory.h" -#include "CC_LockSet.h" - -// Default constructor -CC_LockSetFactory::CC_LockSetFactory (void) -{ - ACE_NEW (this->lock_, ACE_Lock_Adapter); - // Acquire a lock to ensure only one client will be in the factory - // at any time -} - -// Destructor. -CC_LockSetFactory::~CC_LockSetFactory (void) -{ - delete this->lock_; - // Delete the serialization lock -} - -CosConcurrencyControl::LockSet_ptr -CC_LockSetFactory::create ( CORBA::Environment &_env) -{ - CC_LockSet *ls = 0; - - _env.clear (); - _env.exception (new CORBA::UNKNOWN (CORBA::COMPLETED_NO)); - ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->lock_, CosConcurrencyControl::LockSet::_nil ()); - - _env.clear (); - - _env.exception (new CORBA::NO_MEMORY (CORBA::COMPLETED_NO)); - ACE_NEW_RETURN (ls, - CC_LockSet, - CosConcurrencyControl::LockSet::_nil ()); - _env.clear (); - - return ls->_this (_env); -} - -CosConcurrencyControl::LockSet_ptr -CC_LockSetFactory::create_related (CosConcurrencyControl::LockSet_ptr which, - CORBA::Environment &_env) -{ - CC_LockSet *ls = 0; - - _env.clear (); - _env.exception (new CORBA::UNKNOWN (CORBA::COMPLETED_NO)); - ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->lock_, CosConcurrencyControl::LockSet::_nil ()); - - _env.clear (); - - _env.exception (new CORBA::NO_MEMORY (CORBA::COMPLETED_NO)); - ACE_NEW_RETURN (ls, - CC_LockSet (which), - CosConcurrencyControl::LockSet::_nil ()); - _env.clear (); - - return ls->_this (_env); -} diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h deleted file mode 100644 index 12fbcfdaf57..00000000000 --- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h +++ /dev/null @@ -1,55 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/orbsvcs/Concurrency_Service -// -// = FILENAME -// CC_LockSetFactory.h -// -// = DESCRIPTION -// This class implements the lock set factory interface from the -// concurrency service. -// -// = AUTHORS -// Torben Worm -// -// ============================================================================ - -#if !defined (_CC_LOCKSETFACTORY_H) -#define _CC_LOCKSETFACTORY_H - -// #include "tao/corba.h" -#include "orbsvcs/CosConcurrencyControlS.h" - -class TAO_ORBSVCS_Export CC_LockSetFactory : public POA_CosConcurrencyControl::LockSetFactory - // = TITLE - // CC_LockSetFactory - // - // = DESCRIPTION - // This class implements the LockSetFactory interface that is - // part of the CosConcurrency service. Please consult the idl - // file for detailed descriptions apart from the comments in - // this file. -{ -public: - // = Initialization and termination methods. - CC_LockSetFactory(void); - // Default constructor. - - ~CC_LockSetFactory(void); - // Destructor. - - virtual CosConcurrencyControl::LockSet_ptr create (CORBA::Environment &env); - - virtual CosConcurrencyControl::LockSet_ptr create_related (CosConcurrencyControl::LockSet_ptr which, - CORBA::Environment &env); -private: - ACE_Lock *lock_; - // Lock to serialize the access to the factory. - -}; - -#endif /* _CC_LOCKSETFACTORY_H */ diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.cpp b/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.cpp deleted file mode 100644 index 1556f245210..00000000000 --- a/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.cpp +++ /dev/null @@ -1,94 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/orbsvcs/Concurrency_Service -// -// = FILENAME -// Concurrency_Utils.cpp -// -// = AUTHOR -// Torben Worm -// -// ============================================================================ - -#include "ace/streams.h" -#include "orbsvcs/CosConcurrencyControlC.h" -#include "tao/corba.h" -#include "Concurrency_Utils.h" - -// Default constructor - -TAO_Concurrency_Server::TAO_Concurrency_Server (void) -{ -} - -// Constructor which takes an ORB and POA. - -TAO_Concurrency_Server::TAO_Concurrency_Server (CORBA::ORB_var &orb, - PortableServer::POA_var &poa) -{ - this->init (orb, poa); -} - -// Function to initialize the concurrency server object under the -// passed orb and poa. - -int -TAO_Concurrency_Server::init (CORBA::ORB_var &orb, - PortableServer::POA_var &poa) -{ - TAO_TRY - { - // Get the naming context ptr to NameService. - TAO_CHECK_ENV; - - PortableServer::ObjectId_var id = - PortableServer::string_to_ObjectId ("ConcurrencyService"); - - poa->activate_object_with_id (id.in (), - &lock_set_factory_, - TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Stringify the objref we'll be implementing, and print it to - // stdout. Someone will take that string and give it to a - // client. Then release the object. - CORBA::Object_var obj = - poa->id_to_reference (id.in (), - TAO_TRY_ENV); - TAO_CHECK_ENV; - - CORBA::String_var str = - orb->object_to_string (obj.in (), - TAO_TRY_ENV); - TAO_CHECK_ENV; - - ACE_DEBUG ((LM_DEBUG, - "listening as object <%s>\n", - str.in ())); - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("Concurrency Service"); - } - TAO_ENDTRY; - return 0; -} - -// Get the lock set factory. - -CC_LockSetFactory * -TAO_Concurrency_Server::GetLockSetFactory(void) -{ - return &this->lock_set_factory_; -} - -// Destructor. - -TAO_Concurrency_Server::~TAO_Concurrency_Server (void) -{ -} - - diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h b/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h deleted file mode 100644 index 0958472b535..00000000000 --- a/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h +++ /dev/null @@ -1,65 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/orbsvcs/Concurrency_Service -// -// = FILENAME -// Concurrency_Utils.h -// -// = DESCRIPTION -// This class implements a Concurrency Server wrapper class which -// holds a number of lock sets. The server must run in the -// thread per request concurrency model in order to let the -// clients block on the semaphores. -// -// = AUTHORS -// Torben Worm -// -// ============================================================================ - -#if !defined (_CONCURRENCY_SERVER_H) -#define _CONCURRENCY_SERVER_H - -#include "tao/corba.h" -#include "orbsvcs/CosConcurrencyControlC.h" -#include "CC_LockSetFactory.h" - -class TAO_ORBSVCS_Export TAO_Concurrency_Server -{ - // = TITLE - // Defines a wrapper class for the implementation of the - // concurrency server. - // - // = DESCRIPTION - // This class takes an orb and Poa reference and activates the - // concurrency service lock set factory object under them. -public: - // = Initialization and termination methods. - TAO_Concurrency_Server (void); - //Default constructor. - - TAO_Concurrency_Server (CORBA::ORB_var &orb, - PortableServer::POA_var &poa); - // Takes the POA under which to register the Concurrency Service - // implementation object. - - ~TAO_Concurrency_Server (void); - // Destructor. - - int init (CORBA::ORB_var &orb, - PortableServer::POA_var &poa); - // Initialize the concurrency server under the given ORB and POA. - - CC_LockSetFactory *GetLockSetFactory(void); - // Get the lock set factory. - -private: - CC_LockSetFactory lock_set_factory_; - // This is the lock set factory activated under the POA. -}; - -#endif /* _CONCURRENCY_SERVER_H */ - diff --git a/TAO/orbsvcs/orbsvcs/CosConcurrencyControl.idl b/TAO/orbsvcs/orbsvcs/CosConcurrencyControl.idl deleted file mode 100644 index 9c9415c6aee..00000000000 --- a/TAO/orbsvcs/orbsvcs/CosConcurrencyControl.idl +++ /dev/null @@ -1,194 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// cos -// -// = FILENAME -// CosTransaction.idl -// -// = DESCRIPTION -// Described in CORBAservices: Common Object Services -// Specification, chapter 7 The concurrency service description can -// be downloaded from -// ftp://www.omg.org/pub/docs/formal/97-11-02.idl -// -// = AUTHOR -// OMG and Torben Worm -// -// ============================================================================ - -//CosConcurrencyControl Module, page 7-8 -//Includes the following interfaces: -// LockCoordinator, LockSet, TransactionalLockSet, LockSetFactory - -// The part depending on the transaction service may be included by defining -// TAO_HAS_TRANSACTION_CONTROL_SERVICE - -#if defined (TAO_HAS_TRANSACTION_CONTROL_SERVICE) -#include -#endif /* TAO_HAS_TRANSACTION_CONTROL_SERVICE */ - -module CosConcurrencyControl -{ - // = TITLE - // CosConcurrencyControl - // - // = DESCRIPTION - // This idl file describes the concurrency control service. The - // purpose of the concurrency control service is to mediate - // concurrent access to an pbject such that the consistency of - // the object is not compromised when accessed by concurrently - // executing computations. - - // = These are the different lock types supported by this module. - - // For a description of the compatability between the different lock - // types please consult the service description (OMG). - enum lock_mode - { - read, - write, - upgrade, - intention_read, - intention_write - }; - - exception LockNotHeld {}; - // The LockNotHeld exception is is raised when an operation to - // unlock or change the mode of a lock is called and the specified - // lock is not held - -#if defined (TAO_HAS_TRANSACTION_CONTROL_SERVICE) - // @@ The lock coordinator is designed for transactional lock sets, - // so we don't support it (yet). - interface LockCoordinator - { - // = TITLE - // LockCoordinator drops all locks associated with a transaction. - // = DESCRIPTION - // The LockCoordinator interface enables a transaction service to - // drop all locks held by a transaction. - - void drop_locks (); - // Releases all the locks held by the transaction. Designet to be - // used by transaction service when a transaction commits or aborts. - }; -#endif /* TAO_HAS_TRANSACTION_CONTROL_SERVICE */ - - interface LockSet - { - // = TITLE - // LockSet inteface to the concurrency service in implicit - // mode. - // - // = DESCRIPTION - // Clients operating in the implicit mode - // (i.e. non-transactional mode) acquire and release locks - // in lock sets throug this interface. The interface only - // provides operations to acquire and release locks on - // behalf of the calling thread or transaction. - - void lock (in lock_mode mode); - // Acquires a lock on the specified lock set in the specified - // mode. Blocks until lock is obtained. - - boolean try_lock (in lock_mode mode); - // Tries to acquire a lock on the specified lock set. If it is - // not possible to acquire the lock false is returned. - - void unlock (in lock_mode mode) - raises (LockNotHeld); - // Releases a single lock on the specified lock set. A lock can - // be held multiple times in the same mode. If the lock is not - // held the exception LockNotHeld is raised. - - void change_mode (in lock_mode held_mode, - in lock_mode new_mode) - raises (LockNotHeld); - // Changes the mode of the lock on the specified lock set. If a - // conflicting lock is held by another client the call blocks - // until the new mode can be granted. If the lock is not held in - // the specified mode the exception LockNotHeld is raised. - -#if defined (TAO_HAS_TRANSACTION_CONTROL_SERVICE) - LockCoordinator get_coordinator (in CosTransactions::Coordinator which); - // Returns the lock coordinator associated with the specified - // transaction. -#endif /* TAO_HAS_TRANSACTION_CONTROL_SERVICE */ - }; - -#if defined (TAO_HAS_TRANSACTION_CONTROL_SERVICE) - interface TransactionalLockSet - { - // = TITLE - // TransactionalLockSet interface to the concurrency service - // in transactional mode. - // - // = DESCRIPTION - // Clients operating in the transactional mode acquire and - // release locks in lock sets through this interface. The - // interface provides operations identical to the operations - // described in the LockSet interface section. The - // difference beeing that the coordinator for the - // transaction is explicitly passed as a reference to the - // operations. Please see the description of the LockSet - // interface for a detailed description. - - void lock (in CosTransactions::Coordinator current, - in lock_mode mode); - // See LockSet::lock - - boolean try_lock (in CosTransactions::Coordinator current, - in lock_mode mode); - // See LockSet::try_lock - - void unlock (in CosTransactions::Coordinator current, - in lock_mode mode) - raises (LockNotHeld); - // See LockSet::unlock - - void change_mode (in CosTransactions::Coordinator current, - in lock_mode held_mode, - in lock_mode new_mode) - raises (LockNotHeld); - // See LockSet::change_mode - - LockCoordinator get_coordinator (in CosTransactions::Coordinator which); - // See LockSet::get_coordinator - }; -#endif /* TAO_HAS_TRANSACTION_CONTROL_SERVICE */ - - interface LockSetFactory - { - // = TITLE - // Factory interface for the LockSet and - // TransactionalLockSet interfaces. - // - // = DESCRIPTION - // Factory for creating the lock sets. - - LockSet create (); - // Creates a new LockSet and lock coordinator - // @@TAO ??? is this correct? Lock coordinators are associated with - // transactions. - tworm - - LockSet create_related (in LockSet which); - // Creates a lock set related to the specified lock set. Related lock - // sets drop their locks together. - -#if defined (TAO_HAS_TRANSACTION_CONTROL_SERVICE) - TransactionalLockSet create_transactional (); - // Creates a new TransactionalLockSet and lock coordinator for - // transactional mode clients. - - TransactionalLockSet create_transactional_related (in TransactionalLockSet which); - // Creates a new transactional lock set related to the specified lock - // set. Related lock sets drop locks together. -#endif /* TAO_HAS_TRANSACTION_CONTROL_SERVICE */ - }; -}; - - diff --git a/TAO/orbsvcs/orbsvcs/CosLifeCycle.idl b/TAO/orbsvcs/orbsvcs/CosLifeCycle.idl deleted file mode 100644 index 0f849676df4..00000000000 --- a/TAO/orbsvcs/orbsvcs/CosLifeCycle.idl +++ /dev/null @@ -1,119 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// cos -// -// = FILENAME -// CosLifeCycle.idl -// -// = DESCRIPTION -// Described in CORBAservices: Common Object Services Specification, -// chapter 6. -// The life cycle service description can be downloaded from: -// ftp://www.omg.org/pub/docs/formal/97-12-13.pdf -// The original IDL file can be downloaded from: -// ftp://www.omg.org/pub/docs/formal/97-11-02.idl -// -// = AUTHOR -// OMG, Torben Worm , and Michael Kircher -// -// ============================================================================ - -// OMG IDL for CosLifeCycle Module, page 6-10 in -// Includes the following interfaces: -// FactoryFinder, LifeCycleObject, GenericFactory - -#include "CosNaming.idl" - -module CosLifeCycle -{ - // = TITLE - // CosLifeCycle - // - // = DESCRIPTION - // This idl file describes the life cycle service. - // The purpose of the life cycle service is to - - typedef CosNaming::Name Key; - typedef Object Factory; - typedef sequence Factories; - - typedef struct NVP - { - CosNaming::Istring name; - any value; - } NameValuePair; - - typedef sequence Criteria; - - exception NoFactory - { - Key search_key; - }; - exception NotCopyable { string reason; }; - exception NotMovable { string reason; }; - exception NotRemovable { string reason; }; - exception InvalidCriteria - { - Criteria invalid_criteria; - }; - exception CannotMeetCriteria - { - Criteria unmet_criteria; - }; - - interface FactoryFinder - { - // = TITLE - // @@ Please fill in. - // = DESCRIPTION - // @@ Please fill in. - - Factories find_factories (in Key factory_key) - raises (NoFactory); - }; - - interface LifeCycleObject - { - // = TITLE - // @@ Please fill in. - // = DESCRIPTION - // @@ Please fill in. - - LifeCycleObject copy (in FactoryFinder there, - in Criteria the_criteria) - raises (NoFactory, NotCopyable, InvalidCriteria, CannotMeetCriteria); - void move (in FactoryFinder there, - in Criteria the_criteria) - raises (NoFactory, NotMovable, InvalidCriteria, CannotMeetCriteria); - void remove () - raises (NotRemovable); - }; - - interface GenericFactory - { - // = TITLE - // @@ Please fill in. - // = DESCRIPTION - // @@ Please fill in. - - boolean supports (in Key k); - Object create_object (in Key k, - in Criteria the_criteria) - raises (NoFactory, InvalidCriteria, CannotMeetCriteria); - }; -}; - -// Criteria, page 6-17: -/* -typedef struct NVP -{ - CosNaming::Istring name; - any value; -} NameValuePair; - -typedef sequence Criteria; -*/ diff --git a/TAO/orbsvcs/orbsvcs/CosNaming.idl b/TAO/orbsvcs/orbsvcs/CosNaming.idl deleted file mode 100644 index e9064eec131..00000000000 --- a/TAO/orbsvcs/orbsvcs/CosNaming.idl +++ /dev/null @@ -1,207 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// cos -// -// = FILENAME -// CosNaming.idl -// -// = AUTHOR -// Marina Spivak -// -// ============================================================================ - -module CosNaming - // = TITLE - // This module provides interface for using COS Naming Service. -{ - typedef string Istring; - struct NameComponent - { - Istring id; - // This is the name that is used to identify object references. - - Istring kind; - // Stores any addtional info about the object reference. - }; - // This is a 'simple' name. - // NOTE: both id and kind fields are used in resolving names. - - typedef sequence Name; - // This is a compound name: where c1 to cn-1 are - // the names of the nested contexts, and cn is the name of the - // object bound in cn-1. - - enum BindingType - { - nobject, - // object binding. - - ncontext - // naming context binding. - }; - - struct Binding - { - Name binding_name; - BindingType binding_type; - }; - - typedef sequence BindingList; - - interface BindingIterator; - // Forward declaration. - - interface NamingContext - // = TITLE - // Interface for managing name bindings and naming contexts. - { - // = Exceptions. - - enum NotFoundReason - { - missing_node, - not_context, - not_object - }; - - exception NotFound - { - NotFoundReason why; - Name rest_of_name; - }; - // Indicates that the name does not identify a binding. - - exception CannotProceed - { - //Commented out due to the bug in Orbix compiler - NamingContext cxt; - Name rest_of_name; - }; - // Implementation has given up for some reason. The client, - // however, may be able to continue operation at the returned - // naming context. - - exception InvalidName {}; - // A name of length 0 is invalid. - // Implementations may place further restrictions. - - exception AlreadyBound {}; - // Indicates that the specified name is already bound to some - // object. Only one object can be bound to a particular name in - // a context. To change the binding, and - // can be used. - - exception NotEmpty {}; - // Indicates that the context is not empty. - - // = Binding operations. - - void bind (in Name n, in Object obj) - raises(NotFound, CannotProceed, InvalidName, AlreadyBound); - // create a binding for name and object in the naming - // context. Compound names are treated as follows: ctx->bind - // (, obj) = (ctx->resolve ())->bind (, obj) if the there already exists a - // binding for the specified name, exception is - // thrown. Naming contexts should be bound using - // and in order to participate in name - // resolution later. - - void rebind (in Name n, in Object obj) - raises(NotFound, CannotProceed, InvalidName); - // this is similar to operation above, except for when - // the binding for the specified name already exists in the - // specified context. In that case, the existing binding is - // replaced with the new one. - - void bind_context (in Name n, in NamingContext nc) - raises(NotFound, CannotProceed, InvalidName, AlreadyBound); - // This is the version of specifically for binding naming - // contexts, so that they will participate in name resolution - // when compound names are passed to be resolved. - - void rebind_context (in Name n, in NamingContext nc) - raises(NotFound, CannotProceed, InvalidName); - // This is a version of specifically for naming - // contexts, so that they can participate in name resolution - // when compound names are passed. - - // = Resolving names. - - Object resolve (in Name n) - raises(NotFound, CannotProceed, InvalidName); - // Return object reference that is bound to the name. Compound - // name resolve is defined as follows: ctx->resolve () = ctx->resolve ()->resolve () The - // naming service does not return the type of the object. - // Clients are responsible for "narrowing" the object to the - // appropriate type. - - // = Unbinding names. - - void unbind (in Name n) - raises(NotFound, CannotProceed, InvalidName); - // Remove the name binding from the context. When compound - // names are used, unbind is defined as follows: ctx->unbind - // () = (ctx->resolve ())->unbind - // () - - // = Creating Naming Contexts. - - NamingContext new_context (); - // This operation returns a new naming context implemented by - // the same naming server in which the operation was invoked. - // The context is not bound. - - NamingContext bind_new_context (in Name n) - raises(NotFound, AlreadyBound, CannotProceed, InvalidName); - // This operation creates a new context and binds it to the name - // supplied as an argument. The newly-created context is - // implemented by the same server as the context in which it was - // bound (the name argument excluding the last component). - - // = Deleting contexts. - - void destroy () - raises (NotEmpty); - // Delete the naming context. NOTE: the user should - // any bindings in which the given context is bound to some - // names before invoking operation on it. Ignoring - // this rule may cause unexpected behaviour. deletes - // the context object if it is not bound to any names in the - // given address space. decrements the reference - // count of the context if bindings to it exist. - - // = Listing the naming context. - - void list (in unsigned long how_many, - out BindingList bl, out BindingIterator bi); - // Returns at most the requested number of bindings - // in . If the naming context contains additional bindings, - // they are returned with a BindingIterator. In the naming - // context does not contain any additional bindings - // returned as null. - }; - - interface BindingIterator - // = TITLE - // Interface for iterating over Bindings returned with the - // operation. - { - boolean next_one (out Binding b); - // This operation returns the next binding. If there are no - // more bindings false is returned. - - boolean next_n (in unsigned long how_many, - out BindingList bl); - // This operation returns at most the requested number of - // bindings. - - void destroy (); - // This operation destroys the iterator. - }; -}; diff --git a/TAO/orbsvcs/orbsvcs/CosPropertyService.idl b/TAO/orbsvcs/orbsvcs/CosPropertyService.idl deleted file mode 100644 index 55b81f81000..00000000000 --- a/TAO/orbsvcs/orbsvcs/CosPropertyService.idl +++ /dev/null @@ -1,403 +0,0 @@ -// -*-c++-*- - -// $Id$ - -// =================================================================================== -// -// = LIBRARY -// cos -// -// = FILENAME -// CosPropertyService.idl -// -// = DESCRITION -// The property service, downloaded from ftp://ftp.omg.org/pub/docs/1995/95-06-01.ps -// -// = AUTHOR -// Alexander Babu Arulanthu -// -// ====================================================================================== - -module CosPropertyService -{ - // = TITLE - // CosPropertyService : To support properties (that are typed - // named values dynamically associated with an object, outside - // of the type system. - // - // = DESCRIPTION - // The data types and interfaces to deal with property names, property values, - // property modes etc. - - // = Data Types. - - typedef string PropertyName; - - struct Property - { - PropertyName property_name; - any property_value; - }; - - enum PropertyModeType - { - normal, - read_only, - fixed_normal, - fixed_readonly, - undefined - }; - - struct PropertyDef - { - PropertyName property_name; - any property_value; - PropertyModeType property_mode; - }; - - struct PropertyMode - { - PropertyName property_name; - PropertyModeType property_mode; - }; - - typedef sequence PropertyNames; - typedef sequence Properties; - typedef sequence PropertyDefs; - typedef sequence PropertyModes; - typedef sequence PropertyTypes; - - interface PropertyNamesIterator; - interface PropertiesIterator; - interface PropertySetFactory; - interface PropertySetDef; - interface PropertySet; - - // = Exceptions - - exception ConstraintNotSupported {}; - exception InvalidPropertyName {}; - exception ConflictingProperty {}; - exception PropertyNotFound {}; - exception UnsupportedTypeCode {}; - exception UnsupportedProperty {}; - exception UnsupportedMode {}; - exception FixedProperty {}; - exception ReadOnlyProperty {}; - - enum ExceptionReason - { - invalid_property_name, - conflicting_property, - property_not_found, - unsupported_type_code, - unsupported_property, - unsupported_mode, - fixed_property, - read_only_property - }; - - exception PropertyException - { - ExceptionReason reason; - PropertyName failing_property_name; - }; - - typedef sequence PropertyExceptions; - - exception MultipleExceptions - { - PropertyExceptions exceptions; - }; - - // = Interface Definitions. - - interface PropertySetFactory - { - // = TITLE - // Factory class for PropertySet interface. - // = DESCRIPTION - // Support for creating PropertySets with initial - // constraints and properties. - - PropertySet create_propertyset (); - // The create_propertyset operation returns a new - // PropertySet. It is considered an implementation issue as to - // whether the PropertySet contains any initial properties or - // has constraints. - - PropertySet create_constrained_propertyset (in PropertyTypes allowed_property_types, - in Properties allowed_properties) - raises (ConstraintNotSupported); - // The create_constrained_propertyset operation allows a client - // to create a new PropertySet with specific constraints. - - PropertySet create_initial_propertyset (in Properties initial_properties) - raises (MultipleExceptions); - // The create_initial_propertyset operation allows a client to - // create a new PropertySet with specific initial properties. - }; - - interface PropertySetDefFactory - { - // = TITLE - // Factory class for PropertySetDef interface. - // = DESCRIPTION - // Support for creating Propsetdefs with initial constraints - // and properties. - - PropertySetDef create_propertysetdef (); - // The create_propertysetdef operation returns a new - // PropertySetDef. - - PropertySetDef create_constrained_propertysetdef (in PropertyTypes allowed_property_types, - in PropertyDefs allowed_property_defs) - raises (ConstraintNotSupported); - // The create_constrained_propertysetdef operation allows a - // client to create a new PropertySetDef with specific - // constraints, including property modes. - - PropertySetDef create_initial_propertysetdef (in PropertyDefs initial_property_defs) - raises (MultipleExceptions); - // The create_initial_propertysetdef operation allows a client - // to create a new PropertySetDef with specific initial - // properties, including property modes. - }; - - interface PropertySet - { - // = TITLE - // The PropertySet interface provides operations to define - // and modify properties, list and get properties, and - // delete properties. - // - // = DESCRIPTION - // Provides support for defining and modifying properties, - // getting properties and their names and deleting properties. - - // = Support for defining and modifying properties. - - void define_property (in PropertyName property_name, - in any property_value) - raises (InvalidPropertyName, - ConflictingProperty, - UnsupportedTypeCode, - UnsupportedProperty, - ReadOnlyProperty); - // Will modify or add a property to the PropertySet. If the - // property already exists, then the property type is checked - // before the value is overwritten. If the property does not - // exist, then the property is added to the PropertySet. - - void define_properties (in Properties nproperties) - raises (MultipleExceptions); - // Will modify or add each of the properties in Properties - // parameter to the PropertySet. For each property in the list, - // if the property already exists, then the property type is - // checked before overwriting the value. If the property does - // not exist, then the property is added to the PropertySet. - - // = Support for Getting Properties and their Names. - - unsigned long get_number_of_properties (); - // Returns the current number of properties associated with this - // PropertySet. - - void get_all_property_names (in unsigned long how_many, - out PropertyNames property_names, - out PropertyNamesIterator rest); - // Returns all of the property names currently defined in the - // PropertySet. If the PropertySet contains more than how_many - // property names, then the remaining property names are put - // into the PropertyNamesIterator. - - any get_property_value (in PropertyName property_name) - raises (PropertyNotFound, - InvalidPropertyName); - // Returns the value of a property in the PropertySet. - - boolean get_properties (in PropertyNames property_names, - out Properties nproperties); - // Returns the values of the properties listed in - // property_names. - - void get_all_properties (in unsigned long how_many, - out Properties nproperties, - out PropertiesIterator rest); - // Returns all of the property names currently defined in the - // PropertySet. If the PropertySet contains more than how_many - // property names, then the remaining property names are put - // into the PropertyNamesIterator. - - // = Support for Deleting Properties. - - void delete_property (in PropertyName property_name) - raises (PropertyNotFound, - InvalidPropertyName, - FixedProperty); - // Deletes the specified property if it exists from a - // PropertySet. - - - void delete_properties (in PropertyNames property_names) - raises (MultipleExceptions); - // Deletes the properties defined in the property_names - // parameter. This is a batch operation that returns the - // MultipleExceptions exception if any delete failed. - - boolean delete_all_properties (); - // Variation of delete_properties. Applies to all properties. - - // = Support for Existence Check. - - boolean is_property_defined (in PropertyName property_name) - raises (InvalidPropertyName); - // The is_property_defined operation returns true if the - // property is defined in the PropertySet, and returns false - // otherwise. - }; - - interface PropertySetDef:PropertySet - { - // = TITLE - // Interface to deal with the Property Modes. - // - // = DESCRIPTION - // The PropertySetDef interface is a specialization - // (subclass) of the PropertySet interface. The - // PropertySetDef interface provides operations to retrieve - // PropertySet constraints, define and modify properties - // with modes, and to get or set property modes. - - void get_allowed_property_types (out PropertyTypes property_types); - // Indicates which types of properties are supported by this - // PropertySet. If the output sequence is empty, then there is - // no restrictions on the any TypeCode portion of the - // property_value field of a Property in this PropertySet, - // unless the get_allowed_properties output sequence is not empty. - - void get_allowed_properties (out PropertyDefs property_defs); - // Indicates which properties are supported by this - // PropertySet. If the output sequence is empty, then there is - // no restrictions on the properties that can be in this - // PropertySet, unless the get_allowed_property_types output - // sequence is not empty. - - void define_property_with_mode (in PropertyName property_name, - in any property_value, - in PropertyModeType property_mode) - raises (InvalidPropertyName, - ConflictingProperty, - UnsupportedTypeCode, - UnsupportedProperty, - UnsupportedMode, - ReadOnlyProperty); - // This operation will modify or add a property to the - // PropertySet. If the property already exists, then the - // property type is checked before the value is overwritten. The - // property mode is also checked to be sure a new value may be - // written. If the property does not exist, then the property is - // added to the PropertySet. To change the any TypeCode portion - // of the property_value of a property, a client must first - // delete_property, then invoke the define_property_with_mode. - - void define_properties_with_modes (in PropertyDefs property_defs) - raises (MultipleExceptions); - // This operation will modify or add each of the properties in - // the Properties parameter to the PropertySet. For each - // property in the list, if the property already exists, then - // the property type is checked before overwriting the - // value. The property mode is also checked to be sure a new - // value may be written. If the property does not exist, then - // the property is added to the PropertySet. This is a batch - // operation that returns the MultipleExceptions exception if - // any define operation failed. - - // = Support for Getting and Setting Property Modes. - - PropertyModeType get_property_mode (in PropertyName property_name) - raises (PropertyNotFound, - InvalidPropertyName); - // Support for Getting and Setting Property Modes. - - boolean get_property_modes (in PropertyNames property_names, - out PropertyModes property_modes); - // Support for Getting and Setting Property Modes. - - void set_property_mode (in PropertyName property_name, - in PropertyModeType property_mode) - raises (InvalidPropertyName, - PropertyNotFound, - UnsupportedMode); - // Sets the mode of a property in the PropertySet. - - void set_property_modes (in PropertyModes property_modes) - raises (MultipleExceptions); - // Sets the mode for each property in the property_modes - // parameter. This is a batch operation that returns the - // MultipleExceptions exception if any set failed. - - }; - - interface PropertyNamesIterator - { - // = TITLE - // Interface for iterating thru the Property Names. - // - // = DESCRIPTION - // The PropertyNamesIterator interface allows a client to - // iterate through the names using the next_one or next_n operations. - - void reset (); - // The reset operation resets the position in an iterator to the - // first property, if one exists. - - boolean next_one (out PropertyName property_name); - // The next_one operation returns true if an item exists at the - // current position in the iterator with an output parameter of - // a property name. A return of false signifies no more items in - // the iterator. - - boolean next_n (in unsigned long how_many, - out PropertyNames property_names); - // The next_n operation returns true if an item exists at the - // current position in the iterator and the how_many parameter - // was set greater than zero. The output is a PropertyNames - // sequence with at most the how_many number of names. A return - // of false signifies no more items in the iterator. - - void destroy (); - // The destroy operation destroys the iterator. - }; - - interface PropertiesIterator - { - // = TITLE - // Interface for iterating thru the Properties. - // - // = DESCRIPTION - // allows a client to through the name-value pairs using the - // next_one or next_n operations. - - void reset (); - // The reset operation resets the position in an iterator to the - // first property, if one exists. - - boolean next_one (out Property aproperty); - // The next_one operation returns true if an item exists at the - // current position in the iterator with an output parameter of - // a property. A return of false signifies no more items in the - // iterator. - - boolean next_n (in unsigned long how_many, - out Properties nproperties); - // The next_n operation returns true if an item exists at the - // current position in the iterator and the how_many parameter - // was set greater than zero. The output is a properties - // sequence with at most the how_many number of properties. A - // return of false signifies no more items in the iterator. - - void destroy (); - // The destroy operation destroys the iterator. - }; -}; diff --git a/TAO/orbsvcs/orbsvcs/CosTimeBase.idl b/TAO/orbsvcs/orbsvcs/CosTimeBase.idl deleted file mode 100644 index 280031306f0..00000000000 --- a/TAO/orbsvcs/orbsvcs/CosTimeBase.idl +++ /dev/null @@ -1,62 +0,0 @@ -// -// $Id$ -// - -#ifndef COS_TIME_BASE_IDL -#define COS_TIME_BASE_IDL - -module TimeBase { - // = TITLE - // COS Time Service basic types. - // - // = DESCRIPTION - // The standard CORBA Time Service defines a number of data - // structures to manipulate and express time. - // TAO does not implement this standard service (yet), but we use - // the standard types. - // - -#if 1 - // interim definition of type ulonglong pending the - // adoption of the type extension RFP. - // @@ We also need support for 64-bit integers in TAO IDL compiler. - struct ulonglong { - unsigned long low; - unsigned long high; - }; - typedef ulonglong TimeT; -#else - typedef unsigned long long TimeT; -#endif - // As yet the IDL compiler does not support 64-bit quantities, we - // resort to the original definition of TimeT before long long - // numbers were added to IDL. - // - // Time in TimeT is expressed in units of 100 nano seconds (in - // other words 10^-7 seconds), and are relative to October 15, 1582; - // please read the spec for further details. - - typedef TimeT InaccuracyT; - // To express an error estimate for time. - - typedef short TdfT; - // Minutes of displacement from the Greenwich time. - - struct UtcT { - // = TITLE - // The UTC time structure. - TimeT time; - unsigned long inacclo; - unsigned short inacchi; - TdfT tdf; - }; - - struct IntervalT { - // = TITLE - // A time interval - TimeT lower_bound; - TimeT upper_bound; - }; -}; - -#endif /* COS_TIME_BASE_IDL */ diff --git a/TAO/orbsvcs/orbsvcs/CosTrading.idl b/TAO/orbsvcs/orbsvcs/CosTrading.idl deleted file mode 100644 index ab9cbc2df05..00000000000 --- a/TAO/orbsvcs/orbsvcs/CosTrading.idl +++ /dev/null @@ -1,717 +0,0 @@ -/* -*- C++ -*- */ - -// ======================================================================== -// $Id$ -// -// = FILENAME -// CosTrading.idl -// -// = DESCRIPTION -// Trader Service v1.0 described in CORBAservices: Common Object -// Services Specification, chapter 16 OMG IDL for Trading Function -// Module, p 16-74 -// -// ======================================================================== - - -module CosTrading { - - // forward references to our interfaces - - interface Lookup; - interface Register; - interface Link; - interface Proxy; - interface Admin; - interface OfferIterator; - interface OfferIdIterator; - - // type definitions used in more than one interface - - typedef string Istring; - typedef Object TypeRepository; - - typedef Istring PropertyName; - typedef sequence PropertyNameSeq; - typedef any PropertyValue; - struct Property { - PropertyName name; - PropertyValue value; - }; - typedef sequence PropertySeq; - - struct Offer { - Object reference; - PropertySeq properties; - }; - typedef sequence OfferSeq; - - typedef string OfferId; - typedef sequence OfferIdSeq; - - typedef Istring ServiceTypeName; // similar structure to IR::Identifier - - typedef Istring Constraint; - - enum FollowOption { - local_only, - if_no_local, - always - }; - - typedef Istring LinkName; - typedef sequence LinkNameSeq; - typedef LinkNameSeq TraderName; - - typedef string PolicyName; // policy names restricted to Latin1 - typedef sequence PolicyNameSeq; - typedef any PolicyValue; - struct Policy { - PolicyName name; - PolicyValue value; - }; - typedef sequence PolicySeq; - - // exceptions used in more than one interface - - exception UnknownMaxLeft {}; - - exception NotImplemented {}; - - exception IllegalServiceType { - ServiceTypeName type; - }; - - exception UnknownServiceType { - ServiceTypeName type; - }; - - exception IllegalPropertyName { - PropertyName name; - }; - - exception DuplicatePropertyName { - PropertyName name; - }; - exception PropertyTypeMismatch { - ServiceTypeName type; - Property prop; - }; - - exception MissingMandatoryProperty { - ServiceTypeName type; - PropertyName name; - }; - - exception ReadonlyDynamicProperty { - ServiceTypeName type; - PropertyName name; - }; - - exception IllegalConstraint { - Constraint constr; - }; - - exception InvalidLookupRef { - Lookup target; - }; - - exception IllegalOfferId { - OfferId id; - }; - - exception UnknownOfferId { - OfferId id; - }; - - exception DuplicatePolicyName { - PolicyName name; - }; - - // the interfaces - - interface TraderComponents { - - readonly attribute Lookup lookup_if; - readonly attribute Register register_if; - readonly attribute Link link_if; - readonly attribute Proxy proxy_if; - readonly attribute Admin admin_if; - }; - - interface SupportAttributes { - - readonly attribute boolean supports_modifiable_properties; - readonly attribute boolean supports_dynamic_properties; - readonly attribute boolean supports_proxy_offers; - readonly attribute TypeRepository type_repos; - }; - - interface ImportAttributes { - - readonly attribute unsigned long def_search_card; - readonly attribute unsigned long max_search_card; - readonly attribute unsigned long def_match_card; - readonly attribute unsigned long max_match_card; - readonly attribute unsigned long def_return_card; - readonly attribute unsigned long max_return_card; - readonly attribute unsigned long max_list; - readonly attribute unsigned long def_hop_count; - readonly attribute unsigned long max_hop_count; - readonly attribute FollowOption def_follow_policy; - readonly attribute FollowOption max_follow_policy; - }; - - interface LinkAttributes { - - readonly attribute FollowOption max_link_follow_policy; - }; - - interface Lookup:TraderComponents,SupportAttributes,ImportAttributes { - - typedef Istring Preference; - - enum HowManyProps { none, some, all }; - - union SpecifiedProps switch ( HowManyProps ) { - case none: boolean none_; - case some: PropertyNameSeq prop_names; - case all: boolean all_; - }; - - exception IllegalPreference { - Preference pref; - }; - - exception IllegalPolicyName { - PolicyName name; - }; - - exception PolicyTypeMismatch { - Policy the_policy; - }; - - exception InvalidPolicyValue { - Policy the_policy; - }; - - void query ( - in ServiceTypeName type, - in Constraint constr, - in Preference pref, - in PolicySeq policies, - in SpecifiedProps desired_props, - in unsigned long how_many, - out OfferSeq offers, - out OfferIterator offer_itr, - out PolicyNameSeq limits_applied - ) raises ( - IllegalServiceType, - UnknownServiceType, - IllegalConstraint, - IllegalPreference, - IllegalPolicyName, - PolicyTypeMismatch, - InvalidPolicyValue, - IllegalPropertyName, - DuplicatePropertyName, - DuplicatePolicyName - ); - }; - - interface Register : TraderComponents, SupportAttributes { - - struct OfferInfo { - Object reference; - ServiceTypeName type; - PropertySeq properties; - }; - - exception InvalidObjectRef { - Object ref; - }; - - exception UnknownPropertyName { - PropertyName name; - }; - - exception InterfaceTypeMismatch { - ServiceTypeName type; - Object reference; - }; - - exception ProxyOfferId { - OfferId id; - }; - - exception MandatoryProperty { - ServiceTypeName type; - PropertyName name; - }; - - exception ReadonlyProperty { - ServiceTypeName type; - PropertyName name; - }; - - exception NoMatchingOffers { - Constraint constr; - }; - - exception IllegalTraderName { - TraderName name; - }; - - exception UnknownTraderName { - TraderName name; - }; - - exception RegisterNotSupported { - TraderName name; - }; - - OfferId export ( - in Object reference, - in ServiceTypeName type, - in PropertySeq properties - ) raises ( - InvalidObjectRef, - IllegalServiceType, - UnknownServiceType, - InterfaceTypeMismatch, - IllegalPropertyName, // e.g. prop_name = " OctetSeq; - - readonly attribute OctetSeq request_id_stem; - - unsigned long set_def_search_card (in unsigned long value); - unsigned long set_max_search_card (in unsigned long value); - - unsigned long set_def_match_card (in unsigned long value); - unsigned long set_max_match_card (in unsigned long value); - - unsigned long set_def_return_card (in unsigned long value); - unsigned long set_max_return_card (in unsigned long value); - - unsigned long set_max_list (in unsigned long value); - - boolean set_supports_modifiable_properties (in boolean value); - boolean set_supports_dynamic_properties (in boolean value); - boolean set_supports_proxy_offers (in boolean value); - - unsigned long set_def_hop_count (in unsigned long value); - unsigned long set_max_hop_count (in unsigned long value); - - FollowOption set_def_follow_policy (in FollowOption policy); - FollowOption set_max_follow_policy (in FollowOption policy); - - FollowOption set_max_link_follow_policy (in FollowOption policy); - - TypeRepository set_type_repos (in TypeRepository repository); - - OctetSeq set_request_id_stem (in OctetSeq stem); - - void list_offers ( - in unsigned long how_many, - out OfferIdSeq ids, - out OfferIdIterator id_itr - ) raises ( - NotImplemented - ); - - void list_proxies ( - in unsigned long how_many, - out OfferIdSeq ids, - out OfferIdIterator id_itr - ) raises ( - NotImplemented - ); - }; - - interface OfferIterator { - - unsigned long max_left ( - ) raises ( - UnknownMaxLeft - ); - - boolean next_n ( - in unsigned long n, - out OfferSeq offers - ); - - void destroy (); - }; - - interface OfferIdIterator { - unsigned long max_left ( - ) raises ( - UnknownMaxLeft - ); - - boolean next_n ( - in unsigned long n, - out OfferIdSeq ids - ); - - void destroy (); - }; - -}; /* end module CosTrading */ - - -// OMG IDL for Dynamic Property Module, p 16-88 - -module CosTradingDynamic { - - exception DPEvalFailure { - CosTrading::PropertyName name; - TypeCode returned_type; - any extra_info; - }; - - interface DynamicPropEval { - - any evalDP ( - in CosTrading::PropertyName name, - in TypeCode returned_type, - in any extra_info - ) raises ( - DPEvalFailure - ); - }; - - struct DynamicProp { -#ifdef TAO_HAS_DYNAMIC_PROPERTY_BUG - string eval_if; -#else - DynamicPropEval eval_if; -#endif /* TAO_HAS_OBJECT_IN_STRUCT_MARSHAL_BUG */ - TypeCode returned_type; - any extra_info; - }; -}; /* end module CosTradingDynamic */ - - -// OMG IDL for Service Type Repository Module, p 16-89 - -module CosTradingRepos { - - interface ServiceTypeRepository { - - // local types - typedef sequence ServiceTypeNameSeq; - enum PropertyMode { - PROP_NORMAL, PROP_READONLY, - PROP_MANDATORY, PROP_MANDATORY_READONLY - }; - struct PropStruct { - CosTrading::PropertyName name; - TypeCode value_type; - PropertyMode mode; - }; - typedef sequence PropStructSeq; - - typedef CosTrading::Istring Identifier; // IR::Identifier - struct IncarnationNumber { - unsigned long high; - unsigned long low; - }; - struct TypeStruct { - Identifier if_name; - PropStructSeq props; - ServiceTypeNameSeq super_types; - boolean masked; - IncarnationNumber incarnation; - }; - - enum ListOption { all, since }; - union SpecifiedServiceTypes switch ( ListOption ) { - case since: IncarnationNumber incarnation; - }; - - // local exceptions - exception ServiceTypeExists { - CosTrading::ServiceTypeName name; - }; - exception InterfaceTypeMismatch { - CosTrading::ServiceTypeName base_service; - Identifier base_if; - CosTrading::ServiceTypeName derived_service; - Identifier derived_if; - }; - exception HasSubTypes { - CosTrading::ServiceTypeName the_type; - CosTrading::ServiceTypeName sub_type; - }; - exception AlreadyMasked { - CosTrading::ServiceTypeName name; - }; - exception NotMasked { - CosTrading::ServiceTypeName name; - }; - exception ValueTypeRedefinition { - CosTrading::ServiceTypeName type_1; - PropStruct definition_1; - CosTrading::ServiceTypeName type_2; - PropStruct definition_2; - }; - exception DuplicateServiceTypeName { - CosTrading::ServiceTypeName name; - }; - - // attributes - readonly attribute IncarnationNumber incarnation; - - // operation signatures - IncarnationNumber add_type ( - in CosTrading::ServiceTypeName name, - in Identifier if_name, - in PropStructSeq props, - in ServiceTypeNameSeq super_types - ) raises ( - CosTrading::IllegalServiceType, - ServiceTypeExists, - InterfaceTypeMismatch, - CosTrading::IllegalPropertyName, - CosTrading::DuplicatePropertyName, - ValueTypeRedefinition, - CosTrading::UnknownServiceType, - DuplicateServiceTypeName - ); - - void remove_type ( - in CosTrading::ServiceTypeName name - ) raises ( - CosTrading::IllegalServiceType, - CosTrading::UnknownServiceType, - HasSubTypes - ); - - ServiceTypeNameSeq list_types ( - in SpecifiedServiceTypes which_types - ); - - TypeStruct describe_type ( - in CosTrading::ServiceTypeName name - ) raises ( - CosTrading::IllegalServiceType, - CosTrading::UnknownServiceType - ); - - TypeStruct fully_describe_type ( - in CosTrading::ServiceTypeName name - ) raises ( - CosTrading::IllegalServiceType, - CosTrading::UnknownServiceType - ); - - void mask_type ( - in CosTrading::ServiceTypeName name - ) raises ( - CosTrading::IllegalServiceType, - CosTrading::UnknownServiceType, - AlreadyMasked - ); - - void unmask_type ( - in CosTrading::ServiceTypeName name - ) raises ( - CosTrading::IllegalServiceType, - CosTrading::UnknownServiceType, - NotMasked - ); - - }; -}; /* end module CosTradingRepos */ diff --git a/TAO/orbsvcs/orbsvcs/Event/BCU.cpp b/TAO/orbsvcs/orbsvcs/Event/BCU.cpp deleted file mode 100644 index 374fe783ef9..00000000000 --- a/TAO/orbsvcs/orbsvcs/Event/BCU.cpp +++ /dev/null @@ -1,31 +0,0 @@ -// $Id$ - -#include "ace/ACE.h" -#include "BCU.h" - - -u_long -ACE_BCU (u_long n) -{ - const u_long ACE_BCU_PRIME_NUMBER = 9619; - - u_long retval = 0; - - while (n-- > 0) - retval = ACE::is_prime (ACE_BCU_PRIME_NUMBER, 2, ACE_BCU_PRIME_NUMBER / 2); - - return retval; -} - - -u_long -ACE_BCU (u_long number, - u_long n) -{ - u_long retval = 0; - - while (n-- > 0) - retval = ACE::is_prime (number, 2, number); - - return retval; -} diff --git a/TAO/orbsvcs/orbsvcs/Event/BCU.h b/TAO/orbsvcs/orbsvcs/Event/BCU.h deleted file mode 100644 index 07d64c46271..00000000000 --- a/TAO/orbsvcs/orbsvcs/Event/BCU.h +++ /dev/null @@ -1,36 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ -// -// ============================================================================ -// -// = LIBRARY -// ace ORB -// -// = FILENAME -// Benchmark Computation Units -// -// = AUTHOR -// David Levine and Tim Harrison (harrison@cs.wustl.edu) -// -// = DESCRIPTION -// -// Times how long it takes to generate each of the first N prime -// numbers. -// ============================================================================ - -#if !defined (ACE_BCU_H) -#define ACE_BCU_H - -#include "ace/OS.h" -#include "orbsvcs/orbsvcs_export.h" - - -TAO_ORBSVCS_Export u_long ACE_BCU (u_long n); -// Check if a specific, hardcoded number is prime (via ACE::is_prime) -// times. - - -TAO_ORBSVCS_Export u_long ACE_BCU (u_long number, u_long n); -// Check if is prime (via ACE::is_prime ()) times. - -#endif /* ACE_BCU_H */ diff --git a/TAO/orbsvcs/orbsvcs/Event/CORBA_Utils_T.cpp b/TAO/orbsvcs/orbsvcs/Event/CORBA_Utils_T.cpp deleted file mode 100644 index cdffb8aa443..00000000000 --- a/TAO/orbsvcs/orbsvcs/Event/CORBA_Utils_T.cpp +++ /dev/null @@ -1,349 +0,0 @@ -// $Id$ - -#if !defined (ACE_CORBA_UTILS_C) -#define ACE_CORBA_UTILS_C - -#include "ace/Log_Msg.h" -#include "CORBA_Utils_T.h" - -#if !defined (__ACE_INLINE__) -#include "CORBA_Utils_T.i" -#endif /* __ACE_INLINE__ */ - -template -ACE_CORBA_Sequence::ACE_CORBA_Sequence (const ACE_CORBA_Sequence &source) - : maximum_ (0), - length_ (0), - buffer_ (0), - release_ (0) -{ - (*this) = source; -} - -template -ACE_CORBA_Sequence::ACE_CORBA_Sequence (void) - : maximum_ (0), - length_ (0), - buffer_ (0), - release_ (0) -{ -} - -template -ACE_CORBA_Sequence::~ACE_CORBA_Sequence (void) -{ - if (release_) - { - this->delete_array (buffer_, maximum_); - } -} - -template -ACE_CORBA_Sequence::ACE_CORBA_Sequence (CORBA::ULong max) - : maximum_ (max), - length_ (0), - buffer_ (0), - - release_ (0) -{ - if (maximum_ > 0) - { - buffer_ = this->new_array (maximum_); - release_ = 1; - } -} - -template TYPE * -ACE_CORBA_Sequence::new_array (size_t len) -{ - return new TYPE[len]; -} - -template void -ACE_CORBA_Sequence::delete_array (TYPE *buf, size_t) -{ - delete [] buf; -} - -template -ACE_CORBA_Sequence::ACE_CORBA_Sequence (CORBA::ULong max, - CORBA::ULong length, - TYPE* data, - CORBA::Boolean release) - : maximum_ (max), - length_ (length), - buffer_ (data), - release_ (release) -{ - if ((buffer_ == 0) && (max > 0)) - { - // @@ What should we do here? - errno = ENOMEM; - ACE_ERROR ((LM_ERROR, "No memory.\n")); - } -} - -// @@ This makes a deep copy, dig? -template ACE_CORBA_Sequence & -ACE_CORBA_Sequence::operator= (const ACE_CORBA_Sequence &source) -{ - if (source.length () > 0) - { - // If our buffer is too small, release it and allocate one just big - // enough. If buffer_ == 0, this works fine. - if (this->maximum () < source.length ()) - { - if (release_) - { - this->delete_array (buffer_, maximum_); - } - maximum_ = source.length (); - buffer_ = this->new_array (maximum_); - release_ = 1; - } - - // Copy each of the items from the source. - for (CORBA::ULong index=0; index < source.length (); index++) - (*this)[index] = source[index]; - - this->length (source.length ()); - } - - return *this; -} - -template void -ACE_CORBA_Sequence::length (CORBA::ULong len) -{ - if (len > maximum_) - { - // Allocate the space that we need. - TYPE* tmp = this->new_array (len); - // Copy over the old sequence. - for (CORBA::ULong i = 0; i < maximum_; ++i) - { - tmp[i] = buffer_[i]; - } - if (release_) - { - this->delete_array (buffer_, maximum_); - } - buffer_ = tmp; - release_ = 1; - maximum_ = len; - // The destructor of -old- will release the old buffer_ if - // necessary. - } - - length_ = len; -} - - -// g++ can't handle these operator [] functions if they're inline -template TYPE& -ACE_CORBA_Sequence::operator [] (CORBA::ULong i) -{ - // @@ Should we do bounds checking? - if (i >= maximum_) - { - ACE_ERROR ((LM_ERROR, "Trying to write past maximum.\n")); - return buffer_[maximum_ - 1]; - } - else - return buffer_[i]; -} - -template const TYPE& -ACE_CORBA_Sequence::operator [] (CORBA::ULong i) const -{ - if (i >= length_) - { - ACE_ERROR ((LM_ERROR, "Trying to read past length.\n")); - return buffer_[length_ - 1]; - } - - return buffer_[i]; -} - -// ******************** - -/* -template void -dump (const ACE_CORBA_Sequence &seq) -{ - for (CORBA::ULong index=0; index < seq.length (); index++) - dump (seq[index]); -} -*/ - -/* -template ACE_INLINE void -operator += (ACE_CORBA_Sequence &seq, - const TYPE &item) -{ - CORBA::ULong length = seq.length (); - seq.length (length + 1); - seq[length] = item; -} -*/ - -template ACE_INLINE void -operator += (ACE_CORBA_Sequence &dest, - const ACE_CORBA_Sequence &source) -{ - int old_length = dest.length (); - int new_length = old_length + source.length (); - dest.length (new_length); - - int difference = new_length - old_length; - - for (int x=0; x < difference; x++) - dest[old_length + x] = source[x]; -} - -/* -template ACE_INLINE void -remove_item (TYPE &seq, CORBA::ULong index) -{ - int new_length = seq.length () - 1; - - // Shift the set back one, starting at . - for (int x = index; x < new_length; x++) - seq[x] = seq[x+1]; - - // Set the new length. - seq.length (new_length); -} -*/ - -// ************************************************************ -// ************************************************************ -// ************************************************************ - -template -ACE_CORBA_var::ACE_CORBA_var (const ACE_CORBA_var &source) -{ - if (source.me_ != 0) - me_ = (TYPE *) source.me_->_duplicate (); - // CORBA::duplicate (source.me_); -} - -template -ACE_CORBA_var::ACE_CORBA_var (void) - : me_ (0) -{ -} - -template -ACE_CORBA_var::ACE_CORBA_var (TYPE *source) -{ - me_ = (TYPE *) source->_duplicate (); - // CORBA::duplicate (source); -} - -template -ACE_CORBA_var::~ACE_CORBA_var (void) -{ - if (me_ != 0) - me_->_release (); - //CORBA::release (me_); -} - -template ACE_CORBA_var & -ACE_CORBA_var::operator= (TYPE *source) -{ - if (me_ != source && - me_ != 0) - me_->_release (); - //CORBA::release (me_); - - me_ = (TYPE *) source->_duplicate (); - // CORBA::duplicate (source); - return *this; -} - -template ACE_CORBA_var & -ACE_CORBA_var::operator= (const ACE_CORBA_var &source) -{ - if (me_ != source.me_ && - me_ != 0) - me_->_release (); - // CORBA::release (me_); - - me_ = (TYPE *) source.me_->_duplicate (); - // CORBA::duplicate (source.me_); - return *this; -} - -template TYPE * -ACE_CORBA_var::operator->(void) -{ - return me_; -} - -template -ACE_CORBA_var::operator TYPE *(void) const -{ - return me_; -} - -/* -template -ACE_CORBA_var::operator TYPE *&(void) -{ - return me_; -} -*/ - -template -ACE_CORBA_var::operator TYPE &(void) const -{ - return *me_; -} - -// ************************************************************ -// ************************************************************ - -/* -ACE_CORBA_Object_Ref::ACE_CORBA_Object_Ref (void) - : impl_ (0) -{ -} - -ACE_CORBA_Object_Ref::ACE_CORBA_Object_Ref (IMPL *impl) - : impl_ (impl) -{ -} - -ACE_CORBA_Object_Ref::~ACE_CORBA_Object_Ref (void) - : impl_ (0) -{ -} - -ACE_CORBA_Object_Ref & -ACE_CORBA_Object_Ref::operator= (const ACE_CORBA_Object_Ref &source) -{ - return *this; -} - -IMPL * -ACE_CORBA_Object_Ref::operator->(void) -{ - return impl_; -} - -IMPL * -ACE_CORBA_Object_Ref::operator IMPL *(void) -{ - return impl_; -} - -ACE_CORBA_Object_Ref * -ACE_CORBA_Object_Ref::_duplicate (ACE_CORBA_Object_Ref *source) -{ - source->ref_count_++; - return source; -} - -*/ -#endif /* ACE_CORBA_UTILS_C */ diff --git a/TAO/orbsvcs/orbsvcs/Event/CORBA_Utils_T.h b/TAO/orbsvcs/orbsvcs/Event/CORBA_Utils_T.h deleted file mode 100644 index 8abf180d9e1..00000000000 --- a/TAO/orbsvcs/orbsvcs/Event/CORBA_Utils_T.h +++ /dev/null @@ -1,236 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ -// -// ============================================================================ -// -// = LIBRARY -// ace_orb -// -// = FILENAME -// CORBA_Utilities.h -// -// = AUTHORS -// Tim Harrison. -// -// = NOTE -// This class is a bit ackward when using a real ORB, but we cannot -// easily remove it since some of the types are used in the -// implementation of the EC. TODO -// -// ============================================================================ - -#if !defined (ACE_CORBA_UTILS_H) -#define ACE_CORBA_UTILS_H - -#include "ace/Time_Value.h" -#include "tao/corba.h" - -template -class ACE_CORBA_Sequence// : public CORBA::Object -// = TITLE -// -// = DESCRIPTION -{ -public: - - ACE_CORBA_Sequence (const ACE_CORBA_Sequence &source); - // Copy construction. - - ACE_CORBA_Sequence (CORBA::ULong max); - ACE_CORBA_Sequence (CORBA::ULong max, - CORBA::ULong length, - TYPE* data, - CORBA::Boolean release = 0); - ACE_CORBA_Sequence (void); - - virtual ~ACE_CORBA_Sequence (void); - - ACE_CORBA_Sequence &operator= (const ACE_CORBA_Sequence &); - - // static TYPE* allocbuf(CORBA::ULong nelems); - // static void freebuf(TYPE* data); - - CORBA::ULong maximum (void) const; - CORBA::ULong length (void) const; - void length (CORBA::ULong len); - - TYPE& operator [] (CORBA::ULong IT_i); - - const TYPE& operator [] (CORBA::ULong IT_i) const; - - virtual TYPE *new_array (size_t len); - // Allocates TYPE[len]. This facilitates template methods through - // template specialization to allow the use of different memory - // pools. - - virtual void delete_array (TYPE *buf, size_t len); - // delete [] . - -protected: - CORBA::ULong maximum_; - CORBA::ULong length_; - TYPE* buffer_; - unsigned char release_; -}; - -// Utility for debugging sequences. -//template -//void dump (const ACE_CORBA_Sequence &seq); - -// Utility for appending single items. Increases the length of -// and adds to the end of . -template void -operator += (ACE_CORBA_Sequence &seq, - const TYPE &item) -{ - CORBA::ULong length = seq.length (); - seq.length (length + 1); - seq[length] = item; -} - -// Utility for appending sequences. -template void -operator += (ACE_CORBA_Sequence &dest, - const ACE_CORBA_Sequence &source); - -template void -remove_item (TYPE &seq, CORBA::ULong index) -{ - int new_length = seq.length () - 1; - - // Shift the set back one, starting at . - for (int x = index; x < new_length; x++) - seq[x] = seq[x+1]; - - // Set the new length. - seq.length (new_length); -} -// Removes seq[index] by moving everything after back and -// decrementing the length. - -// ************************************************************ - -template -class ACE_CORBA_var -// = TITLE -// -// = DESCRIPTION -{ -public: - ACE_CORBA_var (const ACE_CORBA_var &source); - ACE_CORBA_var (void); - ACE_CORBA_var (TYPE *source); - ~ACE_CORBA_var (void); - ACE_CORBA_var &operator= (TYPE *source); - ACE_CORBA_var &operator= (const ACE_CORBA_var &source); - TYPE *operator->(void); - operator TYPE *(void) const; - // operator TYPE *&(void); - operator TYPE &(void) const; -private: - TYPE *me_; -}; - -// ************************************************************ - -/* -template -class ACE_CORBA_Object_Ref : public CORBA::Object -// = TITLE -// ACE CORBA Object Reference -// -// = DESCRIPTION -// A wrapper for making CORBA Object References. For a single -// address space ORB, this points directly to the IMPL -// class. This is supposed to look like a pointer to -// IMPL with an additional static _duplicate method. -{ -public: - // ACE_CORBA_Object_Ref (ACE_CORBA_Object_Ref &obj); - ACE_CORBA_Object_Ref (void); - ACE_CORBA_Object_Ref (IMPL *impl); - ~ACE_CORBA_Object_Ref (void); - // ACE_CORBA_Object_Ref &operator= (IMPL *source); - ACE_CORBA_Object_Ref &operator= - (const ACE_CORBA_Object_Ref &source); - - IMPL *operator->(void); - // A distributed ORB would require that the CORBA Object Reference - // implement all IMPL interfaces, marshall the parameters, - // and transmit over IIOP. For this single address space ORB, we'll - // just delegate method calls to the IMPL directly. - - operator IMPL *(void) const; - // operator IMPL *&(void); - // operator IMPL &(void) const; - - static ACE_CORBA_Object_Ref *_duplicate - (ACE_CORBA_Object_Ref *source); - -private: - IMPL *impl_; -}; -*/ - -// ************************************************************ - -template -class ACE_ES_Simple_Array -// = TITLE -// Simple Array -// -// = DESCRIPTION -// Wraps ITEM[SIZE] with insert and an iterator. There is no -// remove. It allows duplicates. It is truly very simple. -{ - public: - ACE_ES_Simple_Array (void); - int insert (const ITEM ©_me); - size_t size (void); - ITEM *data (void); - protected: - ITEM data_[SIZE]; - size_t size_; -}; - -template -class ACE_ES_Array_Iterator -// = TITLE -// Simple Iterator -// -// = DESCRIPTION -// Iterates through an array of ITEMs. -{ -public: - ACE_ES_Array_Iterator (ITEM *data, size_t size); - - int next (ITEM *&next_item); - // Returns 0 when all items have been seen, else 1. Sets - // to point at the next ITEM. - - int advance (void); - // Move forward by one element in the Stack. Returns 0 when all the - // items in the Stack have been seen, else 1. - - int done (void) const; - // Returns 1 when all items have been seen, else 0. - -private: - ITEM *data_; - size_t size_; - size_t index_; -}; - -#if defined (__ACE_INLINE__) -#include "CORBA_Utils_T.i" -#endif /* __ACE_INLINE__ */ - -#if defined (ACE_TEMPLATES_REQUIRE_SOURCE) -#include "CORBA_Utils_T.cpp" -#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */ - -#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA) -#pragma implementation ("CORBA_Utils_T.cpp") -#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */ - -#endif /* ACE_CORBA_UTILS_H */ diff --git a/TAO/orbsvcs/orbsvcs/Event/CORBA_Utils_T.i b/TAO/orbsvcs/orbsvcs/Event/CORBA_Utils_T.i deleted file mode 100644 index d9ebb9247ad..00000000000 --- a/TAO/orbsvcs/orbsvcs/Event/CORBA_Utils_T.i +++ /dev/null @@ -1,75 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -template ACE_INLINE CORBA::ULong -ACE_CORBA_Sequence::maximum (void) const -{ - return maximum_; -} - -template ACE_INLINE CORBA::ULong -ACE_CORBA_Sequence::length() const -{ - return length_; -} - - -// ************************************************************ - -template ACE_INLINE -ACE_ES_Simple_Array::ACE_ES_Simple_Array (void) : - size_ (0) -{ -} - -template ACE_INLINE int -ACE_ES_Simple_Array::insert (const ITEM ©_me) -{ - if (size_ >= SIZE) - return -1; - - data_[size_++] = copy_me; - return 0; -} - -template ACE_INLINE size_t -ACE_ES_Simple_Array::size (void) -{ - return size_; -} - -template ACE_INLINE ITEM * -ACE_ES_Simple_Array::data (void) -{ - return data_; -} - -// ************************************************************ - -template ACE_INLINE -ACE_ES_Array_Iterator::ACE_ES_Array_Iterator (ITEM *data, size_t size) : - data_ (data), - size_ (size), - index_ (0) -{ -} - -template ACE_INLINE int -ACE_ES_Array_Iterator::next (ITEM *&next_item) -{ - next_item = &data_[index_]; - return index_ < (size_ - 1); -} - -template ACE_INLINE int -ACE_ES_Array_Iterator::advance (void) -{ - index_++; - return index_ < size_; -} - -template ACE_INLINE int -ACE_ES_Array_Iterator::done (void) const -{ - return index_ < size_; -} diff --git a/TAO/orbsvcs/orbsvcs/Event/Channel_Clients.i b/TAO/orbsvcs/orbsvcs/Event/Channel_Clients.i deleted file mode 100644 index 6318deb79a0..00000000000 --- a/TAO/orbsvcs/orbsvcs/Event/Channel_Clients.i +++ /dev/null @@ -1,2 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ diff --git a/TAO/orbsvcs/orbsvcs/Event/Channel_Clients_T.i b/TAO/orbsvcs/orbsvcs/Event/Channel_Clients_T.i deleted file mode 100644 index f7c0760fd86..00000000000 --- a/TAO/orbsvcs/orbsvcs/Event/Channel_Clients_T.i +++ /dev/null @@ -1,35 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -template ACE_INLINE -ACE_PushConsumer_Adapter::ACE_PushConsumer_Adapter (TARGET *target) - : target_ (target) -{ -} - -template ACE_INLINE void -ACE_PushConsumer_Adapter::push (const RtecEventComm::EventSet& events, - CORBA::Environment &_env) -{ - target_->_push (events, _env); -} - -template ACE_INLINE void -ACE_PushConsumer_Adapter::disconnect_push_consumer (CORBA::Environment &_env) -{ - target_->_disconnect_push_consumer (_env); -} - -// ************************************************************ - -template ACE_INLINE -ACE_PushSupplier_Adapter::ACE_PushSupplier_Adapter (TARGET *target) - : target_ (target) -{ -} - -template ACE_INLINE void -ACE_PushSupplier_Adapter::disconnect_push_supplier (CORBA::Environment &_env) -{ - target_->_disconnect_push_supplier (_env); -} diff --git a/TAO/orbsvcs/orbsvcs/Event/Debug_Macros.h b/TAO/orbsvcs/orbsvcs/Event/Debug_Macros.h deleted file mode 100644 index ca7122d7c69..00000000000 --- a/TAO/orbsvcs/orbsvcs/Event/Debug_Macros.h +++ /dev/null @@ -1,13 +0,0 @@ -// $Id$ - - -#if defined (ACE_ES_NOLOGGING) -#define ACE_ES_DEBUG(X) -#define ACE_ES_DEBUG_ST(X) -#else -#define ACE_ES_DEBUG(X) \ - do { \ - ACE_Log_Msg::instance ()->log X; \ - } while (0) -#define ACE_ES_DEBUG_ST(X) X -#endif /* ACE_ES_NOLOGGING */ diff --git a/TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp b/TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp deleted file mode 100644 index 5f4d59a9aef..00000000000 --- a/TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp +++ /dev/null @@ -1,645 +0,0 @@ -// $Id$ - -#include "ace/Sched_Params.h" -#include "orbsvcs/Scheduler_Factory.h" -#include "orbsvcs/Time_Utilities.h" -#include "Memory_Pools.h" - -#include "Dispatching_Modules.h" - -#if !defined (__ACE_INLINE__) -#include "Dispatching_Modules.i" -#endif /* __ACE_INLINE__ */ - -#include "tao/Timeprobe.h" - -#if defined (ACE_ENABLE_TIMEPROBES) - -static const char *TAO_Dispatching_Modules_Timeprobe_Description[] = -{ - "dispatch (dequeue) the event", - "push_source_type: Correlation Module", - "Priority_Dispatching::push - priority requested", - "Priority_Dispatching::push - priority obtained" -}; - -enum -{ - TAO_DISPATCHING_MODULES_DISPATCH_THE_EVENT = 5000, - TAO_DISPATCHING_MODULES_PUSH_SOURCE_TYPE_CORRELATION_MODULE, - TAO_DISPATCHING_MODULES_PRIORITY_DISPATCHING_PUSH_PRIORITY_REQUESTED, - TAO_DISPATCHING_MODULES_PRIORITY_DISPATCHING_PUSH_PRIORITY_OBTAINED -}; - -#endif /* ACE_ENABLE_TIMEPROBES */ - -// Setup Timeprobes -ACE_TIMEPROBE_EVENT_DESCRIPTIONS (TAO_Dispatching_Modules_Timeprobe_Description, - TAO_DISPATCHING_MODULES_DISPATCH_THE_EVENT); - -// ************************************************************ - -void -ACE_ES_Dispatch_Request::make_copy (RtecEventComm::EventSet &dest) const -{ - if (use_single_event_) - { - dest.length (1); - dest[0] = single_event_; - } - else - { - dest.length (event_set_.length ()); - - for (CORBA::ULong index=0; index < event_set_.length (); index++) - { - RtecEventComm::Event &dest_event = dest[index]; - ACE_ES_Event_Container_var &source_event_var = ((ACE_ES_Event_Container_var &) event_set_[index]); - dest_event = *(source_event_var.operator->()); - } - } -} - -int -ACE_ES_Dispatch_Request::execute (u_long &command_action) -{ - ACE_TIMEPROBE (TAO_DISPATCHING_MODULES_DISPATCH_THE_EVENT); - - return dispatching_module_->dispatch_event (this, command_action); -} - -#if 0 -void * -ACE_ES_Dispatch_Request::operator new (size_t nbytes) -{ - if (nbytes > sizeof (ACE_ES_Dispatch_Request)) - { - ACE_ERROR ((LM_ERROR, "nbytes = %d, sizeof (ACE_ES_Dispatch_Request_Chunk) = %d.\n", - sizeof (ACE_ES_Dispatch_Request))); - ACE_ASSERT (nbytes <= sizeof (ACE_ES_Dispatch_Request)); - } - - return ACE_ES_Memory_Pools::new_Dispatch_Request (); -} - -void -ACE_ES_Dispatch_Request::operator delete (void *mem) -{ - ACE_ES_Memory_Pools::delete_Dispatch_Request (mem); -} -#endif /* 0 */ - -// ************************************************************ - -ACE_ES_Priority_Dispatching::ACE_ES_Priority_Dispatching (ACE_EventChannel *channel, - int threads_per_queue) - : ACE_ES_Dispatching_Base (channel), - notification_strategy_ (this), - highest_priority_ (0), - shutdown_ (0), - threads_per_queue_ (threads_per_queue) -{ - // If we're single threaded, then we need to use the notification strategy. - if ((threads_per_queue_ == 0) && - (notification_strategy_.open () == -1)) - ACE_ERROR ((LM_ERROR, "%p.\n", "ACE_ES_Priority_Dispatching")); - - // Initialize the queues. - for (int x=0; x < ACE_Scheduler_MAX_PRIORITIES; x++) - { - queues_[x] = 0; - delete_me_queues_[x] = 0; - } - - this->initialize_queues (); -} - -ACE_ES_Priority_Dispatching::~ACE_ES_Priority_Dispatching (void) -{ - // Delete the queues. - for (int x=0; x < ACE_Scheduler_MAX_PRIORITIES; x++) - delete delete_me_queues_[x]; -} - - -void -ACE_ES_Priority_Dispatching::initialize_queues (void) -{ - for (int x=0; x < ACE_Scheduler_MAX_PRIORITIES; x++) - { - // Convert ACE_Scheduler_Rate (it's really a period, not a rate!) - // to a form we can easily work with. - ACE_Time_Value period_tv; - ORBSVCS_Time::TimeT_to_Time_Value (period_tv, ACE_Scheduler_Rates[x]); - - RtecScheduler::Period period = period_tv.sec () * 10000000 + - period_tv.usec () * 10; - - queues_[x] = new ACE_ES_Dispatch_Queue (this, ¬ification_strategy_); - if (queues_[x] == 0 || - queues_[x]->open_queue (period, - threads_per_queue_) == -1) - { - ACE_ERROR ((LM_ERROR, "%p.\n", "ACE_ES_Priority_Dispatching::initialize_queues")); - return; - } - - queue_count_[x] = 1; - } - - highest_priority_ = ACE_Scheduler_MAX_PRIORITIES - 1; -} - -void -ACE_ES_Priority_Dispatching::connected (ACE_Push_Consumer_Proxy *consumer, - CORBA::Environment &_env) -{ - down_->connected (consumer, _env); - - // This code does dynamic allocation of channel dispatch threads. - // It requires that consumer's priorities are known at connection - // time and that threads can request priorities from the scheduler - // at run-time. These are both antithetical to static scheduling. - // The constructor now allocates a thread per rate group. -#if 0 - // We have to tell the lower portions of the channel about the - // consumer first. This is so that any changes to the consumer's - // qos will take effect when we get the dispatch priority. - down_->connected (consumer, _env); - - RtecScheduler::OS_Priority priority = - ACE_Scheduler::instance ().preemption_priority (consumer->qos ().rt_info_); - - { - ACE_ES_GUARD ace_mon (lock_); - - // If a queue has not been created for the consumer's priority, - // create one. - if (queues_[priority] == 0) - { - // Allocate a new dispatch queue. - queues_[priority] = new ACE_ES_Dispatch_Queue (this, ¬ification_strategy_); - if (queues_[priority] == 0) - TAO_THROW (CORBA::NO_MEMORY (0, CORBA::COMPLETED_NO, - "ACE_ES_Priority_Dispatching::connected")); - - // Initialize the dispatch queue corresponding to the - // consumer's priority. With a full implementation of the - // run-time scheduler, the dispatch queue can find it's - // scheduling qos online. However, we pass the rate in case - // one is not found. The rate can be used to obtain the - // proper priority. If threads_per_queue_ == 0, then these - // queues will be passive. Otherwise, they will be active. - // This switches us between MT_ORB and ST_ORB. If we're - // single-threaded, this registers us with the ReactorEx using - // our notification_strategy_. If we're multi-threaded, this - // spawns the threads. - if (queues_[priority]->open_queue (priority, - threads_per_queue_) == -1) - TAO_THROW (DISPATCH_ERROR (0, CORBA::COMPLETED_NO, - "ACE_ES_Priority_Dispatching::connected:" - "queue open failed.\n")); - - // When this goes down to 0, we will shutdown the queue. - queue_count_[priority] = 1; - - // Keep track of this to optimize handle_signal. - if (priority > highest_priority_) - highest_priority_ = priority; - - ACE_DEBUG ((LM_DEBUG, "Created queue priority = %d.\n", priority)); - } - else - queue_count_[priority]++; - } -#endif -} - -void -ACE_ES_Priority_Dispatching::disconnected (ACE_Push_Consumer_Proxy *consumer) -{ - // We'll not dynamically close down queues. - ACE_UNUSED_ARG (consumer); - -#if 0 - RtecScheduler::OS_Priority priority = - ACE_Scheduler::instance ().preemption_priority (consumer->qos ().rt_info_); - - { - ACE_ES_GUARD ace_mon (lock_); - - // If there are no more users of this queue, then we *could* shut - // it down. However, we will not. - if (--queue_count_[priority] <= 0) - { - ACE_DEBUG ((LM_DEBUG, "(%t) unused dispatch queue priority = %d, " - "is_empty = %d.\n", - priority, queues_[priority]->msg_queue ()->is_empty ())); - - queues_[priority]->shutdown_task (); - } - } -#endif -} - -// @@ This method could have a bypass optimization. -// has been dynamically allocated by the filtering module. -void -ACE_ES_Priority_Dispatching::push (ACE_ES_Dispatch_Request *request, - CORBA::Environment &_env) -{ - ACE_TIMEPROBE (TAO_DISPATCHING_MODULES_PUSH_SOURCE_TYPE_CORRELATION_MODULE); - - RtecScheduler::OS_Priority thread_priority; - RtecScheduler::Preemption_Subpriority subpriority; - RtecScheduler::Preemption_Priority preemption_priority; - - if (request->rt_info () != 0) - { - // @@ TODO use TAO_TRY&friends - ACE_TIMEPROBE (TAO_DISPATCHING_MODULES_PRIORITY_DISPATCHING_PUSH_PRIORITY_REQUESTED); - ACE_Scheduler_Factory::server ()->priority - (request->rt_info (), - thread_priority, - subpriority, - preemption_priority, - _env); - ACE_TIMEPROBE (TAO_DISPATCHING_MODULES_PRIORITY_DISPATCHING_PUSH_PRIORITY_OBTAINED); - if (_env.exception ()) - { - return; - } - } - else - { - thread_priority = - ACE_Sched_Params::priority_min (ACE_SCHED_FIFO, - ACE_SCOPE_PROCESS); - subpriority = ACE_Scheduler_MIN_SUB_PRIORITY; - preemption_priority = ACE_Scheduler_MIN_PREEMPTION_PRIORITY; - } - - // If it's a request to forward an event, it needs a reference to us - // to call dispatch_event. - request->set (this, preemption_priority, subpriority); - - // Make sure that a queue exists for this priority. - if (queues_[preemption_priority] == 0) - { - ACE_ERROR ((LM_ERROR, "Push to closed queue %d, dropping event.\n", preemption_priority)); - return; -#if 0 - TAO_THROW (SYNC_ERROR (0, CORBA::COMPLETED_NO, "ACE_ES_Priority_Dispatching::push")); -#endif /* 0 */ - } - - // Enqueue the request. If we're multi-threaded, this request is a - // command object that will be called by the threads in the queue, - // or will be dequeued by this->handle_signal if we're - // single-threaded. - if (queues_[preemption_priority]->try_put (request) == -1) - { - if (ACE_ES_Dispatch_Request::release (request) != 0) - ACE_ERROR ((LM_ERROR, "ACE_ES_Priority_Dispatching::push" - " release failed.\n")); - if (errno != EPIPE) - { - TAO_THROW (CORBA::NO_MEMORY (CORBA::COMPLETED_NO)); - // @@ Orbix parameters - // 0, CORBA::COMPLETED_NO, - // "ACE_ES_Priority_Dispatching::push enqueue failed")); - } - else - { - ACE_DEBUG ((LM_DEBUG, - "Request rejected from closed queue %d.\n", - preemption_priority)); - } - } -} - -// Start at highest priority queue checking for queued events -// continuing to lowest priority queue. If an event is ever found, -// dispatch it and then start back at the highest priority queue -// again. -int -ACE_ES_Priority_Dispatching::handle_signal (int, siginfo_t *, ucontext_t *) -{ - int done; - - do - { - done = 1; - for (int x = 0; x <= highest_priority_; x++) - { - // If the queue is not empty, dispatch the request and then - // start the for loop from the beginning. - if ((queues_[x] != 0) && (!queues_[x]->msg_queue ()->is_empty ())) - { - // Dequeue and service the request. - queues_[x]->svc_one (); - - // Exit the for loop and start over. - done = 0; - break; - } - - // If we get through the whole for loop without dispatching - // anything, then we're done. - } - } - while (!done); - - - return 0; -} - -// This is only for the non-win32 single-threaded implementation. -int -ACE_ES_Priority_Dispatching::handle_input (ACE_HANDLE) -{ - return this->handle_signal (0, 0, 0); -} - -// Shutdown each queue. When each queue exits, they will call back -// this->dispatch_queue_closed which allows us to free up resources. -// When the last queue has closed, we'll delete ourselves. -void -ACE_ES_Priority_Dispatching::shutdown (void) -{ - if (shutdown_) - return; - - ACE_DEBUG ((LM_DEBUG, "(%t) ACE_ES_Priority_Dispatching " - "module shutting down.\n")); - - shutdown_ = 1; - - // If we're single threaded, then we need to shut down the - // notification strategy so it can remove itself from the reactor. - if (threads_per_queue_ == 0) - notification_strategy_.shutdown (); - - // Whether these are active or not, they must be shut down. - for (int x = 0; x <= highest_priority_; x++) - if (queues_[x] != 0) - { - ACE_DEBUG ((LM_DEBUG, "shutting down dispatch queue %d.\n", x)); - queues_[x]->shutdown_task (); - } -} - -// This gets called every time a Dispatch Queue closes down. We -// search for and delete it. If we have been told to delete -// ourself, after the last queue has been deleted, we delete -// ourselves. -void -ACE_ES_Priority_Dispatching::dispatch_queue_closed (ACE_ES_Dispatch_Queue *queue) -{ - ACE_ES_GUARD ace_mon (lock_); - - // Find the queue. - for (int x = 0; x <= highest_priority_; x++) - { - if (queues_[x] == queue) - { - ACE_DEBUG ((LM_DEBUG, "(%t) Dispatch queue %d is closed.\n", x)); - - // Store the queue for deleting in this object's destructor. - delete_me_queues_[x] = queues_[x]; - queues_[x] = 0; - - // Reset highest_priority_. - if (x == highest_priority_) - { - while ((--highest_priority_ >= 0) && - (queues_[highest_priority_] == 0)); - - if (highest_priority_ < 0) - { - ACE_DEBUG ((LM_DEBUG, "Dispatching module shut down.\n")); - up_->shutdown (); - return; - } - } - - // If we found the queue, we can exit the for loop. - break; - } - } -} - -/* -ACE_HANDLE -ACE_ES_Priority_Dispatching::get_handle (void) const -{ - ACE_ES_Priority_Dispatching *fake_this = (ACE_ES_Priority_Dispatching *) this; - return fake_this->notification_strategy_.get_handle (); -} -*/ - -// ************************************************************ - -ACE_ES_Dispatch_Queue::ACE_ES_Dispatch_Queue (ACE_ES_Dispatching_Base *dispatching_module, - ACE_ES_Notification_Strategy *notification_strategy) - : dispatching_module_ (dispatching_module), - notification_strategy_ (notification_strategy) -{ -} - -int -ACE_ES_Dispatch_Queue::open_queue (RtecScheduler::Period &period, - int threads) -{ - // First set up the correct message queue according to whether the - // dispatch queue will be active or not. - - // If there are no threads specified, we'll register with the - // reactor to be called back when someone queues a message. - if (threads == 0) - { - // Allocate a message queue that notifies a reactor when events - // arrive via the msg_queue call. If that succeeds, set the - // notification strategy in our message queue via the open call. - if (this->msg_queue () == 0 || - this->msg_queue ()->open (ACE_ES_QUEUE::DEFAULT_HWM, - ACE_ES_QUEUE::DEFAULT_LWM, - notification_strategy_) == -1) - ACE_ERROR_RETURN ((LM_ERROR, "%p msg_queue.open failed.\n", - "ACE_ES_Dispatch_Queue::open_queue"), -1); - } - else - { - // Allocate a message queue that does not notify. - ACE_ES_MQ *mq = new ACE_ES_MQ; - if (mq == 0) - ACE_ERROR_RETURN ((LM_ERROR, "%p.\n", - "ACE_ES_Dispatch_Queue::open_queue"), -1); - else - { - // This deletes previous message queue. - this->msg_queue (mq); - // Set this so that the destructor of ACE_Task deletes our - // message queue. Note, this must be after the call to - // msg_queue. - delete_msg_queue_ = 1; - } - } - - // Create a name for ourselves using the period. The period is - // in 100 ns units; first convert to usec by dividing by 10. - char temp[64]; - ACE_OS::sprintf (temp, "ACE_ES_Dispatch_Queue-%u.us", period / 10); - - // Open the task. This will query the scheduler for our qos - // structure. It will also synch_threads if it succeeds. - int result = this->open_task (temp); - - switch (result) - { - case -1: - // Error. - ACE_ERROR_RETURN ((LM_ERROR, "%p.\n", - "ACE_ES_Dispatch_Queue::open_queue"), -1); - case 0: - TAO_TRY - {// @@ TODO: Handle exceptions... - ACE_Scheduler_Factory::server()->set (rt_info_, - RtecScheduler::VERY_HIGH_CRITICALITY, - ORBSVCS_Time::zero, - ORBSVCS_Time::zero, - ORBSVCS_Time::zero, - 0, - RtecScheduler::VERY_LOW_IMPORTANCE, - ORBSVCS_Time::zero, - 1, - RtecScheduler::OPERATION, - TAO_TRY_ENV); - TAO_CHECK_ENV; - } - TAO_CATCHANY - { - ACE_ERROR_RETURN ((LM_ERROR, - "ACE_ES_Dispatch_Queue::exception"), -1); - } - TAO_ENDTRY; - case 1: - // Found. - break; - } - - // Spawn threads. - return this->synch_threads (threads); -} - -// This is called back by ACE_RT_Task when all the threads have -// exited. We're going to forward this event to the dispatching -// module so it can clean up any resources. -void -ACE_ES_Dispatch_Queue::threads_closed (void) -{ - dispatching_module_->dispatch_queue_closed (this); -} - -// ************************************************************ - -ACE_ES_EFD_Dispatching::ACE_ES_EFD_Dispatching (ACE_EventChannel *channel) - : ACE_ES_Dispatching_Base (channel) -{ -} - -void -ACE_ES_EFD_Dispatching::push (ACE_ES_Dispatch_Request *request, - CORBA::Environment &) -{ - // If it's a request to forward an event, it needs a reference to us - // to call dispatch_event. - request->set (this, 0, ACE_Scheduler_MIN_SUB_PRIORITY); - - u_long command_action = ACE_RT_Task_Command::RELEASE; - - // This may be a request to delete a push consumer proxy, so we - // should execute it instead of just forwarding it. - request->execute (command_action); - - switch (command_action) - { - case ACE_RT_Task_Command::RELEASE: - // Free the request. - if (ACE_ES_Dispatch_Request::release (request) != 0) - ACE_ERROR ((LM_ERROR, "ACE_ES_EFD_Dispatching::push" - " release failed.\n")); - break; - - default: - ACE_ERROR ((LM_ERROR, "ACE_ES_EFD_Dispatching::push: unknown command action.\n")); - } -} - -// ************************************************************ - -ACE_ES_RTU_Dispatching::ACE_ES_RTU_Dispatching (ACE_EventChannel *channel) - : ACE_ES_Priority_Dispatching (channel, 0) -{ -} - -// We're called from a dispatch queue, so we can not release the request. -int -ACE_ES_RTU_Dispatching::dispatch_event (ACE_ES_Dispatch_Request *request, - u_long &command_action) -{ - // Store the priority of the task currently running. - channel_->rtu_manager ()->priority (request->priority ()); - - TAO_TRY - { - // Forward the request. - up_->push (request, TAO_TRY_ENV); - TAO_CHECK_ENV; - } - TAO_CATCHANY - { - ACE_ERROR ((LM_ERROR, "ACE_ES_RTU_Dispatching::dispatch_event unknown exception.\n")); - } - TAO_ENDTRY; - - // Reset the priority. - channel_->rtu_manager ()->priority (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO, ACE_SCOPE_PROCESS)); - - // If the task was preempted, enqueue the request on the head of the - // dispatch queue. - if (channel_->rtu_manager ()->not_done ()) - command_action = ACE_RT_Task_Command::UNGETQ; - else - // We're done with it. - command_action = ACE_RT_Task_Command::RELEASE; - - return 0; -} - -void -ACE_ES_RTU_Dispatching::push (ACE_ES_Dispatch_Request *request, - CORBA::Environment &_env) -{ - // First enqueue the message in the proper queue. - ACE_ES_Priority_Dispatching::push (request, _env); - - // If the current event is higher priority (lower value) than the - // current running task, then tell the task to preempt itself. - int request_priority = request->priority (); - int running_priority = channel_->rtu_manager ()->priority (); - if (request_priority < running_priority) - channel_->rtu_manager ()->should_preempt (1); - return; -} - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_CORBA_Sequence >; -template void operator+=(ACE_CORBA_Sequence > &, ACE_CORBA_var const &); - -#elif defined(ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) - -#pragma instantiate ACE_CORBA_Sequence > -#pragma instantiate void operator+=(ACE_CORBA_Sequence > &, ACE_CORBA_var const &) - -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.h b/TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.h deleted file mode 100644 index b61799d7ba1..00000000000 --- a/TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.h +++ /dev/null @@ -1,486 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ -// -// ============================================================================ -// -// = LIBRARY -// orbsvcs -// -// = FILENAME -// Dispatching_Module -// -// = AUTHOR -// Tim Harrison (harrison@cs.wustl.edu) -// -// = DESCRIPTION -// This file holds the different Event Service dispatching -// mechanisms. These include null-dispatching (EFD), -// single-threaded with (RTU) and without preemption (LAME), and a -// multithreaded implementation. -// -// ============================================================================ - -#ifndef ACE_DISPATCHING_MODULES_H -#define ACE_DISPATCHING_MODULES_H - -#include "tao/Timeprobe.h" -#include "ReactorTask.h" -#include "Event_Channel.h" - -// ************************************************************ - -// Forward declarations. -class ACE_ES_Dispatch_Queue; -class ACE_ES_Dispatch_Request; - -// ************************************************************ - -// Forward declarations. -class ACE_ES_Consumer_Module; - -class TAO_ORBSVCS_Export ACE_ES_Dispatching_Base : public ACE_Event_Handler -// = TITLE -// Event Service Dispatch Module base class -// -// = DESCRIPTION -// We inherit from ACE_Event_Handler so that we can be called back -// by the ReactorEx when requests are queued. The virtual -// dispatch_event method allows ACE_ES_Dispatch_Requests to call -// back the dispatching module when acting as command objects. When -// this implementation is used by the Event Channel it forwards all -// dispatch calls without any queuing. Therefore, it can be -// used to build an EFD. It is also inherited by the Priority -// Dispatching module. -{ -public: - ACE_ES_Dispatching_Base (ACE_EventChannel *channel); - // Default construction. - - virtual void open (ACE_ES_Consumer_Module *up, - ACE_ES_Correlation_Module *down); - // Link to adjacent modules. - - virtual void connected (ACE_Push_Consumer_Proxy *consumer, - CORBA::Environment &); - // Forward down_. - - virtual void disconnecting (ACE_Push_Consumer_Proxy *consumer, - CORBA::Environment &); - // Forward down_. - - virtual void disconnected (ACE_Push_Consumer_Proxy *consumer); - // Release any unneeded dispatching resources. - - // = Not needed. - // void connected (ACE_Push_Supplier_Proxy *supplier); - // void disconnecting (ACE_Push_Supplier_Proxy *supplier); - - virtual void push (ACE_ES_Dispatch_Request *request, - CORBA::Environment &) = 0; - // Forward up_. - - virtual int dispatch_event (ACE_ES_Dispatch_Request *request, - u_long &command_action); - // Called by ACE_ES_Dispatch_Requests when dequeued by RT_Tasks. - - virtual void dispatch_queue_closed (ACE_ES_Dispatch_Queue *q); - // Called when all the threads of a have exited. - - virtual void shutdown (void); - // This is called by the Event Channel. This will attempt to shut - // down all of its threads gracefully. Wish it luck. - -protected: - ACE_EventChannel *channel_; - // Dat der channel. - - ACE_ES_MUTEX lock_; - // To synchronize thr_count_. - - int thr_count_; - // The total number of threads in the Dispatching Module. This will - // be the sum of all the Dispatch Queue threads. - - ACE_ES_Consumer_Module *up_; - // Next module up. - - ACE_ES_Correlation_Module *down_; - // Next module down. -}; - -// ************************************************************ - -class TAO_ORBSVCS_Export ACE_ES_Dispatch_Request : public ACE_RT_Task_Command -// = TITLE -// ACE Event Service Dispatch Request -// -// = DESCRIPTION -// Encapsulates a consumer and the events that will be sent to the -// consumer. Right now, this class keeps a single_event_ that can -// be used when only one event is sent to the consumer. Since this -// is frequently the case (except for correlations), this -// optimization reduces the amount of dynamic memory allocation is -// necessary. This class is also a GOF Command object since it can -// be dequeued by an RT_Task to call back the dispatching module -// for request dispatching. -{ -public: - typedef ACE_CORBA_Sequence Event_Set; - - ACE_ES_Dispatch_Request (void); - // Default construction. - - virtual ~ACE_ES_Dispatch_Request (void); - // Default destruction. - - ACE_ES_Dispatch_Request (ACE_Push_Consumer_Proxy *consumer, - RtecScheduler::handle_t rt_info); - // All the events must be added after construction to the - // event_set. - - ACE_ES_Dispatch_Request (ACE_Push_Consumer_Proxy *consumer, - const Event_Set &event_set, - RtecScheduler::handle_t rt_info); - // Set consumer_ to and copy to event_set_. - // describes the method receiving this dispatch. - - ACE_ES_Dispatch_Request (ACE_Push_Consumer_Proxy *consumer, - const RtecEventComm::Time &time, - RtecScheduler::handle_t rt_info); - // Set consumer_ to and sets single_event_.creation_time_ - // to