cmDspClass.c:Added OS_X specific compilation for _cmDspParseArgV().

This commit is contained in:
kevin 2013-05-22 15:12:52 -07:00
parent 6e8dc7208a
commit f118b68bb7

View File

@ -250,7 +250,11 @@ void* cmDspInstAllocate(
return p; return p;
} }
#ifdef OS_X
va_list _cmDspParseArgV( cmDspVarArg_t* a, va_list vl ) va_list _cmDspParseArgV( cmDspVarArg_t* a, va_list vl )
#else
void _cmDspParseArgV( cmDspVarArg_t* a, va_list vl )
#endif
{ {
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 +262,9 @@ 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*);
#ifdef OS_X
return vl; return vl;
#endif
} }
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 +285,10 @@ void* cmDspInstAllocateV(cmDspCtx_t* ctx, cmDspClass_t* classPtr, unsigned instB
argCnt += repeatCnt; argCnt += repeatCnt;
vl1 = _cmDspParseArgV(&a,vl1); #ifdef OS_X
vl1 =
#endif
_cmDspParseArgV(&a,vl1);
} }
cmDspVarArg_t aa[ argCnt+1 ]; cmDspVarArg_t aa[ argCnt+1 ];
@ -288,7 +297,10 @@ void* cmDspInstAllocateV(cmDspCtx_t* ctx, cmDspClass_t* classPtr, unsigned instB
{ {
cmDspVarArg_t a; cmDspVarArg_t a;
vl2 = _cmDspParseArgV(&a,vl2); #ifdef OS_X
vl2 =
#endif
_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;