Lines Matching refs:buff

399 #define luaZ_initbuffer(L,buff)((buff)->buffer=NULL,(buff)->buffsize=0)  argument
400 #define luaZ_buffer(buff)((buff)->buffer) argument
401 #define luaZ_sizebuffer(buff)((buff)->buffsize) argument
402 #define luaZ_bufflen(buff)((buff)->n) argument
403 #define luaZ_resetbuffer(buff)((buff)->n=0) argument
404 #define luaZ_resizebuffer(L,buff,size)(luaM_reallocvector(L,(buff)->buffer,(buff)->buffsize,size,ch… argument
405 #define luaZ_freebuffer(L,buff)luaZ_resizebuffer(L,buff,0) argument
447 Mbuffer buff; member
680 char buff[2]; in luaO_pushvfstring() local
681 buff[0]=cast(char,va_arg(argp,int)); in luaO_pushvfstring()
682 buff[1]='\0'; in luaO_pushvfstring()
683 pushstr(L,buff); in luaO_pushvfstring()
697 char buff[4*sizeof(void*)+8]; in luaO_pushvfstring()
698 sprintf(buff,"%p",va_arg(argp,void*)); in luaO_pushvfstring()
699 pushstr(L,buff); in luaO_pushvfstring()
707 char buff[3]; in luaO_pushvfstring() variable
708 buff[0]='%'; in luaO_pushvfstring()
709 buff[1]=*(e+1); in luaO_pushvfstring()
710 buff[2]='\0'; in luaO_pushvfstring()
711 pushstr(L,buff); in luaO_pushvfstring()
982 static Proto*luaY_parser(lua_State*L,ZIO*z,Mbuffer*buff,
1232 Mbuffer buff;
1242 &p->buff,p->name);
1254 luaZ_initbuffer(L,&p.buff);
1256 luaZ_freebuffer(L,&p.buff);
2037 if(luaZ_sizebuffer(&g->buff)>32*2){
2038 size_t newsize=luaZ_sizebuffer(&g->buff)/2;
2039 luaZ_resizebuffer(L,&g->buff,newsize);
2251 Mbuffer*buff;
2318 luaZ_freebuffer(L,&g->buff);
2351 luaZ_initbuffer(L,&g->buff);
2572 char buff[60];
2574 luaO_chunkid(buff,getstr(getluaproto(ci)->source),60);
2575 luaO_pushfstring(L,"%s:%d: %s",buff,line,msg);
2599 const char*buff;
2600 buff=z->reader(L,z->data,&size);
2601 if(buff==NULL||size==0)return(-1);
2603 z->p=buff;
2613 static char*luaZ_openspace(lua_State*L,Mbuffer*buff,size_t n){
2614 if(n>buff->buffsize){
2616 luaZ_resizebuffer(L,buff,n);
2618 return buff->buffer;
2674 Mbuffer*b=ls->buff;
2706 return luaZ_buffer(ls->buff);
2712 char buff[80];
2713 luaO_chunkid(buff,getstr(ls->source),80);
2714 msg=luaO_pushfstring(ls->L,"%s:%d: %s",buff,ls->linenumber,msg);
2749 luaZ_resizebuffer(ls->L,ls->buff,32);
2759 size_t n=luaZ_bufflen(ls->buff);
2760 char*p=luaZ_buffer(ls->buff);
2774 if(!luaO_str2d(luaZ_buffer(ls->buff),&seminfo->r))
2810 if(!seminfo)luaZ_resetbuffer(ls->buff);
2820 seminfo->ts=luaX_newstring(ls,luaZ_buffer(ls->buff)+(2+sep),
2821 luaZ_bufflen(ls->buff)-2*(2+sep));
2874 seminfo->ts=luaX_newstring(ls,luaZ_buffer(ls->buff)+1,
2875 luaZ_bufflen(ls->buff)-2);
2878 luaZ_resetbuffer(ls->buff);
2892 luaZ_resetbuffer(ls->buff);
2895 luaZ_resetbuffer(ls->buff);
2967 ts=luaX_newstring(ls,luaZ_buffer(ls->buff),
2968 luaZ_bufflen(ls->buff));
3922 static Proto*luaY_parser(lua_State*L,ZIO*z,Mbuffer*buff,const char*name){
3925 lexstate.buff=buff;
4902 buffer=luaZ_openspace(L,&G(L)->buff,tl);
6122 char buff[BUFSIZ];
6133 *size=fread(lf->buff,1,sizeof(lf->buff),lf->f);
6134 return(*size>0)?lf->buff:NULL;
6193 static int luaL_loadbuffer(lua_State*L,const char*buff,size_t size,
6196 ls.s=buff;
7601 char buff[512];
7607 sprintf(buff,form,(int)luaL_checknumber(L,arg));
7612 sprintf(buff,form,(long)luaL_checknumber(L,arg));
7617 sprintf(buff,form,(unsigned long)luaL_checknumber(L,arg));
7622 sprintf(buff,form,(double)luaL_checknumber(L,arg));
7638 sprintf(buff,form,s);
7647 luaL_addlstring(&b,buff,strlen(buff));