[v8-juice] r2243 committed - Fixed some semicolon, >, and template misdecl problems.

1 view
Skip to first unread message

v8-j...@googlecode.com

unread,
Apr 12, 2012, 1:48:31 PM4/12/12
to v8-juice-...@googlegroups.com
Revision: 2243
Author: sgbeal
Date: Thu Apr 12 10:48:16 2012
Log: Fixed some semicolon, >, and template misdecl problems.
http://code.google.com/p/v8-juice/source/detail?r=2243

Modified:
/convert/addons/createCCWrapper.sh

=======================================
--- /convert/addons/createCCWrapper.sh Thu Apr 12 10:29:53 2012
+++ /convert/addons/createCCWrapper.sh Thu Apr 12 10:48:16 2012
@@ -26,16 +26,16 @@
CVV8_TypeName_DECL((${class}));

template <>
- struct ClassCreator_InternalFields<${class}>
- : ClassCreator_InternalFields_Base<${class}>
+ struct ClassCreator_InternalFields<${class} >
+ : ClassCreator_InternalFields_Base<${class} >
{};

template <>
- struct ClassCreator_SearchPrototypeForThis<${class}> : Opt_Bool<true>
+ struct ClassCreator_SearchPrototypeForThis<${class} > : Opt_Bool<true>
{};

template <>
- class ClassCreator_Factory<${class}>
+ class ClassCreator_Factory<${class} >
{
public:
typedef ${class} * ReturnType;
@@ -43,30 +43,30 @@
static void Delete( ReturnType obj );
};

- template <typename ${class}>
- struct ClassCreator_WeakWrap
- {
- typedef typename TypeInfo<${class}>::NativeHandle NativeHandle;
+ template <>
+ struct ClassCreator_WeakWrap<${class} >
+ {
+ typedef typename TypeInfo<${class} >::NativeHandle NativeHandle;
static void PreWrap( v8::Persistent<v8::Object> const &,
v8::Arguments const & );
static void Wrap( v8::Persistent<v8::Object> const &, NativeHandle
);
static void Unwrap( v8::Handle<v8::Object> const &, NativeHandle );
};

- template <typename ${class}>
- struct ClassCreator_SetupBindings
+ template <>
+ struct ClassCreator_SetupBindings< ${class} >
{
static void Initialize( v8::Handle<v8::Object> const & target );
};


template <>
- struct JSToNative<${class}>
- : JSToNative_ClassCreator<${class}>
+ struct JSToNative<${class} >
+ : JSToNative_ClassCreator<${class} >
{};

#if 0
template <>
- struct NativeToJS<${class}> : NativeToJSMap<${class}>::NativeToJSImpl
{};
+ struct NativeToJS<${class} > : NativeToJSMap<${class}
>::NativeToJSImpl {};
#endif

} /* namespace */
@@ -88,11 +88,11 @@

#if 0 /* needed? */
template <>
- const void * ClassCreator_TypeID<${class}>::Value =
TypeName<${class}>::Value;
+ const void * ClassCreator_TypeID<${class} >::Value = TypeName<${class}
>::Value;
#endif
EOF

- local WW="ClassCreator_WeakWrap<${class}>"
+ local WW="ClassCreator_WeakWrap<${class} >"
cat <<EOF

void ${WW}::PreWrap( v8::Persistent<v8::Object> const &, v8::Arguments
const & ){
@@ -107,7 +107,7 @@

EOF

- local FAC="ClassCreator_Factor<${class}>"
+ local FAC="ClassCreator_Factor<${class} >"
cat <<EOF
static ${FAC}::ReturnType ${FAC}::Create( v8::Persistent<v8::Object>
&, v8::Arguments const & argv ){
return new ${class};
@@ -119,7 +119,7 @@
EOF

cat <<EOF
- void ClassCreator_SetupBindings<typename ${class}>::Initialize(
v8::Handle<v8::Object> const & target );
+ void ClassCreator_SetupBindings<typename ${class} >::Initialize(
v8::Handle<v8::Object> const & target ){
typedef ${class} T;
typedef ClassCreator<T> CC:
CC & cc( CC::Instance() );

Reply all
Reply to author
Forward
0 new messages