Browse Source

Rename arifmetic.{cpp,h} to builtin.{cpp,h}

test
Michael Uleysky 9 years ago
parent
commit
a8d1239b46
  1. 0
      src/builtin.cpp
  2. 0
      src/builtin.h
  3. 4
      src/init.cpp
  4. 2
      src/init.h
  5. 2
      src/main.cpp

0
src/arifmetic.cpp → src/builtin.cpp

0
src/arifmetic.h → src/builtin.h

4
src/init.cpp

@ -3,7 +3,7 @@
#include "debug.h"
#include "object.h"
#include "globals.h"
#include "arifmetic.h"
#include "builtin.h"
#include "parser/parser.h"
// We can't include lexical.h before grammatical.h, because of strange errors, but grammatical.h only needs definition of yyscan_t
#ifndef YY_TYPEDEF_YY_SCANNER_T
@ -80,7 +80,7 @@ int ParseConfigFile(const char* config)
}
int RegisterArifmeticFunctions()
int RegisterBuiltinFunctions()
{
RegisterFunction("ADD",Arifm_Add);
RegisterFunction("SUB",Arifm_Sub);

2
src/init.h

@ -12,7 +12,7 @@ struct program_options
int ParseOptions(int argc, char** argv, struct program_options& options);
int ParseConfigFile(const char* config);
int RegisterArifmeticFunctions();
int RegisterBuiltinFunctions();
int BuildDepTree(DepTree* deptree, UsedType& used);
int CheckFunctions();
void DumpConfig();

2
src/main.cpp

@ -58,7 +58,7 @@ int main(int argc, char** argv)
COUT(INFO)<<(tot-G_vars.size())<<" removed, "<<G_vars.size()<<" remains."<<std::endl;
}
RegisterArifmeticFunctions();
RegisterBuiltinFunctions();
COUT(INFO)<<"Checking functions ";
ret=CheckFunctions(); if(ret!=0) { ClearGlobals(); delete DPTree; return 1;}

Loading…
Cancel
Save