commit - 1156e9d46d23cc71ec3d407662b4b45d99db4562
commit + 51fe155a466adc4f78dc8077243c0c9386af3fac
blob - 510830925ccf86c73e085ce5a1cc77de5086a09d
blob + 3022cb51e96da696321815e7d56397eaa3573f57
--- FICS/formula.c
+++ FICS/formula.c
return pWho->formulaLines[clause];
}
-int
+PRIVATE int
MoveIndexPastString(char *string, int *i, char *text)
{
int n = strlen(text);
return 0;
}
-int
+PRIVATE int
GetNumberInsideParens(game *g, int clause, int *i, int *token, int eval)
{
char *string = GetPlayersFormula(&parray[g->black], clause);
return ERR_PAREN;
}
-int
+PRIVATE int
Maxtime(game *g, int numMoves, int numPlayers)
{
int max;
* function returns 1 or 0 depending on whether a legitimate variable
* was found.
*/
-int
+PRIVATE int
VarToToken(game *g, int clause, char *string, int *i, int *tok, int eval)
{
double dummy_sterr;
/*
* ScanForOp() checks for an operator at position 'i' in 'string'.
*/
-int
+PRIVATE int
ScanForOp(char *string, int *i)
{
while (string[*i] != '\0' && isspace(string[*i]))
/*
* OpType() returns the precedence of the operator 'op'.
*/
-int
+PRIVATE int
OpType(int op)
{
switch (op) {
* expression in 'left'. This function returns 0 if no error.
* Otherwise an error code is returned.
*/
-int
+PRIVATE int
EvalBinaryOp(int *left, int op, game *g, int clause, int *i)
{
int right, ret;
* 0, just move past the number we would evaluate. This function
* returns 0 if no error. Otherwise an error code is returned.
*/
-int
+PRIVATE int
ScanForNumber(game *g, int clause, int *i, int op_type, int *token, int eval)
{
char *string = GetPlayersFormula(&parray[g->black], clause);
return ret;
}
-void
+PRIVATE void
ExplainFormula(game *g, textlist **clauses)
{
char txt[20];