CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli <strk> 07/07/25 15:42:48
Modified files: . : ChangeLog server : as_value.h Log message: * server/as_value.h: add a PROPNAME macro to perform the lowercase conversion of property names when needed (copies arg) CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3825&r2=1.3826 http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_value.h?cvsroot=gnash&r1=1.57&r2=1.58 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3825 retrieving revision 1.3826 diff -u -b -r1.3825 -r1.3826 --- ChangeLog 25 Jul 2007 15:40:10 -0000 1.3825 +++ ChangeLog 25 Jul 2007 15:42:47 -0000 1.3826 @@ -1,5 +1,7 @@ 2007-07-25 Sandro Santilli <[EMAIL PROTECTED]> + * server/as_value.h: add a PROPNAME macro to perform the lowercase + conversion of property names when needed (copies arg) * server/as_environment.h: added some notes about variable name case conversion. * server/edit_text_character.cpp: removed unused lowercase_if_needed Index: server/as_value.h =================================================================== RCS file: /sources/gnash/gnash/server/as_value.h,v retrieving revision 1.57 retrieving revision 1.58 diff -u -b -r1.57 -r1.58 --- server/as_value.h 9 Jul 2007 03:30:50 -0000 1.57 +++ server/as_value.h 25 Jul 2007 15:42:48 -0000 1.58 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: as_value.h,v 1.57 2007/07/09 03:30:50 strk Exp $ */ +/* $Id: as_value.h,v 1.58 2007/07/25 15:42:48 strk Exp $ */ #ifndef GNASH_AS_VALUE_H #define GNASH_AS_VALUE_H @@ -76,6 +76,13 @@ static inline int isinf_ld (long double x) { return isnan (x - x); } #endif +/// Use this macro to obtain a properly-formatted property name +/// The macro will convert the name to lowercase if the current VM target +/// is SWF6 or lower +/// +#define PROPNAME(x) ( VM::get().getSWFVersion() < 7 ? boost::to_lower_copy(x) : (x) ) + + /// ActionScript value type. // _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit