• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

include/H03-May-2022-2,8332,382

AUTHORSH A D31-Aug-2009266 96

BUGSH A D18-Apr-2009243 64

COPYINGH A D18-Apr-200924.7 KiB482399

ChangeLogH A D30-Mar-2010140.4 KiB6,3854,330

HACKINGH A D18-Apr-2009499 1811

INSTALLH A D23-Apr-20099.3 KiB238179

MAINTAINERSH A D18-Apr-2009271 1510

Makefile.amH A D30-Mar-20101.7 KiB6946

Makefile.inH A D03-May-202247.3 KiB1,2941,168

Makefile.mscH A D30-Mar-20102.1 KiB7444

Makefile.msc.inH A D30-Mar-20102.1 KiB7457

NEWSH A D30-Mar-20107.1 KiB241155

READMEH A D18-Apr-20093.7 KiB7664

README.win32H A D18-Apr-20091.9 KiB4536

acinclude.m4H A D30-Mar-2010895 4037

aclocal.m4H A D30-Mar-2010317 KiB9,1438,191

config.guessH A D30-Mar-201045.2 KiB1,5621,344

config.subH A D30-Mar-201033.2 KiB1,6871,542

configureH A D30-Mar-2010470.3 KiB16,59513,284

configure.inH A D30-Mar-20104.5 KiB181155

depcompH A D30-Mar-201018.2 KiB631407

install-shH A D30-Mar-201013.3 KiB521344

lexer.lH A D18-Apr-200910.8 KiB465373

libIDL-2.0-uninstalled.pc.inH A D18-Apr-2009275 1310

libIDL-2.0.pc.inH A D18-Apr-2009236 1310

libIDL-config-2.inH A D18-Apr-20091.9 KiB10892

libIDL-zip.inH A D18-Apr-2009389 2516

libIDL.defH A D18-Apr-20092.1 KiB103102

libIDL.m4.inH A D18-Apr-20098.2 KiB191182

libIDL.spec.inH A D18-Apr-20092 KiB8469

libIDL2.texiH A D18-Apr-200910.2 KiB360277

ltmain.shH A D30-Mar-2010237.6 KiB8,4076,475

missingH A D30-Mar-201011.2 KiB377281

ns.cH A D18-Apr-200914.2 KiB562391

parser.yH A D18-Apr-200949.6 KiB2,1671,805

rename.hH A D18-Apr-20091.4 KiB5148

texinfo.texH A D30-Mar-2010288.2 KiB9,2928,559

tstidl.cH A D18-Apr-20096.5 KiB267197

util.cH A D18-Apr-200986.9 KiB3,6842,935

util.hH A D18-Apr-20094 KiB11579

README

1			libIDL README
2			~~~~~~~~~~~~~
3
4Introduction
5~~~~~~~~~~~~
6
7libIDL is a library licensed under the GNU LGPL for creating trees of
8CORBA Interface Definition Language (IDL) files, which is a
9specification for defining portable interfaces.  libIDL was initially
10written for ORBit (the ORB from the GNOME project, and the primary
11means of libIDL distribution).  However, the functionality was
12designed to be as reusable and portable as possible.
13
14It is written in C, and the aim is to retain the ability to compile it
15on a system with a standard C compiler.  Preprocessed parser files are
16included so you are not forced to rebuild the parser, however an
17effort is made to keep the parser and lexer compatible with standard
18Unix yacc.  Currently, flex is required to generate the lexical
19scanner.
20
21With libIDL, you can parse an IDL file which will be automatically run
22through the C preprocessor (on systems with one available), and have
23detailed error and warning messages displayed.  On a compilation
24without errors, the tree is returned to the custom application.
25libIDL performs compilation phases from lexical analysis to nearly
26full semantic analysis with some optimizations, and will attempt to
27generate meaningful errors and warnings for invalid or deprecated IDL.
28
29libIDL exports functionality used to generate detailed conforming
30error and warning messages in gcc-like format, and also comes with a
31default backend to generate IDL into a file or string (useful for
32customized messages or comments in the output).  The IDL backend is
33complete enough that most generated IDL can be reparsed by libIDL
34without errors. libIDL returns separate syntax and namespace trees,
35and includes functionality to hide syntactical information from the
36primary tree, while keeping it accessible through the namespace for
37type information and name lookup.
38
39Optional extensions to standard IDL can be enabled using parse flags.
40These include node properties, embedded code fragments, and XPIDL.
41Nodes can also have declarations tags which assign particular
42attributions to certain IDL constructs to further facilitate custom
43applications.
44
45If you are upgrading to a new version, please see the NEWS file for
46any changes which may affect code.
47
48
49Emacs Syntax Highlighting for IDL Code
50~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
51
52If you are using Emacs 20.x and do not have decent syntax highlighting
53in your IDL mode, you can use the following Emacs lisp to add
54IDL-specific highlighting using font-lock mode:
55
56(font-lock-add-keywords
57 'idl-mode
58 `(("^#[ 	]*error[ 	]+\\(.+\\)" 1 'font-lock-warning-face prepend)
59   ("^#[ 	]*\\(include\\)[ 	]+\\(<[^>\"\n]*>?\\)" 2 'font-lock-string-face)
60   ("^#[ 	]*define[ 	]+\\(\\sw+\\)(" 1 'font-lock-function-name-face)
61   ("^#[ 	]*\\(elif\\|if\\)\\>"
62    ("\\<\\(defined\\)\\>[ 	]*(?\\(\\sw+\\)?" nil nil
63     (1 'font-lock-reference-face)
64     (2 'font-lock-variable-name-face nil t)))
65   ("\\(__declspec\\)[ 	]*(\\([^)]+\\))"
66    (1 'font-lock-reference-face)
67    (2 'font-lock-variable-name-face))
68   ("^#[ 	]*\\(\\sw+\\)\\>[ 	]*\\(\\sw+\\)?"
69    (1 'font-lock-reference-face)
70    (2 'font-lock-variable-name-face nil t))
71   ("\\<\\(raises\\)\\>" 1 'font-lock-keyword-face)
72   ("[ 	]*\\([A-Za-z][A-Za-z0-9_]*\\)[ 	]*(" 1 'font-lock-function-name-face)
73   ("\\<\\(any\\|boolean\\|char\\|const\\|double\\|enum\\|fixed\\|float\\|interface\\|long\\|module\\|native\\|octet\\|Object\\|sequence\\|short\\|string\\|struct\\|unsigned\\|union\\|void\\|wchar\\|wstring\\)\\>" 1 'font-lock-type-face)
74   ("\\<\\(attribute\\|case\\|context\\|default\\|exception\\|FALSE\\|in\\|inout\\|oneway\\|out\\|readonly\\|switch\\|TRUE\\|typedef\\)\\>" 1 'font-lock-keyword-face)) 'set)
75(add-hook 'idl-mode-hook '(lambda () (font-lock-mode 1)))
76

README.win32

1Using libIDL for Win32
2~~~~~~~~~~~~~~~~~~~~~~
3
4Win32 libIDL support is mostly here, but currently requires the use of
5IDL_parse_filename_with_input, since there is no C preprocessor
6generally available under Windows. To compile this, you will also need
7to obtain GLib and pkg-config for Windows, which you should be able to
8obtain from http://www.gtk.org/download-windows.html
9
10Building
11~~~~~~~~
12
13You can build either with the GNU toolchain (mingw) or one of
14Microsoft's compiler (any recent version should work). With mingw you
15use the normal configure script and make. pkg-config is used in the
16normal way to find out the compiler command-line options.
17
18With Microsoft's compiler you run nmake -f Makefile.msc. Also the
19Makefile.msc uses pkg-config to find out the compiler flags. The
20commands to use pkg-config output in the Makefile.msc are somewhat
21convoluted, but nothing simpler seems to work, given the lack of
22backticks in cmd.exe or something similar in nmake. If you use an
23older Microsoft compiler you will have to edit out the
24manifest-related commands from Makefile.msc.
25
26When built with gcc libIDL will also use gcc as a preprocessor (it
27will run "gcc -E -P"), and when built with Microsoft's compiler it
28will correspondingly use the Microsoft compiler as preprocessort (it
29will run "cl -EP"). Thus users of libIDL, especially users of the
30ORBit2 IDL compiler orbit-idl-2, need to make sure that they have the
31necessary folders in PATH so that gcc or cl are found when orbit-idl-2
32is run.
33
34Using the Library
35~~~~~~~~~~~~~~~~~
36
37After building, all you need are the files IDL.h and the DLL and
38related import library.  Place the header in a place where it can be
39found with libIDL/IDL.h, the DLL somewhere in PATH, and the import
40library somewhere where your compiler will find it.
41
42--
43Andrew T. Veliath <andrewtv@usa.net>
44Tor Lillqvist <tml@iki.fi>
45