scilab: support typed constants (U UL L) in scilabconst(1)
This commit is contained in:
parent
6791e3ac7a
commit
20fc167624
4 changed files with 70 additions and 26 deletions
|
|
@ -10,6 +10,11 @@
|
|||
#define SCONST0 "Hello World"
|
||||
#define SCONST0_2 "\"Hello World\""
|
||||
|
||||
/* Constants with type */
|
||||
#define UNSIGNED0 0x5FFFU
|
||||
#define LONG0 0x3FFF0000L
|
||||
#define ULONG0 0x5FF0000UL
|
||||
|
||||
/* Expressions should work too */
|
||||
#define EXPR0 ICONST0 + 3*FCONST0
|
||||
|
||||
|
|
@ -31,6 +36,11 @@
|
|||
#define SCONST1 "Hello World"
|
||||
#define SCONST1_2 "\"Hello World\""
|
||||
|
||||
/* Constants with type */
|
||||
#define UNSIGNED1 0x5FFFU
|
||||
#define LONG1 0x3FFF0000L
|
||||
#define ULONG1 0x5FF0000UL
|
||||
|
||||
/* Expressions should work too */
|
||||
#define EXPR1 ICONST1 + 3*FCONST1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue