
Chapter 1: Overview
ODL syntax
ODL syntax uses keywords that you cannot use in variable or
function names. ODL also provides a fixed set of datatypes with decimal, string,
and blob used as predefined ODL classes.
Table 1-1 lists
ODL keywords. Table 1-2 list
ODL datatypes.
Table 1-1: ODL keywords
_cdecl
|
define
|
goto
|
objects
|
switch
|
arguments
|
deinit
|
idempotent
|
operator
|
symoff
|
auto
|
dll
|
if
|
out
|
text
|
blob
|
do
|
in
|
private
|
token
|
break
|
double
|
include
|
procedure
|
typedef
|
bysymbol
|
else
|
init
|
protected
|
union
|
callbacks
|
end
|
inline
|
public
|
unsigned
|
case
|
enum
|
int
|
register
|
value
|
class
|
extern
|
interface
|
return
|
version
|
const
|
flavor
|
lcldefine
|
sizeof
|
virtual
|
continue
|
float
|
module
|
static
|
void
|
controls
|
for
|
new
|
string
|
volatile
|
default
|
friend
|
object
|
struct
|
while
|
Table 1-2: ODL datatypes
Type
|
Format
|
Size in bytes
|
Value range
|
Binary Large Object
|
blob
|
< = 4GB
|
Variable
|
Character
|
char
|
1
|
0x00 - 0xff or + -127
|
Decimal
|
decimal
|
Up to 64K
|
A data variable of type decimal may contain
up to 65535 characters with the decimal point located anywhere within
those characters.
|
Floating Point
|
float
|
8
|
Platform dependent
|
Integer
|
int
|
4 bytes
|
+-32767: 0 - 65535
|
Long Integer
|
long
|
4 bytes
|
+-32767: 0 -65535
|
Pointer
|
type
|
8 bytes
|
|
Short Integer
|
short
|
Varies
|
+-32767: 0 - 65535
|
String
|
string
|
Up to 64K
|
Variable
|
Structures
|
struct
|
|
|
Symoff
|
symoff
|
Varies
|
Integers 1 - 65535
|
C Pointer
|
_cdecl char*
|
4 bytes,
|
|
Copyright © 2005. Sybase Inc. All rights reserved.
|
|
View this book as PDF 