gEDA-dev: Wierdness in gschem's o_basic.c

Steve Meier smeier at alchemyresearch.com
Thu Aug 10 12:04:26 EDT 2006


yes unless.... o_list becomes null after the o_list == null return.

Peter TB Brett wrote:
>Came across something odd in gschem's o_basic.c today.
>
>On line 624, there's a block:
>
>if (o_list == NULL) {
>  ...
>  return;
>}
>
>Strangely, there follow a number of blocks of the form:
>
>if (o_list) {
>  ... <block1>
>} else if (s_list) {
>  ... <block2>
>}
>
>Would I be right in thinking that <block2> is NEVER executed?
>
>Peter
>
>  
>------------------------------------------------------------------------
>
>
>
>_______________________________________________
>geda-dev mailing list
>geda-dev at moria.seul.org
>http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev
>  



More information about the geda-dev mailing list