FORM v5.0.0-35-g6318119
Macros | Functions
execute.c File Reference
#include "form3.h"
Include dependency graph for execute.c:

Go to the source code of this file.

Macros

#define CURRENTBRACKET   1
 
#define BRACKETCURRENTEXPR   2
 
#define BRACKETOTHEREXPR   3
 
#define NOBRACKETACTIVE   4
 

Functions

int CleanExpr (WORD par)
 
int PopVariables (void)
 
void MakeGlobal (void)
 
void TestDrop (void)
 
void PutInVflags (WORD nexpr)
 
int DoExecute (WORD par, WORD skip)
 
int PutBracket (PHEAD WORD *termin)
 
void SpecialCleanup (PHEAD0)
 
void SetMods (void)
 
void UnSetMods (void)
 
void ExchangeExpressions (int num1, int num2)
 
int GetFirstBracket (WORD *term, int num)
 
int GetFirstTerm (WORD *term, int num, int pre)
 
int GetContent (WORD *content, int num)
 
int CleanupTerm (WORD *term)
 
WORD ContentMerge (PHEAD WORD *content, WORD *term)
 
LONG TermsInExpression (WORD num)
 
LONG SizeOfExpression (WORD num)
 
void UpdatePositions (void)
 
LONG CountTerms1 (PHEAD0)
 
LONG TermsInBracket (PHEAD WORD *term, WORD level)
 

Detailed Description

The routines that start the execution phase of a module. It also contains the routines for placing the bracket subterm.

Definition in file execute.c.

Macro Definition Documentation

◆ CURRENTBRACKET

#define CURRENTBRACKET   1

Definition at line 2566 of file execute.c.

◆ BRACKETCURRENTEXPR

#define BRACKETCURRENTEXPR   2

Definition at line 2567 of file execute.c.

◆ BRACKETOTHEREXPR

#define BRACKETOTHEREXPR   3

Definition at line 2568 of file execute.c.

◆ NOBRACKETACTIVE

#define NOBRACKETACTIVE   4

Definition at line 2569 of file execute.c.

Function Documentation

◆ CleanExpr()

int CleanExpr ( WORD  par)

Definition at line 47 of file execute.c.

◆ PopVariables()

int PopVariables ( void  )

Definition at line 211 of file execute.c.

◆ MakeGlobal()

void MakeGlobal ( void  )

Definition at line 383 of file execute.c.

◆ TestDrop()

void TestDrop ( void  )

Definition at line 484 of file execute.c.

◆ PutInVflags()

void PutInVflags ( WORD  nexpr)

Definition at line 562 of file execute.c.

◆ DoExecute()

int DoExecute ( WORD  par,
WORD  skip 
)

Definition at line 616 of file execute.c.

◆ PutBracket()

int PutBracket ( PHEAD WORD *  termin)

Definition at line 1112 of file execute.c.

◆ SpecialCleanup()

void SpecialCleanup ( PHEAD0  )

Definition at line 1626 of file execute.c.

◆ SetMods()

void SetMods ( void  )

Definition at line 1640 of file execute.c.

◆ UnSetMods()

void UnSetMods ( void  )

Definition at line 1658 of file execute.c.

◆ ExchangeExpressions()

void ExchangeExpressions ( int  num1,
int  num2 
)

Definition at line 1673 of file execute.c.

◆ GetFirstBracket()

int GetFirstBracket ( WORD *  term,
int  num 
)

Definition at line 1747 of file execute.c.

◆ GetFirstTerm()

int GetFirstTerm ( WORD *  term,
int  num,
int  pre 
)

Gets the first term of an expression. Routine should be thread safe.

Parameters
[out]termPointer to the buffer where the term should be written.
[in]numThe expression number from which to get the term.
[in]preDenotes a pre-processor call (1) or not (0). Used to determine the correct source file for the expression.
Returns
First WORD of term, a negative value denotes an error.

Definition at line 1866 of file execute.c.

References FiLe::handle, VaRrEnUm::lo, and ReNuMbEr::symb.

◆ GetContent()

int GetContent ( WORD *  content,
int  num 
)

Definition at line 1974 of file execute.c.

◆ CleanupTerm()

int CleanupTerm ( WORD *  term)

Definition at line 2091 of file execute.c.

◆ ContentMerge()

WORD ContentMerge ( PHEAD WORD *  content,
WORD *  term 
)

Definition at line 2115 of file execute.c.

◆ TermsInExpression()

LONG TermsInExpression ( WORD  num)

Definition at line 2379 of file execute.c.

◆ SizeOfExpression()

LONG SizeOfExpression ( WORD  num)

Definition at line 2391 of file execute.c.

◆ UpdatePositions()

void UpdatePositions ( void  )

Definition at line 2403 of file execute.c.

◆ CountTerms1()

LONG CountTerms1 ( PHEAD0  )

Definition at line 2463 of file execute.c.

◆ TermsInBracket()

LONG TermsInBracket ( PHEAD WORD *  term,
WORD  level 
)

Definition at line 2571 of file execute.c.