Contents
8
Manual – IPOSplus®
13.20 Overview of the icons.............................................................................. 174
14 Compiler – Programming ............................................................................... 175
14.1 Preprocessor........................................................................................... 176
14.2 Preprocessor statements ........................................................................ 176
14.3 #include................................................................................................... 178
14.4 Include folders......................................................................................... 179
14.5 #define .................................................................................................... 179
14.6 #undef ..................................................................................................... 180
14.7 #declare .................................................................................................. 181
14.8 SEW standard structures ........................................................................ 182
14.9 User-defined structures........................................................................... 184
14.10 long ......................................................................................................... 186
14.11 initial long ................................................................................................ 186
14.12 #pragma.................................................................................................. 187
14.13 Explanation of const.h and io.h / constb.h and iob.h .............................. 188
14.14 Identifiers ................................................................................................ 190
14.15 Constants................................................................................................ 190
14.16 IPOS
plus®
variables in the compiler ........................................................ 191
14.16.1 Example................................................................................... 191
14.17 Declaration of global variables................................................................ 191
14.18 Indirect addressing – pointer................................................................... 192
14.19 numof().................................................................................................... 193
15 Compiler – Operators ..................................................................................... 194
15.1 Order of priority of operators................................................................... 194
15.2 Unary operators ...................................................................................... 195
15.3 Binary operators...................................................................................... 196
15.3.1 Example................................................................................... 196
15.4 Ternary operators ................................................................................... 196
15.4.1 Example................................................................................... 196
16 Compiler – Constructions .............................................................................. 197
16.1 if...else..................................................................................................... 197
16.1.1 Syntax...................................................................................... 197
16.2 for............................................................................................................ 198
16.2.1 Syntax...................................................................................... 198
16.3 while........................................................................................................ 199
16.3.1 Syntax...................................................................................... 199
16.4 do...while................................................................................................. 200
16.4.1 Syntax...................................................................................... 200
16.5 switch...case...default.............................................................................. 202
16.5.1 Syntax...................................................................................... 202
16.6 return....................................................................................................... 203