[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA-dev: Broken slotting




On Tue, 2007-09-11 at 02:50 +0100, Peter Clifton wrote:

> The question remains... is the fix to revert the behaviour - and keep
> pinseq constant for slotted parts, or (seems more likely) introduce a
> modulo operation when looking for pinseq when updating slots?

(The obvious route to calculate what pinseq numbers to look for from our
old slot doesn't work... the slot is updated by the time the
o_attrib_slot_update() function is called)

I know its late... but is the following g_malloc completely bogus?


	/* Now put new pinseq attrib onto pin. */
	new_pinseq = g_malloc(sizeof(char)*((numpins-1)*slot)+pin_counter);
	sprintf(new_pinseq, "%d", numpins*(slot-1)+pin_counter);
        /* Add 1 for EOL char */

If no-one beats me to it, I'll try to fix this later in the week. I'd
appreciate someone confirming the desired behaviour though.

Regards,

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)



_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev