|
|
@@ -2000,6 +2000,24 @@ begin
|
|
|
end;
|
|
|
end;
|
|
|
|
|
|
+function SameStrFunc(Ext: NativeInt; const Params: IIsppFuncParams;
|
|
|
+ const FuncResult: IIsppFuncResult): TIsppFuncResult; stdcall;
|
|
|
+begin
|
|
|
+ if CheckParams(Params, [evStr, evStr], 2, Result) then
|
|
|
+ try
|
|
|
+ with IInternalFuncParams(Params) do
|
|
|
+ begin
|
|
|
+ MakeBool(ResPtr^, SameStr(Get(0).AsStr, Get(1).AsStr));
|
|
|
+ end;
|
|
|
+ except
|
|
|
+ on E: Exception do
|
|
|
+ begin
|
|
|
+ FuncResult.Error(PChar(E.Message));
|
|
|
+ Result.Error := ISPPFUNC_FAIL
|
|
|
+ end;
|
|
|
+ end;
|
|
|
+end;
|
|
|
+
|
|
|
procedure RegisterFunctions(Preproc: TPreprocessor);
|
|
|
begin
|
|
|
with Preproc do
|
|
|
@@ -2068,7 +2086,8 @@ begin
|
|
|
RegisterFunction('Message', MessageFunc, -1);
|
|
|
RegisterFunction('Warning', WarningFunc, -1);
|
|
|
RegisterFunction('Error', ErrorFunc, -1);
|
|
|
- RegisterFunction('AddQuotes', AddQuotesFunc, -1)
|
|
|
+ RegisterFunction('AddQuotes', AddQuotesFunc, -1);
|
|
|
+ RegisterFunction('SameStr', SameStrFunc, -1)
|
|
|
end;
|
|
|
end;
|
|
|
|