implement node walker in direction of out-edges
[libfirm] / ir / libcore / lc_appendable.c
index 2fa8936..55c4fc6 100644 (file)
@@ -16,9 +16,7 @@
   License along with this library; if not, write to the Free Software
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
 
 #include <stdlib.h>
 #include <stdio.h>
@@ -38,14 +36,14 @@ int lc_appendable_snwadd(lc_appendable_t *app, const char *str, size_t len,
        int to_pad = width - len;
 
        /* If not left justified, pad left */
-       for(i = 0; !left_just && i < to_pad; ++i)
+       for (i = 0; !left_just && i < to_pad; ++i)
                res += lc_appendable_chadd(app, pad);
 
        /* Send the visible portion of the string to the output. */
        res += lc_appendable_snadd(app, str, len);
 
        /* If left justified, pad right. */
-       for(i = 0; left_just && i < to_pad; ++i)
+       for (i = 0; left_just && i < to_pad; ++i)
                res += lc_appendable_chadd(app, pad);
 
        return res;
@@ -119,7 +117,7 @@ static int str_snadd(lc_appendable_t *obj, const char *str, size_t n)
 
 static int str_chadd(lc_appendable_t *obj, int ch)
 {
-       if(obj->limit - obj->written > 1) {
+       if (obj->limit - obj->written > 1) {
                char *tgt = obj->obj;
                tgt[obj->written++] = (char) ch;
                return 1;