[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/server/asobj Date.cpp
From: |
Martin Guy |
Subject: |
[Gnash-commit] gnash/server/asobj Date.cpp |
Date: |
Fri, 02 Feb 2007 12:49:17 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Martin Guy <martinwguy> 07/02/02 12:49:17
Modified files:
server/asobj : Date.cpp
Log message:
Replace __FUNCTION__ with AS method name in calls to log_aserror
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Date.cpp?cvsroot=gnash&r1=1.13&r2=1.14
Patches:
Index: Date.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/Date.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- Date.cpp 2 Feb 2007 10:31:33 -0000 1.13
+++ Date.cpp 2 Feb 2007 12:49:17 -0000 1.14
@@ -630,7 +630,7 @@
if (fn.nargs < 1) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " needs one argument");
+ log_aserror("Date.setDate needs one argument");
)
} else {
date->obj.date = (long int)(fn.arg(0).to_number());
@@ -639,7 +639,7 @@
if (fn.nargs > 1) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " has more than one argument");
+ log_aserror("Date.setDate has more than one argument");
)
}
@@ -654,7 +654,7 @@
// assert(fn.nargs >= 1 && fn.nargs <= 3);
if (fn.nargs < 1) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " needs one argument");
+ log_aserror("Date.setFullYear needs one argument");
)
} else {
date->obj.year = (long int)(fn.arg(0).to_number() - 1900);
@@ -664,7 +664,7 @@
date->obj.date = (long int)(fn.arg(2).to_number());
if (fn.nargs > 3) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " has more than three arguments");
+ log_aserror("Date.setFullYear has more than three
arguments");
)
}
date->obj.Normalize();
@@ -677,7 +677,7 @@
// assert(fn.nargs >= 1 && fn.nargs <= 4);
if (fn.nargs < 1) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " needs one argument");
+ log_aserror("Date.setHours needs one argument");
)
} else {
date->obj.hour = (long int)(fn.arg(0).to_number());
@@ -689,7 +689,7 @@
date->obj.millisecond = (long int)(fn.arg(3).to_number());
if (fn.nargs > 4) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " has more than four arguments");
+ log_aserror("Date.setHours has more than four arguments");
)
}
date->obj.Normalize();
@@ -702,13 +702,13 @@
// assert(fn.nargs == 1);
if (fn.nargs < 1) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " needs one argument");
+ log_aserror("Date.setMilliseconds needs one argument");
)
} else {
date->obj.millisecond = (long int)(fn.arg(0).to_number());
if (fn.nargs > 1) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " has more than one argument");
+ log_aserror("Date.setMilliseconds has more than one
argument");
)
}
date->obj.Normalize();
@@ -721,7 +721,7 @@
//assert(fn.nargs >= 1 && fn.nargs <= 3);
if (fn.nargs < 1) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " needs one argument");
+ log_aserror("Date.setMinutes needs one argument");
)
} else {
// Seconds (value between 0 and 59) won't be affected by timezone
@@ -730,7 +730,7 @@
if (fn.nargs >= 3) date->obj.millisecond = (long
int)(fn.arg(2).to_number());
if (fn.nargs > 3) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " has more than three arguments");
+ log_aserror("Date.setMinutes has more than three
arguments");
)
}
date->obj.Normalize();
@@ -743,7 +743,7 @@
// assert(fn.nargs >= 1 && fn.nargs <= 2);
if (fn.nargs < 1) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " needs one argument");
+ log_aserror("Date.setMonth needs one argument");
)
} else {
date->obj.month = (long int)(fn.arg(0).to_number());
@@ -751,7 +751,7 @@
date->obj.date = (long int)(fn.arg(1).to_number());
if (fn.nargs > 2) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " has more than two arguments");
+ log_aserror("Date.setMonth has more than two arguments");
)
}
@@ -765,7 +765,7 @@
// assert(fn.nargs >= 1 && fn.nargs <= 2);
if (fn.nargs < 1) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " needs one argument");
+ log_aserror("Date.setSeconds needs one argument");
)
} else {
// Seconds (value between 0 and 59) won't be affected by timezone
@@ -774,7 +774,7 @@
date->obj.millisecond = (long int)(fn.arg(1).to_number());
if (fn.nargs > 2) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " has more than two arguments");
+ log_aserror("Date.setSeconds has more than two arguments");
)
}
@@ -788,7 +788,7 @@
// assert(fn.nargs == 1);
if (fn.nargs < 1) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " needs one argument");
+ log_aserror("Date.setTime needs one argument");
)
} else {
double millitime = fn.arg(0).to_number();
@@ -804,6 +804,11 @@
date->obj.Normalize();
}
+ if (fn.nargs > 1) {
+ IF_VERBOSE_ASCODING_ERRORS(
+ log_aserror("Date.setTime has more than one argument");
+ )
+ }
fn.result->set_double(date->obj.getTime());
}
@@ -813,7 +818,7 @@
// assert(fn.nargs == 1);
if (fn.nargs < 1) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " needs one argument");
+ log_aserror("Date.setUTCDate needs one argument");
)
} else {
tm utctime = date->obj.convertUTC();
@@ -829,7 +834,7 @@
if (fn.nargs > 1) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " has more than one argument");
+ log_aserror("Date.setUTCDate has more than one argument");
)
}
}
@@ -842,7 +847,7 @@
// assert(fn.nargs >= 1 && fn.nargs <= 3);
if (fn.nargs < 1) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " needs one argument");
+ log_aserror("Date.setUTCFullYear needs one argument");
)
} else {
tm utctime = date->obj.convertUTC();
@@ -854,7 +859,7 @@
utctime.tm_mday = (long int)(fn.arg(2).to_number());
if (fn.nargs > 3) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " has more than three arguments");
+ log_aserror("Date.setUTCFullYear has more than three
arguments");
)
}
@@ -874,7 +879,7 @@
// assert(fn.nargs >= 1 && fn.nargs <= 4);
if (fn.nargs < 1) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " needs one argument");
+ log_aserror("Date.setUTCHours needs one argument");
)
} else {
@@ -893,7 +898,7 @@
utctime.tm_sec = (long int)(fn.arg(2).to_number());
if (fn.nargs > 4) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " has more than four arguments");
+ log_aserror("Date.setUTCHours has more than four
arguments");
)
}
@@ -913,13 +918,13 @@
// assert(fn.nargs == 1);
if (fn.nargs < 1) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " needs one argument");
+ log_aserror("Date.setUTCMilliseconds needs one argument");
)
} else {
date->obj.millisecond = (long int)(fn.arg(0).to_number());
if (fn.nargs > 1) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " has more than one argument");
+ log_aserror("Date.setUTCMilliseconds has more than one
argument");
)
}
@@ -933,7 +938,7 @@
// assert(fn.nargs >= 1 && fn.nargs <= 3);
if (fn.nargs < 1) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " needs one argument");
+ log_aserror("Date.setUTCMinutes needs one argument");
)
} else {
// Seconds (value between 0 and 59) won't be affected by timezone
@@ -942,7 +947,7 @@
if (fn.nargs >= 3) date->obj.millisecond = (long
int)(fn.arg(2).to_number());
if (fn.nargs > 3) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " has more than three arguments");
+ log_aserror("Date.setUTCMinutes has more than three
arguments");
)
}
@@ -962,7 +967,7 @@
// assert(fn.nargs >= 1 && fn.nargs <= 2);
if (fn.nargs < 1) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " needs one argument");
+ log_aserror("Date.setUTCMonth needs one argument");
)
} else {
tm utctime = date->obj.convertUTC();
@@ -972,7 +977,7 @@
utctime.tm_mday = (long int)(fn.arg(1).to_number());
if (fn.nargs > 2) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " has more than two arguments");
+ log_aserror("Date.setUTCMonth has more than two arguments");
)
}
@@ -991,7 +996,7 @@
// assert(fn.nargs >= 1 && fn.nargs <= 2);
if (fn.nargs < 1) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " needs one argument");
+ log_aserror("Date.setUTCSeconds needs one argument");
)
} else {
// Seconds (value between 0 and 59) won't be affected by timezone
@@ -1000,7 +1005,7 @@
date->obj.millisecond = (long int)(fn.arg(1).to_number());
if (fn.nargs > 2) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " has more than two arguments");
+ log_aserror("Date.setUTCSeconds has more than two
arguments");
)
}
@@ -1017,14 +1022,14 @@
// assert(fn.nargs == 1);
if (fn.nargs < 1) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " needs one argument");
+ log_aserror("Date.setYear needs one argument");
)
} else {
date->obj.year = (long int)(fn.arg(0).to_number());
if (date->obj.year < 100) date->obj.year += 1900;
if (fn.nargs > 1) {
IF_VERBOSE_ASCODING_ERRORS(
- log_aserror(__FUNCTION__, " has more than two arguments");
+ log_aserror("Date.setYear has more than two arguments");
)
}
@@ -1055,7 +1060,7 @@
static void date_utc(const fn_call& fn) {
date_as_object* date = ensure_date_object(fn.this_ptr);
UNUSED(date);
- log_msg("%s:unimplemented \n", __FUNCTION__);
+ log_msg("Date.UTC unimplemented\n");
}
// extern (used by Global.cpp)
- [Gnash-commit] gnash/server/asobj Date.cpp, Martin Guy, 2007/02/01
- [Gnash-commit] gnash/server/asobj Date.cpp,
Martin Guy <=
- [Gnash-commit] gnash/server/asobj Date.cpp, Martin Guy, 2007/02/06
- [Gnash-commit] gnash/server/asobj Date.cpp, Martin Guy, 2007/02/07
- [Gnash-commit] gnash/server/asobj Date.cpp, Martin Guy, 2007/02/07
- [Gnash-commit] gnash/server/asobj Date.cpp, Martin Guy, 2007/02/11
- [Gnash-commit] gnash/server/asobj Date.cpp, Martin Guy, 2007/02/17
- [Gnash-commit] gnash/server/asobj Date.cpp, Martin Guy, 2007/02/27
- [Gnash-commit] gnash/server/asobj Date.cpp, Markus Gothe, 2007/02/27
- [Gnash-commit] gnash/server/asobj Date.cpp, Martin Guy, 2007/02/28
- [Gnash-commit] gnash/server/asobj Date.cpp, Martin Guy, 2007/02/28