File: sludge_functions.h

package info (click to toggle)
sludge 2.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,844 kB
  • ctags: 2,981
  • sloc: cpp: 31,952; sh: 1,259; xml: 874; makefile: 672
file content (29 lines) | stat: -rwxr-xr-x 1,315 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <stdio.h>
#include "splitter.hpp"

enum halfCode {HALF_FIND, HALF_MARKER, HALF_DONE};

#include "csludge.h"

struct compilationSpace {
	int numMarkers;
	int numLines;
	int myNum;
	FILE * writeToFile;
	FILE * markerFile;
};

void initBuiltInFunc ();
bool startFunction (int num, int argNum, compilationSpace & theSpace, const char * theName, bool unfr, bool dbMe, const char *);
bool finishFunctionNew (compilationSpace & theSpace, stringArray * locals);
int protoFunction (const char * funcName, const char * fileName);
int defineFunction (char * funcName, const char * args, char * sourceCode, bool unfr, bool dbMe, const char *, unsigned int);
bool compileSourceBlock (const char *, stringArray * &, compilationSpace &, const char * filename);
bool compileSourceLine (const char *, stringArray * &, compilationSpace &, stringArray * &, const char * filename, unsigned int fileline);

void outputHalfCode (compilationSpace & theSpace, sludgeCommand theCommand, const char * stringy);
int outputMarkerCode (compilationSpace & theSpace, sludgeCommand theCommand);
void outputDoneCode (compilationSpace & theSpace, sludgeCommand theCommand, int value);
bool outdoorSub (char *, const char *, unsigned int);
void writeDebugData (FILE * mainFile);
void doDefines (char * fn, stringArray * &, stringArray * &);