First page Back Continue Last page Overview Graphics
Critcl HOW-TO
if {[catch {package require critcl}] ||
![critcl::compiling]} {
puts stderr "Não pode ser compilado sem critcl"
exit 1
}
package provide aimglib 1.0
critcl::cheaders -I.
critcl::ccode {
#include <stdio.h>
...
static unsigned char *pixels=NULL,*pix,*targets;
static int *pesos;
void normalize() {
double a,b;
int ww,hh;
ww=cw*4/3;
hh=ch*4/3;
for (q=0;q<=m;q++) {
... }
...
}
} ;# final de critcl::ccode
Notes: