summaryrefslogtreecommitdiff
path: root/m4/m4.c
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-12-14 13:52:15 -0700
committerEric Blake <ebb9@byu.net>2010-01-05 22:03:49 -0700
commitcdff6b56f2f9e848722f93e45803be19609641b5 (patch)
tree5db3706f72910fbd1ef87ff031a6e08f92c9f533 /m4/m4.c
parent1270f0e114d5b7f442362a4952f185920886045e (diff)
downloadm4-cdff6b56f2f9e848722f93e45803be19609641b5.tar.gz
Switch to indentation by space, not tab.
Now that gnulib has converted and git has better support for ignoring whitespace differences across this commit, we might as well be consistent with other GNU projects. Done with: t=$'\t' git ls-files \ | grep -vE '(^|/)(.*akefile|ChangeLog|HACKING|.*-aux/.*)|\.(am|mk)$' \ | xargs grep -lE "^ *$t" \ | xargs perl -MText::Tabs -ni -le \ '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_' followed by tweaks to pass 'make check' again. * .gitmodules: Convert leading tabs to spaces. * TODO: Likewise. * bootstrap: Likewise. * configure.ac: Likewise. * examples/WWW/m4lib/html.m4: Likewise. * examples/WWW/m4lib/layout.m4: Likewise. * examples/WWW/m4lib/menu.m4: Likewise. * ltdl/m4/debug.m4: Likewise. * ltdl/m4/gmp.m4: Likewise. * ltdl/m4/m4-obstack.m4: Likewise. * ltdl/m4/stackovf.m4: Likewise. * m4/builtin.c: Likewise. * m4/debug.c: Likewise. * m4/hash.c: Likewise. * m4/hash.h: Likewise. * m4/input.c: Likewise. * m4/m4.c: Likewise. * m4/m4module.h: Likewise. * m4/m4private.h: Likewise. * m4/macro.c: Likewise. * m4/module.c: Likewise. * m4/output.c: Likewise. * m4/path.c: Likewise. * m4/resyntax.c: Likewise. * m4/symtab.c: Likewise. * m4/syntax.c: Likewise. * m4/utility.c: Likewise. * modules/evalparse.c: Likewise. * modules/format.c: Likewise. * modules/gnu.c: Likewise. * modules/load.c: Likewise. * modules/m4.c: Likewise. * modules/m4.h: Likewise. * modules/mpeval.c: Likewise. * modules/perl.c: Likewise. * modules/stdlib.c: Likewise. * modules/time.c: Likewise. * src/freeze.c: Likewise. * src/m4.h: Likewise. * src/main.c: Likewise. * src/stackovf.c: Likewise. * tests/builtins.at: Likewise. * tests/freeze.at: Likewise. * tests/generate.awk: Likewise. * tests/modules.at: Likewise. * tests/others.at: Likewise. * tests/stackovf.test: Likewise. * tests/testsuite.at: Likewise. Signed-off-by: Eric Blake <ebb9@byu.net> (cherry picked from commit 180b7d19bf95d2abb21bca587a0684eca69679ad)
Diffstat (limited to 'm4/m4.c')
-rw-r--r--m4/m4.c74
1 files changed, 37 insertions, 37 deletions
diff --git a/m4/m4.c b/m4/m4.c
index 61ebe07f..49604e07 100644
--- a/m4/m4.c
+++ b/m4/m4.c
@@ -70,27 +70,27 @@ m4_delete (m4 *context)
m4__search_path *path = context->search_path->list;
while (path)
- {
- m4__search_path *stale = path;
- path = path->next;
+ {
+ m4__search_path *stale = path;
+ path = path->next;
- free ((void*) stale->dir);
- free (stale);
- }
+ free ((void*) stale->dir);
+ free (stale);
+ }
free (context->search_path);
}
for (i = 0; i < context->stacks_count; i++)
{
assert (context->arg_stacks[i].refcount == 0
- && context->arg_stacks[i].argcount == 0);
+ && context->arg_stacks[i].argcount == 0);
if (context->arg_stacks[i].args)
- {
- obstack_free (context->arg_stacks[i].args, NULL);
- free (context->arg_stacks[i].args);
- obstack_free (context->arg_stacks[i].argv, NULL);
- free (context->arg_stacks[i].argv);
- }
+ {
+ obstack_free (context->arg_stacks[i].args, NULL);
+ free (context->arg_stacks[i].args);
+ obstack_free (context->arg_stacks[i].argv, NULL);
+ free (context->arg_stacks[i].argv);
+ }
}
free (context->arg_stacks);
@@ -104,41 +104,41 @@ m4_delete (m4 *context)
name to protect against macro expansion from the fast macros used to
replace these functions when NDEBUG is defined. */
#define M4FIELD(type, base, field) \
- type (CONC(m4_get_, base)) (m4 *context) \
- { \
- assert (context); \
- return context->field; \
- }
+ type (CONC(m4_get_, base)) (m4 *context) \
+ { \
+ assert (context); \
+ return context->field; \
+ }
m4_context_field_table
#undef M4FIELD
#define M4FIELD(type, base, field) \
- type (CONC(m4_set_, base)) (m4 *context, type value) \
- { \
- assert (context); \
- return context->field = value; \
- }
+ type (CONC(m4_set_, base)) (m4 *context, type value) \
+ { \
+ assert (context); \
+ return context->field = value; \
+ }
m4_context_field_table
#undef M4FIELD
#define M4OPT_BIT(bit, base) \
- bool (CONC(m4_get_, base)) (m4 *context) \
- { \
- assert (context); \
- return BIT_TEST (context->opt_flags, (bit)); \
- }
+ bool (CONC(m4_get_, base)) (m4 *context) \
+ { \
+ assert (context); \
+ return BIT_TEST (context->opt_flags, (bit)); \
+ }
m4_context_opt_bit_table
#undef M4OPT_BIT
#define M4OPT_BIT(bit, base) \
- bool (CONC(m4_set_, base)) (m4 *context, bool value) \
- { \
- assert (context); \
- if (value) \
- BIT_SET (context->opt_flags, (bit)); \
- else \
- BIT_RESET (context->opt_flags, (bit)); \
- return value; \
- }
+ bool (CONC(m4_set_, base)) (m4 *context, bool value) \
+ { \
+ assert (context); \
+ if (value) \
+ BIT_SET (context->opt_flags, (bit)); \
+ else \
+ BIT_RESET (context->opt_flags, (bit)); \
+ return value; \
+ }
m4_context_opt_bit_table
#undef M4OPT_BIT