Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
548 | serge | 1 | /**************************************************************************** |
2 | * |
||
3 | * Open Watcom Project |
||
4 | * |
||
5 | * Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved. |
||
6 | * |
||
7 | * ======================================================================== |
||
8 | * |
||
9 | * This file contains Original Code and/or Modifications of Original |
||
10 | * Code as defined in and that are subject to the Sybase Open Watcom |
||
11 | * Public License version 1.0 (the 'License'). You may not use this file |
||
12 | * except in compliance with the License. BY USING THIS FILE YOU AGREE TO |
||
13 | * ALL TERMS AND CONDITIONS OF THE LICENSE. A copy of the License is |
||
14 | * provided with the Original Code and Modifications, and is also |
||
15 | * available at www.sybase.com/developer/opensource. |
||
16 | * |
||
17 | * The Original Code and all software distributed under the License are |
||
18 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER |
||
19 | * EXPRESS OR IMPLIED, AND SYBASE AND ALL CONTRIBUTORS HEREBY DISCLAIM |
||
20 | * ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF |
||
21 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR |
||
22 | * NON-INFRINGEMENT. Please see the License for the specific language |
||
23 | * governing rights and limitations under the License. |
||
24 | * |
||
25 | * ======================================================================== |
||
26 | * |
||
27 | * Description: set commit mode initialization function |
||
28 | * |
||
29 | ****************************************************************************/ |
||
30 | |||
31 | |||
32 | #include "variety.h" |
||
33 | #include "rtdata.h" |
||
34 | #include "rtinit.h" |
||
35 | #include "commode.h" |
||
36 | |||
37 | /* |
||
38 | * __set_commode function is actually a _WCRTLINK function. It's prototyped |
||
39 | * incorrectly so that this module will work correctly with both dynamic |
||
40 | * and static versions of the C library. |
||
41 | * |
||
42 | * The pragma is there so that this module will work with both stack and |
||
43 | * register calling conventions, eliminating the need to have a separate |
||
44 | * object file for each. |
||
45 | * |
||
46 | * Similarly, __set_commode is declared _WCI86FAR so that the same object |
||
47 | * file will work in any 16-bit memory model. |
||
48 | */ |
||
49 | |||
50 | static void do_it( void ) |
||
51 | { |
||
52 | __set_commode(); |
||
53 | } |
||
54 | |||
55 | |||
56 | AXI( do_it, INIT_PRIORITY_LIBRARY ) |