cmDspClass.c : Restored _cmDspParseArgV() to return void to allow

compilation on OSX 10.6.8. This need to be fixed correctly so that it
compiles on 10.5.
This commit is contained in:
kevin 2013-10-17 16:55:26 -07:00
parent f1123a8475
commit 60090ac441

View File

@ -250,7 +250,7 @@ void* cmDspInstAllocate(
return p; return p;
} }
va_list _cmDspParseArgV( cmDspVarArg_t* a, va_list vl ) void _cmDspParseArgV( cmDspVarArg_t* a, va_list vl )
{ {
a->label = va_arg(vl,const char*); a->label = va_arg(vl,const char*);
a->constId = va_arg(vl,unsigned); a->constId = va_arg(vl,unsigned);
@ -258,7 +258,7 @@ va_list _cmDspParseArgV( cmDspVarArg_t* a, va_list vl )
a->cn = va_arg(vl,unsigned); a->cn = va_arg(vl,unsigned);
a->flags = va_arg(vl,unsigned); a->flags = va_arg(vl,unsigned);
a->doc = va_arg(vl,const char*); a->doc = va_arg(vl,const char*);
return vl;
} }
void* cmDspInstAllocateV(cmDspCtx_t* ctx, cmDspClass_t* classPtr, unsigned instByteCnt, unsigned instSymId, unsigned instId, unsigned storeSymId, unsigned va_cnt, va_list vl0, ... ) void* cmDspInstAllocateV(cmDspCtx_t* ctx, cmDspClass_t* classPtr, unsigned instByteCnt, unsigned instSymId, unsigned instId, unsigned storeSymId, unsigned va_cnt, va_list vl0, ... )
@ -279,7 +279,7 @@ void* cmDspInstAllocateV(cmDspCtx_t* ctx, cmDspClass_t* classPtr, unsigned instB
argCnt += repeatCnt; argCnt += repeatCnt;
vl1 = _cmDspParseArgV(&a,vl1); _cmDspParseArgV(&a,vl1);
} }
va_end(vl1); va_end(vl1);
@ -290,7 +290,7 @@ void* cmDspInstAllocateV(cmDspCtx_t* ctx, cmDspClass_t* classPtr, unsigned instB
{ {
cmDspVarArg_t a; cmDspVarArg_t a;
vl2 = _cmDspParseArgV(&a,vl2); _cmDspParseArgV(&a,vl2);
cmDspArgSetupN(ctx,aa,argCnt,j,repeatCnt,a.label,a.constId,a.rn, a.cn, a.flags, a.doc ); cmDspArgSetupN(ctx,aa,argCnt,j,repeatCnt,a.label,a.constId,a.rn, a.cn, a.flags, a.doc );
j += repeatCnt; j += repeatCnt;