FORM  4.3
Macros | Functions | Variables
startup.c File Reference
#include "form3.h"
#include "inivar.h"
#include <signal.h>

Go to the source code of this file.

Macros

#define STRINGIFY(x)   STRINGIFY__(x)
 
#define STRINGIFY__(x)   #x
 
#define FORMNAME   "FORM"
 
#define VERSIONSTR__   STRINGIFY(MAJORVERSION) "." STRINGIFY(MINORVERSION)
 
#define VERSIONSTR   FORMNAME " " VERSIONSTR__ " (" PRODUCTIONDATE ")"
 
#define TAKEPATH(x)   if(s[1]== '=' ){x=s+2;} else{x=*argv++;argc--;}
 

Functions

int DoTail (int argc, UBYTE **argv)
 
int OpenInput ()
 
VOID ReserveTempFiles (int par)
 
VOID StartVariables ()
 
VOID StartMore ()
 
WORD IniVars ()
 
int main (int argc, char **argv)
 
VOID CleanUp (WORD par)
 
VOID Terminate (int errorcode)
 
VOID PrintRunningTime ()
 
LONG GetRunningTime ()
 

Variables

UBYTE * emptystring = (UBYTE *)"."
 
UBYTE * defaulttempfilename = (UBYTE *)"xformxxx.str"
 

Detailed Description

This file contains the main program. It also deals with the very early stages of the startup of FORM and the final stages when the program attemps some cleanup. Here is the routine that analyses the command tail.

Definition in file startup.c.

Function Documentation

◆ StartVariables()

VOID StartVariables ( )

All functions (well, nearly all) are declared here.

Definition at line 866 of file startup.c.