Applied record-support-santity-check.patch

This commit is contained in:
Andrew Johnson
2015-02-20 12:13:05 -06:00
parent c0cf25eeee
commit 3e6597be90

View File

@@ -228,12 +228,14 @@ int main(int argc,char **argv)
fprintf(outFile,"#ifdef __cplusplus\n");
fprintf(outFile,"extern \"C\" {\n");
fprintf(outFile,"#endif\n");
fprintf(outFile,"#include <epicsAssert.h>\n");
fprintf(outFile,"#include <epicsExport.h>\n");
pdbRecordType = (dbRecordType *)ellFirst(&pdbbase->recordTypeList);
while(pdbRecordType) {
fprintf(outFile,"static int %sRecordSizeOffset(dbRecordType *pdbRecordType)\n{\n",
pdbRecordType->name);
fprintf(outFile," %sRecord *prec = 0;\n",pdbRecordType->name);
fprintf(outFile," assert(pdbRecordType->no_fields==%u);\n", pdbRecordType->no_fields);
for(i=0; i<pdbRecordType->no_fields; i++) {
char name[256];
int j;