One more time.. I added 2 space indention level to switches in the
authorRick L Bird <nveid@yahoo.com>
Tue, 10 May 2011 10:26:40 +0000 (06:26 -0400)
committerRick L Bird <nveid@yahoo.com>
Tue, 10 May 2011 10:26:40 +0000 (06:26 -0400)
indent profile

src/.indent.pro
src/modules.c

index dd194bcd26eb0007cb46c5e1ed9f2ef004598f20..4d8589515dab5aaeade8f124400582cba56c4a90 100644 (file)
@@ -3,4 +3,4 @@
 --no-tabs
 --procnames-start-lines
 --leave-preprocessor-space
-
+-cli2
index 529a4f1e78a7cff0aa067fc4de7d2f307a9d4f11..e23634c31992a21c47f24802aa2dd5498edab7ab 100644 (file)
@@ -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);