Created
May 10, 2013 21:05
-
-
Save mgalgs/5557407 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "section_hacking.h" | |
extern struct formatter_info __start_my_formatters; | |
extern struct formatter_info __stop_my_formatters; | |
static void format_all(const char *txt) | |
{ | |
struct formatter_info *iter = &__start_my_formatters; | |
for ( ; iter < &__stop_my_formatters; ++iter) { | |
printf("Formatting with %s: ", iter->name); | |
iter->fn(txt); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment