diff --git a/src/hash_iterator.c b/src/hash_iterator.c index c851dc8d..ea53c097 100644 --- a/src/hash_iterator.c +++ b/src/hash_iterator.c @@ -47,7 +47,7 @@ void init_inst_iterator(struct iterator_ctx *ctx, double x1, double y1, double x struct instentry *inst_iterator_next(struct iterator_ctx *ctx) { struct instentry *ptr; - dbg(3, "inst_iterator_next(): instances=%d\n", xctx->instances); + /* dbg(3, "inst_iterator_next(): instances=%d\n", xctx->instances); */ while(1) { while(ctx->instanceptr) { ptr = ctx->instanceptr; @@ -100,7 +100,7 @@ void init_wire_iterator(struct iterator_ctx *ctx, double x1, double y1, double x struct wireentry *wire_iterator_next(struct iterator_ctx *ctx) { struct wireentry *ptr; - dbg(3, "wire_iterator_next(): wires=%d\n", xctx->wires); + /* dbg(3, "wire_iterator_next(): wires=%d\n", xctx->wires); */ while(1) { while(ctx->wireptr) { ptr = ctx->wireptr; diff --git a/src/token.c b/src/token.c index b9e94b4f..5fdba1ba 100644 --- a/src/token.c +++ b/src/token.c @@ -2807,6 +2807,12 @@ const char *translate(int inst, const char* s) if(!sp_prefix && !strcmp(token, "@spiceprefix")) { value = NULL; xctx->get_tok_size = 0; + /* not that worth doing this optimization */ + /* + } else if(!strcmp(token, "@name")) { + value = xctx->inst[inst].instname; + xctx->get_tok_size=4; + */ } else { value = get_tok_value(xctx->inst[inst].prop_ptr, token+1, 0); if(!xctx->get_tok_size) value=get_tok_value((xctx->inst[inst].ptr+ xctx->sym)->templ, token+1, 0);