Impress Remote 1.0.5, tag sdremote-1.0.5
[LibreOffice.git] / idlc / test / const.idl
blob9d2b73f95612733f8a6e6f803e5fd1b6483a69bf
1 /*
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 module idlc
21 module test
23 const long l = 1;
24 const long add = 1 + 2;
25 const long sub = 3 - 2;
26 const hyper h = 123456789;
27 const float f7 = 3.4123;
28 const float f2 = 3.4123 + 10e-12;
29 const boolean bt = True;
30 const boolean bf = False;
31 const boolean and = bt & bf;
33 /// SHORT_MAX + 1;
34 const short shortMax = -0x8000;
35 /// LONG_MAX + 1;
36 const unsigned long longMax = 0x80000000;
39 constants USER
41 /// = 1
42 const long FLAG1 = 0x00000001;
43 /// = 2
44 const long FLAG2 = 0x00000002;
45 /// = 4
46 const long FLAG3 = 0x00000004;
47 /// = 8
48 const long FLAG4 = 0x00000008;
49 /// = 16
50 const long FLAG5 = 0x00000010;
51 /// = 0
52 const long FLAG6 = FLAG1 & FLAG2;
53 /// = 3
54 const long FLAG7 = FLAG1 | FLAG2;
55 /// = 2
56 const long FLAG8 = (FLAG1 | FLAG2) & FLAG2;
57 /// = 4
58 const long FLAG9 = FLAG1 << 2;
59 /// = 32
60 const long FLAG10 = (FLAG5 >> 1) << 2;
61 /// = 1
62 const long FLAG11 = 33 % 4;
63 /// = 4
64 const long FLAG12 = FLAG10 / 8;