comparison lwlib/lw_expr.c @ 448:5cccf90bf838 3.0 tip

Fixed bug with complex external references generating invalid relocations in the object file
author lost@l-w.ca
date Fri, 05 Nov 2010 22:27:00 -0600
parents a8934dfba400
children
comparison
equal deleted inserted replaced
447:00924eeb2ec8 448:5cccf90bf838
1271 1271
1272 void *lw_expr_specptr(lw_expr_t e) 1272 void *lw_expr_specptr(lw_expr_t e)
1273 { 1273 {
1274 return e -> value2; 1274 return e -> value2;
1275 } 1275 }
1276
1277 int lw_expr_operandcount(lw_expr_t e)
1278 {
1279 int count = 0;
1280 struct lw_expr_opers *o;
1281
1282 if (e -> type != lw_expr_type_oper)
1283 return 0;
1284
1285 for (o = e -> operands; o; o = o -> next)
1286 count++;
1287
1288 return count;
1289 }