aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/lscript/lscript_library
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/lscript/lscript_library')
-rw-r--r--linden/indra/lscript/lscript_library/lscript_library.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/lscript/lscript_library/lscript_library.cpp b/linden/indra/lscript/lscript_library/lscript_library.cpp
index 9752c22..c592c8b 100644
--- a/linden/indra/lscript/lscript_library/lscript_library.cpp
+++ b/linden/indra/lscript/lscript_library/lscript_library.cpp
@@ -156,7 +156,7 @@ void LLScriptLibrary::init()
156 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetVel", "v", NULL, "vector llGetVel()\ngets the velocity")); 156 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetVel", "v", NULL, "vector llGetVel()\ngets the velocity"));
157 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetAccel", "v", NULL, "vector llGetAccel()\ngets the acceleration")); 157 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetAccel", "v", NULL, "vector llGetAccel()\ngets the acceleration"));
158 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetOmega", "v", NULL, "vector llGetOmega()\ngets the omega")); 158 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetOmega", "v", NULL, "vector llGetOmega()\ngets the omega"));
159 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetTimeOfDay", "f", "", "float llGetTimeOfDay()\ngets the time in seconds since Second Life server midnight (or since server up-time; whichever is smaller)")); 159 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetTimeOfDay", "f", "", "float llGetTimeOfDay()\ngets the time in seconds since server midnight (or since server up-time; whichever is smaller)"));
160 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetWallclock", "f", "", "float llGetWallclock()\ngets the time in seconds since midnight")); 160 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetWallclock", "f", "", "float llGetWallclock()\ngets the time in seconds since midnight"));
161 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetTime", "f", NULL, "float llGetTime()\ngets the time in seconds since creation")); 161 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetTime", "f", NULL, "float llGetTime()\ngets the time in seconds since creation"));
162 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llResetTime", NULL, NULL, "llResetTime()\nsets the time to zero")); 162 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llResetTime", NULL, NULL, "llResetTime()\nsets the time to zero"));
@@ -592,7 +592,7 @@ LLScriptLibraryFunction::LLScriptLibraryFunction(F32 eu, F32 st, void (*exec_fun
592 char *mDesc_ = new char[512]; 592 char *mDesc_ = new char[512];
593 if (mSleepTime) 593 if (mSleepTime)
594 { 594 {
595 snprintf( /* Flawfinder: ignore */ 595 ll_snprintf( /* Flawfinder: ignore */
596 mDesc_, 596 mDesc_,
597 512, 597 512,
598 "%s\nSleeps script for %.1f seconds.", 598 "%s\nSleeps script for %.1f seconds.",
@@ -653,7 +653,7 @@ void LLScriptLibData::print(std::ostream &s, BOOL b_prepend_comma)
653 s << mInteger; 653 s << mInteger;
654 break; 654 break;
655 case LST_FLOATINGPOINT: 655 case LST_FLOATINGPOINT:
656 snprintf(tmp, 1024, "%f", mFP); /* Flawfinder: ignore */ 656 ll_snprintf(tmp, 1024, "%f", mFP); /* Flawfinder: ignore */
657 s << tmp; 657 s << tmp;
658 break; 658 break;
659 case LST_KEY: 659 case LST_KEY:
@@ -663,12 +663,12 @@ void LLScriptLibData::print(std::ostream &s, BOOL b_prepend_comma)
663 s << mString; 663 s << mString;
664 break; 664 break;
665 case LST_VECTOR: 665 case LST_VECTOR:
666 snprintf(tmp, 1024, "<%f, %f, %f>", mVec.mV[VX], /* Flawfinder: ignore */ 666 ll_snprintf(tmp, 1024, "<%f, %f, %f>", mVec.mV[VX], /* Flawfinder: ignore */
667 mVec.mV[VY], mVec.mV[VZ]); 667 mVec.mV[VY], mVec.mV[VZ]);
668 s << tmp; 668 s << tmp;
669 break; 669 break;
670 case LST_QUATERNION: 670 case LST_QUATERNION:
671 snprintf(tmp, 1024, "<%f, %f, %f, %f>", mQuat.mQ[VX], mQuat.mQ[VY], /* Flawfinder: ignore */ 671 ll_snprintf(tmp, 1024, "<%f, %f, %f, %f>", mQuat.mQ[VX], mQuat.mQ[VY], /* Flawfinder: ignore */
672 mQuat.mQ[VZ], mQuat.mQ[VS]); 672 mQuat.mQ[VZ], mQuat.mQ[VS]);
673 s << tmp; 673 s << tmp;
674 break; 674 break;
@@ -692,7 +692,7 @@ void LLScriptLibData::print_separator(std::ostream& ostr, BOOL b_prepend_sep, ch
692 ostr << mInteger; 692 ostr << mInteger;
693 break; 693 break;
694 case LST_FLOATINGPOINT: 694 case LST_FLOATINGPOINT:
695 snprintf(tmp, 1024, "%f", mFP); /* Flawfinder: ignore */ 695 ll_snprintf(tmp, 1024, "%f", mFP); /* Flawfinder: ignore */
696 ostr << tmp; 696 ostr << tmp;
697 break; 697 break;
698 case LST_KEY: 698 case LST_KEY:
@@ -702,12 +702,12 @@ void LLScriptLibData::print_separator(std::ostream& ostr, BOOL b_prepend_sep, ch
702 ostr << mString; 702 ostr << mString;
703 break; 703 break;
704 case LST_VECTOR: 704 case LST_VECTOR:
705 snprintf(tmp, 1024, "<%f, %f, %f>", mVec.mV[VX], /* Flawfinder: ignore */ 705 ll_snprintf(tmp, 1024, "<%f, %f, %f>", mVec.mV[VX], /* Flawfinder: ignore */
706 mVec.mV[VY], mVec.mV[VZ]); 706 mVec.mV[VY], mVec.mV[VZ]);
707 ostr << tmp; 707 ostr << tmp;
708 break; 708 break;
709 case LST_QUATERNION: 709 case LST_QUATERNION:
710 snprintf(tmp, 1024, "<%f, %f, %f, %f>", mQuat.mQ[VX], mQuat.mQ[VY], /* Flawfinder: ignore */ 710 ll_snprintf(tmp, 1024, "<%f, %f, %f, %f>", mQuat.mQ[VX], mQuat.mQ[VY], /* Flawfinder: ignore */
711 mQuat.mQ[VZ], mQuat.mQ[VS]); 711 mQuat.mQ[VZ], mQuat.mQ[VS]);
712 ostr << tmp; 712 ostr << tmp;
713 break; 713 break;