edvb / tisp

Tiny lisp, simple and embeddable scheme-like language
https://edryd.org/projects/tisp/
zlib License
26 stars 2 forks source link

some adaptations for embeddin into c++ code #3

Open spacesinmotion opened 4 years ago

spacesinmotion commented 4 years ago

Hey,

After trying to embedding tisp into c++ code I got warnings of kind:

tisp.h:75:21: error: conflicting declaration ‘typedef struct Tsp* Tsp’
   75 | typedef struct Tsp *Tsp;
      |                     ^~~
tisp.h:75:16: note: previous declaration as ‘struct Tsp’
   75 | typedef struct Tsp *Tsp;

reason is the reuse of the structure name as type name.

After that changes embedding was possible...