From 32cbe57178129d371752e29e857fa454a046f7c3 Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 4 Oct 2009 17:10:57 +0000 Subject: (svn r17692) -Codechange: minor coding style fixes --- src/ai/api/squirrel_export.awk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ai/api/squirrel_export.awk') diff --git a/src/ai/api/squirrel_export.awk b/src/ai/api/squirrel_export.awk index d33cfe4a4..b9ea9e519 100644 --- a/src/ai/api/squirrel_export.awk +++ b/src/ai/api/squirrel_export.awk @@ -13,7 +13,8 @@ # # Simple insertion sort. -function array_sort(ARRAY, ELEMENTS, temp, i, j) { +function array_sort(ARRAY, ELEMENTS, temp, i, j) +{ for (i = 2; i <= ELEMENTS; i++) for (j = i; ARRAY[j - 1] > ARRAY[j]; --j) { temp = ARRAY[j] @@ -23,7 +24,8 @@ function array_sort(ARRAY, ELEMENTS, temp, i, j) { return } -function dump_class_templates(name) { +function dump_class_templates(name) +{ print " template <> " name " *GetParam(ForceType<" name " *>, HSQUIRRELVM vm, int index, SQAutoFreePointers *ptr) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return (" name " *)instance; }" print " template <> " name " &GetParam(ForceType<" name " &>, HSQUIRRELVM vm, int index, SQAutoFreePointers *ptr) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(" name " *)instance; }" print " template <> const " name " *GetParam(ForceType, HSQUIRRELVM vm, int index, SQAutoFreePointers *ptr) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return (" name " *)instance; }" -- cgit v1.2.3-54-g00ecf