port from perforce

This commit is contained in:
2026-04-18 22:31:51 +02:00
commit 8d0ab5b7cc
8409 changed files with 3972376 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#pragma once
#include "SemAnalyzer.h"
using namespace std;
class k_Cruncher
{
struct r_NoCaseLess
{
bool operator () (const CString& as_Left, const CString& as_Right) const
{
return as_Left.CompareNoCase(as_Right) < 0;
}
};
public:
map<CString, CString> mk_Functions;
k_Cruncher() {}
virtual ~k_Cruncher() {}
void ReplaceFunctionCalls(r_Scope* ar_Scope_);
void RenameVariables(r_Scope* ar_Scope_, char ac_Name);
void Crunch(vector<r_Program*> ak_Programs);
};