From 4ecf94d5f599ea6b2c6feda678af79ba41d58e81 Mon Sep 17 00:00:00 2001 From: Rick L Bird Date: Tue, 10 May 2011 06:26:40 -0400 Subject: [PATCH] One more time.. I added 2 space indention level to switches in the indent profile --- src/.indent.pro | 2 +- src/modules.c | 71 +++++++++++++++++++++++++------------------------ 2 files changed, 37 insertions(+), 36 deletions(-) diff --git a/src/.indent.pro b/src/.indent.pro index dd194bc..4d85895 100644 --- a/src/.indent.pro +++ b/src/.indent.pro @@ -3,4 +3,4 @@ --no-tabs --procnames-start-lines --leave-preprocessor-space - +-cli2 diff --git a/src/modules.c b/src/modules.c index 529a4f1..e23634c 100644 --- a/src/modules.c +++ b/src/modules.c @@ -329,41 +329,42 @@ CHook_SC(struct core_entry_t *entry, const char *format, va_list arguments) continue; } switch (*fptr) { - case '@': /* The cause */ - cause = (dbref) va_arg(arguments, dbref); - next = 0; - break; - case '#': /* This should set the enactor */ - enactor = (dbref) va_arg(arguments, dbref); - next = 0; - break; - case 'D': - case 'd': - global_eval_context.wenv[spot++] = - unparse_integer(va_arg(arguments, intmax_t)); - next = 0; - break; - case 'S': - case 's': - global_eval_context.wenv[spot++] = va_arg(arguments, char *); - next = 0; - break; - case ' ': /* this shouldn't happen.. but just in case */ - break; - default: - /* Bad Format.. don't run & return an error */ - do_rawlog(LT_ERR, - "%s:%d -> Unexpected format character '%c' in format \"%s\"", - __FILE__, __LINE__, *fptr, format); - /* Restore Environment */ - copy_namedregs(&global_eval_context.namedregs, &preserve_namedregs); - free_namedregs(&preserve_namedregs); - restore_global_regs("chook_sc_save", preserveq); - restore_global_env("chook_sc_save", preserves); - restore_global_nxt("chook_sc_save", preserve_wnxt, preserve_rnxt, - val_wnxt, val_rnxt); - - return -2; + case '@': /* The cause */ + cause = (dbref) va_arg(arguments, dbref); + next = 0; + break; + case '#': /* This should set the enactor */ + enactor = (dbref) va_arg(arguments, dbref); + next = 0; + break; + case 'D': + case 'd': + global_eval_context.wenv[spot++] = + unparse_integer(va_arg(arguments, intmax_t)); + next = 0; + break; + case 'S': + case 's': + global_eval_context.wenv[spot++] = va_arg(arguments, char *); + next = 0; + break; + case ' ': /* this shouldn't happen.. but just in case */ + break; + default: + /* Bad Format.. don't run & return an error */ + do_rawlog(LT_ERR, + "%s:%d -> Unexpected format character '%c' in format \"%s\"", + __FILE__, __LINE__, *fptr, format); + /* Restore Environment */ + copy_namedregs(&global_eval_context.namedregs, + &preserve_namedregs); + free_namedregs(&preserve_namedregs); + restore_global_regs("chook_sc_save", preserveq); + restore_global_env("chook_sc_save", preserves); + restore_global_nxt("chook_sc_save", preserve_wnxt, preserve_rnxt, + val_wnxt, val_rnxt); + + return -2; } } strncpy(cmd_buf, atr_value(atr), BUFFER_LEN - 1); -- 2.30.2