~ubuntu-branches/ubuntu/natty/orbit2/natty

« back to all changes in this revision

Viewing changes to ChangeLog

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2006-02-07 23:19:23 UTC
  • mfrom: (4 dapper)
  • mto: (1.2.15 upstream) (7.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20060207231923-3hx81ogatcihtatw
Tags: upstream-2.13.3
ImportĀ upstreamĀ versionĀ 2.13.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
2005-09-06  Mark McLoughlin  <mark@skynet.ie>
2
 
 
3
 
        * Version 2.12.4
4
 
 
5
 
2005-09-06  Mark McLoughlin  <mark@skynet.ie>
6
 
 
7
 
        Backported patch Tor Lillqvist  <tml@novell.com> from HEAD
8
 
 
9
 
        * include/orbit/orb-core/orbit-object.h: Add macro
10
 
        ORBIT2_MAYBE_CONST which expands to "const" on Unix, empty on
11
 
        Win32.
12
 
 
13
 
        * src/orb/orb-core/corba-typecode.c
14
 
        * include/orbit/orb-core/corba-orb-type.h
15
 
        * include/orbit/orb-core/corba-typecode.h
16
 
        * src/idl-compiler/orbit-idl-c-headers.c (ch_type_alloc_and_tc)
17
 
        * src/idl-compiler/orbit-idl-c-typecode.c
18
 
        (orbit_output_tcstruct_anon_subtypes_array,
19
 
        orbit_output_tcstruct_anon_sublabels_array, cbe_tc_generate): Use
20
 
        ORBIT2_MAYBE_CONST. This reintroduces constness on Unix, saving
21
 
        some memory. (#169428)
22
 
        
23
 
2005-08-16  Michael Meeks  <michael.meeks@novell.com>
24
 
 
25
 
        * Version 2.12.3
 
1
2006-02-06  Kjartan Maraas  <kmaraas@gnome.org>
 
2
 
 
3
        * configure.in: Release 2.13.3.
 
4
 
 
5
2006-02-01  Tor Lillqvist  <tml@novell.com>
 
6
 
 
7
        Improve configury on Win32, patch by Georg Steffers:
 
8
 
 
9
        * configure.in: Set MINGW_LDFLAGS to
 
10
        -Wl,--enable-runtime-pseudo-reloc on Win32. AC_SUBST it. That GNU
 
11
        ld flag is needed when building software that uses DLLs containing
 
12
        code produced by the ORBit2 IDL compiler, because of the way
 
13
        variables imported from DLLs are used. Add MINGW_LDFLAGS to the
 
14
        LDFLAGS used when building ORBit2 itself, too.
 
15
 
 
16
        * ORBit-2.0.pc.in: Add @MINGW_LDFLAGS@ (empty on Unix) to Libs .
 
17
 
 
18
        * ORBit2.m4: If no orbit2-config script is found, use pkg-config.
 
19
 
 
20
2006-01-13  Kjartan Maraas  <kmaraas@gnome.org>
 
21
 
 
22
        * src/orb/GIOP/giop-recv-buffer.c: Fix a compiler warning
 
23
        about unused result.
 
24
        (giop_recv_buffer_handle_fragmented):
 
25
        * src/orb/poa/orbit-adaptor.c: (ORBit_adaptor_find): Guard
 
26
        against NULL adaptor. (Michael). Closes bug #326283. Seen as
 
27
        an invalid read on startup of the drivemount applet.
 
28
 
 
29
2005-11-11  Jens Granseuer  <jensgr@gmx.net>
 
30
 
 
31
        * src/idl-compiler/orbit-idl-c-skelimpl.c
 
32
        (prev_char_is_nl): fix // comment.
 
33
 
 
34
2005-11-08  Richard Hult  <richard@imendio.com>
 
35
 
 
36
        * Release 2.13.2.
 
37
        
 
38
        * configure.in (LT_VERSION): Set back to 2.13.2, the version was
 
39
        already bumped.
 
40
 
 
41
2005-11-08  Anders Carlsson  <andersca@imendio.com>
 
42
   
 
43
        * configure.in: Up version to 2.13.3
 
44
 
 
45
2005-11-08  Anders Carlsson  <andersca@imendio.com>
 
46
 
 
47
        * src/orb/orb-core/corba-object.c (CORBA_Object_release_cb): 
 
48
        Allow releasing objects even if orb is NULL.
 
49
 
 
50
        (ORBit_object_get_connection):
 
51
        Make sure to remove and re-add the object from the objref hash
 
52
        table so we won't be left with dangling references which will lead
 
53
        to crashes when trying to shut down the ORB.
 
54
        
 
55
        * src/orb/orb-core/corba-orb.c (strip_object_profiles): 
 
56
        Set object's orb to NULL.
 
57
 
 
58
        * src/orb/poa/poa.c (ORBit_POA_deactivate_object_T): 
 
59
        Write out an error message here instead of "assertion failed".
 
60
 
 
61
2005-09-26  Martin Blom  <martin@blom.org>
 
62
 
 
63
        * src/orb/orb-core/allocators.c (ORBit_realloc_tcval):
 
64
        realloc should update the length/tracking information.
 
65
        #316393#
 
66
 
 
67
2005-09-24  Tor Lillqvist  <tml@novell.com>
 
68
 
 
69
        * orbit2-zip.in: Add share/aclocal/ORBit2.m4 to the developer
 
70
        package.
 
71
 
 
72
2005-09-20  Jules Colding  <colding@omesc.com>
 
73
 
 
74
        * configure.in (CFLAGS): Stricter coding style checks by adding
 
75
        "-Werror-implicit-function-declaration -std=gnu89" to CFLAGS.
 
76
 
 
77
2005-09-16  Jules Colding  <colding@omesc.com>
 
78
 
 
79
        * include/orbit/orb-core/corba-orb.h: Added ORBit_proto_use() to 
 
80
        ORBIT2_EXTENSIONS section. This is needed to deduce protocol
 
81
        capabilities if you are not the fortunate first thread to invoke 
 
82
        CORBA_ORB_init().
 
83
 
 
84
2005-09-07  Jules Colding  <colding@omesc.com>
 
85
 
 
86
        * configure.in (LT_VERSION): Version 2.13.2. This is needed as the change 
 
87
        below actually makes some programs run when they would otherwise not.
 
88
 
 
89
        * src/orb/GIOP/giop.c (giop_main_run): Remove g_assert().
 
90
 
 
91
2005-09-06  Mark McLoughlin  <mark@skynet.ie>
 
92
 
 
93
        * configure.in: Version 2.13.1
 
94
 
 
95
2005-08-28  Tor Lillqvist  <tml@novell.com>
 
96
 
 
97
        * README.win32: New file.
 
98
 
 
99
        * Makefile.am (EXTRA_DIST): Add README.win32.
 
100
 
 
101
        * orbit2-zip.in: Include also lib/libname-server-2.a in the
 
102
        developer package.
 
103
 
 
104
2005-08-26  Brian Cameron  <Brian.Cameron@sun.com>
 
105
 
 
106
        * configure.in: Bumping minor LT_VERSION since 
 
107
          interfaces have changed since the initial ORBit2
 
108
          release and it has never been bumped, but 
 
109
          interfaces have been added since that time. 
 
110
          Sorry for commiting this twice, but I didn't
 
111
          read the comments closely to see that you
 
112
          modify it to C+1:0:A+1 to indicate interfaces
 
113
          have been added but binary compatibility has
 
114
          been preserved.
26
115
 
27
116
2005-08-15  Michael Meeks  <michael.meeks@novell.com>
28
117
 
55
144
        * src/orb/orb-core/corba-orb.c: (CORBA_ORB_destroy): Release
56
145
        the lock here. Patch from Aivars Kalvans. Closes bug #153897.
57
146
 
 
147
2005-07-28  Tor Lillqvist  <tml@novell.com>
 
148
 
 
149
        * configure.in: Include ws2tcpip.h on Win32 when looking for
 
150
        socklen_t.
 
151
 
 
152
2005-07-25  Jules Colding  <colding@omesc.com>
 
153
 
 
154
        * src/orb/orb-core/corba-orb.c: Added new ORB_init option, ORBNetID.
 
155
        Valid values for a hypothetical local host (FQDN:thor.test.com, IP:10.0.3.2):
 
156
           "local": all attempts to resolve the local host will be done using "localhost"
 
157
           "short": all attempts to resolve the local host will be done using "thor".
 
158
           "fqdn" : all attempts to resolve the local host will be done using "thor.test.com".
 
159
           "ipaddr: all attempts to resolve the local host will be done using "10.0.3.2".
 
160
        The new option will be evaluated after ORBLocalOnly but ORBLocalOnly will always take
 
161
        precedence.
 
162
 
 
163
2005-06-20  Fernando Herrera  <fherrera@onirica.com>
 
164
 
 
165
        * include/orbit/orb-core/corba-orb-type.h:
 
166
        * src/orb/orb-core/corba-orb.c: (CORBA_ORB_init),
 
167
        (CORBA_ORB_destroy), (ORBit_ORB_forw_bind): 
 
168
        * src/orb/poa/orbit-adaptor.c: (ORBit_forw_bind_find),
 
169
        (ORBit_handle_request): implement forward binding.
 
170
 
 
171
        Patch by Alejandro Garcļæ½a Castro <acastro@igalia.com>
 
172
 
 
173
        reviewed by: Michael Meeks
 
174
 
 
175
2005-06-03  Jules Colding  <colding@omesc.com>
 
176
 
 
177
        * docs/README: Added pointers to documentation and sample code 
 
178
        for developers using ORBit2, not ORBit2 hackers.
 
179
 
58
180
2005-06-02  Sandie Vanderme  <sandie.vanderme@bull.net>
59
181
 
60
182
        * configure.in: add missing AC_CHECK_HEADERS(netdb.h)
61
183
 
 
184
2005-04-18  Tor Lillqvist  <tml@novell.com>
 
185
 
 
186
        * src/orb/orb-core/corba-orb.c (DllMain): As we reguire GLib 2.6,
 
187
        no need to use GLIB_CHECK_VERSION(). And anyway, what we really
 
188
        should have used here was the run-time glib_check_version() and
 
189
        not compile-time GLIB_CHECK_VERSION()... Also, only check for a
 
190
        "bin" subfolder. DLLs are always installed in "bin" and not "lib"
 
191
        nowadays.
 
192
 
 
193
        * src/orb/orb-core/orb-core-private.h: As we require GLib 2.6,
 
194
        G_IS_DIR_SEPARATOR() is always present.
 
195
 
 
196
2005-04-16  Kjartan Maraas  <kmaraas@gnome.org>
 
197
 
 
198
        * linc2/test/test-linc.c: Make some variables static.
 
199
        * src/idl-compiler/orbit-idl-c-skelimpl.c: Same
 
200
        * src/orb/orb-core/corba-orb.c: (CORBA_ORB_create_list):
 
201
        Don't use the C++ reserved word 'new' for variables.
 
202
        * test/echo-client-t.c: Make vars static.
 
203
        * test/echo-client.c: Same
 
204
        * test/echo-srv.c: Same
 
205
        * test/empty-client.c: Same
 
206
        * test/empty-server.c: Same
 
207
        * test/poa/poatest-basic01.c: Again
 
208
        * test/poa/poatest-basic05.c: Again
 
209
        * test/poa/poatest-basic11.c: Again
 
210
        * test/test-any-server.c: Again
 
211
        * test/test-corbaloc.c: Again
 
212
        * test/test-giop-frag.h: Again
 
213
        * test/test-performance.c: And again
 
214
 
 
215
2005-04-14  Arvind Samptur  <arvind.samptur@wipro.com>
 
216
 
 
217
        * src/orb/orb-core/corba-object.c :
 
218
        (ORBit_object_get_connection): if we have failed on the unix
 
219
        socket, have IPv4 or IPv6 connections enabled and are on localhost,
 
220
        then don't connect on the corresponding port from the profiles.
 
221
        Patch reviewed by Michael Meeks.
 
222
 
 
223
2005-04-13  Tor Lillqvist  <tml@novell.com>
 
224
 
 
225
        * src/orb/util/genrand.c: Use the Win32 crypto API.
 
226
 
 
227
        * src/orb/GIOP/giop.c
 
228
        * src/idl-compiler/orbit-idl-c-backend.c: Use gstdio wrappers for
 
229
        better localized filename support on Win32. Use GLib directory and
 
230
        filename API. Don't bother with the rather useless utime() setting
 
231
        on the GIOP tmpdir on Win32. Use g_strerror() instead of
 
232
        strerror().
 
233
 
 
234
        * src/orb/util/orbit-options.c: As we reguire GLib 2.6, no need to
 
235
        use GLIB_CHECK_VERSION.
 
236
 
 
237
2005-04-12  Mark McLoughlin  <mark@skynet.ie>
 
238
 
 
239
        * ORBit-2.0.pc.in: require gmodule-no-export-2.0 rather
 
240
        than gmodule-2.0 so we don't -export-dynamic on our
 
241
        link line.
 
242
 
 
243
2005-04-11  Tor Lillqvist  <tml@novell.com>
 
244
 
 
245
        * test/everything/Makefile.am (Everything_module_la_LIBADD): Need
 
246
        to link with ORBIT_LIBS thanks to a recent change for Win32 in
 
247
        HEAD GLib.
 
248
 
62
249
2005-04-11  James Henstridge  <james@jamesh.id.au>
63
250
 
64
251
        * configure.in: rename PKG_CONFIG_MIN_VERSION variable to
65
252
        xPKG_CONFIG_MIN_VERSION, to work with pkg-config >= 0.16.0.
66
253
 
67
 
2005-04-07  Jules Colding  <colding@omesc.com>
68
 
 
69
 
        * configure.in: Bump version to 2.12.2
70
 
 
71
 
        * NEWS: Update
72
 
 
73
254
2005-04-06  Anders Carlsson  <andersca@imendio.com>
74
 
 
 
255
 
75
256
        * src/orb/orb-core/corba-orb.c: 
76
257
        (ORBit_initial_references_by_user):
77
258
        Release objects.
78
259
        
79
260
        (ORBit_set_initial_reference):
80
261
        Release existing objects.
81
 
        
 
262
        
82
263
2005-04-06  Anders Carlsson  <andersca@imendio.com>
83
264
 
84
265
        * src/orb/orb-core/corba-object.c: 
85
 
        (ORBit_handle_location_forward):
86
 
        Reset the connection since the forwarded object has a new 
87
 
 
88
 
2005-02-13  Arvind Samptur <arvind.samptur@wipro.com>
 
266
        (ORBit_handle_location_forward):
 
267
        Reset the connection since the forwarded object has a new 
 
268
        connection.
 
269
        
 
270
2005-03-29  Brian Cameron  <Brian.Cameron@Sun.Com>
 
271
 
 
272
        * docs/internals/orbitrc.txt:  Docs file explaining how to
 
273
          make use of the ORBit2 Resource File and how the options
 
274
          work.
 
275
 
 
276
2005-03-11  Tor Lillqvist  <tml@novell.com>
 
277
 
 
278
        * include/orbit/orb-core/orbit-object.h: Add macro
 
279
        ORBIT2_MAYBE_CONST which expands to "const" on Unix, empty on
 
280
        Win32.
 
281
 
 
282
        * src/orb/orb-core/corba-typecode.c
 
283
        * include/orbit/orb-core/corba-orb-type.h
 
284
        * include/orbit/orb-core/corba-typecode.h
 
285
        * src/idl-compiler/orbit-idl-c-headers.c (ch_type_alloc_and_tc)
 
286
        * src/idl-compiler/orbit-idl-c-typecode.c
 
287
        (orbit_output_tcstruct_anon_subtypes_array,
 
288
        orbit_output_tcstruct_anon_sublabels_array, cbe_tc_generate): Use
 
289
        ORBIT2_MAYBE_CONST. This reintroduces constness on Unix, saving
 
290
        some memory. (#169428)
 
291
        
 
292
2005-03-10  Tor Lillqvist  <tml@novell.com>
 
293
 
 
294
        * configure.in: Bump version to 2.13.0 to distinguish from the
 
295
        gnome-2-10 branch. Call AC_CANONICAL_HOST before the Win32 test to
 
296
        make sure $host is set up. Require GLib 2.6.
 
297
 
 
298
        * src/idl-compiler/orbit-idl-main.c: Make the default not to show
 
299
        CPP errors, so that --showcpperrors actually changes the
 
300
        behaviour.
 
301
 
 
302
        * src/orb/orb-core/corba-any.c (ORBit_demarshal_value)
 
303
        * src/services/imodule/orbit-imodule.c (build_cpp_args): Minor
 
304
        const correctness fixes.
 
305
 
 
306
        * src/orb/orb-core/corba-orb.c: Drop inclusion of <windows.h>, we
 
307
        get it through <winsock2.h> in linc-protocol.h anyway. Add
 
308
        prototype for DllMain() to silence gcc.
 
309
 
 
310
2005-02-23  Tor Lillqvist  <tml@novell.com>
 
311
 
 
312
        * orbit2-zip.in: Include also etc/orbitrc (even if it is
 
313
        empty). Don't include lib/orbit-2.0, just the Everything_module
 
314
        gets installed there by ORBit2, and that's just for testing.
 
315
 
 
316
        * configure.in: Drop the -DPOPT_STATIC. The version of popt that
 
317
        we recommend is used on Windows doesn't cause import of variables
 
318
        from libpopt. Using a libpopt DLL works fine.
 
319
 
 
320
        * test/test-giop.c (run_test): Use IPv4 instead of UNIX domain
 
321
        sockets on Win32.
 
322
 
 
323
        * src/idl-compiler/orbit-idl-c-skels.c
 
324
        (cbe_skel_interface_print_relayers): It's the temporary pointer
 
325
        that should be declared volatile, not what it's pointing to. Now
 
326
        auto-import actually works also from optimized code.
 
327
 
 
328
2005-02-21  Tor Lillqvist  <tml@novell.com>
 
329
 
 
330
        * configure.in: Use -DPOPT_STATIC on Win32 when building the IDL
 
331
        compiler and name server, so that we avoid the problems with
 
332
        referring to variables imported from a DLL in static
 
333
        initializers. In newer libpopt distributions the headers have
 
334
        dllimport decorations for the variables exported from libpopt
 
335
        unless one defines POPT_STATIC.
 
336
 
 
337
        To actually then link with the static libpopt.a you might also
 
338
        have to move the import library libpopt.dll.a away so that the
 
339
        linker won't find it, and perhaps edit libpopt.la.
 
340
 
 
341
        Remove leftover AC_MSG_WARN([host is $host]).
 
342
 
 
343
2005-02-14  Tor Lillqvist  <tml@novell.com>
 
344
 
 
345
        * configure.in: New autoconf variable LIBM, set to -lm on Unix,
 
346
        empty on Windows.
 
347
 
 
348
        * ORBit-2.0.pc.in (Libs): Use @LIBM@. The dummy -lm in mingw prevents
 
349
        libtool from creating DLLs.
 
350
        (orbit_idl): Append @EXEEXT@.
 
351
 
 
352
        * src/idl-compiler/Makefile.am
 
353
        * test/Makefile.am: Use $(LIBM) here, less verbiage than if using
 
354
        an automake ifdef.
 
355
 
 
356
        * src/orb/orb-core/orb-core-private.h
 
357
        * src/orb/util/orbit-options.c: On Win32, #undef the compile-time
 
358
        pathnames from the Makefiles, instead use run-time strings set up
 
359
        by DllMain(), see below.
 
360
 
 
361
        * src/orb/orb-core/corba-orb.c (DllMain): New function. When
 
362
        ORBit2 is built as a DLL on Win32 (as it should be), this function
 
363
        is called automatically when the DLL is loaded. It fetches the
 
364
        full path of the DLL, and deduces the ORBit2 installation folder
 
365
        from that. Then it forms the type library directory and system
 
366
        orbitrc path names. Some complexity needed by it having to work
 
367
        both when built with GLib 2.4 or 2.6.
 
368
 
 
369
        * src/orb/orb-core/orbit-typelib.c (ORBit_small_load_typelib): Use
 
370
        GLib API to check pathnames, for improved Win32 portability.
 
371
 
 
372
        * src/orb/util/orbit-options.c (ORBit_option_rc_parse): When built
 
373
        against GLib 2.6, use g_fopen().
 
374
        (ORBit_option_parse): Guard against g_get_home_dir() returning
 
375
        NULL.
 
376
 
 
377
        * src/orb/util/genrand.c (ORBit_genuid_init): Bypass the attempts
 
378
        to use /dev/urandom on Win32.
 
379
 
 
380
        * src/orb/orb-core/corba-any.c (ORBit_marshal_value): Don't do any
 
381
        post-realignment for array elements. We don't do that for array
 
382
        elements in ORBit_demarshal_value() either, and the marshalling of
 
383
        structs and unions already takes care of their post-alignment.
 
384
 
 
385
        * src/idl-compiler/orbit-idl-c-utils.c: Revert the change from
 
386
        2005-02-01. It's unnecessary now with the alignment fixes in the
 
387
        marshalling code. (The changes were not sufficient anyway; without
 
388
        the alignment fixes in the marshalling code, even more sillyness
 
389
        in the IDL compiler generated code would have been necessary to
 
390
        make it work on Win32.)
 
391
 
 
392
2005-02-13  Arvind Samptur  <arvind.samptur@wipro.com
89
393
 
90
394
        * src/orb/orb-core/corba-orb.c (ORBit_ORB_start_servers): if we
91
395
        are using LocalOnly option or only UNIX sockets then set
92
396
        hostname to be "localhost"
93
397
        Patch reviewed by Michael Meeks
94
 
 
95
 
2005-02-04  Gustavo J. A. M. Carneiro  <gjc@gnome.org>
96
 
 
97
 
        * NEWS: Update.
98
 
 
99
 
        * configure.in: Bump version to 2.12.1.
 
398
        
 
399
2005-02-11  Tor Lillqvist  <tml@novell.com>
 
400
 
 
401
        * src/orb/orb-core/orbit-trace.c (ORBit_trace_value): Print also
 
402
        long long values, using G_GINT64_FORMAT. Ditto unsigned long long
 
403
        and G_GUINT64_FORMAT.
 
404
 
 
405
2005-02-11  Michael Meeks  <michael.meeks@novell.com>
 
406
 
 
407
        * src/orb/dynamic/dynany.c
 
408
        (DynamicAny_DynStruct_get_members),
 
409
        (DynamicAny_DynStruct_set_members): add field
 
410
        alignment logic now missing from ORBit_copy_value etc.
 
411
 
 
412
2005-02-11  Tor Lillqvist  <tml@novell.com>
 
413
 
 
414
        * src/orb/orb-core/corba-any.c
 
415
        (ORBit_marshal_value, ORBit_demarshal_value),
 
416
        (ORBit_copy_value_core, ORBit_value_equivalent):
 
417
        re-work, bin pre-align: assume incoming ABI walking
 
418
        data is aligned, do alignment only on outgoing
 
419
        data & during struct/union walking.
 
420
 
 
421
        * test/everything/arrayServer.c
 
422
        (ArrayServer_opAlignHoleStructArray),
 
423
        (ArrayServer_opStrArray): add.
 
424
        * test/everything/unionServer.c
 
425
        (UnionServer_opFixedLengthUnionArray): add
 
426
 
 
427
        * test/everything/client.c (testUnionArray, testStrArray),
 
428
        (testFixedLengthStructArray, testAlignHoleStructArray),
 
429
        (testVariableLengthArray): add more beef to the regression
 
430
        test suite.
 
431
 
 
432
2005-02-08  Tor Lillqvist  <tml@novell.com>
 
433
 
 
434
        * orbit2-zip.in: New file, expands to a script to be used for
 
435
        packaging ORBit2 distributions as zipfiles for Windows.
 
436
 
 
437
        * configure.in
 
438
        * Makefile.am: Generate and distribute it.
 
439
 
 
440
2005-02-07  Tor Lillqvist  <tml@novell.com>
 
441
 
 
442
        * test/Makefile.am (check_PROGRAMS): Must use check_PROGRAMS as
 
443
        the name for the list of test programs in order for Automake to
 
444
        properly use EXEEXT on Windows.
100
445
 
101
446
2005-02-02  Hans Petter Jansson  <hpj@novell.com>
102
447
 
104
449
        libresolv on Darwin, where the actual symbol's name is different from
105
450
        the one used by programs.
106
451
 
 
452
2005-02-02  Tor Lillqvist  <tml@novell.com>
 
453
 
 
454
        Make test-dynany work on Windows:
 
455
 
 
456
        * src/orb/dynamic/dynany.c (MAKE_DYNANY_INSERT): For identical
 
457
        reasons as the below change to the IDL compiler, take a local copy
 
458
        of function parameter before passing its address to
 
459
        dynany_insert().
 
460
 
 
461
        (dynany_get_value): Take the alignment of preceding fields and the
 
462
        field itself into account when calculating the address of a field
 
463
        in a CORBA_tk_struct or except.
 
464
 
 
465
2005-02-01  Tor Lillqvist  <tml@novell.com>
 
466
 
 
467
        * src/idl-compiler/orbit-idl-c-utils.c (orbit_cbe_flatten_ref):
 
468
        Take output file as parameter, output directly there instead of
 
469
        returning a string.
 
470
 
 
471
        Don't take the address of function parameters and pass it on to
 
472
        the marshalling layers. Function parameters are not necessarily
 
473
        aligned according to the alinments in orbit-config.h. Case in
 
474
        point: long long on the x86. ORBIT_ALIGNOF_CORBA_LONG_LONG is 8,
 
475
        but as function parameters on the stack, long longs only have
 
476
        4-byte alignment. The lower levels will realign the address,
 
477
        meaning long long IN parameters might have a completely wrong
 
478
        value marshalled. The same presumably holds for doubles and long
 
479
        doubles. Why this problem hasn't occured on Linux on x86, no
 
480
        idea. I noticed it on Windows.
 
481
 
 
482
        Instead, copy IN parameters to a field in a local struct variable,
 
483
        and pass on the address of that field.
 
484
 
 
485
        In theory, the above could hold on exotic architectures also for
 
486
        OUT parameters, where the address of a parameter is also passed
 
487
        on. But in that case the parameter is a pointer, and at least on
 
488
        the x86, a pointer's alignment as parameter matches expectation in
 
489
        orbit-config.h (4).
 
490
 
 
491
        (orbit_cbe_maybe_copy_of_data_in): New helper function that
 
492
        outputs the definition and initialization of the local copy of IN
 
493
        parameters mentioned above.
 
494
 
 
495
        (orbit_cbe_flatten_args): Modify accordingly.
 
496
 
107
497
2005-01-28  Tor Lillqvist  <tml@novell.com>
108
498
 
109
499
        * src/orb/orbit-init.c