From fbf0272d3ba86a5378f97a09366026d27e31f9ad Mon Sep 17 00:00:00 2001 From: Mark Pictor Date: Sun, 26 Jul 2015 13:42:39 -0400 Subject: [PATCH] indent a listdo/listod --- src/exp2python/src/classes_misc_python.c | 41 ++++++++++++------------ 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/src/exp2python/src/classes_misc_python.c b/src/exp2python/src/classes_misc_python.c index f8d3f8bb..753785e5 100644 --- a/src/exp2python/src/classes_misc_python.c +++ b/src/exp2python/src/classes_misc_python.c @@ -429,28 +429,27 @@ Entity ENTITYput_superclass( Entity entity ) { /* find the first parent that has attributes (in the parent or any of its ancestors). Make super point at that parent and print warnings for all the rest of the parents. DAS */ - LISTdo( l, e, Entity ) - /* if there's no super class yet, - or if the entity super class [the variable] super is pointing at - doesn't have any attributes: make super point at the current parent. - As soon as the parent pointed to by super has attributes, stop - assigning super and print ignore messages for the remaining parents. - */ - if( ( ! super ) || ( ! ENTITYhas_explicit_attributes( super ) ) ) { - ignore = super; - super = e; - ++ super_cnt; - } else { - ignore = e; - } - if( ignore ) { - printf( "WARNING: multiple inheritance not implemented.\n" ); - printf( "\tin ENTITY %s\n\tSUPERTYPE %s IGNORED.\n\n", - ENTITYget_name( entity ), ENTITYget_name( e ) ); - } - LISTod; + LISTdo( l, e, Entity ) { + /* if there's no super class yet, + or if the entity super class [the variable] super is pointing at + doesn't have any attributes: make super point at the current parent. + As soon as the parent pointed to by super has attributes, stop + assigning super and print ignore messages for the remaining parents. + */ + if( ( ! super ) || ( ! ENTITYhas_explicit_attributes( super ) ) ) { + ignore = super; + super = e; + ++ super_cnt; + } else { + ignore = e; + } + if( ignore ) { + printf( "WARNING: multiple inheritance not implemented.\n" ); + printf( "\tin ENTITY %s\n\tSUPERTYPE %s IGNORED.\n\n", + ENTITYget_name( entity ), ENTITYget_name( e ) ); + } + } LISTod } - tag = ( EntityTag ) malloc( sizeof( struct EntityTag_ ) ); tag -> superclass = super; TYPEput_clientData( ENTITYget_type( entity ), tag );