Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 29-Dec-2010 10:43:48

kenshin1987
Member
Registered: 10-Nov-2010
Posts: 100

why the fread function need callback?

hey,guys
why the fread function need callback?

    w->SCgetsocket=SCgetsocket;
    w->Mcutting=Mcutting;
    w->MMechostr=MMechostr;

    w->fread=fread;

    w->Firstpack=Firstpack;
    w->OBJcreate=OBJcreate;     
    w->OBJaddreflex=OBJaddreflex;  
    w->OBJbeginreflex=OBJbeginreflex;
    w->OBJdel=OBJdel;  

Offline

#2 29-Dec-2010 12:15:25

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: why the fread function need callback?

What is this file ?

Offline

#3 29-Dec-2010 12:43:19

kenshin1987
Member
Registered: 10-Nov-2010
Posts: 100

Re: why the fread function need callback?

the scolCbMachine.h  file

Offline

#4 29-Dec-2010 22:15:33

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: why the fread function need callback?

Humm

In C89 and Posix standards, fread is prototyped this :

size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);

But, in the Scol machine structure (and only into this structure), fread is (re)"prototyped" :

int (*fread)(char* buf,int i,int j,FILE *f);

Offline

#5 30-Dec-2010 00:55:22

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 4,821
Website

Re: why the fread function need callback?

Hi all

We already tried to remove that but we have to remake all plugins

Offline

Board footer

Powered by FluxBB