summaryrefslogtreecommitdiff
path: root/contrib/mac-cw/mac_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/mac-cw/mac_main.c')
-rw-r--r--contrib/mac-cw/mac_main.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/mac-cw/mac_main.c b/contrib/mac-cw/mac_main.c
new file mode 100644
index 00000000..294655de
--- /dev/null
+++ b/contrib/mac-cw/mac_main.c
@@ -0,0 +1,20 @@
+/*
+ * mac_main.c -- The REAL entry point which
+ * calls the tools main code. For the tools
+ * the symbol "main" has been #defined to "tool_main"
+ * so that this entry point may be used to access
+ * the user-input first.
+ */
+
+#undef main
+
+int
+main()
+{
+ int argc;
+ char **argv;
+
+ argc=ccommand(&argv);
+
+ return tool_main(argc,argv); // Call the tool "main()" routine
+}