From dee2c5659e869bd14acf62e00bbb808aa1694461 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 8 Feb 2012 16:29:31 +1000 Subject: Cleaning up some comments. --- LuaSL/src/LSL.lua | 2 +- LuaSL/src/LuaSL_LSL_tree.h | 17 ----------------- LuaSL/src/LuaSL_compile.c | 2 +- LuaSL/src/LuaSL_utilities.c | 8 +------- 4 files changed, 3 insertions(+), 26 deletions(-) (limited to 'LuaSL/src') diff --git a/LuaSL/src/LSL.lua b/LuaSL/src/LSL.lua index c8c2c6d..1ec3fa1 100644 --- a/LuaSL/src/LSL.lua +++ b/LuaSL/src/LSL.lua @@ -227,7 +227,7 @@ LSL.x = 0.0; LSL.y = 0.0; LSL.z = 0.0; --- ll*() functions. +-- ll*() function stubs. function --[[float]] LSL.llPow(--[[float]] number,--[[float]] places) return 0.0 end; function --[[float]] LSL.llFrand(--[[float]] max) return 0.0 end; diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h index f21b51c..435cf65 100644 --- a/LuaSL/src/LuaSL_LSL_tree.h +++ b/LuaSL/src/LuaSL_LSL_tree.h @@ -261,23 +261,6 @@ struct _LSL_Statement Eina_Strbuf **ignorable; // Can be up to five of these I think. #endif miscFlags flags; -/* -LSL_Leaf *addStatement(LSL_Leaf *lval, LSL_Type type, LSL_Leaf *left, LSL_Leaf *expr, LSL_Leaf *right, LSL_Leaf *block); - -expr expr // Might be bogus, -Variable defines identifier, optional expr // For these we only store the variable leaf in expressions. -Function define identifier, block, parens // Also function params, but that's stored in the function anyway. -state change identifier -Labels identifier -goto identifier -return optional expr -do expr, block, parens -for exprx3, block, parens -if expr, block, parens -else block -else if expr, block, parens -while expr, block, parens -*/ }; struct _LSL_Block diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index b9ccf46..29ea47c 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c @@ -1897,7 +1897,7 @@ static void outputFunctionToken(FILE *file, outputMode mode, LSL_Leaf *content) } EINA_INARRAY_FOREACH((&(func->vars)), param) { - // TODO - comment out param types. + // Commenting out the types is done in outputLeaf() which outputs all the types. if (!LUASL_DIFF_CHECK) { if (!first) diff --git a/LuaSL/src/LuaSL_utilities.c b/LuaSL/src/LuaSL_utilities.c index 6a111a2..d73c06d 100644 --- a/LuaSL/src/LuaSL_utilities.c +++ b/LuaSL/src/LuaSL_utilities.c @@ -61,7 +61,7 @@ char *getDateTime(struct tm **nowOut, char *dateOut, time_t *timeOut) if (timeOut) *timeOut = szClock; - // format + // format strftime(date, DATE_TIME_LEN, "%d/%m/%Y %H:%M:%S\r", newTime); return (dateTime); } @@ -73,9 +73,6 @@ float timeDiff(struct timeval *now, struct timeval *then) struct timeval thisTime = { 0, 0 }; double result = 0.0; -//fprintf(stderr, " %ld . %ld\n", now->tv_sec, now->tv_usec); -//fprintf(stderr, "minus %ld . %ld\n", then->tv_sec, then->tv_usec); - thisTime.tv_sec = now->tv_sec; thisTime.tv_usec = now->tv_usec; if (thisTime.tv_usec < then->tv_usec) @@ -87,11 +84,8 @@ float timeDiff(struct timeval *now, struct timeval *then) thisTime.tv_sec -= then->tv_sec; result = ((double) thisTime.tv_usec) / ((double) 1000000.0); result += thisTime.tv_sec; -//fprintf(stderr, "equals %lf\n", result); -//fflush(stderr); return result; } else return 0.0; } - -- cgit v1.1