Open GoogleCodeExporter opened 9 years ago
variant.h:
Yep, i am surprised that this wasn't catched by GCC/MSVC.
variant_cast should probably just forward to a member function.
TypeIDMap.h:
Yep, C++03 says so in §18.5.1, §15.1.5 makes it rather clear that an
accessible copy-ctor is required even if the actual copying can be eliminated.
As 5.2.8 guarantees that the instance typeid returns lives until the end of the
program, throwing a pointer (i.e. "throw &typeid(foo);" would work just fine. I
don't really see what code would be affected by this - Richard, do you?
Original comment by georg.fritzsche
on 31 Jul 2010 at 7:49
variant.h is fixed.
Looking at the sources again i'd say 'throw typeid(void);' could just as well
become 'throw std::runtime_error("no such typeid");' - or is that line a typo
and should have been 'return typeinfo(void);'?
Original comment by georg.fritzsche
on 31 Jul 2010 at 8:13
Yeah, that line should have been:
return typeid(void);
richcatalano, could you truy changing line 86 of TypeIDMap.h to a return
statement and let us know if it fixes the problem? I don't have xcode 4 to
test.
Original comment by taxilian
on 31 Jul 2010 at 11:35
That produces the following error:
"Binding of reference to type 'std::type_info' to a value of type
'std::type_info const' drops qualifiers"
Original comment by richcata...@gmail.com
on 9 Aug 2010 at 6:48
That method should return a "const std::type_info&", commited a fix.
Original comment by georg.fritzsche
on 9 Aug 2010 at 9:14
Awesome.
The only other issue I'm having is that it doesn't like the redefinition of
main in np_macmain.cpp(first argument should be int, second char **, etc.). I
suspect this is an issue with the compiler, unless there is a specific flag
needed to allow a redefinition of main. Omitting main upsets the linker (can't
find "_main"). I can work around it with the following:
#define main fake_main
int fake_main(NPNetscapeFuncs *browserFuncs, NPPluginFuncs *pluginFuncs, NPP_ShutdownProcPtr *shutdown) asm("_main");
To me it seems most likely to be either an issue with Clang or a missing flag.
Original comment by richcata...@gmail.com
on 9 Aug 2010 at 10:06
This is most likely an error in the npapi header files somewhere or a missing
#define.
int main is defined in one of the headers, and depending on the platform it is
defined differently.
Original comment by taxilian
on 9 Aug 2010 at 10:49
Apparently this isn't coming from the NPAPI headers - it might be that Apple
dropped support for CFM modules with Clang?
For the moment you could add "_NO_MAIN" to the preprocessor definitions for
your plugin project, that should take care of it.
Original comment by georg.fritzsche
on 10 Aug 2010 at 10:10
That wouldn't surprise me.
Is the CFM module still needed?
Original comment by richcata...@gmail.com
on 10 Aug 2010 at 10:59
That main function is needed to support CFM browsers with the plugins. I have
no idea what the statistics on CFM browsers being still alive are though. Maybe
_NO_MAIN could become the default later if they don't have any critical mass
anymore.
Original comment by georg.fritzsche
on 10 Aug 2010 at 11:33
According to this technote Mozilla moved to mach-o quite a long time ago.
http://www.mozilla.org/projects/plugins/plugin_scripting_ABI_technote.html
Original comment by richcata...@gmail.com
on 11 Aug 2010 at 12:46
If someone can get me a copy of XCode 4, I'll try to fix this.
Original comment by taxilian
on 9 Sep 2010 at 2:08
Original comment by taxilian
on 16 Sep 2010 at 5:32
After having played with it a bit in preview release 3, I'm forced to conclude
that we're not going to be able to do anything with this until Xcode4 and a
cmake that supports it fully come out.
Original comment by taxilian
on 21 Sep 2010 at 3:37
Original issue reported on code.google.com by
richcata...@gmail.com
on 30 Jul 2010 at 9:42