+void g_importstartup (void)
+/* Forced import of the startup segment */
+{
+#if 0
+ AddTextLine ("\t.forceimport\t__STARTUP_RUN__");
+#endif
+}
+
+
+
void g_importmainargs (void)
/* Forced import of a special symbol that handles arguments to main */
{
void g_defimport (const char* Name, int ZP);
/* Import the given label */
+void g_importstartup (void);
+/* Forced import of the startup segment */
+
void g_importmainargs (void);
/* Forced import of a special symbol that handles arguments to main */
Error ("`main' must always return an int");
}
+ /* Add a forced import of a symbol that is contained in the startup
+ * code. This will force the startup code to be linked in.
+ */
+ g_importstartup ();
+
/* If main() takes parameters, generate a forced import to a function
* that will setup these parameters. This way, programs that do not
* need the additional code will not get it.