cmDspClass.h/c: Added cmSampleDsvFl and cmRealDsvFl to cmDspValueSet().

This commit is contained in:
kevin 2013-03-01 17:25:15 -08:00
parent 66cf71e419
commit 070962c721
2 changed files with 11 additions and 1 deletions

View File

@ -411,7 +411,7 @@ void cmDspArgSetup(
{
lp = label;
label[labelCharCnt] = 0;
snprintf(label,labelCharCnt,"%s-%i",labelPrefix,labelId);
snprintf(label,labelCharCnt,"%s-%i",labelPrefix,labelId);
}
// use the symbol table to hold the label string
@ -898,6 +898,14 @@ cmDspRC_t cmDspValueSet( cmDspCtx_t* ctx, cmDspInst_t* inst, unsigned varId, c
cmDsvSetDouble(dvp, cmDsvGetDouble(svp));
break;
case kSampleDsvFl:
cmDsvSetSample(dvp, cmDsvGetSample(svp));
break;
case kRealDsvFl:
cmDsvSetReal(dvp, cmDsvGetReal(svp));
break;
case kSymDsvFl:
cmDsvSetSymbol(dvp, cmDsvGetSymbol(svp));
break;

View File

@ -18,6 +18,7 @@ extern "C" {
kThreadFailDspRC, // 6
kNetFailDspRC, // 7
kCsvFailDspRC, // 8
kDspStoreFailDspRC,
kProcFailDspRC,
@ -150,6 +151,7 @@ extern "C" {
const cmChar_t* doc; // document string
} cmDspVar_t;
typedef struct
{
const char* label;