Initial commit

This commit is contained in:
2025-11-17 10:28:09 +01:00
parent 7bff81691f
commit 6ee36e26be
391 changed files with 110253 additions and 0 deletions

52
source/function.h Normal file
View File

@@ -0,0 +1,52 @@
#ifndef _function
#define _function
#include "method.h"
#include "array.h"
#include "text.h"
#include "string.h"
#include "index.h"
struct functionLayout{
char * name;
char * body;
char * bodyOriginal;
int lineNumber;
int isVariadic;
struct array * declaration;
struct array * arguments;
struct array * variables;
char * declarationText;
};
struct functionLayout * function_getFunctionByName( struct array * functions, char * functionName );
char * function_getReturnTypeBySymbol( char * functionName, int * leftSideIsPointer );
int functionExists( struct array * functions, char * functionName );
void cloneMethodToFunction( struct method * currentMethod, struct array * functions, char * newName );
#endif