Convert main.c to K&R style.
authorDavid Griffith <dave@661.org>
Sat, 21 Sep 2019 23:54:34 +0000 (16:54 -0700)
committerDavid Griffith <dave@661.org>
Mon, 23 Sep 2019 00:48:04 +0000 (17:48 -0700)
src/common/main.c

index cd96b667de3b1d6a436671489d9a46a7076e3ed1..75619d54604319be15c0da669a2ef61c5bd1690b 100644 (file)
@@ -132,11 +132,10 @@ long reserve_mem = 0;
  *     no zargs used
  *
  */
-void z_piracy (void)
+void z_piracy(void)
 {
-    branch (!f_setup.piracy);
-
-}/* z_piracy */
+       branch (!f_setup.piracy);
+} /* z_piracy */
 
 
 /*
@@ -145,36 +144,21 @@ void z_piracy (void)
  * Prepare and run the game.
  *
  */
-int cdecl main (int argc, char *argv[])
+int cdecl main(int argc, char *argv[])
 {
-    os_init_setup ();
-
-    os_process_arguments (argc, argv);
-
-    init_buffer ();
-
-    init_err ();
-
-    init_memory ();
-
-    init_process ();
-
-    init_sound ();
-
-    os_init_screen ();
-
-    init_undo ();
-
-    z_restart ();
-
-    interpret ();
-
-    reset_screen ();
-
-    reset_memory ();
-
-    os_reset_screen ();
-
-    return 0;
-
-}/* main */
+       os_init_setup();
+       os_process_arguments(argc, argv);
+       init_buffer();
+       init_err();
+       init_memory();
+       init_process();
+       init_sound();
+       os_init_screen();
+       init_undo();
+       z_restart();
+       interpret();
+       reset_screen();
+       reset_memory();
+       os_reset_screen();
+       return 0;
+} /* main */