[uip-users] Script example in the webserver app (uip 1.0)

3 views
Skip to first unread message

Simone

unread,
Mar 7, 2007, 4:12:11 PM3/7/07
to uip-...@sics.se
Hello,
in the http.c file there's this line of code but it seems to be wrong (it is, and the compiler generates an error!). Does anyone know which is the correct code? Simone
 
 PT_WAIT_THREAD(&s->scriptpt,
         httpd_cgi(s->scriptptr)(s, s->scriptptr));
the error seems to be here      ^^^^^^^^^^^^^^^^^

Simone

unread,
Mar 8, 2007, 1:03:14 PM3/8/07
to uip-...@sics.se
Guys,
i can be more precise on the error i get: the compiler says that for inderect calls the parameters (s and s->scriptptr) don't fit in registers. So i removed the second one and point to the scriptptr field with a local pointer inside the function, where the struct httpd_state is already pointed by the first parameter passed (s). Indirect calls with single parameter do not generates the compiler error..

Fabio Giovagnini

unread,
Mar 8, 2007, 1:50:58 PM3/8/07
to uip-...@sics.se
Check into the archive; I'm not sure but I heard before something like this.

Regards

--
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini

Reply all
Reply to author
Forward
0 new messages