static void insert(char *name) { int x,y; if(wire_corner(w,wc,&x,&y)) { struct element *e=element_create(name); element_setx(e,x); element_sety(e,y); element_set_package(e,"R.0805"); wire_insert(w,wc,e); } }
int list_append( list_t* list, int i ) { element_t* el = element_create( i ); if( el == NULL ) return 1; if( list->head == NULL ) list->head = el; if( list->tail ) list->tail->next = el; list->tail = el; return 0; }
static void select_element(char *s) { e=element_find(s); if(!e) e=element_create(s); spin=-1; }