From e69c3ee25a0b2f02228511f7cd030784c2de346e Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Mon, 29 Jul 2019 23:34:02 +0200 Subject: Replace arr[GetLength(arr)] with arr[] --- DTTemplateFunctions.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'DTTemplateFunctions.c') diff --git a/DTTemplateFunctions.c b/DTTemplateFunctions.c index e494766..8148499 100644 --- a/DTTemplateFunctions.c +++ b/DTTemplateFunctions.c @@ -35,7 +35,7 @@ global func SetFunction(string name, array function) } else { - TMPL_Funcs[GetLength(TMPL_Funcs)] = function; + TMPL_Funcs[] = function; } } @@ -95,7 +95,7 @@ global func Function(arguments, commands) } else { - funcContent[GetLength(funcContent)] = [index, escapeCount]; + funcContent[] = [index, escapeCount]; argument = ""; escapeCount = 0; } @@ -110,7 +110,7 @@ global func Function(arguments, commands) { if(contentPart != "") { - funcContent[GetLength(funcContent)] = contentPart; + funcContent[] = contentPart; contentPart = ""; } @@ -134,8 +134,8 @@ global func Function(arguments, commands) } } if(isArg) FatalError(Format("Function: argument-reference \"%s\" not closed.", argument)); - else if(contentPart) funcContent[GetLength(funcContent)] = contentPart; - funcContents[GetLength(funcContents)] = funcContent; + else if(contentPart) funcContent[] = contentPart; + funcContents[] = funcContent; } return [arguments, funcContents]; -- cgit v1.2.3-54-g00ecf