/[svn]/libgig/trunk/src/Serialization.cpp
ViewVC logotype

Diff of /libgig/trunk/src/Serialization.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3476 by schoenebeck, Wed Feb 20 19:12:49 2019 UTC revision 3480 by schoenebeck, Fri Feb 22 11:17:58 2019 UTC
# Line 403  namespace Serialization { Line 403  namespace Serialization {
403       * In the latter example @c customTypeName(true) would return for both       * In the latter example @c customTypeName(true) would return for both
404       * @c foo and @c pFoo the string @c "Foo" as return value of this method.       * @c foo and @c pFoo the string @c "Foo" as return value of this method.
405       *       *
406         * @b Windows: please note that the current implementation of this method
407         * on Windows is @b not thread safe!
408         *
409       * @see isPointer(), baseTypeName()       * @see isPointer(), baseTypeName()
410       */       */
411      String DataType::customTypeName(bool demangle) const {      String DataType::customTypeName(bool demangle) const {
# Line 411  namespace Serialization { Line 414  namespace Serialization {
414          const size_t MAXLENGTH = 1024;          const size_t MAXLENGTH = 1024;
415          char result[MAXLENGTH];          char result[MAXLENGTH];
416    
417            //FIXME: calling UnDecorateSymbolName() is not thread safe!
418          //Skip the first char          //Skip the first char
419          size_t size = UnDecorateSymbolName(m_customTypeName.c_str() +1, result, MAXLENGTH, UNDNAME_32_BIT_DECODE | UNDNAME_NO_ARGUMENTS);          size_t size = UnDecorateSymbolName(m_customTypeName.c_str() +1, result, MAXLENGTH, UNDNAME_32_BIT_DECODE | UNDNAME_NO_ARGUMENTS);
420          if (size)          if (size)

Legend:
Removed from v.3476  
changed lines
  Added in v.3480

  ViewVC Help
Powered by ViewVC