[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a foreign struct: a shameless request

From: Catonano
Subject: a foreign struct: a shameless request
Date: Fri, 16 Jun 2017 18:04:55 +0200

I'd love to see a template of usage of a complex structure from scheme
That is, I'm asking for someone to write that template for me :-/

This is the foreign struct I have to deal with

Particulary, I don't know how to treat the "union" thing

A different union field gets populated on the basis of the type of the
content of the spreadsheet cell

If the cell contains an integer number, then cell.int_value field gets

If the cell contains a double float number, then the cell.double_value
field gets populated

And so on

This is an excerpt from the example usage:

switch (cell.type
   printf (", %d", cell.value

How do I use "make-c-struct" and "parse-c-struct" with a structure like
this ?

Thanks in advance

reply via email to

[Prev in Thread] Current Thread [Next in Thread]