[CM] Bug in cload init function generation

Brad Christensen bchristensen-lists at outlook.com
Tue Jul 20 00:20:21 PDT 2021


Greetings,

I have begun to explore `c-define` and friends and I think I've found a bug . I declared a `c-define` with a single 'C entity' that is a list of constants:
```
(c-define
 '((uint32_t (SOME_CONSTANT
                   ANOTHER_CONSTANT
                   ETC_CONSTANT)))
 "" "required/header.h" "" "" "libName_s7")
```
In the generated C file, it appears unneeded syntax is written where it looks like optimization signatures would normally be declared (lines 5-6):
```
01| . . .
02| void libName_s7_init(s7_scheme *sc)
03| {
04|   s7_pointer cur_env;
05|   s7_pointer
06|   }
07| 
08|   cur_env = s7_curlet(sc);
09| . . .
```
Cheers, Brad


More information about the Cmdist mailing list