__run.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef VIRTUALMATH___RUN_H
  2. #define VIRTUALMATH___RUN_H
  3. #include "__virtualmath.h"
  4. char *setStrVarName(char *old, bool free_old, struct Inter *inter);
  5. char *setNumVarName(vnum num, struct Inter *inter);
  6. char *getNameFromValue(Value *value, struct Inter *inter);
  7. ResultType getBaseVarInfo(char **name, int *times, INTER_FUNCTIONSIG);
  8. ResultType getBaseSVarInfo(char **name, int *times, INTER_FUNCTIONSIG);
  9. ResultType getVarInfo(char **name, int *times, INTER_FUNCTIONSIG);
  10. bool popStatementVarList(Statement *funtion_st, VarList **function_var, VarList *out_var, Inter *inter);
  11. void newFunctionYield(Statement *funtion_st, Statement *node, VarList *new_var, Inter *inter);
  12. void updateFunctionYield(Statement *function_st, Statement *node);
  13. void updateBranchYield(Statement *branch_st, Statement *node, StatementList *sl_node, enum StatementInfoStatus status);
  14. void newWithBranchYield(Statement *branch_st, Statement *node, StatementList *sl_node, VarList *new_var, enum StatementInfoStatus status,
  15. Inter *inter, LinkValue *value, LinkValue *_exit_, LinkValue *_enter_);
  16. void newForBranchYield(Statement *branch_st, Statement *node, StatementList *sl_node, VarList *new_var, enum StatementInfoStatus status,
  17. Inter *inter, LinkValue *iter);
  18. ResultType setFunctionArgument(struct Argument **arg, LinkValue *function_value, fline line, char *file, INTER_FUNCTIONSIG_NOT_ST);
  19. void freeFunctionArgument(Argument *arg, Argument *base);
  20. LinkValue *findStrVar(char *name, bool free_old, INTER_FUNCTIONSIG_CORE);
  21. LinkValue *checkStrVar(char *name, bool free_old, INTER_FUNCTIONSIG_CORE);
  22. void addStrVar(char *name, bool free_old, bool setting, LinkValue *value, LinkValue *father, INTER_FUNCTIONSIG_CORE);
  23. LinkValue *findAttributes(char *name, bool free_old, LinkValue *value, Inter *inter);
  24. void addAttributes(char *name, bool free_old, LinkValue *value, LinkValue *belong, Inter *inter);
  25. void newObjectSetting(LinkValue *name, LinkValue *belong, Inter *inter);
  26. ResultType elementDownOne(LinkValue *element, LinkValue *index, fline line, char *file, INTER_FUNCTIONSIG_NOT_ST);
  27. ResultType getIter(LinkValue *value, int status, fline line, char *file, INTER_FUNCTIONSIG_NOT_ST);
  28. bool checkBool(LinkValue *value, fline line, char *file, INTER_FUNCTIONSIG_NOT_ST);
  29. char *getRepoStr(LinkValue *value, bool is_repot, fline line, char *file, INTER_FUNCTIONSIG_NOT_ST);
  30. bool is_iterStop(LinkValue *value, Inter *inter);
  31. bool is_quitExc(LinkValue *value, Inter *inter);
  32. bool checkAut(enum ValueAuthority value, enum ValueAuthority base, fline line, char *file, char *name, bool pri_auto, INTER_FUNCTIONSIG_NOT_ST);
  33. #endif //VIRTUALMATH___RUN_H