Changeset 119 for trunk/ORBit2-2.14.0
- Timestamp:
- Nov 26, 2006, 7:19:48 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ORBit2-2.14.0/src/idl-compiler/orbit-idl-c-headers.c
r114 r119 1339 1339 if(!strstr(IDL_IDENT (IDL_OP_DCL (curop).ident).str, "__OVERRIDE__")) 1340 1340 { 1341 fprintf(ioi->of, "#if 0 /* %s, %s line %d */\n", __FILE__, __FUNCTION__, __LINE__); 1341 1342 fprintf(ioi->of, "#define %s_%s %s_%s\n", 1342 1343 realid, IDL_IDENT(IDL_OP_DCL(curop).ident).str, 1343 1344 id, IDL_IDENT(IDL_OP_DCL(curop).ident).str); 1345 fprintf(ioi->of, "#endif\n"); 1344 1346 } 1345 1347 break; … … 1348 1350 case IDLN_ATTR_DCL: 1349 1351 { 1350 IDL_tree curitem;1351 1352 /* We don't use OIDL_Attr_Info here because inherited ops may go back into trees that are output-inhibited1353 and therefore don't have the OIDL_Attr_Info generated on them */1354 1355 for(curitem = IDL_ATTR_DCL(curop).simple_declarations; curitem; curitem = IDL_LIST(curitem).next) {1356 IDL_tree ident;1357 1358 ident = IDL_LIST(curitem).data;1359 1360 fprintf(ioi->of, "#define %s__get_%s %s__get_%s\n",1361 realid, IDL_IDENT(ident).str,1362 id, IDL_IDENT(ident).str);1363 1364 if(!IDL_ATTR_DCL(curop).f_readonly)1365 fprintf(ioi->of, "#define %s__set_%s %s__set_%s\n",1366 realid, IDL_IDENT(ident).str,1367 id, IDL_IDENT(ident).str);1368 } 1352 IDL_tree curitem; 1353 1354 /* We don't use OIDL_Attr_Info here because inherited ops may go back into trees that are output-inhibited 1355 and therefore don't have the OIDL_Attr_Info generated on them */ 1356 1357 for(curitem = IDL_ATTR_DCL(curop).simple_declarations; curitem; curitem = IDL_LIST(curitem).next) { 1358 IDL_tree ident; 1359 1360 ident = IDL_LIST(curitem).data; 1361 1362 fprintf(ioi->of, "#define %s__get_%s %s__get_%s\n", 1363 realid, IDL_IDENT(ident).str, 1364 id, IDL_IDENT(ident).str); 1365 1366 if(!IDL_ATTR_DCL(curop).f_readonly) 1367 fprintf(ioi->of, "#define %s__set_%s %s__set_%s\n", 1368 realid, IDL_IDENT(ident).str, 1369 id, IDL_IDENT(ident).str); 1370 }/* for() */ 1369 1371 } 1370 1372 break;
Note:
See TracChangeset
for help on using the changeset viewer.
