|
|
tidl(1)
Name
tidl - Interface Definition Language compiler
Synopsis
tidl [option] . . . filename [option]. . .
Description
tidl parses the input IDL and related ACF source file, and optionally generates a header file, and client and server stubs and auxiliary files. The generated source code can be compiled using compilers for Classic C, ANSI C, or C++.
The command-line arguments include the input IDL source file and options to control the actions of the IDL compiler. The following list describes the options.
For the IDL source file and any imported IDL files, the compiler searches for a related ACF with a .acf suffix added to the basename of the IDL source file. The directories that are searched are the same directories specified for the C preprocessor (see -I and -no_def_idir above), plus ACF files are searched for in the directory specified in the IDL source filename.
Notices
The IDL filename tbase.idl is reserved for use by the IDL compiler.
Examples
Here is an example IDL source file, math1.idl.
[uuid(2048A080-0B0F-14F8-26E0-930269220000)]
interface math1
{
import "math2.idl";
long add_op([in] long first1, [in] long second);
long sub_op([in] long first1, [in] long second);
}
Here is a sample ACF source file, math1.acf.
[auto_handle]
interface math1
{
include "stdio";
[code] add_op([fault_status,comm_status] result);
}
The following command line compiles math1.idl, generating client-side only files out/math1_cs.c and out/math1_cs.o (no auxiliary files are needed), along with out/math1.h. The IDL compiler looks for math2.idl (which might have the division and multiplication operations) in the current directory, in the app subdirectory, and in $TUXDIR/include.
tidl math1.idl -Iapp -client all -server none -keep all
-cstub math1_cs -out app
See Also
|
Copyright © 2000 BEA Systems, Inc. All rights reserved.
|