[clean-list] htoclean examples

=?iso-8859-1?q?Hugo=20Rufino?= hugorufino@yahoo.com
Wed, 1 Oct 2003 11:01:48 -0300 (ART)


--0-1890894225-1065016908=:16945
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi, folks,
 
i'm studing how to call C functions from Clean. I already know htoclean and i had some problems to understand how the example "example_array1" works. Being more specific why the index [-2] and [-1] in the following code?
 
#define CleanIntArraySize(clean_int_array) (((unsigned int *)(clean_int_array))[-2])

#define CleanRealArraySize(clean_real_array) (((unsigned int *)(clean_real_array))[-2])

#define CleanCharArraySize(clean_char_array) (((unsigned int *)(clean_char_array))[-1])

There is a new version of htoclean? 
Anybody is studing how to call C function from Clean too?
 
Thanks in advance,
 
Hugo Leonardo
 
 
 



---------------------------------
Yahoo! Mail - o melhor webmail do Brasil. Saiba mais!
--0-1890894225-1065016908=:16945
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<DIV>Hi, folks,</DIV>
<DIV>&nbsp;</DIV>
<DIV>i'm studing how to call C functions from Clean. I already know htoclean and i had some problems to understand how the example "example_array1" works. Being more specific why the index [-2] and [-1] in the following code?</DIV>
<DIV>&nbsp;</DIV>
<DIV>#define CleanIntArraySize(clean_int_array) (((unsigned int *)(clean_int_array))[-2])<BR></DIV>
<DIV>#define CleanRealArraySize(clean_real_array) (((unsigned int *)(clean_real_array))[-2])<BR></DIV>
<DIV>#define CleanCharArraySize(clean_char_array) (((unsigned int *)(clean_char_array))[-1])<BR></DIV>
<DIV>There is a new version of htoclean? </DIV>
<DIV>Anybody is studing how to call C function from Clean too?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks in advance,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Hugo Leonardo</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV><p><br><hr size=1><b><a href="http://br.rd.yahoo.com/s/c/m/?http://mail.yahoo.com.br">Yahoo! Mail</a></b> - o melhor webmail do Brasil. <a href="http://br.rd.yahoo.com/s/c/m/?http://br.yahoo.com/info/mail.html">Saiba mais!</a>
--0-1890894225-1065016908=:16945--